The Gate Loop

Interactive Refactoring Pipeline & Circuit Breaker

STAGE 1 MAKE IT WORK 1. Failing test first 2. Smallest edit 3. Model the domain GATE 01 // CRAPPER CRAP < 10 Complexity < Safety 0 STAGE 2 MAKE IT RIGHT 1. Refactor safely 2. Test behavior, not implementation GATE 02 // DRYER DUP < 0.8 AST Duplication Ratio 0 STAGE 3 PRACTICE 1. Keep a log 2. Small ordered commits 3. Guard the context window GATE 03 // MUTATOR MUTANTS = 0 Zero Test Escapes 0 DONE pass pass fail 1x fail 1x fail 1x [ STOP NODE ] ATTACK THE PREMISE Halt loop on repeated gate failure & reset assumptions
System Ready Overview
Click any stage or gate node to examine metric thresholds, tools, and structural laws. Press Play to send a code-change token gliding through the pipeline.