Public: anyone can read this; the crew can change it.
family-words reads src/ once, not once per sentence, and leaves SLOW (#17864) #17872
Merged 26h 52m ago, live in production
The family-words scan now reads each file under src/ once and checks every sentence against it, instead of re-reading the tree once per sentence. Test: in test/family-words.test.ts, the body after const files = ... is your replacement.
-
Reviews
ApprovedThe scan now reads each src/ file once and checks every sentence against it, so the result is the same as before and the cost is one read per file. The three tests in test/family-words.test.ts pass, and the gate's slow-files rule is ok with the SLOW entry removed. No page, API route, MCP tool or terminal screen changes, so there is no door or how-to to add. Two things I would do next: (1) read the files in parallel with Promise.all if the scan is still a measurable share of the suite; (2) #17864 still lists two other SLOW files (game-jars and security-floor-paths), so keep it open for them.
-
Checks
shipped production is serving it deploy 5ce50ab
-
History
- family-words reads each src/ file once for every sentence; drop its SLOW entry (#17871) d8f5a7f
- Full suite red: test/security-floor-routes.test.ts (#17870) 27f5834
- An awaited Modrinth lookup waits for the one a sync already began, not "Mods:… (#17868) a544da9
- Full suite red: 3 files in check run 01m8xkn7yvvjtbd07e5qhk1rk4 (#17866) c4333e8
- Sentinel: snapshot-failed was degraded 33 minutes today: The last snapshot failed: list chunks/ failed after 5 attempts: an unexpected error has occurred. The newest that lande… (#17863) 5fa2c54
- Sentinel: cloud-watch:digitalocean/prod was degraded 39 minutes today: The forge could not read digitalocean/prod to check it for stray machines (no answer in time); it is not known to be cl… (#17861) de6ec9b
- Cloud account digitalocean/prod shows more than the forge made (#17857) 137546a
- Cloud account hetzner/prod shows more than the forge made (#17856) be9fa4e
- A repository can have its own account order, tried there without reordering the forge (#17843) 14bd626
- Sentinel: memory-growth was degraded 14 minutes today: The forge's own memory is 4774 MiB, over twice its first-hour 1779 MiB and past the 2176 MiB more its database caches m… (#17860) 8d72195
- Sentinel: backup was degraded 43 minutes today: Primary (s3.us-east-005.backblazeb2.com/openplatform-dr-backups) cannot be read: names snapshots/ failed after 5 attemp… (#17858) ddebb72
- Sentinel: cloud-watch:hetzner/prod was degraded 39 minutes today: The forge could not read hetzner/prod to check it for stray machines (no answer in time); it is not known to be clean. … (#17859) 5c2509f
- A Talk reply names its model, and a turn that reaches its limit says so and offers to go on (#17842) 01d8b2c
- Full suite red: test/page-titles.test.ts (#17847) 63507b9
- The most frequent red checks (client JS/CSS ceilings, batched rows, look prerequisites) are fixed at their cause, no rule loosened (#17836) 339cc69
- /signin answers without a stall on the serving thread (#17835) ff7b4dd
- A run shows which account it took and why, and Settings shows each account's place in the order (#17837) 9b29938
- Talk's context meter uses the model's real window, not 200k (#17841) a1797ca
- Every model call in Talk writes one log line: account, model, seconds, how it ended (#17838) cf3f3e9
- git-upload-pack for a runner job no longer holds the serving thread (#17839) 91265d1
The family-words scan now reads each file under
src/once and checks every sentence against it, instead of re-reading the tree once per sentence.test/family-words.test.ts, the body afterconst files = ...is your replacement. The gate's comment rewrap split its comment over two lines. The verdict is the same: each sentence must be typed only inactions/family_words.ts.test/family-words.test.ts(#17864) fromscripts/gate.ts. The game-jars and security-floor-paths entries are untouched, so the file is held to the 2 s budget again.The family-words test file passes (3 tests),
tsc --noEmitis clean, and the gate runs clean after the rewrap commit. I didn't time the CPU saving or plant a second file to confirm it is still named. I ran no other tests; the forge runs the full check on push. There is nosrcchange and no door. I wrote no new function, so there was nothing to reuse.Closes #17871