
Summaries like this, in your inbox every morning.
Sign up free →The orchestrator originally mixed state transitions, conditional logic, and side effects in imperative code across multiple functions. Problems included silently dropped issues, stuck states, workers losing state during retries, and infinite ping-pong cycles between workflows due to mismatched conditions—burning precious Claude tokens.
The new architecture uses a pure function called a "reducer" (the bus) that takes current state and an event, then outputs the next state and a list of side effects as data. A separate interpreter performs those side effects. The bus makes decisions without checking the clock or calling external systems; the interpreter only executes what the bus prescribes.
Debugging became traceable: bugs are now either bus bugs (wrong decision) or interpreter bugs (wrong execution). The reducer is deterministic—given the same state and event, it always produces the same output—making issues reproducible by replaying an append-only event log against initial state.
No comments yet. Be the first to share your thoughts!
Log in to join the discussion




Get curated AI news from 200+ sources delivered daily to your inbox. Free to use.
Get Started FreeFree · takes 30 seconds · unsubscribe anytime
1 minute a day. The AI essentials.
200+ sources · Email / LINE / Slack