Skip to content

How do you keep a record of every decision your app and its agents make, so you can trace what happened?Also calledState Machine Orchestration & Audit Event Logging

Module
02/05Module
To read
~8 minTo read

It starts with a failure

An AI agent that spots fraud, acting on its own, locks hundreds of genuine merchant accounts overnight. The company’s leaders ask why. What do you think the developers find when they go looking?

In the module you make your guess first, then read what happened and why.

  1. 01

    Write down every stage and every allowed move

  2. 02

    Link each entry to the one before it

  3. 03

    Keep deciding apart from doing

  4. 04

    Replaying the record must give the same result

SpecA record-keeping plan

A spec for your own app, as a text file you download. The module also gives you the prompt to paste into the AI you build with (Lovable, Bolt, Replit, Cursor, Claude Code or Codex), a checklist to check what it built, and recommended skills.

  • Keeping every change as an event (event sourcing)
  • Separate workers for actions
  • Two moves at the same moment