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

Practical fixes for OpenClaw reliability issues
A developer shares eight specific techniques that improved their OpenClaw setup, including a 3-tier memory system with daily logs and a knowledge graph, activation score management, and file-based rule enforcement.

OpenClaw Workspace Configuration Lessons from Two Months of Use
A developer's experience with OpenClaw shows that workspace quality impacts agent performance 5-10x, with specific guidance on SOUL.md, AGENTS.md, MEMORY.md, USER.md, and skills configuration.

Configuring OpenClaw for Smooth Agent-to-Agent Communication
A Reddit user shares specific configuration settings for OpenClaw that reduce timeouts in agent-to-agent communication, including tool visibility settings, memory directives, and workarounds for the ANNOUNCE_SKIP limitation.

7 Ways New Engineers Can Flourish with AI: Master Fundamentals, Collaborate with AI, Build End-to-End Projects
IEEE Spectrum article by Lokesh Lagudu offers 7 practical tips for new engineers to thrive in an AI-driven world, emphasizing fundamentals, AI collaboration, and project-based learning.