Add requirement granularity guidance to spec template, AGENTS.md section, and README - #5
Conversation
sansari
left a comment
There was a problem hiding this comment.
@copilot i expected only the change to AGENTS.md, but i see many more files. is this because the change to the spec granularity guidance modified the core features? i'm confused why the verdicts are being added, i expected them to already be there
The extra files fall into two categories: Beyond AGENTS.md (by design): The granularity guidance was added in all four places that the 2119 workflow touches when setting up a repo — Verdicts — why they're new instead of pre-existing:
If you'd like to scope the PR down to just the AGENTS.md change (dropping the spec template restructuring, README section, and REQ-010 spec), I can revert those parts. |
@copilot yes let's keep the change simple, the only intent here is that other repos using this would respect that guidance as they generate specs, we don't need to be too dictative |
…c, granularity tests, and hash-rotated verdicts
Done. Reverted in commit |
Agents drafting first-pass feature specs tend to over-decompose into 20+
MUSTrequirements, making the coverage/review cycle disproportionately heavy before a team has decided which behaviors are core product promises. This adds guidance nudging toward 3–8 workflow-level requirements per feature.Changes
specs/REQ-010-granularity-guidance.md— new spec formalizing the granularity guidance requirements (REQ-010.1–3)src/init.ts—AGENTS_MD_SECTION— new "Requirement granularity" paragraph with:"MUST cover"/"MUST test"anti-patternssrc/init.ts—SPEC_TEMPLATE— restructured from a generic single section to four explicit sections:README.md— new## Requirement granularitysection with guidance, good/bad examples, sizing smells checklist, and starter spec structuretests/granularity.test.ts— four tests covering REQ-010; each assertion verified by fresh-context reviewers to be genuinely falsifiable (e.g., REQ-010.2.1 extracts and checks that the Core workflows section contains aMUST, not just that the heading exists)