ontrack prints the prompt, the agent reads the repository
accepted ADR-0029 local/ADR-0029-ontrack-prints-the-prompt-the-agent-reads-the-repository
Status
Section titled “Status”Accepted
Context
Section titled “Context”ontrack review hands work to a coding agent: rule a convention, rule it
again, supersede it. Its prompt is fixed text plus paths, titles and
references. Everything specific to a convention is in the ADR, and
everything specific to the repository is in the repository, which the agent
reads. This was never recorded as a decision, so nothing settled it.
ontrack suggest (change add-suggest-command) asks for more: an audit of
the decisions a repository holds and never recorded. ontrack could scan the
configuration and dependencies itself, or it could leave the reading to the
agent. Other commands that hand work to an agent will face the same choice.
Decision
Section titled “Decision”A command that hands judgement to a coding agent prints a prompt. It does
not inspect the repository’s code, configuration, history or forge on the
agent’s behalf. The prompt holds fixed text, plus the facts ontrack alone
holds cheaply: the ADRs under docs/adr/, their statuses and titles, and
what the tracks would import, as plan computes it. The command is
read-only and offline. The agent reads the repository, proposes, and writes
only once the user agrees.
Consequences
Section titled “Consequences”Positive
Section titled “Positive”- ontrack stays independent of any ecosystem: it parses no build file, lockfile or forge API.
- A prompt is tested by its contract (steps, lists, exit code), not by heuristics on fixtures.
- The judgement stays where the evidence is read, and the user rules on it.
Negative
Section titled “Negative”- The quality of a prompt’s result depends on the agent, and no test of ontrack measures it.
- An agent that cannot reach the forge gets less evidence. The prompt must say what to do then.
Neutral
Section titled “Neutral”- A command that needs a fact ontrack alone holds cheaply adds it to the
prompt, as
suggestadds the ADRs to import.
Alternatives Considered
Section titled “Alternatives Considered”- Scan the repository in ontrack and print findings. It is noisy, since configuration shows what is and not what was chosen. It ties ontrack to every ecosystem, and it duplicates what the agent reads better.
- Call a model from ontrack. That would need a network and a key, and it would break the offline contract of every command.
References
Section titled “References”src/review.ts: the prompts this decision describes.- ADR-0005: where the ADRs the prompts write go.
