AI

Deterministic vs non-deterministic systems explained

Deterministic vs non-deterministic systems: why AI agents give different answers on each run, and how durable execution with Temporal resumes after a crash.

  • 7 min read
  • 5 questions
  • +35 XP
Transcript

Deterministic vs Non-Deterministic systems, explained by cats. Kitty has a system. A button gets pressed. The system runs. Same steps. Same result. Every single time. That’s a deterministic system. Now Kitty adds an AI agent. She gives it one task: “Read this.

Decide what to do. Then do it.” First time? It works. Second time? Different answer. Third time? It calls the wrong tool, times out. and Kitty falls asleep on the keyboard. That’s a non-deterministic system. Same goal. Different output. Because AI agents are messy.

In complex systems, there are many steps. And if something crashes, the whole thing starts again. Chaos. So Kitty uses Temporal. Temporal remembers what already happened. If the system crashes. Temporal does not start over. It resumes right where it left off.

AI agents can be chaotic. But the system does not have to be. So Kitty uses Temporal to keep the tuna moving.