Planner–executor orchestration
A planner writes the execution plan and an executor carries it out, asking the planner to re-plan when a step fails.
In plain terms Like an architect and a builder: one draws up the plan, the other builds it and reports problems.
Last reviewed · Build from primitives Supported through planning features and Magentic-style ledgers; a separate planner/executor pair is custom.
How it works
A planner produces an explicit step-by-step plan; an executor runs the steps and may request re-planning when a step fails or new information appears.
Roles in the example
- Nova · Planner Writes and revises the execution plan.
- Pixel · Executor Runs each step and reports failures.
At a glance
- Pattern type
- Agentic architecture
- Execution model
- Plan, then execute (with re-plan loop)
- Coordination
- Shared plan artifact
- Runs agents in parallel
- No, one step at a time
- Implementation complexity
- Medium
- Relative latency
- Medium · Upfront planning plus execution; re-plans add time
- Relative operational cost
- Medium · One planning call plus one call per step; each re-plan adds more.
- Predictability
- Medium · Explicit plan is reviewable before execution
- Scalability
- Plans make long tasks tractable; very long plans need checkpointing.
Complexity, latency, cost and predictability are qualitative ratings that compare these patterns with each other, not measured benchmarks.
When to use it
Good for: Multi-step tasks where conditions can change mid-run.
Use when
- Multi-step tasks that benefit from an explicit plan
- Plans must be reviewed or approved
- Long-running tasks
Avoid when
- Single-step requests
- Highly dynamic environments where plans go stale instantly
- Strict latency budgets
Enterprise use cases
- Data migration and reporting runbooks
- Multi-step IT operations
- Research tasks with clear phases
Advantages and limitations
Advantages
- Reviewable plan before side effects
- Separation of reasoning and doing
- Easier progress tracking
Limitations and trade-offs
- Plans can be wrong or stale
- Re-planning costs time and tokens
- Planner and executor can disagree
Security, oversight and failure handling
Security and governance
- Approve plans that include sensitive actions
- Executor enforces permissions, not the plan text
- Treat retrieved content as untrusted when planning
Human oversight
Optional. A person can approve the plan before execution, especially when steps change systems.
Failure handling and recovery
- Re-plan on step failure
- Checkpoint after each executed step
- Abort and report when re-plan limit is reached
Implementation guidance
Decisions to settle before building
- Make the plan a structured, inspectable artifact (for example a todo list), not free text.
- Decide when the executor may ask for a new plan, and cap the number of re-plans.
- In Agent Framework, todo tracking records progress but does not re-invoke the agent: pair it with a bounded loop to run a plan to completion.
Supported technologies
| Technology | Support | How |
|---|---|---|
| Microsoft Agent Framework | Build from primitives | Planning and todos; Magentic task ledger |
| Copilot Studio | Platform feature | Generative orchestration builds and executes a plan |
| Microsoft Foundry | Build from primitives | Agent Framework orchestration run as a Foundry hosted agent, or a visual, low-code orchestration that calls Foundry agents from Azure Logic Apps (preview). Foundry’s visual workflows retired Dec 1, 2026 |
Availability notes
- Generally available Foundry hosted agents. Managed hosting is GA; the Python Agent Framework hosting integration is prerelease. Source
- Retired Foundry workflows (visual designer). Retired December 1, 2026. Microsoft’s migration paths: Agent Framework run as a hosted agent (recommended), Azure Logic Apps for a visual low-code designer, or A2A for simple agent-to-agent calls. Source
- Preview Foundry agents in Azure Logic Apps (Standard). Call and orchestrate Foundry agents from Logic Apps workflows, with event and schedule triggers, connectors and human approval steps. Source
Code samples and step-by-step guides for Python, C#, Microsoft Foundry and Copilot Studio are in the interactive explorer’s Developer implementation section.
Official references
- Agent Framework: planning and todos
- Agent Framework: Magentic orchestration
- Copilot Studio: generative orchestration
Last reviewed 5 December 2026 against Microsoft Agent Framework (Python 1.26 release line), Microsoft Foundry Agent Service, Copilot Studio. Platforms change often: confirm details in the linked documentation.