Spec Framing

Requirements Decomposition & Testable Spec Creation

02 / 12

In Practice

  • Let the agent interview the ticket first: gaps, assumptions, and product questions before code planning
  • Decompose into PR-sized chunks: each independent, testable, reviewable in one sitting
  • Write acceptance criteria the agent can verify: expected behavior, boundaries, failure states, and done conditions
  • Include concrete examples: sample inputs, expected outputs, UI states, API responses, and errors
  • Brainstorm edge cases with the agent: limits, auth, concurrency, and failure paths before code, not in review
  • Add a "Not in scope" line so the agent stops guessing at boundaries
  • Before any code, have the agent mirror the spec back:
    restate intent, list inputs and outputs, and flag what it had to
    assume

Page 9 of 72: Spec Framing: In Practice

Contents