Repository navigation
feat(explainer-video): render a storyboard to a narrated 4K stills video on a shared media library - #16090
Conversation
Storyboard contract, media library language and vendoring, voice chain ownership, policy values and labels, hosting chain, and scan floor. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
The skill lands in a later pull request, so the reference check cannot resolve it yet. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
Capture, frame templates, storyboard timeline, captions, encode profiles, loudness, verification, size limit, contact sheets and the scan floor, one concern per file (ADR 0103), with unit and ffmpeg-backed tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
…ypos check Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
… on lib/media-render Vendors lib/media-render, redact.py and the gitleaks rules into the plugin. render.py's mux runs the explainer-manim encode profile with today's arguments, and narration.py's caption functions delegate to media_captions. The narrated sample render is byte-identical before and after (frame hashes, audio PCM, captions, loudness). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
…nd add the changelog fragment Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
…ls video stills.py validates the storyboard, scans its text before anything renders, captures each moment at 3840x2160, burns captions, rebuilds and normalizes the narration, encodes once at CRF 18, checks luma SSIM >= 0.999 per hold, writes contact sheets, splits at chapter starts over the upload limit, and lists publishable files in manifest.json. Adds the renderer, stitcher, frame_stylesheet and upload_limit_mb settings, Playwright for Python, and a mediarender CI toolchain so the stills suites run with their Chromium. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
The install directory is keyed by the lock's hash, so the new lock with Playwright reinstalls on its own; a second probe module broke the pydeps tests' single-module wheel. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
…urity review found - media_scan compares redaction labels per kind by count, so a label already in the text no longer hides a new secret of that kind. - Screenshot image and sidecar paths must stay inside the storyboard folder, checked at parse and again after resolving symlinks. - stills.py clears only an output folder it marked as its own and refuses any other non-empty folder. - CI installs the pinned ffmpeg on mediarender legs too. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
- Caption band is one setting (frames.caption_band, 0.24): page() injects the frame size and bottom padding, the ASS font is sized so a two-line cue's box fits the band, and SSIM compares the area above it. A rendered test checks the box. - Template names come from media_templates.TEMPLATES; fps from the encode profile; ChromiumMissing replaces a message match, with one install command. - stitcher absent or 'ffmpeg' is the built-in encode; the scan uses the redactor's default rules; voice.json is read inside the error handler; the manifest says 'stitcher' for captions a custom stitcher handled. - stitcher and frame_stylesheet are read from the default branch only; the unused renderer setting is gone; ADRs 0102 and 0103 match what shipped. - CI fails when the two playwright pins differ; dependabot watches lib/media-render; the typos exclude narrows to vendored gitleaks files. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
- stitcher and frame_stylesheet come from lib/default-branch-file.sh, which reads origin's default branch by commit SHA through the convention home; any failure means the built-in encode and stylesheet, never the working tree. - A custom stitcher runs in the output folder, so a relative path cannot reach the checkout's files. - The secret scan reads dict keys too, since a mistyped field renders them. - Every ffmpeg and ffprobe call goes through media_encode, so callers catch one EncodeError that carries stderr. - media_capture owns the Chromium install as argv; both ffconcat writers escape a quote through one helper. - Dependabot bumps playwright in both pinned directories in one pull request; the typos exclude names only the vendored gitleaks rules; the stills renders fail instead of skipping when CI's MEDIA_RENDER_REQUIRE_DEPS is set. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Lane run report
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a088c7224c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
- stills.py checks for ffmpeg only after validation and the scan, and not for --script-only, so its refusals run on a leg without FFmpeg. - test_title_may_be_silent asserts the silent title adds no script paragraph. - .gitleaksignore lists the explainer-video vendored gitleaks rules copy beside the other two. - check-changed-links-online.sh skips a link to this repository's base branch whose path exists at HEAD: it resolves once the change merges. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
Lane run report
Failed GitHub API calls
|
…e captions-only cues their minimum time
- timeline() reads a missing narration as empty, as parse() and script()
already do, so a silent title without the field renders instead of
raising KeyError.
- With no narration, timeline() takes the caption limits and times each
caption run for at least the minimum cue time, so a short sentence beside
a full one ("Yes. Here are eight ...") no longer fails the renderer's own
caption check. media_captions.cue_runs is the one run splitter both use.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
|
claude-security-review reviewed Security review: incremental, b9d83cc → 9799cfb (13 of 13 files read)This review covered only blocking findings ( critical-findings: 0 Checked:
|
…draws frame_text skipped the value of any key named image or sidecar at every depth, so a value nested under one in a drawn field reached the frame without passing the scan floor. Only a screenshot moment's top-level data.image and data.sidecar are file paths; those two alone are skipped. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
|
claude-review reviewed Code review: incremental, b9d83cc → 9799cfb (blocking only)Scope. This review covers only what changed since
For context I also read the head versions of This lane's 3 earlier findings are all fixed:
Other changes checked and found consistent:
Closing issue: none. The PR closes no issue, so there are no acceptance criteria to check. Plugin manifests: this push changes no Prepaid spend: none added in this push. Not verified by me: I had no shell and ran no tests or renders. The PR's verification results are the author's own claims and I have not confirmed them. I ran no verifier subagents. Verifier dropped 0 of 0 candidates. |
…ects, and let stock names through the scan - parse() defaults a missing narration to '' and requires it to be a string, and requires every chapter to carry a string id and title, so timeline, script and stills.py can rely on the parsed board. - stills.py turns any failure that produced nothing into exit 2: exit 1 stays "produced with a defect; manifest.json lists each". - media_scan skips the user-name and hostname match for stock account and host names (root, runner, localhost, ...), which are ordinary words that identify no one and blocked narration such as "the root cause". Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp
|
The pr-verify verifier failed head What it wrote (86 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
No related issue: Phase 1 of the produced-PR-video plan (owner-approved in session); the plan's later phases land as their own PRs per plugin.
Summary
Problem: reviewers of important PRs get walls of markdown, and nothing in this marketplace produces narrated visual review media. Intent: "Tired of walls of markdown"; make the process "as fast and efficient as possible".
This PR is the first slice: a shared media library and a renderer that turns a data-only
storyboard.jsoninto one narrated 4K video of held still frames, with burned and soft captions, chapters, a contact sheet and amanifest.jsonof publishable files.lib/media-render(Python, stdlib plus Playwright for Python, ffmpeg by subprocess), vendored into explainer-video: frame capture, escaping frame templates, storyboard timeline, captions, encode profiles, loudness, verification, chapter split, contact sheets and a secret and machine-data scan.explainer-videogainsscripts/stills.pyand its settings:stitcherandframe_stylesheet(read from the default branch only, through the newlib/default-branch-file.sh) andupload_limit_mb.render.py(the manim path) now muxes, normalizes loudness and builds captions through the library; its output is byte-identical to before the move.Fix
parserejects a non-string narration and a chapter without a string id and title.root,runner,localhost) are not matched as bare words.stitcherruns without a shell, in the output folder, and only as configured on the default branch.stills.pyexits 1 only with amanifest.jsonlisting the defects; any other failure exits 2..gitleaksignore(one fingerprint: file, rule, line). Thepr-require-checks.ymlexclude this PR widens is the spell-check step's, so the vendored rules file is not spell-corrected; no secret-scan exclusion changes.scripts/gitleaks-vendor-copies.test.shpins that copy byte for byte to the session-flow copy.Verification
bash lib/media-render/media-render.test.sh: 51 tests OK; the stills suite (9 tests, Playwright-backed 4K renders included) passes in a venv with Playwright 1.65.1, and its refusals pass with ffmpeg off PATH.bash lib/default-branch-file.test.sh: all passed, including that a local branch namedorigin/HEADdoes not shadow the default branch.fixtures/storyboard.json,--no-audio): PASS, 3840x2160, 30.2 s of video, 705,404 bytes, min luma SSIM 0.99945; with a light alternate stylesheet, min luma SSIM 0.999938. Wall time 14.3 s on an idle host and 24.2 s at load average 12; 0 agent tokens (the render runs no model).{b}and\Nin caption text show literally.render.pygolden capture (frame hashes, audio PCM, captions, loudness) byte-identical before and after the move.scripts/check-changed-links-online.test.sh: 17 passed.scripts/sync-shared-copies.sh --checkand ruff: clean.Acceptance criteria
This PR's own criteria, each delivered here in full:
lib/media-renderexists and is vendored into explainer-video, and the sync gate shows no drift.stills.pyrenders astoryboard.jsonto a 3840x2160 H.264 video with burned and soft captions covering every narration line, chapter start times inmanifest.json, a contact sheet and luma SSIM at or above 0.999 above the caption strip.--no-audio), it produces a captions-only video plus the contact sheet.Remaining
Each plan criterion this PR delivers only part of; the named phase finishes it.
Related
review:reviewer-media, the animation, pixel-art and demo-video moves, the illustrate view) follow as one PR per plugin.lib/read-verification.shontolib/default-branch-file.sh, removing the duplicated default-branch resolution (owner decision).Follow-ups
content:text are not scanned (ADR 0107 accepts no OCR); consider OCR for screenshot moments or scanning the stylesheet text.media_verify's; finish the move or name the difference.timelinehold,capturesize,sheetscap,muxprofile) copy explainer-video's config; make them required.media_capture.INSTALL_ARGS.captionsto media_captions; loudness two-pass and its report shape are built in both render.py and stills.py.stitch.jsonkeys are documented only in code; give the shape one home.--stitcherits caller passes; the default-branch-only rule forstitcherandframe_stylesheetis held by the produce skill, not the script.captions_only_hold.seconds_per_wordvscaptions.seconds_per_word, the two path-containment helpers' names,RISK_LEVELSand frames.css coupling, render.py pass-through aliases,media_scan.scan(extra=)with no caller yet, and the gitleaks rules path encoded in two test helpers.🤖 Generated with Claude Code
https://claude.ai/code/session_01VcupojpBSgTYp4hswzSQsp