Drift Alerts
Drift is the gap between what an agent's governance evidence declares and what its traces show. For example, an agent declared as not handling payment data whose traces contain card numbers, or an agent that calls a tool it was never approved for. Drift Alerts list these gaps so you can investigate and close them.
Enterprise feature. Open the project-wide list with View Drift Alerts on the Risk Dashboard, or from Framework Coverage. An agent's open alerts also appear on its governance profile, on its Risk tab in AI Agent Center, and in its Risk Dashboard detail panel.
How drift is calculated
ANTS compares an agent's declared evidence from Evidence Collection with what its traces show over the last 7 days. Only agents with governance evidence are evaluated. Drift works from the agent's traces whatever their source: the ANTS Platform SDKs, OpenTelemetry, Budget AI or Portkey logs. Metrics that depend on detections show Not monitored until AI Guardrails has scanned the agent's traces.
| Metric | Declared value | Observed value | Drift when | Drift type | Severity |
|---|---|---|---|---|---|
| PII Detection | PII categories in data governance evidence | Share of scanned traces with PII | PII is declared and the rate is above the PII limit, or PII is not declared and any is found | Data | Medium |
| PCI Processing | "PCI data collected" in data governance evidence | Traces with PCI data | PCI data is found but declared as not collected | Data | Medium |
| Output Filtering | "Output filtering applied" in security evidence | Share of traces with PII or ethics and bias detections | Declared and the rate is above the output filtering limit, or not declared and any are found | Control | Low |
| Abuse Monitoring | "Abuse monitoring enabled" in security evidence | Share of traces flagged for ethics and bias | Declared and the rate is above the abuse monitoring limit, or not declared and any are found | Control | Low |
| Safety Detection | Prompt injection protection or jailbreak prevention in security evidence | Share of scanned traces flagged for jailbreak or prompt injection | The rate is above the safety limit | Performance/Safety | High |
| Bias Monitoring | Protected attributes evaluated, or a bias assessment, in bias and fairness evidence | Traces flagged for ethics and bias | Bias monitoring is declared and any trace is flagged | Control | Low |
| Error Rate | Below the error rate limit | Share of observations at ERROR level | The rate is above the error rate limit | Performance/Safety | Low |
| Tools used but not declared | The agent's approved tools | Tools the agent was seen calling, in its traces or in recorded tool violations | A tool outside the approved tools was called | Scope | Medium |
Rates need enough traffic. A rate above its limit opens an alert only when it is measured over at least 20 traces (or 20 observations for Error Rate). Below that, the metric shows Not monitored, because a rate over a handful of traces is noise. A rate within its limit still counts as a match, so an open alert on a quiet agent can close.
Tools used but not declared compares names ignoring case, and a server/* entry covers every tool of that server. It is not checked for an agent with no approved tools. It needs the deployment setting DRIFT_UNDECLARED_TOOLS_ENABLED=true (Helm web.config.features.driftUndeclaredTools, off by default). Until then the metric shows Not enabled. Checks running on the Drift Alerts page shows whether it is on. Approve tools in the agent's Tool permissions; see Agent Tool Governance.
Drift limits
The rate limits are set per organization under Organization Settings → Features → Drift limits, as a percentage from 0 to 100. Leave a field blank to use the default. Saving needs tenantSecurity.features:admin (Owner and Security & Compliance among the built-in roles), and the change is written to the audit log.
| Limit | Default |
|---|---|
| PII detection rate | 5% |
| Output filtering violation rate | 5% |
| Abuse monitoring rate | 5% |
| Safety detection rate | 2% |
| Error rate | 5% |
The new limits apply at the next drift calculation.
Drift limits for one agent
An agent can have its own limits, which replace the organization limits for that agent. Open the agent in the AI Agent Center and select More actions > Drift limits. Each field shows the organization limit, and a blank field follows it. Opening it needs the Agent Profiles & Drift permission at Read; saving needs Read & Write (Owner, Governance Owner and Security & Compliance), so agent owners can see their agents' limits but not change them. Each change is written to the audit log.
Trend drift
Trend drift compares an agent with its own normal range, so a change is caught even under the organization limit, for example errors rising from 1% to 4% under a 5% limit.
| Metric | Drift when | Severity |
|---|---|---|
| Error rate | It rises | Low |
| P95 latency | It rises | Low |
| Cost per model call | It rises | Low |
| Tokens per model call | It rises | Low |
| Evaluator score, for up to five score names per agent | It falls | Medium |
- An agent is judged once it has 7 days with at least 20 observations each; until then it shows Learning normal range. A day with fewer than 20 observations shows Too few observations.
- Normal is the median of up to 28 earlier days. Drift needs today to be at least 3 spreads away in the bad direction and above a minimum change, so a steady agent does not alert on noise.
- Only evaluator scores count, not annotations or API scores. Weekly patterns are not modelled.
- Trend alerts are performance drift, resolve themselves when the value is back to normal, and are sent like other drift alerts.
Fairness
Fairness compares groups of users of the same agent, such as regions or business units, and opens a drift alert when one group clearly fares worse: more errors, more guardrail blocks, or evaluator scores far from the other groups.
- On Framework Coverage, Fairness groups approves up to 5 attribute names, such as
region: lowercase letters, digits and underscores, up to 40 characters. Changing them needs the Agent Profiles & Drift permission at Read & Write. - Agents send the group on each trace as metadata under
fairness., for examplefairness.region = "emea". Other metadata is ignored, and an attribute with more than 20 values is not treated as a group, so do not send personal identifiers. - Over the last 7 days, groups with at least 30 traces are compared. A gap needs to be at least 2 percentage points, beyond the agent's declared fairness threshold (80 when none is set, a four-fifths rule) and statistically significant.
The agent's Agent Compliance Profile shows a Fairness section with a tab per attribute, each group's traces, error rate, blocked rate and mean evaluator scores, and the group that is worse off highlighted. Prompt and response text is not needed for errors and blocks. Only counts per group are stored, for 35 days, and removing an attribute deletes its counts and closes its alerts. Fairness is a signal for review, not a finding of discrimination.
Checks running
Trend drift, fairness and Tools used but not declared run only on deployments that turn them on, and need the hourly drift check (see When drift is recalculated). The Checks running strip on the Drift Alerts page shows which are on. On self-hosted deployments they are the Helm values web.config.features.driftBackgroundSync, driftTrend, driftFairness and driftUndeclaredTools, all off by default.
Behaviour alerts
When Behaviour alerts is turned on for a project, the hourly check also compares each agent's tool, MCP server, sub-agent, data store and service use with its own 28-day baseline. These checks raise Tool misuse and Privilege escalation alerts of Medium or High severity, with drift type Scope, Risk or Performance/Safety. They resolve when you Mark expected the target, or after 7 days without the behaviour. See Behaviour.
When drift is recalculated
A background job recalculates drift for every agent with governance evidence once an hour, whether or not anyone opens the agent. An agent that nobody looks at is still re-evaluated. This needs background drift checks to be turned on for your deployment; until then, the metrics above are recalculated when someone opens a page that shows drift, and behaviour checks do not run. The pages that show drift, such as the agent's governance profile, its Risk tab in AI Agent Center, its detail panel in the Risk Dashboard and the project-wide Drift Alerts list, only read the stored alerts, so an alert can be up to about an hour old.
Drift is measured against what the agent's governance evidence declares and, for behaviour and trend alerts, against its own recent behaviour.
Each calculation keeps one open alert per metric per agent:
- A drifting metric with no open alert creates a new alert.
- A drifting metric that already has an open alert updates it with the latest declared and observed values and detection time.
- A metric that is back within its limit resolves its open alert automatically.
Drift types
Five drift types are defined: Control, Scope, Data, Risk and Performance/Safety. The metrics above raise Control, Data, Scope and Performance/Safety alerts. Behaviour alerts raise Scope, Risk and Performance/Safety alerts.
What an alert records
- Type, severity and the metric that drifted
- Declared and observed values
- Detected time, and status (Active or Resolved)
- The affected evidence category, where one applies: data governance, security and abuse prevention, bias and fairness, performance, use case and scope, or tool governance
- When resolved: who resolved it, when, and the resolution notes
- When sent to an integration: when, and to which channel
Working the queue
The Drift Alerts page shows summary cards for Active Alerts, Agents Affected, Critical / High and Resolved. Filter the list by status (All, Active or Resolved; Active is the default), agent, severity and drift type. Alerts are listed newest first.
The Notified column shows where an alert was sent (Microsoft Teams, ServiceNow, PagerDuty) and the date, with the exact time in a tooltip, or Not sent. The same column is in the Risk Dashboard's drift table and the agent's Risk tab.
From an alert's menu you can View Traces, View Profile, or Resolve it with resolution notes. Resolving requires write access to agent governance.
To see drift alerts next to agent suspensions and resumes, use Drift and suspend activity in AI Violations.
Automatic notifications
When automatic incidents are turned on, each new drift alert opens an incident with no one needing to click. This is off by default and has two switches, because it changes what your on-call team receives:
- Your ANTS deployment turns on background drift checks and automatic notifications. Ask your ANTS administrator or support contact.
- An organization admin turns on Automatic drift incidents in Organization Settings → Features. Without it, drift alerts are still created and resolved for your organization, but nothing is sent or closed automatically.
Automatic alerts go to ServiceNow and PagerDuty when the integration is connected with incident creation turned on, and to Microsoft Teams when the project has a Teams channel connected. See ServiceNow, PagerDuty and Microsoft Teams. Slack and Jira do not receive drift alerts. Behaviour alerts are sent the same way as the other drift alerts.
- Sent once. An alert is sent once. Later checks that update an alert that is already open do not send it again. If an incident could not be opened, for example because ServiceNow was down, the next check tries again for up to 24 hours.
- At most 25 per run. Each hourly check sends at most 25 alerts per project. The rest stay pending and are sent on the next checks, within 24 hours of the alert opening.
- Flapping drift is one alert. If a metric drifts again within 24 hours of resolving itself, the same alert is reopened and the incident that is already open is reused. After 24 hours, a new alert and a new incident are opened. An alert that someone resolved by hand is never reopened.
- Incidents close themselves. When a metric alert resolved on its own and has stayed resolved for 24 hours, its ServiceNow incident is set to Resolved and its PagerDuty incident is resolved. Alerts that someone resolved by hand, and behaviour alerts, are not closed automatically. Microsoft Teams cards are not updated, so nothing is posted to Teams when an alert resolves.
- First time on. The first time automatic incidents are turned on, every open alert from the last 24 hours that was not sent yet is sent, including alerts people have already seen, at most 25 per project per hourly check. Expect a burst of incidents, and turn it on when the on-call team is ready.
The incident includes the agent, drift type, severity, description, and the declared and observed values. The alert records when and where it was sent.
Send drift alerts with an automation
Drift alerts can also go to your SOAR, ticketing or SIEM tooling, or any other automation action, through an automation on the Drift alert opened event in Project Settings → Automations. This is separate from the ServiceNow and PagerDuty incidents above and does not need Automatic drift incidents.
- Filter by category. Each new alert carries one Category: Tool misuse for Tools used but not declared and the behaviour checks B1, B4 and B5, Privilege escalation for the behaviour checks B2, B3, B6, B7 and B8, and Drift for every other metric. Add a condition on Category, Drift type, severity or agent to send only the alerts you want.
- Background checks required. Your ANTS deployment must have background drift checks turned on; ask your ANTS administrator. The hourly check hands each new alert to the automation.
- Once per alert. Each new drift alert is sent once to each matching automation. Alerts raised before the automation was created are not sent.
- Severity. The event carries the alert's severity: Critical, High, Medium or Low. The metrics above raise Medium and Low alerts, and behaviour checks raise Medium and High alerts.
The event names the agent and links to its drift alerts in ANTS Platform. For the webhook payload, see Policy Violation Webhooks.
Send an alert manually
You can also send an alert yourself. The Integrations column shows an icon for each connected integration. Select one to open Send Drift Alert Notification, choose Microsoft Teams, ServiceNow, PagerDuty or any combination, and send. The alert then records when and where it was sent. If the alert was already sent to a selected channel, you see Already sent and it is not sent there again.
Closing drift by updating the declared evidence is legitimate when the baseline was wrong, but it changes what counts as compliant for that agent. Make it a reviewed decision and re-approve the evidence in Requests & Review.
Next steps
- Evidence Collection: the declared values that drift is measured against.
- Agent Tool Governance: approved tools and behaviour checks.
- AI Guardrails: the detections that supply observed values.
- Audit & Export: generate the compliance report for your agents.