Skip to content
Back to blog

The Confused Deputy, Reloaded

The confused deputy is back, now with a planner. A 1988 paper about a compiler explains most of the agent-governance failures of 2026, and the fix it proposed is the one the boring layers are quietly shipping.

Contents
  1. The controls are proven
  2. An agent is Barney Fife by construction
  3. The question changes
  4. The boring layers
  5. The leg most stacks skip
  6. Read the paper

In 1988 Norm Hardy published a three-page paper about a compiler. In it he named a flaw that every agent stack is now rediscovering, and argued for the fix: capabilities, the primitive Edera has announced for its agent sandboxes.

The compiler ran on a commercial timesharing system at Tymshare. It could write into its own directory, because it kept usage statistics there. The billing file lived in that directory too. A user who couldn't touch the billing file could still ask the compiler to write its debug output to a file in that directory. Give that file the billing file's name and, whoops, the compiler does as it's told and overwrites all of the billing records.

Nothing was hacked. The compiler was authorized. That was the problem. It was acting on someone else's instruction with its own authority, and no check in the system could tell the difference, because the system checked the compiler's permissions and the compiler's permissions were fine. Hardy called it the confused deputy. The incident is what convinced him that capabilities, an idea first written down in 1966, were necessary rather than merely neat.

That paper came back to me this year, watching the industry announce agent governance as if it were new. The tools we're told to buy for governing agents are proven, and the fix Hardy proposed has been sitting in the literature for decades, waiting for a problem big enough to need it. What's new is the deputy, and one requirement the deputy creates that nobody had to meet in 1988.

The controls are proven

Most of what I read about governing agents opens the same way: agents are a new kind of thing, none of your existing controls can see them, and so governance has to be reinvented. Then comes the list of what the reinvention requires. A sandbox. An egress proxy. Scoped, short-lived credentials. Policy pushed from a central console. An audit log.

Every item on that list has been in production for a decade or more. Hard isolation boundaries are hypervisors, and the microVM flavor has been shipping since Firecracker. The egress chokepoint is an API gateway with a new protocol on the front. Short-lived credentials bound to a workload are what SPIFFE has done for years. Central policy with identity-provider integration is table stakes. The perimeter-is-dead argument, where the laptop is the most exposed node and the VPC can't see it, is the entire premise of zero trust. And least privilege itself was written down by Saltzer and Schroeder in 1975.

What's being sold as novel is the reframing. I think the reframing is wrong, because it misses the one thing about agents that is new, and Hardy's paper names it exactly.

An agent is Barney Fife by construction

If you don't know who Barney Fife is, you will before this post is over. But first, the compiler. Hardy's compiler had one input and was confused once, by one user who happened to know one filename.

An agent's entire job is to take instructions from data. The prompt, a tool result, a web page it fetched, a file in the repo, a message from another agent. Prompt injection is the 1988 user, except the attacker no longer needs to know the filename, because the deputy will go and find it.

And the agent deputy is way more dangerous than the compiler deputy. Namely because it reasons. When one path is blocked, it tries the next. The compiler could only do what its code said, and it never went looking for another way in; the agent treats refusal as a dare.

Two more important things about an agent:

It is cooperative by training. A model optimized to be helpful looks for a way to satisfy an unusual request, which is close to the opposite of the posture a deputy should hold.

It delegates to other deputies. An orchestrator hands work to a sub-agent, which calls a tool, which calls a service. Each one checks the permissions of whoever called it, and each check passes. That is exactly the check Hardy showed was blind: it sees the deputy, not whose request the deputy is carrying. Multi-agent systems are that check, repeated at every hop.

If you grew up on The Andy Griffith Show, you already know this deputy. Barney Fife, deputy to Sheriff Andy Taylor in the small town of Mayberry, is eager, sure of himself, and helpful to a fault. When the first idea doesn't work he has a second one, and the second one is worse. Leave him in charge for an afternoon and he's deputized Gomer Pyle, the town mechanic. Nobody ever had to compromise Barney. You just had to let him be himself near something that mattered.

So when I read that an agent acts as the developer and therefore IAM can't see it, I don't read that as a gap in IAM. I read it as the confused deputy, described precisely, by people who haven't recognized him.

The question changes

The instinct is to ask whether the agent is authorized. It is. That's why confusing it works.

The question Hardy's paper leaves you with is different: did the authority for this action arrive with the request, or did the agent already have it? If the agent already had it, if it's holding the developer's token, the service account, the mounted kubeconfig, then it is running on ambient authority, authority it has because of who started it rather than what it was handed. You've built Hardy's compiler and bolted a planner to it. Every filter you put in front of the prompt is an attempt to make the deputy less confused. Capabilities take the other road: they make confusion harmless, because a deputy can't misuse authority it was never handed.

Andy knew this. He never tried to make Barney less eager. He gave him one bullet and made him keep it in his shirt pocket. The sheriff holds the real authority and hands the deputy exactly as much as the job in front of him needs, and no more. Barney stays Barney. Mayberry stays safe.

That's the fix the paper proposed in 1988, citing a design from 1966. It wasn't widely adopted then because untrusted code was a nuisance and ambient authority was convenient. It gets adopted now because the untrusted code is the thing doing the valuable work, and least authority stopped being an academic virtue and became the enabling constraint. Same physics, different economics.

The boring layers

Which is why the interesting work right now isn't happening in the governance consoles. It's happening in the layers nobody writes keynotes about.

I came to Edera for their kernel isolation. Mandible agents run in Edera Protect zones, and a zone is a real hypervisor boundary with its own kernel per workload, not a container with extra seccomp. The boundary sits below anything the model can reach or rewrite. A shared kernel was never a security boundary, and an agent probing its own container is probing the kernel it shares with everything else on the node. I prefer Edera for the developer experience it affords and the world-class engineering team it has assembled. You might use Firecracker or Kata. Choose your fighter.

Edera keeps solving new problems with proven answers. The hypervisor under Edera's zones is, by default, built on Xen, which came out of the University of Cambridge Computer Laboratory in 2003, not on something invented for this hype cycle. For identity they brought SPIRE into the zone and stuck with SPIFFE, an open standard, rather than inventing their own. That's the first leg of the fix: the agent acts as itself, with an identity of its own, not as the developer whose laptop it happens to be on. In Mandible that identity is what our policy enforcement point makes decisions against, and a zone that can't prove itself on renewal loses its credentials and its access to the model gateway. (The earlier post walks through how.)

The next leg is capabilities, and Edera has announced them for its agent sandboxes: narrowly scoped, least-privilege grants such as "talk-to-github", attached per sandbox or fork and enforced below the guest, so the workload can't widen them. That is the start of Hardy's prescription. In the strict sense a capability is an unforgeable, attenuable reference, so a sub-agent would receive a narrower slice than its parent and nothing in the chain could ask for what it wasn't handed. Edera hasn't said its design goes that far yet. Capability security is 1970s engineering on a 1960s idea, and it fits a probabilistic actor better than anything invented since.

The leg most stacks skip

Isolation says the agent couldn't exceed its boundary. Identity says who it was. Capabilities say what it was granted. Put those together and you have made confusion harmless for that run.

You still can't prove it afterward.

With the compiler, you could read the source and reason about what it would do with any input. There is no source for an agent in that sense. The only way to know what a non-deterministic actor did is to have witnessed the run: which hosts the proxy allowed and refused, which credentials were injected and when, which capabilities were exercised, what was written. And the witness has to be outside the thing being witnessed, because an actor that can edit its own record is just a deputy with one more capability.

That's the job of Mandible's evidence layer, and today it does part of it. Every zone's output is kept in write-once storage the agent can't read back, and secret releases, attestation failures and quota denials are recorded, so a run that asked for a credential it wasn't given shows up as a gap between what it declared and what it received. The rest is designed and next: deny-by-default egress with every allowed and refused host recorded, policy decisions written with the delegation chain behind them, and capability grants checked against their use. When that lands, the declared side is the authority the workload was granted and the actual side is what the boundary saw it do. A run whose actual stayed inside its declared did what was approved. That matters to whoever approves the system. In federal environments that's an authorizing official, who signs off before a system runs in production. For software, they long ago stopped reviewing every developer's output; they accept the pipeline instead: the stages, the reviews and the gates every change has to pass. An agent fits that shape. Treat it as one more gated stage, and the comparison between declared and actual is evidence in a form the official already knows how to sign. The whitepaper lays out that model end to end for a specific agentic use-case.

This is also why I think nearly all the governance consoles we have today are missing the mark. A policy log tells you what the console decided. It doesn't tell you what the workload was, whether it was the one you signed, or what it actually touched. Evidence has to be rooted where identity is rooted, in the attested boundary, or it's a record of decisions about a workload nobody can name.

Read the paper

The deputy was never going to stop being confused. The fix was always to make the confusion harmless, and then to be able to prove that you did.

Hardy's paper is three pages. Read it before the next vendor deck. Then look at who is building boundaries, identities and capabilities without claiming to have invented them, because that's where the governed agent runtime is actually coming from.

Sources