Archilyzer · Source

archilyzer

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

commit 7cb85f485efcc54069f8bf87a4f9e0a578fcc49b
parent f59903970404e91d7e4e78ac78d0d500249cf5e4
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri, 23 Oct 2026 01:44:01 -0400

docs: plans/clip-marks.md (rulings), knobs.md "Marks", cli.md and the CHANGELOG line

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

Diffstat:
Meditor/CHANGELOG.md | 1+
Aplans/clip-marks.md | 70++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mumtool/docs/cli.md | 2+-
Mumtool/docs/knobs.md | 50+++++++++++++++++++++++++++++++++++++++++++++-----
4 files changed, 117 insertions(+), 6 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- **A clip in a fact-check video can stamp and count more than once.** The clip editor's **Count & stamp** box is now **Marks**, on every clip: a list of the clip's marks, each its own stamp and its own step of the tally at its own second — its verdict picked by this cut's words (Episodes, Grift…), when it lands (**Set at playhead**, Shift+S for the selected mark), how long it stays, whether it is drawn, how much it counts, what it says, **Remove**. **Add mark at playhead** (Shift+M) adds one under a new id; **Clear** removes them all. Two stamps on one clip that would sit on each other are refused, saying where the second may land. From a terminal: `umtool set <project> <clip> mark.add=Episodes@190.2`, `mark.remove=<id>`, `mark.verdict=…`, `marks=<json>`; `umtool show` lists them. A clip with one mark is written as before, so an existing video renders the same. - **A video attached from a local archive gets its date when the archive writes it as 2019-10-31.** `attach-media` with `createRecords` read a folder's "Published on …" line only as "July 13th 2018" or "March 1, 2019"; it now reads "2019-10-31" and "2019/10/31" too, and a date that is not on the calendar is no date. Records it made before without a date can be dated now: `"fillDates": true` on `pnpm ops attach-media` (`--fill-dates` on `archilyzer media attach`) gives a held record that attach-media made, and that has no upload date, the date from its folder's description.txt — recorded in its metadata history. A record that has a date, or that attach-media did not make, is never touched. The log and the summary list them as "dated"; with `"dryRun": true` it only lists them. - **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. diff --git a/plans/clip-marks.md b/plans/clip-marks.md @@ -0,0 +1,70 @@ +# 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 `<entry>.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 <p> <clip>` `mark.add=<verdict>[@<sec>]` (or a JSON object), `mark.remove=<id>`, + `mark.verdict=<verdict>` (`--mark <id>`, else the first), `marks=<json>` (`marks=` none); `claim.*` with + `--mark <id>`. `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 <p> first mark.add=Episodes@<sec>`), then a build. +- Lane P (live deck preview) may read `clip.marks` from the view for its schedule; merge order M then P. diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md @@ -23,7 +23,7 @@ Inbox cannot disagree about what is wrong with one. | `inbox [--all] [--json]` | the decisions grouped and ranked by piece (`a:<site>/<report>`, `p:<project>`): Your call, Review, Blocking, Notes, Open, Ready to finish, Quiet — one card per piece and kind, and how many sit hidden on parked or done pieces (`--all` lists them). Every decision, songs' and articles' included; runs `bin/inbox.ts` through tsx | | `folders [--json]` · `kinds [--json]` | the tree, the registry | | `window <project> <clip> [--start S] [--end E] [--lock] [--lock-end] [--no-lock-end] [--note …]` | edit a window | -| `set <project> <clip> key=value …` | a clip's **knobs**: `claim.at` `claim.hold` `claim.stamp` `claim.count` `claim.label` `audio.offset` `audio.gain` `audio.fadeIn` `audio.fadeOut`; `key=` clears one ([knobs.md](knobs.md)) | +| `set <project> <clip> key=value …` | a clip's **knobs**: `claim.at` `claim.hold` `claim.stamp` `claim.count` `claim.label` (the first mark's, or `--mark <id>`'s), its **marks** `mark.add=<verdict>[@<sec>]` `mark.remove=<id>` `mark.verdict=<verdict>` `marks=<json>`, `audio.offset` `audio.gain` `audio.fadeIn` `audio.fadeOut`; `key=` clears one ([knobs.md](knobs.md#marks)) | | `look <project> key=value …` | the cut's **knobs**: `factcheck.stamp.*`, `factcheck.verdicts.<V>.stampLabel\|label\|color`, `deck.markers=<json>`, `deck.markerLayout`, `variants=<json>`, and the look's keys ([knobs.md](knobs.md)) | | `variants <project> [--take <t>] [--list] [--json]` | **Make variants**: the encode ladder of the build (or of a take's); `--list` what was made and the build's sync report, each clip's lag (past a frame flagged) ([knobs.md](knobs.md)) | | `build <project> [--preset preview\|fast\|final] [--only ID]` | **prints** the chain | diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md @@ -15,11 +15,12 @@ that generates it ([notes.md](notes.md)). | Knob | In umtool | From a terminal | Route | |---|---|---|---| -| `claim.at` — the SOURCE second the stamp lands and the tally steps; inside the clip's window | clip editor, **Count & stamp**: **Set at playhead** (Shift+S) | `umtool set <p> <clip> claim.at=12.4` | `POST /api/report/clip-editor {op: "claim", clip, knobs: {at}}` | -| `claim.hold` — seconds the stamp stays (0.5–10; default the cut's `factcheck.stamp.seconds`) | Count & stamp, **hold** | `claim.hold=4` | same | -| `claim.stamp` — `false`: the claim counts, no stamp is drawn | Count & stamp, **draw the stamp** | `claim.stamp=false` | same | -| `claim.count` — how much the tally steps (1–99; default 1) | Count & stamp, **count** | `claim.count=2` | same | -| `claim.label` — this stamp's text (≤ 20; default the verdict's stamp word) | Count & stamp, **label** | `claim.label="2 SEIZURES"` | same | +| `claim.at` — the SOURCE second the stamp lands and the tally steps; inside the clip's window | clip editor, **Marks**: a mark's **Set at playhead** (Shift+S: the selected mark's) | `umtool set <p> <clip> claim.at=12.4` | `POST /api/report/clip-editor {op: "claim", clip, mark?, knobs: {at}}` | +| `claim.hold` — seconds the stamp stays (0.5–10; default the cut's `factcheck.stamp.seconds`) | Marks, **hold** | `claim.hold=4` | same | +| `claim.stamp` — `false`: the claim counts, no stamp is drawn | Marks, **draw the stamp** | `claim.stamp=false` | same | +| `claim.count` — how much the tally steps (1–99; default 1) | Marks, **count** | `claim.count=2` | same | +| `claim.label` — this stamp's text (≤ 20; default the verdict's stamp word) | Marks, **label** | `claim.label="2 SEIZURES"` | same | +| marks — more than one stamp and count on a clip (≤ 8): see [Marks](#marks) | Marks: **Add mark at playhead** (Shift+M), a mark's verdict, **Remove**, **Clear** | `mark.add=Episodes@190.2` `mark.remove=<id>` `mark.verdict=Grift` `marks=<json>` | `POST /api/report/clip-editor {op: "marks", clip, add \| remove \| mark+verdict \| set}` | | `audio.offset` — ms, + = the sound later (−2000…2000) | clip editor, **Audio**: **sync**, the ±10/±40 nudges, **listen** (the 3 s around the playhead) | `umtool set <p> <clip> audio.offset=-40` | `POST /api/report/clip-editor {op: "audio", clip, audio: {offset}}` | | `audio.gain` — dB (−20…20) | Audio, **gain** | `audio.gain=-3` | same | | `audio.fadeIn`, `audio.fadeOut` — seconds (0–5) | Audio, **fade in / fade out** | `audio.fadeIn=0.3` | same | @@ -31,6 +32,45 @@ clip says which one that is, and `umtool set` prints a NOTE. A window save that clip's window is refused: widen the window, or clear `claim.at`. The On-screen table's claim column edits the claim's id and verdict and keeps its knobs while the id stays the same. +## Marks + +A clip may carry more than one MARK — each its own stamp and its own tally step, at its own second — e.g. a clip +that mentions the seizure in question and one before it. The Marks box is on every clip in the clip editor. + +```json +"claims": [ + { "id": "first", "verdict": "CORROBORATED", "at": 188.41 }, + { "id": "first.2", "verdict": "CORROBORATED", "at": 180.5, "label": "EARLIER" } +] +``` + +- **Shape.** `claims: [mark, …]`, 2–8 marks; a mark is a claim (`{id, verdict, at?, hold?, stamp?, count?, + label?}`). One mark is written `claim`, as ever — a manifest with one mark per clip is the bytes it always was — + and `claim` beside `claims` is refused. +- **Ids.** A mark added to a clip gets a NEW id: the clip's id when no mark uses it, else `<clip>.2`, `.3`, …. The + same id on several clips is one event, counted once and stamped on the last clip carrying it (as `claim` always + was); a verdict changed on a mark changes on every clip carrying its id. +- **Verdicts.** Picked by this cut's words: the box lists the fact-check's relabelled verdicts first ("Episodes", + "Grift" on the Huck cut), and `umtool set` takes a verdict's name or its label (`mark.add=Episodes@190.2`). +- **Timing.** A mark with `at` lands there. Marks without `at` land in order, back to back, the last as a lone + claim would (before the clip leaves). In landing order a stamp leaves in time to be gone as the next one comes in. +- **Refused** (the renderer's words, the file left as it was): an `at` outside the clip's window; two drawn stamps + on one clip closer than the first's hold (`the marks a (at 110) and b (at 111.5) overlap -- a's stamp stays 3 s; + land b at 113 or later, or shorten a's hold`); a ninth mark; one id given two verdicts. +- **Colour.** A clip's pip and rail take its FIRST mark's verdict. The tally, the finale's totals and `tallyFinals` + count every mark. +- **The On-screen table** shows and edits a clip's first mark; its other marks stay. +- **In umtool:** select a mark (click its row); **Set at playhead** / Shift+S puts that mark's second at the + playhead; **Add mark at playhead** / Shift+M adds one with the verdict beside the button (it follows the selected + mark's); **Remove** one; **Clear** them all. +- **From a terminal:** `umtool set <p> <clip> mark.add=<verdict>[@<sec>]` (or a JSON object with knobs), + `mark.remove=<id>`, `mark.verdict=<verdict> [--mark <id>]`, `marks='[…]'` (all; `marks=` none); the `claim.*` keys + set the first mark's knobs, or `--mark <id>`'s. `umtool show` prints a clip's marks (`--json`: `marks`, each with + `stampsOn`). +- **The route:** `POST /api/report/clip-editor` `{op: "marks", clip, add: {verdict, at?, …}}`, `{…, remove: id}`, + `{…, mark: id, verdict}`, `{…, set: [..] | null}`; `{op: "claim", clip, mark, knobs}` for a mark's knobs. Token- + and agent-token-guarded like every write. The writer: `lib/report/manifest.mjs` `updateMarks`. + ## The cut | Knob | In umtool | From a terminal | Route |