Archilyzer · Source

archilyzer

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

commit 856b0f04b8438c51e7124d0e0f1c67d84558663b
parent 550eb35bb6b015b50cc50ff96131c46838df73a3
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 14 Oct 2026 21:33:21 -0400

plans: umtool redesign — board.spec race 3 + R6.1 docs (the redraw's two gaps found under CPU throttling, the fix, the spec's in-page hooks, gates); [Unreleased]

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

Diffstat:
Meditor/CHANGELOG.md | 1+
Mplans/umtool-redesign.md | 81+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 82 insertions(+), 0 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- **The research board keeps a key pressed just after a save, too.** A key that arrived after a save's answer, or after its redraw but before the moved line took the focus back, could still lose `e`'s field (the claim then went nowhere). The board now waits until the redraw is fully done before acting on any key. Needs a restart of umtool. - **A recurring report's tick no longer calls a capped scan "nothing new".** Triage used to take the scope from one `enumerate_matches(".")`, which stops at 2,000 recordings — the co-host pilot's five channels hold 23,284, the newest read last, so its first tick found "0 new" and ended quiet. Tier 0 now lists the scope from the build's own per-channel manifests (every recording, uncapped, dated by the build's index) and reads the terms only over the new recordings (and, on a first run, from the start date). A scan that still hits a cap or misses a channel is **partial**: the tick says "partial — not reached: …" as a **Your call** card in umtool (never quiet, no quiet edition recorded), the triage run says so on its page, and its set of seen recordings is not kept, so the next run counts new from the last complete run (or from its start date). The same rule holds for a Refresh's search again (a capped search with nothing new ends **partial**, not "no change"), a series' window check, and the Inbox's daily refresh check (a partial check still raises its card, naming what it did not reach; `umtool refresh --check` prints PARTIAL). Needs a restart of the editor and umtool. - **`enumerate_matches` takes `ids`.** Only the pages that hold those recordings are read, so the scan is bounded by them rather than by the scope; the footer says how many the scope holds. A sweep restricted to given recordings (a refresh's update, a triage's escalation) now scans only theirs. - **A tick no longer waits hours on a paused transcription.** When the transcription workers are paused or none is enabled, a refresh's or tick's fetch skips `transcribe-bucket` and says "transcription is paused (…) — N recordings wait; a later run reads them once transcribed" as a warning. A fetch step that was cancelled is a warning; "nothing new to transcribe" is no longer one. diff --git a/plans/umtool-redesign.md b/plans/umtool-redesign.md @@ -3672,3 +3672,84 @@ since 10-07 (81 transcribed), one candidate (Melonie Mac's Go Boom Live! Ep 61 p Mack" channel) rightly dismissed; a broader hand scan of the 81 found nothing co-host related — a quiet week, as the record says (no co-hosts for the rest of the year, 2026-09-28; Melonie Mac on hiatus). +### board.spec race 3 + R6.1 docs + +**What.** R6.1's full umtool e2e had four reds in `board.spec`'s serial chain from `:127`: "`e` did not focus the +claim field". Run alone it went 8/8, 4/8, 8/8, 8/8, 8/8; the 4/8 ran beside a heavy common test run. The board-race +fix (`21c29bf5`) had held keys while a write was queued or answering. Two later gaps were left open, and a key +landing in either acted on a list or a focus that was about to change. + +**Found, not guessed.** +- **The reproduction.** A throwaway stress spec ran rounds of alt+j / alt+k + `e` on a case of its own, under CDP + `Emulation.setCPUThrottlingRate`. At 6× it missed 10 of 25 rounds on `b969f61b`; each time the focus ended on the + moved line. +- **The cause, from a page log.** The order on a miss was `apply` → `e` (trusted, not held) → `refocus effect`. The + key arrived AFTER the move's commit but BEFORE its passive effects: + - The board counted itself settled at the commit (a layout effect), so `e` focused the new claim field. + - The deferred refocus of the moved line then took the focus back, and the claim typed next went to the line. + - The remounted list's light and its j/k listener are passive effects too. +- **The first gap**, closed in `b969f61b`: a write ends in microtasks, while React commits its answer in a later task. + The board counted itself settled when the write ended. + +**Fix** (`components/research/BoardView.tsx`). +- **Settled** means no write queued or answering AND the last answer drawn with its effects run. `drawnV` is set in a + passive effect declared after the refocus. Being the parent's, it also runs after the list's own effects. Until + then keys are held, as during a write. Stress after the fix: 0 of 25 rounds at 6×, 0 of 40 at 10×. +- **The view, the light and the list's key are ONE state**, with `v` saying which answer is drawn, so they can never + commit apart. +- **An added section** is lit and focused in the redraw that draws it, inside its write. Before, it was a second + remount after the write had ended. +- **`data-board-keys="ready"`** is set once the board's key listeners are attached. + +**The spec.** One new test hits each gap for certain from inside the page. These are spec-only hooks; the app has no +test code. +- **answer:** `Response.json` is wrapped, and `e` is dispatched 50 microtasks after the held move's answer is read. + That is after the write and before the commit. +- **commit:** a MutationObserver sees the remounted list arrive and dispatches `n` in its callback. That is after the + commit and before the passive effects' task. + +Each key must focus its field, and the text typed next must be saved whole. Every board test now opens the board +through `openBoard`, which waits for `data-board-keys="ready"`: before that, a key is the browser's, because nothing +on the page listens yet. + +**Proof the spec catches both.** Each old `BoardView.tsx` was run with the new spec, 2 runs each: +- `b969f61b` fails the commit gap ("Noted after the redraw" not saved). Its second run also hit the original chain + red, at `:137`, where `e` did not focus. +- `main` (`54dbfb79`) fails the answer gap ("corded in the gap": the `R` and `e` were lost) and the chain. + +**R6.1 docs** (`umtool/docs/`). +- `inbox.md`: **tick-partial** (Your call, **See what was missed**). Your call now includes a partial tick, and a + partial `refresh-available` check says what it did not read. +- `triage.md`: + - **Partial runs**: never quiet, no seen set, the tick-partial card, capped window checks and refreshes. + - **The fetch under a hold**: the transcription-paused skip as a warning, and "nothing new to transcribe" as routine. + - **Recovering a bad run**: `report-schedule {"action":"reset-triage"}`, plan then `confirm`. + - Tier 0's whole-scope listing by manifests; the lead paragraph folded into "Where it runs". +- `refresh.md`: the `partial` status. +- `recurring.md`: the fetch's skips and the partial tick. + +| sha | what | +|---|---| +| `b969f61b` | the answer gap: settled only after the answer's commit; `data-board-keys`; the spec's answer-gap test and `openBoard` | +| `f70f41e5` | docs: R6.1 | +| `231076a8` | the commit gap: settled only after the redraw's passive effects; one state for view, light and list; the add-section remount inside its write; the spec's commit gap | +| `3a994922` | merge `main` `21880180` (plans only) | +| `f5772c0e` | merge `main` `7ab19c75` (R6.2 live) | +| `c0961d73` | docs: triage.md's tier 0 listing and R6.2's "seen means judge-able", in a section of their own (the tiers table as `main` has it, so R6.3's edits merge cleanly) | + +**Gates** (at `c0961d73` unless said). + +| Gate | Result | +|---|---| +| `board.spec` alone at `3a994922` (the fix + the plans-only merge) | 4 plain runs 9/9 each; 4 runs started beside `pnpm --filter ./common test` (run 1 truly under it, load 15; runs 2–3 waited for the queue behind ux-r62 until common had ended; run 4 load 11.7): 9/9 each | +| `board.spec` alone at `c0961d73`, truly loaded (the run started, then common's suite, running through it) | 2 runs, 9/9 each (load 4.6 → 9.0, 12.0 → 15.5) | +| repo-wide `tsc --noEmit` | clean at `3a994922` and `c0961d73` | +| umtool unit | 861 tests: 859 pass, 2 skipped, 0 fail | +| `pnpm --filter umtool test` | 32/32 | +| `pnpm run test:scripts` | 1013 tests: 1011 pass, 2 skipped, 0 fail | +| `pnpm archilyzer docs cli --check` | clean | +| capped umtool `next build` (corpus linked, `MemoryMax=5G`, heavy slot) | exit 0; compiled 12.8 s, 40 s wall, 1.63 GB max RSS; the link removed | +| full umtool e2e at `c0961d73` (detached, queued) | **544 tests: 538 passed, 0 failed, 6 skipped** (the song-data skips), 10.8 min; `board.spec` 9/9 | + +`board.spec` alone, counted together: 10 runs, all 9/9 — four plain, four started beside common's suite, two truly under +it — plus the full run. The stress spec stayed in the job's scratch; it was not committed.