Repository navigation
docs(openspec): plan #3344 Refuse a plan that reads an absent model field - #3350
Merged
Merged
Conversation
dan-petty
marked this pull request as draft
November 4, 2026 00:53
This was referenced Nov 4, 2026
dan-petty
marked this pull request as ready for review
November 4, 2026 01:56
dan-petty
added a commit
that referenced
this pull request
Nov 16, 2026
A stage plan can build on a false claim about an internal class and pass every check. The plan of #3350 said in its design that `StagedTree` holds the file text of the staged commit, and the class keeps the tracked paths only, so an implementation step would have failed on text that does not exist. `check_proposal` tests the paths, the spec delta, the criteria, the form and the content of a plan, and no rule compares a claim about a class with the staged source (#3407). Closes #3407 Change: `openspec/changes/archive/2026-11-16-3407-check-a-class-claim-against-the/` --------- Co-authored-by: devops-cli-service[bot] <349441588+devops-cli-service[bot]@users.noreply.github.com> Co-authored-by: Daniel Petty <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plans #3344
A plan can read a field that the model has no field for. In #3264 the planner's first reply read
PullStatus.labelsbeforePullStatusdefinedlabels, and it leftsrc/devops_cli/github/client.pyout of itschanges. #3399 later addedlabels, so the cited class passes today. No gate checks a model field.The plan adds
src/devops_cli/roadmap/stage_models.py, which collects the dotted references of a plan and reads the named classes at the staged commit withgit grep,git showandast.check_proposalgains a keyword-onlymodelsmap. A reference to a field that the named Pydantic model lacks becomes a problem that names the reference and the module, and asks for the module in a group'schanges. The reply goes back to the model once, and a second reply with the same gap stops the item. The replay reads no git, so the golden case records the model fields in its facts, and the plan adds the case and the rule of the paths gate indocs/ROADMAP_WORKFLOW.md.Change:
openspec/changes/3344-the-stage-probe-checks-client-model/