r/agenticAI • • 2d ago

Discussion When your agent does something it shouldn't, can you actually prove what it was allowed to do?

Most agent discussions are about capability: tool use, memory, planning. I've been thinking about the less glamorous part, which is what happens after an agent makes a bad call.

If an agent sends the wrong email, places an order it shouldn't, or changes a record, someone will ask four things:

  1. Who authorised this agent to run in the first place?
  2. What authority did it have (which tools, which limits, which approvals)?
  3. What did it actually do, step by step?
  4. Did the action stay within that authority?

If your logs can't answer all four, you can't debug the failure properly, and you can't settle who's responsible either, whether that's internal, a customer, or a regulator. This is getting more real, since rules are starting to treat AI as a product. For example, the EU's revised Product Liability Directive covers software and AI from 9 December 2026, and Singapore's agentic AI governance framework is built on humans staying accountable for what agents do.

A few things I'd like to hear from people running agents in practice:

  • Authority: Do you define permissions per action (read vs write vs spend) or per agent? What stops scope creep when you add tools?
  • Records: What do you log? Prompts and tool calls only, or also the reasoning, approvals and the state before and after each action? Who holds the logs, you or the vendor?
  • Escalation: How do you decide when an agent must stop and ask a human? Is it a rule, a confidence threshold, or something else?
  • Ownership: In your org, who's named as accountable for an agent's actions?

My guess is that most teams solve the first two after the first incident, not before. Curious if that matches what you've seen.

Disclosure: I'm part of the team organising a conference that covers this (ICCC 2026, 25–27 Nov, first day online, focused on agent accountability and liability). Mentioning it for transparency. I'm mainly here for the discussion.

8 Upvotes

12 comments sorted by

2

u/Aggravating-Stage269 2d ago

I think every agent should have clear permission limits and an audit trail of every action it takes

2

u/Afraid_Money9537 1d ago

Yeah me too, most people start fixing the issue after the incident, not before it.

I think you missed something though. You focused on responsibility, but there's something that has to be mentioned before blaming people: is the agent doing anything it's not allowed to do? Does the agent get blocked from using tools by the tools themselves, or only by the system prompt?

Because the moment I write a query as a normal user, I can't know what irreversible decision my agent took without me even being aware of it. Do I even get blamed for that?

2

u/NesleySuela49 1d ago

Are you looking at this mostly from an internal enterprise automation angle, or customer-facing SaaS? Because when a customer's user triggers the agent, the liability and permission scoping gets way messier than an internal workflow

2

u/Used_Style_1355 1d ago

I had an agent auto-book a meeting with a client after hours, no warning, no confirmation. the audit trail showed it used the calendar tool, but the permission was vague: schedule meetings when needed.' no clear boundary.

1

u/Asly97 1d ago

Oof, 'schedule meetings when needed' doing exactly what it says and still being wrong is the nightmare version of this. What did you change after that one? Did you rewrite the permission tighter, or add a confirmation step before anything client facing goes out? I keep going back and forth on it, because tight rules still leave gaps, and confirming everything kind of kills the point of having the agent.

2

u/_N-iX_ 1d ago

A useful audit trail needs to capture more than prompts and tool calls. Each action should be linked to the identity or process that authorized it, the permissions in effect at that moment, the policy version applied, and the state of the affected resource before and after execution. This makes it possible to distinguish an agent decision from a permission or integration failure. Recording the approval together with the exact action payload is also important, since approval for one transaction shouldn't automatically authorize a modified one.

1

u/Ok-Loan2298 1d ago

in my last test, the agent followed a permission rule but still triggered a false positive in the audit, turns out the rule was ambiguous. clarity isn't just about limits, it's about how they're written.

1

u/merlinofthewater 1d ago

An audit log needs to capture outcomes, not just tool calls.

If an agent initiates a payment and crashes before recording the result, how do you know whether it went through? And what happens when another agent retries?

We're building Cellaflow to solve this. It coordinates execution across agents, prevents duplicate operations, and lets you see which agent currently holds the lease for an operation.

So you can tell not just what happened, but who's currently responsible for executing it.

https://cellaflow.com

1

u/Normal_Emu6673 1d ago

Instead of giving an agent broad access to everything, it is better to set permissions for individual actions. Its one thing to read a record but modifying or deleting it is a different story. Also keep logs of approvals and what changed before and after each action. I think the real challenge is to make sure restrictions are actually enforced rather than blindly trusting agents to follow those instructions

1

u/dr_edo_available 1d ago

Agent Legal liability is currently a black hole. The user? The agents coder?

1

u/theov666 1d ago

I think there's a critical distinction here between what an agent was technically capable of doing and what it was actually authorized to do.

An agent might have valid credentials to modify a database, for example, but that doesn't necessarily mean it had authority to change a particular record under the organization's policies.

I'd separate the problem into three layers:

  1. Decision authority: Who approved the action, under which policy, with what scope and limitations?
  2. Enforcement: Was that authority independently checked at the point of execution, rather than relying on the agent to follow instructions?
  3. Evidence: Can we reconstruct the exact policy version, delegated authority, action and observed outcome afterward?

The difficult case is when authority passes between multiple agents or execution environments. A valid permission at the start of a workflow shouldn't automatically authorize every downstream action.

Disclosure: I'm building Mneme HQ (https://mnemehq.com), an open-source project focused on architectural decision governance for AI coding agents. We're investigating how the same principles could extend to runtime authority and infrastructure decisions.

I'd be interested in whether your accountability framework distinguishes between permission enforcement and conformance with organizational decisions. They seem like different, complementary requirements.

1

u/CheetahPale8777 1d ago

It really depends on the technology, for example, Copilot Studio allows you to see the entire end to end conversations your user had, and you can trace where it took a certain decision, used a specific dataset, reasoning, etc.

On a more custom or advanced set up, you should have test and evals documented, that way you can start thinking about model and reasoning optimization for better token economics.

This is oversimplified, highly suggest checking out different repos that you can feed to an AI like Claude and have it plan out your roadmap.

Godspeed.