Repository navigation
Description
What happened
The runner agent works from the prompt src/devops_cli/ai/tasks/roadmap_implement_step.md, which holds a short list of the project rules. A person or an agent in the devcontainer works from AGENTS.md, which holds the rules of every task and routes each task to the document that owns it (testing, security, architecture, the workflow). The runner agent does not read it. So rules change in AGENTS.md and the runner does not follow them until someone copies them into the prompt. Live results on 2026-11-01: scratch files in the checkout root (rule 12), a removed pinned test, prose and tests that CI rejects later (AGENTS.md rules 4, 5, 9).
What should happen
- The user message of each step holds the text of
AGENTS.mdof the checkout (it is capped at 6,500 characters, about 1,700 tokens), under its own heading, as data of the repository. The step prompt stops copying rules thatAGENTS.mdalready holds and keeps only what is specific to the runner (the shell table, the tool names, the tick rule oftasks.md, the output cap). - For each group, the step also adds the documents that
AGENTS.mdroutes the group to, when the group changes that kind of file:docs/TESTING.mdwhen it changes a test,ARCHITECTURE.mdandCONTRIBUTING.mdsections when it changessrc/,k8s/README.mdwhen it changes a manifest. The routes come from a table in code, tested against the "Where to look" table ofAGENTS.md. - The token cost per step is measured and stated, and the step stays inside the 128k window of the group budget (
roadmap.stage.step_tokens).
Acceptance criteria
- A step message holds
AGENTS.mdverbatim, and a test fails if the prompt andAGENTS.mdgive two different statements of one rule that a test can compare (for example the scratch directory). - A group that changes a test file brings
docs/TESTING.mdinto the message, and a group that changes only a manifest does not. - The measured extra tokens per step are in the PR.
- A change of
AGENTS.mdneeds no change of the step prompt for rules that the file owns.
Related: #3027, #3072 (runner image tools), #3043 (scoped CI before the push), #3090 (type check of the gate), #3007.
Activity
dan-petty commentedon Nov 1, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.Improves agent rule compliance but does not block delivery or expose a security gap.Prevents repeated rule violations and CI failures caused by the runner missing AGENTS.md rules.Requires prompt restructuring, a routing table in code, tests, and token measurement across multiple files.#2664 creates the bounded implement step; this candidate adds AGENTS.md text and routed documents to that step's message.chore(main): release 0.38.0 (#3102)
chore(deps): update python dependencies (patch) (#6085)