Run the gauntlet, implement verifiable user stories, or set up agent quality gates. A staged pipeline specifies Gherkin, implements to green tests, cleans to a per-function CRAP threshold, and hardens through mutation testing.