Repository navigation
fix(subagents): delivered children stay pending while siblings run - #176701
Conversation
Worked on by: - @Marvinthebored Co-authored-by: Marvinthebored <[email protected]> OpenClaw-Publication: 222b951f-96dd-43af-b40b-f85c05d6fbe0
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesRetire redundant requester wakes for already-delivered single children before waiting for running descendants. Example: Child A remains running after child B delivers its result without an explicit yield.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR addresses a current lifecycle bug with a small change to the existing owner; the previous liveness-fixture finding is fixed, and no actionable introduced defect remains. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe subagent settlement owner reads completed child waves and descendant activity, then either retires their durable wake markers or submits an owed continuation to the requester’s session controller. flowchart TD
A[Child completion] --> B[Registry lifecycle]
B --> C[Requester settlement owner]
C --> D[Continuation obligation decision]
D --> E[Retire redundant wake]
D --> F[Wait for descendants]
F --> G[Requester session controller]
Technical reviewBest possible solution: Use the existing lifecycle retirement operation before descendant waiting whenever the selected wave owes no requester continuation. Do we have a high-confidence way to reproduce the issue? Current-main ordering establishes the reported trigger: a running descendant prevents the delivered-singleton retirement branch from executing; no target code was run during this read-only review. Is this the best way to solve the issue? This is the smallest complete owner-level repair for redundant singleton wakes, preserving legitimate grouped and yielded continuation obligations rather than hiding their markers in presentation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 18b9c7605ecf. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +1, Tests +71, Docs +4. Total +76 across 6 files. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 19, 2026, 6:33 PM ET / 22:33 UTC (Revision 2). |
Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: shakkernerd <[email protected]>
Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: shakkernerd <[email protected]>
Worked on by: - @Marvinthebored - @shakkernerd Co-authored-by: Marvinthebored <[email protected]> Co-authored-by: shakkernerd <[email protected]> OpenClaw-Publication: 77251556-e95c-4429-9954-d4f490717327
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Closes #166267
What Problem This Solves
Fixes: an already-delivered child remains listed as pending while an unrelated sibling keeps running.
User Impact
Busy requesters retire redundant single-child wakes without waiting for every worker to stop. Actual grouped and yielded continuations, unresolved deliveries, and their existing retry and source-custody protections remain owned. No configuration, schema, retention-policy, or operator data edits are required.
Why This Change Was Made
The existing no-continuation decision ran after descendant waiting. Move that decision before the wait and use the existing generation-aware lifecycle completion operation. This fixes the owner rather than hiding results in the renderer or expiring legitimate continuations. Recovery evaluates restored markers through the same owner.
Update affected integration fixtures to represent real completion debt and grouped work: required pending delivery for the liveness check; receipt holds installed only for the yielded cohort they exercise; released source bindings for consumed singletons; and two pending wave members before testing shared-slot rearm. The existing delivery, fault-injection, publication, and rearm assertions remain intact. Separately delivered non-yield singletons no longer produce a redundant aggregate turn.
The production change remains +5/-4 lines with no new state, timers, or policy helpers. The test setup reuses its existing visible-child fixture.
Thanks to @assimetria-ai for the report and @Oldrich333 for clarifying why delivered grouped results can still owe a continuation.
Contributors: @Marvinthebored and @shakkernerd.
Work sessions
Evidence
CI repair
The initial ready-head run 39182121588 failed on stale liveness/receipt fixture assumptions and an unrelated root-help mock-export ratchet. Main was integrated at afa7fcc specifically to consume the upstream mock-export repair. The liveness, receipt, and rearm failures were reproduced and fixed without longer test timeouts, skipped cases, weakened fault assertions, or baseline exceptions. A workspace synchronization interruption preserved the pending repairs and was resolved before work resumed. The earlier cold product-probe timeout and interrupted runtime-build attempts are setup gaps, not passing tests. The repaired head f891f6f passed fresh required CI and applicable security checks. Exact-head ClawSweeper re-review reports no actionable findings and no before-merge items. The managed squash action has not merged the PR: GitHub continues to report mergeability as unknown, so the guarded action refused before dispatch. No waiver or merge is claimed here.
Related: #166270 is renderer-only; this repair removes redundant lifecycle obligations instead.
Worked on by