Planner/executor pattern
Words made simple
A few useful meanings before you read the explanation.
- Authorization
- Checking what that identity is allowed to read or do. Being logged in does not grant access to every record.
- Dependency
- A library or package that your application relies on. Compatible versions help the application run as expected.
Overview
- A planner proposes steps; an executor performs permitted steps and reports results.
- Splitting the roles separates deciding from acting.
- The executor still enforces constraints rather than blindly following the plan.
Why this matters
Complex tasks may benefit from a visible plan, independent budgets, and controlled execution.
An everyday example
An architect creates a plan and licensed tradespeople perform approved work.
A technical example
Plan “look up policy, gather documents, draft claim”; executor exposes only those approved tool types.
How it works
- Propose typed steps
- Validate plan
- Execute one step
- Observe
- Update remaining plan
- Approve consequential actions.
Architecture and flow
Goal → planner → plan validator → executor → results → bounded replanning.
The insurance assistant example
Prepare a claim packet from several sources while keeping submission separate.
When to use it
Longer tasks with recognizable intermediate deliverables.
When to avoid it
Avoid two model roles for a one-tool lookup or allowing the plan to dictate authorization.
Interview answer
“Planner/executor separates task decomposition from controlled action. I validate every step and replan only when observations justify it.”
Benefits, trade-offs, and production considerations
- Plans can contain nonexistent tools or stale dependencies.
- Use typed step names, limited depth, and verified completion criteria; execution results should overrule unsupported planning assumptions.
Can you explain it without the notes?
Planner/executor pattern
Use your own words. Explain an example and one limitation before checking the explanation.
Check your explanation
A planner proposes steps; an executor performs permitted steps and reports results. Splitting the roles separates deciding from acting. The executor still enforces constraints rather than blindly following the plan.
Turn this concept into a clear answer.
Practice this conceptAdapted from 13_AI.MD · “Planner/executor pattern”. Examples are study fragments; framework behavior can depend on your version.