Ralph a test backlog
Iterate over a prioritized list of untested modules with fresh context each pass, writing real behavioral tests for one module at a time and banking lessons in a guardrails file.
Implementation note
Generate the backlog from your coverage report, worst-covered first. The guardrails file quickly accumulates project-specific mocking rules that make later iterations noticeably better.
Source: Geoffrey Huntley (Ralph technique) ↗graded B · 80/100 — how grades work (Safety Score v2) →
Similar loops
All testing loops →Fix the flaky checkout test
Run checkout tests repeatedly until 20 consecutive passes, logging failure modes and hypotheses after each iteration.
Reach a coverage target
Add focused tests for the least-covered files and re-measure each turn until coverage hits 80 percent or the turn cap.
The product contract conformance loop
A requirements-conformance workflow that turns a product contract into a ledger, checks current evidence, and repairs only confirmed mismatches with regression coverage.