Archilyzer · Source

archilyzer

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

commit 015269cdefba212663ff90ca701a3a0b73fed6d8
parent 3218b23231a6105773feeed9fa09525c017ca1bb
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon,  9 Nov 2026 23:29:55 -0500

umtool: `umtool set <p> <clip> claim=` takes a clip's claim pin off -- on the draft; a version is opened there first

Owed 6 Nov (rev9-a3 k42/w44): there was no way to take a claim pin off but a hand edit -- `claim=` was "not a
clip knob", updateTakeClip ignored {claim:null}. With versions frozen (L3) the decision is the draft: `claim=`
(or `claim=none`) is a set key that clears every mark the clip carries (updateMarks {set: null}, as marks=
does, one undo point); any other value is refused with the way to add one (mark.add=); with `--take <v>` it is
refused -- "open it in the draft first (umtool takes open <p> <v>)" -- and nothing is written. knobs.md and
the usage say so. Test: knobsCli.test.mjs (a value refused, --take refused with the take untouched, the pin
off, claim=none on a two-mark clip).

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

Diffstat:
Mumtool/docs/knobs.md | 4+++-
Mumtool/lib/report/knobsCli.mjs | 25++++++++++++++++++++++---
Mumtool/lib/report/knobsCli.test.mjs | 28++++++++++++++++++++++++++++
3 files changed, 53 insertions(+), 4 deletions(-)

diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md @@ -304,7 +304,9 @@ that mentions the seizure in question and one before it. The Marks box is on eve 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 + set the first mark's knobs, or `--mark <id>`'s. `claim=` (or `claim=none`) takes the clip's claim pin off — every + mark it carries — on the draft; a version's clip is cleared after **Open in draft** (`umtool takes open <p> <v>`), + so `claim= --take <v>` is refused and says so. `umtool show` prints a clip's marks (`--json`: `marks`, each with `stampsOn`). - **On a teaser** (a post shown as a text card; lane counter-zero): a teaser carries marks as a clip does — stamped over the card, counted, validated — with `at` in seconds from the CARD's start (after a dip's black), 0 to its diff --git a/umtool/lib/report/knobsCli.mjs b/umtool/lib/report/knobsCli.mjs @@ -58,7 +58,7 @@ const GAP_KEYS = ["gaps", "gap.add", "gap.remove"]; export const VERTICAL_SET_KEYS = Object.freeze(["vertical", "vertical.crop", "vertical.layout", "vertical.aspect"]); export const SIDE_SET_KEYS = Object.freeze(["side", "side.item", "side.post", "side.from", "side.to", "side.place"]); const SET_KEYS = [ - ...CLAIM_KNOBS.map((k) => `claim.${k}`), ...MARK_KEYS, ...AUDIO_KNOBS.map((k) => `audio.${k}`), ...BLUR_KNOBS.map((k) => `blur.${k}`), "layout", ...REVIEW_KEYS, + "claim", ...CLAIM_KNOBS.map((k) => `claim.${k}`), ...MARK_KEYS, ...AUDIO_KNOBS.map((k) => `audio.${k}`), ...BLUR_KNOBS.map((k) => `blur.${k}`), "layout", ...REVIEW_KEYS, ...FX_KEYS, ...GAP_KEYS, "chat", "hideModules", "shelfNote", // The vertical format (lane vertical): the clip's 9:16 crop and layout, and its side post. ...VERTICAL_SET_KEYS, ...SIDE_SET_KEYS, @@ -71,7 +71,9 @@ export const SET_USAGE = [ " (read from the last clip carrying the claim); claim.hold s (0.5–10); claim.stamp true|false;", " claim.count 1–99; claim.label ≤ 20 chars; claim.eventDate YYYY-MM-DD, the day the event it counts", " happened when not the clip's (a deck claim's window dates it so: render.chrome.deck.claims).", - " The claim.* keys set the clip's first mark, or --mark <id>'s.", + " The claim.* keys set the clip's first mark, or --mark <id>'s. `claim=` (or claim=none) takes the clip's claim", + " pin off -- every mark it carries, as marks= does -- on the DRAFT; a version's clip is opened in the draft first", + " (umtool takes open <p> <v>), so claim= with --take is refused.", " Marks (a clip may carry up to 8, each its own stamp and count): mark.add=<verdict>[@<sec>] adds one", " (the verdict by name or by this cut's label, e.g. Episodes@190.2; a JSON object for its knobs too);", " mark.remove=<id>; mark.verdict=<verdict> (the first mark's, or --mark <id>'s; every clip carrying", @@ -225,6 +227,7 @@ export async function setCommand(args, { root = REPORTS_ROOT, out = (s) => conso const markChanges = []; /** @type {Record<string, unknown>} */ const entryPatch = {}; + let claimOff = false; for (const [key, value] of parseAssignments(rest)) { if (!SET_KEYS.includes(key)) throw new CliError(`${key} is not a clip knob (${SET_KEYS.join(", ")})`); if (key === "layout") { @@ -272,6 +275,16 @@ export async function setCommand(args, { root = REPORTS_ROOT, out = (s) => conso } continue; } + if (key === "claim") { + // The clip's claim pin, off (owed 6 Nov: there was no way to take one off but a hand edit). Only clearing: + // a claim is added as a mark (mark.add=<verdict>[@<s>]), its id and verdict edited in the On-screen table. + if (value !== null && !(typeof value === "string" && /^\s*none\s*$/i.test(value))) { + throw new CliError(`claim=${typeof value === "string" ? value : JSON.stringify(value)}: claim= (or claim=none) takes the clip's claim off; to add one, mark.add=<verdict>[@<source second>]`); + } + claimOff = true; + markChanges.push({ set: null }); + continue; + } if (MARK_KEYS.includes(key)) { markChanges.push(markChangeOf(key, value, mark)); continue; @@ -284,6 +297,12 @@ export async function setCommand(args, { root = REPORTS_ROOT, out = (s) => conso const takeFlag = flags.get("--take"); const take = typeof takeFlag === "string" && takeFlag ? takeFlag : null; if (flags.has("--take") && !take) throw new CliError("--take needs a take id"); + // A version is frozen (L3): its clip's claim comes off in the draft, after Open in draft brings the version there. + if (take && claimOff) { + throw new CliError( + `claim= --take ${take}: a version's clips are not edited in place -- open it in the draft first (umtool takes open ${project.id} ${take}), then \`umtool set ${project.id} ${clipId} claim=\``, + ); + } if (take && (markChanges.length || Object.keys(claim).length)) throw new CliError("--take sets a take's entry knobs; claim.* and marks are the project's (set them without --take)"); // `blur.on=` (or false): no blur at all, whatever else was given. if (Object.keys(blur).length) entryPatch.blur = "on" in blur && (blur.on === null || blur.on === false) ? null : blur; @@ -339,7 +358,7 @@ export async function setCommand(args, { root = REPORTS_ROOT, out = (s) => conso return 0; } if (results.marks) { - out(`${clipId}: ${results.marks.length ? `marks ${results.marks.map((m) => markLine(m, results.stampsOnByMark?.[m.id], clipId)).join(" | ")}` : "no marks"}`); + out(`${clipId}: ${results.marks.length ? `marks ${results.marks.map((m) => markLine(m, results.stampsOnByMark?.[m.id], clipId)).join(" | ")}` : claimOff ? "no claim (its pin taken off)" : "no marks"}`); if (results.added) out(` added ${results.added.join(", ")}`); } if (results.claim) { diff --git a/umtool/lib/report/knobsCli.test.mjs b/umtool/lib/report/knobsCli.test.mjs @@ -153,6 +153,34 @@ test("umtool set: claim and audio knobs through the writers; key= clears; a bad assert.equal("layout" in (await read(dir)).timeline[0], false); }); +test("umtool set claim=: the clip's claim pin off on the draft; claim=none too; a value or --take is refused", async () => { + const dir = await project("claimoff"); + const { lines, run } = runner(setCommand); + assert.equal(await run("claimoff", "c01", "claim=x"), 2); + assert.match(lines.at(-1), /claim= \(or claim=none\) takes the clip's claim off; to add one, mark\.add=/); + assert.deepEqual((await read(dir)).timeline[0].claim, { id: "k1", verdict: "CONTRADICTED" }, "untouched"); + // A version (L3): refused, with the way there -- nothing written to the take or the draft. + const { draftTake } = await import("./takeMaker.mjs"); + await draftTake(dir, { id: "v1", label: "Version 1", patch: {} }); + const takeBefore = await readFile(path.join(dir, "takes", "v1", "take.json"), "utf8"); + assert.equal(await run("claimoff", "c01", "claim=", "--take", "v1"), 2); + assert.match(lines.at(-1), /open it in the draft first \(umtool takes open claimoff v1\)/); + assert.equal(await readFile(path.join(dir, "takes", "v1", "take.json"), "utf8"), takeBefore); + assert.deepEqual((await read(dir)).timeline[0].claim, { id: "k1", verdict: "CONTRADICTED" }); + // The draft: the pin comes off. + assert.equal(await run("claimoff", "c01", "claim="), 0, lines.join("\n")); + assert.equal("claim" in (await read(dir)).timeline[0], false); + assert.match(lines.at(-1), /c01: no claim \(its pin taken off\)/); + // A clip of two marks: claim=none takes both (claims), as marks= would. + const m = await read(dir); + m.timeline[1].claims = [{ id: "a", verdict: "CONTRADICTED", at: 32 }, { id: "b", verdict: "CONTRADICTED", at: 38 }]; + await writeFile(path.join(dir, "video.manifest.json"), JSON.stringify(m, null, 2) + "\n"); + assert.equal(await run("claimoff", "c02", "claim=none", "--json"), 0, lines.join("\n")); + const c2 = (await read(dir)).timeline[1]; + assert.equal("claims" in c2 || "claim" in c2, false); + assert.deepEqual(JSON.parse(lines.at(-1)).marks, []); +}); + test("umtool look: the fact-check's stamp, a verdict's stamp word, markers, layout, the ladder, a look key", async () => { const dir = await project("look"); const { lines, run } = runner(lookCommand);