Archilyzer · Source

archilyzer

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

commit 3bbfe17897c83c13817f817533583d20a751ed8d
parent 5974f4bf8da479ad5f10b13403fb4f6947f90e54
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon,  9 Nov 2026 22:19:44 -0500

umtool: takes verdict in the verb registry (its form, its help; cli.md generated); home's Running links /jobs; the Rumble links fixture names a public-shaped site; the spec takes its quote check off the queue (redesign L4)

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

Diffstat:
Mumtool/docs/cli.md | 3++-
Mumtool/docs/knobs.md | 2+-
Mumtool/e2e/fixtures/needs-you-fixture.mjs | 7+++++--
Mumtool/e2e/needs-you.spec.ts | 3+++
Mumtool/lib/cli/groups.mjs | 5++++-
Mumtool/lib/cli/verbs.mjs | 1+
6 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md @@ -77,7 +77,7 @@ Inbox cannot disagree about what is wrong with one. | `take status <project> [--id <take>] [--json] [--log] [--tail N]` | a take's **render record** (`takes/<take>/render.json`, written by every render whoever started it — a terminal, the Takes page, the queue): `state` (`running`, `waiting` at the heavy slot, `done`, `failed`, `cancelled`; `queued` or `blocked` while a queue step waits to render it), `stage` and a rough `percent`, the `error` (the first error line, not a bare "exited 1") and the log's last 40 lines (`tail`), on done the `mp4` and its measured `seconds`; `--log` prints the FULL `takes/<take>/render.log`. A "running" whose process is gone reads **failed** ("the render process is gone"); a done whose mp4 is missing or 0 bytes reads **failed**. **Exit 0 done · 3 queued, waiting or running · 1 failed, cancelled, blocked or none.** Without `--id`: every take with a record, the newest's exit ([queue and poll](#queue-and-poll-instead-of-scripting)); and its fast-feedback renders beside it, `preview` and `changes` (each one's state, mp4, seconds, log; a changes reel's piece count, its base and its list), a queued `--preview`/`--changes` step said as such -- never as the take's own render | | `queue add [--after <qid>\|last] [--label T] [--timeout <minutes>] [--json] -- <umtool subcommand argv…>` | a **step** of the durable queue: the argv of a umtool command, one word per argument (no shell), stored under `<reports root>/.umtool-queue/` and run by the **umtool app** (its systemd unit), one step at a time, in order — so it survives the session that queued it, an app restart and a ship. Prints the qid (`q<N>`) alone on stdout. `--after` waits for that step to be **done**; when it fails or is cancelled this one is **blocked** (and so is whatever waits on it). `--timeout`: the step's limit (default 720 minutes). A step does not start while the app's own job runner is busy (a Takes-page job), and a heavy step still takes the machine's heavy slot and render mode by itself | | `queue ls [--all] [--json]` · `queue status <qid> [--json]` · `queue wait <qid> [--timeout <s>]` · `queue log <qid> [--tail N]` · `queue cancel <qid>` · `queue retry <qid>` | the queue: `ls` the runner (is the app running it) and the steps not finished or finished in the last 24 h; `status` one step (**exit 0 done · 3 queued or running · 1 failed, blocked or cancelled**); `wait` the same after up to `<s>` seconds (default 90); `log` its FULL log (`logs/<qid>.log`; earlier attempts kept as `<qid>.<n>.log`); `cancel` a queued or blocked step at once, a running one stopped (its process group); `retry` a failed or cancelled step back in the queue with every step blocked behind it. A step that was running when the app died reads **failed** ("the step's process is gone"), its log kept — it is never re-run on its own | -| `jobs [--json]` | every running and recent **take render** across projects (their records), every queue step not finished or finished in the last 24 h, and the umtool app's own jobs (`GET /api/jobs` at `--url` / `UMTOOL_URL`, when it answers). The page is **/jobs** (the rail's *Running* links it) | +| `jobs [--json]` | every running and recent **take render** across projects (their records), every queue step not finished or finished in the last 24 h, and the umtool app's own jobs (`GET /api/jobs` at `--url` / `UMTOOL_URL`, when it answers). The page is **/jobs** (home's *Running* links it) | | `takes make <project> [--recipe FILE] [--only ID,ID] [--force]` · `takes make <project> --all-styles [--group G] [--at S --dur S \| --full]` | a recipe's takes, one at a time (default `takes/recipe.json`); every montage style, one take each (Make all styles); **exit 1** if any failed | | `takes styles [--json]` · `takes effects <project> [--json]` · `takes pick <project> <take> [--anyway] [--pin \| --unpin] [--json]` | the montage styles; the overlay effects the cut offers (`render.chrome.fx` presets: the Takes page's **Effect** list); **Use this take** — refused (exit 1) when the project changed since the take was made, until `--anyway`; `--pin` keeps the pick when newer takes are built (each whole-cut take of the manifest is otherwise its group's pick once built), `--unpin` lets go ([report-video.md](report-video.md#takes-alternative-renders-judged-side-by-side)) | | `takes ls <project> [--json]` · `takes relabel <project> <take> <label…>` · `takes supersede <project> <take> [--by <take>]` · `takes supersede <project> <take> --clear` · `takes delete <project> <take> [--dry-run] [--force]` | **take housekeeping** (the Takes page's ✎, **Mark superseded**, **Delete take**): first the working cut's line (`Latest: draft-22 · 28:03 · +N edits since`, and the edits in words; `--json`: `working`), then the takes with latest / picked (pinned) / superseded / RENDERING; a label fixed in `take.json` (an undo point of the take's own); a take folded away as superseded (verdicts.json, nothing deleted); a take deleted. Relabel and delete are refused (**exit 1**) while the take renders or a live render is made from it ([knobs.md](knobs.md#takes-relabel-supersede-cancel-delete-fork-as-variant-compare)) | @@ -230,6 +230,7 @@ draft (the project's manifest); *project*: a project's other files, or reads; *c | `takes ls <project>` | the working cut, then each take | form · *project* | | `takes relabel <project> <take> <label>` | a take's label | form · *project* | | `takes supersede <project> <take> [--by BY] [--clear]` | a take folded away in the list (or back) | form · *project* | +| `takes verdict <project> <take> like\|maybe\|no\|clear [--note NOTE]` | a take's verdict: like, maybe, no or clear (Play and judge) | form · *project* | | `takes save <project> [--label LABEL] [--force]` | the working draft frozen as the next version (v<N>) | form · *project* | | `takes open <project> <take>` | a saved version into the draft (the draft saved first) | form · *draft* | | `takes freeze <project> [<takes>…] [--all] [--apply]` | legacy takes given a frozen base (a dry run unless --apply) | form · *project* | diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md @@ -1638,7 +1638,7 @@ has the walk-through; in short: | one step: state, exit, error, log | `umtool queue status <qid> [--json]` (exit 0 done · 3 going · 1 failed/blocked/cancelled) · `queue wait <qid> --timeout 90` · `queue log <qid>` | **/jobs** → Queue, a step's **log** | `GET /api/queue` · `GET /api/queue/log?qid=` | | cancel / retry | `umtool queue cancel <qid>` · `umtool queue retry <qid>` (with the steps blocked behind it) | **Cancel** / **Retry** on the step | `POST /api/queue?cancel=<qid>` · `?retry=<qid>` | | a take's render record | `umtool take status <p> --id <take> [--json] [--log] [--tail N]` (exit 0 done · 3 queued/waiting/running · 1 failed) | the take's card (a render running now, or a later one that failed), **first render failed** above the takes, the project's **Queue** | `GET /api/report/takes/render?project=&take=` (`&log=1` the full log) | -| everything, across projects | `umtool jobs [--json]` | **/jobs** (the rail's *Running*) | `GET /api/queue`, `GET /api/jobs` | +| everything, across projects | `umtool jobs [--json]` | **/jobs** (home's *Running*) | `GET /api/queue`, `GET /api/jobs` | ## A take's own items (imported from other projects, edited in the take only) diff --git a/umtool/e2e/fixtures/needs-you-fixture.mjs b/umtool/e2e/fixtures/needs-you-fixture.mjs @@ -27,8 +27,11 @@ export const NY_CASE = "needs-you-case"; export const NY_RUMBLE = "nyrumble"; export const NY_FOLDER = "v6nyslug"; export const NY_EMBED = "v6nyembd"; -/** A site nothing answers on (the discard port): the re-check after the fix cannot verify, and says so. */ -export const NY_SITE = "http://127.0.0.1:9"; +/** + * A public-shaped site that never resolves (`.invalid`, RFC 6761: no resolver answers it): the re-check after + * the fix cannot verify, and says so. Not a loopback address -- that is a blocking siteOrigin of its own. + */ +export const NY_SITE = "https://ny-archive.invalid"; const write = (dir, name, doc) => { mkdirSync(dir, { recursive: true }); diff --git a/umtool/e2e/needs-you.spec.ts b/umtool/e2e/needs-you.spec.ts @@ -237,4 +237,7 @@ test("Run quote-check: one press queues `umtool quote-check` on the card's clips expect(step, JSON.stringify(view.steps)).toBeTruthy(); expect(JSON.stringify(step)).toContain("quote-check"); expect(JSON.stringify(step)).toContain("c01,c02,c03,c04"); + // Off the queue again: it would hold the app's one job runner for the specs after this one. + expect((await request.post(`/api/queue?cancel=${queued}`)).ok()).toBe(true); + queued = null; }); diff --git a/umtool/lib/cli/groups.mjs b/umtool/lib/cli/groups.mjs @@ -590,7 +590,7 @@ export const GROUPS = [ ], docs: [ ["`jobs [--json]`", - "every running and recent **take render** across projects (their records), every queue step not finished or finished in the last 24 h, and the umtool app's own jobs (`GET /api/jobs` at `--url` / `UMTOOL_URL`, when it answers). The page is **/jobs** (the rail's *Running* links it)"], + "every running and recent **take render** across projects (their records), every queue step not finished or finished in the last 24 h, and the umtool app's own jobs (`GET /api/jobs` at `--url` / `UMTOOL_URL`, when it answers). The page is **/jobs** (home's *Running* links it)"], ], }, { @@ -600,6 +600,7 @@ export const GROUPS = [ " | ls <project> | relabel <project> <take> <label…> | supersede <project> <take> [--by <take>] [--clear]", " | delete <project> <take> [--dry-run] [--force] take housekeeping: a label fixed, a take folded away", " as superseded, a take deleted -- refused while a render names it", + " | verdict <project> <take> like|maybe|no|clear [--note T] a take's verdict (verdicts.json): Play and judge", ], docs: [ ["`takes make <project> [--recipe FILE] [--only ID,ID] [--force]` · `takes make <project> --all-styles [--group G] [--at S --dur S \\| --full]`", @@ -608,6 +609,8 @@ export const GROUPS = [ "the montage styles; the overlay effects the cut offers (`render.chrome.fx` presets: the Takes page's **Effect** list); **Use this take** — refused (exit 1) when the project changed since the take was made, until `--anyway`; `--pin` keeps the pick when newer takes are built (each whole-cut take of the manifest is otherwise its group's pick once built), `--unpin` lets go ([report-video.md](report-video.md#takes-alternative-renders-judged-side-by-side))"], ["`takes ls <project> [--json]` · `takes relabel <project> <take> <label…>` · `takes supersede <project> <take> [--by <take>]` · `takes supersede <project> <take> --clear` · `takes delete <project> <take> [--dry-run] [--force]`", "**take housekeeping** (the Takes page's ✎, **Mark superseded**, **Delete take**): first the working cut's line (`Latest: draft-22 · 28:03 · +N edits since`, and the edits in words; `--json`: `working`), then the takes with latest / picked (pinned) / superseded / RENDERING; a label fixed in `take.json` (an undo point of the take's own); a take folded away as superseded (verdicts.json, nothing deleted); a take deleted. Relabel and delete are refused (**exit 1**) while the take renders or a live render is made from it ([knobs.md](knobs.md#takes-relabel-supersede-cancel-delete-fork-as-variant-compare))"], + ["`takes verdict <project> <take> like\\|maybe\\|no\\|clear [--note \"…\"] [--json]`", + "**a take's verdict** in `takes/verdicts.json` — the Takes page's and Play's **Like · Maybe · No**; a version with a render and none is a call on home (\"versions to judge\", [knobs.md](knobs.md#what-needs-you-home-the-inbox-one-press-actions-quick-clip))"], ["`takes save <project> [--label L] [--force] [--json]` · `takes open <project> <take> [--json]` · `takes freeze <project> [<take>… \\| --all] [--apply] [--json]`", "**the working draft and its saved versions** (Play's **Save version** and **Open in draft**): `save` freezes the draft (`video.manifest.json`) as the next `v<N>` — `takes/v<N>/base.manifest.json` byte for byte, `take.json` `version: true` — and names it the draft's parent (`takes/draft.json`); nothing is saved when the draft has no edits since its parent, unless `--force`. `open` copies a version into the draft — the draft saved first as the next `v<N>` when it has edits since its parent — with one undo point (`umtool timeline <p> undo` puts the draft and its parent back); a legacy take with its own timeline opens by its patch over the draft (as `take --promote`), another legacy take as the manifest it was rendered from (as `takes pick`). Neither touches the pick or its pin. `freeze` gives legacy takes a frozen base (the manifest each was rendered from, else the draft now) — a dry run unless `--apply`, each take's difference from how it resolves today said. Version ids are `v1`, `v2`, … — one above every `v<N>` directory under `takes/`, never reused ([knobs.md](knobs.md#the-working-draft-and-saved-versions))"], ["`takes cancel <project> <take> [--json]` · `takes fork <project> <take> [--name N] [--json]` · `takes compare <project> <a> <b> [--json]`", diff --git a/umtool/lib/cli/verbs.mjs b/umtool/lib/cli/verbs.mjs @@ -225,6 +225,7 @@ export const VERBS = Object.freeze([ form("takes ls", "project", "the working cut, then each take", [project()]), form("takes relabel", "project", "a take's label", [project(), takeArg(), arg("label")]), form("takes supersede", "project", "a take folded away in the list (or back)", [project(), takeArg(), name("--by"), bool("--clear")]), + form("takes verdict", "project", "a take's verdict: like, maybe, no or clear (Play and judge)", [project(), takeArg(), pick("verdict", ["like", "maybe", "no", "clear"], { required: true }), opt("--note", { help: "the verdict's note" })]), form("takes save", "project", "the working draft frozen as the next version (v<N>)", [project(), opt("--label"), bool("--force", "save even with no edits since its parent")]), form("takes open", "draft", "a saved version into the draft (the draft saved first)", [project(), takeArg({ help: "the version (or take) to open" })]), form("takes freeze", "project", "legacy takes given a frozen base (a dry run unless --apply)", [project(), many("takes", { item: "name", help: "take ids, one per line (none: --all)" }), bool("--all"), bool("--apply", "write them (else a dry run)")], { confirm: { what: "write each legacy take's frozen base (how it resolves can change)", when: ["--apply"] } }),