Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit a6101da02f546d5ff6bbf20f51a4c1f5f5fef8f7
parent 0a2d76732513ae372746acfa6ae2a4ddf2027c5c
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon,  2 Nov 2026 13:23:33 -0500

plans: spin-off videos -- a new video from an old video's clips as its own project (the 2 Nov Kirsche spin-off's hand work, rulings, four lanes: take writers + fetch/prep for takes, umtool spinoff, claim -> evidence pairs, folder-wide reuse)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Aplans/spin-off-videos.md | 101+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 101 insertions(+), 0 deletions(-)

diff --git a/plans/spin-off-videos.md b/plans/spin-off-videos.md @@ -0,0 +1,101 @@ +# Spin-off videos — a new video from an old video's clips (plan, not started) + +Asked by the operator on 2026-11-02, after the Kirsche video grew out of `emberparadox/in-her-words`: "This +new-video-from-old-video pattern should be encoded into the app proper to make it cheaper, at least write up a +plan for it." Two rulings the same day frame it: **"let's establish this kind of 'new related video' request to be +a different project each time. Reuse as much about clips as possible"**, and **"We'll be using this clip corpus for a +few videos, probably, including updates that will call back."** + +## What it cost by hand (2 Nov, `emberparadox/kirsche`) + +The Kirsche video went through seven takes inside the parent (`kirsche` … `kirsche-7`) before it became its own +project. Every step below was hand work an app path should make one action: + +| Step | What it took | Where the app fell short | +|---|---|---| +| Pick the clips (one speaker's) | read 125 quotes, grep `Kirsche:` | no filter-to-a-new-cut; no speaker field on an entry (only the quote prefix) | +| Build the cut as a take | a hand-written `--patch` JSON (an RFC 7386 array replaces the whole timeline) | `umtool timeline --take` has `ls`/`move`/`remove`/`undo` only — no `insert`, `split`, `window` of a new clip | +| Add new clips (her 31 Oct stream) | word times from `en-orig.vtt` by script; entries by hand | the Candidates inbox inserts into the CUT, not a take | +| Fetch a take-only clip | `pnpm ops fetch-windows` with hand-computed padded spans | `umtool fetch` and `export --fetch` read the project manifest only ("its window is not on disk") | +| Prep the walk | a one-off script over `benchPrepPlan` (`$J/kprep/prep-take.mjs`) | `umtool prep` has no `--take`; a draft take has no manifest until rendered; prep run from the project dir found **no window** for clips it finds from `umtool/` (a cwd dependence — see Open) | +| Pair each claim with evidence | read the parent's quotes, choose, cut sub-spans by word times | nothing proposes "the parent's clip that confirms this line" | +| Protect the parent | own ids (`ke-*`, `kf3a..e`) so nothing keyed by id touched the parent's `kf3` | a take's clip with the parent's id and different bounds shares prep status, notes, removed.json keys | +| Become a project | `umtool new` refused `emberparadox/kirsche` (flat slugs only; `REPORTS_DIR=<folder>` trick); manifest written from the take's; shot hard-linked; trailer beats copied; README by hand | no "make this take its own project" | +| First render there | a full re-render | `--from TAKE` reuses segments within a project only | +| Play a spin-off take and fix an edge | the edit (kr1's end, 13:05) landed in the PARENT's cut, not the take | Play's **Edit** on a take with its own timeline opens the project's bench for the clip of the same id (`PlayCut.tsx`: "A take's Edit goes to the project's manifest too") — a shared id makes it edit the wrong cut | +| Look at the outputs | hard links into `exports/` to get a URL | no page plays a take's trailer | + +Two umtool features landed on the way and stay: a receipt's `at`/`hold` (fly in at a source second) and `label` +(a dated band under the shot) — `62530a40`, `ad3268ab`. + +## Rulings (proposed) + +- **A spin-off is a sibling project in the parent's folder** (`<folder>/<slug>`), never a promote over the parent's + cut. `umtool new` takes `--folder <folder>` (or a `folder/slug` id) instead of the `REPORTS_DIR` trick. +- **Copy entries, record their origin.** A spin-off's entry is a deep copy of the parent's (window, gaps, locks, + verdict, walk notes, corrections, fx, marks) plus `origin: {project, id, hash}` — the parent entry's id and a hash + of its window fields at the copy. Not a live reference: a published child must not change when the parent is + re-walked. The child's check row **`origin-drifted`** names an entry whose parent changed since, with the diff, + and **Take the parent's** (one write, an undo point) — as `patch-markers-stale` does for markers. +- **Ids are kept** when the entry is copied unchanged, so a later update video calls back by the same id across the + folder. A sub-span or split gets a new id (`<id>.a`, `<id>.b`, or a typed one) and still records `origin`. +- **Assets travel by hard link**: every `shots/`, `posts-media/` file an entry or post names is linked into the + child (same filesystem; copied otherwise). Render settings, palette, deck, verdict labels: inherited; intro and + markers: a choice on the form (the Kirsche cut dropped both). +- **Takes inside a project get the timeline writers the cut has** — `insert` (a clip by `<channel>/<video>@<start>-<end>` + or by a parent id), `split`, `window` on a take-only clip — writing the take's patch with undo points, as `move` + and `remove` already do. And **a take's clips are fetched and prepped** like the cut's (`umtool fetch --take`, + `umtool prep --take`), from the take's manifest — materialized for a draft from `mergePatch(manifest, patch)` + (`takeMaker.mjs`) rather than requiring a render first. +- **Evidence pairing is a review surface, deterministic first.** For a chosen "claim" clip, propose the parent's + (or the folder's) entries that share its key terms — names, quoted phrases, the claim's nouns — ranked by overlap, + each with its quote and date; Yes inserts it after the claim as a confirmation, No hides it. A generation route may + re-rank (`settings.generation`), never apply. (The operator's rule for the Kirsche cut: ONE dead-to-rights + confirmation per claim, and a joke is never evidence — mk1.) +- **Renders reuse across the folder.** Segment files are keyed by their inputs already (the keyed chunked encode); + a spin-off's first take links the parent's segments whose keys match, as `--from` does within a project. +- **The outputs are reachable.** A take's trailer plays on the Trailer page (per take), and every take card shows + its local path (the operator reads output files by path, not URL). + +## Lanes + +1. **`lane/take-writers`** (M) — `timeline --take insert|split|window`; `fetch --take`; `prep --take` (status keyed + by take + id, so a take's widened clip never collides with the cut's); a draft's manifest materialized for + prep/trailer/walk. Fixes the prep cwd dependence. **Play's Edit on a take with its own timeline goes to that take's walk bench** (its patch), never the project's clip of the same id — the 2 Nov kr1 edit that reached `in-her-words`'s cut. Tests: a take with a take-only clip fetches, preps, walks and + renders with no hand JSON; the parent's prep status is untouched. +2. **`lane/spin-off`** (M) — `umtool spinoff <parent> --slug <s> [--take T | --clips a,b | --filter <expr>] + [--title T] [--no-intro] [--no-markers]` and the same as **New video from these clips** on the Cut tab (selection + or the current filter), Play, and a take card (**Make this its own video**). Creates the sibling through + `scaffoldReportVideo` (which already takes a `timeline`), copies entries with `origin`, hard-links assets, copies + the take's trailer beats to `promo/trailer-beats.json`, writes the README's origin paragraph, opens the project. + The `origin-drifted` check row. Tests: the Kirsche case end to end from `in-her-words` `kirsche-7` — same 16 + entries, same ids, the shot linked, `umtool check` clean, the parent's manifest byte-identical. +3. **`lane/evidence-pairs`** (M) — the claim → confirmation proposals (deterministic ranking over the folder's + entries and, optionally, a corpus grep for the claim's terms), a review list beside the Cut tab's Candidates, Yes + inserts after the claim. Works with no model. Tests: on the Kirsche cut, s01 ranks for kr1, ow2 for kr4, d01 for + kf7, fn1 for kf3b, bk3 for kf3c; mk1 never auto-ranks above a non-joke once marked `joke` on a walk. +4. **`lane/folder-reuse`** (S) — segment reuse across projects in a folder; the Trailer page plays a take's trailer; + take cards show local paths. + +Order 1 → 2 → 3, 4 alongside. 1 and 2 alone remove most of the hand work above. + +## Files + +- `umtool/lib/projects/scaffold.mjs` (`scaffoldReportVideo`: `--folder`, `timeline`, `origin`), `bin/umtool.mjs` + (`spinoff`, `new --folder`), a new `lib/report/spinOff.mjs`. +- `umtool/lib/report/takeMaker.mjs` (`mergePatch`, a draft's manifest), `lib/report/timelineCli*` (take writers), + `lib/report/fetchWindows.mjs` + `fetchCli.mjs` (`--take`), `lib/report/benchPrep.mjs` + `prepCli.mjs` (`--take`, + status keys), `lib/report/serve.mjs` (`windowsFor`/`projectCache` — the cwd dependence). +- `lib/report/manifest.mjs` (`origin` validated in `structural()`), the check's `origin-drifted` row. +- `components/projects/report/CutTab.tsx`, `PlayCutPage.tsx`, `TakesBench.tsx`, `TrailerPage.tsx`. +- Docs: `umtool/docs/cli.md`, `knobs.md` (entry `origin`), `report-video.md` ("Spin-off videos"); `COMMANDS.md` if + an ops action is added. + +## Open + +- **The prep cwd dependence**: `prep-take.mjs` run with cwd = the project dir planned every clip `no-window`; the + same run from `umtool/` found each window. Root-cause in `projectCache`/`windowsFor` before lane 1 builds on it. +- **Speaker as data**: the Kirsche filter was the quote's `Kirsche:` prefix. A `speaker` field on entries (or the + speaker-check's result, `speaker-check.json`) would make "every clip of X" a real filter. +- **Callbacks in an update video**: the same id across the folder is the contract; is a folder-wide clip index + (`umtool clips find <id>` → every project using it) wanted now, or when the first update is cut?