commit c44c59e1796c4044abfafd7a5401ac72ae96ebc9
parent 13453a2542ca552fd81b5e96b04e92f8a30244c3
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Thu, 22 Oct 2026 10:50:07 -0400
docs: the video knobs -- claim at/hold/stamp/count/label, the stamp's look, clip audio, marker align and stagger, variants, the sync report; plans/video-knobs-core.md
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
4 files changed, 333 insertions(+), 7 deletions(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -1,6 +1,7 @@
# Changelog
## [Unreleased]
+- **A report video's sound stays with its picture from the first clip to the last.** A clip whose sound started late (its cut reached back before the fetched window's media) or had a gap in it (a seam in the source's stream) used to pull that clip's sound, and every later clip's, early — on a 20-minute cut by half a second from the 13th minute on. Each clip's sound is now laid on its own clock before the clips are joined, and every build writes `sync.json` beside its schedule saying where each clip's sound landed against its picture; the build log names any clip more than a frame off. A video's manifest can now also set when a fact-check stamp lands and the count steps (`claim.at`, a second of the source), how long it stays, a count of more than one, a stamp that counts without showing, the stamp's words, size, entrance and opacity; nudge a clip's sound against its picture, its volume and fades (`audio`); align a timeline flag's label and lay crowded labels in two rows; and `node umtool/report-to-video/variants.mjs <take out dir>` makes smaller copies of a finished cut — 1080p, 720p and one under 24 MiB by default (`render.variants`). Needs a rebuild of the video.
- **A fact-check video can count without the stamp, colour its timeline by verdict, flag the moments time passes, and leave the QR off posts.** In umtool's fact-check form, **stamp effect** off draws no verdict stamp over the footage, while the tally in the panel still counts each claim at the second its stamp would have landed. The On-screen settings have **colour** under timeline: **verdict** lights each clip that carries a claim in its verdict's colour — the tally's colour — with a shape per verdict (circle, diamond, square, triangle, ring), and the tally's cells carry the same shapes. **qr codes** under posts off leaves the QR off every post card, popup or feed, and the words take its width; each clip's own QR stays. A video's manifest can flag moments on the timeline (`render.chrome.deck.markers`: "3 to 5 weeks pass" after a clip), each popping in as the timeline reaches it and staying lit. Needs a restart of umtool.
- **The dashboard says when a service's cookies have gone stale, and what to do.** When Rumble refuses its embeds with a 403 on two different videos in a row (one is not enough — a removed video answers 403 too), when YouTube asks to confirm you're not a bot, when Odysee answers with Cloudflare's check, when a forum's browser check or login wall stops a thread, or when archive.today answers with its check page, a banner at the top of the dashboard says so — "Rumble needs fresh cookies: open rumble.com in firefox" — with the jobs it happened in. **Recheck** asks the service once, through the same path and cookies the jobs use, and clears the banner when it answers; the next clean request clears it by itself too, and **Dismiss** clears it by hand. Once it is clear the banner says "OK again" and offers **Re-run stopped jobs**, which retries the jobs it stopped. The stopped job's log ends with the cause and the fix, `archilyzer doctor` lists it under "service cookies", and a Connect forum session or Connect archive session that ends on a cleared page clears the matching banner. From a terminal: `pnpm ops get services`, `recheck-service`, `rerun-service-jobs` and `dismiss-service`. Odysee's check is recognised by Cloudflare's own words beside a 403; no real Odysee sample has been seen yet. Needs a restart of the editor.
- **archive.today copies are page records too, like Wayback captures.** The channel kind is now **Archived pages** on the New channel form (paste an archive.today copy's URL, `archive.ph/newest/<page>`, and the channel's target is that page on archive.today), and each target says where its copies are looked for: the Wayback Machine, archive.today, or both. The channel page's **Import a capture** takes an archive.today copy's URL (`archive.ph/<id>`, or any of its other names), or the page's own URL, a date and **on archive.today** for the copy nearest that date; the copy is kept as archive.today served it and read without its header bar, links back to the pages they pointed at, so a tweet, a Tumblr post or an article gives the same records it would from the Wayback Machine — each saying it came from archive.today and linking that copy, its images archive.today's own copies. archive.today is asked one request at a time, eight seconds apart; when it says "too many requests" the import stops with a sentence and nothing more is asked of it for half an hour. When it answers with a CAPTCHA instead of the copy, the import is refused and never reads the CAPTCHA as a page: **Connect archive session** (on the channel page, and in Settings → Archive sources) opens a window on the editor's machine to pass the check once, and the next import reads through it; nothing is ever solved for you. **Look up a page** lists every copy each archive holds of a page, with an Import button on each. From a terminal: `pnpm ops import-page` takes `"source": "archive.today"`, `pnpm ops archive-lookup` lists the copies, and `pnpm archilyzer archive lookup <url>` runs without the editor. Needs a restart of the editor.
diff --git a/plans/video-knobs-core.md b/plans/video-knobs-core.md
@@ -0,0 +1,121 @@
+# Video knobs — the core (lane `lane/knobs-core`, K1)
+
+Asked by the operator on 2026-10-22 on the Huck seizure video: count seizures, bring the stamps back for the
+clip that steps a count and set where it lands per clip, fix the sound drifting toward 16 minutes, make
+quality variants to share elsewhere, and "add any knobs you can think of … deep human involvement as well as
+AI control". The plan is `video-knobs-plan.md` (the orchestrator's); this lane is its "desync", "Shared
+shapes" and "K1 core". K2 (`lane/knobs-ui`) builds the writers, routes, UI and CLI against the same shapes.
+
+## The desync
+
+Measured on `polemic-huck` (26 clips, xfade 0.5 s, two crossfade batches): `first … ten-k` sound 68 ms early,
+`rescue … blend` 469 ms early.
+
+Causes:
+
+- **rescue (469 ms).** The cut starts at source 2567.04; the editor's window file
+ (`2563.74-2594.40.mp4`) has no media before 3.79 s of its own clock (audio 3.7905, video 3.8333), so
+ `fetchStart` moves to 2567.53 and the segment's cut starts 0.49 s before the media. The segment encode
+ keeps timestamps: its picture holds the first frame from 0, its sound starts at 0.4687 s. In sync by
+ timestamps — but `xfadeGraph`'s pin (`apad`, `atrim`, `asetpts=PTS-STARTPTS`) and `acrossfade` count
+ samples, so the sound moved 469 ms early, and every later clip in the batch with it.
+- **first … ten-k (68 ms).** `fed`'s source window (`6112.50-6159.50.mp4`) has two holes in its audio
+ timestamps at 42.69 s (51 ms + 17 ms, an HLS seam), carried into `fed.mp4` at 38.21 s. Decoded, fed's
+ sound is 67.7 ms short of its timeline; the pinned graph pads that at fed's END, so everything after the
+ hole — the rest of fed, then every later clip in batch 1 — plays 68 ms early. Batch 1's sound is 67.7 ms
+ shorter than its picture (612.366 vs 612.433), batch 2's 469 ms; the join pass re-pins per batch, which
+ is why each batch reset it.
+
+Fix: `AUDIO_ON_CLOCK` (`clip-audio.mjs`) = `aresample=async=1:min_hard_comp=0.01:first_pts=0` — silence
+where a sound starts late or a hole opens, samples dropped where two overlap, anything over 10 ms; a
+sound with neither passes sample for sample (checked: identical PCM). Applied:
+
+- at the segment encode (every non-montage clip's sound), so new segments are continuous from 0; the
+ build notes a cut that starts before its source's media;
+- in `xfadeGraph`'s pin (one pass, each batch, the join pass);
+- in `hardCutFilterArgs` (the concat filter) and `previewFromSegmentsArgs`' concat.
+
+Proof: the Huck cut's SOUND re-assembled from its real segments with the fixed graph, batched as the build
+batches it (audio only, no render), measured with `lag.py` — every clip 0 ms:
+
+| clips | before | after |
+|---|---|---|
+| arrive, fed | 0 | 0 |
+| first … ten-k (11) | −68 / −67 ms | 0 |
+| gold, post-results, offset | 0 | 0 |
+| rescue … blend (10) | −469 / −468 ms | 0 |
+
+`sync-report.mjs` reads the current final exactly as `lag.py` did (0, −68, −469).
+`av-clock.test.mjs`: a segment whose audio starts 0.5 s late and one with a 60 ms hole, through one
+crossfade pass, a batched pass and the hard cut: every burst within a frame; with the align swapped for
+`anull` it fails (the late one 400+ ms early).
+
+## The sync report
+
+After every build and `--chrome-only`: `<out>/<variant>/sync.json` `{ at, fps, items: [{ id, start, lagMs,
+peak }] }`, clips only; the build log names each clip more than a frame off. lag.py's method in node:
+mono 4 kHz, the segment's sound over a window past its joins (≤ 6 s from 3 s in) found in the final within
+±2.5 s, coarse at 1 kHz then fine (~6 s for the 26-clip cut). `REPORT_VIDEO_SYNC=0` skips it; it never
+fails a build.
+
+## The knobs
+
+All optional; absent, the schedule, the pages and the segments are the bytes they were (the existing
+byte-identity tests pass unchanged).
+
+| Key | Range · default | What |
+|---|---|---|
+| `claim.at` | a source second inside the clip's `start`–`end` · the usual timing | the stamp lands and the tally steps there, mapped through the segment's real source start (its cut record: snapped, room included; estimate/preview: the play window's start). The schedule's stamped segment carries `sourceFrom`. Read from the entry that stamps (the last carrying the id). |
+| `claim.hold` | 0.5–10 s · `stamp.seconds` | how long the stamp stays from its start (without `at`: comes in `hold` before the segment's out) |
+| `claim.stamp` | bool · true | false: counted, not drawn (`drawnStamps`; `stampsDrawn` false when none is drawn) |
+| `claim.count` | whole 1–99 · 1 | the tally steps by n (`tallySteps` `step`, `tallyFinals`; each count still its own number element) |
+| `claim.label` | ≤ 20 chars · verdict's `stampLabel`, else `label` | the stamp's words |
+| `factcheck.stamp.scale` | 0.5–2 · 1 | the stamp region's size (`stampGeometry`), inside the footage box |
+| `factcheck.stamp.motion` | slam/pop/fade/none · slam | the entrance, ending at `landed`; slam and pop flash; none leaves at once |
+| `factcheck.stamp.opacity` | 0.3–1 · 1 | the whole stamp region's (written only when not 1) |
+| `factcheck.verdicts.<V>.stampLabel` | ≤ 24 chars · `label` | validated in factcheck.mjs (common's override rule checks the rest) |
+| clip `audio.offset` | −2000–2000 ms · 0 | + = sound later; read from the source again at the shifted window (a last input; `-itsoffset` past the head) |
+| clip `audio.gain` | −20–20 dB · 0 | after levelling and room |
+| clip `audio.fadeIn`, `fadeOut` | 0–5 s · 0 | at the segment's edges |
+| `deck.markers[].align` | auto/left/right/center · auto | the label against its flag; a neighbour reading away lets a label reach up to it |
+| `deck.markerLayout` | stagger/truncate · stagger | crowded labels in two rows (every split tried; most labels fitting wins); band +22 px (`MARKER_ROW`); row 1's sticks reach up, row 0 keeps 8 px clear of them; a still-long label ellipsized |
+| `render.variants` | ≤ 12 · master, 1080p crf 22, 720p crf 23, fit24 ≤ 24 MiB | `variants.mjs`: crf variants at their height (sound and chapters copied); maxMiB two-pass at the largest of 1080/720/480 keeping 100 kb/s per 480p of pixels, AAC 48 mono under 300 kb/s total (else 96 stereo), retried 6 % lower while over (four tries) |
+
+The crowded-marker case (9 grey chapter flags + 2 red, the last three within 200 px of the track's end):
+one row fits 7 of 11, two rows 9 of 11. Three ~200 px labels on 140 px of track cannot all fit two rows; the
+rest are ellipsized. The Huck timeline take's two markers fit one row and lay as before.
+
+## Exports for K2
+
+- `validateClipAudio(audio, where?) → string[]` — `umtool-report-to-video/clip-audio`
+ (also `validateClipAudioEntries`, `CLIP_AUDIO_LIMITS`, `clipAudioOf`).
+- `encodeVariants(outDir, { slug, variants, only, source, onLog })`, `validateVariants`, `variantsOf`,
+ `DEFAULT_VARIANTS`, `VARIANTS_FILE` — `umtool-report-to-video/variants`.
+- `SYNC_FILE`, `writeSyncReport`, `SYNC_WEAK_PEAK` — `umtool-report-to-video/sync-report`.
+- `normalizeClaim` accepts and returns the knobs; `CLAIM_KEYS`, `CLAIM_LIMITS`, `STAMP_MOTIONS`,
+ `FACTCHECK_LIMITS.scale/opacity` — factcheck.
+- `MARKER_ALIGNS`, `MARKER_LAYOUTS`, `MARKER_ROW`, `markerLabelWidth`, `markerRowsOf`,
+ `deckLayout(render, { tally, schedule })` — deck.
+
+## Left to K2 / open
+
+- `app/api/report/chrome/preview/route.ts` returns `deckLayout(render, { tally })`: pass `schedule` too, or
+ a staggered band's geometry differs from the page's.
+- `lib/report/manifest.mjs`' claim types (`{ id, verdict }`) and `normalizeClaimsDraft` carry the knobs
+ only as far as `normalizeClaim` does; the writers are K2's.
+- `lib/report/onscreen.mjs` `previewSchedule` places `claim.at` from the built segment's `sourceFrom`, else
+ the play window's start (a claim given `at` after the build previews up to a snap's distance off until
+ the next build).
+- A montage clip's `audio` is not applied (its graph cuts its own sound); the build says so.
+- The real Huck cut has not been re-rendered here (the orchestrator's rollout); the proof above is the
+ sound re-assembled from its real segments.
+
+## Files
+
+`umtool/report-to-video/`: `clip-audio.mjs` (new), `sync-report.mjs` (new), `variants.mjs` (new),
+`build-video.mjs`, `factcheck.mjs`, `chrome-stamp.mjs`, `chrome-deck.mjs`, `deck.mjs`, `compose-chrome.mjs`,
+`lint.mjs`, `package.json` (exports `./clip-audio`, `./sync-report`, `./variants`; bin `report-variants`);
+tests `av-clock`, `sync-report`, `claim-knobs`, `clip-audio`, `deck-markers-layout`, `variants` (new) and
+the graph strings in `cut-edits`, `deck-overlay`, `deck-room`, `factcheck`. `umtool/lib/report/onscreen.mjs`
+(the preview's source clock for `claim.at`). Docs: `umtool/report-to-video/README.md`,
+`umtool/docs/report-video.md`, `editor/CHANGELOG.md`.
diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md
@@ -371,6 +371,43 @@ through, with the fact-check block and the other regions (threads, flips,
stats, fx), as saved. With the stamps off the preview composes no stamp
region (`stampsDrawn`).
+### The video's knobs (the pipeline's side)
+
+Every knob below is a manifest key the build reads; absent, the render is
+the one it always was. The pipeline's README has each in full, with its range
+and default.
+
+| where | key | range · default | what |
+|---|---|---|---|
+| a claimed entry's `claim` | `at` | a source second in the clip's window · the stamp's usual timing | when the stamp lands and the tally steps |
+| | `hold` | 0.5–10 s · `factcheck.stamp.seconds` | how long the stamp stays |
+| | `stamp` | true/false · true | false: counted, not drawn |
+| | `count` | 1–99 · 1 | the tally's step |
+| | `label` | ≤ 20 chars · the verdict's stamp label | the stamp's words |
+| `render.chrome.factcheck.stamp` | `scale` | 0.5–2 · 1 | the stamp's size |
+| | `motion` | slam/pop/fade/none · slam | its entrance |
+| | `opacity` | 0.3–1 · 1 | |
+| `render.chrome.factcheck.verdicts.<V>` | `stampLabel` | ≤ 24 chars · its `label` | the stamp's word beside the tally's |
+| a clip's `audio` | `offset` | −2000–2000 ms · 0 | + = sound later |
+| | `gain` | −20–20 dB · 0 | |
+| | `fadeIn`, `fadeOut` | 0–5 s · 0 | |
+| `render.chrome.deck.markers[]` | `align` | auto/left/right/center · auto | the label against its flag |
+| `render.chrome.deck` | `markerLayout` | stagger/truncate · stagger | crowded labels in two rows |
+| `render` | `variants` | a ladder · master, 1080p crf 22, 720p crf 23, fit24 ≤ 24 MiB | Make variants |
+
+Sections: [claim knobs](../report-to-video/README.md#a-claims-own-knobs),
+[the stamp's look](../report-to-video/README.md#the-stamps-look),
+[clip audio](../report-to-video/README.md#a-clips-audio--sync-nudge-gain-fades),
+[markers](../report-to-video/README.md#deckmarkers--flags-on-the-pip-track),
+[variants](../report-to-video/README.md#quality-variants-rendervariants-variantsmjs),
+[sync](../report-to-video/README.md#every-clips-sound-on-its-own-clock-and-syncjson).
+
+After every build the take's `out/<variant>/sync.json` says where each clip's
+sound landed against its picture (`lagMs`, + = late; `peak`, how well it
+matched); the build log names any clip more than a frame off.
+`node umtool/report-to-video/variants.mjs <take out dir> [--only …]` makes the
+ladder beside the cut (`<slug>.<name>.mp4`, `variants.json`).
+
### Preview, before and without a build
`POST /api/report/chrome/preview` composes `out/<variant>/chrome/deck-preview/`
diff --git a/umtool/report-to-video/README.md b/umtool/report-to-video/README.md
@@ -380,6 +380,31 @@ on the last frame. It is for a cut that
ends on a clip; once a finale entry follows the last clip, the ordinary
crossfade into it does the job and `endFade` fades the finale instead.
+### A clip's `audio` — sync nudge, gain, fades
+
+```jsonc
+{ "type": "clip", "id": "c07", …,
+ "audio": { "offset": 120, "gain": -3, "fadeIn": 0.5, "fadeOut": 1 } }
+```
+
+| key | range | default | what |
+|---|---|---|---|
+| `offset` | −2000…2000 ms | 0 | the sound against the picture; **+ is later** |
+| `gain` | −20…20 dB | 0 | after any levelling (`render.loudness`) and room |
+| `fadeIn` | 0…5 s | 0 | from the segment's first sample |
+| `fadeOut` | 0…5 s | 0 | to its last |
+
+Applied at the segment encode (`clip-audio.mjs`), so a change rebuilds that
+clip's segment. The offset reads the sound from the source again over the
+shifted window — one more input, the last — so nothing is cut off the far
+end; past the file's head the gap is silence. Every key is optional and a
+zero does nothing: a clip without `audio` encodes as it did. The cut record
+(`segments/<id>.cut.json`) keeps the knobs it used. `validateClipAudio(audio)`
+is the one validator (umtool's `updateClip` calls it);
+`validateClipAudioEntries(manifest)` runs in the build and the lint. A
+montage cuts its own sound: there the knobs are not applied, and the build
+says so.
+
### `render.chrome` — the on-screen deck's settings, and per-entry `onscreen`
Opt-in (`render.chrome.engine: "hyperframes"`, `layout: "deck"`) — see
@@ -476,20 +501,41 @@ timeline itself:
next pip — their midpoint; with `pip.spacing: "time"` the second the two
segments hand over (the next one's mid-dissolve). After the last clip it
stands halfway to the track's end. Its label stands in a band above the
- track: with any marker the track moves down 10 px (`MARKER_BAND`) and the
+ track: with any marker the track moves down 22 px (`MARKER_BAND`) and the
body under it with it; without one the deck lays out as it always did.
- **When.** Hidden until the fuse burns past the flag, then a short pop (scale
and opacity, `MARKER_POP`), lit for the rest of the cut; it slides away and
back with the panel. A flag after the last clip pops a second before that
clip ends.
-- **Labels.** One line, at most 24 characters, uppercased; each label's box
- reaches at most halfway to the next flag either side (and 240 px at most),
- and a label that does not fit ends in an ellipsis rather than running into
- its neighbour. The band is above everything in the body, so a label never
- meets the tally or the QR.
+- **Labels.** One line, at most 24 characters, uppercased, 18 px; each label's
+ box reaches at most halfway to the next flag either side (and 360 px at
+ most), and a label that does not fit ends in an ellipsis rather than running
+ into its neighbour. The band is above everything in the body, so a label
+ never meets the tally or the QR.
+- **`align`** (per marker, default `"auto"`): `"auto"` centres the label on
+ its flag when that leaves it the room, else gives it the whole stretch it
+ may take (a flag near the track's end); `"left"` starts the label at its
+ flag and reads on to the right; `"right"` ends it at the flag; `"center"`
+ centres it always. A neighbour whose label reads AWAY from a flag lets the
+ flag's label reach right up to it (3 px short) instead of stopping halfway.
+- **`deck.markerLayout`** (`"stagger"`, the default, or `"truncate"`). When a
+ label would not fit its box (`markerLabelWidth`: its characters at a bold
+ sans's advances, a little over Fira Sans Bold's measured ones), "stagger"
+ splits the flags between two rows — every split is tried and the one where
+ the most labels fit wins, then the least cut off the rest, then the fewest in
+ the upper row. The band grows by `MARKER_ROW` (22 px) and the track, the
+ title, the tally and the QR move down by it (the QR shrinks to the room
+ left, as under one row). Row 1's flags carry a stick up to their labels, a
+ row above row 0's; row 0's labels keep 8 px clear of those sticks; neither
+ row reaches the flags' heads. A label that still does not fit is ellipsized,
+ as in one row. A row that fits is laid exactly as before, whichever the
+ setting; "truncate" always keeps one row. `deckLayout(render, { schedule })`
+ is what knows the band's height — the deck page and `compose-chrome` (for
+ the QR's size) pass the schedule.
- **Refused.** `after` must name a CLIP in the timeline, the label must be
non-empty and ≤ 24 characters, at most 12 markers, a colour a hex or a
- palette key, and unknown keys are refused. `validateChrome` checks the
+ palette key, `align` one of the four, `markerLayout` one of the two, and
+ unknown keys are refused. `validateChrome` checks the
shape; `validateDeckMarkers(manifest)` (`deck.mjs`) checks the shape and
`after` against the whole timeline — the build, the lint and umtool's
writers all call it, so removing a clip a marker follows is refused until
@@ -697,6 +743,52 @@ a verdict named without a colour keeps the default's), the stamp's seconds,
corner and whether it is drawn, and whether and where the tally is drawn;
`validateChrome()` refuses an unknown key there as everywhere in the block.
+#### A claim's own knobs
+
+On the entry that STAMPS the claim — the last carrying its id; the same keys
+on an earlier entry are checked and not read:
+
+```jsonc
+"claim": { "id": "k3", "verdict": "CONTRADICTED",
+ "at": 2593.4, "hold": 4, "stamp": true, "count": 2, "label": "2 seizures" }
+```
+
+| key | range | default | what |
+|---|---|---|---|
+| `at` | a source second inside the clip's `start`–`end` | the stamp timing above | when the stamp LANDS and the tally steps |
+| `hold` | 0.5…10 s | `factcheck.stamp.seconds` | how long the stamp stays, from its start |
+| `stamp` | `true` / `false` | `true` | `false`: counted in the tally, nothing drawn |
+| `count` | whole 1…99 | 1 | what the tally steps by ("two seizures" in one clip is 2) |
+| `label` | ≤ 20 characters, one line | the verdict's `stampLabel`, else its `label` | the stamp's words for this claim |
+
+- **`at` is the SOURCE clock**, the clip's own `start`/`end` seconds, so it
+ survives a re-cut. The build maps it through the second the segment really
+ starts at — its cut record's `start`, after snapping and room — so the stamp
+ lands on the word; an estimate (umtool before a build) uses the play
+ window's start. Kept inside the segment: before its start it lands at the
+ start, past its outgoing transition at the transition. It slams in over the
+ `slam` before (`STAMP_MOTION`), stays `hold` (else `stamp.seconds`) from its
+ start and leaves over as long as the segment's transition — or with the
+ transition, if that comes first. The stamped segment in `schedule.json`
+ then carries `sourceFrom` (the source second it starts at), so a preview can
+ place the stamp again.
+- **`count`.** The tally's cell steps by n: the number it was on rolls out
+ and the one it reaches rolls in (every count up to the last has its own
+ number in the page; the ones stepped over are never shown).
+- **The schedule** carries each knob on its stamp only when set (`count`,
+ `stamp: false`, `label`), and a claim's `claim` object only the keys it
+ sets — `stamp: true` and `count: 1` are dropped — so a cut without knobs
+ writes the schedule and the pages it always did.
+
+#### The stamp's look
+
+| key (`render.chrome.factcheck`) | range | default | what |
+|---|---|---|---|
+| `stamp.scale` | 0.5…2 | 1 | the stamp's region (560×200 at 1920 wide) scaled, inside the footage box; the stamp is drawn to it |
+| `stamp.motion` | `"slam"` `"pop"` `"fade"` `"none"` | `"slam"` | the entrance, which still ends at `landed`: slam from 1.7× and −14°; pop from 0.6× with an overshoot; fade in place; none appears at `landed` (and leaves at once). Slam and pop flash |
+| `stamp.opacity` | 0.3…1 | 1 | the whole stamp's |
+| `verdicts.<V>.stampLabel` | ≤ 24 characters | the verdict's `label` | the stamp's word ("SEIZURE") beside the tally's label ("SEIZURES") |
+
### `render.chrome.stats` — a frame scan's running numbers (release 31)
A cut seeded from a frame scan (`umtool new <slug> --from <channel>/<id> --seed
@@ -1836,6 +1928,39 @@ reason: the band plots the ledger the cut carries, and verifying the whole
manifest against one variant's file would report a missing chapter for every
entry the other cut has.
+### Every clip's sound on its own clock, and `sync.json`
+
+A segment is in sync by its TIMESTAMPS. Its sound can start late — a cut that
+reaches before its window's media begins (the window file's own content
+starts seconds in; the segment holds its first frame over silence, and the
+build says so) — or have a hole — a source's HLS seam. The joins count
+SAMPLES (`apad`, `atrim`'s reset, `acrossfade`, `concat`), so until
+2026-10-22 a late start or a hole moved that clip's sound, and every later
+clip's in its batch, early by that much: on the Huck cut 469 ms from `rescue` on
+(audio start 0.469 s) and 68 ms from `first` to `ten-k` (two gaps, 51 + 17 ms,
+near the end of `fed`). `AUDIO_ON_CLOCK` (`clip-audio.mjs`:
+`aresample=async=1:min_hard_comp=0.01:first_pts=0`) now lays each sound on its
+timestamps — silence where it starts late or a hole opens, samples dropped
+where two overlap, whatever is more than 10 ms off — at the segment encode, in
+the crossfade's pin, the hard-cut concat filter and the preview's concat. A
+sound with neither passes sample for sample. `av-clock.test.mjs` is the guard.
+
+After every build (and `--chrome-only`), `sync-report.mjs` checks it:
+`<out>/<variant>/sync.json`
+
+```jsonc
+{ "at": "…", "fps": 30, "items": [ { "id": "c07", "start": 786.7, "lagMs": 0, "peak": 0.95 } ] }
+```
+
+Each clip's own sound (its segment file, a window past its joins: up to 6 s
+from 3 s in) found in the finished cut's within ±2.5 s of its slot, both mono
+at 4 kHz, cross-correlated (coarse at 1 kHz, then fine). `lagMs` > 0 is sound
+LATER than its picture; `peak` (about 0…1) how well they matched — a muted or
+near-silent clip matches weakly, and a lag under a weak peak means little.
+Cards and the rest have no source sound and are not listed; a clip under a
+second between its joins reads `null`. The build log says each clip off by
+more than a frame. `REPORT_VIDEO_SYNC=0` skips it; it never fails a build.
+
### The `ledger` entry type
`full`'s answer to the claims no clip covers. One card per **run of consecutive
@@ -2720,6 +2845,48 @@ same way: wrap to a column count in JS, write to a file, and use
concatenation is a stream copy via the concat demuxer. Mismatched streams are the
usual reason a naive concat produces a broken or audio-desynced file.
+## Quality variants (`render.variants`, `variants.mjs`)
+
+```jsonc
+"render": { "variants": [
+ { "name": "master" }, // the build's own <slug>.mp4, not re-encoded
+ { "name": "1080p", "height": 1080, "crf": 22 },
+ { "name": "720p", "height": 720, "crf": 23 },
+ { "name": "fit24", "maxMiB": 24 } // under 24 MiB: a chat app's upload limit
+] } // (this list is the default)
+```
+
+| key | range | default | what |
+|---|---|---|---|
+| `name` | lower-case letters, digits, dashes, ≤ 24; unique; not `sourced`/`article`/`preview`/`prerail`/`partial` | — | the file is `<slug>.<name>.mp4` |
+| `height` | even, 144…2160 | the cut's | never above the cut's; for `maxMiB` a cap |
+| `crf` | whole 0…51 | 23 | x264 quality (not with `maxMiB`) |
+| `maxMiB` | 0.01…4096 | — | made to fit under this size |
+| `preset` | x264's | `medium` | |
+
+At most 12. `master` takes no settings. A crf variant re-encodes the picture
+at its height (lanczos, never up) and copies the sound and the chapters. A
+`maxMiB` variant is two-pass x264: its sound AAC 48 kb/s mono when the whole
+budget is under 300 kb/s, else 96 kb/s stereo; its height the largest of
+1080/720/480 (no taller than the cut) whose picture keeps at least 100 kb/s
+per 480p's worth of pixels (225 at 720p, 506 at 1080p) — the 20-minute Huck
+cut at 24 MiB is 480p at ~115 kb/s; 2 % of the budget is left for the
+container. It is encoded again 6 % lower while it lands over (x264
+overshoots: 24.3 MiB at a 23.1 target, measured), four tries at most.
+
+```
+node umtool/report-to-video/variants.mjs <take out dir> [--slug s] [--only name,…] [--source file]
+```
+
+The slug and the ladder come from the take's `video.manifest.json` beside
+its `out/`; the source is `<out>/<slug>.mp4` (the sourced cut) unless
+`--source` names another. Each file is written under `.variants/` and renamed
+into place. `<out>/variants.json` records `{ at, source, items: [{ name,
+path, width, height, bytes, kbps }] }` in ladder order; `--only` remakes the
+named ones and keeps the other rows. The CLI takes the heavy slot;
+`encodeVariants(outDir, { slug, variants, only, source, onLog })` does not —
+umtool's job runner holds it. `validateVariants()` is the one validator.
+
## Not done yet
- **Narration is on cards only.** A card may carry a synthetic voice (see