Repository navigation
The model pool's writers stop with their owner, and the tmux suite runs on the engine road - #2583
Merged
Merged
Conversation
The pool's startup push and its landing scorer were started without their owner's close, and the sweep's wait had no bound, so a pool writer could create pool/install and append pool/outbox.jsonl after a chat, a shell run or a headless door had returned - which is the late write behind TestCopiedChatDoorsKeepDistinctStableDraftKeys' TempDir race and, very likely, the Full check's TestSeniorDevShellWorksInAPlainFolder red. Every door now owns its pool cleanup; close cancels scoring and pushing, waits at most poolCloseBudget (one second) and discards a late response before it can write. A cancelled score keeps its claimed batch and its landing unmarked, so the next launch scores it; install identity replacement is atomic and the outbox still appends whole lines. testHome(t) logs whatever remains under a test's home after removal, so a future race names its late file. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… permanent Automations tab Long subtest names pushed CODEAF_HOME under /tmp past the 103-byte socket limit, so some subtests honestly fell back to the in-terminal road and never drew the engine-road rows they wait for; the rig now gives every subtest a short state root in one place. The home test's assertion that the bar must not carry Automations contradicted #1831, which made Automations a permanent tab between Memory and Spend; it is replaced by an assertion that the tab is always there. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… rows The outbox read a response body without checking cancellation, so a body that ignored cancellation could finish after its owner's bounded wait and then drop or retry a row; a cancelled request could still reach the transport. Cancellation is now checked before every batch and after reading the response, the pool transport refuses a cancelled request, and an unsent outbox line stays pending for the next push. A counting-transport test proves zero requests and no file writes after close (and failed on R12's code); TestKnowledgeDailyLimitBlocksTransportRetry, which another test's leftover pool goroutine had made order-dependent, passes 20 of 20. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ading its rows Accepting or refusing a landing hands the report back to the chat, which reads it before settling; the suite waited only 20 s for the folded rows and failed while the chat was still mid-turn. Both landing subtests now wait for idle (modelPatience) first and then assert exactly as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The tracker lookup and the one-time close each unlocked by hand, which internal/guard's lock-defer law refuses because an absorbed panic would leave the lock held. Each locked section is now its own small function with defer Unlock; behaviour is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… words ctrl+e expanded the turn's 'worked' disclosure, not 'background work', so the nested landing never drew the done rows it waits for; and the refused landing gave a slow model 90 s to settle. Both now click the 'background work' row (clickLineContaining) and wait with the suite's runPatience, then assert exactly as before: the decision receipt and the named rows' done / incomplete. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… turn to settle The seeded family's completions have no owning turn, so they draw under 'background work' while the resumed turn is still running (workcompletion.go gives unowned groups a background disclosure; only a known owner matching the running turn is held back). The idle wait was not part of the subtest's contract and failed whenever the resumed model kept working; every later assertion is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
AbirAbbas
marked this pull request as ready for review
November 10, 2026 19:19
AbirAbbas
added a commit
that referenced
this pull request
Nov 10, 2026
…now read their rows Co-Authored-By: Claude Opus 5.5 <[email protected]>
AbirAbbas
added a commit
that referenced
this pull request
Nov 10, 2026
One conflict, in cmd/codeaf/poolrecord.go: app/v3 stands the pool judge down while the pool is being handed over (poolJudgeStandsDown), and dev's #2583 stops it once its owner's context is cancelled. Both reasons to stay quiet are kept, in both the per-landing judge and the sweep. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Full check on
dev@ace7888ab(#2577) failedTestSeniorDevShellWorksInAPlainFolderwith "TempDir RemoveAllcleanup … directory not empty". It's a writer outliving its caller, so it's fixed at the cause here, not rerun.
The model pool's writers outlived their owner
TestCopiedChatDoorsKeepDistinctStableDraftKeysfails about 5–8% of runs on dev, both before andafter Fix what the second pre-release hand test of dev found #2577, and every failure leaves
pool/installandpool/outbox.jsonlwritten after the test returned.sweep's wait had no bound.
poolCloseBudget(one second).pool/, and a closed pool sends no request.TestKnowledgeDailyLimitBlocksTransportRetry, which a leftover pool goroutine had made order-dependent, passes20/20.
testHome(t)logs whatever remains under a test's home after removal, so a future race names its late file.For a person, this was a stray write after quit, nothing else. The manual now says what quit does to pool scoring.
The tmux suite
CODEAF_HOMEpast the103-byte socket limit, which sent them to the in-terminal road.
"not on the bar" check.
background workdisclosure by clicking its own row, not withctrl+e, whichcan open a newer
workedchip. The refused landing waits for it with the suite'srunPatience. The nested landingno longer waits for the turn to settle, because completions that have no owning turn draw while a turn is running.
Hand check
process's exit):
pool/was unchanged after exit in all 16 stops.rendering drop: a task answered
noraloses its row in the conversation. That drop came in with Group task and process completions under collapsed work #1893 and isunchanged here, and a follow-up fixes it.
scoring in flight to cancel. The scoring half of the close is proven by the unit tests above.
🤖 Generated with Claude Code