The Supervisor Pattern: How to Use Cheap Models Without Losing Control Cheap models can expand execution, but the architecture must preserve scarce judgment. The Supervisor Pattern separates bounded work from consequential review.
The Probabilistic State Machine: Why Linear Chains Fail In data engineering, we build linear pipelines. In AI engineering, linear pipelines are fatal. If you have three steps, each with 90% accuracy, your system is only 72% reliable. To fix this, we must abandon the Chain and embrace the Probabilistic State Machine.
Why AI Agents Should Be State Machines A monolithic agent prompt hides routing, extraction, tool selection, formatting, and recovery inside one probabilistic call. The antidote is the formal state machine: explicit states, typed transitions, validators, and recovery paths.