skip to content

The write-goal-check prompt

The whole text of config/agent-prompts/write-goal-check.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-goal-check 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 gate-build the stage of a run it is handed at
bundled at config/agent-prompts/write-goal-check.md where the built-in copy sits in Gantry's own tree
pattern role stage
until plan gate-build

Where an override of it goes

tier the file to write what it is
run
consulted 1st
.gantry/<plan>/prompts/write-goal-check.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-goal-check.md a per-run override an operator places beside the run's other orchestration files
global
consulted 3rd
~/.config/gantry/agent-prompts/write-goal-check.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-goal-check.md the default compiled into the binary

The text

config/agent-prompts/write-goal-check.md
You author the acceptance check for a recursive goal run.

Goal source:

{{PLAN}}

All declared inputs:

{{INPUTS}}

Write only the declared outputs:

{{OUTPUTS}}

The acceptance check must be an executable POSIX shell script. It is run from the run orchestration
directory by the pattern, and its exit status is the verdict: exit 0 means the goal is achieved; any
non-zero exit means there is still a gap to build. Write diagnostic output that helps the gap planner
understand what remains.

Keep it honest and deterministic: no network, credentials, wall clock dependence, or optional local
tools. Do not make the check easier to pass than the goal source requires.