Skip to content

Planning & Control Patterns

19 questions
0 of 19 done · 5 unlocked for you
DONEUNLOCKEDLOCKED

Agent Planning & Control Pattern Interview Questions

How an agent decides what to do next. ReAct, plan-and-execute, reflection, tree search and explicit state graphs, each with the cost, latency and failure it brings, plus replanning when the world changes under a plan.

Worked answers that trace the run, put each decision on the right side of the authority line, and end with the follow-ups and scoring a panel applies.

You have 5 free answers unlocked here.Sign in free for 1 more · 13 are premium.
01–08Foundationsthe mechanisms behind this topic, and the terms a panel uses for them0/8 done
09–15Core questionsthe questions this topic is most often tested on, with full worked answers0/7 done
16–19Field scenariosopen-ended designs, incidents and trade-offs where you must state what is missing0/4 done
PRACTICE TESTStudied this track? Prove it: a timed Planning & Control Patterns test.fresh items every sitting · explanations for every answer · easy items free with an accountStart →

The concepts behind Planning & Control Patterns

Lessons behind these answers. The opening lessons are free; deeper ones are Premium.

Foundational
ReActReAct (Yao et al., 2022) interleaves a short piece of reasoning with each action and lets the next piece of reasoning read the observation that came back. It is the default shape of most tool-using agents today, usually expressed through native tool calls rather than the paper's text format. It adapts well when the path is unknown and the horizon is short, and it struggles when a task needs a global plan, when a step's result is misleading, or when the run is long enough that rereading every step becomes the main cost.
Foundational
Plan-and-Execute and ReplanningPlan-and-execute separates deciding from doing: a planner produces an ordered list of steps (or a dependency graph), code validates it, an executor runs the steps, often with a cheaper model or no model, and a monitor decides when to replan. It cuts cost and latency compared with reasoning before every action and makes runs easier to review and approve. Its characteristic failure is executing a plan whose assumptions are no longer true, so good plans state their assumptions and preconditions, and the executor checks them before each step.
Core
Sign in
Explicit State GraphsAn explicit state graph makes an agent's process a data structure: nodes do work (code, a model call, a small ReAct loop, a human), edges say what may follow what, and guards decide transitions that must follow rules. The model may choose among the edges a node allows, never invent new ones. Graphs give checkpoints at every node, natural places for human approval, and a process that can be tested transition by transition and audited afterwards. They cost flexibility, so the craft is deciding which parts are fixed and which are left to the model.
Advanced
🔒 Premium
Reflection with an External SignalReflection asks the model to critique and revise its own output. With an external signal (failing tests, a schema validator, a compiler, a tool error, a reference check) it is one of the most reliable improvements available, as in Reflexion (Shinn et al., 2023). Without one, it is the model grading itself: studies such as Huang et al. (2023) found intrinsic self-correction often fails to improve reasoning and can turn correct answers into wrong ones. Good designs trigger reflection only when a check fails, pass the specific failure back, bound the retries, and measure how often reflection fixes and how often it breaks.
Advanced
🔒 Premium
Search over TrajectoriesSearch runs several candidate trajectories (samples, beams or a tree of partial plans) and selects among them with a verifier or value estimate. Best-of-N sampling, beam search, Tree of Thoughts (Yao et al., 2023) and Monte Carlo tree search over agent actions such as LATS (Zhou et al., 2023) are points on one spectrum. Gains depend on two numbers, how often at least one candidate is right and how reliably the judge finds it, and the cost grows with every branch. In agents, search is limited to steps without side effects, or to simulations and sandboxes, and latency budgets push it towards parallel, shallow search.
Advanced
🔒 Premium
Task Decomposition Trees: AND, OR and Local FallbacksA task decomposition tree breaks a goal into subgoals and those into smaller subgoals until each leaf is a single tool call. Two kinds of inner node carry the structure: AND nodes succeed only if every child succeeds, in an order that respects their dependencies; OR nodes succeed if any one child succeeds, tried in order of preference. The model proposes the split one node at a time; code validates it, bounds the depth and the branching, and runs the leaves. The design pays off at failure time: an OR node absorbs a failed child by trying the next alternative locally, so a single dead tool does not force a replan of the whole task, and an AND node that cannot complete reports exactly which requirement failed. Compared with a flat plan, the tree costs more model calls for the splits and buys locality of failure, a readable record of what was tried, and a natural place for budgets per subtree.
Advanced
🔒 Premium
Choosing Among Samples: Votes, Verifiers and the Judge CeilingFour ways exist to choose one answer from N samples: take the first, take the most common (self-consistency), take the one an exact verifier accepts, or take the one a model judge scores highest. They behave very differently as N grows. With an exact verifier, success approaches the chance that at least one sample is right. A majority vote helps when errors are scattered and hurts when the model has a systematic wrong answer that it produces more often than the right one, because more samples make that answer win more reliably. A judge sits between the two: its gain is capped by its own false-accept and false-reject rates, and a judge that passes padded or confident wrong answers can select worse than the first sample. The lesson is a measurement procedure: simulate or measure the four strategies on your task, read the curve against N, and spend samples only where a verifier or a calibrated judge exists to pick among them.
Advanced
🔒 Premium
Reasoning Effort as a Harness Setting: Ladders, Floors and Caps per StepProviders expose how much a model thinks before answering as a per-call setting: an effort level or a thinking-token budget, billed as output tokens and paid in latency. Because it is per call, the harness chooses it per step, and the right choice differs by step type. Steps whose mistakes a cheap check catches start low and escalate on failure. Steps whose mistakes are costly and found late, a plan or a diagnosis, are fixed high, because escalating after the damage costs more than thinking first. The lesson gives the policy as floors and caps per step type and measures it on a labelled set that charges the cost of a wrong step.
Unlock all 19 answers · $25

All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.

6 months · One payment · No auto-renewal