Skip to content

feat(roadmap): Return a stage item when the body states a false premise #5701

Not planned

Description

@devops-cli-service

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

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_premise with claim, evidence, pull_request and path.
  • THEN The parsed StageProposal holds the four values in its false_premise field.

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_premise object omits path.
  • 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_request and path, 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_premise report.
  • 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_premise report.
  • 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

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_failed key. 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_premise object with claim, evidence, pull_request and path. Do not restore the removed premise_failed boolean. (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_premise object. It is machine-readable, carries the evidence and the path, and uses the false_premise name that the stage code already has.
    • Rejected: Restore the premise_failed boolean. 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 feasibility text. The job cannot return on free text, and no test can assert the fields.
  • 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.py for 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.

Dependencies

#6521

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 14, 2026
  2. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    ContributorAuthor
    • Possible duplicate: fix(roadmap): return unbuildable premise items during stage #4131, which may ask for the same change. The model names The stage job returns the item with evidence and sets status to New when the premise is false, instead of creating a compensating proposal as 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.
  3. changed the title [-]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[/+] on Nov 14, 2026
  4. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    ContributorAuthor

    The job shortened the title of this item. The summary had 62 characters, and the limit is 60. The type and the scope stay.

    • Before: feat(roadmap): Return a stage item when the issue body states a false premise
    • After: feat(roadmap): Return a stage item when the body states a false premise
    • Source of the summary: the background model
  5. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    ContributorAuthor

    Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.

  6. dan-petty commented on Nov 20, 2026

    @dan-petty
    Owner

    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.

  7. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    ContributorAuthor

    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.

  8. dan-petty commented on Nov 30, 2026

    @dan-petty
    Owner

    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.

  9. removed
    status/new
    on Nov 30, 2026
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/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions