WhoBuilt

Deterministic Infra for Non-Deterministic AI Agents

Jun 29, 2026· 7 min· 4.4K views·Watch on YouTube

Speaker

Nishant Gupta, a software engineering tech lead at Meta, discusses reliable infrastructure for AI agents in a talk for AI Engineer.

Agents expose a reliability gap

Gupta says the challenge shifts from model intelligence to reliability as agents plan, call tools, and affect production systems. These long-running, stateful systems can take different paths for the same input, which conflicts with infrastructure built for predictable, short-lived requests.

Failures can become infrastructure incidents

Production agents must work reliably at scale, recover from failures, and meet cost and latency limits. Gupta points to loops, deadlocks, retry amplification, memory problems, and cost spikes; an invalid tool request that triggers repeated retries can grow into a compute incident.

Put a control plane between models and production

Gupta recommends that models propose actions while infrastructure validates them, policy engines approve them, and execution gateways enforce them. He describes an agentic control plane for scheduling, memory coordination, policy, evaluation, monitoring, and routing.

Build for visibility, safety, and resource control

Agent traces should capture planning decisions, tool calls, memory lookups, and state changes so teams can understand how an outcome occurred. Shared agent memory raises consistency issues, while layered safeguards and human review help manage different failure types. Variable reasoning depth and workflows lasting minutes also make scheduling and GPU capacity management important.

Adapt distributed systems reliability patterns

Gupta maps familiar techniques to agents: circuit breakers to tool isolation, rate limits to agent limits, retries to controlled recovery, and quotas to cost governance. He argues that as prompts and models commoditize, reliable infrastructure becomes a key source of advantage.

Takeaways

  • Treat agents as distributed systems, with explicit limits on retries, runtime, and resource use.
  • Keep models away from direct production control; validate and authorize proposed actions before execution.
  • Trace plans, tool calls, memory access, and state transitions to make agent behavior diagnosable.
  • Treat shared memory consistency as an infrastructure concern, not only a reasoning issue.
  • Use layered safeguards and route ambiguous cases to human reviewers.

Mentioned in this talk

Search inside this talk

What was claimed 5

  • works at
    software engineering tech lead
    “I'm a software engineering tech lead at Meta”
    0:03inProduction Evals For Agentic AI SystemsYouTube
    Verified6 sources· Talk, Web· archived
  • feature
    AI agents: Stateful and long-running; make dynamic decisions and may execute different workflows for the same inputs
    “They're stateful and long-running. They make decisions dynamically”
    YouTube
    Unverified1 source· Talk
  • feature
    Agentic control plane: Handles scheduling, memory coordination, policy enforcement, evaluation, monitoring, and workload routing
    “responsible for scheduling, memory coordination, policy enforcement, evaluation, monitoring, and workload routing”
    YouTube
    Unverified1 source· Talk
  • feature
    Defense in depth: Layers prompt-level controls, tool permissions, policy validations, human approvals, and audit systems
    “Safety cannot be a single component. It must be layered”
    YouTube
    Unverified1 source· Talk
  • feature
    Distributed systems reliability patterns: Maps circuit breakers to tool isolation, rate limits to agent limits, retries to control recovery, resource quotas to cost governance, and observability to agent tracing
    “Circuit breakers become tool isolation. Rate limits become agent limits.”
    YouTube
    Unverified1 source· Talk

Related talks