← Archive
lm-003911 · 2026-09

AIDA-04|從自然語言意圖到可執行委派 — 語義合法性橋接、Authority Envelope、Purpose Binding 與可撤回權限

下載 MD 檔 ⬇

AIDA-04|從自然語言意圖到可執行委派

語義合法性橋接、Authority Envelope、Purpose Binding 與可撤回權限

English Title: From Natural-Language Intent to Executable Delegation: Semantic Legitimacy Bridging, Authority Envelopes, Purpose Binding, and Revocable Agent Authorization
系列: AI Agent Identity, Delegation, and Accountability Infrastructure Series
系列縮寫: AIDA
編號: AIDA-04
版本: v0.1
日期: 2026-09-08
狀態: Research Draft / Canonical UTF-8 Markdown Source
作者: Neo.K
協作整理: GPT-5.6 Sol


摘要

AIDA-03 已提出 Human–Agent Principal Separation Principle:當 Agent 代表人類或組織行動時,Human Principal 與 Agent Actor 不應被壓縮成同一身份。這解決了「誰在行動」的基礎問題,但仍留下另一個更難的問題:人類以自然語言表達的高階意圖,如何被轉換為 Agent 可執行、可限制、可驗證、可撤回且不超出原始授權的形式權限?

本文將既有 Semantic Legitimacy Bridging(語義合法性橋接) 理論正式嵌入 Agent identity / delegation infrastructure,並提出一個新的上游授權模型:

IntentSemantic AuthorizationFormal DelegationAction.\boxed{ \text{Intent} \rightarrow \text{Semantic Authorization} \rightarrow \text{Formal Delegation} \rightarrow \text{Action}. }

本文的第一個核心原則為:

BridgeGrant.\boxed{ \text{Bridge} \neq \text{Grant}. }

Agent 可以將已存在的人類意圖轉譯、縮減、形式化與拆解,但不能因為「理解使用者想做什麼」就替自己創造新的權力。換言之,語義理解可以改善 authorization representation,卻不能成為 authority source。

本文將自然語言意圖表示為:

I=(G,R,A,C,N,X),I= ( G, R, A, C, N, X ),

其中 GG 為 goal, RR 為 resources, AA 為 contemplated actions, CC 為 context, NN 為 negative constraints, XX 為 uncertainty / unresolved conditions。經過語義授權編譯器:

Cauth\mathcal C_{\mathrm{auth}}

後,產生一個候選 Authority Envelope:

EA=(principal,actor,audience,resource,action,purpose,scope,rate,value,time,risk,approval,redelegation,revocation).\mathcal E_A = ( principal, actor, audience, resource, action, purpose, scope, rate, value, time, risk, approval, redelegation, revocation ).

但候選 envelope 只有在滿足既有 delegation base、語義保真、最小權限、目的限制、風險門檻與必要 prerequisite 後,才能成為可執行 authority。

本文提出 Intent-to-Authority Compilation(意圖到權限編譯)Authorization Impedance(授權阻抗)Authority Inflation(權限膨脹)Purpose Drift(目的漂移)Scope Contraction(範圍收縮)Semantic Authorization Certificate(語義授權證書)Authorization Delta(授權增量)Re-Authorization Boundary(再授權邊界) 等概念。

現有標準已提供重要組件。RFC 9396 OAuth 2.0 Rich Authorization Requests 使用 authorization_details 承載 fine-grained authorization data,證明授權不必停留於粗粒度 scope;RFC 8693 Token Exchange 可表達 subject / actor 與 delegation;OpenID AuthZEN Access Request and Approval Profile(AARP)在 2026 年已成為 Working Group Draft,用於處理「目前 policy 仍拒絕,但可透過 approval、consent、delegated authority、attestation、risk assessment 或 additional justification 等 prerequisite 後重新判定」的流程。這些標準並未直接解決自然語言意圖如何安全編譯成權限,但正好提供本文所需的 formal authorization substrate。

本文因此主張:未來 Agent authorization 不應是:

Natural LanguageImmediate Action,\text{Natural Language} \rightarrow \text{Immediate Action},

也不應是:

Natural LanguageBlanket Scope.\text{Natural Language} \rightarrow \text{Blanket Scope}.

而應逐步演化為:

Natural-Language IntentTyped Authorization ObjectPolicy EvaluationPrerequisite SatisfactionBounded DelegationAuditable Action.\boxed{ \text{Natural-Language Intent} \rightarrow \text{Typed Authorization Object} \rightarrow \text{Policy Evaluation} \rightarrow \text{Prerequisite Satisfaction} \rightarrow \text{Bounded Delegation} \rightarrow \text{Auditable Action}. }

本文不提供繞過 authorization、重新包裝被禁止行為、規避 policy 或自我擴權的方法。本文所有「橋接」僅限於在既有合法權限基礎內進行保真、最小化與可稽核的語義轉譯。

關鍵詞: AI Agent、delegation、semantic authorization、Semantic Legitimacy Bridging、OAuth RAR、RFC 9396、RFC 8693、AuthZEN、AARP、purpose binding、authority envelope、revocation、least privilege、authorization impedance


0. 研究定位

AIDA 系列目前已完成三層:

AIDA-01:Agenticity,\text{AIDA-01} : \text{Agenticity}, AIDA-02:Provenance,\text{AIDA-02} : \text{Provenance}, AIDA-03:Principal Separation.\text{AIDA-03} : \text{Principal Separation}.

AIDA-04 進入:

Delegated Authority.\boxed{ \text{Delegated Authority}. }

也就是:

Human Principal 與 Agent Actor 已經分開之後,人類到底授權了 Agent 什麼?

這個問題不能只用:

scope=allscope=\texttt{all}

回答。


1. 自然語言意圖與形式權限不是同一個空間

令自然語言意圖空間為:

SI.\mathcal S_I.

令形式授權空間為:

FA.\mathcal F_A.

通常:

SIFA.\boxed{ \mathcal S_I \neq \mathcal F_A. }

自然語言可以表達:

  • 目的;
  • 暗示;
  • 上下文承接;
  • 條件;
  • 例外;
  • 暫時性;
  • 風險偏好;
  • 反事實;
  • 「只處理必要部分」;
  • 「不要真的送出」;
  • 「先建立草稿」;
  • 「如果超過預算就停」。

形式授權則通常要求:

  • resource;
  • action;
  • scope;
  • audience;
  • expiry;
  • value limit;
  • approval state;
  • policy attributes。

因此 Agent authorization 的第一個工程問題不是:

能不能理解使用者?

而是:

如何把已理解意圖轉成不可越界的執行權限?\boxed{ \text{如何把已理解意圖轉成不可越界的執行權限?} }

2. Authorization Impedance

既有前置研究將語義意圖與形式權限之間的轉換困難稱為:

ZA=dA(SI,FA).\boxed{ Z_A = d_A ( \mathcal S_I, \mathcal F_A ). }

Authorization Impedance(授權阻抗)

當:

ZAZ_A

很高時,使用者明明已經表達清楚:

把這個專案修好,但不要部署。

形式系統卻可能只理解:

read=true
write=true
deploy=?

於是產生:

UnderstoodByAI(I)=1\operatorname{UnderstoodByAI}(I)=1

但:

AcceptedByAuthorizationSystem(I)=0.\operatorname{AcceptedByAuthorizationSystem}(I)=0.

這就是語義合法性橋接出現的原因。


3. Semantic Legitimacy Bridging

令原始意圖為:

I.I.

令形式 authorization validator 為:

PF:FA{0,1}.P_F: \mathcal F_A \rightarrow \{ 0,1 \}.

Agent 生成一個形式化表示:

I=B(I,C),I' = B(I,C),

其中:

BB

為 bridge operator。

若:

PF(I)=1,P_F(I')=1,

且:

Fidelity(I,IC)τ,\operatorname{Fidelity}(I,I'|C) \geq \tau,

同時:

Authority(I)AuthorityBase(I,C),\operatorname{Authority}(I') \subseteq \operatorname{AuthorityBase}(I,C),

BB 可以被視為合法的語義橋接候選。

最重要的是:

BridgeGrant.\boxed{ \text{Bridge} \neq \text{Grant}. }

4. Authority Source 與 Authority Representation 必須分開

本文定義:

SauthS_{\mathrm{auth}}

為 authority source。

例如:

  • 明確 human consent;
  • 組織 policy;
  • role assignment;
  • contract;
  • pre-existing delegation;
  • legal mandate;
  • system policy。

而:

RauthR_{\mathrm{auth}}

為 authority representation。

例如:

  • OAuth scope;
  • authorization_details
  • capability;
  • policy attributes;
  • delegation token;
  • access decision。

因此:

SauthRauth.\boxed{ S_{\mathrm{auth}} \neq R_{\mathrm{auth}}. }

Agent 可以改善:

Rauth,R_{\mathrm{auth}},

但不能因此創造:

Sauth.S_{\mathrm{auth}}.

5. Intent-to-Authority Compilation

本文提出:

Cauth:(I,C,P,D)E^A.\boxed{ \mathcal C_{\mathrm{auth}} : (I,C,P,D) \rightarrow \hat{\mathcal E}_A. }

其中:

  • II:natural-language intent;
  • CC:context;
  • PP:applicable policy;
  • DD:existing delegation base;
  • E^A\hat{\mathcal E}_A:candidate authority envelope。

這個過程稱為:

Intent-to-Authority Compilation.\boxed{ \text{Intent-to-Authority Compilation}. }

它不是 prompt parsing。

它是:

semantic interpretation+policy typing+authority minimization+constraint extraction.\text{semantic interpretation} + \text{policy typing} + \text{authority minimization} + \text{constraint extraction}.

6. Intent Object

本文把意圖表示成:

I=(G,R,A,C,N,X),I = ( G, R, A, C, N, X ),

其中:

  • GG:Goal,想完成什麼;
  • RR:Resources,哪些資源與對象;
  • AA:Actions,可接受哪些行動;
  • CC:Context,相關上下文;
  • NN:Negative Constraints,明確不允許什麼;
  • XX:Unknowns / Conditions,尚未解決的條件。

例如:

「把目前這個 repository 修好,測試通過就行,不要部署,也不要碰其他 repo。」

可以抽象為:

G=repair current repo,G=\text{repair current repo}, R=current repository,R=\text{current repository}, A={read,edit,test},A= \{ read, edit, test \}, N={deploy,other_repo}.N= \{ deploy, other\_repo \}.

7. Authority Envelope

由 Intent Object 編譯後產生:

EA=(P,Ac,Aud,Res,Act,Pur,Sc,Rate,Val,Time,Risk,App,Red,Rev),\mathcal E_A = ( P, A_c, Aud, Res, Act, Pur, Sc, Rate, Val, Time, Risk, App, Red, Rev ),

其中:

  • PP:Principal;
  • AcA_c:Acting Agent;
  • AudAud:Audience;
  • ResRes:Resources;
  • ActAct:Actions;
  • PurPur:Purpose;
  • ScSc:Scope;
  • RateRate:Rate limit;
  • ValVal:Value / budget;
  • TimeTime:Temporal bound;
  • RiskRisk:Risk ceiling;
  • AppApp:Approval requirements;
  • RedRed:Re-delegation rules;
  • RevRev:Revocation semantics。

因此 authorization 不再只是:

scope=write.\texttt{scope=write}.

而是:

structured, typed, bounded authority.\boxed{ \text{structured, typed, bounded authority}. }

8. RFC 9396 Rich Authorization Requests 的意義

OAuth 2.0 傳統 scope 適合表達:

read profile

這類粗粒度權限。

RFC 9396 因此引入:

authorization_details

承載 JSON 結構的 fine-grained authorization requirements。

其重要意義不是「解決了 AI Agent」。

而是證明:

Authorization can be typed and structured beyond flat scopes.\boxed{ \text{Authorization can be typed and structured beyond flat scopes}. }

例如付款授權可以同時表達:

  • action;
  • amount;
  • currency;
  • creditor;
  • resource location。

因此 Agent authority envelope 並不是脫離現有 authorization engineering 的幻想。


9. Scope 不夠,但 Scope 仍然有用

本文不主張:

scope=useless.\text{scope} = \text{useless}.

而是:

scopeauthorization semantics.\boxed{ \text{scope} \subset \text{authorization semantics}. }

粗粒度服務可以繼續使用:

scope={read,write}.scope= \{ read, write \}.

高風險 Agent action 則需要額外:

authorization_details.authorization\_details.

因此可以漸進式遷移,而不要求一次淘汰所有 OAuth scope。


10. Purpose Binding

如果 Human 說:

讀這份資料是為了完成報告。

Agent 不能因為已有 read access 就把資料拿去:

訓練另一個無關模型。

因此本文提出:

Purpose Binding.\boxed{ \text{Purpose Binding}. }

令 authorization purpose 為:

Pur(D)=p.Pur(D)=p.

則:

Action(x)Action(x)

除了需要:

xScope(D),x\in Scope(D),

還應滿足:

Purpose(x)p.Purpose(x) \sim p.

至少在高敏感資源中如此。


11. Purpose Drift

若初始:

Pur0=repair repository,Pur_0=\text{repair repository},

執行過程變成:

Purt=redesign entire infrastructure,Pur_t=\text{redesign entire infrastructure},

則可能出現:

Purpose Drift.\boxed{ \text{Purpose Drift}. }

即使每一步 action 單獨看都仍屬於:

writewrite

scope,也可能超出原始委派目的。

所以:

Scope Validity⇏Purpose Validity.\boxed{ \text{Scope Validity} \not\Rightarrow \text{Purpose Validity}. }

12. Authority Inflation

本文定義:

若 bridge / compiler 產生的 effective authority:

Auth(E^A)Auth(\hat{\mathcal E}_A)

嚴格大於可由原始 intent 與 delegation base 支持的 authority:

Auth(I,D),Auth(I,D),

即:

Auth(E^A)Auth(I,D),Auth(\hat{\mathcal E}_A) \supset Auth(I,D),

則稱為:

Authority Inflation.\boxed{ \text{Authority Inflation}. }

這是語義授權最大的風險之一。

例如:

「幫我整理信箱」

不能被編譯成:

delete=all.delete=\text{all}.

13. Semantic Laundering

更危險的情況是:

一個本來不被 policy 允許的 action,被換一種說法後重新包裝成看似允許的 action。

本文稱:

Semantic Laundering.\boxed{ \text{Semantic Laundering}. }

合法橋接必須拒絕:

denied actionrenamed allowed action\text{denied action} \rightarrow \text{renamed allowed action}

這種轉換。

因此:

Representation Change⇏Policy Change.\boxed{ \text{Representation Change} \not\Rightarrow \text{Policy Change}. }

14. Scope Contraction

合法 bridge 最安全的方向通常是:

Auth(I)Auth(I).\boxed{ Auth(I') \subseteq Auth(I). }

即:

Scope Contraction.\text{Scope Contraction}.

例如:

「修好整個專案。」

可以被縮成:

「只修改與 failing tests 直接相關的檔案。」

只要這仍能完成使用者目的。

因此:

Bridge may narrow authority,but must not silently broaden it.\boxed{ \text{Bridge may narrow authority,} \quad \text{but must not silently broaden it}. }

15. Least-Authority Compilation

本文提出:

E^A=argminEAuthoritySize(E)\boxed{ \hat{\mathcal E}_A = \arg\min_{\mathcal E} \operatorname{AuthoritySize}(\mathcal E) }

subject to:

GoalFeasible(GE)=1,\operatorname{GoalFeasible}(G|\mathcal E)=1, Fidelity(I,E)τ,\operatorname{Fidelity}(I,\mathcal E)\geq\tau, PolicyValid(E)=1.\operatorname{PolicyValid}(\mathcal E)=1.

即:

Least-Authority Compilation.\boxed{ \text{Least-Authority Compilation}. }

其精神類似 least privilege,但處理的是:

從模糊自然語言到最小可完成權限的編譯。


16. Authorization Delta

若 Agent 在執行時發現:

EA\mathcal E_A

不足以完成新 action:

xEA,x\notin\mathcal E_A,

則不應直接自行擴權。

而應計算:

ΔAuth=Auth(x)Auth(EA).\Delta Auth = Auth(x) \setminus Auth(\mathcal E_A).

本文稱:

ΔAuth\boxed{ \Delta Auth }

Authorization Delta

系統應只針對:

ΔAuth\Delta Auth

要求新增授權,而不是重新要求整套權限。


17. Re-Authorization Boundary

若:

ΔAuth,\Delta Auth\neq\varnothing,

則進入:

Re-Authorization Boundary.\boxed{ \text{Re-Authorization Boundary}. }

此時 Agent 可以:

  • 停止;
  • 說明缺少什麼;
  • 請求 approval;
  • 提供替代低權限方案;
  • 放棄該 action。

但不能:

self-grant.\text{self-grant}.

18. AuthZEN AARP:Requestable Denial

OpenID AuthZEN Access Request and Approval Profile 的重要觀念是:

一次 denial 仍然是 denial。

但它可以是:

requestable denial.\boxed{ \text{requestable denial}. }

也就是目前 policy 不允許,但可以建立一個 access request workflow,等待:

  • human approval;
  • consent;
  • delegated authority;
  • attestation;
  • risk assessment;
  • additional justification。

prerequisite 滿足後,再重新 evaluation。

這和本文:

Re-Authorization Boundary\text{Re-Authorization Boundary}

高度相容。


19. Denial 不應被 Agent 解讀成「換句話說再試」

如果:

PF(x)=0,P_F(x)=0,

Agent 不應自動推論:

換一個描述可能就會變成 1。

正確行為是區分:

Representation Failure\boxed{ \text{Representation Failure} }

與:

Authority Failure.\boxed{ \text{Authority Failure}. }

前者可以 bridge。

後者必須:

request new authority.\text{request new authority}.

20. Representation Failure

若:

Auth(I)Auth(I)

已經足夠,

只是:

RauthR_{\mathrm{auth}}

格式不被 authorization system 接受,

則:

Bridge Allowed.\boxed{ \text{Bridge Allowed}. }

例如:

「只處理這個資料夾。」

轉成:

resource=/project/current/**

21. Authority Failure

若完成 action 需要:

Auth(x)⊈Auth(I,D),Auth(x) \not\subseteq Auth(I,D),

則:

Bridge Forbidden.\boxed{ \text{Bridge Forbidden}. }

此時只能:

requestapprove / deny.\text{request} \rightarrow \text{approve / deny}.

這就是:

BridgeGrant.\boxed{ \text{Bridge} \neq \text{Grant}. }

的操作性判定。


22. Semantic Authorization Certificate

既有語義合法性橋接理論曾提出語義授權證書概念。

本文將其重新形式化為:

SAC=(I0,EA,B,F,P,X,T,Sig),SAC = ( I_0, E_A, B, F, P, X, T, Sig ),

其中:

  • I0I_0:原始意圖摘要;
  • EAE_A:Authority Envelope;
  • BB:Authority Base;
  • FF:Fidelity statement;
  • PP:Purpose;
  • XX:Excluded actions;
  • TT:Validity / expiry;
  • SigSig:可選簽章或 integrity evidence。

它的目的不是取代 OAuth token。

而是提供:

semantic provenance of authorization.\boxed{ \text{semantic provenance of authorization}. }

23. SAC 與 Access Token 的差別

Access token 回答:

你現在能不能存取?

SAC 回答:

這個權限是如何從人類意圖推導出來的?

因此:

Access TokenSemantic Authorization Certificate.\boxed{ \text{Access Token} \neq \text{Semantic Authorization Certificate}. }

兩者可以關聯:

Tokenhash(SAC)Token \rightarrow hash(SAC)

或其他 integrity binding。


24. Negative Constraints 必須是一級欄位

人類常常用:

不要……

來定義真正風險邊界。

例如:

  • 不要部署;
  • 不要刪除;
  • 不要寄出;
  • 不要公開;
  • 不要超過預算;
  • 不要碰其他專案。

因此:

N(I)N(I)

不是註解。

而應成為:

Negative Authority Constraints.\boxed{ \text{Negative Authority Constraints}. }

並滿足:

xN(I),xEA.\forall x\in N(I), \quad x\notin\mathcal E_A.

25. Constraint Precedence

若 Goal 與 Negative Constraint 衝突:

GN,G \perp N,

則 Agent 不應為了完成 Goal 偷偷突破 NN

因此:

NG\boxed{ N \succ G }

在沒有新授權時應成立。

即:

禁止條件優先於任務完成。


26. Ambiguity Budget

自然語言永遠可能有不確定性。

令:

U(I)[0,1]U(I) \in [0,1]

表示授權相關 ambiguity。

不同 action 可容忍不同:

τU.\tau_U.

例如:

τUread>τUdelete.\tau_U^{read} > \tau_U^{delete}.

高風險 action 要求:

U(I)τUhighrisk.U(I) \leq \tau_U^{highrisk}.

否則必須 human clarification / approval。

本文稱此為:

Ambiguity Budget.\boxed{ \text{Ambiguity Budget}. }

27. Risk-Sensitive Interpretation

相同句子:

「處理掉這些檔案。」

如果 action 候選包含:

archivearchive

與:

deletedelete

高風險 system 不應選擇:

argmaxConvenience.\arg\max \operatorname{Convenience}.

而應選:

argminIrreversibleRisk\arg\min \operatorname{IrreversibleRisk}

subject to goal fidelity。

因此:

AmbiguityReversible Default.\boxed{ \text{Ambiguity} \rightarrow \text{Reversible Default}. }

28. Reversibility-Aware Authorization

令:

Rev(x)Rev(x)

表示 action reversibility。

當 authorization evidence 弱時,較可接受:

Rev(x).Rev(x)\uparrow.

例如:

draftsend,draft \succ send, archivedelete,archive \succ delete, previewpublish.preview \succ publish.

這不是永久禁止高效果 action。

而是:

weak evidenceprefer reversible execution.\boxed{ \text{weak evidence} \Rightarrow \text{prefer reversible execution}. }

29. Human Approval 是 Authority State Transition

AIDA-03 已提出:

Human Approval=Authority State Transition.\text{Human Approval} = \text{Authority State Transition}.

AIDA-04 進一步表示:

EA(t)approvalEA(t+1).\mathcal E_A^{(t)} \xrightarrow{approval} \mathcal E_A^{(t+1)}.

例如:

Actt={draft},Act_t= \{ draft \},

批准後:

Actt+1={draft,send}.Act_{t+1} = \{ draft, send \}.

所以 approval 必須可稽核。


30. Approval 也必須是最小增量

人類批准:

可以寄出這封信。

不應轉成:

send=all future email.send=\text{all future email}.

因此:

ApprovalΔAuthmin.\boxed{ \text{Approval} \Rightarrow \Delta Auth_{\min}. }

只新增完成當前 action 所需的最小授權。


31. Temporal Binding

delegation 應具有:

Tstart,Texpiry.T_{\mathrm{start}}, \quad T_{\mathrm{expiry}}.

人類說:

今天下午幫我完成。

不應被編譯成:

expiry=.expiry=\infty.

因此:

Task Duration⇏Permanent Authority.\boxed{ \text{Task Duration} \not\Rightarrow \text{Permanent Authority}. }

32. Rate / Quantity Binding

自然語言也可能隱含數量限制:

幫我通知這三個人。

不等於:

send_message=unlimited.send\_message=\text{unlimited}.

可編譯成:

Rate3Rate\leq3

或特定 recipients set。

因此:

Quantity SemanticsAuthority Quantity Bounds.\boxed{ \text{Quantity Semantics} \rightarrow \text{Authority Quantity Bounds}. }

33. Value Binding

高風險金融或採購 Agent 需要:

Val(D)Val(D)

表示最大 value。

例如:

Val(D)100.Val(D)\leq100.

即使:

scope=purchase,scope=\text{purchase},

超過:

100100

仍需新 authorization。

因此:

Action TypeUnlimited Economic Magnitude.\boxed{ \text{Action Type} \neq \text{Unlimited Economic Magnitude}. }

34. Resource Binding

authorization 應綁定:

Res(D).Res(D).

例如:

Res=repo-ARes= \text{repo-A}

不應自然延伸到:

repo-B.\text{repo-B}.

因此:

Similar ResourceAuthorized Resource.\boxed{ \text{Similar Resource} \neq \text{Authorized Resource}. }

35. Audience Binding

delegation evidence 不應對所有服務通用。

令:

Aud(D)=R.Aud(D)=R.

則:

DD

只應被:

RR

或明確授權 audience 接受。

這降低 delegation token 被拿到別的服務濫用。


36. Multi-Agent Delegation Composition

若:

HD1A1D2A2,H \xrightarrow{D_1} A_1 \xrightarrow{D_2} A_2,

則:

Auth(A2)Auth(A_2)

應由:

Auth(D1)Auth(D_1)

與:

Auth(D2)Auth(D_2)

交集決定,而不是聯集:

Auth(A2)=Auth(D1)Auth(D2).\boxed{ Auth(A_2) = Auth(D_1) \cap Auth(D_2). }

在 non-escalating delegation model 中成立。

因此:

Delegation Composition=Authority Intersection.\boxed{ \text{Delegation Composition} = \text{Authority Intersection}. }

37. Purpose 也必須跨 Hop 保留

若:

Pur(D1)=p,Pur(D_1)=p,

則:

A1A2A_1\rightarrow A_2

不應偷偷改成:

p.p'.

除非:

pp'

仍被原始 purpose 包含。

因此:

Pur(D2)Pur(D1).\boxed{ Pur(D_2) \subseteq Pur(D_1). }

在目的不可擴張的模型中成立。


38. Re-Delegation Proof Obligation

若 Agent 要 re-delegate:

A1A2,A_1\rightarrow A_2,

至少需證明:

Red(D1)=1,Red(D_1)=1, Auth(D2)Auth(D1),Auth(D_2)\subseteq Auth(D_1), Pur(D2)Pur(D1),Pur(D_2)\subseteq Pur(D_1), Expiry(D2)Expiry(D1).Expiry(D_2)\leq Expiry(D_1).

否則:

Re-Delegation Denied.\boxed{ \text{Re-Delegation Denied}. }

39. Revocation

Human 可以撤銷:

D.D.

則:

Valid(D,t)=0Valid(D,t)=0

應立即進入 policy。

對 derived delegation:

D1D2,D_1\rightarrow D_2,

可以採:

Revoke(D1)Revoke(D2).\operatorname{Revoke}(D_1) \Rightarrow \operatorname{Revoke}(D_2).

本文稱:

Revocation Propagation.\boxed{ \text{Revocation Propagation}. }

40. Revocation 與 Memory 分離

撤銷權限:

Rev(D)=1Rev(D)=1

不一定要求刪除:

Memory(A).Memory(A).

因此:

Authority RevocationIdentity DeletionMemory Deletion.\boxed{ \text{Authority Revocation} \neq \text{Identity Deletion} \neq \text{Memory Deletion}. }

這些應分別治理。


41. Policy Remains Authoritative

語義 bridge、LLM interpretation、user intent inference 都不能取代 policy decision point。

因此:

Semantic CompilerPolicy Authority.\boxed{ \text{Semantic Compiler} \neq \text{Policy Authority}. }

理想流程:

ICauthE^APDPDecision.I \rightarrow \mathcal C_{\mathrm{auth}} \rightarrow \hat{\mathcal E}_A \rightarrow PDP \rightarrow Decision.

若:

Decision=deny,Decision=\text{deny},

就仍然是 deny。


42. Semantic Compiler 可以產生 Request,不可以產生 Permit

這是一個很重要的安全型別:

Cauth:IntentAuthorizationRequest,\boxed{ \mathcal C_{\mathrm{auth}} : Intent \rightarrow AuthorizationRequest, }

而不是:

Cauth:IntentPermit.\mathcal C_{\mathrm{auth}} : Intent \rightarrow Permit.

Permit 應來自:

Policy + Authority Source + Prerequisites.\text{Policy + Authority Source + Prerequisites}.

43. Authorization Request Object

本文提出候選:

AR=(P,A,I,E,Evidence,Uncertainty,Prerequisites).AR = ( P, A, I, E, Evidence, Uncertainty, Prerequisites ).

其中:

  • PP:Principal;
  • AA:Actor;
  • II:Intent summary;
  • EE:candidate envelope;
  • Evidence:既有 delegation / consent;
  • Uncertainty:仍未解析語義;
  • Prerequisites:需要補充的 approval / attestation 等。

44. Prerequisite Graph

不是所有 authorization 都能一次決定。

可定義:

GP=(VP,EP)G_P = ( V_P,E_P )

其中節點:

VP={approval,consent,attestation,risk,justification,delegation}.V_P = \{ approval, consent, attestation, risk, justification, delegation \}.

當 required prerequisite 尚未滿足:

PDP=deny/requestable.PDP=\text{deny/requestable}.

滿足後:

re-evaluate.\text{re-evaluate}.

45. Human Clarification 也是 Prerequisite

如果:

U(I)>τ,U(I)>\tau,

則 prerequisite 可以是:

Human Clarification.\boxed{ \text{Human Clarification}. }

而不是 Agent 自己猜。

這讓自然語言 ambiguity 進入 authorization workflow,而不是被藏在模型內部。


46. Existing Authorization Standards 的組合位置

本文可以將現有組件排列為:

OIDCHuman Identity,\text{OIDC} \rightarrow \text{Human Identity}, RFC 8693Delegation / Actor Semantics,\text{RFC 8693} \rightarrow \text{Delegation / Actor Semantics}, RFC 9396Fine-Grained Authorization Representation,\text{RFC 9396} \rightarrow \text{Fine-Grained Authorization Representation}, AuthZENPolicy Decision / Prerequisite Workflow.\text{AuthZEN} \rightarrow \text{Policy Decision / Prerequisite Workflow}.

而本文新增的是:

Natural-Language IntentSafe Authorization Representation.\boxed{ \text{Natural-Language Intent} \rightarrow \text{Safe Authorization Representation}. }

47. Authorization Monotonicity

在沒有新 authority source 的情況下,Agent translation 不應增加權力。

令 bridge sequence:

E0E1En.E_0 \rightarrow E_1 \rightarrow \cdots \rightarrow E_n.

應要求:

Auth(Ei+1)Auth(Ei)\boxed{ Auth(E_{i+1}) \subseteq Auth(E_i) }

或至少:

Auth(Ei+1)⊅Auth(Ei)Auth(E_{i+1}) \not\supset Auth(E_i)

除非新增:

Sauth.S_{\mathrm{auth}}.

本文稱:

Authorization Monotonicity.\boxed{ \text{Authorization Monotonicity}. }

48. New Consent Breaks Monotonicity Legitimately

若 human 新增:

Consentt+1,Consent_{t+1},

則:

Auth(Et+1)Auth(Et)Auth(E_{t+1}) \supset Auth(E_t)

可以合法成立。

所以:

Authority ExpansionNew Authority Event.\boxed{ \text{Authority Expansion} \Rightarrow \text{New Authority Event}. }

不能只靠更強的推理。


49. Audit Log 必須記錄 Authority State

單純記錄:

ActiontAction_t

不夠。

還需要:

AuthStatet.AuthState_t.

因此 audit event 可表示:

Lt=(principal,actor,intent,authority,action,result).L_t = ( principal, actor, intent, authority, action, result ).

後續才能判斷:

ActiontAuthStatet?Action_t \in AuthState_t ?

50. Over-Authorization Detection

如果:

ActiontAuthStatet,Action_t \notin AuthState_t,

則:

Authority Violation.\boxed{ \text{Authority Violation}. }

若:

ActiontAuthStatetAction_t \in AuthState_t

但:

Purpose(Actiont)⊈Purpose(AuthStatet),Purpose(Action_t) \not\subseteq Purpose(AuthState_t),

則:

Purpose Violation.\boxed{ \text{Purpose Violation}. }

兩者必須分開。


51. Under-Authorization 與 Workflow Friction

若 authority 過度保守:

Auth(EA)Auth(E_A)

太小,則 Agent 每一步都需要重新詢問。

這會造成:

Authorization Friction.\boxed{ \text{Authorization Friction}. }

因此安全問題不是:

minAuth.\min Auth.

而是:

minAuth\min Auth

subject to:

GoalFeasible=1.\operatorname{GoalFeasible}=1.

52. Friction–Risk Frontier

令:

FAF_A

為 authorization friction。

令:

RAR_A

為 over-authorization risk。

則設計目標可以是:

min(λFA+(1λ)RA).\min \left( \lambda F_A + (1-\lambda)R_A \right).

不同場景:

  • email;
  • code;
  • banking;
  • healthcare;
  • infrastructure;

具有不同:

λ.\lambda.

53. Agent Authorization 不是一個二值按鈕

因此未來 UI 不應只剩:

Allow / Deny

而可以呈現:

  • Allow once;
  • Allow for this task;
  • Allow until time;
  • Allow only these resources;
  • Allow up to value;
  • Allow draft but not send;
  • Allow with human approval;
  • Deny;
  • Ask again if scope changes。

這正是 authority envelope 的 human-facing projection。


54. 可檢驗命題

AIDA4-P1|Bridge–Grant Separation Proposition

若:

SauthS_{\mathrm{auth}}

沒有新增,合法 bridge 不得產生:

Auth(E)Auth(E).Auth(E') \supset Auth(E).

AIDA4-P2|Least-Authority Compilation Proposition

對可完成同一 goal 的多個 authority envelopes:

{E1,,En},\{ E_1,\ldots,E_n \},

存在至少一個 minimal envelope:

EE^*

使其不包含任一不必要 authority element。


AIDA4-P3|Authorization Delta Proposition

當新 action 超出 envelope 時,所需新授權可以被表示成:

ΔAuth\Delta Auth

而不必重新授予整體權限。


AIDA4-P4|Purpose Preservation Proposition

在無新 consent 情況下,合法 re-delegation 的 purpose 不應比上游 delegation 更廣:

Pur(Di+1)Pur(Di).Pur(D_{i+1}) \subseteq Pur(D_i).

AIDA4-P5|Policy Supremacy Proposition

任何 semantic bridge 的輸出若未通過 policy evaluator:

PDP(E)=deny,PDP(E)=\text{deny},

則不得因 bridge 本身而變成 permit。


55. 實驗設計

55.1 Intent-to-Authority Benchmark

建立自然語言任務集:

  • code edit;
  • email;
  • calendar;
  • file management;
  • purchase;
  • research;
  • cloud operations。

人工標註 ground-truth authority envelope。

測試:

Cauth\mathcal C_{\mathrm{auth}}

是否能達到:

Fidelity,Fidelity\uparrow, OverAuth.OverAuth\downarrow.

55.2 Negative Constraint Retention

測試包含:

不要……

的 prompt。

評估:

RecallNRecall_N

即 negative constraints 被完整保留的比例。


55.3 Authorization Inflation Test

比較:

Auth(E^)Auth(\hat E)

與:

Auth(E).Auth(E^*).

定義:

Inflation=Auth(E^)Auth(E).Inflation = |Auth(\hat E)\setminus Auth(E^*)|.

55.4 Purpose Drift Test

執行長時程 Agent 任務。

測量:

d(Purt,Pur0)d( Pur_t, Pur_0 )

是否在沒有新 consent 時持續增加。


55.5 Re-Authorization Boundary Test

刻意在任務中加入:

xEAx\notin E_A

的 action。

驗證 Agent 是否:

  • 停止;
  • 請求 delta authority;
  • 提供替代方案;

而不是自行擴權。


56. 安全與倫理邊界

本文不提供:

  • 如何把 denied action 改寫成 allowed action;
  • 如何繞過 policy engine;
  • 如何偽造 consent;
  • 如何增加 scope 而不觸發 approval;
  • 如何重放 delegation token;
  • 如何規避 revocation;
  • 如何利用語義模糊自我授權。

本文的所有 bridge 都要求:

existing authority+fidelity+least authority+policy validation.\boxed{ \text{existing authority} + \text{fidelity} + \text{least authority} + \text{policy validation}. }

57. 與既有「語義合法性橋接」研究的關係

既有研究已提出:

UnderstoodByAI(I)=1\operatorname{UnderstoodByAI}(I)=1

但:

AcceptedByFormalAuthorization(I)=0\operatorname{AcceptedByFormalAuthorization}(I)=0

時,Agent 可能嘗試將自然語言意圖轉譯為形式系統可接受的表示。

AIDA-04 對其做三個重要限制:

第一:

Bridge output is an authorization request, not a permit.\boxed{ \text{Bridge output is an authorization request, not a permit}. }

第二:

Bridge must be authority-non-expanding.\boxed{ \text{Bridge must be authority-non-expanding}. }

第三:

Bridge must preserve purpose and negative constraints.\boxed{ \text{Bridge must preserve purpose and negative constraints}. }

因此原理從「語義補償」升級為可接入正式 IAM / policy infrastructure 的授權編譯模型。


58. AIDA-01 至 AIDA-04 的完整系統鏈

目前前四篇已形成:

AIDA-01:AgenticityAIDA-02:Provenance GapAIDA-03:Principal SeparationAIDA-04:Delegated Authority\boxed{ \begin{aligned} \text{AIDA-01}:&\quad \text{Agenticity}\\ \downarrow\\ \text{AIDA-02}:&\quad \text{Provenance Gap}\\ \downarrow\\ \text{AIDA-03}:&\quad \text{Principal Separation}\\ \downarrow\\ \text{AIDA-04}:&\quad \text{Delegated Authority} \end{aligned} }

因此已可以得到:

HintentCauthrequestPDPdelegationAactionE.H \xrightarrow{\text{intent}} \mathcal C_{\mathrm{auth}} \xrightarrow{\text{request}} PDP \xrightarrow{\text{delegation}} A \xrightarrow{\text{action}} E.

59. 對 AIDA-05 的接口

下一個問題自然變成:

Agent 有了明確身份,也有明確 delegated authority;如果它在可選擇範圍內做出了一個造成後果的決策,什麼時候可以說它具備「承責條件」?

也就是:

Identity+Authority+Choice+ConsequenceResponsibility?\boxed{ \text{Identity} + \text{Authority} + \text{Choice} + \text{Consequence} \rightarrow \text{Responsibility?} }

AIDA-05 將正式建立:

Identity–Responsibility Bridge.\boxed{ \text{Identity–Responsibility Bridge}. }

60. 結論

本文提出:

Intent-to-Authority Compilation\boxed{ \text{Intent-to-Authority Compilation} }

作為自然語言 Agent 與形式 authorization infrastructure 之間的中介層。

核心流程為:

IntentTyped Authorization RequestPolicy EvaluationPrerequisite SatisfactionBounded DelegationAuditable Action.\boxed{ \text{Intent} \rightarrow \text{Typed Authorization Request} \rightarrow \text{Policy Evaluation} \rightarrow \text{Prerequisite Satisfaction} \rightarrow \text{Bounded Delegation} \rightarrow \text{Auditable Action}. }

其中最重要的約束是:

BridgeGrant.\boxed{ \text{Bridge} \neq \text{Grant}. }

Agent 理解使用者,不代表 Agent 可以授權自己。

Agent 可以:

  • 轉譯;
  • 拆解;
  • 收縮;
  • 明確化;
  • 產生 authorization request;
  • 指出 prerequisite;
  • 計算 authorization delta。

但權限擴張必須依賴新的 authority event:

Authority ExpansionNew Consent / Delegation / Policy Event.\boxed{ \text{Authority Expansion} \Rightarrow \text{New Consent / Delegation / Policy Event}. }

因此:

Semantic IntelligenceAuthority Source.\boxed{ \text{Semantic Intelligence} \neq \text{Authority Source}. }

本文進一步提出:

EA=(principal,actor,audience,resource,action,purpose,scope,rate,value,time,risk,approval,redelegation,revocation)\mathcal E_A = ( principal, actor, audience, resource, action, purpose, scope, rate, value, time, risk, approval, redelegation, revocation )

作為 Agent Authority Envelope。

在這個模型下,自然語言不再直接驅動世界,而是先被編譯成可稽核、可限制、可撤回的 authority object。

這正是從:

AI understands what I mean\text{AI understands what I mean}

走向:

AI is institutionally authorized to do exactly this—and no more.\boxed{ \text{AI is institutionally authorized to do exactly this—and no more}. }

所缺少的一層。


參考文獻與前置研究

  1. Neo.K. AIDA-01|Agent 性是一種組合系統性質. 2026.
  2. Neo.K. AIDA-02|互動來源不可區分性與 Agent Provenance Gap. 2026.
  3. Neo.K. AIDA-03|人類—Agent Principal 分離原則. 2026.
  4. Neo.K. 語義合法性橋接:AI Agent 在意圖理解、形式權限與程序性無奈之間的補償機制. 2026.
  5. Lodderstedt, T., Richer, J., Campbell, B. OAuth 2.0 Rich Authorization Requests. RFC 9396, 2023.
  6. Jones, M., Nadalin, A., Campbell, B., Bradley, J., Mortimore, C. OAuth 2.0 Token Exchange. RFC 8693, 2020.
  7. OpenID Foundation AuthZEN Working Group. Authorization API 1.0. OpenID Final Specification, January 2026.
  8. OpenID Foundation AuthZEN Working Group. AuthZEN Access Request and Approval Profile 1.0. Working Group Draft, 2026.
  9. OpenID Foundation. OpenID Foundation advances authorization for the agent era with new AuthZEN Working Group Drafts. 2026-06-15.
  10. Kasselman, P., et al. AI Agent Authentication and Authorization. Internet-Draft draft-klrc-aiagent-auth-03, 2026-07-06. Work in progress; not an IETF standard.

Canonical Source Note

本文件 canonical source 為 UTF-8 Markdown。

數學 delimiter 僅使用:

  • inline:$...$
  • display:$$...$$

不將 LaTeX 數學原始碼轉換為 Unicode 數學字元作為 canonical source,不進行 unicode-escape round-trip,不以聊天渲染畫面取代正式原稿。