Criteria Test Loop
Quick start
- Define success criteria or tests.
- Implement the naive correct version.
- Iterate until tests pass.
- Optimize only after correctness.
Procedure
- Convert the request into explicit success checks.
- Write or select tests that prove success.
- Implement the simplest correct solution.
- Run or reason through tests; fix failures.
- Optimize while preserving the tests.
Output format
- Success criteria: bullets.
- Tests: new or existing.
- Result: pass/fail and notes.
- Optimization (optional): what changed and why.
Guardrails
- Do not optimize before correctness.
- Keep the test loop tight and explicit.
- If tests are missing, add the smallest set that proves success.