OpenClaw Core Flow Part 2: The Double Loop — Routing, Prompts & the Agent State Machine
Inside dispatchInboundMessage: 8-level routing, MsgContext normalization, system prompt assembly, and pi-agent-core's double-loop state machine with steering and follow-ups.