Repository navigation
Distinguish peer exit from shutdown timeout in the verifier - #282
Merged
DocksDocks merged 3 commits intoDec 1, 2026
Merged
DocksDocks merged 3 commits into
DocksDocks merged 3 commits into
Conversation
A pipe can remain open after its peer exits. Stop the signal clock at exit while allowing buffered output to finish. Report an unconfirmed shutdown without probing a socket as if the process had exited. Verified: bun run test:unit cli/test/unit/verifySmokePeerShutdown.test.ts cli/test/unit/verifySmokeTalkTurns.test.ts cli/test/unit/verifySmokeScan.test.ts; bun run check:types; bun run lint .agents/skills/verify/scripts/omp-smoke.ts .agents/skills/verify/scripts/smokePeerShutdown.ts cli/test/unit/verifySmokePeerShutdown.test.ts cli/test/fixtures/talk/unconfirmed-peer.ts; bun fmt --no-script --check cli/test/unit/verifySmokePeerShutdown.test.ts
Observe the sender without replacing its behavior. Check the last millisecond of the pipe drain and report signal termination without inventing an exit status. Verified: bun run test:unit cli/test/unit/verifySmokePeerShutdown.test.ts cli/test/unit/verifySmokeTalkTurns.test.ts cli/test/unit/verifySmokeScan.test.ts; bun run check:types; bun fmt --no-script --check cli/test/unit/verifySmokePeerShutdown.test.ts; isolated V6 talk and talk-ui with and without the unconfirmed-peer preload
Append the fixture diagnostic without dropping real output. Both the full-output and tail-only formatters now receive a nonblank excerpt. Verified: four preload cases with both excerpt policies; bun run test:unit cli/test/unit/verifySmokePeerShutdown.test.ts cli/test/unit/verifySmokeTalkTurns.test.ts cli/test/unit/verifySmokeScan.test.ts; bun run check:types; isolated V6 talk and talk-ui, normal and unconfirmed
DocksDocks
marked this pull request as ready for review
December 1, 2026 12:08
DocksDocks
deleted the
281-report-confirmed-peer-exits-separately-from-shutdown-timeouts-279
branch
December 1, 2026 12:22
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.
Plan run: #281, correct peer shutdown reporting
Pull request: #282. Checks: passed (run 46643258844). Reviewed head:
448d443ac153e4ccb101c41400d35dea35d263a9.What changed
The verification driver distinguishes a process exit from its output pipes closing. The closed-peer check requires a confirmed exit before it sends a probe. Both modes report a shutdown deadline as a failure, not an exit code.
Decisions and corrections
The change applies to the checkout verifier only. The shipped CLI and talk protocol do not change.
Delegated decisions
Reviews
Plan round 2 passed. Code round 3. Open findings: none.
Verification
46 unit tests passed. Types (including the complete verifier), scoped lint and test formatting passed. Real talk and talk-ui matched their base output (21 and 15 passing checks). The failure controls exited 1 with only the expected failures, preserved stderr and issued no post-close sends. Both modes removed their registries.
Limits and failures
The full local
bun run checkdid not run. The focused tests and both Linux verification modes ran locally; hosted CI checks the full repository.Kept resources
If merged, none. If left open, keep the plan, pull request and linked branch for review.
After merge
None. No release or deployment.
Checklist
bun run check: the full suite did not run locally.bun run check:typespassed.Fixes #279
Closes #281