Archilyzer · Source

archilyzer

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

commit 566df332dd60151b2303648e9c4d3a989d6a8419
parent 4d8554619ffd2850d0435cb1ed5b40987b074248
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 14 Oct 2026 23:49:26 -0400

plans: umtool redesign — R6.3 record, final: the review's rulings (the majority rule, proper names only), the proof's runs 5–6 as shipped (Stix kept both times; each window checked against the cues), the Settings save fix for cookies-mode.spec:73 and its measurements, the re-gate; status row

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

Diffstat:
Mplans/umtool-redesign.md | 118++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------
1 file changed, 84 insertions(+), 34 deletions(-)

diff --git a/plans/umtool-redesign.md b/plans/umtool-redesign.md @@ -468,7 +468,7 @@ mis-transcriptions and adapt by adding its own terms. | P6b 308s, screenshot audit | `ux/p6b` → `main` `850e0989` | LIVE 2026-10-14 (umtool Te2jR-P8…) | | R6.1 honest tier 0 + R4.1 | `ux/r61` | shipped on the branch | | R6.2 seen = transcribed | `ux/r62` → `main` `3d8af5b8` | LIVE 2026-10-14 (editor p2L5XyqT…) | -| R6.3 learned spellings | `ux/r63` | shipped on the branch (`12f232e4` + this record) | +| R6.3 learned spellings | `ux/r63` | shipped on the branch, the review's rulings applied (`442b9568` + this record) | | Co-host pilot | — | RESUMED 2026-10-14 (weekly Mon 06:00 ET; first automatic tick 2026-10-19); seeded with learned spellings when R6.3 lands | ### P2a, as shipped @@ -3770,8 +3770,8 @@ alone; full umtool e2e on the merged tip 538 passed, 0 failed, 6 skipped. Docs: - **The names** (`lib/report/draft/triage/learned.ts` `namesOf`): each top-level alternative of the terms that is literal once its `^`/`$`/`\b` anchors are stripped (a class, quantifier or group is skipped) and has a capital - letter or a space — a phrase of several words; a hyphenated word is one word. Capitalised first, at most 16 a pass - (`NAMES_PER_PASS`, the rest said as "not asked"). The pilot's terms give 18: 9 names and 9 phrases. + letter — proper names only (the review's ruling: lowercase words and phrases are not names). At most 16 a pass + (`NAMES_PER_PASS`, the rest said as "not asked"). The pilot's terms give 9. - **Proposed** (`triage/confirm.ts` `proposeSpellings`, `parseProposals`): the triage model (the schedule's tier-1 model, `settings.generation.triage`, local by default) lists up to 5 likely mis-hearings a name. Put aside, with the reason kept: the name itself, a repeat, a spelling already in the terms, learned or removed, one the terms' @@ -3783,10 +3783,14 @@ alone; full umtool e2e on the merged tip 538 passed, 0 failed, 6 skipped. Docs: - **Confirmed by code and the judge** (`confirmSpellings`): every pending spelling is counted in scope at once and uncapped (`countPhrases`, below). No hits: dropped "no-hits"; a count that could not read everything and found nothing is "unread", never "none". Then the judge reads up to 3 windows where it occurs — a heard span's own - recording first, then the newest — and **every** window read must say it means the name, quoting the line, which - must be verbatim in the window and the cues. One "no" drops it ("not-the-name", the judge's reason kept); a yes - whose line is not verbatim drops it ("not-verbatim"). Kept: `{spelling, means, quote, recording, channel, start, - url, hits, lines, source: proposed | heard, at, k?}`. + recording first, then the newest — each answering whether it means the name and quoting the line, which must be + verbatim in the window and the cues. **The rule (`keptByWindows`, the review's ruling): kept when at least 2 of the + windows read say it means the name, each with a verbatim quoted line; with only 1 window, that yes AND at least 3 + recordings in scope.** Else dropped: "not-verbatim" (the judge agreed often enough, its lines were not verbatim), + "too-few" (one window's yes, fewer than 3 recordings), "not-the-name" ("k of n windows read said …, needs 2", + the first "no"'s reason). Every window's verdict `{recording, start, means, verbatim, reason, quote?}` is kept on + the spelling (`windows`) or on its drop, and logged. Kept: `{spelling, means, quote (the newest yes), recording, + channel, start, url, hits, lines, source: proposed | heard, at, k?, windows}`. - **The count** (`mcp/src/enumerate.ts` `countPhrases`; `CorpusTools.countPhrases`, not an agent tool): the scope LISTED (R6.1's `listRecordings`, a recording without a transcript not counted), then enumerate's own scan restricted to those ids in batches of 1,000 (under the 2,000-recording cap, so a batch is never cut), the phrases @@ -3832,7 +3836,8 @@ alone; full umtool e2e on the merged tip 538 passed, 0 failed, 6 skipped. Docs: select — global or a site's — the alias as it will be written, **Confirm promote** / **Keep it**); **Propose spellings**; the last pass and the dropped ones with their reasons. The triage page's tier 0 says "terms + N learned (M by a learned spelling alone)" and a candidate a learned spelling brought reads `learned “…”`. - `/api/schedules` forwards `learn`, `unlearn`, `promote-alias` (a plan clears no cache). + `/api/schedules` forwards `learn`, `unlearn`, `promote-alias` (a plan clears no cache). The lit spelling lists each + window the judge read with its verdict ("the name", "not the name", "not verbatim"). - **The umtool e2e stub** (`common/testing/schedule/opsStub.ts`): the real action and writer; a learn records a pass at once (two spellings kept, one dropped); the triage stub names a candidate a learned spelling brought; promote and unlearn are the real ones over the fixture (`<fixture>/search-aliases.json`, `<fixture>/sites`). @@ -3842,21 +3847,37 @@ alone; full umtool e2e on the merged tip 538 passed, 0 failed, 6 skipped. Docs: **Read-only proof on the real corpus** (offline `tsx` over `export/.export-builds/jeralyzer/out` through `createCorpusTools` — the editor's path — no editor, no writes; the pilot's scope, terms and question from its live series.json, read only; the local model `qwen3:8b` on ollama, the GPU checked free before every call — 0% busy, no -model loaded, no transcription process — none was seen, nothing stubbed). Four runs as the rules were calibrated -(the model is not deterministic: each run proposes differently): +model loaded, no transcription process — none was seen, nothing stubbed). Six runs; the model proposes differently +each run (ollama's default sampling). Runs 1–4 calibrated the first cut; **runs 5 and 6 are the rules as shipped** +(proper names only, a spelling the terms find is known, the majority rule): | run | rules | proposed | in scope | kept | |---|---|---|---|---| -| 1 | first cut: one yes keeps | 26 (16 names; "taking flack", "taking flak" not asked) | Melony 39 recordings, Melanie Mack 1,039, Gothics 240, cohost 50 | 4: **Melony** on "the packers beat melony steelers" (wrong), Melanie Mack, Gothics, cohost — the last two the terms already find | -| 2 | + a spelling the terms find is not new | 14 (17 put aside as already found: Melanie Mack/Macs/Mackie, cohost, Gothixs, …) | Meloney 1, Melani 4, Gothics 240, Stix 94 | 4: **Meloney** on "a guy named dr. Robert meloney" (wrong), Melani, Gothics, Stix | -| 3 | + every window read must agree; a stricter prompt | 19 | Gothics 240, Stix 94 | 0 (both judged not the name in their first window) | -| 4 | the prompt as shipped | 19 | Melony 39, Meloney 1, Gothics 240, Stix 94 | **0**: each judged not the name ("a different person", "a group or style", "a separate person") | +| 1 | first cut: one window's yes keeps | 26 (names and phrases) | Melony 39 recordings, Melanie Mack 1,039, Gothics 240, cohost 50 | Melony ("the packers beat melony steelers", wrong), Melanie Mack, Gothics, cohost | +| 2 | + a spelling the terms find is known | 14 | Meloney 1, Melani 4, Gothics 240, Stix 94 | Meloney ("a guy named dr. Robert meloney", wrong), Melani, Gothics, Stix | +| 3–4 | every window must agree | 19 each | Melony, Meloney, Gothics, Stix | none | +| **5** | **as shipped** | 13 (9 names; 11 put aside as known) | Melony 39, Melina 4, Gothics 240, Stix 94 | **Stix** (2 of 3 windows) | +| **6** | **as shipped** | 9 (14 known) | Meloney 1, Gothics 240, Stix 94 | **Stix** (2 of 3 windows) | -The count read all **23,194** transcribed recordings in scope (complete, no problem) in one scan for every phrase: -**10–11 s**; a whole pass 36–52 s, 18–26 model calls, $0; ~1.3 GB RSS. The 15 phrases' proposals ("joinin the show", -"no long on", "guesta host", …) never occur. The brief's example, "Melanie Mack", is already found by the pilot's -terms (`Melanie Mac` as a substring, and `\bMelanie\b`) — so on this pilot the watch has nothing to learn from its -own names today; the shipped rules trade recall (Gothics, Stix look right) for never learning on one window's yes. +Dropped under the rule as shipped: Melony 1 of 3, Melina 1 of 3 ("waitress Melina Salazar", another person), +Gothics 1 of 3 (both runs), Meloney 0 of 1. **Checked against the cues by hand** (the hit line and three cues each +side): + +| spelling | window | the cues | verdict | right? | +|---|---|---|---|---| +| Stix | the-quartering-rumble `v753wec` 1:37:31 | "I'm thankful for Stix, even if he's kind of lost his way / over the past couple of years" | the name | yes — the person, a former co-host | +| Stix | the-quartering-rumble `v6x1c7u` 1:29:49 | "Stix is crashing out. / Oh no. / Why? / What's he doing?" | the name | yes | +| Stix | quartering-live `3PWNracs5Gc` 45:37 | "Yeah, what does Stix do now? … I've reached out to Stix. I don't want / to make things worse for him" | not the name | **wrong** — it is him (the window opened on an ad read) | +| Gothics | quartering-live `wRmzxEW0qJc` 30:19 | "I forget her name. / Gothics came over and they were really / nice to her" | not the name | **wrong** | +| Gothics | quartering-live `95SQ02ALiCs` 1:46:54 | "there used to be a guy named / Sticks on the show. Not anymore. / Gothics. Not anymore." | not the name | **wrong** | +| Gothics | quartering-live `cSVLgZVS2-E` 20:59 | "we could bring / Gothics in probably" | the name | yes | + +So Stix (Styx) is learned rightly, and its third window — "what does Stix do now?" — was a miss by the judge, not +the word "sticks". Gothics (Gothix) is a real mis-hearing the 8B judge rejects in two of three windows, so it is not +learned. "Sticks" (another hearing of Styx, `95SQ02ALiCs`) was not proposed in either run. The count read all +**23,194** transcribed recordings in scope (complete, no problem) in one scan for every phrase: **9–11 s**; a whole +pass 38–52 s, 16–26 model calls, $0; ~1.3 GB RSS. The brief's example, "Melanie Mack", is already found by the +pilot's terms (`Melanie Mac` as a substring, and `\bMelanie\b`), so it is known, never proposed. **Commits** (`ux/r63`, from `main` `7ab19c75`; `main` `51a6fa8d` merged before the final gates): @@ -3869,7 +3890,11 @@ own names today; the shipped rules trade recall (Gothics, Stix look right) for n | `c7e60ae1` | merge `main` `51a6fa8d` (board race 3, the R6.1/R6.2 docs) | | `1a5aeebd` | `umtool/docs/triage.md` Learned spellings; the ops example | | `3eff3e68`, `12f232e4` | `[Unreleased]` bullets | -| (this commit) | this record; the status row | +| `6bed2c6a` | this record (first cut); the status row | +| `aaba3723` | editor: Settings' save answers without revalidating, the form refreshes after (`cookies-mode.spec:73`, below) | +| `27a35ab9` | the review's rulings: the majority rule (`keptByWindows`, "too-few"), each window's verdict kept and listed, proper names only; tests, the stub and the editor e2e to match | +| `442b9568` | docs and changelog to match; the Settings bullet | +| (this commit) | this record, final | **Gates.** @@ -3890,6 +3915,22 @@ own names today; the shipped rules trade recall (Gothics, Stix look right) for n | **full editor e2e** on the merged tip `12f232e4` (`export/public` linked from the primary, 0 dangling; queued, detached) | **716 tests: 703 passed, 1 failed, 12 skipped**, 22.6 min. Green among them: `report-draft.spec:505` (a watch learns a spelling over the fake model; the next tick's query carries it) and `ops-api.spec:1063` (learn's plan, promote-alias plan then confirm, unlearn). The red: `cookies-mode.spec:73` ("Saved" not visible within 5 s after Save settings) — not a known flake, and **not this lane's**: red 3 of 3 alone on the branch, and red 1 of 1 on `main` `51a6fa8d` checked out in this worktree (the same line); no settings or cookie code touched here | | **full umtool e2e** on the merged tip `12f232e4` (queued, detached, `R63_SHOTS`) | **548 tests: 542 passed, 0 failed, 6 skipped** (the song-data skips), 12.3 min — `learned-spellings.spec` 4/4, `triage-first.spec`, `recurring.spec` and `board.spec` green | +**Gates after the review's rulings and the Settings fix** (tip `442b9568`, `main` `51a6fa8d` merged): + +| Gate | Result | +|---|---| +| repo-wide `tsc --noEmit` | clean | +| common (`SETTINGS_FILE` at the primary's, read only) | **4190/4190** (the confirmation's tests rewritten for the majority rule over three windows — kept 2 of 3, kept on one window with 3 recordings, not the name 1 of 3, not verbatim, too few, no hits — and `keptByWindows` on its own; names capitalised only) | +| mcp / editor unit | **370/370** / **304/304** | +| umtool unit / `pnpm --filter umtool test` | 861 tests, 859 pass, 2 skipped, 0 fail / **33/33** | +| `pnpm run test:scripts` | 1013 tests, 1011 pass, 2 skipped, 0 fail | +| docs `cli --check` / `settings example --check` | clean / clean | +| capped editor `next build` | exit 0; compiled 21.5 s, 52.2 s wall, 2.52 GB max RSS | +| capped umtool `next build` (corpus linked, removed after) | exit 0; compiled 12.4 s, 40.3 s wall, 1.53 GB max RSS | +| **full umtool e2e** (queued, detached, `R63_SHOTS`) | **548 tests: 542 passed, 0 failed, 6 skipped**, 13.6 min — `learned-spellings.spec` 4/4 (now also the windows' verdicts), `board.spec` green | +| **full editor e2e** (`export/public` linked, 0 dangling; queued, detached, beside the umtool run) | **716 tests: 702 passed, 2 failed, 12 skipped**, ~24 min. `cookies-mode.spec` 6/6 and `report-draft.spec:505` (now three windows of the spelling, all three verdicts kept) green. The reds: `channels.spec:72` ("Renamed Channel" not visible after an edit) and `cleanup-page.spec:26` (a toggle still "Counted"), both a save's result not yet on the page under load; neither is touched here | +| `channels.spec` + `cleanup-page.spec` alone | **9/9, 9/9, 9/9** | + **Screenshots** (`r63-shots/`, from the full umtool run with `R63_SHOTS`, 1366×768, dark and light, the e2e fixture over the stub): the watch page's Learned spellings with the lit spelling's proving line and a "suggest removing" tag (`learned-spellings`), the promote plan with its alias list and the alias as written @@ -3897,19 +3938,28 @@ removing" tag (`learned-spellings`), the promote plan with its alias list and th one Tab stop, `j`/`k` move the light (asserted in the spec), the detail's buttons follow it in Tab order, Escape closes a plan; Confirm takes the focus when a plan opens. +**`cookies-mode.spec:73`, root-caused and fixed (`aaba3723`).** Not the environment: an app race in the editor's +Settings form, there since its save action called `revalidatePath("/settings")`. With it, the action's answer — +`useActionState`'s state, so the "Saved." status — committed only once the client router applied the revalidated +/settings tree, and a save made while the page's sidebar link prefetches were in flight (a click within about half +a second of load, which is what the spec does) did not apply until a LATER router refresh: AutoRefresh's next pulse +(5 s; the save moves settings.json's mtime, part of the pulse token) — the spec's 5 s expect — or never with +automatic refresh off. Measured over the e2e server: saves 5,390 / 5,391 / 5,377 ms with the default interval, 5 of +12 never showing "Saved." with the interval at 0, and 18 of 18 under 0.25 s without the revalidate. Whether a run +hits it depends on timing alone; no code between R6.2's run and `main` `51a6fa8d` touched it, and it went red 3 of 3 +here and 1 of 1 on `main` checked out in this worktree. The fix: the action returns without revalidating, and the +form calls `router.refresh()` once its answer is in (the sidebar title and the X login source re-render right +after). `cookies-mode.spec` 3/3 alone; with `auto-refresh`, `cadence-ui`, `branding`, `operation-settings`, +`settings`, `x-session` and `social-fetcher-picker`: 41/41. `xSessionActions.ts` still revalidates `/settings` (its +own buttons, which show their result from the answer's status, not a form state); left as is. + **Found and left.** -- **On the pilot the watch learns nothing yet.** Its names' mis-hearings either never occur, are already found by - its terms (`Melanie Mac`, `\bMelanie\b`), or were judged not the name in some window. Gothics (240 recordings) and - Stix (94) look like real mis-hearings of Gothix and Styx, but the 8B judge said no in one of their windows; under - the first rule it had also kept two plain errors. The rule shipped is the strict one; a looser one (a majority of - the windows) is a one-line change if the operator wants recall. -- **Phrases are names by the brief's rule.** The pilot's nine phrases ("joining the show", "no longer on", …) cost - calls and gave no spelling that occurs and the terms do not already find ("cohost" is `co-?host`'s). Narrowing to capitalised alternatives is one line in `namesOf`. -- **"taking flack" and "taking flak" are past the 16-name cap** on the pilot: said in the plan as not asked. -- **The proof is not repeatable run to run**: the model proposes different spellings each time (ollama's default - sampling). What is learned is still only what the code and every window confirm. +- **Gothix's mis-hearing "Gothics" is not learned.** It occurs in 240 recordings and the three windows read are all + him; the 8B judge says no in two of them, in both shipped runs. The judge's call, by the rule. +- **"Sticks"** (another hearing of Styx) was not proposed in either run; proposals vary run to run. +- **The proof is not repeatable run to run** (ollama's default sampling). What is learned is still only what the + code checks and a majority of windows confirm. - **A spelling whose name leaves the terms stays, idle** (listed, not used); Remove clears it. -- **The pilot's first pass**: the schedule `co-host-updates` was not touched. After rollout, - `pnpm ops report-schedule --json '{"action":"learn","id":"co-host-updates","dryRun":true}'` names what it will ask - (16 names); without `dryRun` the pass runs as a job (~1 min on the local model). The next tick (Mon) would run it - anyway: it has never proposed. +- **The pilot's first pass**: `co-host-updates` (a series with triage first) was not touched. It has never proposed, + so its next tick runs a pass before tier 0; the orchestrator runs `learn` on it after rollout (plan first: + `{"action":"learn","id":"co-host-updates","dryRun":true}` names the 9 names).