Repository navigation
docs(openspec): plan #3343 Check finding defect types against DefectType - #3349
Merged
dan-petty merged 1 commit intoNov 4, 2026
Merged
Conversation
dan-petty
marked this pull request as draft
November 4, 2026 00:52
dan-petty
force-pushed
the
feat/3343-the-stage-probe-checks-defecttype-membership
branch
from
November 4, 2026 01:02
1925ba9 to
392adb6
Compare
This was referenced Nov 4, 2026
dan-petty
marked this pull request as ready for review
November 4, 2026 01:17
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>
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 #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 ofDefectType. The mistake surfaces only when the verification pass refuses aFindingwhosetypeis outside the enum. The change adds the rule tocontent_problems, whichcheck_proposaland the replay call: a finding-type reference in a plan's free text is compared withDefectType, and a value outside it returns a problem that names the value, lists the members and asks for the enum member or a mapping toDefectType.OTHER. The message joinsMESSAGES.roadmapinsrc/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 groupkind.Change:
openspec/changes/3343-the-stage-probe-checks-defecttype-membership/