Repository navigation
test(subagents): align lifecycle retries with durable completion owners - #152184
Conversation
Use isolated real persistence and load the existing model fixture before its consumer. Preserve cross-run output exclusion while proving a corrected same-run completion receipt. Reuse the existing lifecycle wait owner without changing timing or delivery assertions.
|
🦞👀 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 18, 2026, 6:07 PM ET / 22:07 UTC. ClawSweeper reviewWhat this changesThe PR updates subagent lifecycle tests to use isolated durable persistence, verify run-specific retry results, and reuse the existing wait helpers. Merge readiness✅ Ready for maintainer review Keep open: this focused fixture repair remains absent from current main, preserves the established completion contract, and has no identified blocking defect. The maintainer-authored PR is also protected from automatic closure. Priority: P3 Review scores
Verification
How this fits togetherSubagent lifecycle handling records child completion and delivers the selected child's answer to its parent. These tests exercise completion events, persistence, and delivery retries through controlled Gateway responses. flowchart LR
A[Child lifecycle events] --> B[Subagent registry]
B --> C[Isolated durable state]
B --> D[Run-specific answer reader]
E[Child transcript] --> D
D --> F[Parent delivery and retry]
F --> G[Delivery and cleanup assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +27. Total +27 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep lifecycle regression coverage aligned with the existing durable owners and exact-run answer contract without relaxing retry, ordering, or cleanup assertions. Do we have a high-confidence way to reproduce the issue? Yes, at source level: the existing lifecycle suite expects another run's text despite the production reader filtering by run ID. The author reports failing baseline runs; this review did not execute tests. Is this the best way to solve the issue? Yes. Reusing the isolated persistence fixture and correcting the existing boundary assertions is a narrow repair; the extracted waits preserve their predicates and timing. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4fe8176abb0d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…pr-149099-main-20260918 * commit '795e460278d4f8f41545dc8b4a66da1d12defd90': (1902 commits) refactor(slack): share Markdown preparation (#149129) fix(tooling): release completed PR operations with exited loaders (#152209) fix(release): allow stable npm bootstrap under an operator soak waiver (#152206) fix(daemon): avoid false restart timeouts during slow startup (#151387) feat: read agent documents from a host-owned workspace (#150584) improve(startup): skip redundant single-agent directory checks (#152192) test(ui): await board widget readiness before size reports (#152198) perf(browser): move dashboard event discovery to SQLite worker (#151952) improve(auth): reduce pauses during concurrent credential reads (#152140) improve(ui): load older chat history in smaller pages (#152093) fix(release): reject incomplete legacy npm install trees (#152186) refactor: share current-conversation binding row serialization (#152134) test(tooling): preserve Node and terminal fixture ownership under Bun (#152187) fix(sqlite): service worker admission through retained path aliases (#152190) improve: reduce CPU work for long CLI reasoning streams (#152191) chore(ui): refresh control ui locales (#152196) test(subagents): align lifecycle retries with durable completion owners (#152184) perf(gateway): defer participant maps for owned sessions (#152097) refactor(stream): share auxiliary queue overflow handling (#149282) fix(test): execute CLI fixture preloads on Node and Bun (#152076) ...
…rs (openclaw#152184) Use isolated real persistence and load the existing model fixture before its consumer. Preserve cross-run output exclusion while proving a corrected same-run completion receipt. Reuse the existing lifecycle wait owner without changing timing or delivery assertions.
What Problem This Solves
Four lifecycle-retry E2E cases fail under both Node and Bun because their fixtures no longer match the completion owners. They load the supported-model mock after its consumer, replace required durable writes with no-ops, and expect one run to deliver text from another run.
Why This Change Was Made
Load the existing model fixture first and use the established isolated session and registry persistence pattern from #151907. Preserve the exact-run result contract from #149223: later session traffic can refresh descriptive metadata without replacing the original run's delivered result. A separate existing case proves a corrected same-run terminal receipt with matching transcript evidence while unrelated later-run text remains excluded.
Move the unchanged frozen-result waits into the existing lifecycle wait helper to stay within the file limit. Retry counts, timing, delivery order, and cleanup remain intact. No production, schema, policy, or dependency changes.
Evidence