Skip to content

[codex] Clarify account reference models - #5062

Merged
bokelley merged 2 commits into
mainfrom
adcp-4341-work
May 27, 2026
Merged

bokelley merged 2 commits into
mainfrom
adcp-4341-work

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Fixes #4341.

Clarifies the account-reference model so account_id no longer conflates upstream-discovered platform accounts with buyer-declared accounts provisioned through sync_accounts.

What changed

  • Reframes the docs/schema language from "explicit/implicit accounts" to account-id namespaces vs buyer-declared accounts.
  • Clarifies that OAuth/API keys are authentication mechanisms, not separate account models.
  • Documents that required-account requests still send an explicit AccountRef; credential-implied hidden defaults are not a protocol model.
  • Tightens list_accounts guidance for multi-account credentials and singleton credentials.
  • Tightens sync_accounts semantics: natural-key provisioning is buyer-declared; account-id namespace provisioning is out of scope unless a future capability declares it.
  • Adds a changeset.

Validation

  • npm run build:schemas
  • npm run test:schemas
  • npm run test:json-schema
  • npm run lint:schema-links -- --check
  • npm run test:docs-nav
  • git diff --check
  • precommit hook: unit tests, dynamic-import lint, callApi state-change lint, typecheck
  • pre-push hook: version sync, schema-link lint, Mintlify broken-link check

aao-release-bot[bot]
aao-release-bot Bot previously approved these changes May 27, 2026

@aao-release-bot aao-release-bot 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.

LGTM. Follow-ups noted below. Clean reframe: keep the wire shape (account-ref.json discriminator, oneOf, additionalProperties: false) untouched while moving the conceptual taxonomy from authentication-flavor ("explicit/implicit") to namespace-ownership ("account-id namespace / buyer-declared"). The new three-pattern split — upstream-managed, seller-defined, buyer-declared — is the right shape for #4341 and resolves the SDK divergence root cause cleanly.

Things I checked

  • Schema wire shape unchanged across all 11 source files. Discriminator on account-ref.json is description-only; no field renames, no type changes, no required flips, no enum value changes (only account-scope.agent enum description widened, value preserved).
  • UNSUPPORTED_PROVISIONING in static/schemas/source/enums/error-code.json:107 preserves both rejection triggers (natural-key→non-provisioner, AccountRef→non-settings-update) and a still-actionable recovery hint.
  • Changeset present at .changeset/4341-upstream-managed-account-rosters.md, type patch.
  • ad-tech-protocol-expert: sound-with-caveats — three-pattern reframe is conformant with how 3.0 actually ships; the new "MUST expose list_accounts when credential can access >1 account" was inferable in 3.0.x and is now made normative.
  • code-reviewer: sound-with-caveats — found terminology drift across ~8 sibling files that the rename missed.
  • docs.json confirms Mintlify is pointed at docs/; there is no mintlify-docs/ directory to drift against.

Follow-ups (non-blocking — file as issues or fold into this PR)

  1. Terminology drift the rename missed. "Clarify account reference models" leaving eight files on the old terminology is a notable oversight in a PR whose entire job is the rename. Sweep these in this PR if possible:

    • static/schemas/source/account/sync-governance-request.json:101,125 — example description fields still say "explicit account" / "implicit account". These ship in the published schema.
    • static/schemas/source/account/sync-accounts-request.json:299 — example description still says "existing explicit account by account_id".
    • docs/building/by-layer/L2/accounts-and-agents.mdx:3 — frontmatter description still says "explicit vs implicit account models". This is the SEO/preview surface for the canonical L2 doc.
    • docs/media-buy/advanced-topics/sandbox.mdx:237,239 — leftover "explicit account sellers" / "implicit account sellers" bullets.
    • docs/accounts/tasks/sync_governance.mdx:21 — "Sync the governance agent for an explicit account:" lede above an account_id example.
    • docs/accounts/tasks/sync_accounts.mdx:239 — "register … on an explicit account" leftover.
    • docs/reference/migration/prerelease-upgrades.mdx:219, docs/learning/test-personas.md:49, docs/sponsored-intelligence/overview.mdx:215 — sibling mentions missed while peers in the same files were updated.
  2. Changeset level is borderline. patch is defensible because no field/enum/oneOf wire shape changed, but the changeset body itself contains new MUST clauses ("sellers MUST expose list_accounts when a credential can access more than one account"; "Required-account tasks must receive an explicit AccountRef"). A 3.0.x seller shipping require_operator_auth: true with multi-account credentials but no list_accounts becomes non-conformant on merge. npm run test:schemas / test:json-schema won't catch that behavioral delta. Either bump to minor, or add a sentence to the changeset body explaining why this is purely codifying what was already required.

  3. create-collection-list-request.json:16 / create-property-list-request.json:16 — new omission semantics ("MUST NOT mean an undocumented credential-local default") preserve the single-accessible-account success path but the new ink is normative-flavored. A short positive example showing "omitted + exactly one account → seller assigns it" would prevent implementers reading this as a behavior change.

  4. account-scope.json:12 — new agent description ("shared across multiple declared brand/operator pairs") is clearer than "the agent's default account", but "multiple declared" implies a sync_accounts path; for agent-billed scopes there may be no declaration. Consider "Agent-scoped account with no brand- or operator-specific split".

  5. docs/accounts/overview.mdx:18 — four normative clauses packed into one table cell. Tables aren't a great compliance-checking surface; lift the MUST/SHOULD into the prose immediately below.

Approving.

@aao-release-bot aao-release-bot 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.

LGTM. Follow-ups noted below. Wire shape is unchanged; the rewording disambiguates two patterns (account_id namespaces vs buyer-declared accounts) that were both living under "explicit/implicit" and codifies the SHOULD/MUST around list_accounts exposure that 3.0 left implicit.

Things I checked

  • Wire neutrality. Every diff under static/schemas/source/** is description-only — no properties, required, enum, oneOf, allOf, $ref, or additionalProperties keywords touched. core/account-ref.json oneOf discriminator unchanged; enums/account-scope.json enum array unchanged (only enumDescriptions.agent text moves); enums/error-code.json enum list unchanged.
  • Terminology consistency across docs/accounts/**, docs/building/**, docs/protocol/**, docs/reference/**, docs/sponsored-intelligence/**, and static/schemas/source/**. Net-new "account-id namespace" / "buyer-declared accounts" terminology is applied uniformly.
  • Schema-vs-docs coherence on the new MUST/SHOULD around list_accounts exposure: static/schemas/source/core/account-ref.json:5, static/schemas/source/protocol/get-adcp-capabilities-response.json:156, docs/accounts/overview.mdx, docs/protocol/get_adcp_capabilities.mdx, docs/building/by-layer/L2/accounts-and-agents.mdx, and the changeset all mirror the same text. No MUST loosened to SHOULD or vice versa.
  • UNSUPPORTED_PROVISIONING: description at static/schemas/source/enums/error-code.json:107 and enumMetadata.suggestion at :241 shift in parallel.
  • L1 security tightening at docs/building/by-layer/L1/security.mdx:185. The new "MUST NOT silently replace a missing required account with a credential-implied default" closes a real footgun and is bounded honestly to schema-required account — optional-account tasks are pointed at their per-task semantics.
  • Removed the wrong-as-shipped doc claim that sync_accounts does not return account_id. The schema has always emitted it; the new "MAY echo, MUST keep accepting natural key" framing matches the schema.
  • Changeset present (.changeset/4341-upstream-managed-account-rosters.md), correctly scoped to adcontextprotocol.

Follow-ups (non-blocking — file as issues)

  • Straggler. docs/contributing/storyboard-authoring.md:26 still reads Explicit-account form (when the seller issued an account_idvialist_accounts). Only file in docs/ not covered by the terminology pass. Rename to Account-id form for parity.
  • Semver judgment. Changeset is patch. The new MUSTs (sellers MUST expose list_accounts for multi-account credentials; MUST NOT silently default a required account; MUST keep accepting natural-key AccountRef after echoing account_id) are codification, but they will fail a previously-passing conformance suite if any existing seller skated by on the looser wording. The "MAY omit only when … out-of-band" escape hatch softens this materially. Worth a one-line WG ack in the PR thread that codification-as-patch is the policy choice, since two reviewers flagged it independently.
  • Dual-keying and cache-scope oracle. docs/accounts/tasks/sync_accounts.mdx:172 lets buyer-declared sellers echo an account_id while still accepting natural keys. Two valid keys for one account doubles the idempotency-cache-scope oracle surface called out in security.mdx:492. Sellers electing to dual-key SHOULD canonicalize to one form before computing the scope tuple. Worth one sentence in security.mdx next time that section is touched.
  • Forward reference. static/schemas/source/account/sync-accounts-request.json:5 and several docs say "unless a future explicit capability declares it". Reserve a tracking issue so this doesn't become dead language.

Minor nits (non-blocking)

  1. enumDescriptions.agent is doing two jobs. static/schemas/source/enums/account-scope.json:12 bolts a request-side policy assertion ("not a hidden credential-implied default for requests that omit account") onto a response-side scoping-result enum. account_scope only appears on already-resolved accounts in responses, so the defaulting policy is fenced where it belongs — in the request-side docs and account-ref.json. Recommend trimming to Agent-scoped account with no brand- or operator-specific split. and leaving the policy line in the L2 doc and in protocol/calling-an-agent.mdx where it already lives.
  2. Inline-comment width. docs/protocol/calling-an-agent.mdx:43 — the code-block comment is now a two-sentence subordinate clause. Renders fine; just wider than the surrounding file.

LGTM.

@bokelley
bokelley merged commit 97daa5a into main May 27, 2026
19 checks passed
@bokelley
bokelley deleted the adcp-4341-work branch May 27, 2026 09:12
bokelley added a commit to adcontextprotocol/adcp-client that referenced this pull request Sep 14, 2026
…unt-id namespace

`AccountStore.resolution: 'derived'` shipped with inverted wire semantics:
`account_id` was refused and the brand+operator natural key permitted, which
is unusable for the adapters the mode exists for — an agent fronting an
upstream-managed roster cannot accept the id its own upstream assigned, and
buyers who called `list_accounts` got ids every later call rejected.

Corrects the SDK to the account-reference model settled upstream in
adcontextprotocol/adcp#5062:

- `{ account_id }` accepted (and verified); the `{ brand, operator }` arm
  refused with INVALID_REQUEST + a list_accounts suggestion.
- `list_accounts` required for the mode (PlatformConfigError at
  construction; the merge-seam `opts.accounts.listAccounts` satisfies it).
- sync_accounts is not categorically blocked: natural-key provisioning
  entries fail per-row with UNSUPPORTED_PROVISIONING, natural-key references
  with INVALID_REQUEST, and `account: { account_id }` settings-update
  entries pass through.
- A declared 'derived' projects `account.require_operator_auth: true`.

Tenant-isolation hardening, since the buyer now supplies the id:

- The framework refuses a resolved account whose id isn't the one the buyer
  named, so an un-migrated ref-ignoring resolver fails closed.
- sync_accounts / sync_governance entries — the two account references that
  never passed through accounts.resolve — are resolved against the caller's
  reachable set before any write, on both the platform and merge-seam paths.
- The comply-controller sandbox gate no longer accepts a wire `sandbox: true`
  claim alongside an account_id the resolver refused.
- createDerivedAccountStore verifies by construction, gains
  `listAccounts` / `lookupAccount` for multi-account credentials, and wires a
  filtered, paged `list_accounts`.

BREAKING CHANGE: `accounts.resolution: 'derived'` now accepts inline
`account.account_id` and refuses the `{ brand, operator }` arm, requires
`list_accounts`, and projects `account.require_operator_auth: true`.
Resolvers must verify the buyer-supplied id against what the caller's
credential can reach. See docs/migration-13-to-14.md.

Fixes #1647
Fixes #1628

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
bokelley added a commit to adcontextprotocol/adcp-client that referenced this pull request Sep 14, 2026
…unt-id namespace

`AccountStore.resolution: 'derived'` shipped with inverted wire semantics:
`account_id` was refused and the brand+operator natural key permitted, which
is unusable for the adapters the mode exists for — an agent fronting an
upstream-managed roster cannot accept the id its own upstream assigned, and
buyers who called `list_accounts` got ids every later call rejected.

Corrects the SDK to the account-reference model settled upstream in
adcontextprotocol/adcp#5062:

- `{ account_id }` accepted (and verified); the `{ brand, operator }` arm
  refused with INVALID_REQUEST + a list_accounts suggestion.
- `list_accounts` required for the mode (PlatformConfigError at
  construction; the merge-seam `opts.accounts.listAccounts` satisfies it).
- sync_accounts is not categorically blocked: natural-key provisioning
  entries fail per-row with UNSUPPORTED_PROVISIONING, natural-key references
  with INVALID_REQUEST, and `account: { account_id }` settings-update
  entries pass through.
- A declared 'derived' projects `account.require_operator_auth: true`.

Tenant-isolation hardening, since the buyer now supplies the id:

- The framework refuses a resolved account whose id isn't the one the buyer
  named, so an un-migrated ref-ignoring resolver fails closed.
- sync_accounts / sync_governance entries — the two account references that
  never passed through accounts.resolve — are resolved against the caller's
  reachable set before any write, on both the platform and merge-seam paths.
- The comply-controller sandbox gate no longer accepts a wire `sandbox: true`
  claim alongside an account_id the resolver refused.
- createDerivedAccountStore verifies by construction, gains
  `listAccounts` / `lookupAccount` for multi-account credentials, and wires a
  filtered, paged `list_accounts`.

BREAKING CHANGE: `accounts.resolution: 'derived'` now accepts inline
`account.account_id` and refuses the `{ brand, operator }` arm, requires
`list_accounts`, and projects `account.require_operator_auth: true`.
Resolvers must verify the buyer-supplied id against what the caller's
credential can reach. See docs/migration-13-to-14.md.

Fixes #1647
Fixes #1628

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
bokelley added a commit to adcontextprotocol/adcp-client that referenced this pull request Sep 14, 2026
…unt-id namespace

`AccountStore.resolution: 'derived'` shipped with inverted wire semantics:
`account_id` was refused and the brand+operator natural key permitted, which
is unusable for the adapters the mode exists for — an agent fronting an
upstream-managed roster cannot accept the id its own upstream assigned, and
buyers who called `list_accounts` got ids every later call rejected.

Corrects the SDK to the account-reference model settled upstream in
adcontextprotocol/adcp#5062:

- `{ account_id }` accepted (and verified); the `{ brand, operator }` arm
  refused with INVALID_REQUEST + a list_accounts suggestion.
- `list_accounts` required for the mode (PlatformConfigError at
  construction; the merge-seam `opts.accounts.listAccounts` satisfies it).
- sync_accounts is not categorically blocked: natural-key provisioning
  entries fail per-row with UNSUPPORTED_PROVISIONING, natural-key references
  with INVALID_REQUEST, and `account: { account_id }` settings-update
  entries pass through.
- A declared 'derived' projects `account.require_operator_auth: true`.

Tenant-isolation hardening, since the buyer now supplies the id:

- The framework refuses a resolved account whose id isn't the one the buyer
  named, so an un-migrated ref-ignoring resolver fails closed.
- sync_accounts / sync_governance entries — the two account references that
  never passed through accounts.resolve — are resolved against the caller's
  reachable set before any write, on both the platform and merge-seam paths.
- The comply-controller sandbox gate no longer accepts a wire `sandbox: true`
  claim alongside an account_id the resolver refused.
- createDerivedAccountStore verifies by construction, gains
  `listAccounts` / `lookupAccount` for multi-account credentials, and wires a
  filtered, paged `list_accounts`.

BREAKING CHANGE: `accounts.resolution: 'derived'` now accepts inline
`account.account_id` and refuses the `{ brand, operator }` arm, requires
`list_accounts`, and projects `account.require_operator_auth: true`.
Resolvers must verify the buyer-supplied id against what the caller's
credential can reach. See docs/migration-13-to-14.md.

Fixes #1647
Fixes #1628

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
bokelley added a commit to adcontextprotocol/adcp-client that referenced this pull request Sep 14, 2026
…unt-id namespace

`AccountStore.resolution: 'derived'` shipped with inverted wire semantics:
`account_id` was refused and the brand+operator natural key permitted, which
is unusable for the adapters the mode exists for — an agent fronting an
upstream-managed roster cannot accept the id its own upstream assigned, and
buyers who called `list_accounts` got ids every later call rejected.

Corrects the SDK to the account-reference model settled upstream in
adcontextprotocol/adcp#5062:

- `{ account_id }` accepted (and verified); the `{ brand, operator }` arm
  refused with INVALID_REQUEST + a list_accounts suggestion.
- `list_accounts` required for the mode (PlatformConfigError at
  construction; the merge-seam `opts.accounts.listAccounts` satisfies it).
- sync_accounts is not categorically blocked: natural-key provisioning
  entries fail per-row with UNSUPPORTED_PROVISIONING, natural-key references
  with INVALID_REQUEST, and `account: { account_id }` settings-update
  entries pass through.
- A declared 'derived' projects `account.require_operator_auth: true`.

Tenant-isolation hardening, since the buyer now supplies the id:

- The framework refuses a resolved account whose id isn't the one the buyer
  named, so an un-migrated ref-ignoring resolver fails closed.
- sync_accounts / sync_governance entries — the two account references that
  never passed through accounts.resolve — are resolved against the caller's
  reachable set before any write, on both the platform and merge-seam paths.
- The comply-controller sandbox gate no longer accepts a wire `sandbox: true`
  claim alongside an account_id the resolver refused.
- createDerivedAccountStore verifies by construction, gains
  `listAccounts` / `lookupAccount` for multi-account credentials, and wires a
  filtered, paged `list_accounts`.

BREAKING CHANGE: `accounts.resolution: 'derived'` now accepts inline
`account.account_id` and refuses the `{ brand, operator }` arm, requires
`list_accounts`, and projects `account.require_operator_auth: true`.
Resolvers must verify the buyer-supplied id against what the caller's
credential can reach. See docs/migration-13-to-14.md.

Fixes #1647
Fixes #1628

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
bokelley added a commit to adcontextprotocol/adcp-client that referenced this pull request Sep 14, 2026
…unt-id namespace

`AccountStore.resolution: 'derived'` shipped with inverted wire semantics:
`account_id` was refused and the brand+operator natural key permitted, which
is unusable for the adapters the mode exists for — an agent fronting an
upstream-managed roster cannot accept the id its own upstream assigned, and
buyers who called `list_accounts` got ids every later call rejected.

Corrects the SDK to the account-reference model settled upstream in
adcontextprotocol/adcp#5062:

- `{ account_id }` accepted (and verified); the `{ brand, operator }` arm
  refused with INVALID_REQUEST + a list_accounts suggestion.
- `list_accounts` required for the mode (PlatformConfigError at
  construction; the merge-seam `opts.accounts.listAccounts` satisfies it).
- sync_accounts is not categorically blocked: natural-key provisioning
  entries fail per-row with UNSUPPORTED_PROVISIONING, natural-key references
  with INVALID_REQUEST, and `account: { account_id }` settings-update
  entries pass through.
- A declared 'derived' projects `account.require_operator_auth: true`.

Tenant-isolation hardening, since the buyer now supplies the id:

- The framework refuses a resolved account whose id isn't the one the buyer
  named, so an un-migrated ref-ignoring resolver fails closed.
- sync_accounts / sync_governance entries — the two account references that
  never passed through accounts.resolve — are resolved against the caller's
  reachable set before any write, on both the platform and merge-seam paths.
- The comply-controller sandbox gate no longer accepts a wire `sandbox: true`
  claim alongside an account_id the resolver refused.
- createDerivedAccountStore verifies by construction, gains
  `listAccounts` / `lookupAccount` for multi-account credentials, and wires a
  filtered, paged `list_accounts`.

BREAKING CHANGE: `accounts.resolution: 'derived'` now accepts inline
`account.account_id` and refuses the `{ brand, operator }` arm, requires
`list_accounts`, and projects `account.require_operator_auth: true`.
Resolvers must verify the buyer-supplied id against what the caller's
credential can reach. See docs/migration-13-to-14.md.

Fixes #1647
Fixes #1628

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
bokelley added a commit to adcontextprotocol/adcp-client that referenced this pull request Sep 14, 2026
…unt-id namespace

`AccountStore.resolution: 'derived'` shipped with inverted wire semantics:
`account_id` was refused and the brand+operator natural key permitted, which
is unusable for the adapters the mode exists for — an agent fronting an
upstream-managed roster cannot accept the id its own upstream assigned, and
buyers who called `list_accounts` got ids every later call rejected.

Corrects the SDK to the account-reference model settled upstream in
adcontextprotocol/adcp#5062:

- `{ account_id }` accepted (and verified); the `{ brand, operator }` arm
  refused with INVALID_REQUEST + a list_accounts suggestion.
- `list_accounts` required for the mode (PlatformConfigError at
  construction; the merge-seam `opts.accounts.listAccounts` satisfies it).
- sync_accounts is not categorically blocked: natural-key provisioning
  entries fail per-row with UNSUPPORTED_PROVISIONING, natural-key references
  with INVALID_REQUEST, and `account: { account_id }` settings-update
  entries pass through.
- A declared 'derived' projects `account.require_operator_auth: true`.

Tenant-isolation hardening, since the buyer now supplies the id:

- The framework refuses a resolved account whose id isn't the one the buyer
  named, so an un-migrated ref-ignoring resolver fails closed.
- sync_accounts / sync_governance entries — the two account references that
  never passed through accounts.resolve — are resolved against the caller's
  reachable set before any write, on both the platform and merge-seam paths.
- The comply-controller sandbox gate no longer accepts a wire `sandbox: true`
  claim alongside an account_id the resolver refused.
- createDerivedAccountStore verifies by construction, gains
  `listAccounts` / `lookupAccount` for multi-account credentials, and wires a
  filtered, paged `list_accounts`.

BREAKING CHANGE: `accounts.resolution: 'derived'` now accepts inline
`account.account_id` and refuses the `{ brand, operator }` arm, requires
`list_accounts`, and projects `account.require_operator_auth: true`.
Resolvers must verify the buyer-supplied id against what the caller's
credential can reach. See docs/migration-13-to-14.md.

Fixes #1647
Fixes #1628

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
bokelley added a commit to adcontextprotocol/adcp-client that referenced this pull request Sep 14, 2026
…unt-id namespace

`AccountStore.resolution: 'derived'` shipped with inverted wire semantics:
`account_id` was refused and the brand+operator natural key permitted, which
is unusable for the adapters the mode exists for — an agent fronting an
upstream-managed roster cannot accept the id its own upstream assigned, and
buyers who called `list_accounts` got ids every later call rejected.

Corrects the SDK to the account-reference model settled upstream in
adcontextprotocol/adcp#5062:

- `{ account_id }` accepted (and verified); the `{ brand, operator }` arm
  refused with INVALID_REQUEST + a list_accounts suggestion.
- `list_accounts` required for the mode (PlatformConfigError at
  construction; the merge-seam `opts.accounts.listAccounts` satisfies it).
- sync_accounts is not categorically blocked: natural-key provisioning
  entries fail per-row with UNSUPPORTED_PROVISIONING, natural-key references
  with INVALID_REQUEST, and `account: { account_id }` settings-update
  entries pass through.
- A declared 'derived' projects `account.require_operator_auth: true`.

Tenant-isolation hardening, since the buyer now supplies the id:

- The framework refuses a resolved account whose id isn't the one the buyer
  named, so an un-migrated ref-ignoring resolver fails closed.
- sync_accounts / sync_governance entries — the two account references that
  never passed through accounts.resolve — are resolved against the caller's
  reachable set before any write, on both the platform and merge-seam paths.
- The comply-controller sandbox gate no longer accepts a wire `sandbox: true`
  claim alongside an account_id the resolver refused.
- createDerivedAccountStore verifies by construction, gains
  `listAccounts` / `lookupAccount` for multi-account credentials, and wires a
  filtered, paged `list_accounts`.

BREAKING CHANGE: `accounts.resolution: 'derived'` now accepts inline
`account.account_id` and refuses the `{ brand, operator }` arm, requires
`list_accounts`, and projects `account.require_operator_auth: true`.
Resolvers must verify the buyer-supplied id against what the caller's
credential can reach. See docs/migration-13-to-14.md.

Fixes #1647
Fixes #1628

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
bokelley added a commit to adcontextprotocol/adcp-client that referenced this pull request Sep 14, 2026
…unt-id namespace

`AccountStore.resolution: 'derived'` shipped with inverted wire semantics:
`account_id` was refused and the brand+operator natural key permitted, which
is unusable for the adapters the mode exists for — an agent fronting an
upstream-managed roster cannot accept the id its own upstream assigned, and
buyers who called `list_accounts` got ids every later call rejected.

Corrects the SDK to the account-reference model settled upstream in
adcontextprotocol/adcp#5062:

- `{ account_id }` accepted (and verified); the `{ brand, operator }` arm
  refused with INVALID_REQUEST + a list_accounts suggestion.
- `list_accounts` required for the mode (PlatformConfigError at
  construction; the merge-seam `opts.accounts.listAccounts` satisfies it).
- sync_accounts is not categorically blocked: natural-key provisioning
  entries fail per-row with UNSUPPORTED_PROVISIONING, natural-key references
  with INVALID_REQUEST, and `account: { account_id }` settings-update
  entries pass through.
- A declared 'derived' projects `account.require_operator_auth: true`.

Tenant-isolation hardening, since the buyer now supplies the id:

- The framework refuses a resolved account whose id isn't the one the buyer
  named, so an un-migrated ref-ignoring resolver fails closed.
- sync_accounts / sync_governance entries — the two account references that
  never passed through accounts.resolve — are resolved against the caller's
  reachable set before any write, on both the platform and merge-seam paths.
- The comply-controller sandbox gate no longer accepts a wire `sandbox: true`
  claim alongside an account_id the resolver refused.
- createDerivedAccountStore verifies by construction, gains
  `listAccounts` / `lookupAccount` for multi-account credentials, and wires a
  filtered, paged `list_accounts`.

BREAKING CHANGE: `accounts.resolution: 'derived'` now accepts inline
`account.account_id` and refuses the `{ brand, operator }` arm, requires
`list_accounts`, and projects `account.require_operator_auth: true`.
Resolvers must verify the buyer-supplied id against what the caller's
credential can reach. See docs/migration-13-to-14.md.

Fixes #1647
Fixes #1628

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
bokelley added a commit to adcontextprotocol/adcp-client that referenced this pull request Sep 14, 2026
…unt-id namespace (#2913)

`AccountStore.resolution: 'derived'` shipped with inverted wire semantics:
`account_id` was refused and the brand+operator natural key permitted, which
is unusable for the adapters the mode exists for — an agent fronting an
upstream-managed roster cannot accept the id its own upstream assigned, and
buyers who called `list_accounts` got ids every later call rejected.

Corrects the SDK to the account-reference model settled upstream in
adcontextprotocol/adcp#5062:

- `{ account_id }` accepted (and verified); the `{ brand, operator }` arm
  refused with INVALID_REQUEST + a list_accounts suggestion.
- `list_accounts` required for the mode (PlatformConfigError at
  construction; the merge-seam `opts.accounts.listAccounts` satisfies it).
- sync_accounts is not categorically blocked: natural-key provisioning
  entries fail per-row with UNSUPPORTED_PROVISIONING, natural-key references
  with INVALID_REQUEST, and `account: { account_id }` settings-update
  entries pass through.
- A declared 'derived' projects `account.require_operator_auth: true`.

Tenant-isolation hardening, since the buyer now supplies the id:

- The framework refuses a resolved account whose id isn't the one the buyer
  named, so an un-migrated ref-ignoring resolver fails closed.
- sync_accounts / sync_governance entries — the two account references that
  never passed through accounts.resolve — are resolved against the caller's
  reachable set before any write, on both the platform and merge-seam paths.
- The comply-controller sandbox gate no longer accepts a wire `sandbox: true`
  claim alongside an account_id the resolver refused.
- createDerivedAccountStore verifies by construction, gains
  `listAccounts` / `lookupAccount` for multi-account credentials, and wires a
  filtered, paged `list_accounts`.

BREAKING CHANGE: `accounts.resolution: 'derived'` now accepts inline
`account.account_id` and refuses the `{ brand, operator }` arm, requires
`list_accounts`, and projects `account.require_operator_auth: true`.
Resolvers must verify the buyer-supplied id against what the caller's
credential can reach. See docs/migration-13-to-14.md.

Fixes #1647
Fixes #1628

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.

Clarify account-ref.json: distinguish upstream-managed roster from buyer-declared (sync_accounts) implicit

1 participant