Archilyzer · Source

archilyzer

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

commit 6620f2cc3a8d393073f53ee5a4eda98b3155a282
parent 956f43a84d1f226734413bbdde5c6930535def11
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri, 23 Oct 2026 01:03:47 -0400

docs: plans/siteorigin-check.md (rulings, counts), umtool docs and the CHANGELOG line

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

Diffstat:
Meditor/CHANGELOG.md | 1+
Mplans/FACTS.md | 7++++---
Aplans/siteorigin-check.md | 38++++++++++++++++++++++++++++++++++++++
Mumtool/docs/authoring.md | 3++-
Mumtool/docs/inbox.md | 2+-
Mumtool/docs/report-video.md | 12++++++++++--
6 files changed, 56 insertions(+), 7 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- **A report video with no site origin is blocked only when one of its QR codes needs it.** umtool's "Fix the manifest" call on `provenance.siteOrigin` used to block every cut with no origin, even when no code was built from it. It is now raised only for the codes that would read `undefined/?v=…`: a clip with no `citeUrl` whose code links the archive, a deck clip under `qr.links: "original"` whose source names no page of its own, and a rail card or still with no `provenance.qrLink`. A cut whose codes all link something else (each clip's `citeUrl`, each source's own page) or that draws none (`render.qr` off, the deck's QR off) has no call. The call says how many codes, names the first few entries and the fix: set `provenance.siteOrigin`, or give those clips a `citeUrl`. An origin that is set but points at localhost or a private address is still blocked. Needs a restart of umtool. - **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/FACTS.md b/plans/FACTS.md @@ -10823,9 +10823,10 @@ parsed to 0 cues, indexing the video textless) is CLOSED by `200a3105` (transcri moves; a kept clip with no citeUrl gains it; a citeUrl that is not the derived one for its cite is never touched. The seed then sets `render` to `SITELESS_LOOK` (`umtool/lib/projects/scaffold.mjs`: headerHeight 0, footerHeight 0, qr false, transition 0.5, transitionStyle "fadeblack", loudness {target: -16}) instead of `transition: 0`, and - `provenance.channel` from metadata `channel` (else `uploader`) whenever it was empty. `report.mjs` `originUnused(m)`: - an EMPTY siteOrigin with every clip carrying an http(s) citeUrl and no card or post is no "dead QR origin" flag or - blocking decision. Nothing in lint/build refuses an unknown render key (verified: `lintManifest(…, {validators: + `provenance.channel` from metadata `channel` (else `uploader`) whenever it was empty. An EMPTY siteOrigin + is a "dead QR origin" flag / blocking decision only when a QR the cut draws is built from it (`report.mjs` + `deadOriginQrsOf` → `lint.mjs` `originQrsOf`; lane siteorigin-check, `plans/siteorigin-check.md` — it replaced + `originUnused`). Nothing in lint/build refuses an unknown render key (verified: `lintManifest(…, {validators: true})` on a seeded site-less manifest gives no render error). - **`/api/report/clips`** POST: `routeCaller(authorization, agentToken())` (`umtool/lib/annotations/agentAuth.mjs`) — no header = the page, `Bearer <umtool's WORKER_TOKEN>` = the editor, else 401 `{error}`; every POST answers `jobId` diff --git a/plans/siteorigin-check.md b/plans/siteorigin-check.md @@ -0,0 +1,38 @@ +# The QR-origin check — exact (lane `lane/siteorigin-check`) + +Asked by the operator on 2026-10-23: "Am I good to click 'fix manifest' on the huck video in umtool? And why do I +have to click it for everything?" → "queue it" (fix the check). + +## Findings + +- `umtool decisions` (read-only, 2026-10-23, before): 30 `manifest-invalid` rows on `provenance.siteOrigin`, every + one "missing — every QR in this cut encodes `undefined/?v=…`". 28 are deck cuts with `qr.links: "original"` whose + every clip's cue file names its page (`webpageUrl`); one has the deck's `qr.show: false`; one has `render.qr: false`. + None of them draws a code built from the origin. +- "Fix the manifest" (lib/inbox/groups.mjs `ACTION_LABEL`) is a link: the decision's `href`, the project's Overview, + whose decision row prints the decision's sentence. It changes nothing on disk. + +## Rulings + +1. `lint.mjs` `originQrsOf(manifest, { metaOf })` is the one answer to "which codes are built from + `provenance.siteOrigin`": it runs `qrsOf` — the build's `deckQrUrl`, `qrUrlFor`, `postQrUrl` — with the origin set to + a probe and keeps the codes whose link starts with it. A post counts only when an origin is set (with none, + `postQrUrl` links the post itself). +2. `qrsOf` takes `metaOf(entry)` (the clip's record `{ webpageUrl }`) for the deck's `qr.links: "original"`, honours + the deck's `posts.qr: false`, and tags each code with its entry/post `id` and `source`. +3. `report.mjs` `deadOriginQrsOf(dir, m)` reads each uncited deck clip's `webpageUrl` from its cue file (the record the + build reads; memoised, the same files `sourcesOf` reads) only when the origin is missing or dead and the deck shows + its QR under `"original"`; otherwise `originQrsOf` alone. The summary carries `deadOriginQrs` for the decision pass. +4. A MISSING (or blank) origin is a defect — the "dead QR origin" flag, the `dead-origin` attr, the blocking + `manifest-invalid` — only when at least one code is built from it. With none, nothing is added (no info row). +5. A SET origin that is dead (localhost, a LAN address — `isDeadOrigin`) blocks whatever links it, as before. +6. The sentence names the count and up to three ids ("`a`, `b`, `c` and 2 more") and the fix: set + `provenance.siteOrigin` (to the public archive, for a set dead one); give those clips a `citeUrl` when clips are + among them; set `provenance.qrLink` when a rail card's or still's tile is; give those posts a `siteUrl` when posts are. +7. The action stays "Fix the manifest", linking the Overview, where the sentence carries the fix. +8. `originUnused` is removed; `originQrsOf` replaces it. + +## Counts + +`node umtool/bin/umtool.mjs decisions --json` over the real projects (run with every fs write refused): before 30 +siteOrigin rows (1,147 blocking of 1,360); after 0 (1,117 of 1,330). No other row changed. diff --git a/umtool/docs/authoring.md b/umtool/docs/authoring.md @@ -25,7 +25,8 @@ README listing every `?v=` citation as a checklist. **This is the field that shipped broken twice.** One manifest has no `siteOrigin` at all — 19 QR codes encoding `undefined/?v=…` — and one has `http://localhost:3000`, a finished video whose codes resolve to nothing on -anybody's phone. `umtool check` blocks until it is set to something real. +anybody's phone. `umtool check` blocks while any QR the cut draws is built from +it and it is not something real (a localhost origin blocks whatever links it). ## 2. Turn each citation into a WINDOW diff --git a/umtool/docs/inbox.md b/umtool/docs/inbox.md @@ -59,7 +59,7 @@ on (`decisionTab`, `songTabOfSection`). | kind | severity | trigger | action | |---|---|---|---| -| `manifest-invalid` | blocking | missing or `localhost` `siteOrigin`, missing `channelSlug`, duplicate ids, `section` out of range | Fix the manifest | +| `manifest-invalid` | blocking | a `localhost`/private `siteOrigin`; a missing one only when a QR the cut draws is built from it (its count and first ids named — lint.mjs `originQrsOf`); missing `channelSlug`, duplicate ids, `section` out of range | Fix the manifest | | `clip-no-cues` | blocking | no `transcript.cues.json` — the build dies there | Fix the cue source | | `clip-unfetchable` | blocking | the last preflight says the source is gone | Replace the source | | `clip-mid-sentence` | open | the cut lands inside a cue that does not close a sentence, and `lockEnd` is unset | Trim to the sentence | diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md @@ -600,7 +600,14 @@ fields are load-bearing: this**, and two real videos shipped broken: `quartering-employee-count` has no `siteOrigin` at all (19 QR codes encoding `undefined/?v=…`) and `ferret-rescue` has `http://localhost:3000` (codes that resolve to nothing on a phone). This is - the single best reason to run `umtool check` before every build. + the single best reason to run `umtool check` before every build. A + localhost/private origin always blocks; a MISSING one blocks only when a code + the cut draws is built from it — the build's own rules, `lint.mjs` + `originQrsOf`: a clip's `citeUrl` wins, the deck's `qr.links: "original"` + links the source's own page (its cue file's `webpageUrl`), a rail card or + still links `provenance.qrLink` first, and `render.qr: false`, the deck's + `qr.show: false` and a `src` clip with no `citeUrl` draw nothing. The + decision names how many codes and the first ids. - **`channelSlug`** — the default archived channel for cue lookups, overridable per clip. - **`availabilityCheckedOn`** — when sources were last confirmed fetchable. Stale in @@ -1146,7 +1153,8 @@ writes `provenance.channel` from the metadata and the look chosen for a one-video cut: `render` `headerHeight: 0, footerHeight: 0, qr: false, transition: 0.22, transitionStyle: "blurslide", loudness: {target: -16}, room: {tail: true, head: true}` (lane E; before it, 0.5 s `"fadeblack"`). With -every clip linked, an empty `siteOrigin` is not a blocking decision. +every clip linked, an empty `siteOrigin` is not a blocking decision (nor with +any cut whose codes are none of them built from it — see `siteOrigin` above). **From the editor** (release 36): `POST /api/report/clips {mode: "new", slug, from: "<channel>/<id>", target?, scope? ("auto", the default | "all" | [from,