fix(commands): rename NFR references to success criteria in analyze and clarify#1935
Open
ismaelJimenez wants to merge 1 commit intogithub:mainfrom
Open
fix(commands): rename NFR references to success criteria in analyze and clarify#1935ismaelJimenez wants to merge 1 commit intogithub:mainfrom
ismaelJimenez wants to merge 1 commit intogithub:mainfrom
Conversation
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.
Description
Replaces "Non-Functional Requirements" terminology with "Success Criteria" in the
analyzeandclarifycommand templates to fix a mismatch with the spec template.The problem:
The
analyzecommand instructs the agent to load a "Non-Functional Requirements" section from specs — but that section is not part of the spec template. Thespecifycommand generates specs usingspec-template.md, which defines a "Success Criteria" section (with "Measurable Outcomes" underneath), not a "Non-Functional Requirements" section. This meansanalyzewas looking for a section name that doesn't match what the spec actually contains, forcing the agent to infer mappings or miss the Success Criteria content when assessing coverage gaps.The only way NFR-like content could appear in a spec was through the
clarifycommand, which uses its own label ("Non-Functional Quality Attributes") that doesn't match the spec template's actual section name either. This meant non-functional content could end up scattered — partially under "Success Criteria > Measurable Outcomes" and partially under a clarify-only "Non-Functional / Quality Attributes" heading — and only when a user's clarification response happened to surface a non-functional constraint. In the typical workflow (specify→analyze), these labels never align.What this PR does:
Testing
uv run specify --helpuv sync --extra test && uv run pytest(435 passed)AI Disclosure