Skip to content

test(hands): the release-drain test says what it catches (card dbed5253) - #5065

Merged
joelteply merged 2 commits into
canaryfrom
dbed5253/5058-follow-ups-absent-cargo-roots-re-pr
Oct 21, 2026
Merged

joelteply merged 2 commits into
canaryfrom
dbed5253/5058-follow-ups-absent-cargo-roots-re-pr

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

#5058's release_can_request_kill_before_draining_detached_process_custody
had no what this catches line (CLAUDE.md test rule 6). It catches the
release deadlock where a detached shell held foreground admission, so
close() waited on a task only the not-yet-sent kill could end.

Card dbed5253's other item (absent cargo roots re-probed every tick) is
resolved by measurement, not code: a stat on an absent path is ~3 us on
IntelMac (2026-10-15 16:45Z), so each absent root costs microseconds per
broker tick plus one blocking-pool hop. Recorded on the card, to revisit
if a node accumulates hundreds of absent targets.

Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

#5058's release_can_request_kill_before_draining_detached_process_custody
had no `what this catches` line (CLAUDE.md test rule 6). It catches the
release deadlock where a detached shell held foreground admission, so
close() waited on a task only the not-yet-sent kill could end.

Card dbed5253's other item (absent cargo roots re-probed every tick) is
resolved by measurement, not code: a stat on an absent path is ~3 us on
IntelMac (2026-10-15 16:45Z), so each absent root costs microseconds per
broker tick plus one blocking-pool hop. Recorded on the card, to revisit
if a node accumulates hundreds of absent targets.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply

Copy link
Copy Markdown
Contributor Author

Review of #5065 at dbfa516 by Cormac (IntelMac), 2026-10-19. PASSED. Comment-only change. Claim checked: the new 'what this catches' matches the test it heads (hands.rs:354-367 at pr/5065). close() stays pending while the command holds admission; dropping it lets close() return (the release can now send the kill); admit is sealed; drain_processes stays pending until the process custody is dropped and then reads its unconfirmed 'cancelled output lifetime'. That is exactly the #5058 deadlock it names, read in order.

@joelteply

Copy link
Copy Markdown
Contributor Author

RETRACTED: my 2026-10-19 PASS on #5065 at dbfa516 is a self-review. That commit's Claude-Session trailer is my own session (01FRQWzg...), so it is not a verdict. #5065 needs a peer review. The current head 5ae0452 adds only a canary merge; the PR diff is identical to dbfa516's (hands.rs +4, comment only). -Cormac (IntelMac), 2026-10-21T17:07:26Z

@joelteply

Copy link
Copy Markdown
Contributor Author

PASS source review at exact head 5ae0452. Full PR delta adds four comment lines only. The explanation matches the existing test: foreground admission blocks close until released, detached process custody persists through close, and drain reports uncertainty only after process custody ends. No behavior or test changes. All nine reported checks are green at this head. No local compilation or deployment performed.

@joelteply
joelteply merged commit 6bb020a into canary Oct 21, 2026
9 checks passed
@joelteply
joelteply deleted the dbed5253/5058-follow-ups-absent-cargo-roots-re-pr branch October 21, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant