AI Agent Alerting: 6 Early-Warning Signals of an Agent Going Wrong
14 min read Fullmakt Team
- observability
- traceability
- agentic-ai-gone-wrong
- governance
- credentials
- authentication
- mcp
- a2a
- agents
- business-case
Ask a team how they found out their AI agent misbehaved, and the answers are rarely “an alert fired”. They are “finance asked about the invoice”, “a customer emailed us”, or “we noticed the table was empty”. By then the agent has finished, the damage is done, and the investigation starts from the outcome and works backwards.
Agent observability has mostly meant two things so far: model traces (prompts, completions, token counts) and, more recently, an audit trail of what the agent did. Both are useful after the fact. Neither tells you, while it is happening, that an agent has started to go wrong.
That is the job of alerting. This post covers six signals that show up early when an agent goes wrong, where to measure them so the agent cannot hide them, and how to turn them into alerts that people act on instead of muting.
What is AI agent alerting?
AI agent alerting is the practice of watching an agent’s actions (the tool calls and API requests it makes) and notifying a person when a pattern crosses a threshold that suggests something is wrong: a forbidden tool was called, denials spiked, call volume ran away, or an agent that should be idle started acting.
It differs from application monitoring in one important way. A normal service fails by
breaking: errors go up and latency gets worse. An agent can fail while every request
succeeds. It can call the right API, get 200 OK, and still delete the wrong records, send
the wrong email or leak the wrong data. So agent alerting has to watch what the agent
does and whether it was allowed, not only whether the calls worked.
Measure at the boundary, not inside the agent
The first design decision is where the signals come from. There are three candidates:
| Source | What it sees | Why it is not enough on its own |
|---|---|---|
| The agent’s own logs | What the agent reports it did | A confused or prompt-injected agent can report anything. It is the suspect writing its own alibi. |
| Model or LLM traces | Prompts, completions, tokens, tool-call intents | Shows what the model wanted to do, not what reached an API, and often contains sensitive prompt data. |
| The API boundary (a broker or gateway) | Every call that actually left, with identity, target, credential and decision | Sees actions, including the ones that were blocked. This is the source to alert on. |
An alert is only as trustworthy as its source. If an agent can suppress its own telemetry by skipping a log line, the alert will not fire in the case you most need it. A broker that sits between the agent and every API records each call whether the agent wants it recorded or not, which is why we argue that an audit log should not be written by the agent.
Model traces are still worth keeping for debugging plans and prompts. Just do not make them the place your alerts come from.
Six signals that an agent is going wrong
1. A tripwire tool was called
Some tools should almost never run: delete a repository, change bank details, rotate a production secret, send a message to all customers. If your policy already denies or gates these actions, the call is blocked. You still want to know that the agent tried, because an agent that reaches for a destructive tool it was not asked to use is either confused or following injected instructions.
Alert: fire on the first call to that tool, allowed or not. No threshold, no averaging.
2. A spike in denials
A policy denial is a successful control. A burst of them from one agent is a symptom. It usually means one of three things: the agent’s task drifted outside its delegation, it is improvising around a failure, or it is acting on injected instructions and testing what it can reach.
Alert: the share of failed or denied calls for one agent identity goes above a percentage within a short window.
3. A burst of authentication failures
When an upstream API starts returning 401 or 403 to an agent, the credential has
expired, been revoked or been narrowed. That is fine in itself. The risk is what the agent
does next: try another key it found, fall back to a broader account, or retry in a tight
loop until something works.
Alert: the error rate on a specific tool or collection goes up sharply. Pair it with a look at the credential’s rotation history.
4. Call volume that runs away
Agents re-plan. Sometimes the re-plan is the same step again, and again. A loop that would crash a normal program just keeps going in an agent: each pass costs model tokens, may hit a paid API and may repeat a side effect.
Alert: more than N calls from one agent, or to one tool, within a window. Set N from the agent’s normal workload, not from a guess. A nightly job that makes 200 calls should page at 2,000, not at 201.
5. An agent that should be quiet is acting
Agents that are retired, paused, between scheduled runs or still in testing should make no calls at all. If one does, a token was not revoked, someone reused an old configuration, or a credential leaked. This is the offboarding gap and the shadow agent problem, caught in the act.
Alert: fire on any call from that agent identity. A dormant principal makes a cheap and very reliable canary. It covers the identities you have paused or forgotten but not yet revoked; once a token is revoked, the broker refuses it before it ever reaches a tool.
6. New targets or credentials
An agent that has called the same three hosts for a month and suddenly reaches a fourth, or uses a credential reference it has never used before, deserves a look. On its own this is a review signal rather than a page: legitimate changes happen. Combined with a denial spike, it is strong evidence of exfiltration attempts.
Review: check new hosts and credential references per agent in the audit timeline as part of a weekly review.
From signal to rule: a cheat sheet
| Failure mode | Signal | Rule shape |
|---|---|---|
| Prompt injection reaches a destructive tool | Tripwire tool called | Instant, scoped to the tool |
| Task drift or probing | Denial share spikes | Error rate, scoped to the agent |
| Revoked or expired credential, improvised re-auth | Auth failures on one tool | Error rate, scoped to the tool or collection |
| Runaway loop or duplicate side effects | Call volume jumps | Count over window, scoped to the agent or tool |
| Leaked token, forgotten or retired agent | Any activity from a dormant identity | Instant, scoped to the agent |
| Exfiltration attempt | New host or credential reference | Weekly review of the timeline |
Keep alerts actionable
Alerts that fire too often get muted, and a muted alert is worse than none because it gives false confidence. Four habits keep agent alerts useful:
- Scope narrowly. One rule per agent identity or per risky tool beats one global rule. This only works if each agent has its own identity rather than sharing a service account.
- Suppress repeats. Once a rule fires, it should not fire again for the same burst. One message per incident, not one per call.
- Keep data out of the alert. The notification should say which rule fired, not carry the agent’s arguments or the response body. Chat channels are not where customer data or secrets belong.
- Wire every alert to an action. Each rule should have an obvious next step: open the timeline, reject the pending approval, rotate the credential or turn the agent off. If nobody knows what to do when it fires, delete the rule.
How Fullmakt does it
Fullmakt is a credential and policy broker for AI agents. Agents call APIs and tools through it, over MCP for execution and A2A for management, so every action passes a point the agent does not control. That is where the signals above come from.
- A broker-written record of every call. Each brokered call, executed or denied, becomes an
audit row with the agent principal, the collection, the tool, the method, the upstream host,
a SHA-256 hash of the arguments, the credential references used (never the values), the
upstream status, the latency and the outcome. Policy denials are recorded as failed calls
with a
policy_denyreason, and A2A management actions are recorded too, tagged with their surface. - A live timeline. The Governance audit view streams new rows as they happen and shows a per-tool summary of total calls, errors and p95 latency over the last 24 hours.
- Alert rules on the audit stream. A rule is scoped to a tool, an agent principal, a
collection or any combination, and uses one of three conditions:
instant(any matching call),countOverWindow(at least N matching calls) orerrorRate(the percentage of matching calls that failed or were denied). Windows run from 30 seconds to 24 hours. A background evaluator checks the rules about every 30 seconds. - Quiet, data-free notifications. A firing rule posts to a webhook you configure, such as a Slack incoming webhook. The payload names the rule, the window, the threshold and the fire count. It does not include arguments, responses or credentials. A rule does not fire again within the same window, so one burst is one message.
- Calls made outside the broker can still be recorded. Calls that did not go through Fullmakt can be reported to it with your account’s credentials. They appear in the same timeline, marked as reported externally, so you can tell brokered facts from reported ones.
- The response is one step away. From the alert you go to the timeline, then reject the agent’s pending approvals, rotate the credential behind the reference, or cut the agent off by deleting its OAuth client, which also invalidates every token that client already issued. None of this touches the agent’s code.
Five of the six signals become rules (the sixth is a review). In the Alerts tab, each rule has a name, a window, a threshold and three small JSON fields: scope, condition and notify.
| Rule | Scope | Condition | Window | Threshold |
|---|---|---|---|---|
| Tripwire: delete_repository | { "toolName": "delete_repository" } |
{ "type": "instant" } |
300 s | 1 |
| invoice-reconciler denial spike | { "principalId": "<invoice-reconciler>" } |
{ "type": "errorRate" } |
600 s | 25 (%) |
| Accounting API auth failures | { "collectionId": "<accounting>" } |
{ "type": "errorRate" } |
300 s | 50 (%) |
| invoice-reconciler runaway | { "principalId": "<invoice-reconciler>" } |
{ "type": "countOverWindow" } |
900 s | 2000 |
| Canary: retired support-bot | { "principalId": "<support-bot-v1>" } |
{ "type": "instant" } |
3600 s | 1 |
Each rule’s notify field holds the webhook, for example
{ "webhook": "https://hooks.slack.com/services/..." }.
What Fullmakt does not do is judge whether an allowed call was the right call for the business. A correct-looking payment to the wrong supplier passes every rule above. That is why alerting sits next to policy and human approval, not in place of them.
A worked example: the support agent that went quiet, then didn’t
A company retires support-bot-v1 after moving to a new agent. The old agent’s OAuth client
is left in place “just in case”. Three weeks later, a contractor’s laptop with the old
agent configuration is compromised.
Without boundary alerting: the old token still works. Someone uses it to read customer records through the CRM API at a steady, unremarkable rate. The calls succeed, nothing errors, and the agent framework’s logs are on a laptop nobody controls. The leak is found two months later in a breach notification from a third party.
With Fullmakt: the retired principal has an instant canary rule. The first call fires
the webhook within a minute. The on-call engineer opens the timeline, sees reads of
customer records from a principal that should be silent, and deletes the old OAuth
client. The tokens it issued stop working on their next call. The audit rows list exactly
which tools were called and which credential references were used, which is what the
privacy team needs to scope the notification.
Same leaked configuration. The difference is minutes against months.
The business case
Alerting is where governance turns into something an operations team can run.
- Smaller incidents. The cost of an agent incident grows with the time it runs unnoticed. An alert in minutes turns a breach into a near miss and a runaway bill into a rounding error.
- Evidence for auditors. SOC 2, ISO 42001 and the EU AI Act all expect you to monitor automated systems and respond to anomalies. Named rules, fire counts and a broker-written timeline are evidence you can show, not a promise.
- Faster security reviews. “How would you know if an agent went rogue?” is one of the first questions in an enterprise security questionnaire. “A rule fires within a minute, here is the config” is a better answer than “we check the logs”.
- More autonomy, sooner. Teams give agents more room when they trust they will hear about problems. Good alerting is part of how you earn agent autonomy step by step.
Checklist: can you hear your agents go wrong?
- Does every agent have its own identity, so alerts can name it?
- Do your signals come from a boundary the agent cannot bypass, not from the agent’s own logs?
- Are denied calls recorded, not just successful ones?
- Do your most destructive tools have a tripwire that fires on the first attempt?
- Is there a denial-rate rule per agent?
- Is there a volume rule per agent, set from its normal workload?
- Do retired and paused agents have a canary rule?
- Do notifications leave arguments, responses and secrets out?
- Does each rule have a written next step, and can that step (reject, revoke, rotate) be done in one action?
- Does someone review new hosts and credentials per agent at least weekly?
FAQ
What should I monitor for AI agents?
Monitor actions, not only model output. The most useful signals are calls to high-risk tools, spikes in policy denials, bursts of authentication failures, unusual call volume, any activity from agents that should be idle, and new hosts or credentials. Measure them at a broker or gateway the agent cannot bypass.
How is AI agent observability different from LLM observability?
LLM observability traces prompts, completions and token use: what the model thought. Agent observability traces the actions that reached real systems: which identity called which API with which credential, and whether policy allowed it. You need the second to detect and investigate incidents, because an agent can go wrong while every model response looks normal.
Should a policy denial trigger an alert?
A single denial usually should not; it means the control worked. A cluster of denials from one agent should, because it suggests task drift, improvised re-authentication or prompt injection. Alert on the denial rate per agent, and alert on the first attempt only for tripwire tools.
Can an AI agent hide its activity from monitoring?
It can if the monitoring depends on the agent’s own logs or SDK hooks. It cannot hide calls that go through a broker, because the broker records each call itself, independently of what the agent reports. That is why alerting belongs at the boundary.
How does Fullmakt send alerts?
Alert rules in Fullmakt are evaluated about every 30 seconds against the broker’s audit trail. A rule can be scoped to a tool, an agent principal or a collection, and uses an instant, count-over-window or error-rate condition. When it fires, Fullmakt posts a notification to your webhook, such as Slack, without including call arguments, responses or credentials.
Does this work with MCP and A2A agents?
Yes. Calls through Fullmakt’s MCP execution surface and actions on its A2A management surface are both recorded in the same audit trail, so the same rules cover both.
See how Fullmakt governs and monitors what your AI agents can do or browse the Fullmakt blog.