Forum Discussion

zwbproducts's avatar
zwbproducts
Copper Contributor
Oct 30, 2026

AI agent forensics

The part I would like to understand better is what happens when one task spans several systems.

A simple example. An agent is asked to reconcile an invoice. It reads the invoice record, it calls a payments API to check status, and it writes a settlement note. Three steps, three systems, all within the agent's role. Now suppose the amount it settles differs from the amount it read, or the settlement goes to a different counterparty. Every individual entry is valid: the identity is correct, the permission was granted, the API call succeeded. The run as a whole is outside what the agent was asked to do.

Prevention, detection and containment all depend on recognising the event. Here nothing is exploited and no signature matches, so there is nothing to recognise until a human notices the money is wrong.

So my question is this. What is the recommended way to hold the authority for a run, meaning what the agent was asked and permitted to do across the whole task, alongside the observed actions, so the two can be compared afterwards? And is that record produced independently of the components under investigation, or does it rely on the same telemetry that would itself be in question?

2 Replies

  • One approach is to save what was authorised before the run: record ID, amount, counterparty and allowed actions. Plain code compares the settlement with that record before it executes and stops on a mismatch. A separate identity writes the log to append-only storage, so the agent can't edit its own evidence.

  • hi zwbproducts​ This is a really important question for agentic AI governance, particularly when an agent operates across multiple systems and performs actions that have financial or business consequences.

    The key distinction is between valid individual actions and valid execution of the overall task. Traditional audit logs may confirm that an identity was authenticated, permissions were granted, and API calls succeeded, without establishing whether the agent's actions collectively stayed within the original intent and authority.

    I think the missing piece is a run-level authorization and audit model, rather than auditing individual API calls in isolation.

    Before the agent starts, the task should be captured as an explicit authorization envelope defining the intended outcome, permitted systems, allowed operations, constraints, financial limits, and expected entities. Each subsequent action should be evaluated against that envelope, not merely against the permissions of the agent's identity.

    For your invoice reconciliation example, the system should be able to reconstruct:

    - Original intent: What was the agent asked to reconcile?

    - Authorized scope: Which invoice, counterparty, amount, and payment operations were permitted?

    - Observed execution: What data was read, what API calls were made, and what changes were committed?

    - Deviation: Where did the actual execution differ from the authorized intent?

    - Containment: Could the transaction be stopped, reversed, or escalated when a deviation was detected?

    The audit trail should ideally be captured by an independent control plane, with immutable, tamper-evident records, rather than relying exclusively on the agent's own logs or the telemetry of the systems it interacts with.

    This is where agent observability alone may not be sufficient. Observability tells us what happened; governance requires us to establish whether what happened was actually authorized.

    The interesting architectural challenge is maintaining a trustworthy record of intent alongside execution, across systems, identities, and delegated agents, without making the agent itself the authority on whether its actions were compliant.