Repository navigation
Description
Problem Description
During devops roadmap stage planning, conversational meta-commentary from the model leaks into proposal.md under ## Feasibility.
In pull request #4095, the proposal contained the line:
- The earlier reply was wrong to read the probe answer for functools.lru_cache as a false premise: functools.lru_cache is a function of the Python standard library that the issue asks to apply, not a path of the repository, so the answer that no file holds it shows nothing about the issue. This reply drops that line and quotes only the two probe lines above.
This occurs when a repair round or multi-turn interaction corrects an earlier probe interpretation. The model writes conversational explanations into the proposal artifact instead of objective system facts. This violates ASD-STE100 and pollutes OpenSpec change documentation.
Reproduction Steps
- Run
devops roadmap stageon an issue where a repair round corrects an earlier probe result. - Inspect the generated
proposal.mdinopenspec/changes/<issue>-<slug>/proposal.md. - Observe conversational meta-text ("The earlier reply was wrong...", "This reply drops that line...") in the Feasibility section.
Expected vs Actual Behavior
Expected: ## Feasibility contains only objective system facts, probe quotations, and file citations. The stage gate refuses conversational self-corrections and references to prior agent replies.
Actual: The model injects conversational apologies and turn-by-turn narratives into the committed OpenSpec proposal.
Environment Diagnostics
- DevOps CLI Version: 0.86.0
- Python Version: 3.14.10
- OS & Architecture: Linux x86_64
- Execution Environment: Roadmap Service / Stage Job
Logs, Traces, or Terminal Output
The earlier reply was wrong to read the probe answer for functools.lru_cache as a false premise: functools.lru_cache is a function of the Python standard library that the issue asks to apply, not a path of the repository, so the answer that no file holds it shows nothing about the issue. This reply drops that line and quotes only the two probe lines above.
Pre-Submission Checklist
- I have verified that no sensitive credentials, private keys, or internal tokens are contained in this issue report.
- I have checked existing issues and pull requests to ensure this is not a duplicate.
Dependencies
- chore(roadmap): hold incremental stage and implement work #6521 (hold: incremental work on the stage, implement and fix-checks jobs waits for the re-architecture)
Proposed design
Problem statement
The stage job can commit conversational repair text into the Feasibility section of proposal.md. This text refers to earlier model replies and violates the project's objective documentation style. The change adds a deterministic gate that refuses this text before the stage job commits the proposal.
Acceptance criteria
Requirement: Feasibility repair text is refused
The stage gate SHALL fail when the Feasibility section contains a reference to an earlier reply or a self-correction.
Scenario: Earlier reply phrase
- WHEN The Feasibility section contains the line '- The earlier reply was wrong to read the probe answer as a false premise.'
- THEN The stage job exits with a failure that names the line and the phrase, and it does not commit the proposal.
Requirement: Quoted probe output is allowed
The stage gate MUST ignore repair-like text inside fenced code blocks and block quotations.
Scenario: Quoted probe line
- WHEN The Feasibility section contains a fenced code block with the line 'The earlier reply was wrong'.
- THEN The stage gate reports no violation for that line.
Requirement: All violations are reported
The stage gate SHALL report every violation in the Feasibility section in one failure.
Scenario: Two repair phrases
- WHEN The Feasibility section contains two different repair phrases on different lines.
- THEN The error lists both line numbers and both matched phrases.
Requirement: Objective feasibility text passes
The stage gate SHALL pass a Feasibility section that contains only objective facts, file citations and probe quotations.
Scenario: Objective text
- WHEN The Feasibility section contains a file path citation and a quoted probe result with no repair phrase.
- THEN The stage job continues and writes the proposal to the change folder.
Existing Tool Considered
No alternatives check has run. Vale (MIT, maintained) covers Markdown prose linting with custom regular-expression rules. Vale lacks a rule for references to earlier model replies or self-corrections. A custom Vale rule needs the same phrase list and adds a Go binary to the Python stage job. The change builds a small validator with Python's re module instead. The written cost is about 10,000 tokens and 2 hours to build and test, about 1,000 tokens per year to keep, and about 500 tokens per defect to fix.
Key questions
- When does the stage job write
proposal.md?: The stage job writesproposal.mdinopenspec/changes/<issue>-<slug>/on a staged branch. It opens a draft pull request, and a person merges the plan later. [sources: CONTEXT.md] - Where should the project enforce the ban on conversational repair text?: The gate runs after the model writes
proposal.mdand before the stage job commits it. The prompt also tells the model to write only objective facts. (best practice) [sources: CONTEXT.md, docs/adr/0005-review-findings-come-from-tools-not-models.md]- Rejected: Prompt instruction only. The model can ignore the instruction, as pull request docs(openspec): plan #4057 Lock the single registry read in the replay #4095 shows.
- Chosen: Post-generation gate before commit. It checks the artifact deterministically and stops a bad proposal.
- Rejected: Model-based judge. It adds cost and a result that changes between runs.
- Which text should the gate reject?: The gate rejects a bounded list of phrases. The phrases refer to a prior reply or a self-correction. Examples are 'The earlier reply', 'This reply', 'I was wrong', 'Let me correct' and 'previous turn'. The gate reads only the
## Feasibilitysection. It ignores fenced code blocks and block quotations. (best practice) [sources: docs/adr/0005-review-findings-come-from-tools-not-models.md, CONTEXT.md]- Rejected: Ban all first-person text. It rejects legitimate objective text and quoted material.
- Chosen: Bounded repair-marker list scoped to Feasibility. It targets the defect and keeps probe quotations.
- Rejected: Ban all meta-commentary with a model judge. It gives a result that changes between runs and costs a model call.
- What should the gate do when it finds a violation?: The gate fails the stage job before the proposal is committed to the staged branch. The error names each line and matched phrase. (best practice) [sources: docs/adr/0005-review-findings-come-from-tools-not-models.md, CONTEXT.md]
- Rejected: Rewrite the text silently. It hides the model failure and can change meaning.
- Rejected: Warn and continue. It lets the bad proposal reach the change folder.
- Chosen: Fail with line and phrase. It stops the artifact and gives the operator the evidence to fix the model output.
- Should the gate cover the whole proposal or only
## Feasibility?: The gate covers only## Feasibility, because the issue scopes the defect there. Other sections can quote a person or a model without becoming a system fact. (best practice) [sources: CONTEXT.md, docs/adr/0005-review-findings-come-from-tools-not-models.md]- Rejected: Whole proposal. It can reject legitimate quotations in other sections.
- Chosen:
## Feasibilityonly. It matches the defect and limits false positives. - Rejected: Feasibility and design sections. The issue gives no evidence of the defect in the design section.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-10: partly.
Tool: vale-cli/vale (https://github.com/vale-cli/vale), MIT, last activity 2026-11-09, maintained.
Activity
dan-petty commentedon Nov 8, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
fixprefix of the title gives the type.(roadmap)scope of the title gives the scope.The defect pollutes committed OpenSpec documentation and violates ASD-STE100 but does not break core staging functionality.Clean proposals are essential for trustworthy change documentation, but the issue affects only repair-round scenarios.The fix requires adding a pattern-based or structural check to the stage gate that detects conversational self-correction text and refuses it.Both items address the stage job accepting invalid model output, but 3478 rejects placeholder replies as results while this candidate rejects conversational meta-text in the committed proposal artifact.devops-cli-service commentedon Nov 8, 2026
Status set to Ready at 0232651 (see proposed design in issue body).
devops-cli-service commentedon Nov 10, 2026
Alternatives check: partly
Reason: Vale is a maintained, MIT-licensed, Markdown-aware prose linter that runs user-defined regular-expression rules and reports each violation with its file and line, so it covers the lint-and-report part of the need (the issue itself lists it under "Existing Tool Considered"). It does not cover the rest: it ships no rule for references to an earlier model reply or a self-correction, it has no built-in way to limit a rule to the body of one section or to skip block quotations, and it is a Go binary that the Python stage job would have to install and invoke.
Tool: vale-cli/vale (https://github.com/vale-cli/vale)
Covers:
Lacks:
Tools considered:
Searches run:
Sources:
Checked on 2026-11-10. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 18, 2026
Plan state: branch
fix/4111-refuse-conversational-meta-text-in-stage, draft pull request #6290. The pull request plans the item and closes no issue. The stage job and the step fix-plan edit this comment, and a comment of each run tells what the run did.The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:
devops-cli-service commentedon Nov 18, 2026
The stage job staged the plan of draft pull request #6290. The plan state comment of #6290 holds the branch, the task groups and the findings.
The runs of the planner and the review made 69 model request(s), and used 5355922 input tokens and 199233 output tokens. The tool calls, in order:
repo_map({"directory":"src/devops_cli/roadmap/stage"})list_files({"directory":"src/devops_cli/roadmap"})file_symbols({"path":"src/devops_cli/roadmap/stage/stage_change.py"})file_symbols({"path":"src/devops_cli/roadmap/stage/stage_commands.py"})read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2575,"end_line":2760})read_file({"end_line":2345,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2170})search_code({"text":"check_gates"})search_code({"text":"feasibility_sentences"})search_code({"text":"check_proposal"})search_code({"text":"def check_proposal"})search_code({"text":"stage_problem_no_quote"})read_file({"end_line":3060,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2880})search_code({"text":"## Feasibility"})read_file({"end_line":760,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":640})search_code({"text":"Feasibility"})search_code({"text":"def render_change"})search_code({"text":"feasibility"})read_file({"end_line":3620,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":3400})search_code({"text":"def _proposal_file"})read_file({"end_line":3400,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":3230})read_file({"end_line":2180,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2080})search_code({"text":"GATE_DEFECT_PATHS"})search_code({"text":"STAGE_EVAL_TRIGGER_PATHS"})read_file({"end_line":340,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":190})read_file({"end_line":1700,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":1596})read_file({"end_line":120,"path":"src/devops_cli/roadmap/stage/stage_findings.py","start_line":1})read_file({"end_line":110,"path":"src/devops_cli/roadmap/stage/stage_finding_classes.json","start_line":50})search_code({"text":"finding_classes"})search_code({"text":"stage_finding_classes.json"})list_files({"directory":"tests/roadmap/stage"})search_code({"text":"earlier reply"})search_code({"text":"Feasibility"})read_file({"end_line":80,"path":"src/devops_cli/roadmap/stage/stage_eval_cases.py","start_line":1})search_code({"text":"stage_cases"})search_code({"text":"This reply"})search_code({"text":"I was wrong"})search_code({"text":"CLASSES_FILE"})read_file({"path":"tests/roadmap/stage/test_roadmap_stage_findings.py","start_line":1,"end_line":120})read_file({"end_line":5120,"path":"src/devops_cli/lang/en/messages.py","start_line":4980})read_file({"end_line":80,"path":"tests/roadmap/stage/test_roadmap_stage_gates.py","start_line":1})read_spec({"capability":"roadmap-stage/plan-text"})list_files({"directory":"src/devops_cli/roadmap/stage"})file_symbols({"path":"src/devops_cli/roadmap/stage/stage_change.py"})read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2610,"end_line":2760})search_code({"text":"STAGE_EVAL_GATE_PATHS"})read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":265,"end_line":300})search_code({"text":"def check_gates("})read_file({"end_line":3000,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2913})read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":1593,"end_line":1730})read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":1876,"end_line":1950})read_file({"end_line":330,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":299})read_file({"end_line":2185,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2143})search_code({"text":"## Feasibility"})search_code({"text":"earlier reply"})search_code({"text":"Feasibility"})read_file({"end_line":742,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":689})search_code({"text":"def render_change"})search_code({"text":"feasibility"})read_file({"end_line":3580,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":3470})search_code({"text":"def _proposal_file"})read_file({"end_line":3400,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":3299})search_code({"text":"Line = Annotated"})search_code({"text":"LineStart = Annotated"})read_spec({})list_files({"directory":"docs/adr"})read_spec({"capability":"roadmap-stage/plan-text"})list_files({"directory":"openspec/specs"})list_files({"directory":"openspec/specs/roadmap-stage"})read_spec({"capability":"roadmap-stage/verification"})read_spec({"capability":"roadmap-stage/premise"})search_code({"text":"stage_problem_no_quote"})search_code({"text":"stage_problem_gate_defect_quote"})read_file({"path":"tests/roadmap/stage/test_roadmap_stage_findings.py","start_line":150,"end_line":320})read_file({"path":"src/devops_cli/roadmap/stage/stage_finding_classes.json","start_line":1,"end_line":120})read_file({"path":"src/devops_cli/roadmap/stage/stage_findings.py"})search_code({"text":"ProposalGate"})search_code({"text":"plan_heads"})search_code({"text":"stage_refused_findings.json"})search_code({"text":"this reply"})search_code({"text":"previous turn"})search_code({"text":"read_change"})callers({"symbol":"check_gates"})search_code({"text":"def make_stage_proposal"})read_file({"end_line":260,"path":"tests/support/builders.py","start_line":120})read_file({"end_line":120,"path":"tests/support/builders.py","start_line":60})search_code({"text":"previous reply"})search_code({"text":"my earlier"})search_code({"text":"def existing_test_problems"})list_files({"directory":"tests/lang"})read_file({"end_line":700,"path":"src/devops_cli/roadmap/stage/stage_paths.py","start_line":560})search_code({"text":"def refine_decisions"})search_code({"text":"def _refine_decision_problems"})read_file({"end_line":2920,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2790})read_file({"end_line":330,"path":"src/devops_cli/roadmap/stage/stage_criteria.py","start_line":240})search_code({"text":"package-layout"})search_code({"text":"package_layout"})read_spec({"capability":"roadmap-package-layout"})search_code({"text":"package-layout.md"})search_code({"text":"roadmap/package-layout.md"})list_files({"directory":"tests/invariants"})read_file({"end_line":95,"path":"tests/roadmap/stage/test_roadmap_stage_gates.py","start_line":40})Tool calls: callers=1 (empty=0), file_symbols=3 (empty=0), list_files=8 (empty=0), read_file=34 (empty=0), read_spec=6 (empty=0), repo_map=1 (empty=0), search_code=48 (empty=4)
The plan request held these comments of the item whole: #4111 (comment), #4111 (comment), #4111 (comment).
Warnings:
tests/roadmap/stage/test_roadmap_stage_meta_text.pydoes not exist.12 remaining items
devops-cli-service commentedon Nov 18, 2026
Stopped at fix.
Failed check:
Tests & Coverage (shard 2 of 5). The end of its log:Failure class:
outside_plan.Action taken: none.
Action left:
wait: wait for a person.pytest on base: tests/roadmap/stage/test_roadmap_stage_meta_text.pypytest on base: tests/roadmap/stage/test_roadmap_stage_gates.pyTests & Coverage (shard 2 of 5)Reason:
Last message of the agent (a claim that no check verified): The failed check was caused by the new
meta-textgate:ProposalGatenow has 18 members, but thedevops_cli_roadmap_stage_gate_refusals_totalinstrument still stated "17 series, one for each gate", so the telemetry test that derives the series count fromlen(ProposalGate)failed. What I changed: -src/devops_cli/telemetry/instruments.py: the refusals counter description now states 18 series, one for each gate. -docs/TELEMETRY.md: regenerated withuv run devops docs generate, so the counter row matches the instrument description. I did not touchtasks.mdor any test, since this group is the "make check pass" group. Verification: -uv run devops ci test tests/telemetry/test_roadmap_stage_steps.py→ 17 passed (it failed withAssertionError: assert Nonefor\b18 series\bbefore the fix). -uv run devops ci test tests/roadmap/stage/test_roadmap_stage_gates.py→ 17 passed. -uv run devops ci test tests/roadmap/stage/test_roadmap_stage_meta_text.py→ 1 passed. -uv run devops ci test tests/docs/test_docs.py→ 49 passed, 1 snapshot passed. -uv run devops ci test tests/telemetry/test_telemetry_instruments.py→ 54 passed. -uv run devops ci docs→ all documentation files are up to date. -uv run ruff check src/devops_cli/telemetry/instruments.py→ all checks passed. -uv run mypy --strict src/devops_cli/telemetry/instruments.py→ success, no issues.The job discarded this work. Read it before you retry:
The item is Blocked, and the job will not run it. Fix the cause. Then comment
implement: retry. The Service clears the stop on its own when a new runner image rolls out, but only if a retry can fix the class of the stop and the limits ofroadmap.implement.digest_clears_per_classandroadmap.implement.digest_clears_per_itemallow it.dan-petty commentedon Nov 20, 2026
Frozen on 2026-11-20. The stage, implement and fix-checks jobs grade under 60%, so the owner rule asks for a re-architecture before more fixes inside the current design (tracker #6519). This item is incremental work on those jobs, so its Dependencies section now names #6521 first. Stage and implement leave this item while #6521 is open. When the experiments of #6519 decide, a person closes #6521 (this item can then continue) or closes this item as not planned.
fix(roadmap): Add the repair-text check and its message (#4111)
fix(roadmap): Register the gate and document it (#4111)
docs(openspec): archive the change (#4111)
fix(roadmap): count the meta-text gate in the series count and skip c…
devops-cli-service commentedon Nov 21, 2026
Released in v0.188.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.188.0
devops-cli-service commentedon Nov 21, 2026
Live since 2026-11-21 14:28 UTC