Skip to content

docs(openspec): plan #3343 Check finding defect types against DefectType - #3349

Merged
dan-petty merged 1 commit into
mainfrom
feat/3343-the-stage-probe-checks-defecttype-membership
Nov 4, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/3343-the-stage-probe-checks-defecttype-membership

Conversation

@devops-cli-service

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

Copy link
Copy Markdown
Contributor

Plans #3343

The stage job judges a plan's shape, paths and spec delta, and never the finding types the plan names. A planner can write kind: placeholder, which is not a member of DefectType. The mistake surfaces only when the verification pass refuses a Finding whose type is outside the enum. The change adds the rule to content_problems, which check_proposal and the replay call: a finding-type reference in a plan's free text is compared with DefectType, and a value outside it returns a problem that names the value, lists the members and asks for the enum member or a mapping to DefectType.OTHER. The message joins MESSAGES.roadmap in src/devops_cli/lang/en/messages.py. The rule reads free text only: summary, why, group titles and task texts, spec delta texts, criteria and the pull request body. It ignores paths and the structured group kind.

Change: openspec/changes/3343-the-stage-probe-checks-defecttype-membership/

@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:52
@dan-petty
dan-petty force-pushed the feat/3343-the-stage-probe-checks-defecttype-membership branch from 1925ba9 to 392adb6 Compare November 4, 2026 01:02
@dan-petty
dan-petty marked this pull request as ready for review November 4, 2026 01:17
@dan-petty
dan-petty merged commit 4e0e243 into main Nov 4, 2026
20 checks passed
@dan-petty
dan-petty deleted the feat/3343-the-stage-probe-checks-defecttype-membership branch November 4, 2026 01:19
dan-petty added a commit that referenced this pull request Nov 6, 2026
…lan (#3641)

`content_problems` now refuses a plan with a behavior group that changes
`src/devops_cli/roadmap/stage_change.py` and has no group test that
shows the rule accepts the plan. The stage job and the replay both call
it through `check_proposal`. The staging prompt states the same rule, so
the model writes the test at once.

A plan that adds a rule over plan text can write text that its own rule
refuses. The plan of #3349 named a finding with a `kind` outside
`DefectType`. The stage checks never ran the proposed rule on the plan.
#3386 makes the conflict certain: a plan that adds a gate must quote the
defect that the gate refuses.

The recorded plans of #3410 in the golden set carry the new test, so the
good plan stays accepted.

Closes #3404

Change:
`openspec/changes/archive/2026-11-05-3404-the-plan-check-requires-a-new/`

---------

Co-authored-by: devops-cli-service[bot] <349441588+devops-cli-service[bot]@users.noreply.github.com>
Co-authored-by: Daniel Petty <contact@danielpetty.com>
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