Skip to content

feat(explainer-video): render a storyboard to a narrated 4K stills video on a shared media library - #16090

Merged
kyle-sexton merged 18 commits into
mainfrom
feat/produced-video-pr-walkthrough
Nov 14, 2026
Merged

kyle-sexton merged 18 commits into
mainfrom
feat/produced-video-pr-walkthrough

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

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.json into one narrated 4K video of held still frames, with burned and soft captions, chapters, a contact sheet and a manifest.json of 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-video gains scripts/stills.py and its settings: stitcher and frame_stylesheet (read from the default branch only, through the new lib/default-branch-file.sh) and upload_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.
  • ADRs 0102-0107 record the storyboard contract, the library language, voice chain ownership, policy values and labels, the hosting chain and the scan floor.

Fix

  • The storyboard is data: every string is HTML-escaped, class names come from fixed sets, screenshots resolve inside the storyboard folder, and a screenshot without a frame-text sidecar is refused. parse rejects a non-string narration and a chapter without a string id and title.
  • The secret and machine-data scan runs over narration, frame text (dict keys and values at every depth; only a screenshot's top-level image and sidecar paths are skipped) and sidecars before anything renders; a hit writes no video. Stock account and host names (root, runner, localhost) are not matched as bare words.
  • The bottom 24% of each frame is kept for burned captions. The font is sized so a two-line cue's box fits that strip, and the luma SSIM check compares only the area above it. Captions-only timing gives every caption run at least the minimum time on screen.
  • A custom stitcher runs without a shell, in the output folder, and only as configured on the default branch.
  • stills.py exits 1 only with a manifest.json listing the defects; any other failure exits 2.
  • CI support: the online link check skips a link to this repository's base branch whose path exists at the head (it resolves at merge; the offline lane still checks the file), and the explainer-video copy of the vendored gitleaks rules joins the other two in .gitleaksignore (one fingerprint: file, rule, line). The pr-require-checks.yml exclude 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.sh pins 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 named origin/HEAD does not shadow the default branch.
  • Fixture render (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).
  • A rendered two-line caption stays inside the caption strip (test), and {b} and \N in caption text show literally.
  • render.py golden 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 --check and ruff: clean.
  • Boundary reviews (code-design, security), one fix round and one re-review; the CI review lanes' 7 findings are fixed with regression tests. CI is green on this head.

Acceptance criteria

This PR's own criteria, each delivered here in full:

  • P1-1: lib/media-render exists and is vendored into explainer-video, and the sync gate shows no drift.
  • P1-2: stills.py renders a storyboard.json to a 3840x2160 H.264 video with burned and soft captions covering every narration line, chapter start times in manifest.json, a contact sheet and luma SSIM at or above 0.999 above the caption strip.
  • P1-3: With no voice (--no-audio), it produces a captions-only video plus the contact sheet.
  • P1-4: A planted secret or home-directory path in a frame, the narration script or a sidecar stops the render before any video is written.
  • P1-5: explainer-video's manim path produces output unchanged from before the move (AC11 for explainer-video).
  • P1-6: The stitcher and the frame stylesheet switch by configuration alone, including a custom stitcher command.
  • P1-7: Over the upload limit, the video splits at chapter starts or is reported for hosting whole as an artifact; nothing is recompressed or cut (AC13 as superseded in design).
  • P1-8: explainer-video:produce names its related skills under Related and Next.

Remaining

Each plan criterion this PR delivers only part of; the named phase finishes it.

  • AC4 (chapter title card per chapter; the PR section listing chapter start times): Phase 3 (pull-request reviewer section) and Phase 4 (reviewer-media).
  • AC6 (fallback to the secondary voice when edge-tts is unreachable): Phase 2 (speech).
  • AC7 (stopping the upload and any online-voice request on a scan hit): Phase 2 (speech) and Phase 3 (pull-request).
  • AC10 (animation, demo-video and pixel-art encode and capture paths on the shared library): Phases 5-7.
  • AC12 (voice and renderer switching by configuration): Phase 2 and Phase 4.
  • AC15 (Related and Next on explain-change, education:illustrate, playwright:demo-video, source-control:pull-request and review:reviewer-media): each with its own phase.

Related

  • Plan phases 2-9 (speech voices, the pull-request reviewer section, review:reviewer-media, the animation, pixel-art and demo-video moves, the illustrate view) follow as one PR per plugin.
  • A follow-up PR moves lib/read-verification.sh onto lib/default-branch-file.sh, removing the duplicated default-branch resolution (owner decision).

Follow-ups

  • Pre-existing (advisory): Chromium launches with Playwright's default sandbox settings; review whether the capture browser needs its OS sandbox enforced.
  • Pre-existing (advisory): screenshot pixels and custom-stylesheet content: text are not scanned (ADR 0107 accepts no OCR); consider OCR for screenshot moments or scanning the stylesheet text.
  • Pre-existing (advisory): render.py keeps its own frame extract, probe and blank check beside media_verify's; finish the move or name the difference.
  • Pre-existing (advisory): library parameter defaults (timeline hold, capture size, sheets cap, mux profile) copy explainer-video's config; make them required.
  • Pre-existing (advisory): the CI ffmpeg need is restated in three workflow conditions, and the CI Chromium install command copies media_capture.INSTALL_ARGS.
  • Pre-existing (advisory): stills.py and narration.py each bind defaults.json captions to media_captions; loudness two-pass and its report shape are built in both render.py and stills.py.
  • Pre-existing (advisory): stitch.json keys are documented only in code; give the shape one home.
  • Pre-existing (advisory): README and schema restate defaults.json values (3840x2160, CRF 18, SSIM 0.999, 24%, 10 MB) without a pointer.
  • Pre-existing (advisory): Playwright for Python's Chromium downloads uncached on every mediarender CI leg.
  • Pre-existing (advisory): stills.py runs whatever --stitcher its caller passes; the default-branch-only rule for stitcher and frame_stylesheet is held by the produce skill, not the script.
  • Pre-existing (advisory): smaller design notes from the review: captions_only_hold.seconds_per_word vs captions.seconds_per_word, the two path-containment helpers' names, RISK_LEVELS and 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

kyle-sexton and others added 14 commits November 13, 2026 18:18
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
… 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
…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
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 14, 2026 02:04
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T02:07:58.109493Z a088c72 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg base
Run job failure
Activity step skipped
Commits pushed none (read lane)
Run 43544262622

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread lib/media-render/media_timeline.py Resolved
Comment thread lib/media-render/media_timeline.py Resolved
- 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
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43546070738

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

…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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-security-review: 2 inline finding(s) on b9d83cc292ccbb2f42402ffc0f025959f47c9fbd; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 9799cfb67d83997732f8f12147694f87d9555dd2: read 13 of 13 changed file(s); 0 finding(s), 0 as inline comments.

Security review: incremental, b9d83cc → 9799cfb (13 of 13 files read)

This review covered only blocking findings (blocking only: yes), so SUGGESTION findings were left out. It found no security issues in the change since the last reviewed head.

critical-findings: 0

Checked:

  • Last round's finding is fixed (both copies of media_templates/__init__.py, frame_text). The walk now skips image and sidecar only at the top level of a screenshot moment's data. The skip list paths is empty for every other template, and top is passed only on the first call. A value nested under either key is now walked and scanned. test_frame_text_scans_a_nested_image_or_sidecar_value_the_frame_draws covers both keys, and the vendored copy matches the canonical one. That thread is settled with no lines changed since, so this review does not raise it again.
  • The new GENERIC exemption (media_scan.py) turns off only the bare-word hostname and user-name checks, and only for stock account and host names such as root, runner and localhost. These names identify no one. The secret rules, the home-path checks and extra config patterns still run, and fail-closed handling is unchanged. A real personal user name or a runner's unique hostname is still matched.
  • Stricter media_timeline.parse validation: chapters need a string id and title, and narration must be a string. The error messages name a chapter by its position, not its content, so no unscanned storyboard text reaches stderr. _synthetic and cue_runs only compute timings.
  • The new catch-all in stills.py main turns any exception into fail(2, "<Type>: <msg>"). Before this change an uncaught exception printed a traceback with the same message, so nothing new reaches stderr. The change also removes the traceback.
  • No trust controls, workflows, plugin manifests or instruction files are in this increment.

…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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 3 inline finding(s) on b9d83cc292ccbb2f42402ffc0f025959f47c9fbd; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread lib/media-render/media_timeline.py Resolved
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 9799cfb67d83997732f8f12147694f87d9555dd2: read 13 of 13 changed file(s); 0 finding(s), 0 as inline comments.

Code review: incremental, b9d83cc → 9799cfb (blocking only)

Scope. This review covers only what changed since b9d83cc. I read every hunk of all 13 files in the incremental diff:

  • the canonical lib/media-render modules and their tests: media_captions, media_scan, media_templates, media_timeline
  • their generated copies in plugins/explainer-video/scripts/
  • stills.py and its test

For context I also read the head versions of lib/media-render/media_captions.py, lib/media-render/media_timeline.py and plugins/explainer-video/scripts/stills.py. This lane already reviewed an earlier head, so this review reports blocking findings only.

This lane's 3 earlier findings are all fixed:

  • parse accepted shapes that later code could not handle. parse now defaults narration to '' and rejects a non-string value. It also requires every chapter to be a dict with a non-empty string id and title. As a result, timeline, _chapters and the chapters mapping in stills.py can now index safely. Tests cover each case.
  • Failures with no manifest exited 1. main() now wraps _run() and turns any Exception into fail(2, …). That covers the storyboard and stylesheet reads, out.iterdir() on a file, and Playwright errors that are not RuntimeError. Exit 1 is now returned only after manifest.json is written, at line 269. In the new test, --out BOARD fails at iterdir() before anything is deleted, so the fixture is not touched.
  • Common account and host names blocked normal narration. A GENERIC set now skips only the hostname and user-name checks, and the comparison ignores case. Home paths and config patterns are still checked.

Other changes checked and found consistent:

  • Settled threads. The frame_text fix limits the image/sidecar skip to a screenshot moment's top-level data. The captions-only timing fix is also in. Both threads are settled and I did not re-raise them.
  • Captions-only timing (_synthetic). It splits each beat with the same cue_runs that captions() uses, so the runs match. Each run spans at least min_seconds, because the 3-decimal ceiling rounds the per-word step up. The moment's hold grows to end - t + extra_seconds, so the next beat always starts after this beat's last run. stills.py passes DEFAULTS['captions'], the same max_words/min_seconds it later uses at line 204. When narration is supplied, the path is unchanged.
  • Generated copies. Each hunk in plugins/explainer-video/scripts/ matches its canonical file.

Closing issue: none. The PR closes no issue, so there are no acceptance criteria to check.

Plugin manifests: this push changes no plugin.json or marketplace.json.

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
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 9799cfb67d83997732f8f12147694f87d9555dd2. What it wrote, as data:

What it wrote (86 lines)
Summary: Whole spec, fail: PR #16090 links no issue, so spec.json is empty and the spec is the PR's
  own trusted body (spec_kind pull-request). I read all seven listed files whole. Chunks 1 and 2
  together deliver the outcome: the lib/media-render library vendored into explainer-video, with
  chunk 2 adding the shared-copies registry rows and the CSS sync header. They also deliver
  stills.py and its settings, render.py moving onto the library, ADRs 0102-0107, all four Fix items,
  AC11 (explainer-video is the only plugin moved, and its output is unchanged) and AC13 (as
  superseded). The manifest's files plausibly hold each of these. The PR body says the PR delivers
  only "Phase 1's share" of the acceptance criteria. Under the rules, though, only person_checks or
  credited_siblings can excuse an item, and here there are none. Chunk 1 says plainly that AC4, AC6,
  AC7, AC10, AC12 and AC15 are delivered only in part, and no chunk delivers the rest. The two chunk
  results do not contradict each other, neither reports a change in one chunk breaking a file in the
  other, and neither contains text that tries to steer the verifier.
Chunk 1 of 2, pass-notes: Spec: PR #16090 links no issue, so the spec is its own trusted body
  (spec_kind pull-request). The body scopes this PR to Phase 1 of a larger plan. I read all 21 parts
  of chunk 1 whole, plus chunk-2/part-001.patch: the vendored copies, plan-test-lanes.sh and the
  ffmpeg render path depend on the files it holds (shared-copies.txt registry, the CSS header in
  sync-shared-copies.sh, and the plan-test-lanes test). No binary files. The capture was blocked
  (R41), which is neutral. I found no text that tries to steer a reviewer.

What these parts deliver in full:
- Shared library `lib/media-render`: capture, templates, timeline, captions, encode, loudness,
  verify, size, sheet and scan, with tests. It is vendored into explainer-video and registered in
  shared-copies.txt.
- `stills.py` with the `stitcher`, `frame_stylesheet` and `upload_limit_mb` settings, in schema,
  defaults and README.
- `lib/default-branch-file.sh` reads a file from the default branch by commit SHA. Its test covers a
  local branch named `origin/HEAD` and working-tree edits.
- `render.py` now muxes, normalizes loudness and builds captions through the library with the same
  ffmpeg arguments. `test_mux_keeps_the_explainer_arguments` pins them, and the error catch was
  widened to `EncodeError`.
- ADRs 0102-0107.
- Every item under Fix:
Chunk 2 of 2, pass: Chunk 2 of 2 for PR #16090. There is no linked issue, so the spec is the PR's
  own trusted title and body (spec_kind pull-request): Phase 1 of the produced-PR-video plan. That
  means a shared lib/media-render library vendored into explainer-video, a stills renderer, and the
  CI and sync support around them. This chunk holds four files: scripts/plan-test-lanes.test.sh,
  scripts/shared-copies.txt, scripts/sync-shared-copies.sh and scripts/sync-shared-copies.test.sh. I
  read them whole, plus the manifest.

What these parts deliver:
(1) Registry rows in shared-copies.txt that generate explainer-video's copies of the new library.
  The rows cover media_capture, captions, encode, loudness, scan, sheet, size, timeline and verify,
  media_templates/__init__.py and frames.css, plus lib/redact.py and lib/default-branch-file.sh.
  Every path matches a canonical file and a vendored copy that chunk 1's manifest lists. This is the
  "vendored into explainer-video" share of the Summary, and the sync-gate share of AC10 for
  explainer-video only.
(2) A new *.css case in sync-shared-copies.sh. Generated CSS copies now open with a two-line /*
  GENERATED ... */ block comment, a valid header for the CSS copy frames.css. A new test checks the
  exact bytes and that --check passes on the copy.
(3) A regression test in plan-test-la
- plugins/explainer-video/scripts/stills.py: AC4 is only partly delivered. Captions and chapter
  start times in the manifest are done, but there is no separate title card per chapter (the chapter
  title shows only in each frame's header) and no PR section listing chapter start times. Add both,
  or narrow AC4 in the spec.
- AC6 is only partly delivered. `--no-audio` gives a captions-only video plus contact sheet, but the
  fallback to a secondary voice when edge-tts is unreachable is missing (Phase 2). Deliver it, or
  narrow AC6 in the spec.
- AC7 is only partly delivered. A planted secret or home path stops the render, but stopping the
  upload and any online-voice request is not delivered. Deliver it, or narrow AC7 in the spec.
- AC10 is only partly delivered. Only explainer-video uses the shared library; the animation,
  playwright demo-video and pixel-art encode and capture paths do not. Move them, or narrow AC10 in
  the spec.
- AC12 is only partly delivered. Stitcher and theme switch by configuration, but voice and renderer
  switching by configuration alone is not delivered. Deliver it, or narrow AC12 in the spec.
- plugins/explainer-video/skills/produce/SKILL.md: AC15 is only partly delivered. Only
  explainer-video:produce gains Related and Next; explain-change, education:illustrate,
  playwright:demo-video, source-control:pull-request and review:reviewer-media do not. Add them, or
  narrow AC15 in the spec.
- scripts/check-changed-links-online.sh:293: work the PR body does not mention. The online link
  check now skips links to this repository's base branch when the path exists at HEAD. It looks
  needed so the SKILL.md ADR link can pass before merge, but it narrows a CI check; a maintainer
  should confirm.
- .github/workflows/pr-require-checks.yml:63: the gitleaks exclude adds
  `plugins/*/vendor/gitleaks/gitleaks-rules.json`. It is narrower than the existing vendor globs,
  and gitleaks-vendor-copies.test.sh pins the copy byte-for-byte to the session-flow original, but
  it still widens the secret-scan exclusions.
- plugins/explainer-video/scripts/stills.py: the rule that `stitcher` and `frame_stylesheet` come
  only from the default branch exists only in the produce SKILL.md instructions. stills.py runs
  whatever `--stitcher` command its caller passes, so the guard depends on the agent following the
  skill.
- plugins/explainer-video/skills/produce/SKILL.md: the Related section names `/education:illustrate`
  and the review plugin's reviewer-media skill as current callers. Neither exists yet; they land in
  later phases.
- plugins/explainer-video/scripts/stills.py: AC4 asks for a chapter title card per chapter. The
  stills frames show the chapter title in each frame's header and render no separate title card.
  Treat it as partly delivered unless a later phase adds one.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 14, 2026
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 14, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 2cdd1a8 Nov 14, 2026
109 checks passed
@kyle-sexton
kyle-sexton deleted the feat/produced-video-pr-walkthrough branch November 14, 2026 03:41
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant