All books

Agent Systems

Loop Engineering

Bounded state machines, safe effects, recovery, and replay for long-running AI work.

8 chapters · 5-7 hours reading · 2-4 hours labs · 5-8 hours project

Chapters

  1. 1Loops turn observations into controlled progressChapter 1
  2. 2Specify states, transitions, safety, and livenessChapter 2
  3. 3Make history replayable and upgrades explainableChapter 3
  4. 4Make effects safe under duplicate and ambiguous deliveryChapter 4
  5. 5Budget retries and detect loops that cannot convergeChapter 5
  6. 6Coordinate durable work without hiding concurrencyChapter 6
  7. 7Test transitions, histories, faults, and propertiesChapter 7
  8. 8Operate loops with traceable authority and safe controlsChapter 8