Skip to content

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

Closed
bokelley wants to merge 4 commits into
mainfrom
docs/principal-registration-walkthrough
Closed

bokelley wants to merge 4 commits 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

Stacked on #7056's PR (#7938) so the page can point readers at a live reference seller; GitHub will retarget this to main when that merges.

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

bokelley and others added 2 commits October 6, 2026 08:41
Adds the experimental principal layer to the /sales training agent so the
universal/principal storyboard executes instead of resolving N/A.

- Principal is resolved only from authenticated transport (API key ->
  buyer_agent, WorkOS user -> operator); anonymous callers get AUTH_REQUIRED
  and identity fields in the body are refused.
- sync_principal: replace-by-section reporting_destinations and declarations,
  dry_run, expected_configuration_version / expected_principal_kind fences,
  idempotent replay, section clearing, destination generations and retired
  destinations, schema-validated input with secret screening.
- Reporting destination proof is simulated: active destinations read back
  action_required, then ready; inactive destinations skip proof.
- get_principal: recognized identity before configuration, current readback
  after, including the declarations accepted intersection.
- Advertises adcp.principal and protocol.principal. notification_configs stays
  on sync_agent_notification_configs for now.
- customToolFor no longer caches kind: failed results as idempotent replays.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…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 or medium findings.

This PR adds a 442-line buyer-agent principal registration walkthrough plus four cross-links across docs. No code, schema, or dist-artifact changes. The reviewer verified every wire-shape claim against source schemas — get-principal-response arms, sync-principal-response actions and dry-run arm, destination setup states, setup.action enum, principal-changed-webhook fields/reason enum, and declarations fields all match. Largest-file content (prove_control warehouse patterns, DESTINATION_PROOF_DELAY_MS) matches training-agent/principal.ts. Characters (Sam/Pinnacle, Priya/StreamHaus, Nova Motors) are canonical per the character bible. Changeset is patch, additive, with no breaking wire change.

Decision trace: Rows 1 (no critical/high), 2 (gated_paths false), 3 (no deletions), 4/5 (no medium findings), 6 (no prior decision), 7 (no team gate), 8 (<3 medium) all fail. high_risk is true only because docs/reference/whats-new-in-3-2.mdx was modified, but with no medium-or-higher finding on it, the modification is presumed safe and the flag alone does not escalate. Falls through to row 9 — approve.

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Oct 6, 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 addition, clean pass.

This PR adds a new experimental principal-registration walkthrough (docs/accounts/principal-registration-walkthrough.mdx), three cross-link edits, and a patch changeset. The reviewer verified every load-bearing wire claim against the source schemas — adcp.principal capabilities, get_principal result kinds, sync_principal action/dry-run arms, destination setup states/actions, principal-changed-webhook fields and reason enum, identity rejection on both request schemas, and retired_destinations/prior_destination_refs — all match with no spec drift. Characters and fictional companies are canonical, all six internal links resolve, /schemas/v3/ matches the sibling provisioning-walkthrough convention, and the patch changeset is correct for an experimental-feature docs addition.

Decision-table walk: no critical/high/medium findings (rows 1, 4, 5, 8 don't fire). gated_paths is false and review_decision is APPROVED (row 2 n/a). The only high-risk reason is docs/reference/whats-new-in-3-2.mdx (modified) with no medium finding attached, so row 5 doesn't fire; no deleted files (row 3 n/a). Prior decision was approve, so sticky-escalation row 6 doesn't apply. No no-auto-approve team match (row 7 n/a). Falls through to row 9 — approve.

Base automatically changed from conductor/33-ship-7056-7057 to main October 6, 2026 15:14
@bokelley
bokelley dismissed aao-secretariat[bot]’s stale review October 6, 2026 15:14

The base branch was changed.

@bokelley
bokelley deleted the branch main October 6, 2026 15:14
@bokelley bokelley closed this Oct 6, 2026
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