Repository navigation
Conversation
Snapshot the isolated daemon's descendants when the agent ends (count, image names, memory), wait for the PowerShell bridge to stop when idle (CLAWD_BRIDGE_IDLE_MS=5000), stop the daemon like a host does (POST /stop on Windows, SIGTERM elsewhere) and list survivors by pid + creation time or by the run's temp home. A row with survivors fails the gate; they are then killed individually, with the tree kill as a fallback. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…nreadable table claims nothing The pill, glow and bridge end on their stdin's EOF a moment after the daemon exits: read once at once, they showed as survivors. A process table that cannot be read after the stop now leaves the row unmeasured instead of "none left". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Summary
The benchmark gave each task a fresh daemon and then killed its whole process tree, so nothing a server left running could show. A real host never kills the tree: the server exits by itself. This PR adds a leftovers check to every run.
CLAWD_BRIDGE_IDLE_MS=5000, a knob from fix(windows): stop the idle PowerShell bridge after 10 minutes #490. The runner waits up to 8 s for the PowerShell UIA bridge to stop. Builds without the knob keep the bridge, and the row says so.POST /stop; on macOS and Linux it is SIGTERM. Then up to 3 s for helpers that end on their stdin's EOF.Ctrl+C and crashes keep the immediate tree kill. A failed process-table read leaves the row unmeasured rather than claiming nothing was left.
Testing
tsc -p tsconfig.tests.jsonpasses.npx vitest run benchpasses (339 tests). This includes the new unit tests: table parsing, descendants, survivor matching, the gate and the report.Pairs with #490 (the idle knob). Without #490 the idle line reports the bridge still running.
🤖 Generated with Claude Code