When to reach for it
- Agents act autonomously in socially or commercially sensitive environments.
- Transparency regarding decision-making is required.
- A fleet of agents needs a supervisory layer that does not require a human at every step.
Polices the agent's actions against policy as the run unfolds.
Continuously monitors the behavior of the agent and transparently aligns it with ethical principles and compliance rules. Realized at scale as a dedicated governance agent (watching for policy violations) or security agent (flagging anomalous behavior) that supervises other agents and escalates to a human only on a trip.
In practiceA financial-advice agent passes every draft recommendation through a compliance controller that checks it against a regulatory ruleset, halting the run and alerting a reviewer on any rule trip.
Without itWithout a controller, policy violations from autonomous agents in sensitive domains surface only after consequences — a fine, a harmful disclosure, or a regulatory breach — rather than at the point of the offending action.
A second agent or a rule engine watches what a working agent is about to do and checks it against a set of rules. It lets the action pass, or it stops the action and calls a person.
1 · Set up
2 · On every action
| Draft says | Rule checked | Verdict |
|---|---|---|
| “A broad index fund fits your long horizon.” | Suitability for the customer's risk class | Passes |
| “Put 60% into this single stock.” | At most 10% in one position | Trips: held for a reviewer |
| “This fund guarantees 8% a year.” | No promise of guaranteed returns | Trips: held for a reviewer |
| “The fees are 0.2% a year, see the fact sheet.” | Fee disclosure is present | Passes |
RULES = [
("concentration", lambda draft: max(draft.positions.values(), default=0) <= 0.10),
("no_guarantees", lambda draft: "guarantee" not in draft.text.lower()),
("suitability", lambda draft: draft.risk_class <= draft.customer_risk_class),
]
def controlled(agent, request):
draft = agent(request)
tripped = [name for name, check in RULES if not check(draft)]
audit.append("controller", "check", {"draft": draft.id, "tripped": tripped})
if tripped:
return escalate(draft, rules=tripped) # halted: a person decides
return draft # no rule fired: the draft goes outWhen to reach for it
When it backfires
The controller rejects a call but returns a generic error. The agent treats it as a transient failure and retries with the same payload.
Countermeasure
Classify rejections as policy-final or transient. Policy-final must surface as a typed signal the agent can react to — not as a retryable error.
The controller wraps the main tool calls, but a side path — a directly-invoked tool, a sub-agent, a cached action — reaches the outside world without passing through it. The one unguarded path is where the incident happens.
Countermeasure
Enforce the controller at a single choke point every side-effecting action must traverse, rather than decorating call sites one by one; fail closed if an action arrives unrouted.
Keep going
Search patterns, frameworks, and pages.