Repository navigation
Description
Split from #3447.
Problem or Motivation The stage verification pass can report that a claim in the issue body contradicts a named pull request. The stage job must then return the item with the evidence and write no change. The stage job has no such return path today. ## Why this part is deferred #3478 removed the premise_failed key from the stage reply. src/devops_cli/roadmap/stage/stage_change.py:678 says: The reply has no key to report a false premise: an issue that cannot be built as written is said in feasibility (#3478), and src/devops_cli/ai/tasks/roadmap_stage_change.md states the same. A change to this path reverses #3478, which is outside #3447. The path needs a decision: how the planner reports a false premise, and how the job returns the item from that report. #3447 reads the named pull request files and reports the finding. It defers this return rule. ## Acceptance criteria - The stage job MUST return the item with the evidence and write no change when the issue body states a claim that a named pull request file contradicts. - The planner MUST report the false premise in the stage reply, and the job MUST return the item from that report. - The return comment SHALL hold the quoted evidence and the pull request path, and the item Status SHALL become New. - A test MUST check the return path on a recorded case with the #3410 claim.
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
Add a structured false_premise report and a return path to the stage job. The stage verification pass can find a false premise. The stage job has no return path for that finding. The stage job then returns the item to New with evidence and writes no plan.
Acceptance criteria
Requirement: False-premise report in stage reply
The stage reply SHALL hold a false_premise object with claim, evidence, pull_request and path when the planner finds a false premise.
Scenario: Structured false-premise report
- WHEN A test parses a stage reply that holds
false_premisewithclaim,evidence,pull_requestandpath. - THEN The parsed
StageProposalholds the four values in itsfalse_premisefield.
Requirement: False-premise report validation
The stage content check MUST reject a false_premise object that omits claim, evidence, pull_request or path.
Scenario: Report with a missing field
- WHEN The stage content check reads a reply whose
false_premiseobject omitspath. - THEN The check returns a problem that names
path.
Requirement: Stage prompt names the report
The stage prompt SHALL name the false_premise report and its four fields, and SHALL NOT say the reply has no key for a false premise.
Scenario: Prompt names the report
- WHEN The prompt-rule test reads
src/devops_cli/ai/tasks/roadmap_stage_change.md. - THEN The test finds
false_premise,claim,evidence,pull_requestandpath, and finds no sentence that says the reply has no key to report a false premise.
Requirement: Return before any change
The stage job MUST return the item and write no change when the stage reply holds a false_premise report.
Scenario: Return with no plan write
- WHEN The stage apply test runs the stage job with a reply that holds
false_premise. - THEN The job returns the item and makes no branch, commit, pull request or plan write.
Requirement: Return comment holds evidence
The return comment SHALL hold the quoted evidence, the pull request number and the file path.
Scenario: Comment holds the evidence
- WHEN The stage job writes the return comment for a
false_premisereport. - THEN The comment text contains the quoted evidence, the pull request number and the file path.
Requirement: Status becomes New
The stage job MUST set the item Status to New when it returns the item.
Scenario: Status becomes New
- WHEN The stage job returns an item for a
false_premisereport. - THEN The item Status is New.
Requirement: Recorded #3410 case
The return path MUST have an offline test on the recorded #3410 claim and its named pull request file.
Scenario: Recorded #3410 false premise
- WHEN The test in
tests/roadmap/stage/test_roadmap_stage_apply.pyruns the stage job with the recorded fix(roadmap): the stage gate proves a negative search verify #3410 claim and its named pull request file. - THEN The test asserts the return comment, the New Status and no plan write.
Existing Tool Considered
No alternatives check has run. No open, maintained tool or library covers the internal stage-job return path. The change builds its own code: about 60k tokens to build, keep and fix, and 3 hours.
Key questions
- Does the stage prompt currently forbid a false-premise report?: Yes. The stage prompt says that the reply has no key to report a false premise. [sources: src/devops_cli/ai/tasks/roadmap_stage_change.md]
- What did fix(roadmap): a placeholder reply of a model moves no item #3478 remove from the stage reply?: It removed the
premise_failedkey. The stage prompt now says that the reply has no key to report a false premise. [sources: src/devops_cli/ai/tasks/roadmap_stage_change.md, src/devops_cli/roadmap/stage/stage_change.py] - Which report shape should the planner use for a false premise?: Use a
false_premiseobject withclaim,evidence,pull_requestandpath. Do not restore the removedpremise_failedboolean. (best practice) [sources: src/devops_cli/ai/tasks/roadmap_stage_change.md, src/devops_cli/roadmap/stage/stage_change.py, src/devops_cli/roadmap/stage/stage_jev_screen.py]- Chosen: Use a
false_premiseobject. It is machine-readable, carries the evidence and the path, and uses thefalse_premisename that the stage code already has. - Rejected: Restore the
premise_failedboolean. fix(roadmap): a placeholder reply of a model moves no item #3478 removed it, and a boolean carries no evidence or path. - Rejected: Use only the
feasibilitytext. The job cannot return on free text, and no test can assert the fields.
- Chosen: Use a
- When should the stage job return the item?: Check the report before any plan write. Return the item to New with the evidence. Write no branch, commit, pull request or plan. (best practice) [sources: CONTEXT.md, src/devops_cli/roadmap/stage/stage_change.py, src/devops_cli/roadmap/stage/stage.py]
- Chosen: Return before any write. It keeps the job side-effect free and gives one testable path.
- Rejected: Write the plan then roll back. A rollback can leave a branch or a comment and writes a change first.
- Rejected: Let the planner edit the issue. A model reply must not set Status or write a return comment.
- Who writes the return comment and sets Status New?: The stage job writes the comment and sets Status New. The planner supplies only the report fields. (best practice) [sources: CONTEXT.md, src/devops_cli/roadmap/stage/stage.py, src/devops_cli/roadmap/stage/stage_change.py]
- Chosen: The stage job writes both. The job owns the Status and comment side effects.
- Rejected: The planner writes both. A model reply must not set Status or write a return comment.
- Rejected: A person writes both. The job must return the item with no person present.
- Which test module should hold the recorded fix(roadmap): the stage gate proves a negative search verify #3410 case?: Use
tests/roadmap/stage/test_roadmap_stage_apply.pyfor the return path. (best practice) [sources: tests/roadmap/stage/test_roadmap_stage_apply.py]- Chosen: Use the existing apply test module. It already tests the stage apply behavior.
- Rejected: Add a new stage apply test module. The existing module already holds the apply tests.
Fit
Fits in one pull request.
Suspected block
None.
Activity
devops-cli-service commentedon Nov 14, 2026
The stage job returns the item with evidence and sets status to New when the premise is false, instead of creating a compensating proposalas the change that both ask for.Both ask for the stage job to return the item with evidence and set status to New when the premise is false, rather than creating a compensating proposal.A person closes one of the two if that is so.[-]feat(roadmap): Return a stage item when the issue body states a false premise[/-][+]feat(roadmap): Return a stage item when the body states a false premise[/+]devops-cli-service commentedon Nov 14, 2026
The job shortened the title of this item. The summary had 62 characters, and the limit is 60. The type and the scope stay.
feat(roadmap): Return a stage item when the issue body states a false premisefeat(roadmap): Return a stage item when the body states a false premisedevops-cli-service commentedon Nov 18, 2026
Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.
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.
devops-cli-service commentedon Nov 21, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
dan-petty commentedon Nov 30, 2026
Triage under #6519 (owner instruction of 2026-11-30), before the hold #6521 closes. This item adds or extends a gate, refusal, screen, cap, limit, retry, result line, shell allowlist, tool catalog or plan-shape rule of the stage, implement or fix-checks job. #6519 found that 263 of about 900 issues in four weeks added such rules and none replaced the engine. Stage now runs on stock Coder (grade 60 on 30 graded attempts), where the agent reads the repository, runs the checks in its loop and has a real shell; implement follows (#6527). The code paths that this item names have also moved. If the failure class still shows in graded attempts, file a new item from that evidence. Closed as not planned; a person may reopen it.