Say your AI agent authorization rules let a made-up reporting agent email a quarterly report to one colleague. You run the agent twice, as Task A and Task B. Task A’s approver says deliver the report, and Task B’s approver says draft only.
Then, the agent emails the report both times. The two entries in your action log match line for line, so nothing there says Task B broke its approval.
You need the approval in its own record, and whoever writes that record decides what gets enforced. In one 2026 preprint, researchers had three AI models write that record for each task, across 198 test runs with attacks or ambiguous requests. The records the models wrote allowed 40 actions the tasks never called for. A gateway held each one as a draft for a person to review.
Same Trace, Opposite Approvals
A trace here means the log of the agent’s tool calls and their arguments, without the request that started them. Compare Task A’s trace with Task B’s, and you won’t find a difference. The difference sits in a system the agent never touched, where somebody picked deliver for Task A and draft only for Task B. If the approver’s choice also travels as a sentence inside a request your trace logs, you still need a model to interpret that sentence.
Take 1,000 hypothetical pairs like Task A and Task B, so 2,000 traces, half approved and half that broke their approval. Suppose your check, which flags or blocks actions, reads only the trace and always answers the same input the same way. Every pair hands it identical inputs, so it gives both traces the same answer, but one of those answers is wrong. That gives the check exactly 1,000 right answers out of 2,000.
If you flag every email, you’ll catch all 1,000 bad ones while blocking all 1,000 good ones. If you flag nothing, you’ll get the opposite. Both land on 50%.
Any flagging rule in between catches bad emails at exactly the rate it blocks good ones. That’s a coin flip.
That’s my math on a pair I built to be identical. It isn’t a measured limit on any real detector, and it doesn’t cover a detector that sees more than the trace.
If you hear one objection, it will likely be that real traces differ because the timing shifts or the agent writes itself a note that says “drafting only.” My read is that an injected document can plant those same signs, so a detector that learns them learns something an attacker can forge.
You don’t need a separate approval lookup in two cases. If you ban every email to an outside domain no matter the task, your check never needs the approval. If your event stream already joins a trusted approval field to each action by a task ID the agent didn’t supply, your check isn’t missing anything. To block a call, though, it has to read that field first.
Which of your agent’s actions are right or wrong only because of what somebody approved? Write those down first. I won’t accept a verdict on any of them from a tool that never saw the approval.
A Richer Graph Reads the Same Trace
You might reach for richer evidence than a flat trace, like a provenance graph, which records which process touched which file or network connection, in order, usually from the operating system’s audit logs. POIROT (2019) matches one against graphs built from threat reports, and Kairos (2024) scores every event for how unusual it is. Neither claims the graph holds a business approval, and my inference is that no kernel event ever will.
Gadi Evron’s Adversary Brains preprint (October 26, 2026) models the attacker’s behavior itself, as a hypothesis Evron calls a brain, built from observations he calls links, some required and some supporting.
I like this paper, a lot. In fact, I said on LinkedIn I’m pissed I didn’t think of it first. Its tests run on synthetic data, and Evron reports no detection rates on real telemetry.
The first design choice I’d copy is when a required link sits where sensors can’t see, the brain suspends its verdict.
The approval is that kind of link for every task-dependent action you run. What does your agent detector do when the deciding fact sits in a ticketing system it never reads? It’s BS’ing you if it does anything at all.
A mimicry attack pads malicious activity with ordinary activity until the detector scores the whole thing as ordinary. Akul Goyal and three coauthors evaded five selected provenance detectors 100% of the time in a 2023 paper without changing what the attack did, assuming intact audit logs and, in most runs, an attacker who could read them. The Kairos team, which shares an author with Goyal’s, later ran the released evasion data, flagged the camouflaged attack, and found the data held only part of the attack, so I’d treat both results as unsettled.
How would your detector score Task B? It would score Task B like Task A, because Task B’s misuse needs no mimicry to look approved. I’d let behavior evidence decide what you look at first. I’d never let a behavior score grant or deny an action whose permission depends on the task.
CaMeL Checks the Tool and Trusts the Plan
If detection can’t decide, enforcement has to. CaMeL, from Edoardo Debenedetti and nine coauthors at Google, Google DeepMind, and ETH Zurich, appeared at an IEEE machine learning security conference in 2026.
A privileged model, call it the planner, turns your trusted request into a small program. A second model reads untrusted content and can’t call tools. An interpreter runs the program and checks a policy before every tool call.
Control flow integrity, the first mechanism, guarantees the program only takes paths the planner wrote into it. Untrusted data can pick a branch and can’t add a step, so a poisoned email can’t add a call to the email tool, unless the plan hands the choice of tool to the data, which the authors show models will do.
A data flow tag, the second mechanism, is a label on every value that records where it came from and who may read it (CaMeL calls these capabilities). A policy can read the tags and refuse to email a value only you may read. I’d build on top of that enforcement.
Look at where CaMeL keeps the approved task, though. The paper’s security definition calls an action unsafe when it falls outside what your specific request allows. CaMeL’s policies govern the tools “independently of the prompt,” that is, of your request. Each one sees a tool name, its arguments, and their tags.

Run Task B through CaMeL. The approver’s choice has nowhere to live except your request, which says draft only. A faithful planner writes no email call.
If the planner writes one anyway, with no untrusted data involved, the recipient is a value typed into the planner’s own code. CaMeL tags every value the planner writes as coming from you. That call carries the same tool, arguments, and tags as Task A’s approved email, so it passes the same policy.
The tags do catch a different case. CaMeL’s strict mode treats a branch condition as a dependency, so if the email call sits under a branch that depends on what a file says, its recipient carries that file’s tag, and a rule that checks where the recipient came from can stop it.
What stops an email call the planner writes itself? As CaMeL ships, my reading is that only the planner’s obedience does.
Blog 1 gave you my rule for that case. I only count a control as an enforced property when it decides on facts the model didn’t write. By that rule, Task B’s restriction is observed behavior, something you learned by watching the model.
CaMeL defends against an attacker who controls data and never tests a planner with tampered weights, so a planner someone altered with a small weight edit, like the one in Blog 2 of this series, sits outside its claims. The authors picture future policies that users and tool providers set, or that get derived from context. I’d want the first kind, set by your approver and read at call time, before I trusted CaMeL with task-dependent actions.
Delegation adds more planners to trust. James Peters-Gill and four coauthors show in Can CaMeLs Talk? (October 5, 2026) that a child agent treats its parent’s instruction as a trusted request. When the parent copies a value derived from untrusted data into that instruction, the child can add an email that leaks data.
A child’s approval comes from a model one level up. Who wrote the instruction your subagents run on?
Who Wrote the Approval?
The industry’s answer to agents doing more than they should is to scope permissions to the task. I agree. In my least agency blog, I told you to issue per-task credentials that expire in minutes. A per-task credential is only as good as the task it was scoped to, and somebody has to write that task down.
Auth0 published a developer tutorial on August 11, 2026 that shows one way. One option it offers, a pre-planning call, asks the LLM which tools it needs for the request, then stores the answer as tuples, the permission records Auth0’s authorization service checks before each call. The post admits this step can get the scope wrong and that an injected prompt can claim it needs more. Then it calls the enforcement check the security boundary “regardless of how the tuples were constructed.”
I don’t buy it. That sentence makes me angry. The check enforces the tuples, so if the model wrote the tuples, you’re enforcing the model’s opinion of its own job. I sure as hell wish I could grade my own homework when I was in school. Don’t you?
The post’s own opening example appends the injection to the user’s request, which is exactly what the pre-planning step reads. The approval is the ONE fact in an agent system the model should never write!
The post does call the mapping from request to permissions unsolved, and it sends requests for more scope back to the user. It also offers a simpler start that skips pre-planning, blocks any unapproved tool at call time, and prompts the user on the spot. That puts a person on the first permission decision. I’ll give it credit.
Once agents fire those prompts at volume, you’ll see people click always allow, as I warned in the least agency piece. I’d have the approver set deliver or draft once, as a field.
The opening’s 2026 preprint comes from Genliang Zhu and Chu Wang, who list Accentrust alongside their universities. Their gateway design (v4, September 18, 2026) has a model turn each trusted request into a short-lived certificate, a record of what this task may do. The gateway then checks every tool call against it and holds risky actions as drafts for a person to review.
None of the 40 unsafe drafts went on to send, change, or delete anything. The trials are 22 tasks run three times on each model, so the repeats are correlated.
Most of the 40 came from cases where the model writing the certificate dropped an amount or resource limit the request called for. The certificate can’t grant more than the agent’s tool connections already allow, so every unsafe draft stayed inside the authority the agent already had. It’s one preprint on synthetic tasks, scored against reference certificates the authors wrote themselves. I’d still take it seriously.
Who wrote the scope your agent runs under right now? If you can’t say, assume the agent did.
When your approver says draft only, where does that land? If it’s a dropdown or a ticket state, a check can read it. If it’s a sentence in a chat thread that some model interprets, you’ve got a model writing your permissions.
I’ve done this to myself. My Claude Code harness kept its bans on writing to system config and SSH key folders in advisory markdown files the model was supposed to honor. On October 30, I turned them into deny rules that Claude Code enforces.
Count What Actually Happened
Zhu and Wang counted accepted drafts apart from completed effects, and you should steal that habit. I keep four units apart.
Generated instructions are what the model wrote, and attempted calls are what it asked a tool to do. Accepted operations are what the check let through, and that includes drafts, which can still carry a social engineering attempt to a reviewer. Completed effects are what changed in the world, like a message that arrived.
You need the same care with detector scores. A hop is one link between two nodes in a provenance graph. Neighborhood credit is a scoring rule that counts an attack node (a process or file labeled as attack) as detected when an alert lands within two hops of it, and it drops any false alarm within two hops of a labeled node.
ThreaTrace is a provenance detector, and its own released scorer uses neighborhood credit. Jihwan Moon and two coauthors took a fixed set of ThreaTrace alerts on a DARPA test dataset called CADETS and changed only the scoring in Where the Numbers Come From (September 27, 2026).
If you score strictly, an alert counts as right only when its node carries an attack label. Seven of ThreaTrace’s 994 alerts did, which is 0.70%. Score the same alerts with neighborhood credit, and you get 12,847 out of 13,690, or 93.84%. That 13,690 is 12,847 credited attack nodes plus 843 false alarms, so the denominator mixes nodes with alerts.
Nothing about the alerts changed. Nearly all of those attack nodes had no alerts at all. The 843 are what’s left of the other 987 alerts after neighborhood credit dropped the ones near labeled nodes. The authors say the credited figure “is not precision over emitted alarms.”
When a vendor quotes me precision for an agent detector, I ask what sits in the denominator and which unit it counted. Which of the four units can your logs count today? Start there.
An AI Agent Authorization Record the Model Can’t Write
The table below is the task record I’d build, where every field names the system allowed to write it. Zhu and Wang’s certificate already carries most of these fields, down to one naming what produced it. I’d add a named writer for every field, keep models away from effect limits, and end on the destination’s receipt.
Under this record, you allow an action only when this task’s approval, the delegation it came through (with a child’s limits inside its parent’s), this resource, this destination, and this policy version all permit it.
Fields enforce nothing by themselves. You need the check to read them at the moment of the call and log that it did. It takes the task ID from the per-task credential the identity service minted for the session, rejects any ID not issued to that session, and never takes the ID from a tool argument.
The check fails closed, blocking the call, when the approval is missing, expired, revoked, used up, or tied to an older version of the resource. You route every path to the destination through that check, so the agent holds no shell, generic web request tool, or second connector that reaches it. I’d test those paths first.
What happens in your stack when an approval expires halfway through a task? This task record moves your trust to the approval service, so guard it like any other authorization system.
Which trusted record tells your system that this particular effect belongs to the approved task? If you can’t name the system that wrote it, you’ve found your gap.
Nobody I can find has tested whether it matters who writes these fields. You’d build paired synthetic cases like Task A and Task B by running the agent under a permission fixed before the run. One check gets the trace alone. A second gets the trace plus fields from the approval service, and a third gets the same fields written by a model reading the approver’s sentence.
Split training and test cases by task template so a learned check meets task types it never trained on. Randomize task IDs, and include expired approvals and forged approval text. Then measure completed unauthorized effects in a run where the check blocks calls for real.
One result would sink this. Measure completed unauthorized effects on new templates, forged approvals included. If the check that reads fields a model wrote comes within one percentage point of the check that reads fields the approval service wrote, who writes the fields doesn’t matter and my thesis falls. My untested prediction is that the trace only check looks decent on familiar templates, because it learns template tells like the timing shifts, and falls toward 50% on new ones.
The strongest objection is friction. Zhu and Wang’s prototype is built to stage drafts for review, and it completed zero of 108 benign trials outright. Another 36 ended as drafts awaiting review, and 67 failed because the model sent malformed tool calls.
The authors rescored the collected runs with a stricter check on each certificate and a tighter gate on tool calls, and unsafe drafts fell from 40 to 0 while benign drafts fell from 36 to 15. Would your business give up more than half its benign drafts to get zero unsafe ones? Mine wouldn’t.
I’d route only task dependent effects (sending, sharing, paying, deleting) through the approval check and leave task independent bans as simple rules. The approver picks deliver or draft once, at approval, because per action approvals decay into always allow. Picking once works at human task volume.
For tasks agents spawn by the thousand, or tasks whose destination nobody knows up front, I’d use a standing rule a person wrote with an expiry, or have the approver confirm structured fields the model proposed, never a summary it wrote. Then I’d watch the share of tasks approved for delivery, since a climbing share means approvers are saying yes by reflex.
When the Planner Is the Problem
A task record holds any planner, an edited one included, to effects someone approved. It can’t see what that planner puts inside an approved effect, like the contents of a report it’s allowed to send. That blind spot remains even with this much richer runtime evidence.
You still have to vet the model before release, and your release team has to read a model scanner’s result and decide what a clean one is worth. That’s Blog 4, on what a clean model scan buys you.
My rule for AI agent authorization is short. When an action can be right or wrong depending on what someone approved, your check reads that approval from a system the model can’t write, and until it does, you’re running on behavior you hope for.
What to do next
Pick one agent whose sending, sharing, paying, or deleting depends on the task. This week, find where the approver’s deliver or draft decision lives. If you find a sentence a model reads, add a structured field to the approval system that no agent identity, connector, or automation rule can write. Have the check read the task ID at call time from the credential the agent runs under, and log the decision and the destination’s receipt as separate events.
Then count last month’s agent activity in the four units and note which ones you can’t count. If you want help building the task record, you can find me at RockCyber, and the last installment of this series lands at RockCyber Musings.
👉 Subscribe RockCyber Musings for more insights into AI security and governance, with the occasional rant. You can subscribe above
👉 Visit RockCyber.com to learn more about how we can help with your traditional Cybersecurity and AI Security and Governance journey.
👉 Want to save a quick $100K? Check out our AI Governance Tools at AIGovernanceToolkit.com
As a bonus, watch the talk Fred Wilmot and I gave at [un]prompted II about the tool description that talked an AI agent into leaking a secret, why attention takes no input that marks where a token came from, and how CxBOM’s proxy drops any tool whose description changes after you sign it.








The Task A and Task B pair makes the point better than any argument: if the approval lives only in a system the agent never touched, a check that reads the trace cannot tell the two apart. Treating the approval as its own record with a named writer also settles the ownership question most agent programs leave vague, because the person who sets deliver or draft only is the one accountable for that action, not the model or the team that built it. Your list of actions that are right or wrong only because someone approved them would make a good launch gate: if the check cannot read that record at call time, the agent should not be given those actions yet.
Your October 30 fix to Claude Code is worth copying. A ban in a markdown file only holds if the model chooses to follow it. Deny rules get enforced. IT can also lock them on every laptop, so a downloaded project can't bring its own.