Skip to content

docs(openspec): plan #3372 Check every module of a moved prefix - #3378

Merged
dan-petty merged 3 commits into
mainfrom
fix/3372-the-stage-plan-of-a-module
Nov 4, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/3372-the-stage-plan-of-a-module

Conversation

@devops-cli-service

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

Copy link
Copy Markdown
Contributor

Plans #3372

The stage plan check judges the files of each group, but it never compares a move with the tree. A plan that moves stage_ready.py and leaves stage_verify.py passes, and its own layout test then fails. This change makes check_proposal read a job-prefix move from an old path and a new path under <folder>/<prefix>/, and require every top-level Python module of the prefix in the group changes or a later group. It reads no test_* module and no conftest.py. It refuses a ! git grep verify literal that equals one module's import path, the bare prefix included: devops_cli.roadmap.stage also matches the new stage/ package, so the check accepts devops_cli.roadmap.stage_ instead. The stage prompt asks for every module of the prefix and a prefix-wide check. The tree walk of stage_change.py covers the need, so no new tool is added.

Change: openspec/changes/3372-the-stage-plan-of-a-module/

@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 21:25
@dan-petty
dan-petty marked this pull request as draft November 4, 2026 02:26
A move reads only a top-level Python module, and a test module or conftest.py is no module of a job prefix. A negative search on the bare prefix matches the new subpackage, so the check refuses it and accepts the dotted prefix with the separator.
@dan-petty
dan-petty marked this pull request as ready for review November 4, 2026 02:49
@dan-petty
dan-petty merged commit 6c15a64 into main Nov 4, 2026
20 checks passed
@dan-petty
dan-petty deleted the fix/3372-the-stage-plan-of-a-module branch November 4, 2026 02:50
dan-petty added a commit that referenced this pull request Nov 4, 2026
The stage gate checks the form and the paths of a verify command, but
never whether a negative search can pass on the tree that the plan
produces. The move-prefix check of #3378 tests a whole-prefix negative
search, and #3410 makes the gate record the staged hits and refuse a
search that proves nothing or that a created module keeps.

Closes #3410

Change:
`openspec/changes/archive/2026-11-04-3410-the-stage-gate-proves-a-negative/`
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