Repository navigation
Description
Problem
sync_accounts declares who the buyer is and how they pay, and the seller acknowledges the relationship. But the protocol defines no way to enumerate the accounts a seller has acknowledged. Account state is buyer-owned by philosophy — which works for platforms with databases, but is hostile to the protocol's primary new consumer: agents, which lose local state between sessions constantly. A sync-only surface is write-only memory.
Proposal
A list_accounts task: the authenticated buyer principal asks a seller for the accounts it holds there. Each entry returns:
account_id— the seller-issued handle that round-trips intoaccount: { account_id }oncreate_media_buy,sync_creatives, and every other stateful taskbrandandoperatoras declared/resolved at establishment- billing designation and account status as acknowledged by the seller
The seller acknowledged these accounts at sync_accounts time, so it can enumerate them; refusing the read-back just forces client-side bookkeeping that cold agents don't have.
Why this completes the account model
sync_accountsestablishes,list_accountsrecovers,account_idpins. Discovery stays stateless; the read-back only concerns established state.- Ambiguity becomes answerable in-protocol: a seller (or aggregator) that resolves a brand ref to several principals can return candidate
account_ids instead of an out-of-band error. - Multi-market principals (Brand identity: multinational brand houses need a market axis orthogonal to brand #5999) enumerate here too: same
{brand, operator}, distinctaccount_idand billing per market.
Related: #5975 (progressive retrieval and selection asks), #5999 (market axis for brand houses).
Activity
bokelley commentedon Jul 24, 2026
Triage
Classification: Spec question
Bucket(s): spec / protocol, media-buy
Status: ready-for-human
Milestone: Spec Backlog
Correction first:
list_accountsalready exists as a shipped task (schema indist/since 3.0.2, documented inaccounts-and-agents.mdx, registered inindex.json). The schema already supports natural-key filtering for buyer-declared account sellers. The premise "the protocol defines no way to enumerate" is not quite right — the task exists and is wired up. The real gap is normative, not structural.What the experts said:
(brand, operator)portfolio has no in-protocol recovery path because re-runningsync_accountsrequires knowing which pairs to declare (the lost state). SHOULD (not MUST) is correct for a 3.1.x docs patch; MUST would invalidate existing buyers-declared sellers who don't expose it today. Multi-market angle from Brand identity: multinational brand houses need a market axis orthogonal to brand #5999 must be decoupled — promotingaccount_idas necessary forrequire_operator_auth: falsesellers would conflict with the natural-key invariant until Brand identity: multinational brand houses need a market axis orthogonal to brand #5999 ships.sync_accountsre-run is partial mitigation), but the cold-agent case is real. Buyer-declared sellers already hold this data; operator friction is low. SHOULD now, escalate to MUST after the ecosystem has had a patch cycle.My take: Both experts converge. This is a docs-only normative tightening — no schema change — eligible as a 3.1.x patch. Below is the decision memo draft for WG ratification.
Decision Memo — draft for WG ratification
Triaged by Claude Code. Session: https://claude.ai/code/session_01Xf966j3LsWbnFdEqr7aW2H
Generated by Claude Code