# Clip marks — more than one stamp and count per clip (lane `lane/clip-marks`, M) Asked by the operator on 2026-10-23 for the Huck video's final pass: walk the clips in umtool, adjust windows and text there, and add another grift or seizure mark — the first seizure clip mentions two seizures. The reference for people and agents is `umtool/docs/knobs.md`, "Marks". ## Rulings - **Shape.** A timeline entry's `claims: [mark, …]`, 1–8 marks (`CLAIM_MARKS_MAX`), each a claim `{id, verdict, at?, hold?, stamp?, count?, label?}`. A lone `claim` is a list of one. `claim` and `claims` on one entry is refused. Writers store one mark as `claim` and two or more as `claims`, in the marks' place among the entry's keys (`setMarks`): a manifest with one mark per clip is byte-identical, and a mark added then removed leaves the file the bytes it was. - **Ids.** A mark added without an id gets a new one (`freshMarkId`): the entry's id when no mark in the manifest uses it, else `.2`, `.3`, …. The same id on several entries keeps its meaning: one event, counted once, stamped on the last entry carrying it, its knobs read there. One id appears once per entry. - **Verdict.** One id, one verdict across the timeline. A verdict change on a mark (`{mark, verdict}`) is applied to every entry carrying the id. A verdict may be given by name or by this cut's `label` / `stampLabel` (`verdictOfInput`). The editor lists the cut's own verdicts first (relabelled or in use, `markVerdictsOf`). - **Schedule** (`stampSchedule`). Each mark is its own stamp and tally step. A segment stamping one mark places it exactly as before marks (a 200-cut randomized comparison with the pre-marks function is a test). On a segment stamping two or more: a mark with `at` lands as a lone claim's `at`; marks without `at` land in order back to back, the last as a lone claim, each earlier one leaving over the transition's length to be gone as the next comes in; then, in landing order, a drawn stamp leaves in time to be gone as the next drawn one starts. Stamps are emitted per segment in landing order. - **Validation** (`validateClaims`). Per mark: shape, `at` inside the window, verdict consistency. Per entry: two drawn marks with `at`, both stamping on this entry, closer than the first's `hold` (else `stamp.seconds`) are refused with the second's earliest second. Marks without `at` are not checked for overlap (the schedule lays them back to back). - **Colour.** A multi-mark clip's pip and rail take its first mark's verdict (the schedule segment's `claim` is the first mark; `claims` rides beside it only for two or more). Tally, `tallyFinals` and the finale's totals count every mark; a mark stamping on a finale clip counts as the finale opens, as a claim did. - **Writers.** `manifest.mjs updateMarks(dir, entry, change)`: `{add}`, `{remove}`, `{mark, verdict}`, `{set}`; refused when the change adds a `validateClaims` problem. `updateClaimKnobs(..., {mark})` patches one mark (default the first), in place. `updateClip`'s window rule covers every mark. `updateOnscreen` and the On-screen preview treat a row's claim as the entry's first mark and keep the others. Split and duplicate drop `claims` as they drop `claim`. - **Route.** `POST /api/report/clip-editor` op `marks` (`add` | `remove` | `mark`+`verdict` | `set`) and op `claim` with `mark`; page or agent token (`lib/report/caller.ts`), manifest token as every write. The view gives each clip `marks` (each with `stampsOn`) beside `claim`/`stampsOn` (the first mark's), and `knobs.verdicts`. - **UI.** The Count & stamp box is the **Marks** box (`ClipKnobs.tsx MarksBox`), on every clip: a row per mark (verdict, id, lands at + Set at playhead + Clear, Remove, hold, draw the stamp, count, label, where it stamps when elsewhere); one row selected; **Add mark at playhead** with a verdict picker (it follows the selected mark's); **Clear** removes every mark. Keys: Shift+S sets the selected mark's `at`, Shift+M adds a mark at the playhead; the box owns both (ClipEditor's handler leaves Shift+S/M to it; S and M alone stay Split and Merge). The box's keys work with focus on a select or a checkbox. - **CLI.** `umtool set

` `mark.add=[@]` (or a JSON object), `mark.remove=`, `mark.verdict=` (`--mark `, else the first), `marks=` (`marks=` none); `claim.*` with `--mark `. `umtool show`: a multi-mark clip's line lists its marks; `--json` carries `marks` with `stampsOn`. ## Files `umtool/report-to-video/`: `factcheck.mjs` (`CLAIM_MARKS_MAX`, `rawMarksOf`, `normalizeMarks`, `marksOf`, `claimOf` = first mark, `validateClaims`, `stampSchedule`), `deck.mjs` (segments' `claims`, `sourceFrom` for any timed mark), `build-video.mjs` (the cut-record clock for any timed mark), `clip-marks.test.mjs` (new). `umtool/lib/report/`: `knobs.mjs` (`setMarks`, `marksCopyOf`, `markIdsOf`, `freshMarkId`, `verdictOfInput`, `markVerdictsOf`, `stampingEntryId` over marks), `manifest.mjs` (`updateMarks`, `updateClaimKnobs` `mark`, window rule, `updateOnscreen`, split/duplicate), `clipEditor.mjs` (op `marks`, view `marks`, `knobs.verdicts`), `clipEditorTypes.ts`, `onscreen.mjs` (preview), `knobsCli.mjs` (`set`, `show`), `marks.test.mjs` (new), `clipEditor.test.mjs`. `umtool/app/api/report/onscreen/route.ts` (a row's claim: the first mark). `umtool/components/projects/review/ClipKnobs.tsx` (`MarksBox`), `ClipEditor.tsx` (the mount, the keys). `umtool/bin/umtool.mjs` (help). e2e: `e2e/marks.spec.ts`, `e2e/fixtures/marks-fixture.mjs` (new), `e2e/fixtures/make-fixture.mjs`, `e2e/knobs.spec.ts` (the box's new selectors). Docs: `umtool/docs/knobs.md` ("Marks"), `editor/CHANGELOG.md`. ## Open - The Huck manifest is unchanged here; the operator adds the second seizure mark on `first` in umtool (or `umtool set

first mark.add=Episodes@`), then a build. - Lane P (live deck preview) may read `clip.marks` from the view for its schedule; merge order M then P.