Skip to content

docs(openspec): plan #3407 Refuse a class claim the staged source lacks - #5751

Merged
dan-petty merged 1 commit into
mainfrom
fix/3407-check-a-class-claim-against-the
Nov 15, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/3407-check-a-class-claim-against-the

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

The stage check now refuses a plan that builds on a claim about an internal class which the staged source contradicts. A design decision, a rejected alternative or a feasibility line that names a class under src/ in a code span must give another code span whose text occurs in that class at the staged commit. A new reader greps ^class <name>, so it finds a class that declares no base, and takes its source with git show and ast. The problem comes from the message catalog and names the class and the plan section. The golden set gains a case whose decision claims that StagedTree holds file text, with the two null commits and a note that the case reads no commit, recorded as a false_premise defect at the paths gate. The class sources are an optional mapping.

Plans #3407

Change: openspec/changes/3407-check-a-class-claim-against-the/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix labels Nov 14, 2026
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The stage_ready row leaves pull request #5751 a draft. It holds the label plan/needs-fix, because the model review of its plan found an open finding. Fix the plan, or remove the label when the finding is no defect.

@devops-cli-service devops-cli-service Bot removed the verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix label Nov 14, 2026
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 14, 2026 22:35
@dan-petty
dan-petty merged commit bef3f29 into main Nov 15, 2026
22 checks passed
@dan-petty
dan-petty deleted the fix/3407-check-a-class-claim-against-the branch November 15, 2026 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant