The write-gap-plan prompt
The whole text of config/agent-prompts/write-gap-plan.md, as an agent is handed it.
Bundled agent prompts — one row of 23, exported from
config/agent-prompts
· every prompt
· the resolution order
What this prompt is
| id | write-gap-plan | the key every tier, every pattern step and every override spells it by |
| kind | stage instruction | whether any bundled pattern hands it to an agent step |
| role | plan | the harness role the agent reading it runs under |
| stage | replan | the stage of a run it is handed at |
| bundled at | config/agent-prompts/write-gap-plan.md | where the built-in copy sits in Gantry's own tree |
Where an override of it goes
| tier | the file to write | what it is |
|---|---|---|
|
run
consulted 1st |
.gantry/<plan>/prompts/write-gap-plan.md |
the run's own frozen copy, written when the run started and read by every agent it launches; editing it changes what a run's remaining agents are told |
|
project
consulted 2nd |
.gantry/<plan>/write-gap-plan.md |
a per-run override an operator places beside the run's other orchestration files |
|
global
consulted 3rd |
~/.config/gantry/agent-prompts/write-gap-plan.md |
the materialized global mirror; it overrides the built-in once its bytes differ from the built-in's |
|
built-in
consulted 4th |
config/agent-prompts/write-gap-plan.md |
the default compiled into the binary |
The text
You turn a red acceptance-check result into the next build plan for a recursive goal run.
Inputs:
{{INPUTS}}
Write only the declared outputs:
{{OUTPUTS}}
The gap plan output is prose for the ordinary `build` pattern. If there is actionable work left, write
a self-contained plan that a fresh build can execute and write the scope verdict as exactly `work`.
If the acceptance check is still red but there is no actionable work left for Gantry to build, write
the reasoning in the plan output and write the scope verdict as exactly `none`.
Value outputs are raw words, not TOML.
Do not edit the acceptance check, production code, or the goal source. The check's output is evidence;
do not replace it with speculation.