OpenClaw Sub-agents: Don't Treat a Reply as a Completion Receipt

OpenClaw's sessions_spawn is non-blocking. It returns a runId and child session when the work is accepted, not when it is complete. This means a parent orchestration session can receive partial output, summarize it, and report success while a child is still running, failed, or lost.
Wait for Completion with sessions_yield
OpenClaw documents sessions_yield as the correct way to wait for completion events. Instead of counting replies, the parent should yield and block until the child session reaches a terminal state.
Durable Workflows with Task Flow
For durable workflows, Task Flow links multi-step work to individual background-task records. This gives you a persistent record of each task's state, making reconciliation possible.
Reconcile Every Child Before Success
The author recommends reconciling every required child before allowing the parent to finish. The reconciliation should include:
parent_run_idchild_run_idterminal_stateverification_receiptcompletion_blocker
Missing or contradictory state should produce incomplete_reconciliation, not success. A failed, cancelled, or lost child may justify a partial or blocked outcome — but only with evidence.
Test Your Orchestrator
Test your setup with three harmless children: one that succeeds, one that returns partial output then fails, and one that remains pending. The parent should refuse success until every child has an authoritative terminal state and the required verification is complete.
If your current orchestrator simply counts replies, it's time to audit it against these requirements.
📖 Read the full source: r/clawdbot
👀 See Also

Canary Instance Setup for Safe OpenClaw Upgrades
A Reddit user shares a detailed canary methodology for testing OpenClaw upgrades before production: isolated config root, separate port, smoke test matrix, and a structured upgrade report format.

Claude Code v2.1.36: Fast Mode Now Available for Opus 4.6
Anthropic releases Claude Code v2.1.36 with Fast Mode support for the latest Opus 4.6 model, enabling significantly faster code generation and analysis.
Craft Coding: Let AI Review, Not Write, Your Code
Peter Bloem argues that vibe-coding is a dead end. Instead, have AI review your code while you do the writing. This keeps skills sharp and avoids the trap of unchecked AI output.

OpenClaw Agent Cost Analysis: From $340 to $112 Monthly with Five Optimizations
A developer tracked 18,000 API calls across four OpenClaw agents for 30 days, finding 70% of tasks didn't need GPT-4.1. By implementing prompt caching, shortening system prompts, batching analytics, switching to cheaper models, and adding max token limits, costs dropped from $340 to $112 monthly.