Planner-Executor
In this article
- Separate writing a plan from running its steps, and say which part the model owns and which part code owns.
- Record each executed step as fact and check, after every result, whether it breaks an assumption of a pending step.
- Revise only the pending steps, never an executed step or a write whose outcome is unknown, under a cap of 2 replans.
- Stop plan text from an untrusted source from steering actions with checks in code.
- Terms defined here: planner-executor.
Overview
Some jobs take four or five steps, and you only learn at step two whether step three still makes sense. Writing the whole list first lets you check it before anything happens, but a list written early rests on guesses, and some guesses turn out wrong.
The example is made up: Brightline, a home-internet provider, runs a support assistant, and a customer writes that this month's $35 plan fee was charged twice. By the end you can split the work into a plan written by a model and steps run by code, record what each step found as fact, spot when a result breaks the rest of the plan, and change only the steps still to come, under a fixed limit.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- A plan versus a course
- Brightline's four-step plan
- The executor runs and records
- When step 2 breaks the plan
- The replan rule
- Treat the plan as a hypothesis
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions