Content

Why AI Agents Are Not Production Ready, and How to Fix It

Every agent demo works. The gap shows up in production: unverified actions, silent failures, and no record of what actually happened. Here's what's actually missing and how to close it.

Chaitrali Kakde

DevRel Engineer

AI AgentsNov 30, 2026

Key takeaways

  • -Demos succeed because the one path you tested is the only path that gets exercised; production has every path.
  • -The gap isn't model capability — it's the absence of verification, approval binding, and an execution record around the model.
  • -An agent that can call a tool needs three things a chat interface never required: policy, approval, and a trustworthy log.
  • -Bolting these on after the fact is slower and riskier than building the agent on an execution layer that already has them.
  • -Swytchcode is that execution layer: policy, approval, and logging live at the call boundary, not inside the agent's own code.

Every agent demo works. That's not a compliment, it's a warning sign: a demo exercises exactly one happy path, once, in front of someone who already knows what's supposed to happen. Production exercises every path, repeatedly, unattended, against systems that have opinions of their own.

TL;DR

  • The gap between a working demo and a production-ready agent isn't model quality — it's the missing infrastructure around the model.
  • An agent that can take real actions needs policy, approval, and a trustworthy log of what actually happened — none of which a chat interface ever required.
  • Bolting these on inside each agent's own code means re-solving the same problem per integration, and getting it slightly wrong each time.
  • The fix is pushing policy, approval, and logging down to the call boundary — an execution layer the agent calls through, not something it has to remember to implement.
  • Swytchcode is built to be exactly that layer.

It worked in the demo. Then it shipped.

A team builds an agent that handles refunds. In the demo, it reads a ticket, checks the order, issues the refund, and replies to the customer — clean, fast, impressive. Three weeks after launch: a refund went to the wrong order because two ticket IDs collided in a way nobody tested for, a batch of refunds silently failed because the payment provider changed a response shape and the agent logged success anyway, and nobody can say for certain which refunds actually went through without manually cross-checking Stripe by hand. None of this showed up in the demo, because the demo never had 10,000 tickets with edge cases in them.

The real gap isn't the model

It's tempting to read a production incident like the one above as a model-capability problem — a smarter model would have caught the edge case. Sometimes that's even true. But the structural problem underneath it isn't about reasoning quality: it's that a chat interface never had to handle policy enforcement, approval on consequential actions, or a durable record of what it actually did to another system, because a chat interface doesn't act on other systems. An agent that calls tools does, and most agent stacks inherited none of that infrastructure from the chat paradigm they grew out of.

Three things a tool-calling agent needs that a chatbot never did

Policy. A rule about what the agent is and isn't allowed to do, enforced outside the agent's own reasoning, so a confused or manipulated agent can't just decide the rule doesn't apply this time.

Approval. A human gate on the specific, consequential calls that deserve one — bound tightly enough to the exact call that a retry or a drifted argument can't ride through on an old approval.

A trustworthy log. A record of the real request and real response, written by something other than the agent itself, so "what actually happened" doesn't depend on the agent's own account of events.

Why building this per-agent doesn't scale

Each of policy, approval, and logging is solvable inside a single agent's codebase. The problem is you then have to solve it again for the next agent, and the one after that, and keep all of them consistent as requirements change — which is exactly the kind of repeated, error-prone work that tends to drift out of sync across a team's agents within a quarter. Push the same three concerns down to the layer where every agent's tool calls already pass through, and you solve it once, for everything built on top.

Three fixes, and how Swytchcode enforces each one

  1. Define policy once, outside the agent's own code. Swytchcode evaluates policy at the execution boundary, so a change to what's allowed is a policy update, not a redeploy of every agent that touches that tool.
  2. Bind approval to the exact call, by hash. One approval covers one specific call; a drifted retry needs its own, closing the gap that let the refund demo-to-incident scenario above happen in the first place.
  3. Record the real request and response, independent of the agent. The kernel writes what was actually sent and actually came back, so three weeks after launch you can answer "which refunds went through" without opening Stripe by hand.

To see this at the level of one real tool call, before it ever reaches a customer's account:

swytchcode exec stripe.refund.create --explain   # see what would run, no HTTP call
swytchcode exec stripe.refund.create --dry-run   # see the planned request
swytchcode exec stripe.refund.create --demo      # simulated run, no credentials

Policy syntax and full logging detail are in the Swytchcode docs. If the gap you're most worried about is approvals getting reused without a human seeing the real action, the companion post on approval laundering goes deeper on that specific failure.

FAQ

Isn't this solved by just writing more tests before launch? Tests catch the cases you thought to write. Production exposes the cases nobody thought to write, continuously, which is exactly why the fix has to live at the point where real calls execute, not only in a pre-launch test suite.

Does adding an execution layer slow the agent down? The policy check and logging happen inline with the call the agent was already making — it's not an extra round trip to a separate system, it's the same call passing through a thin, fast boundary.

What counts as "production ready" for an agent, concretely? At minimum: every consequential action is checked against policy before it runs, the calls that deserve a human gate actually get one bound to the exact call, and there's a record of what happened that doesn't rely on the agent's own account.

Do I need to rewrite my agent to add this? No — the point of pushing this to the execution boundary is that your agent keeps calling tools the way it already does; the boundary is what changes, not the agent's own reasoning loop.

Try it

If your agent's only pre-launch validation was a clean demo, that's exactly the gap this closes before it becomes a three-weeks-later incident.

Install the Swytchcode CLI, read the policy docs, and run a policy check against your agent's riskiest action before it ships past the demo. One command, no SDK setup.

Related reading: Policy as Code for AI Agents and Human-in-the-Loop AI Agents.

More content

Ready to make your agent's tool calls reliable?

Give this prompt to your agent and get started.