Archilyzer · Source

archilyzer

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

commit 43a415bab6c267f1d9214044db99ed6ac66a0704
parent 7ffe90a4ca9294e9917f5313ad2737dcab75d816
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu, 12 Nov 2026 02:04:05 -0500

umtool: a take's window keeps only the clips inside it in the effects' clip lists -- fx.glitch.clips (with a clip right before), fx.thenNow.pairs (both ends), kineticQuote and redact -- so a windowed preview is no longer refused for naming a clip outside

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Meditor/CHANGELOG.md | 1+
Mumtool/lib/report/takeMaker.mjs | 30++++++++++++++++++++++++++++++
Mumtool/lib/report/takeMaker.test.mjs | 44++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 75 insertions(+), 0 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- **umtool: a windowed take preview no longer fails on an effect that names a clip outside the window.** `umtool take <p> --id <t> --preview --at S --dur S` on a cut with `render.chrome.fx.glitch.clips` or `fx.thenNow.pairs` was refused with "names k06, which is not a clip of the cut". The window's manifest now keeps only the named clips inside it (a glitch's only when a clip stands right before it in the window, a then/now pair only with both ends), as it already did for markers and claim checks; an effect left naming no clip is off in that window. The same for `fx.kineticQuote.clips` and `fx.redact.clips`. - **umtool: `quote-check` works on a project whose `out/` is on the media drive.** The check asked the editor to write its word files under `<project>/out/quote-check/`; when `out/` is a link onto a media drive, that is inside the corpus and the editor refuses to write there, so every clip failed. The work files now go to `<project>/.quote-check/`, and if the editor refuses that too (the project itself is inside the corpus) to `<reports>/.umtool/quote-check/<project>/`, then `~/.cache/umtool/quote-check/<project>/`. The rows are still the project's `quote-check.json`; the editor's refusal is unchanged. - **umtool: the words under the promise clock's REFUNDED stamp can be the record's own.** The stamp always read "by <date> · no video" under REFUNDED or WITHDRAWN, whatever the outcome row said. A `promise_outcome` row may now carry `stampNote` (`umtool ledger <p> set <row> --stampNote "by her account · no receipt"`, `--stampNote null` to take it off): it is the stamp's second line, and the one-line strip over a post's card shows its first clause. Without one the words are as before. `umtool lint` warns when a note is longer than the stamp's line holds (26 characters). - **umtool: a loss goal no longer takes its base from a weight said years before.** A goal such as "lose 100" is shown against the latest weight he had given by then, however old: on the weight video that put "(FROM 368)" on a goal set eight years after he said 368. `deck.goals.baseMaxDays` (unset: as before) keeps a base only when its weight was said at most that many days before the goal; an older one is no base, so the note carries no "(FROM …)" and the dial draws no goal weight or tick from it. `umtool look <p> deck.goals.baseMaxDays=365`, and `umtool look` now takes `--take <t>` for the deck's keys, which sets them on that take alone. diff --git a/umtool/lib/report/takeMaker.mjs b/umtool/lib/report/takeMaker.mjs @@ -366,6 +366,9 @@ export function withPatchEntries(takeTimeline, baseTimeline, ids) { * 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. + * - an effect's clip list (`render.chrome.fx`): `kineticQuote.clips`, `redact.clips` and `glitch.clips` keep the + * clips inside (a glitch's only with a clip right before it: it tears at that cut), `thenNow.pairs` the pairs + * with both ends inside; an effect left with none is off in the window. * * 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. @@ -391,6 +394,33 @@ export function windowManifest(manifest, ids) { }); } } + // The effects that name clips (fx.mjs validateFxEntries refuses a name the cut does not hold -- rev9-a9, 12 Nov: + // `take --preview --at … --dur …` was refused with "render.chrome.fx.glitch.clips names k06, which is not a clip + // of the cut"). A list keeps the clips inside; an effect left naming none is off in the window (an empty list is + // not one fx.mjs takes). The glitch tears at the cut INTO a clip, so a named clip stays only with a clip right + // before it in the window; a then/now pair needs both its ends. + const fx = m.render?.chrome?.fx; + if (isObj(fx)) { + const at = new Map(m.timeline.map((e, i) => [e?.id, i])); + const isClip = (id) => typeof id === "string" && m.timeline[at.get(id)]?.type === "clip"; + for (const k of ["kineticQuote", "redact"]) { + if (!isObj(fx[k]) || !Array.isArray(fx[k].clips)) continue; + const clips = fx[k].clips.filter(isClip); + if (clips.length) fx[k].clips = clips; + else delete fx[k]; + } + if (isObj(fx.glitch) && Array.isArray(fx.glitch.clips)) { + const clips = fx.glitch.clips.filter((id) => isClip(id) && m.timeline[at.get(id) - 1]?.type === "clip"); + if (clips.length) fx.glitch.clips = clips; + else delete fx.glitch; + } + if (isObj(fx.thenNow) && Array.isArray(fx.thenNow.pairs)) { + const pairs = fx.thenNow.pairs.filter((p) => !isObj(p) || (isClip(p.then) && isClip(p.now))); + if (pairs.length) fx.thenNow.pairs = pairs; + else delete fx.thenNow; + } + if (!Object.keys(fx).length) delete m.render.chrome.fx; + } return m; } diff --git a/umtool/lib/report/takeMaker.test.mjs b/umtool/lib/report/takeMaker.test.mjs @@ -32,6 +32,7 @@ import { } from "./takeMaker.mjs"; import { listTakes, readVerdicts, setTakeVerdict } from "./takes.mjs"; import { validateDeckClaims, validateDeckMarkers } from "umtool-report-to-video/deck"; +import { validateFxEntries } from "umtool-report-to-video/fx"; import { PROJECT_KINDS } from "../projects/kinds.mjs"; // The kind takes are made of, from the registry (never its id spelled here). @@ -562,6 +563,49 @@ test("windowManifest: markers and claim checks outside the window are dropped; a assert.equal(all.render.chrome.deck.claims[2].steps.length, 2); }); +test("windowManifest: an effect's clip list keeps the window's clips -- a glitch's with a clip before it, a then/now pair with both ends -- and an effect left with none is off", () => { + const clipIds = ["k01", "k02", "k03", "k04", "k05", "k06"]; + const manifest = { + ...MANIFEST, + timeline: clipIds.map((id, i) => clip(id, 10 * i, 10 * i + 5)), + render: { + ...MANIFEST.render, + chrome: { + engine: "hyperframes", layout: "deck", deck: {}, + fx: { + glitch: { on: "clips", clips: ["k02", "k03", "k06"] }, + thenNow: { pairs: [{ then: "k02", now: "k03" }, { then: "k05", now: "k06" }] }, + kineticQuote: { clips: ["k01", "k03"] }, + redact: { clips: ["k06"] }, + wipe: {}, + }, + }, + }, + }; + const before = JSON.stringify(manifest); + // The whole manifest windowed as-was is what the build refused (rev9-a9: "names k06, which is not a clip of the cut"). + const naive = { ...manifest, timeline: manifest.timeline.filter((e) => ["k02", "k03", "k04"].includes(e.id)) }; + assert.match(validateFxEntries(naive, { schedule: null }).join("\n"), /render\.chrome\.fx\.glitch\.clips names k06, which is not a clip of the cut/); + const m = windowManifest(manifest, ["k02", "k03", "k04"]); + const fx = m.render.chrome.fx; + // k02 opens the window: no clip before it, no cut to tear at. + assert.deepEqual(fx.glitch, { on: "clips", clips: ["k03"] }); + assert.deepEqual(fx.thenNow.pairs, [{ then: "k02", now: "k03" }]); + assert.deepEqual(fx.kineticQuote.clips, ["k03"]); + assert.equal("redact" in fx, false, "it named only a clip outside: off in the window"); + assert.deepEqual(fx.wipe, {}, "an effect that names no clip is as it was"); + assert.deepEqual(validateFxEntries(m, { schedule: null }), []); + assert.equal(JSON.stringify(manifest), before, "the project's manifest is not touched"); + // A window with none of them: the effects are off, the rest of the chrome as it was. + const none = windowManifest(manifest, ["k04"]); + assert.deepEqual(none.render.chrome.fx, { wipe: {} }); + assert.deepEqual(validateFxEntries(none, { schedule: null }), []); + // The full window keeps every one. + assert.deepEqual(windowManifest(manifest, clipIds).render.chrome.fx, manifest.render.chrome.fx); + // A pair cut by the window's edge is dropped, the other kept. + assert.deepEqual(windowManifest(manifest, ["k03", "k04", "k05", "k06"]).render.chrome.fx.thenNow.pairs, [{ then: "k05", now: "k06" }]); +}); + test("withPatchEntries: a clip only the take's patch adds stays in the window beside the covered clip before it", () => { const base = [{ id: "a" }, { id: "b" }, { id: "c" }, { id: "d" }]; // The patch adds x after b (covered), y after x, z after d (not covered).