---
title: "How to make an AI agent reliable in production"
description: "An AI agent's reliability is set by its harness, not its model: what it verifies, which actions it controls, when it stops and how a failure gets audited."
url: https://foxford.ai/blog/agente-de-ia-confiable-en-produccion/
locale: en
translations: { es: https://foxford.ai/es/blog/agente-de-ia-confiable-en-produccion.md, pt: https://foxford.ai/pt/blog/agente-de-ia-confiable-en-produccion.md }
site: https://foxford.ai
---

1. [Home](https://foxford.ai/)
2. [Blog](https://foxford.ai/blog/)
* [How agents work](https://foxford.ai/blog/topic/engineering/)
* [Security and trust](https://foxford.ai/blog/topic/security/)

# How to make an AI agent reliable in production: the four decisions of the harness

An AI agent's reliability is set by its harness, not its model: what it verifies, which actions it controls, when it stops and how a failure gets audited.

**By Ignacio Puig Moreno**

November 14, 2026 6 min read

An AI agent is reliable in production when the system around it, the harness, makes four decisions: it verifies that each case ended the way it should, it separates what the agent executes on its own from what needs approval, it defines when the agent stops and it keeps a record of every step. Switching models replaces none of the four.

**Harness:** the code and rules around the model that decide what information it sees, which tools it can use, what gets verified after each action and when it gets cut off.

## Why isn't a good model enough?

Because the model produces a reply, and what the customer gets is a consequence. Between the two there is a system that someone designed or forgot to design.

The most cited case is Air Canada's. In 2024, British Columbia's Civil Resolution Tribunal ruled that the airline was responsible for what its chatbot told a passenger about the bereavement fare, a policy the chatbot described wrongly ([Moffatt v. Air Canada, 2024 BCCRT 149](https://www.canlii.org/en/bc/bccrt/doc/2024/2024bccrt149/2024bccrt149.html)). The airline argued that the chatbot was a separate entity. The tribunal rejected that. Nothing between the model's reply and the customer checked that it matched the real policy.

The case we told in [demo vs production](https://foxford.ai/blog/demo-vs-produccion/) is the same pattern: an agent that passed its tests and invented a policy in production. In both cases the problem was not fixed with a better model. It was fixed with a rule saying what to do before stating something that is not in the source.

## What is the harness, in a concrete case?

A customer writes on WhatsApp: "I want to change the delivery address".

The model understands the request and writes the reply. The harness decides the rest: that the agent identifies the account from the number writing in, that it can read the order but only write the address if the order has not shipped, that after writing it reads the record again to confirm the change stuck, and that if the order already went out it does not improvise but hands the conversation to a person with the case summarized.

None of those rules lives in the prompt. They live in the system, and that is why they can be tested.

## What are the four decisions of the harness?

| Decision | Question it answers | In the address change | If it is missing |
| ----------------------------- | ------------------------------------------------------- | ----------------------------------------- | -------------------------------------------------- |
| 1\. Verify the result | Did the case end as it should, or was it only answered? | Reread the order after writing | The agent confirms a change that was not saved |
| 2\. Control sensitive actions | What does it do on its own and what needs approval? | Always read; write only if not shipped | It changes orders it should not touch |
| 3\. Set stops | When does it stop and who gets the case? | Order shipped: handoff with a summary | It insists or invents a way out |
| 4\. Audit a failure | Can you reconstruct what it saw, decided and executed? | Log of the read, the write and the reread | Nobody knows why it happened, and it happens again |

### 1\. Verify the result, not the reply

An agent can say "done, I changed the address" and be wrong. The only way to know is to look at the system afterwards. The same goes for what it states without executing anything: a policy, a deadline or an amount comes from a source the harness gave it, and if the source does not say it, the right answer is "a person will confirm that".

### 2\. Control sensitive actions

OWASP calls this risk [excessive agency](https://genai.owasp.org/llmrisk/llm062025-excessive-agency/) and breaks it down into excessive functionality, excessive permissions and excessive autonomy. In practice it is handled with levels per action: reading it does on its own, writing something reversible it does within rules, and writing something irreversible or involving money needs approval. Where each action goes is the company's call. We covered it in [where human approval goes](https://foxford.ai/blog/aprobacion-humana-agente-de-ia/).

### 3\. Set stops

A stop is a written condition under which the agent stops trying: the customer asks for a person, the request falls outside what it knows how to do, a tool failed twice, the action exceeds an amount, the tone turned negative. A stop is not the end of the conversation: it is a handoff, and it works if [the four things that have to travel](https://foxford.ai/blog/traspaso-a-una-persona-entre-canales/) do.

### 4\. Be able to audit a failure

An agent in production will get things wrong. The difference between a mistake and a mistake that repeats is being able to reconstruct what message it received, what it looked up, what it decided, which tool it called and what the system returned. With that record, the failure becomes a test case: the rule gets fixed and it is added to the evals so the next version does not repeat it.

## What changes when the agent writes or calls first?

Stops appear that depend not on the company but on the law: consent, opt-out and disclosing that it is an AI. They change by country, and we summarized them in [the consent rules before an AI agent texts or calls your customers](https://foxford.ai/blog/reglas-antes-de-que-un-agente-escriba-o-llame/). For the harness they are another family of stops: conditions under which the agent does not send, even when it has everything it needs to.

## How do you know if your agent is ready?

Having passed the tests is not enough. A thread on r/AI\_Agents put it with a number: [an agent that handled a hundred test conversations is still not ready to run the business](https://www.reddit.com/r/AI%5FAgents/comments/1xlt2uh/your%5Fai%5Fagent%5Fhandled%5F100%5Ftest%5Fconversations%5Fi/), because first you need to know what it can access, what it does without approval, how you verify an action went through, what happens if an API fails halfway and how you trace what it did.

It is answered with ten yes or no questions about data, rules, handoff, testing and security. The three critical items weigh more: if any one is missing, the score does not reach "Ready".

Tool for this post

### Is your AI agent ready for production?

Ten questions about an agent that is already built, before you open it to customers. The three critical items weigh 3: without any one of them it cannot reach Ready.

The agent reads data in the system where it lives, not in a copy someone updates by hand _(+2)_It is written down what it does when a system does not answer or returns something unexpected _(+1)_There is a written list of what it does alone and what needs approval _(+3)_The policies it applies (returns, deadlines, amounts) are in a source someone maintains _(+1)_There are defined triggers to hand over to a person, and the person gets the summary _(+3)_Someone is assigned to take the handoffs during the hours the agent works _(+1)_It was tested with real cases from the operation, including the ones people got wrong _(+2)_The tests run again after every change of instructions or model _(+2)_The agent's credentials have only the permissions its task needs _(+3)_Every conversation is logged with the actions that were executed _(+2)_

**0 of 20**

#### Not yet

Before opening it to customers, close the list of what it does alone, the handoff triggers and the permissions.

## What should you ask a vendor before going to production?

1. After the agent executes an action, how does it verify it went through?
2. Which actions does it take on its own and which need approval, and who defines that list?
3. With what permissions does it connect to our systems? Can it write where it only needs to read?
4. What are the stops, and what does the person receive at each handoff?
5. If it gets something wrong with a customer tomorrow, what record do we have to find out why?
6. Are the tests run again when the instructions or the model change?

A vendor who answers all six with examples from their product built a harness. One who answers with the name of the model they use did not.

**Ignacio Puig Moreno** Co-founder · Business

Industrial engineer (ITBA). Founder of Acamica (acquired), one of the pioneering edtechs in Latin America.

## Questions

What is the harness of an AI agent?

It is the system around the model: it decides what information the model sees, which tools it can use and with what permissions, what gets verified after each action, when it stops and what gets logged. The model understands and writes; the harness decides which of that gets executed.

Does a more powerful model make an agent more reliable?

It improves understanding and writing, but it does not replace any of the four decisions of the harness. A better model without verification can still confirm a change that was never saved.

Who is responsible if an AI agent gets something wrong with a customer?

The company that put it in front of customers. In Moffatt v. Air Canada (2024), the tribunal rejected the argument that the chatbot was a separate entity. That is why it is worth defining what the agent does on its own, when it stops and what gets logged.

## More from the blog [All posts](https://foxford.ai/blog/)

1. [November 12, 2026 Security and trust · How agents work Human approval in an AI agent: where the approve button goes, and when it comes off Human in the loop is not a button on every step. Where a person's approval belongs in an AI agent, what they must see first, and how an agent earns autonomy. 6 min read](https://foxford.ai/blog/aprobacion-humana-agente-de-ia/)
2. [November 20, 2026 Security and trust · Getting started Agent sprawl: what it is and how to keep your company from piling up AI agents nobody governs Agent sprawl is when a company piles up AI agents with no inventory, owner or common controls. The three signs it has already happened and what to do this week. 3 min read](https://foxford.ai/blog/agent-sprawl/)
3. [October 30, 2026 Security and trust · Channels and voice Before an AI agent texts or calls your customers: the consent rules in Australia, the US, the UK and the EU Consent, opt-out, sender registration and AI disclosure for AI agents that text or call in Australia, the US, the UK and the EU. Sourced, not legal advice. 4 min read](https://foxford.ai/blog/reglas-antes-de-que-un-agente-escriba-o-llame/)

Job done\_

Have a task like this on your list?

[Talk to us](https://cal.foxford.ai/sales)
