Skip to content

fix(recovery): preserve source-bound browser media delivery - #143

Merged
austinjiann merged 3 commits into
mainfrom
codex/retained-source-media
Nov 25, 2026
Merged

austinjiann merged 3 commits into
mainfrom
codex/retained-source-media

Conversation

@austinjiann

@austinjiann austinjiann commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Recovered packages with PCM source audio refer to a browser-compatible MP4, original WAV and a source-bound receipt. Saved-input preparation and retained-scene configs previously retained only the WAV, so recovery could produce an incomplete media delivery and did not validate changed video bytes.

Pin and validate the complete three-file delivery through the existing source-media validator. Preserve those pins through the saved-input API. When local packaging already emitted the exact same delivery files, reuse them; reject conflicting staging files before overlay writes. Placement and quality acceptance remain unchanged.

Validation: reproduced missing pins and accepted tampered video before the fix; 146 focused tests pass across retained scenes, saved-input API/admission, runner packaging and source audio. Includes a real FFmpeg H.264 + PCM round trip, empty/identical/conflicting staging media, post-copy tampering, and directory/file/dangling symlink rejection before writes. Ruff and format check pass. No provider calls, fresh generation, scene geometry changes or quality promotion.

@austinjiann
austinjiann merged commit 728e8a2 into main Nov 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant