From Agent Loops to Structured Graphs:A Scheduler-Theoretic Framework for LLM Agent Execution
Hu Wei

TL;DR
This paper introduces a scheduler-theoretic framework for LLM agents, replacing implicit agent loops with explicit, verifiable graph-based execution plans to improve controllability and debugging.
Contribution
It proposes SGH, a static DAG control flow model for LLM agents, and applies classical scheduling theory to analyze and formalize agent execution.
Findings
Identifies structural weaknesses in the agent loop paradigm.
Provides a formal specification with termination and soundness guarantees.
Offers a survey and analysis of 70 systems for trade-offs in control and expressiveness.
Abstract
The dominant paradigm for building LLM based agents is the Agent Loop, an iterative cycle where a single language model decides what to do next by reading an ever growing context window. This paradigm has three structural weaknesses: implicit dependencies between steps, unbounded recovery loops, and mutable execution history that complicates debugging. We characterize the Agent Loop as a single ready unit scheduler: at any moment, at most one executable unit is active, and the choice of which unit to activate comes from opaque LLM inference rather than an inspectable policy. This perspective places Agent Loops and graph based execution engines on a single semantic continuum. We propose SGH, Structured Graph Harness, which lifts control flow from implicit context into an explicit static DAG. SGH makes three commitments: execution plans are immutable within a plan version, planning…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
