Repository navigation
Conversation
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]>
There was a problem hiding this comment.
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.
…o docs/principal-registration-walkthrough
There was a problem hiding this comment.
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.
The base branch was changed.
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
mainwhen that merges.The page follows Sam at Pinnacle Agency and Priya at StreamHaus through:
get_adcp_capabilities→adcp.principal, supported sections, reporting offeringsget_principal→recognizedsync_principalwith declarations, a webhook, and a reusable destination, including theaction_required→readyproof flowsync_accountsauthorization and feed binding (reporting_delivery_configswithdestination.mode: existing)get_principalreadback, the kill switch, and theprincipal.changedwebhookIt carries the experimental banner (in the
list_account_changesstyle), and says throughout that principal configuration grants no account authority. Cross-linked fromsync_principal,get_principal, the accounts overview, and the 3.2 guide.Judgment calls
docs.jsonedit. Since the 3.2 GA snapshot flip, every nav page is adist/docs/<version>/…path and source docs are only added to nav at the next release snapshot;test:docs-navpasses. Nothing to add for a main-only page.reporting_destinationsanddeclarationsonly, simulates proof, and fires noprincipal.changed, so the main story shows a full-featured seller (StreamHaus) and a separate section shows the runnable subset.docs/accountsand cross-links).Testing
node tests/json-schema-validation.test.cjs --file docs/accounts/principal-registration-walkthrough.mdx: 8/8\$schema-tagged blocks valid againststatic/schemas/source, and all the principal blocks also validate against the releaseddist/schemas/3.2.1principal schemas (thesync-accounts-requestblock 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/mainandchangesets status: pass.fixed-trace-rollout-typecheck-wiring30s 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