Skip to content

fix(roadmap): refuse conversational meta-text in stage proposals #4111

Closed

Description

@dan-petty

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

  1. Run devops roadmap stage on an issue where a repair round corrects an earlier probe result.
  2. Inspect the generated proposal.md in openspec/changes/<issue>-<slug>/proposal.md.
  3. 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

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 writes proposal.md in openspec/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.md and 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]
  • 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 ## Feasibility section. 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: ## Feasibility only. 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

  1. added
    source/agent
    type/bug
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 8, 2026
  2. dan-petty commented on Nov 8, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. The defect pollutes committed OpenSpec documentation and violates ASD-STE100 but does not break core staging functionality.
    • Value: Medium. Clean proposals are essential for trustworthy change documentation, but the issue affects only repair-round scenarios.
    • Effort: Medium. The fix requires adding a pattern-based or structural check to the stage gate that detects conversational self-correction text and refuses it.
    • Related: fix(roadmap): a placeholder reply of a model moves no item #3478, which asks for a different change. 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.
  3. added
    priority/p2-medium
    on Nov 8, 2026
  4. added
    status/ready
    and removed
    status/new
    on Nov 8, 2026
  5. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 0232651 (see proposed design in issue body).

  6. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    Contributor

    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)

    • License: MIT
    • Last activity: 2026-11-09
    • Maintained: yes

    Covers:

    • Markdown-aware prose linting driven by user-defined regular-expression rules (custom styles)
    • Reports every alert in one run with the file and the line of the match, and exits non-zero on errors
    • A maintained project under the MIT licence, so a rule set can be versioned with the repository

    Lacks:

    • No built-in rule for references to an earlier model reply or a self-correction; the bounded phrase list must be written as a custom style
    • No built-in way to scope a rule to the body of one section (## Feasibility) or to ignore block quotations
    • Ships as a separate Go binary, which the Python stage job must install and invoke instead of a small in-process check

    Tools considered:

    Searches run:

    • Vale prose linter custom regex rule Markdown, results: 5
    • textlint rule detect phrase in markdown section, results: 5
    • vale.sh documentation custom rule regex, results: 5
    • github errata-ai vale prose linter, results: 5
    • textlint, results: 5
    • Vale linter, results: 5
    • vale styles custom regex rule ignore code blocks markdown documentation, results: 5
    • "vale" lint prose tool documentation site, results: 5
    • vale-cli vale docs styles existence scope heading, results: 5
    • vale.sh documentation Vale prose linter rules, results: 5

    Sources:

    Checked on 2026-11-10. A person decides what this means for the item. The check changes no label and closes no issue.

  7. added
    owner/service
    on Nov 18, 2026
  8. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    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:

    1. Add the repair-text check and its message: 40065 tokens
    2. Register the gate and document it: 46809 tokens
  9. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    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:

    1. repo_map({"directory":"src/devops_cli/roadmap/stage"})
    2. list_files({"directory":"src/devops_cli/roadmap"})
    3. file_symbols({"path":"src/devops_cli/roadmap/stage/stage_change.py"})
    4. file_symbols({"path":"src/devops_cli/roadmap/stage/stage_commands.py"})
    5. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2575,"end_line":2760})
    6. read_file({"end_line":2345,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2170})
    7. search_code({"text":"check_gates"})
    8. search_code({"text":"feasibility_sentences"})
    9. search_code({"text":"check_proposal"})
    10. search_code({"text":"def check_proposal"})
    11. search_code({"text":"stage_problem_no_quote"})
    12. read_file({"end_line":3060,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2880})
    13. search_code({"text":"## Feasibility"})
    14. read_file({"end_line":760,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":640})
    15. search_code({"text":"Feasibility"})
    16. search_code({"text":"def render_change"})
    17. search_code({"text":"feasibility"})
    18. read_file({"end_line":3620,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":3400})
    19. search_code({"text":"def _proposal_file"})
    20. read_file({"end_line":3400,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":3230})
    21. read_file({"end_line":2180,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2080})
    22. search_code({"text":"GATE_DEFECT_PATHS"})
    23. search_code({"text":"STAGE_EVAL_TRIGGER_PATHS"})
    24. read_file({"end_line":340,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":190})
    25. read_file({"end_line":1700,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":1596})
    26. read_file({"end_line":120,"path":"src/devops_cli/roadmap/stage/stage_findings.py","start_line":1})
    27. read_file({"end_line":110,"path":"src/devops_cli/roadmap/stage/stage_finding_classes.json","start_line":50})
    28. search_code({"text":"finding_classes"})
    29. search_code({"text":"stage_finding_classes.json"})
    30. list_files({"directory":"tests/roadmap/stage"})
    31. search_code({"text":"earlier reply"})
    32. search_code({"text":"Feasibility"})
    33. read_file({"end_line":80,"path":"src/devops_cli/roadmap/stage/stage_eval_cases.py","start_line":1})
    34. search_code({"text":"stage_cases"})
    35. search_code({"text":"This reply"})
    36. search_code({"text":"I was wrong"})
    37. search_code({"text":"CLASSES_FILE"})
    38. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_findings.py","start_line":1,"end_line":120})
    39. read_file({"end_line":5120,"path":"src/devops_cli/lang/en/messages.py","start_line":4980})
    40. read_file({"end_line":80,"path":"tests/roadmap/stage/test_roadmap_stage_gates.py","start_line":1})
    41. read_spec({"capability":"roadmap-stage/plan-text"})
    42. list_files({"directory":"src/devops_cli/roadmap/stage"})
    43. file_symbols({"path":"src/devops_cli/roadmap/stage/stage_change.py"})
    44. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2610,"end_line":2760})
    45. search_code({"text":"STAGE_EVAL_GATE_PATHS"})
    46. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":265,"end_line":300})
    47. search_code({"text":"def check_gates("})
    48. read_file({"end_line":3000,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2913})
    49. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":1593,"end_line":1730})
    50. read_file({"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":1876,"end_line":1950})
    51. read_file({"end_line":330,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":299})
    52. read_file({"end_line":2185,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2143})
    53. search_code({"text":"## Feasibility"})
    54. search_code({"text":"earlier reply"})
    55. search_code({"text":"Feasibility"})
    56. read_file({"end_line":742,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":689})
    57. search_code({"text":"def render_change"})
    58. search_code({"text":"feasibility"})
    59. read_file({"end_line":3580,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":3470})
    60. search_code({"text":"def _proposal_file"})
    61. read_file({"end_line":3400,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":3299})
    62. search_code({"text":"Line = Annotated"})
    63. search_code({"text":"LineStart = Annotated"})
    64. read_spec({})
    65. list_files({"directory":"docs/adr"})
    66. read_spec({"capability":"roadmap-stage/plan-text"})
    67. list_files({"directory":"openspec/specs"})
    68. list_files({"directory":"openspec/specs/roadmap-stage"})
    69. read_spec({"capability":"roadmap-stage/verification"})
    70. read_spec({"capability":"roadmap-stage/premise"})
    71. search_code({"text":"stage_problem_no_quote"})
    72. search_code({"text":"stage_problem_gate_defect_quote"})
    73. read_file({"path":"tests/roadmap/stage/test_roadmap_stage_findings.py","start_line":150,"end_line":320})
    74. read_file({"path":"src/devops_cli/roadmap/stage/stage_finding_classes.json","start_line":1,"end_line":120})
    75. read_file({"path":"src/devops_cli/roadmap/stage/stage_findings.py"})
    76. search_code({"text":"ProposalGate"})
    77. search_code({"text":"plan_heads"})
    78. search_code({"text":"stage_refused_findings.json"})
    79. search_code({"text":"this reply"})
    80. search_code({"text":"previous turn"})
    81. search_code({"text":"read_change"})
    82. callers({"symbol":"check_gates"})
    83. search_code({"text":"def make_stage_proposal"})
    84. read_file({"end_line":260,"path":"tests/support/builders.py","start_line":120})
    85. read_file({"end_line":120,"path":"tests/support/builders.py","start_line":60})
    86. search_code({"text":"previous reply"})
    87. search_code({"text":"my earlier"})
    88. search_code({"text":"def existing_test_problems"})
    89. list_files({"directory":"tests/lang"})
    90. read_file({"end_line":700,"path":"src/devops_cli/roadmap/stage/stage_paths.py","start_line":560})
    91. search_code({"text":"def refine_decisions"})
    92. search_code({"text":"def _refine_decision_problems"})
    93. read_file({"end_line":2920,"path":"src/devops_cli/roadmap/stage/stage_change.py","start_line":2790})
    94. read_file({"end_line":330,"path":"src/devops_cli/roadmap/stage/stage_criteria.py","start_line":240})
    95. search_code({"text":"package-layout"})
    96. search_code({"text":"package_layout"})
    97. read_spec({"capability":"roadmap-package-layout"})
    98. search_code({"text":"package-layout.md"})
    99. search_code({"text":"roadmap/package-layout.md"})
    100. list_files({"directory":"tests/invariants"})
    101. 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:

    • Scoped test tests/roadmap/stage/test_roadmap_stage_meta_text.py does not exist.
  10. 12 remaining items

  11. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Stopped at fix.

    Failed check: Tests & Coverage (shard 2 of 5). The end of its log:

    ge Quality Gate\t2026-11-18T20:03:24.8783976Z SKIPPED [1] tests/commands/test_devcontainer.py:2379: zsh is not installed
    Tests & Coverage (shard 2 of 5)\tTests & Coverage Quality Gate\t2026-11-18T20:03:24.8784465Z SKIPPED [1] tests/commands/test_devcontainer.py:2395: zsh is not installed
    Tests & Coverage (shard 2 of 5)\tTests & Coverage Quality Gate\t2026-11-18T20:03:24.8785042Z SKIPPED [1] tests/sandbox/test_host_sandbox.py:731: no bwrap-marked items collected in this session
    Tests & Coverage (shard 2 of 5)\tTests & Coverage Quality Gate\t2026-11-18T20:03:24.8786261Z =========================================================================================== 1 failed, 5016 passed, 3 skipped, 3 warnings in 240.54s (0:04:00) ============================================================================================
    Tests & Coverage (shard 2 of 5)\tTests & Coverage Quality Gate\t2026-11-18T20:03:26.6061253Z   \u2717 fail [test] pytest & coverage (4m 14s)
    Tests & Coverage (shard 2 of 5)\tTests & Coverage Quality Gate\t2026-11-18T20:03:26.6128141Z             CI Summary            
    Tests & Coverage (shard 2 of 5)\tTests & Coverage Quality Gate\t2026-11-18T20:03:26.6128754Z  Check           Result  Duration 
    Tests & Coverage (shard 2 of 5)\tTests & Coverage Quality Gate\t2026-11-18T20:03:26.6129480Z  python_version  \u2713 pass  20\xb5s     
    Tests & Coverage (shard 2 of 5)\tTests & Coverage Quality Gate\t2026-11-18T20:03:26.6130096Z  test            \u2717 fail  4m 14s   
    Tests & Coverage (shard 2 of 5)\tTests & Coverage Quality Gate\t2026-11-18T20:03:26.6130685Z  coverage        \u2717 fail  -        
    Tests & Coverage (shard 2 of 5)\tTests & Coverage Quality Gate\t2026-11-18T20:03:26.6132143Z Total Elapsed: 4m 14s (concurrent async execution)
    Tests & Coverage (shard 2 of 5)\tTests & Coverage Quality Gate\t2026-11-18T20:03:26.6132586Z 
    Tests & Coverage (shard 2 of 5)\tTests & Coverage Quality Gate\t2026-11-18T20:03:26.7482554Z ##[error]Process completed with exit code 1.
    

    Failure class: outside_plan.
    Action taken: none.
    Action left: wait: wait for a person.

    Step Status Attempts Tokens in/out Last failing command
    group 1 done 2 3080540/13379 pytest on base: tests/roadmap/stage/test_roadmap_stage_meta_text.py
    group 2 done 1 9071764/26126 pytest on base: tests/roadmap/stage/test_roadmap_stage_gates.py
    fix stopped 1 1493465/5620 Tests & Coverage (shard 2 of 5)

    Reason:

    The fix step changed paths that the plan does not name: `docs/TELEMETRY.md`, `src/devops_cli/telemetry/instruments.py`. A fix step may change only the paths that the plan names and the files of the change folder. The cause of the failed check may lie in another path. A person decides how to change the plan.
    

    Last message of the agent (a claim that no check verified): The failed check was caused by the new meta-text gate: ProposalGate now has 18 members, but the devops_cli_roadmap_stage_gate_refusals_total instrument still stated "17 series, one for each gate", so the telemetry test that derives the series count from len(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 with uv run devops docs generate, so the counter row matches the instrument description. I did not touch tasks.md or 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 with AssertionError: assert None for \b18 series\b before 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:

    diff --git a/docs/TELEMETRY.md b/docs/TELEMETRY.md
    index 783ad4e81..270409fad 100644
    --- a/docs/TELEMETRY.md
    +++ b/docs/TELEMETRY.md
    @@ -175,7 +175,7 @@ writes by name.
     | `devops_cli_roadmap_stage_gate_extension_ends_total` | Counter | `1` | Ends of the extra return of a stage reply (#4851), one count for each extended decision, by result: passed or refused when the checks judged the reply of the extra return, or ended when the run ended before that (a stop of the Service, a provider error, a broken schema or a reply of placeholders). The metric adds at most 3 series. |
     | `devops_cli_roadmap_stage_gate_extension_total` | Counter | `1` | Decisions on a stage reply that the checks refused at the last return of roadmap.stage.gate_returns (#4851), by result: extended (the reply got one more return), used (the item used its extra return), first (no return compares two replies), stuck (a finding of the reply before stays) or never (a finding has a code that no saved return fixed). A rule decides with no model call. The metric adds at most 5 series. |
     | `devops_cli_roadmap_stage_gate_problems` | Histogram | `1` | Findings of the stage checks in one reply of a plan, one observation for each reply that the checks judged, by repo and reply: 0 for the first reply of a plan run and 1 more for each return, so at most roadmap.stage.gate_returns plus roadmap.stage.gate_return_extensions plus 1 values (#4851, #5440). A reply that passes the checks observes 0. One repository adds at most 17 series, at the ceilings of the two settings. |
    -| `devops_cli_roadmap_stage_gate_refusals_total` | Counter | `1` | Replies of the stage model that a gate found a problem in, one count for each gate that found at least one problem in a reply, by repo and gate. A reply that two gates refuse adds 1 to each. The gates run again on the reply that answers a problem, so the count is of refused replies and not of refused items. One repository adds 17 series, one for each gate. |
    +| `devops_cli_roadmap_stage_gate_refusals_total` | Counter | `1` | Replies of the stage model that a gate found a problem in, one count for each gate that found at least one problem in a reply, by repo and gate. A reply that two gates refuse adds 1 to each. The gates run again on the reply that answers a problem, so the count is of refused replies and not of refused items. One repository adds 18 series, one for each gate. |
     | `devops_cli_embedding_cache_lookups_total` | Counter | `1` | Embedding cache lookups, one for each text that an embedding request gets, by result: hit or miss. A hit names its tier: memory for the cache of the process, valkey, or disk for the cache file that keeps the vectors of intake between runs. |
     | `devops_cli_embedding_cache_size` | Gauge | `1` | Embeddings that the memory cache of the process held after its last embedding request. |
     | `devops_cli_rag_embedding_batch_size` | Gauge | `1` | Texts in each embedding request after the last change of the adaptive batch size. |
    diff --git a/src/devops_cli/telemetry/instruments.py b/src/devops_cli/telemetry/instruments.py
    index 23f3e5e83..bee0d3406 100644
    --- a/src/devops_cli/telemetry/instruments.py
    +++ b/src/devops_cli/telemetry/instruments.py
    @@ -662,7 +662,7 @@ ROADMAP_STAGE_GATE_REFUSALS_TOTAL = Instrument(
         "Replies of the stage model that a gate found a problem in, one count for each gate that "
         "found at least one problem in a reply, by repo and gate. A reply that two gates refuse adds "
         "1 to each. The gates run again on the reply that answers a problem, so the count is of "
    -    "refused replies and not of refused items. One repository adds 17 series, one for each gate",
    +    "refused replies and not of refused items. One repository adds 18 series, one for each gate",
     )
     ROADMAP_STAGE_GATE_PROBLEMS = Instrument(
         "devops_cli_roadmap_stage_gate_problems",

    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 of roadmap.implement.digest_clears_per_class and roadmap.implement.digest_clears_per_item allow it.

  12. added
    status/blocked
    and removed
    status/in-progress
    owner/service
    on Nov 18, 2026
  13. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    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.

  14. added
    status/in-review
    and removed
    status/blocked
    on Nov 21, 2026
  15. removed
    status/in-review
    on Nov 21, 2026
  16. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-21 14:28 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/roadmapsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions