Keywords / loop
loop
A self-correcting unit of work. Structure
Syntax
loop "<name>":
What it does
The core construct: a goal, a way to verify it (done when), the repeated steps, and what to do on failure. The smallest real loop is just a goal and a done-when.
Example
loop "fix the failing checkout tax test":
goal: the tax line is correct at checkout
done when "pnpm test checkout" passes
each cycle: plan, then act, then observe
when it fails: reflect, then plan againexamples/fix_test.loop