01Scope
Engineer-ledTurn a request into a clear problem, with edge cases named upfront.
02Design
AI-assistedDeveloper picks the approach, AI drafts the scaffolding to review.
03Build
AI-assistedAI writes the first pass. Engineer rewrites what doesn’t hold up.
04Verify
AI-assistedAI generates test cases; engineer signs off on real coverage.
05Release
Engineer-ledEngineer ships it, with a rollback plan ready before launch.
scope/FEAT-214.md
Engineer writing the briefEngineer naming edge casesProblem scoped# Discount codes at checkout
Shoppers apply one promo code.
## Edge cases
Code has expired
Stacks with a sale price?
Rounds to the cent
Same code used twice
Engineer picking the approachAI drafting the scaffoldingEngineer reviewing the draftApproach approved// rules stay server-side
type PromoRule = {Tab accept
code: string
off: number // 0 to 1
expiresAt: Date
stackable: boolean
}
// reviewed: approach approved
AI writing the first passEngineer reviewing the passEngineer rewriting line 3Rewrite mergedfunction apply(cart, code) {Tab accept
const rule = find(code)
return cart.total * rule.off
if (!rule?.live) return cart.total
const off = cart.total * rule.off
return cents(cart.total - off)
}
AI generating test casesEngineer adding a missed caseRunning the suiteEngineer signing offCoverage signed offapplies a valid codeTab accept
ignores an expired code
rounds to the cent
refuses a reused code
sale + code, checked by hand
5 passed · signed off
Engineer shipping itRollback staged firstLive in production$ ship checkout --prod
✓ build passed
✓ all checks green
↺ rollback ready: v2.13
live: v2.14
Engineer writing the briefAIEngineer