Repository navigation
docs(accounts): seller walkthrough for buyer-declared accounts and signer identity - #7821
Conversation
…gner identity Part of #7814. Adds a seller walkthrough for require_operator_auth: false (agent identification, account operator sourced from the payload, sync_accounts -> get_products, error selection), an Operator glossary entry, agent's-operator clarifications in security.mdx, a corrected Python verifier example, and A2A 0.3/1.0 method-name pairs for protocol_methods_*. Signer agent URL discovery is tracked in #7817. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Error table: webhook-auth signing trigger, warn_for exception, ACCOUNT_MOVED, authorized-set scoping, per-entry sync_accounts errors. Lazy provisioning conditions, key-rotation and shared-JWKS caveats, sync_accounts join caution. Python verifier example: inline unsigned-path enforcement, strict single parse (step 14), index rebuilt from resolve_agent with key_origins check. Fix Python reference-implementation helper names. A2A 1.0 wording nits. Follow-ups: #7817 (signer agent URL), #7820 (required_for over A2A). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — docs-only PR, no blocking findings.
This PR adds a seller walkthrough for buyer-declared accounts, an Operator glossary entry, a rebuilt Python request-verifier example, and A2A 0.3/1.0 method-name pairs. The reviewer verified against schema: the PAYMENT_REQUIRED → ACCOUNT_PAYMENT_REQUIRED fix is correct, all A2A method-name pairs match protocol-method-names.json, referenced error codes and wire fields exist, cross-reference anchors resolve, and the patch changeset is correctly scoped.
Medium findings
- docs/building/by-layer/L1/security.mdx:1412 — Rewritten Python SDK bullet drops identity_posture/consistency/freshness and adds fetched_at/key_origins, contradicting the unchanged "same logical record" umbrella at L1409 and the TS/Go bullets. A coherence nit worth fixing but non-blocking.
Decision rationale: No critical/high findings (row 1 N/A). gated_paths is false (row 2 N/A). high_risk is true but the only reason is docs/reference/glossary.mdx (modified), and there is no medium finding on that file — the sole medium is on security.mdx, which is not a high-risk path (row 5 N/A). No data-loss/schema/infra medium (row 4 N/A). No deletions (row 3 N/A). No team gate (row 7 N/A). Only 1 medium finding, below the 3-medium threshold (row 8 N/A). Falls through to row 9 → approve. Note review_decision is REVIEW_REQUIRED, but with gated_paths false that does not force escalation.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean subsequent pass, no blocking findings.
This is a follow-up pass on PR #7821 (prior decision: approve). The delta scope was a single one-line docs clarification in docs/building/by-layer/L1/security.mdx noting that the Python SDK's resolution record diverges (carries fetched_at and raw key_origins instead of identity_posture/consistency/freshness). The reviewer verified coherence with the Python SDK bullet — the change closes an inconsistency in the shared-record intro. Editorial-class docs only; no schema/wire/changeset surface touched.
Decision-table walk:
- Row 1 (critical/high): no findings — skip.
- Row 2 (gated_paths + not APPROVED): gated_paths is false — skip.
- Row 3 (high_risk + deleted):
docs/reference/glossary.mdxis (modified), not deleted — skip. - Row 4 (medium data-loss/schema/infra): no findings — skip.
- Row 5 (high_risk modified + medium finding): high_risk true and glossary.mdx is (modified), but there are no medium findings — skip.
- Row 6 (sticky escalate): prior was approve, not escalate — skip.
- Row 7 (no-auto-approve team): no team match — skip.
- Row 8 (≥3 medium): zero medium findings — skip.
- Row 9: approve.
No author team gate, no gated paths, no deletions, and no findings of any tier. Editorial docs clarification with schema↔docs coherence preserved. Falls through cleanly to row 9.
Part of #7814. Docs only. No normative or schema changes.
What changed
Seller walkthrough for buyer-declared accounts (
docs/building/by-layer/L2/accounts-and-agents.mdx, new section). It coversrequire_operator_auth: falsefrom the seller's side:agents[].url, or a seller-issued credential.keyidto an agent URL, so the agent URL comes from onboarding. Discovery is under discussion in RFC: discoverable signer agent URL for RFC 9421 request signing #7817.accounts[].operator/account.operatorand not from the transport.sync_accounts→get_productsflow with the natural key, and the conditions for lazy provisioning.request_signature_*,request_signature_required(including the webhook-auth trigger and thewarn_forexception),AUTH_MISSING/AUTH_INVALID,AGENT_*,BILLING_*,ACCOUNT_*, with account errors scoped to the agent's authorized set.PAYMENT_REQUIRED→ACCOUNT_PAYMENT_REQUIRED, which is the enum value."Operator" glossary entry (
docs/reference/glossary.mdx) that separates the account operator from the agent's operator. The same disambiguation is added wheresecurity.mdxtalks about the agent → operator mapping.Python verifier example (
docs/building/by-layer/L1/request-signing.mdx). The old example couldn't run:CachingJwksResolver()needsjwks_uri,VerifyOptionsneedsnowandoperation, andStaticRevocationCheckerdoesn't exist. The new example:keyid, with the index built fromasync_resolve_agentand akey_originscheck;kidcollisions;signer.agent_urlis only what you pass inVerifyOptions.I ran it against the adcp-client-python source. Signed OK, unknown
kid, unsignedrequired_for, bearer fallback,AUTH_MISSING, a duplicate-key body (→request_body_malformed), and replay all behave as documented.Python reference-implementation bullet in
security.mdx: corrected the helper names and field names.A2A 0.3 / 1.0 method-name pairs next to
protocol_methods_*, includingmessage/send/SendMessage, with a dual-stack worked example.Patch changeset included because
docs/reference/glossary.mdxis protocol-scoped.Reviews
ad-tech-protocol-expert (normative accuracy) and security-reviewer passes. All must-fix and should-fix items are applied.
Follow-ups (not changed here)
required_forcan't match AdCP operations over A2A under the current cross-namespace rule.#7814 stays open until the RFC is decided.
🤖 Generated with Claude Code