commit a7063311ae4ccf93c65bb586e08e34c78d14ae9b
parent d3ea193a58298bff55bc955a1deb99b7d337dd06
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sat, 17 Oct 2026 17:19:08 -0400
plans: release 33 M3 as shipped — render.montage and the named montage styles
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 74 insertions(+), 0 deletions(-)
diff --git a/plans/release-33/montage.md b/plans/release-33/montage.md
@@ -0,0 +1,74 @@
+# Release 33 lane M3 — montage editing in report-to-video (as shipped)
+
+The operator asked (2026-10-17) for a montage of every time TheQuartering said "slow news day/week/cycle", kept
+chronological, with editing techniques worth auditioning as variants. This lane is the renderer half:
+`render.montage` in report-to-video and the named styles umtool's take maker (lane M1) lists.
+
+## What
+
+1. **`render.montage`** (`umtool/report-to-video/montage.mjs`, pure; build-video's hooks run only when it is set):
+ - `tighten: "phrase"` cuts each clip to the phrase ± `phrasePad` (0.6 s) inside its extent. The phrase is the clip's
+ `montage.match` (else `onscreen.title`), found by character position in the clip's cues, or by whisper.cpp's token
+ offsets in the corpus's `transcript.json` when present. Edges snap to silence (the existing `snap`) only where the
+ snap stays outside the phrase, inside the extent and under the ramp's cap. Not found: today's cut, and a note.
+ - `cut: hard | flash | whip | dip` — made on each segment's own first/last frames (flash 3 frames from the colour;
+ dip 2+2 frames through black; whip 4+4 frames sliding, wrapped, blurred along the move). Every segment's sound
+ fades 15 ms at each edge.
+ - `counter: {style: chip | big | tally, position, of, showDate, showSource}` and `yearStamp` — drawtext/drawbox over
+ the frame.
+ - `punch: {mode: snap | drift, scale, anchor: upper | center}`, `stutter: {every, clips, times 2–4, length, step}`,
+ `ramp: {from, to}` (cut k ≤ lerp(from, to, k/(N−1))) — the segment's pieces (trim/crop/concat) and a zoompan.
+ - `wall: {at: end | start, tiles: 9 | 16 | 25, build, year}` — one more segment: tiles appear at
+ build·(1−(1−i/T)²), the newest heard and the rest ducked, then all together at the beat.
+ - A montage's concat is always hard (the cuts are in the segments), so a segment's length is planned to the frame
+ and recorded (`<id>.cut.json` `montage.frames`).
+2. **`montage-styles.mjs`** — the shared interface with M1: `MONTAGE_STYLES` (`straight`, `flash-count`,
+ `accelerate`, `stutter`, `wall-finale`, `whip-years`; plain-words label and summary; an RFC 7386 merge patch under
+ `render.montage` that sets every key), `montageStyle(name)` (deep copy), `mergePatch`, `applyMontageStyle`, and a
+ `list` / `apply` CLI. Landed first (`dae55bc7`).
+3. **Validation** — `validateMontage` in the build's validators and the lint: unknown keys, bad values, a ramp without
+ `tighten: "phrase"`, stutter ids not in the timeline, and a montage beside the deck, the rail, the chart band or a
+ clip `muteFrom`, each in a sentence naming the key.
+4. **verify-build** counts the wall's chapter, and a phrase-cut clip's floor is 0.5 s.
+
+## Files
+
+`umtool/report-to-video/montage.mjs` (new), `montage-styles.mjs` (new), `montage.test.mjs` (new, 32 tests),
+`montage-styles.test.mjs` (new, 6 tests), `build-video.mjs` (imports, the validator, `montageCut` /
+`montageSegmentGraph` / `buildMontageWall`, the forced hard join, the wall in the entries and `--chapters-only`),
+`lint.mjs` (one validator), `verify-build.mjs`, `README.md` ("`render.montage` — montage editing"),
+`umtool/docs/report-video.md` ("Montages"), `editor/CHANGELOG.md`, `plans/FACTS.md`.
+
+| Commit | What |
+| --- | --- |
+| `dae55bc7` | montage-styles.mjs — the named styles (the shared interface), merge patch, CLI; 6 tests |
+| `bf3a0553` | render.montage in the renderer (montage.mjs + build-video hooks + lint); 32 tests incl. a render per style |
+| `6ec868a4` | verify-build knows the wall and the phrase-cut floor |
+| `b66e5399` | docs (README, docs/report-video.md, FACTS, CHANGELOG); the tally's date line on its own ground (found by the smoke) |
+| (this commit) | this record |
+
+## Gates
+
+All through the shared heavy lock, from the worktree root:
+- `pnpm -r --no-bail --workspace-concurrency=1 exec tsc --noEmit`: clean before each commit.
+- `pnpm run test:scripts`: **1056 (1052 pass, 4 skipped) at `main` `643434f7` → 1094 (1090 pass, 0 fail, 4 skipped)**.
+ `montage.test.mjs` alone 32/32 (~33 s, real 320×180 renders of each style over lavfi clips: length to ±1 frame of
+ the cut records' plan, pixel checks for the flash, the chip, the big number, the tally's newest mark, the punch-in,
+ the whip, the dip, the year stamp, the wall's last tile, and verifyBuild on the wall).
+- Byte-identical: the same 4-clip manifest without `render.montage` rendered by `main`'s and the branch's
+ build-video — identical md5 for the final and all four segments; in-suite, absent vs `null` identical.
+- Not touched, not run: common, editor unit, mcp, umtool TS (`pnpm --filter umtool test`), e2e (no UI in this lane),
+ builds. No CLI row, env var, settings or file schema in the generated docs changed.
+
+## Live smoke (read-only on the project)
+
+`~/reports/quartering-slow-news/video.manifest.json` copied to the job's scratch. With the project's `fetchPad: 3`
+no clip was on disk for `--no-network`: the editor's windows are exactly each clip's extent. With `fetchPad: 0` on the
+copy, 17 of 75 were; 12 of them (2019–2026) were rendered with each style, `--no-network --cue-source local`, preset
+veryfast: straight 30.1 s, flash-count 30.1 s, accelerate 26.0 s, stutter 31.6 s, wall-finale 39.3 s (16 tiles
+over 12 clips), whip-years 30.1 s; every phrase found in the cues, verify-build ok on all six.
+
+## Rulings followed
+
+No cards (the wall and the counter are footage and overlays); plain words in labels and summaries; nothing calls a
+model; synthetic fixtures only; the project read only.