Skip to content

docs(openspec): plan #3344 Refuse a plan that reads an absent model field - #3350

Merged
dan-petty merged 3 commits into
mainfrom
feat/3344-the-stage-probe-checks-client-model
Nov 4, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/3344-the-stage-probe-checks-client-model

Conversation

@devops-cli-service

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

Copy link
Copy Markdown
Contributor

Plans #3344

A plan can read a field that the model has no field for. In #3264 the planner's first reply read PullStatus.labels before PullStatus defined labels, and it left src/devops_cli/github/client.py out of its changes. #3399 later added labels, 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 with git grep, git show and ast. check_proposal gains a keyword-only models map. 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's changes. 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 in docs/ROADMAP_WORKFLOW.md.

Change: openspec/changes/3344-the-stage-probe-checks-client-model/

@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 labels Nov 3, 2026
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 3, 2026 13:26
@dan-petty
dan-petty marked this pull request as draft November 4, 2026 00:53
@dan-petty
dan-petty marked this pull request as ready for review November 4, 2026 01:56
@dan-petty
dan-petty merged commit ecfc9b8 into main Nov 4, 2026
21 checks passed
@dan-petty
dan-petty deleted the feat/3344-the-stage-probe-checks-client-model branch November 4, 2026 02:01
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]>
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