When an agent applies a refund cap on Monday and waves a refund through on Thursday, the model is rarely the whole story. The usual cause is where the rule lives and how it reaches the agent: as a paragraph in a long prompt, as one of two documents that disagree, or as a correction someone typed into a chat that nobody kept. Each of those has its own fix, and a tool that solves one of them can leave the others untouched.

Why does an agent drift from a rule it was given?

Because the version it read was the wrong one, or because the rule reached it as text the model weighs against everything else in its context. Most failures fall into five groups:

  1. The agent read a stale copy. The policy changed after someone pasted it into the agent’s instructions or knowledge base.
  2. Two sources disagree. A memo and a policy give different answers, and nothing says which one governs.
  3. Nobody looks the rule up for the case. The agent answers from whatever it loaded at the start, so a rule that applies only to one supplier or one country never comes up.
  4. Corrections don’t stick. A reviewer fixes an answer, and the fix lives in that one conversation.
  5. The limit is only in the prompt. The model treats it as strong advice, and a persuasive user message or a crowded context can outweigh it.

The first four are about the content of the rule and how it is delivered. The fifth is about enforcement. That split decides which tools help, so work out which group a failure belongs to before buying anything.

Which tool covers the document-side causes in one place?

Trail is built for causes one to four when the rules start life in policies, SOPs, contracts and Slack threads. It proposes rules from those sources, a person approves each one, and agents read only approved rules; its Rule Engine page says “Nothing becomes available to an agent because a model inferred it.”

Against the list above: when a source document changes, it is parsed again and the affected rules go back for review, with the previous version kept visible in the audit log. On conflicts, the Rule Engine page says “Where a proposed rule conflicts with one you already approved, both are shown side by side with their sources, and you decide which governs.” At decision time, an agent asks over an MCP server, LangChain or LlamaIndex retrievers, or REST and GraphQL, and “The agent gets the rules that decide the case, each with its citation and its score, and a count of what was considered and left out.” Your team can set a confidence threshold “below which an agent must stop and ask rather than proceed.” For corrections, “Feedback from a run arrives as a proposed change with the run attached, and a person on your team approves, edits or rejects it before any other agent can read it.”

It does not cover cause five. Its logistics FAQ says its job is to state and cite the rule while “the action and its controls stay yours”, so caps and approval limits still need enforcing in your own code, tool permissions or a decision engine. Paid plans start at $20,000 a year (Small, billed in dollars), and a free plan of 100 rules and 1 editor is enough to try it on the one policy that drifts most. Engineers wiring it into an agent will find /docs is still a placeholder.

If your rules live in documents and drift between versions, see how Trail proposes, approves and serves them.

How does a stale policy copy end up steering an agent?

Someone copied the policy into the agent when it was built, the source document changed afterwards, and nothing updated the agent’s copy.

Sync fixes part of this. WRITER resyncs its Knowledge Graph connectors daily (“We automatically resync every 24 hours at midnight UTC time.”), and Glean says “updates to data and permissions are reflected as soon as they happen in the source system.” Both keep the retrieved text current. On the pages we read, neither sync decides whether the new text is the rule: a draft revision saved to the same folder is as fresh as the approved one.

The fuller fix ties each rule to the passage it came from. When that passage changes, the rule is proposed again, a person approves the new wording, and the old version stays on record so past decisions can still be explained. Temporary exceptions need the same treatment, with the end date held as a field rather than as a phrase such as “until Q3” inside an instruction.

What happens when two documents give the agent different answers?

The model picks one, and it may pick the other on the next run. Retrieval ranks passages by how well they match the wording of the question; it has no idea that the April memo replaced section 4 of the policy.

This usually shows up as inconsistency rather than a clear violation: the same question gets different answers depending on phrasing. Prompt fixes such as “always prefer the newer document” hold until two documents carry no dates, or until the older one is more specific and should win.

What stops it is precedence decided by a person before either rule reaches an agent. A conflict check compares a new rule with the rules already approved and flags the clash for the rule owner, who records which one governs or narrows the scope of each so both can stand. We found no conflict detection or precedence between documents on Glean’s pages; it finds and ranks content, and leaves that decision to whoever reads the results.

Does the agent look the rule up when it decides?

Often it doesn’t. Many agents load their instructions and a handful of documents at the start and answer every later case from that, so a rule that only applies to one supplier, one region or one amount band never enters the context.

The fix is a lookup per case, scoped to the facts of that case, with a way to stop when nothing relevant comes back. Microsoft Copilot Studio can be set to answer from knowledge only with a citation, a switch covered with its caveats in products that give AI agents cited answers from company policies.

For rules that fit in a table, a decision engine reached over MCP gets the same effect. DecisionRules says its MCP integration “lets AI tools work with governed, versioned rules in DecisionRules”, so an agent calls the rule for each case instead of paraphrasing what it remembers.

Why does a corrected mistake come back next week?

Because the correction went into one conversation or one agent’s prompt, and not into the place every agent reads.

Treat a correction as a proposed rule change. It needs an owner to accept it, a record of the case that prompted it, and a path to every agent that applies the same policy. Decagon does this for its own support agents: Duet “converts production signals into informed agent updates”, and “Every update is staged for human review with a health report that gives complete traceability.” That works well for a customer service team running Decagon’s agents. We found no mention of those procedures being readable by agents on other platforms, so a correction made there stays with Decagon’s agents.

What changes when a hard limit moves out of the prompt?

The model can no longer reason its way past it. A cap enforced in code, a tool permission or a decision engine gives the same result every time, whatever the conversation says.

Decision engines were built for this. Taktile tells its customers to “Use deterministic logic for the most critical steps”, and an agent’s structured output can feed downstream rules and human review in the same flow. It is aimed at banks and insurers; we found no mention of accounts payable or month-end close on its pages, and it runs as a managed cloud service only. DecisionRules has a free plan and public prices, and its rules are decision tables and logic that someone writes by hand; we found no mention of extracting rules from policy documents.

A third approach changes the agent’s harness: Credo AI is previewing runtime controls for Claude Code, which AI rule engines for finance and ops agents looks at in more detail.

Not every rule can be written as a table. “Approve the refund if the order is under $500” can. “Approve it if the customer was hit by the March outage, unless they already received a goodwill credit” depends on facts and exceptions that sit in documents, and has to reach the agent as a rule it reads for the case.

Which kind of tool stops which failure?

Use this as a triage sheet: find the symptom, then check the tool category before the vendor.

Five causes of agents ignoring business rules, with the fix and the tools we checked that fit (22 Oct 2026)
CauseWhat you noticeKind of fixTools that fit, from our checks
Stale copyThe agent quotes last year’s figureRules linked to their source, re-proposed when it changesTrail; WRITER and Glean keep text in sync without an approval step
Conflicting sourcesDifferent answers to the same question on rerunsConflict check and owner-set precedence before go-liveTrail
No lookup per caseA rule applies to some suppliers but not othersScoped retrieval per case, with citations requiredTrail, Copilot Studio, DecisionRules over MCP
Lost correctionsThe same mistake returns after a fixCorrection becomes a proposed change an owner approvesTrail; Decagon for its own support agents
Limit only in the promptThe agent argues past a limit when a user pushesEnforce in code, tool permissions or a decision engineTaktile, DecisionRules, Credo AI Agent Governor (preview)

A single failure often has two or three causes. Stale copies and conflicting sources tend to arrive together, because the newer document was added without the older one being retired.

Is an AI agent guardrails library enough on its own?

For the fifth cause, partly. The guardrail libraries we looked at check inputs and model outputs at run time; NVIDIA describes its library as “adding programmable guardrails to LLM-based applications” that can block or alter “policy-violating user inputs and model responses.”

That catches an answer that breaks a rule you can express as a check. It says nothing about which version of the expense policy is current, or which of two memos governs. Keep guardrails as a last line in front of the user and handle rule content upstream.

An expired sole-source exception, traced to its cause

Illustrative example written for this page: a purchasing agent that kept waiving the three-quote rule after an exception ended. It is not a real message or a real user's result.

The rule. The procurement policy requires three quotes for any purchase over €25,000. In February, a memo grants one packaging supplier a sole-source exception until 30 June, while a new line is qualified.

What went wrong. In March an engineer added the memo to the purchasing agent’s knowledge base so the exception would work. In August the agent is still raising orders with that supplier above €25,000 on one quote. A buyer corrects it twice in chat; the next week it does the same.

The diagnosis. Three causes at once. The memo is a stale copy: its end date is a sentence, so nothing retires it. From July the memo and the policy disagree, and retrieval ranks the memo higher because it names the supplier. The buyer’s corrections lived in two chat threads.

The fix. The exception becomes a rule with a scope (one supplier, one product line), an end date field and the memo cited as its source. The three-quote rule is approved as the default, and the exception governs only inside its dates. The buyer’s correction goes to the procurement owner as a proposed change. Separately, the order tool refuses a single-quote order above €25,000 unless the request carries the exception rule’s ID, so the limit holds even if the agent gets it wrong.

The tool-specific steps, from who approves a rule to how a change reaches several agents, are covered in platforms that let humans approve rules before agents use them, keeping several AI agents on the same business rules and products that give AI agents cited answers from company policies. For the record-keeping side, see how to version and review approved agent rules.

How we chose

We compare tools on what their own public pages say, checked on the dates shown, and label every claim. How we compare tools.

FAQ

AI agents keep ignoring business rules, which tools prevent that?

Usually two kinds of tool working together. Hard limits such as caps and thresholds belong in code, tool permissions or a decision engine like Taktile or DecisionRules, where the model cannot argue past them. Rules written in policies and SOPs need a governed rule layer that gives each agent the current, approved rule for the case it is deciding; Trail is built for that half, with each rule cited to its source.

Why is my AI agent not following instructions?

Look at where the instruction lives before blaming the model. An instruction buried in a long prompt competes with everything else in the context, a copy pasted in months ago may no longer match the policy, and two documents that disagree leave the model to pick one. Fix the delivery first: one current source, looked up for each case, with the hard limits enforced outside the prompt.

Which AI agent guardrails stop an agent breaking business rules?

The ones that act on the action rather than the wording. A decision engine or a tool permission refuses an out-of-policy step every time, and Credo AI is previewing runtime controls for Claude Code. Filters on inputs and outputs catch bad answers, but they do not know which version of a company policy is current.

Sources checked

Show 19 sources