Skip to content
Duoduo Mediaevidence to decision

Package 32 · Section 11.3

Planning and Plan Validation

Let a model propose plans while guaranteeing that only schema-valid, policy-valid and budgeted plans are executed.

Track
I · Agentic decision systems
Level
Practitioner
Version
v1.0
Status
In validation · catalog only
Explanation depthDepth

Learning objectives

  • Represent plans as typed steps with dependencies, tools, authority, budgets and completion tests.
  • Choose between router, ReAct, plan-and-execute, workflow graph, supervisor and event-driven patterns.
  • Validate plans and define stop conditions for success, insufficiency, budget exhaustion and unsafe state.

In brief

Planning lets a model decompose a decision into steps, but plans must be validated before execution. A valid plan is typed, acyclic or explicitly bounded, uses only registered tools with valid arguments, contributes to the decision contract, cannot grant itself permission and defines stop conditions.

Core concepts

32.1Plan representation

Each PlanStep has an ID, objective, dependencies, a registered tool, typed arguments, an expected output schema, an evidence requirement, an authority level (READ, PROPOSE or EXECUTE), a timeout, a retry policy and a completion test.

Typed steps make plans machine-checkable and allow the orchestrator to execute them without trusting the model again.

32.2Agent patterns

Router: picks one route; risk is misrouting, controlled by confidence and fallback. ReAct: interleaves reasoning and tool use; risk is unbounded loops and injection, controlled by step budgets and allowlists. Plan and execute: risk is a bad plan propagating, controlled by schemas, critics and checkpoints.

Workflow graph: explicit nodes and edges; risk is hidden state, controlled by typed shared state. Supervisor and specialists: risk is conflicting conclusions, controlled by ownership and a shared ledger. Event-driven: risk is duplicate or out-of-order events, controlled by event IDs and idempotency.

32.3Validation rules

Every step must contribute to the contract. Dependencies must form an acyclic graph unless a bounded loop is declared. Arguments and outputs validate against registered schemas. Action steps need authority, idempotency and a recovery path.

The plan must declare stop conditions for success, insufficiency, budget exhaustion and unsafe state.

Worked example

A schema-valid plan that still fails

Situation: Asked to recommend a maintenance window, the planner returns a valid plan whose final step is "update production schedule" with EXECUTE authority.

  1. 1Schema validation passes: the tool exists and arguments are typed.
  2. 2Contract validation fails: the contract allows PROPOSE only for schedule changes.
  3. 3A new rule is added: a step authority may not exceed the authority granted in the contract for that action type.
  4. 4The planner is asked to revise and returns a proposal step plus a supervisor approval request.

Outcome: The rejection is logged with its failure type, and the plan corpus now contains a regression test for authority escalation.

Decision rules

  • Validate every plan against schemas, the tool registry and policy before execution.
  • A plan may not change the decision objective or grant itself permission.
  • Unbounded loops are invalid; declare a maximum iteration count.
  • Replanning is a recorded event with a reason.

Common pitfalls

  • Validating format but not contribution to the contract.
  • Allowing the planner to retry the same failed step indefinitely.
  • Missing a stop condition for insufficient evidence.

Key vocabulary

PlanStep
A typed unit of work with tool, arguments, authority, budget and completion test.
Plan critic
A checker, rule-based or model-based, that reviews a plan before it is executed.
Authority level
READ, PROPOSE or EXECUTE permission attached to a step.

Tutorial outline

  1. 32.1The PlanStep representation and why every field exists.
  2. 32.2Six agent patterns, the failure each one invites and the control that contains it.
  3. 32.3Plan critics, acyclicity checks and the rule that a plan cannot grant itself permission.

Required artifacts

Validated plan corpus, rejection taxonomy and failure analysis.

Evaluation evidence

Plan validity, coverage, dependency correctness, unnecessary steps and policy violation rate.