← All AI Engineer talks

AI Engineer World's Fair 2026

Building Deterministic Infrastructure for Non-Deterministic AI Agents

About this talk

Meta engineering lead Nishant Gupta argues that autonomous AI agents must be operated as distributed systems whose deterministic infrastructure compensates for stochastic model behavior. He examines long-running stateful workflows, retry amplification and runaway GPU costs, shared-memory consistency, agentic control planes, observability, human oversight, and elastic workload scheduling.

Chapters

  1. 0:03Why stochastic agents need deterministic infrastructure
  2. 0:58Conventional cloud assumptions versus production agent reliability
  3. 2:06Infrastructure failure modes and runaway retry loops
  4. 3:30Agentic control planes and shared-memory coordination
  5. 5:23Human oversight and elastic GPU workload scheduling
  6. 6:48Closing: AI agents are distributed systems

Talk transcript

  1. 0:03

    Hey everyone. My name is Nishant Gupta. I'm a software engineering tech lead at Meta, working on building the training and inference arc infrastructure. And today we're going to be talking about building deterministic infrastructure for non-deterministic AI agents.

  2. 0:19

    So most of the conversations around AI over the last few years has been focused on models, bigger models, more parameters, better reasoning. But as organizations move from chatbots to autonomous agents, a different problem emerges.

  3. 0:31

    The challenge is no longer im- intelligence. The challenge is, is reliability. At Meta and across the industry, we are seeing agents move beyond answering questions and beginning to plan, call tool calls, coordinate workflows, and make decisions that affect production systems.

  4. 0:46

    These systems are fundamentally probabilistic. Infrastructure is not allowed to be. Today, I want to discuss this topic in more detail.

  5. 0:58

    The modern cloud infrastructure evolved around a set of assumptions. A request-- Most of the requests are short-lived. Services are deterministic, more or less. Execution paths are known. Failures are bounded.

  6. 1:10

    However, autonomous AI agents violate nearly every one of those assumptions. They're stateful, they're long-running. They make decisions dynamically. They make, may execute different workflows for same inputs. This is what I call the great mismatch.

  7. 1:23

    We are trying to run autonomous systems on infrastructure that was designed for deterministic workflows.

  8. 1:30

    This is probably the most important mind shift. Most AI demos showcase capability.

  9. 1:36

    But can it solve a problem? Can it use a tool? Can it compete-- complete a workflow? Production systems be-- have a different objective. Can it do it reliably? Can it do it ten thousand times?

  10. 1:47

    Hundred thousand times? Million times? Can it recover from failures? Can it operate safely? Can it do it in an ac-- at an acceptable cost with an acceptable latency, with an acceptable outcome?

  11. 1:57

    The majority of the engineering effort moves below the model layer into orchestration, monitoring, safety, evaluation, and recovery systems.

  12. 2:06

    When people hear AI failures, they immediately think hallucinations. In reali-in reality, hallucinations are often the least interesting failure mode. What we see instead are infrastructure failures, recursive reasoning loops, overflowed logs, retry amplification, context corruption, memory poisoning, cost explosions.

  13. 2:25

    The model makes mistake, but however, the infrastructure turns that mistake into an outage. That's the real challenge.

  14. 2:33

    So the as-- this slide shows a pattern that distributed system engineers will probably recognize immediately. An agent calls a tool incorrectly. The tool returns an error. Instead of recovering, the agent generates a slightly different but still invalid request.

  15. 2:48

    The cycle repeats. Each retry consumes more compute. Reasoning depth increases. GPU consumption rises. Eventually, you get exponential resource growth. What started as a minor API error became a compute incident.

  16. 3:01

    This is why unco-- uncontrolled retries are one of the biggest risks in agentic systems.

  17. 3:08

    This is the architecture principle I recommend most strongly: Never let the model directly control production systems. The model should generate proposals, infrastructure validates them, policy engine approves them, execution gateway enforces them.

  18. 3:20

    The model just suggests. The platform decides. This separation allows us to build reliable systems even when the underlying model remains probabilistic.

  19. 3:30

    As we know, containers gave rise to Kubernetes. Microservices created service meshes. AI agents are creating something new, an agentic control plane. This layer becomes responsible for scheduling, memory coordination, policy enforcement, evaluation, monitoring, workload routing, which is very important.

  20. 3:49

    And think of it as an operating system for autonomous AI. The organizations that build this layer will have significantly more competitive advantages. So traditional logs tell us what happened.

  21. 3:59

    Agentic systems require understanding why it happened. We need traces to capture planning decisions, tool calls, memory lookups, state transitions. When debugging an autonomous workflow, understanding the chain of decisions and reasoning is often more important than the final output.

  22. 4:15

    Observability becomes multi-dimensional. Without it, production debugging becomes nearly impossible.

  23. 4:23

    So as you can see, memory is one of the most underestimated challenges in agentic architectures. Once multiple agents share state, familiar distributed system issues appear: stale reads, conflicting up- updates, context drifts, inconsistent views.

  24. 4:37

    The challenge becomes even harder when memory itself may be probabilistic and retrieval based. Many multi-agent failures are actually consistency failures masquerading as reasoning failures.

  25. 4:50

    Safety cannot be a single component. It must be layered. Prompt level controls, tool permissions, policy validations, human approvals, audit systems. Each of these layer catches a different class of failures, defense in depth is a well-understood security principle.

  26. 5:05

    It applies equally well to autonomous AI systems.

  27. 5:09

    Many people frame human involvement as temporarily-- temporary necessity. I don't think that's correct. The most successful systems are likely to remain human supervised. Humans became-- become exception handlers. They review ambiguous situations.

  28. 5:23

    They handle novel scenarios. They provide calibration signals. The goal is not to remove humans. The goal is allocating human attention where it provides the maximum value.

  29. 5:36

    So one of the biggest infrastructure shifts is that AI workloads increasingly resemble cluster scheduling problems. Demand is bursty. Reasoning depth is inpred-- unpredictable. Workflows may run for minutes instead of milliseconds.

  30. 5:48

    Resource requirements vary dramatically. As a result, GPU efficiency, workload placement, elastic capacity management, and scheduling becomes critical. Inference is no longer just a model problem, it becomes a resource orchestration problem.

  31. 6:03

    The good news is that many of these problems are not entirely new. Distributed systems have solved something similar for decades. Circuit breakers become tool isolation. Rate limits become agent limits.

  32. 6:14

    Retries become control recovery. Resource quotas become cost governance. Observability becomes agent tracing. Instead of inventing entirely new infrastructure, we can adapt proven reliability patterns to autonomous systems.

  33. 6:27

    The industry has gone through several phase, phases. Then initially, prompts were the differentiator. Then the models became the differentiator. Now both are rapid- rapidly commodit- commoditizing. The next frontier is infrastructure.

  34. 6:38

    The organization that won't-- that wins won't necessarily have the best prompts. They'll have the most reliable systems. The competitive advantage is moving up the stack.

  35. 6:48

    If there's one thing I want you to remember, it's this: AI agents should be treated as distributed systems. Models are stochastic. Infrastructures must be deterministic. Reliability is increasingly an infrastructure problem.

  36. 7:01

    Observability is mandatory. Control planes are emerging as the foundation layer, and ultimately, the future of the AI, AI won't be won by better prompts. It will be won by better systems.