The planner references an unavailable tool
Detect: Feasibility checks reject the plan before execution.
Recover: Return a concrete capability constraint and regenerate only affected steps.
Separate deliberate task planning from controlled execution, validating dependencies and revising only the parts invalidated by new evidence.
The plan-and-execute pattern creates an explicit task plan before carrying out its steps. The planner proposes objectives, dependencies, tool requirements, and acceptance criteria; the executor performs approved steps and records observations. A plan is a hypothesis about how to finish the task, not permission to perform every conceivable action.
Separating these roles makes long tasks inspectable and allows deterministic validation before expensive or consequential work begins. Plans should contain bounded operational steps rather than hidden reasoning transcripts. Replanning is triggered by specific evidence, such as a failed prerequisite or a changed business constraint, and must preserve already completed side effects.
A prototype can render a plan for review and execute it sequentially. Compare success and cost against a simple reactive loop on the same tasks.
Production validates tool availability, permissions, dependencies, budgets, and acceptance criteria before dispatch. Plans and executions receive separate versions so the history remains interpretable after revision.
At enterprise scale, reuse safe plan fragments and schedule independent steps concurrently. Bound replanning attempts and reserve enough budget for validation, reconciliation, and final delivery.
Proposes an ordered or dependency-based set of bounded steps and completion tests.
Rejects unavailable tools, illegal actions, impossible dependencies, and excessive budgets.
Runs approved steps using scoped credentials and stable operation identifiers.
Stores actual results, evidence, and side effects separately from planned intentions.
Revises unfinished work when a specific observation invalidates an assumption.
flowchart LR
G["Completion criteria"] --> P["Planner"]
P --> V["Plan validator"]
V --> E["Controlled executor"]
E --> O["Observation ledger"]
O --> C["Acceptance check"]
C --> D["Final evidence package"]
O --> R["Bounded replanner"]
R --> V
A["Policy and tool registry"] --> VTranslate the request into measurable output requirements and explicit excluded actions.
Propose steps with inputs, prerequisites, expected artifacts, and estimated resource demands.
Check permissions, dependency integrity, tool contracts, and overall time and cost ceilings.
Run only approved steps whose inputs are available and record their actual outcomes.
Classify unexpected results as retryable, plan-invalidating, or requiring human judgment.
Version any changed plan, preserve completed effects, and verify final acceptance criteria.
Manufacturing · Illustrative enterprise scenario, not a reported customer outcome.
A factory schedules a product change requiring tooling checks, recipe validation, material availability, and maintenance coordination.
A reactive assistant repeatedly asks for data already collected and can overlook a prerequisite before proposing the changeover.
The assistant must produce an executable preparation package while keeping machine-control actions under existing operational authority.
A planner creates prerequisite checks, a validator checks available systems and access, and an executor gathers signed-off evidence.
If a work-order creation result is uncertain, execution pauses for reconciliation instead of planning another identical work order.
Evaluate prerequisite coverage, unnecessary tool calls, revision frequency, and analyst corrections rather than assuming longer plans improve reliability.
| Decision | Benefit | Cost |
|---|---|---|
| Explicit planning | Long tasks become reviewable before expensive execution. | Planning adds latency and can overfit incomplete information. |
| Separate execution | Permissions and retries can be enforced consistently. | The executor needs precise contracts for ambiguous model-generated steps. |
| Adaptive revision | New evidence can correct a stale plan. | Unbounded replanning can consume the entire task budget. |
Detect: Feasibility checks reject the plan before execution.
Recover: Return a concrete capability constraint and regenerate only affected steps.
Detect: Ledger finds the same business operation already committed.
Recover: Reuse the existing result and preserve its operation identifier.
Authorize consequential operations at execution time.
Require bounded inputs, outputs, and completion criteria.
Retain plan versions and link each executed step to its source.