From 0c694ea288134bb61549f978b57ddbfd8c7c1c7b Mon Sep 17 00:00:00 2001 From: AdijeShen <1534656015@qq.com> Date: Tue, 12 May 2026 15:10:34 +0800 Subject: [PATCH 1/3] fix: correct Trusted Agent Provider delegation SVG diagram MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The mandate_delegation_trusted_agent_provider.svg was incorrectly duplicated from mandate_delegation_user_credential.svg, showing the User Credential model (with Issuer, credential pre-issuance, and issuer_signed responses) instead of the Trusted Agent Provider model. The Trusted Agent Provider model is a simpler two-party flow where the Agent Provider is directly trusted by Verifiers — no external Issuer or User Credential is needed. The corrected diagram now shows: - 3 participants: User, Agent Provider Trusted Surface, Agent (removed Issuer) - Agent constructs Mandate Content and sends Authorization Request with agent_pk (not just Mandate Content) - Agent Provider's Trusted Surface signs the Mandate with its own key (not issuer_signed UserCredential) - No "Issue User Credential (In Advance)" pre-issuance step This matches the specification in agent_authorization.md which states: "The Agent Provider uses a securely stored signing key to create the Mandate" and "This model does not require a pre-issued credential." --- ...date_delegation_trusted_agent_provider.svg | 52 ++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/docs/assets/mandate_delegation_trusted_agent_provider.svg b/docs/assets/mandate_delegation_trusted_agent_provider.svg index ad903ce3..28926cd7 100644 --- a/docs/assets/mandate_delegation_trusted_agent_provider.svg +++ b/docs/assets/mandate_delegation_trusted_agent_provider.svg @@ -1 +1,51 @@ -Created with Raphaël 2.2.0UserUserTrusted SurfaceTrusted SurfaceAgentAgentIssuerIssuerIssue User Credential (In Advance)request credentialauthenticate userissuer_signed(Credential) w/user PkMandate Delegation StartAuthorization Request(Mandate Content)Display MandateapproveIssuer_signed(UserCredential) + user_signed(Mandate)Mandate Delegation Complete \ No newline at end of file + + + +Created for AP2 Trusted Agent Provider Delegation + + + + + + + + + + + + + +User + +Agent Provider +Trusted Surface + + +Agent + + + +Mandate Delegation Start + +Construct Mandate Content + +Authorization Request(Mandate Content, agent_pk) + +Display Mandate + +approve + +Sign Mandate w/ Agent Provider key + +Signed Mandate + +Mandate Delegation Complete + + +User + +Agent Provider +Trusted Surface + + +Agent \ No newline at end of file From 785ae3a15ae92bfa4cc87835b38d44e371bb14a8 Mon Sep 17 00:00:00 2001 From: AdijeShen <1534656015@qq.com> Date: Tue, 12 May 2026 15:49:49 +0800 Subject: [PATCH 2/3] fix: address PR review feedback on TAP SVG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix Bézier control point for "Signed Mandate" arrow: change 535 to 525 so the tangent points right (TS→Agent direction) instead of left - Add viewBox attribute to SVG root element for proper scaling across different screen sizes --- docs/assets/mandate_delegation_trusted_agent_provider.svg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/assets/mandate_delegation_trusted_agent_provider.svg b/docs/assets/mandate_delegation_trusted_agent_provider.svg index 28926cd7..e4006780 100644 --- a/docs/assets/mandate_delegation_trusted_agent_provider.svg +++ b/docs/assets/mandate_delegation_trusted_agent_provider.svg @@ -1,6 +1,6 @@ - + Created for AP2 Trusted Agent Provider Delegation @@ -37,7 +37,7 @@ Sign Mandate w/ Agent Provider key -Signed Mandate +Signed Mandate Mandate Delegation Complete From 7d7706a3d78c135687f53f8d723c31c3ea2ee1ca Mon Sep 17 00:00:00 2001 From: AdijeShen <1534656015@qq.com> Date: Tue, 12 May 2026 15:58:55 +0800 Subject: [PATCH 3/3] fix: add raphael to cspell dictionary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Raphaël is the JavaScript library used to generate the SVG diagrams. All existing SVGs in the repo contain "raphael" in marker IDs, but the spellcheck only flagged the new file because it's the only one in this PR's diff. --- .cspell/custom-words.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.cspell/custom-words.txt b/.cspell/custom-words.txt index ce73c361..45b88a0f 100644 --- a/.cspell/custom-words.txt +++ b/.cspell/custom-words.txt @@ -185,3 +185,4 @@ XVCJ Yapily Zalopay Zalora +raphael