AdCP governance and buying
A spend-capable Precise Access server checks the frozen seller payload, reserves the approved commitment, and issues the seller a signed AdCP 3.2.12 token. The public-test server exposes the sample plan for inspection. A buyer needs its own tenant, credentials and configured seller to place an order.
On this page
| Surface | Authority | Runtime | Status |
|---|---|---|---|
| Public-test product API | GET /api/v1/governance/plan reads synthetic plan balances. A browser, REST client and MCP client use the same Access server. | Sandbox | Preview |
| Tenant spend-capable Access | Governance and buying tasks share a transactional ledger. A deployment supplies authentication, signer, seller trust and pricing. | Tenant Cloud | Preview |
| Human approval | The registered approver signs at the approval port for that tenant and that frozen request. | Tenant Cloud | Preview |
Read the public example plan
GET /api/v1/governance/plancurl -sS --fail-with-body "$PRECISE_URL/api/v1/governance/plan"import json, os, sys, urllib.error, urllib.request
try:
with urllib.request.urlopen(os.environ["PRECISE_URL"] + "/api/v1/governance/plan") as response:
answer = json.load(response)
except urllib.error.HTTPError as error:
print(f"HTTP {error.code}: {error.read().decode(errors='replace')}", file=sys.stderr)
sys.exit(1)
if isinstance(answer, dict) and (answer.get("error") or (isinstance(answer.get("result"), dict) and answer["result"].get("isError"))):
print(json.dumps(answer, indent=2), file=sys.stderr)
sys.exit(1)
print(json.dumps(answer, indent=2))const response = await fetch(`${process.env.PRECISE_URL}/api/v1/governance/plan`);
const text = await response.text();
if (!response.ok) throw new Error(`HTTP ${response.status}: ${text}`);
const answer = JSON.parse(text);
if (answer?.error || answer?.result?.isError) throw new Error(text);
console.log(answer);{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_spend_plan",
"arguments": {}
}
}curl -sS --fail-with-body "$PRECISE_URL/api/mcp" \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_spend_plan","arguments":{}}}'Example answerSample Book · Synthetic Data
{"plan_id":"plan-acme-q4-video","currency":"USD","cap":250000,"committed":212400,"set_aside":0,"remaining":37600,"approved_sellers":["https://seller.example/adcp"]}The example has $37,600 available. Reading this balance reserves nothing. The public-test profile exposes no spend approval REST endpoint.
The token a seller verifies
For an approved intent, Access signs a compact governance JWS with a purpose-bound EdDSA/Ed25519 or ES256/P-256 key. The critical markers bind the amount, the task and the hash of the exact seller payload. Check the audience, phase, issuer key, expiry, revocation and applicable payload before accepting it. HTTP message signatures use RFC 9421 ed25519 or ecdsa-p256-sha256 with an RFC 9530 body digest. The approver's WebAuthn credential signs a separate challenge.
| Clock | Access default | Protocol ceiling |
|---|---|---|
| Intent token | 600 seconds | 15 minutes |
| Seller execution token | 7 days | 30 days |
| Freshness of the human approval for token issuance | 900 seconds | Configured approval policy |
The six governance tasks
The governance agent serves six tasks under AdCP's own names. Requests, responses and error codes follow the AdCP 3.2.12 schemas.
| Task | What it does |
|---|---|
get_adcp_capabilities | States what this agent supports |
sync_plans | Stores or updates a plan. A plan it cannot enforce, such as one with budget periods or a portfolio cap, is refused at sync |
check_governance | Checks one action against the plan and answers approved, conditions or denied |
report_plan_outcome | Records how a governed action ended |
report_plan_adjustment | Records a seller's adjustment with its evidence. The plan's owner accepts it |
get_plan_audit_logs | Returns a summary by default. Set include_entries: true to request entries with their inclusion proofs |
check_governance runs in four phases. The buyer's agent asks in intent with the task and the exact payload. The seller asks in purchase, modification and delivery with the token and what it will run. The seller's check at execution time is this same task in the purchase and delivery phases. A higher price, later dates or other terms than were approved are denied, and an approved check returns a fresh token for its phase.
A plan can require a person. The check then answers conditions, and the token is issued on the next check once a person has signed for that exact payload, that check and the plan as it stands.
The agent runs in enforce by default. In advisory and audit a finding is recorded and the action proceeds. Five rules hold in every mode: who may buy for the plan, who may sell to it, a person's approval, the plan's currency, and a request that was already sent.
The plan's account
- The account moves by one conditional update: a task reads it, decides, and writes only if it has not moved. When two checks compete for the same remaining amount, only the winning reservation can commit.
- An approval that lapses unused gives its budget back. One that was sent to a seller holds its place until its outcome is reported.
- A commitment is the amount the agent approved, or the smaller amount the seller stated at its own check.
- Money is whole micros. An amount with more than six decimals is refused.
Buying and read-only monitoring
| Operation | Caller, effect and retry contract |
|---|---|
buying_discover / buying_price | The buyer discovers the seller's supported workflow. Pricing records a priced proposal with its Gateway reference. |
buying_propose / intent check_governance | The buyer freezes the seller payload. An approved enforce-mode check can reserve headroom, persist the action and issue a token. A human-review plan first returns conditions and a consultation handle. An approved proposal may dispatch immediately. |
| Approval port | A registered approver opens GET /api/approvals/:id and signs via POST /api/approvals/:id/sign. The challenge binds the payload hash, check ID and plan hash. A signed approval may resume dispatch. |
buying_inspect | The same buyer principal, with precise:read or precise:act, reads its tenant's stored state using a governed action ID or the priced ID. Grant precise:read to a monitor. This operation has no network calls to the seller or state transitions. |
buying_status | An acting buyer can resend an approved or ambiguous order even with default arguments, report outcomes, refresh delivery, settle a claim, and perform authorized pause/resume or cap changes. Retries target the frozen seller with the original bytes and idempotency key. |
report_plan_outcome / report_plan_adjustment | Authorized parties record seller outcomes and independently identified corrections. Supply an idempotency key. A buyer reviews the seller's adjustment. |
For a spend-capable tenant, initialize the HTTP MCP client against its tenant buyer endpoint and send this tool request with the monitoring buyer's bearer token. Replace the example governed action ID with the one returned for that buyer.
{"jsonrpc":"2.0","id":12,"method":"tools/call","params":{"name":"buying_inspect","arguments":{"governed_action_id":"ga_example"}}}An operator who reports unresolved or not_made creates an immutable claim with evidence_kind: "unconfirmed_operator_claim". The reservation stays held until the seller can confirm the disposition. A seller-confirmed order records settled_from: "get_media_buys", the order, seller and confirmation time after matching the frozen account, currency, amount and payload or proposal terms. Treat those two evidence records differently when closing a buy.
The audit log
Each entry of the plan's audit log carries a salted RFC 9162 inclusion proof and a signed tree head. One entry can be checked offline, and one changed byte fails the check. The log lists each governed action, each check that waited for a person, and how the person answered. A seller is told its own verdict and gets its own statement back.
Checked against AdCP's own material
| What | AdCP 3.2.12 material | Result |
|---|---|---|
| Governance token | 27 token cases | All give the published result and error code |
| The token signer | 26 of those tokens | Reproduced byte for byte |
authorized_payload_hash and plan_hash | 3 cases and 11 vectors | All |
| Request signatures | 14 positive and 32 negative cases | All verify or are refused with the published code |
| Governance schema tests | 164 pinned JSON Schema files | 21 request/response pairs across five tasks, plus one end-to-end buy. Capabilities has separate behavior tests |
The official SDK, @adcp/sdk 14.0.0 | Its verifiers, signer and governance agent | Each side accepts the other's signatures and tokens |
Endpoints and discovery
One server offers public-test (public_test), tenant-read and spend-capable profiles. Only a spend-capable server holds the governance tasks, the buying tools and the approval port.
| Address | Serves |
|---|---|
POST /api/mcp, POST /api/mcp/x/<toolset> | MCP. The toolsets are core, governance and buying |
POST /api/a2a | A2A JSON-RPC: SendMessage (1.0) and message/send (0.3), with one data part { skill, input } |
/t/<tenant>/governance, /t/<tenant>/governance/a2a | Tenant governance MCP and A2A |
/.well-known/mcp/server-card.json, /.well-known/oauth-protected-resource, /.well-known/agent-card.json | Server card, RFC 9728 metadata, A2A agent card |
/t/<tenant>/buyer, /t/<tenant>/buyer/a2a | Tenant buying MCP and A2A |
/t/<tenant>/.well-known/brand.json | The account's governance and buying agents and where their keys are |
/t/<tenant>/governance/.well-known/jwks.json, /t/<tenant>/buyer/.well-known/jwks.json | The governance-signing key and the request-signing key |
/t/<tenant>/.well-known/audit-keys.json, /t/<tenant>/.well-known/governance-revocations.json | The audit-signing key and the signed revocation list |
/t/<tenant>/.well-known/adagents-entry.json | The lines a publisher adds to its own adagents.json |
What a deployment supplies
Local integration tests use stand-ins. A spend-capable deployment supplies the following services.
- The Gateway. Its methods supply price bands and delivery measurements, each with a verified run.
- A key service. It holds the signing keys behind the same signer interface, with governance keys on their own origin.
- Login. OAuth 2.1 access-token verification against your authorization server.
- Counterparty keys. A lookup that fetches a seller's
brand.jsonand key set. - Passkeys. An operator registers each approver's public key.
What the agent checks, and what it records
A plan sync and an intent check report their own coverage: each rule comes back as enforced, recorded_only or unavailable.
| Enforced when applicable and the required facts are present | Recorded and not judged today |
|---|---|
| Who may buy for the plan, and who may sell to it | The text of a policy, and policy ids from a registry |
| One budget in one currency per plan | Geography beyond the countries a request states, channel mix, audience constraints, restricted attributes and reallocation thresholds |
| A person's approval, where the plan requires one | Runtime attestations for signal activation |
| Price, dates and terms the seller actually supplied, against what was approved | Spend summed over a trailing window: aggregation_window_days is 0 |
| A request that was already sent |
Read the response's ext.precise.rule_enforcement. A seller that omits its planned start has no evidence to support a start-date comparison. A registry reference records the policy without applying its text. Example entries from the corresponding intent and seller execution phases:
[{"rule_id":"budget","status":"enforced"},{"rule_id":"policy:brand-policy","status":"recorded_only"},{"rule_id":"flight.start","status":"unavailable"}]Four more facts shape a plan today. A plan with budget periods or a portfolio cap is refused at sync. A check that waits for a person answers conditions and is asked again. An account holds each plan_id once. And the SDK's verifiers, signer and governance agent were run against this package, while its conformance storyboards were not.
Related
MCP and A2A · REST API quickstart · Standards map · Offline verification