commit 653c80beff6eb78a82d994a9a8b286b21f9e7ba5
parent 743f1ef4ba1d53f3c155ae58ecfc58ed70b7bd82
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Mon, 2 Nov 2026 17:20:30 -0500
umtool docs: the reel's walk on the clip bench's parts, a beat's gaps, reels track their source (knobs.md, cli.md, report-video.md); plans: "Reels track their source" in spin-off-videos.md
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
4 files changed, 79 insertions(+), 7 deletions(-)
diff --git a/plans/spin-off-videos.md b/plans/spin-off-videos.md
@@ -152,14 +152,46 @@ Order 1 → 2 → 3, 4 alongside. 1 and 2 alone remove most of the hand work abo
**Cut the trailer** is a job on umtool's runner (`POST /api/report/reel`), the result playing with its local path;
a reel with no rendered master says so and links the Takes page. Not done: the reels listed on the Takes page beside
their take; Play previewing the cut's snapped edges (it plays the edges as written; the cut moves each ≤ 1 s into its
- pause and says so); a waveform on the reel walk; re-cutting a reel when its take is re-rendered (the panel marks a cut
- older than its master); the video assistant on a reel note.
+ pause and says so); ~~a waveform on the reel walk~~ (lane/reel-bench: the walk is its own editor on the clip bench's
+ parts); re-cutting a reel when its take is re-rendered (the panel marks a cut older than its master, and since
+ lane/reel-bench one older than its reel); the video assistant on a reel note.
- **No umtool page plays a take's trailer, and take cards show no local paths** — lane 4 above; until then the
operator gets file paths (operator, 2 Nov: "tell me local file paths for output files").
- **Hand-written spin-off manifests** (`emberparadox/kirsche`'s first manifest was written from a take's, outside
umtool's writers — against the standing rule) — lane 2's `umtool spinoff` through `scaffoldReportVideo`'s `timeline`
is the fix.
+## Reels track their source (lane/reel-bench, 2 Nov)
+
+A reel is an edit of a rendered master that keeps changing -- a new take, a clip's edges moved, a clip taken out,
+the chrome or fx over a clip changed. The model:
+
+- **The address is source seconds; the anchor is provenance.** A beat is `{ id, start, end, gaps? }` in its clip's
+ source seconds -- what survives a re-render. Its `anchor` (written by the one writer when a beat is added or edited
+ against a take: the walk always is, the CLI with `--take`, `anchor --take` for a whole reel) records what it was cut
+ against: the take, its build (`take.json` `builtAt`), the master's mtime, the source span the clip's segment played
+ (its cut record's `start`/`end`/`gaps`), the segment's `segKey`, a fingerprint of the chrome and fx over the segment
+ (the schedule's entry and the receipts/zoom it carries, timed from the segment's start, so a clip that only moved in
+ the master is not "changed"), and the master span it resolved to (`lib/report/reelAnchor.mjs`).
+- **Each beat is classified on load** against the take the reel plays now: unchanged · rerendered (the clip
+ identical: still good) · edges (the clip's edges or gaps moved; the beat still fits: old vs new) · look (chrome/fx
+ changed) · clipped (the new limits cut into it: clamp, or re-place) · orphan (the clip is gone: remove, or re-point)
+ · unanchored. The reel's line says "cut against draft-6; take draft-7 changes beat 7"; the walk can visit only the
+ changed beats (`?changed=1`); `umtool trailer-beats … status [--json]` is the same reading for an agent, with
+ `clamp`, `repoint`, `remove` and `anchor` the fixes.
+- **History**: every write and undo appends to `promo/<name>-beats.history.json` (old/new per field per beat, adds,
+ removes, order, settings, the take written against; 200 entries, newest last), modelled on
+ `common/lib/metadataHistory.ts`. Undo points stay what puts a reel back (40, on disk, across sessions).
+- **Cuts name what they read**: a cut's record carries the take's build, the master's mtime and the reel's version
+ (`reelVersion`: seconds, gaps, crossfade, intro -- not verdicts, labels or anchors), so a cut older than its master
+ or its reel is said, not guessed from file times.
+- Proved on a copy of Kirsche: anchored to draft-6, read against draft-7 (kf3c's end 2773.55 → 2776.07) -- beat 7
+ (kf3c) flagged "clip's edges moved", the other 14 "re-rendered, same"; the receipts over kf3e moved 2.5 s in the
+ master and were (rightly) not flagged.
+
+Not done: re-placing a clipped beat by its words (a fuzzy find of its old span's cues in the clip's new extent); a
+"changed" marker on Play the reel's strip cells; status for a reel's beats on the Trailer page's rows.
+
## Open
- ~~**The prep cwd dependence**~~ (fixed in `lane/take-writers`): not `projectCache`/`windowsFor` — `lib/paths.mjs`'s
diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md
@@ -62,7 +62,7 @@ Inbox cannot disagree about what is wrong with one.
| `takes ls <project> [--json]` · `takes relabel <project> <take> <label…>` · `takes supersede <project> <take> [--by <take>]` · `takes supersede <project> <take> --clear` · `takes delete <project> <take> [--dry-run] [--force]` | **take housekeeping** (the Takes page's ✎, **Mark superseded**, **Delete take**): first the working cut's line (`Latest: draft-22 · 28:03 · +N edits since`, and the edits in words; `--json`: `working`), then the takes with latest / picked (pinned) / superseded / RENDERING; a label fixed in `take.json` (an undo point of the take's own); a take folded away as superseded (verdicts.json, nothing deleted); a take deleted. Relabel and delete are refused (**exit 1**) while the take renders or a live render is made from it ([knobs.md](knobs.md#takes-relabel-supersede-cancel-delete-fork-as-variant-compare)) |
| `takes cancel <project> <take> [--json]` · `takes fork <project> <take> [--name N] [--json]` · `takes compare <project> <a> <b> [--json]` | **take housekeeping, the rest**: **Cancel render** (asked of the process rendering it, which stops its render's process group, marks the take cancelled and lets render mode go; exit 1 when it has not stopped); **Fork as variant** (a project beside this one, default `v-<take>`: the take's manifest, `variant.json`, the parent's media and assets linked, the take in it); two takes **side by side** (`<take>` or `<project>:<take>`: the facts, the cut's changes A → B, the look's differences) ([knobs.md](knobs.md#takes-relabel-supersede-cancel-delete-fork-as-variant-compare)) |
| `trailer <project> --take <t> (--beats FILE \| --beats-json JSON) [--intro] [--finale S] [--xfade 0.3] [--no-snap] [--out NAME] [--dry-run] [--json]` | a **trailer cut from the take's finished master**: spans of the master's own frames (the deck shows the whole timeline), clip beats in source seconds mapped by the take's build records, each clip beat's end moved forward into the next pause (through its sentence when one ends within 1 s) and its start back into the one before, so the crossfade lands in quiet, each move said (`--no-snap`: the edges as written), crossfaded, the take's encode, in the heavy slot; writes `takes/<t>/out/<slug>.trailer.mp4` and `.trailer.json`; **exit 1** on a refusal ([report-video.md](report-video.md#trailer-from-the-master)) · `--reel <name> [--take <t>]`: a **beat reel** -- its own beats file (`promo/<name>-beats.json`), crossfade and intro, written to `<slug>.<name>.mp4`; no `--take`: its pinned take, else the one it was last cut from, else the latest finished master ([report-video.md](report-video.md#beat-reels)) |
-| `trailer-beats <project> [ls] [--json]` · `add <clip> [<from>-<to>] [--at N] [--label L]` · `add-raw <at> <dur>` · `set <n> <from>-<to>` · `remove <n>` · `move <n> --to <m>` · `order` · `limit <s\|m:ss\|x\|instagram\|shorts\|tiktok>` · `xfade <s>` · `intro on\|off` · `candidates [--add]` · `verdict <n> confirmed\|note\|clear` · `title <text>\|none` · `take <t>\|none` · `undo` · `reels [--json]` · `new-reel <name> [--from <reel>] [--title T]` · `--reel <name>` on any | **the trailer's beats** (`promo/trailer-beats.json`, the Trailer page's file, what `trailer --beats` reads) or another **beat reel's** (`--reel`: `promo/<name>-beats.json`): each beat's length, the running length against the platform limit (X 2:20 by default), beats outside their clip's window, the cut's order, the walk's ★ clips; every write an undo point ([knobs.md](knobs.md#the-trailers-beats)) |
+| `trailer-beats <project> [ls] [--json]` · `add <clip> [<from>-<to>] [--at N] [--label L]` · `add-raw <at> <dur>` · `set <n> <from>-<to>` · `remove <n>` · `move <n> --to <m>` · `order` · `limit <s\|m:ss\|x\|instagram\|shorts\|tiktok>` · `xfade <s>` · `intro on\|off` · `candidates [--add]` · `verdict <n> confirmed\|note\|clear` · `title <text>\|none` · `take <t>\|none` · `undo` · `reels [--json]` · `new-reel <name> [--from <reel>] [--title T]` · `gap <n> add <from>-<to>\|remove <s>\|clear` · `status [--take <t>] [--json]` · `anchor [<n>…] --take <t>` · `clamp <n>` · `repoint <n> <clip>` · `history [--json]` · `--take <t>` on an edit · `--reel <name>` on any | **the trailer's beats** (`promo/trailer-beats.json`, the Trailer page's file, what `trailer --beats` reads) or another **beat reel's** (`--reel`: `promo/<name>-beats.json`): each beat's length, the running length against the platform limit (X 2:20 by default), beats outside their clip's window, the cut's order, the walk's ★ clips; every write an undo point and a history entry; a beat's gaps (two moments of one clip as one beat of jump cuts); each beat read against the take now -- what it was cut against, what changed (`status`), and the fixes ([knobs.md](knobs.md#the-trailers-beats), [reels track their source](knobs.md#reels-track-their-source)) |
| `rulings <project> [--json]` · `rulings <project> import [--dry-run] [--json]` · `rulings <project> set <clip\|key> keep\|cut\|not-him\|read-aloud [--reason R] [--match M]` · `rulings <project> clear <clip\|key>` | a montage's **clip rulings** (`montage-rulings.json`, the clip deck's): each clip and its ruling and the next render's kept clips; the earlier rulings in the seed's `edits.json`, once; one ruling set or cleared. A render leaves out every clip ruled cut, not-him or read-aloud ([report-video.md](report-video.md#ruling-the-clips)) |
| `fetch <project> --body` · `fetch <project> --dry-run [--json]` · `fetch <project> [--wait] [--json]` · `fetch <project> --status [--json]` · `… [--reason R]` · `… --refetch <clipId>[,…]` · `… --refetch-video <slug>/<id>` · `… --take <take>` | **Fetch windows** (the Cut tab's and the clip deck's button): every clip's window asked of the editor as ONE fetch-windows batch — `--body` prints the body and asks nobody; `--dry-run` the editor's plan (groups per platform, cached, in flight, unresolved); no flag starts it (one paced job per platform queue), `--wait` follows the jobs to their end and names each window a job failed; `--status` follows the last run's jobs once. Clips the montage rulings leave out are not asked for. `--refetch <clipId>[,<clipId>…]` evicts the cached windows that OVERLAP those clips' fetch spans first (the editor's `evict-clips` `{slug, id, covering}`, one job per video, waited for), then fetches as usual — for windows known bad (cut from a corrupt saved video); `--refetch-video <slug>/<id>` does it for every window the project asks of that video; with `--dry-run` the eviction is a dry run too and names what it would remove. `--take <take>` asks for a TAKE's clips instead — its manifest as its walk reads it (the project's now with the take's patches; a draft's too, nothing rendered), so a clip only the take has is fetched; the run is recorded with `take`, and `--status --take` follows the take's last run (the cut's never reads a take's). Every run is recorded in `<project>/fetch-runs.json` (a refetch's evictions under `refetch`). Needs WORKER_TOKEN (else the editor's env files) and the editor at ARCHILYZER_EDITOR_URL. **Exit 1** when a job failed or the editor refused ([report-video.md](report-video.md#fetching-the-windows-and-stand-ins)) |
| `prep <project> [--clips a,b] [--json]` · `prep <project> [--clips a,b] --wait` · `prep <project> --status [--json]` · `… --take <take>` | **Prepare clips for the walk** (the Cut tab's): what the clip bench makes on a clip's first open — a long recording's excerpt, the waveform — made ahead ([clip-bench.md](clip-bench.md#prepared-before-you-open-it)). No flag queues it and returns (a runner starts in the background, its log `out/bench-excerpts/prep.log`); `--wait` runs it here to the end; `--status` prints ready / to prepare / failed / not fetched and the runner. One clip at a time, each in the heavy slot (estimate 400 MB), under `nice -n 19` and `ionice -c3`; a prepared clip is skipped. A fetch that lands and a write that moves or adds a clip queue it too (`UMTOOL_BENCH_PREP=0` turns that off). `--take <take>`: a TAKE's clips (the take's walk page has the same button) — its manifest as its walk reads it, a draft's too — with its own status, queue, runner and log under `out/bench-excerpts/takes/<take>/`, so a take's clip that carries the cut's id with other bounds never shares the cut's state; a save on the take's walk queues it. The plan does not depend on the directory it is run from. **Exit 1** when a clip failed (`--wait`) |
diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md
@@ -740,9 +740,31 @@ Its cut is `takes/<t>/out/<slug>.<name>.mp4` (the trailer reel: `<slug>.trailer.
| the reels; a new one (empty, or a copy) | the Trailer page's **reels** row, **+ New reel** | `umtool trailer-beats <p> reels [--json]` · `new-reel <name> [--from <reel>] [--title T]` | `GET /api/report/trailer-beats` (`reels`) · `{op: "new-reel", name, from?, title?}` |
| a reel's title, the take it is cut from | **title** | `trailer-beats <p> --reel R title <text>\|none` · `take <t>\|none` | `{op: "settings", title?, take?}` |
| play the reel from a take's master: the crossfades, the clock against the limit, the strip of beats; `M` a note on the beat on screen (anchor `reel`), `E` walk it, `N`/`P` beats, `[`/`]` notes | **Play the reel** → `/projects/<p>/trailer/play?reel=&take=` (the take picker) | `umtool notes <p>` reads the notes | `GET /api/report/reel?project&reel&take` · the master: `GET /api/report/reel/media?project&take&what=master` |
-| walk a beat: in/out handles on the master's frames (`[` `]` in, `,` `.` out, Shift 0.5 s; `I`/`O` at the playhead), saved in the clip's source seconds (`Enter`), the clip's quote and source clock, `B` back to the reel | **Walk it** / `E` → `/projects/<p>/trailer/walk?reel=&take=&beat=n` | `trailer-beats <p> --reel R set <n> <from>-<to>` | `{op: "set", index, patch: {start, end}}` |
+| walk a beat: the reel's own editor on the clip bench's parts -- the master's waveform (its envelope, on the clip's source clock) with the zoom (`z`/`Z`/`f`/`F`, Ctrl/⌘ + wheel; ruler, overview, close-in pauses and words), the handles and nudges (`[` `]` in, `,` `.` out, Shift 0.5 s; `I`/`O` at the playhead) held to what the master rendered of the clip (said when a handle hits it), exact playback (`Space`, `-`/`=` speed), tighten to the sentence and snap an edge to a pause; saved in the clip's source seconds (`Enter`), `R` puts back, `B` back to the reel | **Walk it** / `E` → `/projects/<p>/trailer/walk?reel=&take=&beat=n` | `trailer-beats <p> --reel R set <n> <from>-<to> [--take <t>]` | `{op: "set", index, patch: {start, end}, take?}` · the master: `GET /api/report/file?project&path&v` · its envelope `GET /api/report/peaks?project&path&from&to` · its sound `GET /api/report/audio?project&path&from&to` |
+| a beat's **gaps**: seconds cut out of its middle, in the clip's source seconds -- two moments of one clip as one beat of jump cuts (the clip gap rule: ≥ 0.2 s each, 0.5 s kept before, between and after, at most 12); cut as the clip's gap renders (hard cuts, the sound faded 0.025 s), never the beat-to-beat crossfade; Play the reel skips them and its clock counts kept seconds; a gap wholly inside one the master already cut out of the clip is refused | the walk: `Alt` + drag on the waveform (or **Select a gap** / `g`), **Cut gap** (`g`), **Hear it**, a click on a gap's band puts it back, `G` the one at the playhead, **Undo** | `trailer-beats <p> --reel R gap <n> add <from>-<to>` · `gap <n> remove <second>` · `gap <n> clear` | `{op: "set", index, patch: {gaps: [{from, to}…]}}` |
| a beat's verdict: `confirmed` (Y, and on to the next) or `note` (a note left on it) | the walk's **Confirm (Y)** · **Note (M)** · **Clear verdict** | `trailer-beats <p> --reel R verdict <n> confirmed\|note\|clear` | `{op: "set", index, patch: {verdict}}` |
-| cut it: a job on umtool's runner (one at a time, the heavy slot, its log, **Cancel**), the result playing with its local path | the Trailer page's **Cut the trailer** | `umtool trailer <p> --reel <name> [--take <t>]` | `POST /api/report/reel {project, reel, take}` · `?cancel=<job>` · `GET ?job=<id>` · the file: `…/reel/media?what=cut&reel=` |
+| cut it: a job on umtool's runner (one at a time, the heavy slot, its log, **Cancel**), the result playing with its local path; its record names the take's build, the master's mtime and the reel's version, so the Cut panel says when the master was re-rendered or the reel edited since | the Trailer page's **Cut the trailer** | `umtool trailer <p> --reel <name> [--take <t>]` | `POST /api/report/reel {project, reel, take}` · `?cancel=<job>` · `GET ?job=<id>` · the file: `…/reel/media?what=cut&reel=` |
+
+### Reels track their source
+
+A reel is an edit of a master that keeps changing. A beat stays addressed in its clip's source seconds; each beat also
+carries an **anchor** -- what it was cut against: the take, its build, the master's mtime, the source span the clip's
+segment played (its cut record's start, end and gaps), the segment's content key, a fingerprint of the chrome and fx
+over it (timed from the segment's start, so a clip that only moved in the master is not changed), and the master span
+it resolved to (`lib/report/reelAnchor.mjs`). The writer stamps it on every beat added or edited against a take (the
+walk's writes always are), and keeps it through an edit made without one. On load each beat is read against the take
+the reel plays now: **unchanged**; **re-rendered, same** (another render, this clip identical: still good); **clip's
+edges moved** (the beat still fits: old vs new); **chrome changed** (the chrome or fx over it: look at it); **clipped**
+(the clip's new limits cut into the beat: clamp, or re-place it); **clip gone** (remove it, or re-point it to another
+clip); **not anchored** (written before anchors). Every write and undo is appended to
+`promo/<name>-beats.history.json` (per beat, each field's old and new; 200 entries, newest last).
+
+| | In umtool | From a terminal | Route |
+|---|---|---|---|
+| the reel against the take now: "cut against draft-6; take draft-7 changes beat 7", and each beat's state and why | the banner over the walk and Play the reel; each beat's state line in the walk | `umtool trailer-beats <p> --reel R status [--take <t>] [--json]` | `GET /api/report/reel` (`status`, each row's `status`) |
+| walk only the changed beats | the banner's **Walk only the changed beats** → `…/trailer/walk?…&changed=1` (N, P and the head's ‹ › skip the rest) | `status` lists them | — |
+| clamp a clipped beat; remove or re-point an orphan; anchor a beat that has been looked at | the beat's **Clamp to …**, **Remove the beat**, **Re-point**, **Looked at — anchor to <take>** (an edit or a confirm in the walk re-anchors too) | `trailer-beats <p> --reel R clamp <n>` · `repoint <n> <clip>` · `remove <n>` · `anchor [<n>…] --take <t>` · `--take <t>` on any edit | `{op: "set", index, patch, take}` · `{op: "anchor", only?, take}` |
+| what changed, when, against which take | -- | `trailer-beats <p> --reel R history [--json]` | `promo/<name>-beats.history.json` |
## Takes: relabel, supersede, cancel, delete, fork as variant, compare
diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md
@@ -1399,8 +1399,26 @@ moves each edge into its pause, as above. **Play the reel** (`…/trailer/play`)
back to back, the reel's crossfade dissolved in the browser. It shows the running clock against
the limit and a strip of the beats, and takes notes anchored to a beat (`M`; the `reel` anchor,
which `umtool notes` prints with the writer to use). **Walk it** (`…/trailer/walk?beat=n`) is the
-bench over one beat. Its in/out handles and nudge keys work on the master's frames, and a save
-writes the clip's source seconds. Each beat gets a verdict (`confirmed`, or `note`). Every write
+reel's own editor, built from the clip bench's parts (`components/projects/bench/`): the master's
+waveform and its zoom, the handles and nudges, exact playback, tighten and snap, and a beat's
+gaps. What plays is the take's master through its build record's map onto the clip's source --
+the bench's "use a file" media (a rendered file of the project, its envelope and its sound by
+span); what is edited is the beat, in the clip's source seconds, held to what the master rendered
+of the clip. Each beat gets a verdict (`confirmed`, or `note`).
+
+A clip beat may carry **gaps** (`gaps: [{from, to}]`, source seconds, the clip gap rule): two
+moments of one clip as one beat of jump cuts. The cut maps each gap to the master seconds it
+covers (across a gap the render already cut, the master runs on: the span either side) and
+leaves them out of the beat as a clip's gap renders -- hard cuts, the sound faded 0.025 s either
+side -- never with the beat-to-beat crossfade; the reel's clock counts kept seconds, and Play the
+reel seeks over them.
+
+A beat carries an **anchor**: the take, build and master it was cut against, the clip's segment
+as it was, and a fingerprint of the chrome and fx over it. Read against the take the reel plays
+now, each beat is unchanged, re-rendered but the same, changed under it (the clip's edges, its
+chrome), clipped, or orphaned -- the walk's banner and `trailer-beats … status` say which, and
+offer the fix ([knobs.md](knobs.md#reels-track-their-source)). A cut's record names the reel's
+version and the master it read, so a cut older than either is said. Every write
goes through the one writer and leaves an undo point (`U`, **Undo**, `trailer-beats … undo`).
**Cut the trailer** runs `umtool trailer --reel` as a job on umtool's runner (the heavy slot, its
log, Cancel), and the file then plays on the page with its local path. A cancelled cut leaves no