Archilyzer · Source

archilyzer

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

commit 59d7c30b1438481731e5840c9ecf2b72c32b9207
parent cc6bbc659073d1ddce64fff913766781281edaef
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu, 15 Oct 2026 08:36:52 -0400

plans: release 29 — the M8/V1 review fixes record, FACTS, CHANGELOG; umtool docs (unreadable-proposals, the window)

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

Diffstat:
Meditor/CHANGELOG.md | 2+-
Mplans/FACTS.md | 8++++++++
Mplans/release-29.md | 43+++++++++++++++++++++++++++++++++++++++++++
Mumtool/docs/inbox.md | 3++-
Mumtool/docs/tools.md | 2+-
5 files changed, 55 insertions(+), 3 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog ## [Unreleased] -- **A model can propose verdicts for a fact-check's unruled claims, for you to approve or reject.** `pnpm ops report-draft --json '{"task":"verdicts","article":"<id>"}'` asks each claim with no verdict, with the verdict bench's own prompt, and keeps each proposed verdict, its reason, the model and the prompt version in `verdicts.proposed.json` beside the article, never in `report.json`. It runs only on a model you ticked on the verdict bench (`settings.generation.verdicts.models`, empty until you do), and never sets a verdict itself. umtool's Inbox shows "N verdicts proposed" under Review; **Review verdicts** opens the article, where each proposal has **Approve** (the claim gets that verdict) and **Reject** (the claim stays unruled), with an optional note. A claim you have ruled, or whose proposal you have reviewed, is not asked again. `pnpm ops verdict-review` does the same from the command line. Needs a restart of the editor and umtool. +- **A model can propose verdicts for a fact-check's unruled claims, for you to approve or reject.** `pnpm ops report-draft --json '{"task":"verdicts","article":"<id>"}'` asks each claim with no verdict, with the verdict bench's own prompt, and keeps each proposed verdict, its reason, the model and the prompt version in `verdicts.proposed.json` beside the article, never in `report.json`. It runs only on a model you ticked on the verdict bench (`settings.generation.verdicts.models`, empty until you do), and never sets a verdict itself. umtool's Inbox shows "N verdicts proposed" under Review; **Review verdicts** opens the article, where each proposal has **Approve** (the claim gets that verdict) and **Reject** (the claim stays unruled), with an optional note. A claim you have ruled, or whose proposal you have reviewed, is not asked again. `pnpm ops verdict-review` does the same from the command line, naming the verdict and time of the proposal you saw: if it was replaced since, or its claim changed (a revision that moved the claim ids), the review is refused instead of ruling the wrong claim. A proposal whose claim changed is counted as stale and not shown; a `verdicts.proposed.json` that does not read is shown on the article and as a Blocking card. Proposals read the transcript window in `settings.generation.verdicts.window`, which saving the bar on the verdict bench sets to that run's window. An article is not deleted while a proposal job runs for it. Needs a restart of the editor and umtool. - **The verdict bench asks to the operator's standard, and says which prompt it asked with.** What each verdict means is written once (`common/lib/report/verdicts.mjs`) and read by the bench's prompt, REPORT.md and umtool's bench page: CORROBORATED when the substance of the claim is shown by the cited words (framing, emphasis or a detail the transcript does not show does not demote it), PARTLY only when a part is shown overstated or wrong, and when in doubt between the two, CORROBORATED. The model now writes its reason before its verdict, and sees the report's title, the claim's section, and each cited line's speaker and recording date. Each run records its prompt version and a hash of its items; a run made before this is version 1, and a run is never resumed under another version. Needs a restart of the editor and umtool. - **`archilyzer reports bench-verdicts` takes `--items-from <run>`, `--window-mode seconds|turn` and a stratified `--limit`.** `--items-from vb-r28` asks the same items again (for example a local model on a new prompt, at no cost). `--window-mode turn` shows the cited speaker's turn instead of a fixed number of seconds either side, bounded by `--window`. `--limit` keeps every verdict the operator ruled, in proportion. A re-run of a run asks only the models it names, so a local-only re-run never asks a paid model again. A citation that gives no transcript is listed with its reason instead of being left out silently. `pnpm ops bench-verdicts` takes the same keys (`itemsFrom`, `windowMode`, `limit`). - **umtool's verdict bench compares runs and takes your marks.** `/tools/bench` shows each run's prompt version and items hash, and **compare with** lists the runs over the same items: each model's agreement in both and every claim whose answer changed. Each disagreement has **Right** and **Wrong** (was the model right?), kept beside the run, and the not-CORROBORATED precision and recall beside the bar are shown as ruled and with your marks, so the bar can be set from what you marked. "What the verdicts mean" lists the definitions. diff --git a/plans/FACTS.md b/plans/FACTS.md @@ -9512,3 +9512,11 @@ parsed to 0 cues, indexing the video textless) is CLOSED by `200a3105` (transcri (`umtool/lib/articles/verdicts.ts` `readArticleProposals`), group Review, action "Review verdicts" → `/articles/<id>?tab=article`, whose region `verdict proposals` approves or rejects through `/api/articles/verdicts` → `POST /api/ops/verdict-review`. +- **Review fixes (2026-10-15):** a proposal's `fingerprint` (`claimFingerprint`: the claim's text and its citations' + kind, recording, seconds, quote) ties it to the claim it judged; a mismatch is STALE (not waiting, review 409, no reason + to skip). `verdict-review` requires `verdict` and `at` (a compare-and-set, all under one lock; + `patchArticleHoldingLock` in `registry.ts` is `patchArticle`'s body for a lock holder). No sidecar write without + `report.json`, no `mkdir`; a running verdicts job is `job {jobId, pid, host, since}` on the sidecar and + `planArticleDelete` refuses while it is live. `settings.generation.verdicts.window {mode, seconds}` (default seconds, + 60) is the window proposals read; umtool's bar form writes the run's. `benchItemsHash` covers the claim's text and its + quotes' spans. diff --git a/plans/release-29.md b/plans/release-29.md @@ -329,6 +329,49 @@ Found and left: leaves a `proposed` entry on a ruled claim, which nothing shows (the inbox and the tab list unruled claims only) and a rerun skips. +### M8/V1 review fixes, as shipped (2026-10-15, lane B, `r29/verdicts`) + +The read-only review of `3217bdfb..925bc809` (seven findings) and the orchestrator's rulings, fixed on top of `925bc809`: + +- **Fingerprint (1).** Each proposal carries `fingerprint` = `claimFingerprint(claim, citations)` (sha256, 16 hex, of the + claim's text and each citation's kind, recording, seconds and quote). A proposal whose claim's fingerprint is not the + current one is STALE: never waiting (umtool counts it: "N stale (the claim changed since)"), its review refused 409, + and — reviewed — no reason to skip the claim now under that id (`proposeVerdicts`, `recordVerdictProposals`). Tested on + a revision that drops a claim and shifts the ids. +- **Compare-and-set (2).** `verdict-review` takes `verdict` and `at` (the proposal shown; required). The whole review runs + under ONE lock (`patchArticleHoldingLock`, new in `registry.ts`, `patchArticle`'s body): refused 409 when the proposal + was replaced or reviewed, its claim changed or was ruled; the CHECKED proposal is recorded. umtool's panel sends them + and shows a refusal. Tested: a rewrite between view and click, concurrent approve and reject (one wins, the record and + the claim agree). +- **No orphans (3).** Every sidecar write is under the lock and refused (404) when `report.json` is absent; no `mkdir`. A + verdicts job marks itself on the sidecar (`job {jobId, pid, host, since}`, cleared at its end); `planArticleDelete` + refuses while the mark names a live process on this host. +- **The `code` route (4).** MCP `generate` refuses a verdicts job routed to `code` with no model ("a session never proposes + or rules claims' verdicts itself"); its `@@report-draft` verdicts marker (iteration 0) is rendered with the counts and + the operator's review; `.claude/commands/gen.md` step 4 says verdicts are never a session's. +- **Resume (5):** a changed `--limit` is refused. **Hash (6):** `benchItemsHash` includes the claim's text and its quotes' + spans (context lines still out). **Unreadable sidecar (7):** shown on the article tab (`data-proposals-error`) and as the + Inbox's `unreadable-proposals` (Blocking, "Repair verdicts.proposed.json"). +- **The window (the open question, ruled):** `settings.generation.verdicts.window {mode: seconds | turn, seconds}` + (default the bench's: seconds, 60; SETTINGS.md) is what proposals read. umtool's bar form saves the run's window with + the bar ("proposals read ±60 s (this run's window)"); a save without one keeps the set window. + +| Commit | What | +| --- | --- | +| `58270685` | common, editor, mcp: the fingerprint, the compare-and-set, no orphans + the delete refusal, the MCP/`code` route, the limit, the hash, the window setting; tests; SETTINGS.md, COMMANDS.md, settings.json.example, gen.md | +| `a6c42610` | umtool: the panel (verdict/at, refusal, stale, error), `unreadable-proposals`, the bar's window; both specs | +| `309c2fbe` | umtool: the window line as one string | +| (this commit) | this record, FACTS, CHANGELOG, umtool docs | + +Gates (at `309c2fbe`): repo-wide tsc clean at each commit; common **4205/4205** (+3: the shift, the compare-and-set, no +orphans and the delete refusal; the settings window; the bench limit and hash); editor unit 306/306 (`_verdicts.test.ts`: +the compare-and-set body, the window from settings in the log); mcp **371/371** (+1: the `code` route refused, the +verdicts marker rendered); test:scripts 1016 tests, 1013 pass, 3 skipped, 0 fail (+1 `unreadable-proposals`); umtool +33/33; docs cli/files/env and settings example checks clean; umtool e2e `verdict-proposed.spec` + `verdict-bench.spec`: +run 1 4 passed, 1 failed (the bar's window line rendered without its space — `309c2fbe`), run 2 `verdict-bench.spec` +**4/4**; `verdict-proposed.spec` **1/1** in run 1 (the stale proposal counted, the rewrite between view and click +refused, then rejected on reload). + ## Not in this release Auto-posting to X/Bluesky/YouTube (text only); any umtool restructuring; the "en track → 0 cues" bug (closed in r20). diff --git a/umtool/docs/inbox.md b/umtool/docs/inbox.md @@ -91,11 +91,12 @@ Cover); a cut's opens the cut's page, at the song's full path. | `refresh-held` ([refresh.md](refresh.md)) | Your call | Refresh | | `iteration-ready` — done, not current, newer than current | Review | Make i<n> current | | `drafts-unreviewed` — drafted fields awaiting review (unreviewed, or edited since approved) | Review | Review drafts | -| `verdict-proposed` — a model's proposed verdict for a fact-check's unruled claim (the article's `verdicts.proposed.json`), one row per proposal; gone once approved or rejected on the article's tab, or the claim is ruled by hand | Review | Review verdicts | +| `verdict-proposed` — a model's proposed verdict for a fact-check's unruled claim (the article's `verdicts.proposed.json`), one row per proposal; gone once approved or rejected on the article's tab, the claim is ruled by hand, or the claim changes under its id (a stale proposal: counted on the tab, never shown) | Review | Review verdicts | | `edition-ready` | Review | Review edition | | `refresh-available` — a partial check says so ("the check was partial — not reached: …; a Refresh reads the rest"), never "nothing new" | Review | Refresh | | `open-note` — an operator note (its href ends `note=<id>`) | Notes | Answer note | | `unreadable-notes` | Blocking | Repair notes.json | +| `unreadable-proposals` — an article's `verdicts.proposed.json` does not read: no proposal is shown or written until it is fixed | Blocking | Repair verdicts.proposed.json | | `link-ambiguous` — a slug match no iteration or manifest settles | Open | Link the video | | `looks-done` | Ready to finish | Mark done | diff --git a/umtool/docs/tools.md b/umtool/docs/tools.md @@ -13,7 +13,7 @@ a tool the rail opens Tools into its tools: find · mix · **song ▸** (the fou | Faces | `/tools/faces` | every cover corner on record, deduped by episode and moment, the ones that ship first: judge the crop (`face-verdicts.json`, which `make-thumb.mjs` reads; the page never touches the thumb manifests). The dashed box is what `facecrop.py` would cut, the solid one yours. `?cover=` / `?key=` open one | | Sources | `/tools/sources` | where the song palette comes from: placements (the finished runtime an episode supplies) and clips (the palette) per episode — different units, both shown, never summed — the top episode, the top five, how many cover half | | Trim | `/tools/trim/<set>` | a hook set's trims against the waveform, then **run the chain** (apply-hook-trims → pick-take → mix-hooks) | -| Verdict bench | `/tools/bench` | could a model propose a fact-check verdict well enough to review: runs of `archilyzer reports bench-verdicts`, each with its prompt version and items hash, each model's agreement and recalls against the bar (**passes the bar** / **fails the bar**), confusion matrices, the items; **compare with** another run over the same items (each model's agreement in both, the claims whose answers changed); **Right** / **Wrong** on each disagreement (was the model right? kept in the run's `marks.json`), and not-CORROBORATED precision and recall as ruled and as marked beside the bar; what the verdicts mean. The bar is set here (`settings.generation.verdicts`); a ticked model is the only kind verdict proposals run on (the Inbox's `verdict-proposed`, [inbox.md](inbox.md)) | +| Verdict bench | `/tools/bench` | could a model propose a fact-check verdict well enough to review: runs of `archilyzer reports bench-verdicts`, each with its prompt version and items hash, each model's agreement and recalls against the bar (**passes the bar** / **fails the bar**), confusion matrices, the items; **compare with** another run over the same items (each model's agreement in both, the claims whose answers changed); **Right** / **Wrong** on each disagreement (was the model right? kept in the run's `marks.json`), and not-CORROBORATED precision and recall as ruled and as marked beside the bar; what the verdicts mean. The bar is set here (`settings.generation.verdicts`), and with it the window proposals read (`verdicts.window`: the run's window mode and seconds); a ticked model is the only kind verdict proposals run on (the Inbox's `verdict-proposed`, [inbox.md](inbox.md)) | A song's own page links its piles, find, mix and sources (its Overview's Song tools; [piece.md](piece.md#a-song-projectspath)). The old addresses (`/sort`, `/salvage`, `/verify`, `/keeps`, `/mix`, `/bench`, `/browse/find`, `/browse/faces`,