Repository navigation
test(infra): await recursive spawn model entry - #149199
Conversation
|
🦞👀 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. Reviewed September 15, 2026, 12:28 PM ET / 16:28 UTC (Revision 3). ClawSweeper reviewWhat this changesThe recursive-spawn test waits for an explicit model-runner entry signal with a 60-second deadline instead of polling for 15 seconds. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, focused test repair absent from current main. The revised finite wait addresses the earlier suspended-test concern without weakening the assertions; no blocking introduced defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe test sends a child-agent request through OpenClaw’s real Gateway admission path, stopping at a mocked model runner. It checks authority, model selection, session lineage, and cleanup around that boundary. flowchart LR
A[Parent agent fixture] --> B[Child spawn request]
B --> C[Gateway admission]
C --> D[Background execution]
D --> E[Model entry signal]
E --> F[Assertions or timeout diagnostics]
F --> G[Owned work cleanup]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +17. Total +17 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain event-based synchronization with a finite failure deadline, owner-fact diagnostics, and the existing behavioral assertions and cleanup. Do we have a high-confidence way to reproduce the issue? No deterministic reproduction was established in this read-only review; the body reports two loaded CI runs exceeding the current 15-second deadline, consistent with the inspected asynchronous path. Is this the best way to solve the issue? Yes: the explicit entry event and measured finite deadline fit this boundary test while preserving its assertions. Immediate terminal detection would improve failure latency, but the former unbounded-wait defect is addressed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4d6b18b6ca46. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
30b32c5 to
027136e
Compare
|
P2: make the model-entry wait observe execution termination. At Vitest 5's outer timeout rejects a wrapper and starts Please link the entry signal to the exact execution's terminal outcome and cancellation, fail on terminal-before-entry, and join owned work before fixture restoration. Keep the event-based success assertions and verify a pre-model failure path. This is an introduced failure-path issue, not attribution of the original CI timeout. The preexisting cleanup-wait/release weakness can remain a separate follow-up. |
027136e to
ab3ce37
Compare
|
Merged via squash.
|
|
Resolved in ab3ce37c620d325f54944cbdc8e807dc9b46a3d1, now landed in 38c3edcc4caf692bbb9ff0078bda002587528036. The finite 60-second rejecting entry deadline returns failure through the existing diagnostics and Exact-head CI passed; the owning test job passed all 10 cases. Follow-up — spawn fixture teardown after drain timeout: the existing |
* test(infra): stabilize runtime boundary fixtures * test(infra): bound cold spawn entry wait
The recursive-spawn production-boundary test returns an accepted result and then waits for the background production path to reach the embedded runner. Its 15-second polling deadline failed on two exact-head CI attempts: the accepted, active, warning-free run needed 28 and 37 seconds to reach that cold lifecycle point.
Resolve a deferred event when the mocked embedded runner is entered and await it with a measured 60-second failure bound. A timeout still passes through the current owner-fact diagnostics and AsyncWorkScope cleanup. The exact call-count, authority, lineage, model-selection, session-state, and cleanup assertions remain unchanged.
Validation:
src/agents/subagents/spawn/subagent-spawn.production-boundary.test.ts— 10 passedpnpm check:changed