Skip to content

docs(openspec): plan #3254 list registry and ratchet entries a plan needs - #3303

Merged
dan-petty merged 1 commit into
mainfrom
feat/3254-list-the-registry-and-ratchet-entries
Nov 3, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/3254-list-the-registry-and-ratchet-entries

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Plans #3254

A stage plan can add a constant, a setting, a metric or a job write and miss the registry entry and the ratchet test that the suite requires, because the plan cannot see them without running the suite. This change derives the table from the tests. Each test module declares in a module-level REGISTRY_COUNTS constant what it counts: a constant prefix, an enum or a table name, with the path that must carry the entry. The stage job parses those declarations with ast, lists the matching tests and tables with path:line in the plan context, and refuses a plan that adds such an item and has no task naming the listed place. A second check fails when a test path named in a docstring or a spec names no file of the commit.

Change: openspec/changes/3254-list-the-registry-and-ratchet-entries/

@dan-petty
dan-petty force-pushed the feat/3254-list-the-registry-and-ratchet-entries branch from a7830a0 to 701aa4b Compare November 3, 2026 03:41
@dan-petty
dan-petty merged commit 7df9244 into main Nov 3, 2026
19 checks passed
@dan-petty
dan-petty deleted the feat/3254-list-the-registry-and-ratchet-entries branch November 3, 2026 03:49
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.

1 participant