Skip to main content

Command Palette

Search for a command to run...

Agentic ops in production: what it takes to run AI workflows that modify real data

Published
6 min read
Agentic ops in production: what it takes to run AI workflows that modify real data
D
building infra so agents can use your SaaS @Hintas

What it actually takes to run AI workflows in production

The industry spent two years building AI agents. 2026 is the year those agents need to work for real. Not in sandboxes. Not in demos. Not in internal tools that three people use. In production, where they modify real customer data, process real payments, and trigger real business consequences.

This is a different problem than building agents. Getting an agent to reason about a multi-step task is a model capability question, and the models are good enough now. Running that agent reliably in production with transactional guarantees, observability, failure recovery, and audit trails is an infrastructure question. The infrastructure barely exists yet.

What "production" means for agents

A production agent system needs properties that demos don't.

Transactional integrity is the obvious one. An agent executes a five-step workflow and step 4 fails. The system either completes everything or rolls back to a clean state. No partial execution. No orphaned records. No payments processed without corresponding order updates. This is the Saga pattern from distributed systems, reinvented (usually poorly, or not at all) in most agent frameworks.

Then there's auditability. A customer asks "why was my account charged twice?" You need to reconstruct exactly what happened: which agent, which workflow, which steps ran, which parameters were passed, which API responses came back, and when. "The LLM decided to call the billing API" is not an answer your compliance team will accept.

Graceful degradation matters more than people think. APIs go down. Rate limits get hit. Auth tokens expire mid-workflow. A production system handles known failure modes without paging someone at 3am and escalates cleanly for unknown ones. The difference between production and a demo is what happens when things break.

And performance under load. One agent running one workflow is easy. A thousand agents running different workflows concurrently against the same API surface is a completely different problem. Rate limiting, connection pooling, queue management, resource isolation all become critical at once.

The Saga pattern, adapted for agents

If there's one infrastructure pattern that matters most here, it's Sagas.

The traditional version: each step in a distributed transaction has a compensation action. Process payment, compensation is reverse payment. Reserve inventory, compensation is release inventory. Send notification, compensation is send correction. If any step fails, compensations fire in reverse order to restore the system to a consistent state.

For agent workflows, this addresses what I think of as the atomicity fallacy. Because each individual API call is atomic (succeeds or fails cleanly), people assume a sequence of calls is also safe. It isn't. If an agent processes a payment (step 3) but fails to update inventory (step 4), you have a successful charge and wrong inventory. Both API calls worked fine individually. The workflow is corrupted.

Implementing Sagas for agent workflows requires three things the ecosystem mostly lacks right now.

First, compensation discovery. For every forward action, the system needs to know the compensating action. "Process payment" compensates with "reverse payment." "Create user account" compensates with "delete user account." Some compensations are obvious. Others, like sending an email, don't have true reversals, only follow-up actions. This compensation mapping has to be extracted and validated alongside the forward workflow. You can't bolt it on later.

Second, progress tracking with checkpoints. The system has to know exactly how far a workflow got when something failed. If step 4 breaks, the system must know steps 1-3 completed and need compensation. This needs durable state management that survives process crashes, network partitions, and infra failures. Without it, you're guessing which steps actually ran.

Third, ordered compensation execution. Compensations run in reverse order, each completing before the next fires. If the payment reversal fails, you can't proceed to release inventory. The system state is genuinely indeterminate at that point, and you escalate.

Observability for workflows, not just calls

Current AI observability tools focus on individual LLM calls: latency, token counts, model versions, prompt/completion pairs. Necessary, but nowhere near sufficient for production.

What you actually need is workflow-level visibility. A complete trace of every execution from trigger to completion. Not just LLM decisions, but every API call, every parameter, every response, every state transition. This is what compliance teams audit and what you debug from when something breaks at 2am.

You need dependency health tracking too. If the payment API slows down, how many active workflows are affected? Which ones are blocked? Which already passed the payment step and don't care? Without this, you can't assess blast radius when an external service degrades.

Compensation success rates are another thing almost nobody tracks. A failed compensation means the system is stuck in an inconsistent state requiring manual intervention. If that rate starts climbing, you have a problem brewing before customers even notice.

And workflow-level SLOs beat per-call metrics for understanding system health. A workflow completing in 30 seconds at 99.5% success is healthy. A workflow where individual calls are fast but overall success is 85% is broken, even if no single step looks bad in isolation.

Context-decoupled execution

One pattern that makes a real difference in production: decouple context from execution.

The standard agent pattern routes every step through the LLM's context window. Agent calls a tool, gets the result in context, reasons about the next step, calls the next tool. Each intermediate result eats context tokens and each step needs a full model inference.

Context-decoupled execution separates planning from execution. The agent identifies what workflow to run and provides the inputs. The execution engine handles multi-step orchestration internally, calling APIs, passing parameters between steps, handling errors, without routing intermediate results back through the model.

This matters in production for several reasons. Token cost drops because intermediate API responses (often large JSON payloads) never enter the context window. A 20-step workflow costs the same as a single tool call. Execution becomes deterministic: once the workflow is identified, it follows a validated path with no probabilistic reasoning at each step. Latency improves because you eliminate 19 of 20 model inference calls, and the workflow runs at API speed instead of model speed. Isolation becomes possible since the execution engine can run in a sandbox (V8 Isolates, Firecracker microVMs) with proper security boundaries.

A rough maturity model

Production readiness isn't binary. Teams tend to move through stages.

Level 0 is ad-hoc. Agents call APIs directly. No workflow knowledge, no transaction management, no observability beyond logs. This is where most teams are today.

Level 1 is structured. Multi-step processes are defined as explicit workflows. The agent follows a known path instead of improvising. Basic success/failure tracking exists.

Level 2 is transactional. Saga compensations are defined for each step. Failures trigger automated rollback. Checkpoints enable recovery from infra failures.

Level 3 is managed. Workflows run on managed infrastructure with auth, isolation, audit logging, and workflow-level observability. Execution history feeds back into workflow refinement.

Most teams are at Level 0. They need to reach Level 2 before agents are production-ready. That jump is a lot of engineering work, unless the infrastructure already exists.


Hintas gives you Level 2-3 out of the box. Validated workflows with Saga-pattern rollback, managed execution on isolated infrastructure, and audit logging for every step. Your agent calls search to find the right workflow and execute to run it. Hintas handles the orchestration. More at hintas.ai.

Photo by Alex Shuper on Unsplash

More from this blog

H

Hintas

18 posts

AI agents, MCP, and workflow automation in production. We cover why AI projects fail, how to secure agent infrastructure, and what it takes to make AI actually work inside SaaS — from protocol design to supply chain security.