Skip to content

docs(openspec): plan #3246 Add requirement text to the stage context - #5651

Merged
dan-petty merged 1 commit into
mainfrom
feat/3246-add-requirement-text-to-the-stage
Nov 14, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/3246-add-requirement-text-to-the-stage

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Plans #3246

The stage context gives the planner the names of a capability's requirements only, and the duplicate check compares names only (#3246). A plan then adds a requirement whose name is new while a base requirement states, or contradicts, the behavior: #3225, #3228 and #3234 each needed a modified block that the planner did not write. This change adds the text of the matching base requirements to the plan request, cut to 12 requirements and 6000 characters and ordered by relevance. The prompt tells the planner to change a requirement that states the behavior with modified. The review request carries the same text, so a finding that quotes a stated requirement returns the plan, and a new golden-set case replays the conflict of #3225.

Change: openspec/changes/3246-add-requirement-text-to-the-stage/

@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 verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix labels Nov 14, 2026
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The stage_ready row leaves pull request #5651 a draft. It holds the label plan/needs-fix, because the model review of its plan found an open finding. Fix the plan, or remove the label when the finding is no defect.

@dan-petty
dan-petty force-pushed the feat/3246-add-requirement-text-to-the-stage branch from 93ad562 to 9557b6c Compare November 14, 2026 13:22
@dan-petty

Copy link
Copy Markdown
Owner

An agent vetted this plan before a merge (2026-11-14). Verdict: ready.

The plan injects bounded requirement text (REQUIREMENT_TEXT_MAX_COUNT = 12, REQUIREMENT_TEXT_MAX_CHARS = 6000) into stage planning and review contexts when an issue cites relevant capabilities or symbols. This prevents plans from duplicating existing requirements instead of modifying them, verified against a new golden replay case derived from issue #3060 / PR #3225.

Checks: openspec validate --strict passed, plan-check passed, CI quality gate checks passed.

@dan-petty
dan-petty marked this pull request as ready for review November 14, 2026 14:09
@dan-petty
dan-petty self-requested a review as a code owner November 14, 2026 14:09
@dan-petty
dan-petty merged commit 7b53c56 into main Nov 14, 2026
22 checks passed
@dan-petty
dan-petty deleted the feat/3246-add-requirement-text-to-the-stage branch November 14, 2026 14:09
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 verdict/fix-plan Verdict Needs fix of a plan: an open finding keeps the plan in draft until a fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant