Skip to content

fix: align subagent custody tests with task-end cleanup - #201222

Merged
vincentkoc merged 1 commit into
mainfrom
fix-test-request-custody-process-owners-20261118
Nov 18, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-test-request-custody-process-owners-20261118

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

The subagent production-boundary suite still expected ordinary child processes to survive a completed hidden task. After #201157 added task-end process cleanup, five custody cases failed in main CI.

User Impact

Test-only change; no runtime behavior changes.

Why This Change Was Made

Completed-task cases now await the real child process exit before checking Stop routing and unchanged completion receipts. A consumed request with no remaining active child correctly reports no cancellation. The active-revocation case still checks live child cancellation, and retained-event, generation, request-owner and receipt assertions remain covered. Unrelated background work is started by the parent so child task completion does not own its lifetime.

Evidence

  • Unchanged six-mode baseline: five failures, one pass (48.19s).
  • Final six modes: six passes (22.20s), including physical child exit, generation rejection and receipt preservation.
  • Two neighboring original-request custody cases: two passes (8.97s).
  • Format, type-aware lint and the agents-sessions test typecheck passed.

These focused runs used Node 24.22.1 and pinned Bun 1.4.4 on macOS with matching custody sources, dependency inputs and test configuration. The full 144-case suite and Linux coverage remain with PR CI.

@vincentkoc vincentkoc self-assigned this Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S labels Nov 18, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 18, 2026 13:33
@vincentkoc
vincentkoc enabled auto-merge (squash) November 18, 2026 13:34
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 18, 2026
@vincentkoc
vincentkoc merged commit 80607c3 into main Nov 18, 2026
184 checks passed
@vincentkoc
vincentkoc deleted the fix-test-request-custody-process-owners-20261118 branch November 18, 2026 13:47
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant