Ontological trust: how to notice in time that an AI agent is drifting from the original task

30 August 202617 views

The authors propose an online RGE monitor that decomposes trust in an agent into the components "role," "goal," and "evidence," and tracks them throughout a long trajectory. This approach catches accumulated drift even when each individual step seems acceptable, and on OSWorld, FinanceBench, and EICU-AC tests, it proves more accurate than existing heuristics, judge models, and shields.

Ontological trust: how to notice in time that an AI agent is drifting from the original task

Modern AI agents can execute long sequences of actions: calling functions, processing service responses, and making intermediate decisions. It's hard for an observer to track every step, so automated monitors are typically used for safety control. But what if individual steps look flawless while the whole chain gradually drifts away from what the user asked for?

Why local checks don't help

A long-horizon agent can call the correct tool with plausible arguments at every step and still drift undetectably: instead of the original task, it starts solving a broader or adjacent one, "pulling in" evidence the user never provided. This accumulation of deviations is called trajectory drift. Existing verification systems typically look at local compliance of individual actions, issue a global verdict on the whole trajectory, or estimate aggregate risk. The problem is that they don't analyze intermediate prefixes specifically — how the relationship between the trajectory and the task evolves as it unfolds.

A recent paper on arXiv (2608.17718) describes an approach that tries to close this gap. The authors propose the notion of "ontological trust": a property not of the entire path but of each trajectory prefix, defined relative to the original task.

Three components of trust

To catch deviation in time, trust needs to be decomposed into components. That's exactly what the RGE monitor does — its name comes from Role, Goal, Evidence. Formally, trust in a trajectory prefix is assessed along three axes:

  • Role — whether the agent stays within the authority granted by the user or gradually "appoints" itself to a broader role.
  • Goal — how well the current direction of movement matches the authorized goal rather than being substituted with a similar but adjacent one.
  • Evidence — whether the agent relies on data actually present in observations or on implicit assumptions and unsolicited information.

This triple check makes it possible to distinguish, for example, an agent that has stopped performing the task from one that is merely changing the permissible way of performing it.

How the check works

An important detail: RGE is not a "black box" that evaluates the trajectory with a single end-to-end model. Language models are used here only to obtain structured representations of the task and individual steps. The trust state update, projections onto the three components, and the intervention decision are deterministic. As a result, the output is a reproducible trust trajectory: you can pinpoint exactly when and due to which component suspicion arose. This is an important engineering decision because it reduces dependence on the whims of a large model and simplifies auditing.

How well it works

To validate the approach, the authors built a corpus of trajectories based on three different environments: OSWorld, FinanceBench, and EICU-AC. The corpus includes benign (normal) executions, drift examples with paired prefixes, and so-called "pseudo-aligned" failures — cases where actions look logical but are actually erroneous.

On this material, RGE outperformed adapted rule-based baselines, judge models, and shields in detecting drift in prefixes. With two larger evaluator models, it achieves over 93% Drift F1 on each benchmark while maintaining benign coverage of at least 95.8%. In other words, it rarely misses real drift and doesn't flood normal operation with false alarms.

However, the researchers honestly characterized the limitation as well. "Pseudo-aligned" failures remain a hard case: their detection strongly depends on whether the outcome of the task is externally visible. If there is no explicit confirmation of success or failure in the outside world, the monitor cannot always distinguish a carefully masked deviation from ordinary uncertainty. This is not a flaw — it's a structural boundary of any approach that lacks access to the full semantics of the world.

Conclusions

The main lesson from this work is that you need to watch not only individual steps but also the shape of the trajectory as a whole. A practical approach could be this: for each prefix, ask yourself whether the agent's role has changed, whether the goal has been substituted, and whether there is any "foreign" evidence. These three questions form the basis of more transparent and verifiable oversight of long-horizon agents. And likely, in the future, "ontological trust" will become as commonplace a metric for AI agents as accuracy or latency is today.

Frequently asked questions

Related materials

All materials