The Foreman Analogy
Think of Enact like a foreman supervising an AI carpenter. The carpenter is capable and fast, but needs oversight. When the carpenter says “I want to tear down this wall”:- Permit check — Before any tool is picked up, the foreman checks the plans. Load-bearing? Utilities inside? Approved? If not: work stops, written reason recorded.
- Blueprint — If approved, the carpenter follows exact step-by-step instructions — not just “tear down the wall” but each specific action in order. No improvising.
- Work log — A signed record of every nail pulled, every stud removed, exact before-and-after state. Cryptographically sealed so it can’t be altered later.
- Change order — If the carpenter tore down the WRONG wall, the foreman issues a change order. Enact uses the work log to reverse every step and put it back.
The Four Pieces
| Piece | What it is | Analogy |
|---|---|---|
| Policy | A Python function that returns pass/fail | The permit check |
| Workflow | A Python function that does the actual work | The blueprint the carpenter follows |
| Receipt | A signed JSON record of what happened | The signed work log |
| Rollback | One call that reverses an entire run | The change order + teardown |
How They Fit Together
Why This Matters
These weren’t bugs — the agents did exactly what they were told. The problem was no permit check, no work log, no way to undo it:| Incident | What Happened | Source |
|---|---|---|
| Replit | Agent deleted a production database containing data for 2,400+ executives | Fortune, Jul 2025 |
| Amazon Kiro | Agent deleted an EC2 environment → 13-hour AWS outage | Awesome Agents, Feb 2026 |
| Claude Code | Agent ran rm -rf ~/ — wiped developer’s entire home directory | ByteIota, Dec 2025 |