v3/docs/adr/ADR-370-dream-cycle-performance-world-model-agent-planning.md
Status: Proposed
Authors: claude (dream-cycle agent, 2026-07-20)
Dream Cycle Surface: performance (SLOT=0)
Source: arXiv:2607.15901 (DSWorld, 2026) — Grade A
Ruflo agents execute tool chains reactively: they receive a task, plan inline, and execute each tool call sequentially. There is no pre-simulation step to estimate which paths are expensive before committing to them. As task complexity grows (multi-step data pipelines, cross-agent coordination), wasted real-tool calls compound.
The 2026 DSWorld paper (arXiv:2607.15901) demonstrates that a lightweight world model — a learned transition predictor trained on historical execution trajectories — can simulate tool outcomes before real execution. On data science agent tasks this yields:
The methodology uses four components: structured state construction, cost-aware routing, lightweight real execution fallback, and an LLM-based simulator. A Reflective World Model Optimization (RWMO) RL strategy trains the predictor.
No competing agent framework (LangGraph, AutoGen, CrewAI, OpenAI Swarm) implements a world-model planning layer as of July 2026. AutoAgents-Rust achieves 84% higher throughput (4.97 vs 2.70 rps) over LangGraph through static typing, not planning optimization.
Separately, Ruflo's Flash Attention claim (2.49×–7.47× speedup) is explicitly unverified with no benchmark. The MCP response target (<100 ms) and CLI startup target (<500 ms) are also unmeasured.
Introduce a World Model Planner layer into Ruflo's agent execution pipeline. Before executing a task chain with ≥3 estimated tool calls, the planner:
The implementation lives in a new @claude-flow/planning package (optional plugin). The hooks pre-task hook triggers the planner when estimatedToolCalls >= 3.
Positive:
Negative:
Neutral:
@claude-flow/hooks post-task hook; store traces in AgentDB namespace world-model-traceshooks pre-task