Debugging loops
Reproduce-first debugging: write the failing test, fix it, exit green.
1 loop graded A or B in this category.
B
/ralphDebugginghigh risk
Ralph the bug backlog
Work a triaged bug list one fix per fresh-context iteration: reproduce first, fix minimally, prove it with a regression test, and log root-cause patterns to guardrails.
/loop fresh context each iteration: read bugs.json and .ralph/guardrails.md, take the top open bug, write a failing test that reproduces it before touching any code, then apply the smallest fix that makes the test pass with the rest of the suite green, and mark the bug fixed; if you cannot reproduce it, mark it needs-info with your findings instead; append recurring root-cause patterns to .ralph/guardrails.md; stop when bugs.json is clear or after 25 turns
Grade C loops (1)
1 more graded C — it stops on its own, but runs fewer checks than A or B. Show the 1 C loop →