Archilyzer · Source

archilyzer

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

commit 2ccab81462ef02cc1e0e515d819c5587005ba13c
parent cd321a4e58ac1ca1c5089bca3da6d846cc62e581
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sun, 25 Oct 2026 00:52:38 -0400

Takes: a windowed take keeps only the markers and claim checks inside its window

windowManifest dropped posts attached outside the window but kept deck markers
and claim checks naming clips it left out, so the build refused the take. Now
a marker or count claim outside is dropped and a goalpost straddling the edge
is clipped to its steps inside (the window keeps a straddling clip whole, so
it keeps the part of the claim that clip carries).

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

Diffstat:
Meditor/CHANGELOG.md | 1+
Mumtool/lib/report/takeMaker.mjs | 31+++++++++++++++++++++++++++++--
Mumtool/lib/report/takeMaker.test.mjs | 48++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 78 insertions(+), 2 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- **A take of part of a cut (`--at`) no longer refuses to build over the on-screen deck's markers and claim checks.** The take keeps the markers and claims that follow clips inside its window and drops the rest; a goalpost whose steps cross the window's edge keeps the steps inside it. Needs a restart of umtool. - **umtool's "check every source" step no longer asks for what is already on disk, and no longer bursts a platform.** A source whose clips are all held locally (the build's cache, the editor's window cache, a saved recording) is marked **held locally** and costs no request. The rest are probed one at a time per platform, at least 30 s apart (Rumble 120 s), the same floor the editor's clip fetches keep. When a platform refuses a probe (403, 429, a bot check) umtool stops asking it and marks its remaining sources **not checked**, an info card in the Inbox ("Re-check later"), never "can't be fetched", and it does not stop the build. Needs a restart of umtool. - **A report video can set a subject's own claims against the record on its timeline.** A count claim (`“less than ten” in a year`) draws a band over the dates it is about on the on-screen panel's timeline, dims the rest of the timeline, lights each clip that carries the counter's stamps in date order with its count under it, and counts up to the total under his words in the panel (`19 seizures on camera`). With a **per** (a day, a week, a month) it lights every span that holds that many or more instead (`12 in a day`, `4 in a week`). A goalpost (`“3–5 weeks”` → `“6–8 weeks”`) draws a hollow bracket over the dates each deadline implies; when he moves it, the old one stays dashed and a copy of it moves to the new dates, off the timeline's end with the dates written when they are past its last clip. The finale's large timeline shows every claim at the end. A stamp can be dated by the day the event happened rather than the clip's day (**happened** in the clip editor's Marks). In umtool: the On-screen section's **claim checks** (beside the markers), with **use the playhead** and the build's own checks shown as each field is typed. From a terminal: `umtool look <project> deck.claims='[…]'` and `umtool set <project> <clip> claim.eventDate=2026-09-22`. When the record does not contradict a claim the build prints a note. A video without claims builds exactly as before. Needs a restart of umtool and a rebuild of the video. - **umtool plays a whole report video, or one take of it, in the browser without rendering it, and takes timecoded notes as it plays.** The Cut tab's **Play the cut** (and **Play** beside each take on the takes page) opens `/projects/<project>/play`: every clip plays in order from its fetched window, with the on-screen panel, the tally, the stamps, the markers and the finale drawn over it as the live preview draws them, on one clock across the whole cut, the next clip loaded behind the one playing. A take plays the project's video as it is now with the take's changes, including a take with its own clip list and one a recipe names that was never rendered; **Blurred clips: uncensored** on a take plays its clips as recorded. Under the picture, the **reel strip** shows the whole cut at once: a cell per clip or card as wide as it plays, shaded by the recording's date, hatched when its media is not fetched, the sections' boundaries with their first date, the counter (the tally) drawn as a staircase with its total at the end and at the playhead, and each note as a pin; click or drag on it to move through the cut. Under the strip, **Now** shows what the clip on screen says with the spoken line lit, and which clip comes next. Space plays and pauses, J K L go back, pause and play (L again is faster, at the voice's own pitch), ← and → move 5 seconds, N and P move between clips, [ and ] between notes, and ? lists the keys. A line under the picture lists what it does not do: each crossfade is a hard cut at its middle, cards and teasers are placeholders with their heading, edges are not snapped to silence, and the sound is the recording's. A clip with nothing fetched says "No media for this clip — fetch it" and the video plays on. M (or **Note at 09:44**) saves a note at that second of the cut, naming the clip on screen, its second in the recording, the take, and what it asks for (Trim, Cut, Move, Fact, Look or Other); playback pauses while you write and goes on when it is saved (**Pause while I write**). The notes list in cut order (open, all or resolved), a timecode plays from there, `umtool notes <project>` prints each with where it was taken and what it asks for, and **Send to the assistant** on a note (or **Send N open notes to the assistant**) asks the video assistant, whose reply lands on the note and whose edits wait for **Apply all**. With no assistant configured the button says why. Needs a restart of umtool. diff --git a/umtool/lib/report/takeMaker.mjs b/umtool/lib/report/takeMaker.mjs @@ -286,14 +286,41 @@ export function windowEntries(timeline, win, schedule = null) { /** * The manifest a window renders: `manifest` with only `ids` in its timeline - * (the sourced ones), and the posts attached to a clip outside it dropped -- - * a post's `attachTo` must name a clip of the timeline. + * (the sourced ones), and everything that names a clip outside it dropped -- + * the build refuses a reference to a clip its timeline does not hold: + * + * - a post whose `attachTo` is outside; + * - a deck marker (`render.chrome.deck.markers`) whose `after` is outside; + * - a deck claim check (`render.chrome.deck.claims`): a count claim whose + * `at` is outside. A goalpost whose steps STRADDLE the window's edge is + * CLIPPED to the steps inside it -- the window keeps a straddling clip + * (windowEntries), so it keeps the part of the claim that clip carries; + * a goalpost with no step inside is dropped. + * + * The kept ones need no re-timing: each names a clip by id, and its `t` is a + * source second of that clip, which the window renders whole. */ export function windowManifest(manifest, ids) { const keep = new Set(ids); const m = clone(manifest); m.timeline = sourcedEntries(m.timeline).filter((e) => keep.has(e.id)); if (Array.isArray(m.posts)) m.posts = m.posts.filter((p) => !p?.attachTo || keep.has(p.attachTo)); + const deck = m.render?.chrome?.deck; + if (isObj(deck)) { + const inside = (id) => typeof id === "string" && keep.has(id.trim()); + if (Array.isArray(deck.markers)) deck.markers = deck.markers.filter((mk) => !isObj(mk) || inside(mk.after)); + if (Array.isArray(deck.claims)) { + deck.claims = deck.claims.flatMap((c) => { + if (!isObj(c)) return [c]; + if (c.kind === "goalpost" && Array.isArray(c.steps)) { + const steps = c.steps.filter((st) => !isObj(st) || inside(st.at)); + return steps.length ? [{ ...c, steps }] : []; + } + if (c.at !== undefined) return inside(c.at) ? [c] : []; + return [c]; + }); + } + } return m; } diff --git a/umtool/lib/report/takeMaker.test.mjs b/umtool/lib/report/takeMaker.test.mjs @@ -26,8 +26,10 @@ import { takeSteps, uniqueTakeId, windowEntries, + windowManifest, } from "./takeMaker.mjs"; import { listTakes, readVerdicts, setTakeVerdict } from "./takes.mjs"; +import { validateDeckClaims, validateDeckMarkers } from "umtool-report-to-video/deck"; import { PROJECT_KINDS } from "../projects/kinds.mjs"; // The kind takes are made of, from the registry (never its id spelled here). @@ -490,3 +492,49 @@ test("takeSteps: each button is one job running the CLI, checked before it start assert.equal(lastGroup([{ group: "a", builtAt: "2026-01-01" }, { group: "b", builtAt: "2026-02-01" }]), "b"); assert.equal(lastGroup([]), "takes"); }); + +test("windowManifest: markers and claim checks outside the window are dropped; a goalpost straddling its edge is clipped", () => { + const manifest = { + ...MANIFEST, + render: { + ...MANIFEST.render, + chrome: { + engine: "hyperframes", + layout: "deck", + deck: { + markers: [ + { after: "s02", label: "inside" }, + { after: "s04", label: "outside" }, + ], + claims: [ + { kind: "count", at: "s01", t: 2, said: "“in”", window: { from: "2026-01-01", to: "2026-12-31" }, tally: "CONTRADICTED" }, + { kind: "count", at: "s04", t: 1, said: "“out”", window: { from: "2026-01-01", to: "2026-12-31" }, tally: "CONTRADICTED" }, + { + kind: "goalpost", label: "straddles", + steps: [{ at: "s02", t: 21, said: "“3 weeks”", due: ["P3W", "P5W"] }, { at: "s04", t: 2, said: "“6 weeks”", due: ["P6W", "P8W"] }], + }, + { kind: "goalpost", label: "all outside", steps: [{ at: "s04", t: 2, said: "“6 weeks”", due: ["P6W", "P8W"] }] }, + ], + }, + }, + }, + }; + const before = JSON.stringify(manifest); + const m = windowManifest(manifest, ["s01", "s02"]); + assert.deepEqual(m.timeline.map((e) => e.id), ["s01", "s02"]); + assert.deepEqual(m.render.chrome.deck.markers.map((x) => x.label), ["inside"]); + assert.deepEqual(m.render.chrome.deck.claims.map((c) => c.label ?? c.said), ["“in”", "straddles"]); + // Clipped to the step inside the window, its seconds as written (the clip renders whole). + assert.deepEqual(m.render.chrome.deck.claims[1].steps, [{ at: "s02", t: 21, said: "“3 weeks”", due: ["P3W", "P5W"] }]); + assert.equal(JSON.stringify(manifest), before, "the project's manifest is not touched"); + // What the build refuses with: the whole manifest windowed as-was names clips it does not hold. + const naive = { ...manifest, timeline: m.timeline }; + assert.ok(validateDeckMarkers(naive).length + validateDeckClaims(naive).length > 0); + assert.deepEqual(validateDeckMarkers(m), []); + assert.deepEqual(validateDeckClaims(m), []); + // The full window keeps every one. + const all = windowManifest(manifest, ["s01", "s02", "s03", "k1", "s04"]); + assert.equal(all.render.chrome.deck.markers.length, 2); + assert.equal(all.render.chrome.deck.claims.length, 4); + assert.equal(all.render.chrome.deck.claims[2].steps.length, 2); +});