Assistants, identity and authority / Field essay 84

Agent identity and delegation: the pattern that works today.

Agent identity and delegation are unsettled. The pattern I use: own identity, narrowed tokens per hop, secrets outside the model, recorded raises, default-deny egress.

Published

ESSAY
FIELD ESSAY 84 / ASSISTANTS, IDENTITY AND AUTHORITY

Agent identity and delegation: the pattern that works today

Technical leaders keep asking the same pair of questions. Who is this agent, and what may it do on behalf of which user? And how do credentials reach a sandboxed agent safely? I treat these as design questions without a settled standard answer yet. The short version: give each agent its own identity with no tool permissions by default, narrow the user's token at every hop, keep secrets out of the model's context, grant extra access only through a recorded approval or a policy checked in code, and route all traffic through one default-deny gateway. This essay covers why the problem is still open, the pattern I use today, and the traps I check for at each layer. The step-by-step rollout is in the companion piece on agent identity and permissions.

Why it is still unsolved

Most identity systems were built for two kinds of actor: a person at a keyboard, or a service acting as itself. An agent is neither. It is a piece of software acting for a person, often by way of other agents and tools, and each of those hops is a place where authority can quietly widen.

Two pressures make this harder. Agents get added faster than anyone records who they are or what they can touch. And there is no settled standard yet for an agent acting on a user's behalf. So I don't wait for one. I assemble the pattern from parts that already exist and test whether it holds.

The question I start with

The first thing I ask is: "For any action in the logs, can you tell me which agent did it and for whom?" If the answer is no, nothing else matters yet, because you can't review, limit or revoke what you can't attribute.

Answering it takes two things. Each agent needs its own workload identity, not a shared key. And the user has to travel with every action. Once those exist, I set the agent's tool permissions to empty by default and add each one back on purpose.

The judgment call here is accepting that empty-by-default feels slower. Teams prefer to start broad and trim. But you can see exactly what you add, while deciding what is safe to remove means guessing about behavior you haven't watched. I would rather take a week adding permissions from logs than a quarter arguing about which ones can go.

Delegation is a narrowing at every hop

The most common trap I see is passing the user's token along. It works and it is simple, but it means every agent and tool in the chain holds the user's full authority. One confused hop can then do anything the user could.

The pattern I use is token exchange, as standardized in RFC 8693. At each hop, the user's token is exchanged for a new one. The user is the subject and the agent is the actor. The new token has a scope that is a subset of the user's, an audience limited to one service, and a lifetime of minutes. The next hop exchanges again and can only narrow it.

The judgment call is which scope to request. I size it to the task, not to the user. A user who can close customer accounts asking an agent to summarize their tickets should produce a token that can read tickets and nothing else. I go further on this in give each agent turn its own authority: authority should be scoped to the work in front of the agent, not inherited from the session.

The secret should never be in the model's context

The trap at this layer is "we redact the logs". That treats the log as the exposure point, but the exposure point is the model's context. Anything in context can come back out in a response, in a tool argument, or in a request steered by injected text. The OWASP Top 10 for LLM applications lists both prompt injection and excessive agency as core risks.

So I keep secrets out of the model entirely. A broker issues a short-lived credential for each task. A sidecar or proxy injects it at the moment the tool is used. The model only ever handles a reference to the credential. I described how an agent can request access this way in let an agent ask for a credential without ever seeing it. The design goal is that even a fully compromised prompt has nothing to leak.

Raises are decisions with names

Sometimes an agent needs more than its scope allows. I allow exactly two ways to raise a permission: a recorded human approval, or a standing or temporary policy that is versioned and written down. Code checks that policy deterministically at the moment the tool is used.

There are two traps here. The first is any check that runs inside the model, as in "the agent determined it was permitted". A model's judgment can be steered. A policy check in code can't. The second trap is an approval that outlives its context: someone approves one action, the payload changes, and the old approval still passes. I bind each approval to the specific action and payload, which is the argument in make human approval survive changes in payload and context.

Egress is where I catch what I missed

I assume some layer above will eventually fail. The backstop is the network. Agent work runs in short-lived, isolated sandboxes with default-deny egress, and every outbound request goes through one allow-listed gateway that also enforces tool policy.

My reasoning uses three legs: private data, untrusted content, and a way out. A useful agent often needs the first two. It can read your records, and it reads email or web pages that anyone could have written. So I break the third leg by design. The trap is the alternate path: a shell, a browser, or a one-off script the agent writes that reaches the network some other way. Every path has to end at the same gateway, which is why I build the tool broker around the authority that survives alternate paths.

The log is the exam for the identity design

Every allow and every deny is logged with the agent identity, the user, the policy version, the time, the region, the decision and, for raises, the approver. I treat that log as the test sheet for the whole design.

To test the design, I plant requests that must be denied: an out-of-scope tool, another user's record, an unlisted destination, an expired token, a raise without an approver. Then I size the test with arithmetic, not a gut feeling. Twenty of twenty denied only shows a block rate above about 84%, the lower bound of the Wilson interval for 20 of 20. Showing that fewer than 1% of out-of-scope requests get through takes 381 planted requests with none allowed, and fewer than 0.5% takes 765.

I always run positive controls alongside. A permission model that blocks legitimate work gets bypassed, and a bypassed model protects nothing. Both sets run again on every policy version change.

More on this theme is collected in the agent safety topic.

Questions people ask

Why is agent identity still an unsolved problem?

Identity systems were built for people and for services acting as themselves. An agent acts for a person, often through other agents and tools, and there is no settled standard yet for that delegation. Today you assemble the pattern from existing parts.

What is the difference between agent identity and delegation?

Identity says which agent acted. Delegation says on whose behalf and with how much of their authority. You need both: an identity per agent, and a narrowed, short-lived token at each hop that names the user and the agent.

Can the model decide whether it is allowed to use a tool?

No. Permission raises come from a recorded human approval or a versioned policy, and code checks that policy deterministically at the moment of use. A model's own judgment can be steered by injected text.

How do I know my agent permissions actually hold?

Plant requests that must be denied and count them. Twenty of twenty denied only shows a block rate above about 84%. Showing fewer than 1% get through takes 381 planted requests with none allowed.

If you are designing identity and delegation for your own agents, connect with me on LinkedIn to compare notes and discuss which layer you would trust least today.

CONNECTED READINGForward and back
Keep reading

The answer deserves
another experiment.

Back to the journal