Instruction todo plan (instruction_todo_plan)
Agentic Recipe. Classify the current instruction as a oneshot or an
ordered todo list, refine the list for conflicts, freeze pre-list
acceptance, execute each item with per-item verify, then check post-list
acceptance so later steps have not undone earlier ones. Human calling
refinement returns as generator advice_requested; answering restarts the
plan with guidance_history.
Surface |
Value |
|---|---|
Catalog id |
|
Module |
|
Domain |
|
Substrate |
|
Owning stories |
|
Stages
classify → refine_plan → pre_accept → work_item* → item_accept → post_accept → complete
Stage |
Role |
|---|---|
|
oneshot vs list (inputs or soft evidence) |
|
conflict check vs post-list acceptance |
|
freeze / verify criteria before work |
|
repeating execute (oneshot = one iteration) |
|
per-todo acceptance |
|
holistic check after the full list |
|
terminal |
Soft points
Name |
Kind |
Role |
|---|---|---|
|
guidance (optional) |
Asked only when local work cannot classify |
|
guidance (optional) |
Asked when conflicts would fail post-accept |
|
guidance (dynamic) |
After verify/item failure escalate (see below) |
|
budget |
Bound the |
|
policy |
Three acceptance layers |
|
runner_kind |
Override |
Required guidance soft points are auto-queued at generator start. Optional
guidance soft points are not auto-queued — local work returns
request_guidance and DurableGraphGenerator._advance yields, then restarts
after resume.
Failure escalate: restore → consolidated retry → guidance
When ProjectCodingLocalWork exhausts verify_runs repair rounds (or a work
item fails), it escalates instead of failing immediately:
Consolidate failure lines into one restore-and-finish brief (
decompose_instructions_from_failures) — not one todo per verify line. The brief leads with fixed non-negotiables (noeval/exec/literal_eval, keep API shape) and includes the full goal text (not a short clip).Restore the coding workspace filesystem checkpoint (refreshed after each successful suite stage and at coding-burst start / success), then retry once in-process with that consolidated oneshot (
decompose_auto_applied). Empty checkpoints never overwrite a non-empty workspace.If the retry still fails → yield
advice_requestedwithcontext_version=decompose(proposed brief + failures).Driver answer (
accept_proposed, revise text, orstructured.instructions) restores the baseline again and restarts; clarification becomes the plan (list mode when multiple instructions are supplied).After a answered
decompose, a further failure is terminalfailed(no infinite yield loop).
write_file / verify also AST-refuse eval/exec/literal_eval cheats when
stories ban them; repair bursts get the same semantic host-verify hints.
Linear story / CLI walks can set answer.on_decompose: accept_proposed so the
durable instrumentor drains that escalate yield once without a second YAML
step (MCP drivers still answer interactively when they omit the flag).
Node components
Parent graph node |
Components |
|---|---|
|
|
|
|
|
|
|
|
See Node components.