commit 45dd7db9c5ffb498935926cd8a7df770f78e3bdb
parent 7ff826dc971a70fc50e38b4118edb1b481b21d6e
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 14 Oct 2026 03:28:46 -0400
plans: umtool redesign — R1 follow-up (held counts kept with Refresh, census persisted per build, the lit row's ring is P1's)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 33 insertions(+), 0 deletions(-)
diff --git a/plans/umtool-redesign.md b/plans/umtool-redesign.md
@@ -662,3 +662,36 @@ from the keyboard alone; reduced motion is the LitList's.
- On a hub, two member sites with the same channel slug share a facet row and a log key.
- Not touched (P3's): the rail (no Research place yet: `/research` lights none), `lib/hrefs.ts`, `globals.css`,
`AppShell`, `redirects.mjs`. The only shared primitive touched is `ReaderThread`'s labels.
+
+**Follow-up (after review, `885d82ae`).**
+- **Held counts are kept.** Each channel's held count (the editor's answer, the disk's, or "not known" with the
+ reason) is memoised five minutes per source and channel, on `globalThis` (`lib/research/coverage.ts`,
+ `HELD_TTL_MS`). The editor is still asked four at a time, and only for the channels past the memo.
+ `/research/archive` says "Held counts from 3 min ago (kept 5 min)", and **Refresh** asks again
+ (`/api/research/coverage?fresh=1`). The live editor has stalled on the external drive before, and a page load no
+ longer costs a disk walk per channel.
+- **The track census is persisted** (`lib/research/census.mjs`):
+ - Location: `REPORTS_ROOT/.umtool/research/census/<sha1(handle)>.json`.
+ - Key: the source handle plus its build identity (`sources.ts` `buildIdentity`):
+ - a published site or the hub: its `corpus.json` `generatedAt`;
+ - the local dir: that, plus `corpus.json`'s mtime and size.
+ - Writes are atomic and serialised, like `lib/lifecycle.mjs`.
+ - A file from another build is not used, and the scope line says "transcripts vs captions: counted on an earlier
+ build (date); the next full search counts again".
+ - A source whose identity cannot be read (no `corpus.json`, or one that is unreachable) is still counted, but not
+ kept.
+- **The solid Signal box on the lit row comes from P1, not R1. Not changed.** The global `:focus-visible { outline:
+ 2px solid var(--signal) }` in `app/globals.css` sits outside any `@layer`. `.lit-line:focus-visible` (the dashed
+ seam-2 outline) is inside `@layer components`, and unlayered styles beat layered ones whatever the specificity.
+ So every focused lit line draws the 2 px Signal ring: measured on `/research`'s lit row as `solid 2px
+ rgb(63,193,176)`. P1's keyboard pass recorded the same 2 px ring on every control. R1's row markup adds no
+ outline class. The fix belongs in `globals.css` (P3's this phase), for example by scoping the global ring with
+ `:where()` or moving it into `@layer base`.
+- **Gates:**
+ - repo-wide tsc and umtool typecheck: clean.
+ - umtool unit: 785 tests, 783 pass, 2 skipped (census 2 new).
+ - `pnpm --filter umtool test`: 11/11 (memo and census 2 new).
+ - `research.spec.ts` through `pnpm --filter umtool run e2e research.spec.ts`: 12 passed, 0 failed, 52.8 s. The
+ filter also matched `article-research.spec.ts`; research.spec itself was 9/9, and now checks the age line and
+ Refresh.
+ - Fresh dark screenshots of `/research` and `/research/archive` at 1366×768 (job scratch `r1-shots/followup-*`).