Skip to content

docs(accounts): add buyer agent setup walkthrough for the principal layer - #7974

Merged
bokelley merged 1 commit into
mainfrom
docs/principal-registration-walkthrough
Oct 6, 2026
Merged

bokelley merged 1 commit into
mainfrom
docs/principal-registration-walkthrough

Conversation

@bokelley

@bokelley bokelley commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the buyer-side walkthrough for the experimental principal layer: docs/accounts/principal-registration-walkthrough.mdx ("Set up your buyer agent with a seller"), a sibling of the provisioning walkthrough.

Closes #7057 (supersedes #7943, which GitHub auto-closed when its stacked base branch was deleted)

Rebased onto main after #7938 (the reference seller) merged.

The page follows Sam at Pinnacle Agency and Priya at StreamHaus through:

  1. credentials from the seller: workload identity for an autonomous agent; an interactive user authenticates as themselves, and ChatGPT/Claude are never registered as the agent. Principals do not merge.
  2. get_adcp_capabilities → adcp.principal, supported sections, reporting offerings
  3. get_principal → recognized
  4. sync_principal with declarations, a webhook, and a reusable destination, including the action_required → ready proof flow
  5. sync_accounts authorization and feed binding (reporting_delivery_configs with destination.mode: existing)
  6. get_principal readback, the kill switch, and the principal.changed webhook
  7. "Run it against the training agent": the subset the reference seller supports, and where it differs

It carries the experimental banner (in the list_account_changes style), and says throughout that principal configuration grants no account authority. Cross-linked from sync_principal, get_principal, the accounts overview, and the 3.2 guide.

Judgment calls

  • Title. The issue is titled "Register your buyer agent", but AdCP has no registration task and the spec says interactive clients are never registered as the agent. The page is titled "Set up your buyer agent with a seller" (file name unchanged, per the brief) so the title does not contradict the content.
  • No docs.json edit. Since the 3.2 GA snapshot flip, every nav page is a dist/docs/<version>/… path and source docs are only added to nav at the next release snapshot; test:docs-nav passes. Nothing to add for a main-only page.
  • Walkthrough vs. training agent. The reference seller (feat(training-agent): implement sync_principal and get_principal #7938) advertises reporting_destinations and declarations only, simulates proof, and fires no principal.changed, so the main story shows a full-featured seller (StreamHaus) and a separate section shows the runnable subset.
  • Patch changeset (new normative-adjacent reference docs under docs/accounts and cross-links).

Testing

  • node tests/json-schema-validation.test.cjs --file docs/accounts/principal-registration-walkthrough.mdx: 8/8 \$schema-tagged blocks valid against static/schemas/source, and all the principal blocks also validate against the released dist/schemas/3.2.1 principal schemas (the sync-accounts-request block cannot be compiled from the 3.2.1 dist bundle because of an unresolved ref, so it is checked against source only).
  • npm run test:docs-nav, test:doc-compliance-drift, test:compliance-snippets, test:release-instrumentation, test:owned-links, check:seo (page not flagged): pass.
  • node scripts/check-changeset-protocol-scope.cjs origin/main and changesets status: pass.
  • Local pre-commit hook bypassed (same unrelated fixed-trace-rollout-typecheck-wiring 30s timeout noted on feat(training-agent): implement sync_principal and get_principal #7938); the relevant docs suites were run by hand.

🤖 Generated with Claude Code


Open workspace in Conductor

…ayer

Adds docs/accounts/principal-registration-walkthrough.mdx, the buyer-side
walkthrough for the experimental principal layer: seller-issued credentials
(workload identity for agents, own login for interactive users), capability
discovery, sync_principal declarations / webhook / reusable destination with
the action_required -> ready proof flow, account feed binding through
sync_accounts, get_principal readback, the kill switch, and the
principal.changed webhook. Includes a section for running the subset the
public training agent supports.

Cross-linked from sync_principal, get_principal, the accounts overview, and
the 3.2 guide. Every schema-tagged example validates against the 3.2.1
principal schemas.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

@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 442-line buyer-side walkthrough for the experimental principal layer plus four cross-links, with a correct patch changeset present. No schema, dist, or oneOf changes; based on main.

Checks performed:

  • Schema↔docs coherence: every wire-shape claim verified against source schemas — get_principal kind arms, sync_principal action enums, destination states/setup actions (match agent-reporting-destination-state.json), adcp.principal capabilities fields, principal.changed webhook fields/reason enum (match principal-changed-webhook.json), declarations readback fields, destination_suspended typed issue, and destination.mode: "existing" + destination_ref binding. All coherent.
  • Changeset: patch changeset present and in scope for a docs addition.
  • Naming/characters/companies: Sam, Priya, Pinnacle Agency, StreamHaus, Nova Motors all canonical per specs/character-bible.md.

high_risk is true only because docs/reference/whats-new-in-3-2.mdx is a cross-link edit matching docs/reference/**; it is a modification with no medium-or-higher finding, so it is presumed safe and does not escalate. gated_paths is false. No Critical/High/Medium findings. Falls through to row 9 — approve.

@bokelley
bokelley merged commit 3ca16bb into main Oct 6, 2026
37 checks passed
@bokelley
bokelley deleted the docs/principal-registration-walkthrough branch October 6, 2026 16:30
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.

Docs: 'Register your buyer agent' walkthrough for the principal layer

1 participant