← Reference · Nestor G Pestelos Jr

Software Architecture · AI Safety

Plan-Approve-Execute

Reference entry · last updated August 25, 2026

Plan-approve-execute is a control-plane pattern for autonomous software agents that divides task processing into an exploratory planning phase, an explicit human or policy approval gate, and an isolated execution phase.[1] By disallowing unconstrained side effects during reasoning loops, the pattern constrains excessive agency and bounds the blast radius of agent errors.[2]

1. Plan Generation Read-Only Tools Inspect Code & Context 2. Approval Gate Human Review / Policy Explicit Authorization 3. Execution Side-Effect Tools Mutate Files & DBs

Excessive agency risks

Autonomous LLM agents operating in ReAct (Reason + Act) loops generate tool calls dynamically based on conversational context. When agents are granted direct access to destructive tools (such as file modifications, shell execution, or financial transactions), hallucinations or prompt injections can trigger catastrophic unauthorized mutations.[2]

Excessive agency manifests in two primary failure modes:

Three-phase lifecycle

The pattern enforces three distinct operational boundaries:[1]

  1. Plan generation (read-only): The agent inspects documentation, searches codebases, and produces a structured, human-readable execution plan. No mutating tools are available during this phase.
  2. Approval gate (policy checkpoint): The generated plan is presented to a human operator or an automated policy validator. The system remains blocked until explicit approval is registered.[3]
  3. Deterministic execution (authorized write): The system executes only the specific actions detailed in the approved plan. Any deviation or unlisted tool call triggers an immediate fault.

Tool classification and sandboxing

Systems implement role-based access control (RBAC) over agent tooling by categorizing tools into tiered risk classes:[1]

Integration with fail-closed control planes

Plan-approve-execute operationalizes the fail-closed security principle. If an approval token expires, a network partition occurs, or an ambiguity arises during execution, the agent terminates execution immediately rather than guessing.[3]

See also

References

  1. Mitra, Sampriti. System Design for the LLM Era: Patterns and Principles for Production-Grade AI Architecture. Packt Publishing, 2026. Ch. 2: "Core Architectural Patterns for LLM System Design."
  2. OWASP Foundation. "OWASP Top 10 for Large Language Model Applications," 2025. Item LLM08: Excessive Agency.
  3. Shinn, N., et al. "Reflexion: Language Agents with Verbal Reinforcement Learning." NeurIPS, 2023.