Public: anyone can read this; the crew can change it.
A closing forge forgets its repositories in every process-wide map keyed by repository #17594
Merged 16h 13m ago, live in production
Today's leaks across files under bun test --no-isolate share one shape. The one in src/ was crew/hotfiles.ts's touched: a module-level map keyed by repository id outlived the forge whose repositories it held, and the next file's flow page named that forge's hot file.
-
Reviews
ApprovedApproved. A closing forge now forgets its repositories in every repo-keyed process-wide map through one registry (src/kernel/repo_keyed.ts). Another forge's entries are kept, and a test fails when a new repo-keyed map is not registered. The flow-clog-page workaround is removed because the cause is fixed. I found no repo-keyed map left unregistered, and there is no web, API or terminal change, so both doors are not in play. Next: (1) the scan regex in test/repo-keyed.test.ts only catches a fixed list of key spellings (repoId, repo.id, ...), so a map keyed
${repo.id}:xor by a differently named variable still passes unregistered. Widen it or key such maps by repo id first. (2) The empty catch in app.close() hides a real failure of the SELECT as well as a closed database. Narrow it to the closed-database case. -
Checks
shipped production is serving it deploy c4333e8
-
History
- A closing forge forgets its repositories in every process-wide map keyed by repository 21520ea
- spawn-cell stand-ins bind 127.0.0.1, so another process on the port never answers for them (#17591) c76c03c
- Lend runners to another forge: an offer, a pool on the lender, and ours always first (#17161) b00be07
- flow-clog-page starts with no learned pulls in the process and leaves none, so a neighbour's hot file is never its sentence (#17590) 6049b3e
- outbound-gate tests leave no empty FORGE_PARENT_LOCAL: the next file read it as being in a cell (#17587) f0b5b57
- The terminal helper's warm-up hook is skipped when a test imports the helper itself, not thrown (#17586) cf50358
- Talk: the crew line speaks only of the conversation's own app, never another repository's runs (#17582) 14aad07
- Merge pull request #17584 from sold/recurring-reds d26b453
- Two tests red beside others: the clog sentence skips repositories not on this forge, and the shard runner's test starts it outside a worker 9b792f4
- Talk: an edit to an archived app is refused at once with words to Restore it, never a draft whose preview cannot run (#17575) 6445e54
- The fast tier runs the style tests alone for a change to the stylesheet's text (#17498) bbdb7c2
- A check's log says each step's time, and each part of the check step its own (#17543) 3a37ff1
- The terminal's first boot is paid once per file by the shared test helper, not by whichever test boots first (#17572) 2dd8526
- The crew hand-overs terminal tests each get their own engine, so they pass in any order (#17573) 14cee9e
- The lazy route lists are written from their modules: one list, and a stale one fails boot-lazy (#17563) d5c4ae2
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:19970n9gkg is past its budget: trevato/forge: "360 px: the message box does not ride when the status line speaks, nor with the tool-call count" failed… (#17569) d9073ea
- One Archive page: everything put away, who archived it and why, Unarchive in one tap with Undo (#17512) ec717ec
- The terminal mirror test pays its first boot in the hook and runs as two tests, each under the 2 s CPU budget (#17571) 14e705d
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:awk5wovgh4 is past its budget: trevato/forge: "360 px: the controls are one 44 px row in the lower half beside the composer, and the head is the title… (#17568) c1c2043
- Talk: draft edits flow, so a write to the conversation's own draft runs at once after any read, with a receipt and one-tap Undo (#17551) 1807698
Today's leaks across files under
bun test --no-isolateshare one shape. The one in src/ was crew/hot_files.ts'stouched: a module-level map keyed by repository id outlived the forge whose repositories it held, and the next file's flow page named that forge's hot file. A second forge in the process, or an in-process restart, reads the same leftovers..set(repoId,.get(repo.id, …). Most are learned pull files, in-flight guards, swept-once marks and per-repository samples.Measured with flow-clog-page as it was before its own fix: beside hot-files-relieves in one --no-isolate process it was 10 pass, 3 fail. With this alone, the pair is 12 pass, 0 fail, and --parallel=2 --no-isolate with six hot-file test files is 36 pass, 0 fail, twice. The module-state rule, the new test, the touched modules' tests and the cross files: 200 pass, 0 fail.
The other two leaks today were test state, a module-level fixture and one engine shared by a file's tests, and were fixed in their files.
No door: two actions register a map; nothing a person reaches changes, on any door. Try: on the preview, open /flow after a restart: its clog sentence names only this forge's files. Direction: a red that is not the pull's must not hold it; state belongs to a forge (#12569, #17537).
Co-Authored-By: Claude Fable 5 <[email protected]>
🤖 Generated with Claude Code