Skip to content

fix(roadmap): the plan check fails a citation of a line that moved - #3668

Merged
dan-petty merged 5 commits into
mainfrom
fix/3422-the-plan-check-fails-a-citation
Nov 6, 2026
Merged

dan-petty merged 5 commits into
mainfrom
fix/3422-the-plan-check-fails-a-citation

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

The stage job now checks each citation of a file in feasibility, why and what_changes. check_proposal refuses a path:line:text citation when the staged line does not hold the text, or when the line or the file is absent. It refuses a path:def name or path:class name citation when the staged file does not define the symbol. The stage job reads the staged commit with git show <sha>:<path>, not the working tree. The golden-set replay and the plan-check command pass no reader, so they judge no citation. The stage prompt now states the citation forms and prefers a symbol to a line number.

A plan of #3400 cited a line that moved between the refine record and the staged commit. A reader found another function, and the proof of the premise was false. A symbol citation stays true when the code moves.

Change: openspec/changes/archive/2026-11-06-3422-the-plan-check-fails-a-citation/

Closes #3422

devops-cli-service Bot and others added 3 commits November 5, 2026 17:23
Merge origin/main, move the citation messages to the message catalog, add the stage prompt rule for a symbol citation, test the staged-commit reader, and archive the change (#3422).
@dan-petty

Copy link
Copy Markdown
Owner

Replay of the stage golden set (uv run devops roadmap eval stage --replay, no model call), score before and after this change:

  • Before (origin/main): 47 cases, 4 good. Gates judge 69 of 306 known defects (23%). All caught, 0 missed. Good plans accepted: 4 of 4.
  • After (this branch): 47 cases, 4 good. Gates judge 69 of 306 known defects (23%). All caught, 0 missed. Good plans accepted: 4 of 4.

The counts do not change. This change adds no case to the set. No model run (--model) was made.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 04:45
@dan-petty
dan-petty self-requested a review as a code owner November 6, 2026 04:45
@dan-petty
dan-petty merged commit cfee381 into main Nov 6, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/3422-the-plan-check-fails-a-citation branch November 6, 2026 06:01
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.66.0](v0.65.0...v0.66.0)
(2026-11-06)


### Features

* **roadmap:** ask for a smaller edit after a parser failure
([#3737](#3737))
([2a5cd39](2a5cd39)),
closes [#3053](#3053)
* **roadmap:** list the local devops commands in the shell catalog
([#3739](#3739))
([0784e8b](0784e8b))
* **roadmap:** the implement job re-checks a plan premise against the
base ([#3657](#3657))
([29309f0](29309f0))
* **roadmap:** the plan check requires a new rule to accept its own plan
([#3641](#3641))
([5df365a](5df365a))


### Bug Fixes

* **roadmap:** a gate test holds the self-acceptance test
([#3738](#3738))
([303bf4f](303bf4f))
* **roadmap:** the plan check fails a citation of a line that moved
([#3668](#3668))
([cfee381](cfee381))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): the plan check fails a citation of a line that moved

1 participant