Repository navigation
Description
Problem
The stage job writes the documents check of devops-cli into the plans of every target repository. The line stage_task_documents of src/devops_cli/lang/en/messages.py adds Verification: `$ uv run devops ci docs` passes to each documents task, and the example of an other group in src/devops_cli/ai/tasks/roadmap_stage_change.md names the same command. Neither reads the toolchain preset of the target. A neutral preset has no docs_verification.
Evidence
On 2026-12-01, dan-petty/homelab at commit 015abe4 held no .devops/roadmap.toml. The tasks.md of 11 of its 21 active changes named uv run devops ci docs, in 16 lines. The command exited 1 on the unchanged default branch. #7983 stops such an item before the first model request with the class plan_defect, so these plans cannot be implemented until a person edits them. #4643 asked for this rule among others and was closed as not planned, with a request to file a new item from evidence.
Expected
For a target whose preset declares no documents check, the plan holds no documents check: the writer adds none to a documents task, the form check refuses it as the verify of a group, and the mechanical rewrite of a plan adds none. A devops-cli plan does not change.
Acceptance criteria
- A test: a documents task of a plan for a
neutralrepository has nouv run devops ci docstext. - A test: the form check refuses the command as a
verifycommand for aneutralrepository. - A test: the rendered plan for the
devops-clipreset does not change.
Alternatives check of 2026-12-01: none.
Tool: none found.
Reason: Web searches found only general templating and spec-format tools. Copier and OpenSpec render or check their own files and read no per-repository toolchain preset, so none covers the documents verification line.
Lacks:
- No preset-aware documents verification line in the stage writer
- No check of a verify command against the target preset
- No rewrite that removes an undeclared documents command
- No handling of the wider amendment command rule
Proposed design
Problem statement
The stage job writes a documents verification command into every target repository's plan. It does not read the target toolchain preset. A neutral preset has no documents check, so its plans hold a command that fails. The fix makes the writer, the form check and the mechanical rewrite use the target preset's docs_verification value, or omit it.
Acceptance criteria
Requirement: Documents task uses the target preset
The stage writer MUST build the documents verification line from the target preset's docs_verification value.
Scenario: Neutral preset has no documents check
- WHEN The target preset is
neutraland itsdocs_verificationis empty. - THEN The rendered documents task has no
Verification:line and nouv run devops ci docstext.
Requirement: Documents task keeps the devops-cli command
The stage writer MUST keep the documents verification line of the devops-cli preset unchanged.
Scenario: Devops-cli preset keeps its documents check
- WHEN The target preset is
devops-cliand itsdocs_verificationisuv run devops ci docs. - THEN The rendered documents task holds the text
Verification:$ uv run devops ci docspasses.
Requirement: Form check refuses an undeclared documents command
The stage form check MUST refuse a documents verification command that the target preset does not declare.
Scenario: Neutral preset refuses the docs command
- WHEN The target preset is
neutraland a task group givesuv run devops ci docsas itsverifycommand. - THEN The form check returns an invalid result for the
verifycommand.
Requirement: Form check accepts the declared documents command
The stage form check MUST accept the documents verification command that the target preset declares.
Scenario: Devops-cli preset accepts its docs command
- WHEN The target preset is
devops-cliand a task group givesuv run devops ci docsas itsverifycommand. - THEN The form check returns a valid result for the
verifycommand.
Requirement: Stage prompt names no fixed documents command
The stage prompt MUST tell the planner to use the target preset's docs_verification value and to omit it when the preset has none.
Scenario: The other group example holds no fixed docs command
- WHEN The stage prompt test reads the
othergroup example insrc/devops_cli/ai/tasks/roadmap_stage_change.md. - THEN The example holds no
uv run devops ci docstext and names thedocs_verificationfield.
Requirement: Rewrite removes an undeclared documents command
The mechanical rewrite of a plan MUST remove a documents verification line that the target preset does not declare.
Scenario: Neutral preset rewrite removes the docs line
- WHEN A plan for a
neutralrepository holds a documents task withuv run devops ci docs. - THEN The rewritten plan has no
uv run devops ci docstext.
Existing Tool Considered
The alternatives block in the issue body records verdict none and names no tool. The change uses the existing docs_verification field in src/devops_cli/roadmap/toolchains.py and builds no tool. Written cost: about 2 hours and under 10k tokens to edit stage_change.py, the form check, the prompt and the tests.
Key questions
- Which message and caller write the documents verification line?:
stage_task_documentsatsrc/devops_cli/lang/en/messages.py:5911writes the line.src/devops_cli/roadmap/stage/stage_change.pycalls it. [sources: src/devops_cli/lang/en/messages.py:5911, src/devops_cli/roadmap/stage/stage_change.py] - Which field holds the target preset documents command?: The
docs_verificationfield insrc/devops_cli/roadmap/toolchains.pyholds the command. Theneutralpreset has no value. [sources: src/devops_cli/roadmap/toolchains.py:63, src/devops_cli/roadmap/toolchains.py:79, src/devops_cli/roadmap/toolchains.py:106] - How should the writer, form check and rewrite find the documents command?: Read
docs_verificationfrom the target preset. If the value is empty, omit the line and refuse the command. (best practice) [sources: src/devops_cli/roadmap/toolchains.py:63, src/devops_cli/lang/en/messages.py:5911, src/devops_cli/roadmap/stage/stage_change.py]- Chosen: Reuse
docs_verification. One preset field already holds the command and its absence. - Rejected: Hardcode a neutral exception. It adds a second rule for each preset and drifts from the toolchain.
- Rejected: Leave the message unchanged. It keeps the failing command in every neutral plan.
- Chosen: Reuse
- Should the stage prompt example use the target preset field?: Yes. The prompt must use
docs_verificationand omit it when the preset has none. (best practice) [sources: src/devops_cli/ai/tasks/roadmap_stage_change.md, src/devops_cli/roadmap/toolchains.py:63]- Chosen: Use the preset field. The prompt then matches the writer and the form check.
- Rejected: Keep the fixed example. The model copies the fixed command into neutral plans.
- Rejected: Remove the example. The planner loses the shape of a documents verification line.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Dec 1, 2026
Blocks delivery of target-repository plans until a person edits them by hand.dan-petty commentedon Dec 1, 2026
One more place reads no toolchain preset: the amendment rule.
_judge_commandofsrc/devops_cli/roadmap/implement/implement_amend.pyaccepts a new command only when it starts withuv run devops, throughis_valid_verifyof the stage form check. Indan-petty/homelab#361the job refuseduv run --locked --script scripts/k8s-checks.py --helpfor that reason (2026-12-01T00:48:16Z). That command only prints a help text, so a wider rule needs its own care.devops-cli-service commentedon Dec 1, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
devops-cli-service commentedon Dec 1, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (7)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Dec 1, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.
fix(roadmap): write the documents check of the target preset
dan-petty commentedon Dec 1, 2026
Superseded by the owner decisions of 2026-12-01: the Service jobs give the agent a project-neutral prompt, and the pre-commit hooks of the repository and its pull request CI are the only checks. The toolchain presets and the devops ci command are deleted. See #8040 (implement and fix jobs) and #8039 (stage job). The stop that this item reports ends with #8040, which runs no verification command of a plan.