Repository navigation
Description
Problem
The model verification pass (#3182) finds real defects and posts them in the stage comment, but the plan pull request is still staged non-draft and goes to review as if clean. Evidence from the plan fixes of 2026-11-02:
- docs(openspec): plan #3032 keep and show a trace of each run #3194 (plan for feat(roadmap): a trace of every run, kept and shown in the PR comment and in explain #3032): the model pass flagged the "x" placeholders in the stage comment, yet the pull request was staged non-draft.
- docs(openspec): plan #3076 plan the roadmap follow console #3205 (plan for feat(roadmap): a run console: follow a run and read its history #3076): the model review's two real findings (
spec_delta_wrong, and a dry-run test with no work) stay open in the committed plan. - docs(openspec): plan #2947 Raise the alternatives first-pass limit to 20 #3174 (plan for feat(roadmap): the first pass of the alternatives check runs 20 items a day #2947): a plan with a single group titled
placeholderended up non-draft; the step that took it out of draft was not verified. - Earlier: docs(openspec): plan #2740 Redact config unset dry-run value #3158, docs(openspec): plan #2754 x #3167, docs(openspec): plan #2917 Comment release and deploy time on issues #3175 and others staged with "x" or "placeholder" text (7 of 41 plans reviewed).
The stage ready row (stage_ready) marks a green plan pull request ready by design (a plan PR is non-draft). So today, "green" means only that the form gates and CI passed, and not that the model review found nothing.
Proposed change
- When the verification pass returns a finding that has a quote in the input and a kind from its list (
missing_path,false_premise,ignores_existing_code,spec_delta_wrong, a placeholder), the stage keeps the plan pull request a DRAFT, adds a label (for exampleplan/needs-fix) and puts the findings at the top of the comment. - The ready row refuses to mark a plan pull request ready while a finding is open. A person (or a later stage round that clears the finding) removes the label.
- A plan with an open finding does not count as a staged plan for the Service's round budget (it counts as a failed attempt in the failure taxonomy, class
plan_defect). - Do not lower a gate: this adds a stop, it removes none.
Acceptance criteria
- A test with a fake client that returns a placeholder finding shows that the plan pull request is opened as a draft with the label and the findings in the comment.
- A test shows that a plan with no finding is staged as today.
- A test shows that the ready row refuses a plan with an open finding, and states why.
- The golden-set replay includes docs(openspec): plan #3032 keep and show a trace of each run #3194 or docs(openspec): plan #2947 Raise the alternatives first-pass limit to 20 #3174 as a case.
Related: #3182, #3200, #3170, #3255.
Proposed design
Problem statement
The stage marks a plan pull request ready even when the model verification pass reports a real defect. This fix adds an open-finding stop. It keeps the plan in draft, applies plan/needs-fix, puts the findings first in the comment, and records the item as a failed attempt. It does not lower any gate.
Acceptance criteria
Requirement: Open finding keeps the plan draft
When the verification pass returns a finding with a quote and a listed kind, the stage SHALL keep the plan pull request in draft, apply the plan/needs-fix label, and put the findings at the top of the stage comment.
Scenario: Placeholder finding from a fake client
- WHEN The fake client returns a placeholder finding with a quote that is in the input.
- THEN The plan pull request is a draft, has the plan/needs-fix label, and its comment starts with the finding text.
Requirement: Clean plan stages as today
When the verification pass returns no open finding, the stage SHALL follow the current staging path without the plan/needs-fix label.
Scenario: Verification returns no finding
- WHEN The fake client returns no finding with a quote and a listed kind.
- THEN The stage opens the plan pull request as today, applies no plan/needs-fix label, and the ready row can mark it ready after checks pass.
Requirement: Ready row refuses an open finding
The ready row SHALL refuse to mark a plan pull request ready while the plan/needs-fix label is present and SHALL state why in its comment.
Scenario: Plan carries the open-finding label
- WHEN The plan pull request has the plan/needs-fix label and its checks have passed.
- THEN The ready row leaves the pull request in draft and posts a comment that names the open finding label as the reason.
Requirement: Open finding counts as plan_defect
A plan with an open finding SHALL not count as a staged plan for the Service round budget and SHALL count as a failed attempt with failure class plan_defect.
Scenario: Round budget sees a plan with an open finding
- WHEN The Service counts the round after the stage records an open finding.
- THEN The round budget does not count the plan as staged, and the failure record has class plan_defect.
Requirement: No existing gate is lowered
The change MUST add the open-finding stop without removing, weakening or bypassing any existing gate.
Scenario: Existing form gate still fails
- WHEN A plan with an open finding also fails an existing form gate.
- THEN The existing form gate still stops the item, and the open-finding stop does not replace its failure.
Requirement: Golden-set replay includes a reported case
The golden-set replay SHALL include #3194 or #3174 as a recorded case for the open-finding stop.
Scenario: Replay runs the recorded case
- WHEN The golden-set replay runs the case from docs(openspec): plan #3032 keep and show a trace of each run #3194 or docs(openspec): plan #2947 Raise the alternatives first-pass limit to 20 #3174.
- THEN The replay reports the case and its placeholder finding, and the test suite checks the expected result.
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers this need: the change modifies this repository's own roadmap staging and ready-row workflow. The written cost is about 12,000 tokens to build, keep and fix the change, and about 1-2 days elapsed.
Key questions
- How does the stage detect an open finding?: The stage treats a verification finding as open when it has a quote in the input and a kind from missing_path, false_premise, ignores_existing_code, spec_delta_wrong, or a placeholder. (best practice) [sources: docs/roadmap/stage.md:41, src/devops_cli/roadmap/stage_verify.py, src/devops_cli/roadmap/stage.py]
- Chosen: Use the verification result. The pass already returns findings with quotes and kinds, so the stage needs no second model.
- Rejected: Parse the plan text. Text parsing is brittle and can miss the anchor that the finding carries.
- Rejected: Ask a person for each finding. This delays every plan and defeats the automatic stop.
- Which label marks an open finding?: Use the plan/needs-fix label. (best practice) [sources: CONTEXT.md, docs/roadmap/stage.md]
- Chosen: plan/needs-fix. The body proposes this name, and the plan/ prefix keeps it separate from status labels.
- Rejected: plan/defect. It is less direct and does not name the required action.
- Rejected: status/blocked. The status family holds item state, and a plan defect is not a roadmap block.
- How does the ready row detect an open finding?: The ready row checks for the plan/needs-fix label. It does not parse the stage comment. (best practice) [sources: CONTEXT.md, docs/roadmap/stage.md]
- Chosen: Check the label. A label is a stable, queryable marker, and a person can remove it.
- Rejected: Parse the comment. Comment text changes and has no machine-readable contract.
- Rejected: Check the draft state only. A draft alone cannot tell a new plan from a plan with an open finding.
- How is an open finding cleared?: A later stage round removes plan/needs-fix when verification returns no open finding. A person may also remove the label. (best practice) [sources: docs/roadmap/stage.md, CONTEXT.md]
- Chosen: Stage round or person. This keeps the automatic path moving and lets a person override a stale label.
- Rejected: Only a person. This adds a person wait to every corrected plan.
- Rejected: Never automatic. A corrected plan would stay blocked forever.
- How does an open finding count in the Service round budget and failure taxonomy?: The plan does not count as staged for the round budget. It counts as a failed attempt with class plan_defect. (best practice) [sources: src/devops_cli/roadmap/failure.py, tests/roadmap/test_roadmap_failure.py, CONTEXT.md]
- Chosen: Count as plan_defect. This records the real cause and stops the round from treating the plan as staged.
- Rejected: Count as staged. This hides the defect and spends the round budget on a bad plan.
- Rejected: Do not count at all. This loses the failure signal.
- Which case goes into the golden-set replay?: Add docs(openspec): plan #2947 Raise the alternatives first-pass limit to 20 #3174 as the recorded case because its single group titled placeholder gives a deterministic placeholder finding. Add docs(openspec): plan #3032 keep and show a trace of each run #3194 too when its fixture is available. (best practice) [sources: docs/ROADMAP_WORKFLOW.md, tests/roadmap/test_roadmap_stage_eval_run.py, src/devops_cli/roadmap/stage_eval_cases.py]
- Chosen: docs(openspec): plan #2947 Raise the alternatives first-pass limit to 20 #3174. The placeholder group is a clear, offline case.
- Rejected: docs(openspec): plan #3032 keep and show a trace of each run #3194. It is also valid, but its x placeholders are less specific than the named group.
- Rejected: Both cases. The acceptance criterion asks for one, and a second case adds fixture work without a new gate.
- Does the change keep the existing gates?: Yes. The change adds a stop after the existing form gates and CI; it does not remove or weaken a gate. (best practice) [sources: docs/adr/0004-ci-is-the-authoritative-gate.md, docs/roadmap/stage.md:41]
- Chosen: Add a stop. This meets the issue and keeps the current gate contract.
- Rejected: Replace a gate. This would lower the gate and break ADR 0004.
- Rejected: Relax CI. CI remains the authoritative merge gate.
- Where do the findings appear in the stage comment?: Open findings go at the top of the stage comment, before the tool-call and token report. (best practice) [sources: docs/roadmap/stage.md, CONTEXT.md]
- Chosen: Top of the comment. The reviewer sees the defect before the metrics.
- Rejected: Bottom of the comment. The defect is easy to miss.
- Rejected: Separate comment. It splits the record and adds comment noise.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 2, 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.Plans with known defects reach review as if clean, undermining the model review, but a human reviewer still sees them.It stops defective plans from entering review unflagged, which saves reviewer time and prevents bad merges.It needs changes to the stage logic, the ready row, a new label, comment formatting, and four acceptance tests.Both items work on the ready-row and draft state of a stage PR, but #2865 adds the mark-ready behaviour while the candidate adds a condition that blocks it when a finding is open.devops-cli-service commentedon Nov 2, 2026
Status set to Ready at 760f2cb (see proposed design in issue body).
devops-cli-service commentedon Nov 2, 2026
Staged: branch
fix/3264-the-stage-marks-a-plan-ready, draft pull request #3305. The pull request plans the item and closes no issue.The task groups, with the tokens of the inputs of each step, for a budget of 40000 tokens:
The plan run made 3 model request(s), and used 228130 input tokens and 14989 output tokens. The model made no tool call.
A model review of the plan found these points. They stop no draft, and a person judges them:
false_premiseat feasibility, bullet 4: The plan saysFindinghas a free-textkind. The class has atypefield of the enumDefectType, with nokindfield and noplaceholdervalue. The plan also claimsplaceholderis a recorded defect type, but the enum has none. Evidence: "type: DefectType"spec_delta_wrongat specs roadmap-stage, scenario "A placeholder finding from a fake client" and group 1 test: The scenario and the group 1 test need a finding of kindplaceholder. The schema refuses any type outside the nine, so no fake client can return it and no test can assert the scenario. The plan adds noplaceholdertype toDefectTypeor other way to detect one. Evidence: "A reply with another type fails the schema"docs(openspec): plan #3264 keep a plan with an open finding in draft
docs(openspec): plan #3264 keep a plan with an open finding in draft (#…
devops-cli-service commentedon Nov 4, 2026
Released in v0.53.4: https://github.com/dan-petty/devops-cli/releases/tag/v0.53.4
devops-cli-service commentedon Nov 4, 2026
Live since 2026-11-04 01:08 UTC
docs(openspec): plan #3344 Refuse a plan that reads an absent model f…
feat(roadmap): refuse a plan that reads an absent model field (#4164)