commit aeae755187e2470048052018f7b1ff7c236be8a8
parent 9f922890e991dde9e072787d621efe0e9dc010b2
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Fri, 16 Oct 2026 18:36:03 -0400
plans: release 32 lane R2 (by hand, no model) as shipped — record, FACTS, CHANGELOG
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
3 files changed, 128 insertions(+), 0 deletions(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -7,6 +7,11 @@
- **A video's media operations are buttons on its page.** Under **Media tools**: attach the video's file from a local archive (a folder, a .zip or a .7z; preview, then attach), make a playable copy of its saved video, and for a Wayback or archive.org record bring the channel's records up to their rules (preview, then refresh; a Wayback record's title and date can be given with it). Needs a restart of the editor.
- **More ops-only operations have buttons.** Each article on the Articles tab has **Attach video** (a video file, a poster and a caption: what `archilyzer reports attach-video --article` did). The Download stage's **More ways in** imports an archive.org item, completes a podcast channel's records from its feed, and reads an Odysee or BitChute channel's remote listing; a posts channel imports one post by its URL and captures posts by id; the Cleanup stage has **Keep videos matching** (preview the matches, then keep them). Needs a restart of the editor.
- **An Odysee channel's Configure form shows the audio check on.** The check is on by default for Odysee, but the box showed unticked; it now shows ticked with "on by default for Odysee", and unticking it turns the check off for the channel (`pnpm ops channel-config` with `"audioCheckEnabled": false` too). Needs a restart of the editor.
+- **An article can be written by hand in umtool, with no model.** Create's article form starts **blank** (no model, no editor job): an article in the making whose first iteration is a titled report with no sections. On an article's Iterations tab, **Add a claim** puts a claim in a section (or a new one) with your verdict, citing the report's citations or new ones — paste an archive link, a copied citation or `channel/id@m:ss`, click the transcript lines you mean, and the quote is checked word for word against the record before anything is saved (a paraphrase is refused). A claim goes into a hand draft nobody uses yet, or into a new iteration; **Use this iteration** makes it the article's, as for any other.
+- **Fix a mishearing from the article page.** The Iterations tab's **Fix a mishearing** is `archilyzer reports respell` in the UI: the heard forms, what was said, bracketed or not, a note → **Preview** shows every change per file as before → after → **Apply** writes them with the same backups the CLI makes, lists the backups, and offers the video's Build tab when its manifest changed. The report's respellings are listed with their heard forms. The drafts review's "fix this mishearing" opens it with the heard words filled.
+- **A learned spelling can be added by hand.** On a watch's series page, **Add spelling** (beside **Propose spellings**) takes how the transcripts write a watched name and which name it means; the editor counts it in the watch's scope and finds the line that shows it, with no model, and keeps it (marked "added by hand") only when it occurs. `pnpm ops report-schedule --json '{"action":"add-spelling","id":"<watch>","spelling":"<spelling>","means":"<name>"}'` does the same. A spelling you removed and then add by hand is no longer blocked. Needs a restart of the editor.
+- **A new video project can be seeded from a frame scan.** The new-project form's seed is now a choice — an empty timeline, the digest's chapters, or the frame scan's events — each offered when the video has it, with the frame cut's target length in seconds (what `umtool new --seed frames --target` does).
+- **Fill empty fields by hand on a cut's Media tab.** Beside the drafts, **Fill empty fields by hand** lists every media field the cut leaves empty — each clip's on-screen title, a teaser's lines, the YouTube title and description, the X and Bluesky posts — and the flips or threads (which had no editor of their own) as blanks you fill. What you write is saved as yours ("written by hand"): no draft replaces it, so a cut can reach a buildable manifest with no model at all.
- **Odysee downloads always get the audio check, clip windows included.** A video from Odysee — which intermittently serves corrupt audio — is downloaded with the audio check on unless its channel turns it off (`audioCheck: {"enabled": false}`); before, a channel had to opt in. A clip window from such a source now gets the check's final probe too: a malformed window is deleted and fetched once more, and if it is malformed again the fetch fails and nothing is kept, so a clip is never cut from corrupt audio. The verdict is recorded in the window's provenance.
- **An article can correct what the transcripts mishear in its quotes.** `archilyzer reports respell <article> --heard "cake cup,cakeup" --reads K-Cup` previews every change — the article's quotes and citations, its report's own words, and its video's burned-in quotes and flip cards — as before → after, and writes nothing; `--apply` writes it, each file backed up first. `--bracket` shows the correction as an altered quote, `[K-Cup]`. The article records the respelling, and every quote check applies it to the transcript before comparing, so a corrected quote still verifies exactly; the transcript itself is untouched. A video shows the new words once it is rebuilt.
- **`pnpm ops audio-audit` checks the audio already on disk, file by file.** `pnpm ops audio-audit --json '{"platform":"odysee"}'` (or `{"slug":"<channel>"}`; `"scope":"all"` for transcribed videos too, `"max"` to cap the files) decodes each audio file a channel holds with error tolerance — one file at a time, at the lowest CPU and disk priority — and writes what it found beside the file in `audio-integrity.json`: clean, damaged (part of it will not decode) or undecodable, with how much decodes and where the gaps are. Audio downloaded before the audio check existed, or on a channel without it, was never checked. The same command again skips the files already checked. A drive that stops answering ends that channel's run with a sentence that says so instead of hanging.
diff --git a/plans/FACTS.md b/plans/FACTS.md
@@ -9954,3 +9954,37 @@ parsed to 0 cues, indexing the video textless) is CLOSED by `200a3105` (transcri
records refreshes are armed by a preview of the same settings; the playable copy (lossless, keyed by the source's
sha256) is not.
+## Release 32 lane R2: by hand, no model (verified 2026-10-16, branch `r32/by-hand`)
+
+- **Iteration kind `hand`** (`lib/report/iterations.ts` ITERATION_KINDS): written by a person, model `"hand"`, usage
+ `{}`; no parent required. Writers in `controller/handEdits.ts`: `startBlankArticle(id, {title, kind})` (refuses an
+ id with a report.json or any iteration; i1 done, report `{…, sections: []}`) and `addClaimByHand(id, {base?,
+ section: {id} | {title}, claim: {text, title?, verdict?, gist?, flag?, findings?}, cite?, add?})`. Base default
+ (`defaultHandBase`): current `reportFrom`, else the newest done iteration with a report.json; an article with a
+ report.json and no iteration is its own base (the claim's iteration is i1, no parent). A base of kind `hand`
+ that is not current (report, reportFrom, video) and has no `projectDir` is AMENDED (report rewritten, `feedback`
+ gains a line); any other base → a NEW hand iteration, `parent` = base. Nothing is made current.
+- **A new citation's check** is `verifyReportQuotes` (bin/reports-check.ts) over a probe report holding only the new
+ citations and the report's `respellings`: `ok` and `fragment` pass; everything else (`drift`, `inexact`,
+ `en-orig-drift`, `missing-record`, `no-cues`, `missing-post`, `unreadable`) refuses with the per-citation lines in
+ `HandEditError.problems`. New ids: citations `h1, h2, …`, claims `c1, c2, …`, a new section the title's slug.
+ `readCitedRecord` needs a record a corpus has (metadata.info.json + a transcript, or a fresh cues.json); umtool's
+ e2e `sitechan` records (a bare `transcript.cues.json`) read as `missing-record`.
+- **umtool routes**: `POST /api/articles/respell` (planRespell / applyRespell; hunks = `wordHunks`; files shown
+ relative to the article's folder or the projects root), `GET|POST /api/articles/by-hand` (the base view; `?moment=`
+ → `parseMoment` + `cuesAround` (publish/citedCues.ts: controller/ may not import publish/) −20/+60 s; `action: blank | claim`), `GET|POST /api/report/hand-fill`,
+ `GET /api/projects/new?from=` (`seedsFor` → `{video, chapters, frames}`: ai-digest.json, frame-scan.poker.json).
+ The Iterations list re-reads on the window event `umtool:iterations-changed` (HandTools.tsx `ITERATIONS_CHANGED`).
+- **Learned spellings, source `"hand"`** (`SpellingSource`): `report-schedule {"action":"add-spelling", id,
+ spelling, means}` → `addSpellingByHand` (controller/learnedSpellings.ts): `means` must be one of `namesOf(terms)`;
+ refused when not words / > 4 words or 48 chars / the name itself / found by the terms / learned already / at
+ LEARNED_CAP; proved by `proveByHand` (triage/confirm.ts: the uncapped count, then the first line holding it in the
+ newest ≤3 recordings, via `get_transcripts`); no hits or no readable line → refused, nothing written. A blocked
+ spelling added by hand is unblocked. The editor binds the prover (`handProver`, reportLearn.ts) as
+ `proveSpelling` in `_reportSchedule.ts`; without it the action answers "not wired".
+- **Fill by hand** (`umtool/lib/report/hand-fill.mjs`): `handFillView(manifest)` → empty fields (clip `onscreen`,
+ teaser `lines`, `publish.youtube|x|bluesky`, by `isEmptyField`), the clips, `deck` (render.chrome present), the
+ flips / threads as they stand; `applyHandFill(dir, fills, {token})` writes each through `writeDraftedField` in
+ HAND_FIELDS order, token chained, stopping at the first refusal (earlier writes kept and named). Written unmarked =
+ the operator's. A blank is never written as a placeholder.
+
diff --git a/plans/release-32/by-hand.md b/plans/release-32/by-hand.md
@@ -0,0 +1,89 @@
+# Release 32 lane R2 — by hand, no model (as shipped)
+
+Operator rule (2026-10-16): every step a model can do, a person can do in the UI, with no model. An audit found six
+gaps in umtool; this lane closes them. Nothing here calls a model.
+
+## What
+
+1. **Fix a mishearing** (respell had no UI). On an article's Iterations tab (`HandTools`, "by hand" region): heard
+ forms, reads, bracket, note → **Preview** (every change per file as word hunks, `wordHunks`) → **Apply** (the
+ CLI's `applyRespell`, its backups listed) → **Rebuild the video →** (the iteration's project's Build tab) when the
+ manifest changed. The report's respellings are listed with their heard forms. Apply waits for a fresh preview when
+ a field changed since. `?tab=iterations&heard=<words>` (R1's drafts-review link) opens it with Heard filled,
+ scrolled into view.
+2. **Add a claim by hand.** Same region: section (existing or new), title, text, verdict (fact-check only), the
+ report's citations as checkboxes, and new ones from a pasted moment (archive link, the house citation,
+ `channel/id@m:ss`) whose cues are listed to click — the quote, start and end come from the lines picked. Saved
+ through the iterations store as a `hand` iteration (or into a hand draft no one uses); every new quote is checked
+ strictly against the record first (verify-quotes' check: `ok`/`fragment` pass), else refused with nothing written.
+ Nothing is made current.
+3. **A blank start.** Create's article form: "blank (no model: write it by hand)" — title, kind (fact-check | sweep),
+ id → an article in the making, i1 a `hand` iteration with a titled empty report; the page opens on its
+ Iterations tab, where Add a claim fills it.
+4. **Learned spellings by hand.** Series page: **Add spelling** (spelling + the watched name it means) →
+ `report-schedule add-spelling`: counted in scope and its proving line found by code (`proveByHand`), kept with
+ source `"hand"` ("added by hand") only when it occurs.
+5. **A "frames" seed** in the new-project form: the seed is a select (empty, digest chapters, frame scan events),
+ each offered when the video has it (`GET /api/projects/new?from=`), with the frames cut's target seconds.
+6. **Fill empty fields by hand** on the Media tab (under the drafts): every empty clip on-screen title, teaser lines,
+ YouTube title/description, X and Bluesky post as blanks; the flips or the threads whole when the deck is on.
+ Written through `writeDraftedField` with no drafted mark — the operator's, "written by hand", never replaced.
+ Found missing and added: hand editors for YouTube, X/Bluesky, flips and threads (teaser lines already had
+ StructureEditors; on-screen titles OnscreenSection).
+
+## Files
+
+common: `lib/report/iterations.ts` (kind `hand`), `controller/handEdits.ts` (+ test), `controller/learnedSpellings.ts`
+(`addSpellingByHand`, + test), `controller/reportLearn.ts` (`handProver`), `controller/reportScheduleOps.ts`
+(`add-spelling`, body key `means`), `lib/report/draft/triage/confirm.ts` (`proveByHand`, + test in learned.test.ts),
+`lib/report/draft/triage/learned.ts` (`SpellingSource` + `"hand"`). editor: `app/api/ops/_reportSchedule.ts`
+(`proveSpelling`), `app/api/ops/report-schedule/route.ts` (comment). scripts: `archilyzer-ops.mjs` (help). umtool:
+`app/api/articles/{respell,by-hand}/route.ts`, `app/api/report/hand-fill/route.ts`, `app/api/projects/new/route.ts`
+(GET), `app/api/schedules/route.ts`, `components/articles/{HandTools,IterationsView,IterationsTab,NewArticleForm}.tsx`,
+`components/series/LearnedSpellings.tsx`, `components/NewProjectMenu.tsx`, `components/projects/HandFill.tsx`,
+`components/projects/report/MediaTab.tsx`, `lib/articles/hand-types.ts`, `lib/report/hand-fill.mjs` (+ test),
+`lib/projects/{scaffold.mjs,scaffold.ts}`, `lib/scaffold-frames.test.mjs`, `lib/inbox.ts` ("by hand"),
+`e2e/by-hand.spec.ts`. COMMANDS.md, FACTS.md, CHANGELOG.
+
+## Interfaces
+
+- `startBlankArticle(id, {title, kind?}, paths?, now?)`, `addClaimByHand(id, HandClaimInput, paths?, now?)` →
+ `{n, amended, claim, section, added: [{id, check}], warnings}`, `defaultHandBase`, `checkAddedCitations`,
+ `parseMoment(text)`, `cuesAround(channel, id, from, to, paths?)`, `HandEditError {problems}`, `HAND_MODEL`.
+- `addSpellingByHand(id, {spelling, means}, {paths, prove, now?})` → `{added, unblocked}`; `HandProver`;
+ `proveByHand(i, {corpus, count})` → `HandProof`; `handProver(draftDeps)`.
+- `pnpm ops report-schedule --json '{"action":"add-spelling","id","spelling","means"}'`.
+- umtool: `POST /api/articles/respell`, `GET|POST /api/articles/by-hand`, `GET|POST /api/report/hand-fill`,
+ `GET /api/projects/new?from=`; `handFillView`, `applyHandFill`, `seedsFor`.
+
+## Rulings followed / decisions
+
+- A hand claim on a hand draft no one uses amends it (one draft, not one iteration per claim); any other base gets a
+ new `hand` iteration. Model name `"hand"`.
+- New quotes: `ok` and the `fragment` warning pass; every other status refuses.
+- A spelling a person removed and then adds by hand lifts its block (the person's word, again).
+- Fill by hand writes only what is filled; a blank is a form field, never a manifest placeholder. Flips/threads:
+ the one the cut has, else both offered and the last edited saved (a cut has one or the other).
+- Fill by hand is its own section under the drafts on the Media tab, not inside the Draft everything row.
+
+## Gates
+
+Final, on `3f4e20c0` + `6132db61` (main `45c5a583` merged), all through the shared lock:
+
+- tsc (all packages) clean, before every commit.
+- common 4465 (4464 pass, 1 skipped, 0 fail; baseline 4448 on `977917c7`, +17: handEdits 8, citedCues 1, add-spelling
+ 1, proveByHand 1, the rest from main's merge). An earlier run caught a new layer back-edge (controller/ →
+ publish/): `cuesAround` moved to `publish/citedCues.ts`.
+- umtool 33 (unchanged); scripts 1048 (1044 pass, 4 skipped, 0 fail; baseline 1042 + 3 skipped: +3 tests —
+ hand-fill 2, seedsFor 1; one more environment skip than the baseline, not from this lane); editor 327 (main's
+ 322 + R3's); mcp 377.
+- docs env, files, cli and settings example `--check` clean (COMMANDS.md regenerated for `add-spelling`).
+- e2e umtool (single specs, foreground/detached under the lock): by-hand.spec.ts 3/3 (11.9 s); final run
+ by-hand.spec.ts + article-iterations.spec.ts 7/7 (41.4 s). Earlier runs: 1 passed 1 failed (the respell
+ fixture's word occurred in the title and claim too — the spec now respells a word only the quote holds), then 2/2.
+
+## Not done
+
+- No e2e for "Add spelling" (the editor stub runs report-schedule without a corpus to count in: `add-spelling`
+ answers "not wired" there); covered by unit tests over the corpus fakes.
+- The flips/threads hand editors are form editors only (no preview of the panel).