Skip to content

docs(accounts): seller walkthrough for buyer-declared accounts and signer identity - #7821

Merged
bokelley merged 3 commits into
mainfrom
docs/7814-buyer-declared-accounts
Sep 30, 2026
Merged

bokelley merged 3 commits into
mainfrom
docs/7814-buyer-declared-accounts

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

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 covers require_operator_auth: false from the seller's side:

    • How the seller identifies the calling agent: a signature resolved against onboarded agents to exactly one canonical agents[].url, or a seller-issued credential.
    • An honest note that AdCP 3.2 can't map an unseen keyid to 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.
    • Why the account operator comes from accounts[].operator / account.operator and not from the transport.
    • The sync_accounts → get_products flow with the natural key, and the conditions for lazy provisioning.
    • A table of which error applies when: request_signature_*, request_signature_required (including the webhook-auth trigger and the warn_for exception), AUTH_MISSING/AUTH_INVALID, AGENT_*, BILLING_*, ACCOUNT_*, with account errors scoped to the agent's authorized set.
    • A fix to the existing error table: 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 where security.mdx talks about the agent → operator mapping.

  • Python verifier example (docs/building/by-layer/L1/request-signing.mdx). The old example couldn't run: CachingJwksResolver() needs jwks_uri, VerifyOptions needs now and operation, and StaticRevocationChecker doesn't exist. The new example:

    • keeps one resolver per onboarded agent, selected by keyid, with the index built from async_resolve_agent and a key_origins check;
    • fails closed on kid collisions;
    • enforces the unsigned path inline;
    • parses the body once, strictly, for step 14;
    • explains that signer.agent_url is only what you pass in VerifyOptions.

    I ran it against the adcp-client-python source. Signed OK, unknown kid, unsigned required_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_*, including message/send / SendMessage, with a dual-stack worked example.

Patch changeset included because docs/reference/glossary.mdx is 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)

#7814 stays open until the RFC is decided.

🤖 Generated with Claude Code

bokelley and others added 2 commits September 30, 2026 18:57
…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]>
Comment thread docs/building/by-layer/L1/security.mdx Resolved
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 30, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.mdx is (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.

@bokelley
bokelley merged commit 1c3b5b7 into main Sep 30, 2026
36 checks passed
@bokelley
bokelley deleted the docs/7814-buyer-declared-accounts branch September 30, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant