가장(impersonation). 행위자가 사용자의 권한을 받아 사용자로 보입니다. 받는 쪽은 사용자만 봅니다. 에이전트가 끼어 있었다는 흔적이 토큰에 없습니다.
위임(delegation). 행위자는 자기 신원을 유지한 채 사용자를 대신합니다. 받는 쪽은 "에이전트 A가 사용자 B를 대신해 한 일"로 압니다.
에이전트 거버넌스 발표들이 원하는 건 위임 쪽입니다. 사고가 나면 어떤 에이전트였는지 알아야 하니까요.
그림 1. 가장과 위임에서 발급되는 토큰의 차이. RFC 8693의 정의와 act 클레임 설명을 바탕으로 직접 그렸습니다.
act 클레임: 누가 대신했는지 남기기
위임은 JWT의 act(actor) 클레임으로 표현됩니다. RFC는 이 클레임이 "위임이 일어났음을 나타내고 행위자를 식별한다"고 설명합니다.
에이전트가 다른 에이전트를 부르면 act가 중첩됩니다. 이때 규칙이 하나 있습니다. 가장 바깥의 act가 현재 행위자입니다. 안쪽의 이전 행위자들은 참고용이고, 접근 허용 여부를 판단하는 데 쓰지 말라고 합니다.
권한 판단은 "지금 누가 하고 있나"로만 하라는 뜻입니다. 체인 전체를 믿으면 중간 어딘가에서 끼어든 행위자까지 믿게 됩니다.
may_act: 누가 대신해도 되는지 미리 적기
may_act 클레임은 반대 방향입니다. 사용자의 토큰에 "이 행위자는 나를 대신해도 된다"고 미리 적어 둡니다. 인가 서버는 교환 요청이 왔을 때 이 값을 보고 허용할지 정할 수 있습니다.
에이전트 등록 화면에서 "이 에이전트에 권한 위임"을 누르는 동작이, 토큰 수준에서는 이런 형태로 남는다고 보면 이해가 쉽습니다.
범위는 좁게
audience나 resource와 scope를 함께 쓰면, 요청한 권한은 대상 서비스마다 모든 scope를 곱한 조합이 됩니다. RFC는 대상을 여러 개 섞은 요청을 인가 서버가 invalid_target으로 거절할 수 있다고 적어 둡니다.
실무로 옮기면 간단합니다. 에이전트가 도구를 부를 때마다 그 도구 하나, 그 작업 하나에 맞는 토큰을 따로 받습니다. 만능 토큰 하나를 들고 다니게 하지 않습니다.
행사 발표와 이어 보면
벤더마다 이름은 다르지만, 발표들이 풀려는 문제는 이 RFC가 나눈 구분과 겹칩니다.
에이전트에게 고유 신원을 준다 → actor_token이 가리킬 대상이 생긴다
누구를 대신했는지 기록한다 → 위임과 act
도구 호출마다 권한을 좁힌다 → audience·scope로 줄인 토큰
각 제품이 내부에서 실제로 RFC 8693을 쓰는지는 발표에 나오지 않았습니다. 그래서 이 글은 개념을 맞춰 보는 데까지만 씁니다. 제품을 고를 때는 감사 로그에 사용자와 에이전트가 둘 다 남는지부터 확인해 보면 좋겠습니다.
Writing event posts, the same question kept coming up. Agent 365 and Entra Agent ID said they would show "which agent is touching what on behalf of which user." Agent Identity at Next 26 said they would give each agent a unique identity.
Both use the word "on behalf of." But what does "on behalf of" actually mean at the token level? The standard document that addresses this is OAuth 2.0 Token Exchange, RFC 8693.
Problem: With a single service account, you can't tell who did it
Say an agent sends mail on behalf of a user. The easiest approach is to give the agent a service account with broad permissions.
Then the audit log only shows the service account. You can't tell which user's request it was. Conversely, if you pass the user's token as-is, the fact that an agent was involved disappears.
You need both pieces of information. On behalf of whom, and who actually did it.
What token exchange does
RFC 8693 defines a Security Token Service (STS) protocol that works over HTTP and JSON. The client presents a token it holds to the authorization server's token endpoint and receives a new token to use with another service.
subject_token (required): indicates on behalf of whom the request is made.
actor_token (optional): indicates who is actually acting.
audience, resource: the target service the new token will be used with.
scope: narrows the request to only the permissions needed by the target service.
Impersonation and delegation are different
The RFC distinguishes two modes. This distinction is the core of this post.
Impersonation. The actor takes on the user's permissions and appears as the user. The recipient sees only the user. There is no trace in the token that an agent was involved.
Delegation. The actor keeps its own identity while acting on behalf of the user. The recipient knows "Agent A did this on behalf of User B."
What the agent governance announcements want is delegation. Because when an incident happens, you need to know which agent it was.
Figure 1. Difference in issued tokens between impersonation and delegation. Drawn by hand based on RFC 8693 definitions and the act claim description.
The act claim: leaving a record of who acted on behalf of whom
Delegation is expressed through the JWT act (actor) claim. The RFC explains that this claim "indicates that delegation has occurred and identifies the actor."
When an agent calls another agent, act nests. There is one rule here. The outermost act is the current actor. The inner, previous actors are for reference only, and the RFC says not to use them when deciding whether to grant access.
The meaning is: decide access based only on "who is acting right now." If you trust the whole chain, you end up trusting any actor that was inserted somewhere in the middle.
may_act: pre-writing who is allowed to act on behalf of whom
The may_act claim is the reverse direction. It pre-writes into the user's token "this actor is allowed to act on my behalf." When a token exchange request comes in, the authorization server can look at this value to decide whether to allow it.
It's easier to understand if you think of the action of clicking "delegate permissions to this agent" on an agent registration screen as leaving something in this form at the token level.
Keep the scope narrow
When audience or resource is used together with scope, the requested permissions become a combination of all scopes multiplied across each target service. The RFC notes that the authorization server may reject requests mixing multiple targets as invalid_target.
In practice, it's simple. Each time the agent calls a tool, it receives a separate token for that one tool, that one task. It does not carry a single all-purpose token.
Connecting to conference presentations
Vendors use different names, but the problems the presentations aim to solve overlap with the distinctions this RFC makes.
Give the agent a unique identity → a target for the actor_token to point to
Record who it acted on behalf of → delegation and act
Narrow permissions per tool call → tokens reduced by audience·scope
Whether each product actually uses RFC 8693 internally was not shown in the presentations. So this article only goes as far as aligning the concepts. When choosing a product, it's worth checking first whether the audit logs record both the user and the agent.