PreciseDocs

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
SurfaceAuthorityRuntimeStatus
Public-test product APIGET /api/v1/governance/plan reads synthetic plan balances. A browser, REST client and MCP client use the same Access server.SandboxPreview
Tenant spend-capable AccessGovernance and buying tasks share a transactional ledger. A deployment supplies authentication, signer, seller trust and pricing.Tenant CloudPreview
Human approvalThe registered approver signs at the approval port for that tenant and that frozen request.Tenant CloudPreview

Read the public example plan

Runtime: SandboxStatus: PreviewGET /api/v1/governance/plan
curl -sS --fail-with-body "$PRECISE_URL/api/v1/governance/plan"

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.

ClockAccess defaultProtocol ceiling
Intent token600 seconds15 minutes
Seller execution token7 days30 days
Freshness of the human approval for token issuance900 secondsConfigured 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.

TaskWhat it does
get_adcp_capabilitiesStates what this agent supports
sync_plansStores or updates a plan. A plan it cannot enforce, such as one with budget periods or a portfolio cap, is refused at sync
check_governanceChecks one action against the plan and answers approved, conditions or denied
report_plan_outcomeRecords how a governed action ended
report_plan_adjustmentRecords a seller's adjustment with its evidence. The plan's owner accepts it
get_plan_audit_logsReturns 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

OperationCaller, effect and retry contract
buying_discover / buying_priceThe buyer discovers the seller's supported workflow. Pricing records a priced proposal with its Gateway reference.
buying_propose / intent check_governanceThe 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 portA 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_inspectThe 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_statusAn 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_adjustmentAuthorized 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.

JSON
{"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

WhatAdCP 3.2.12 materialResult
Governance token27 token casesAll give the published result and error code
The token signer26 of those tokensReproduced byte for byte
authorized_payload_hash and plan_hash3 cases and 11 vectorsAll
Request signatures14 positive and 32 negative casesAll verify or are refused with the published code
Governance schema tests164 pinned JSON Schema files21 request/response pairs across five tasks, plus one end-to-end buy. Capabilities has separate behavior tests
The official SDK, @adcp/sdk 14.0.0Its verifiers, signer and governance agentEach 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.

AddressServes
POST /api/mcp, POST /api/mcp/x/<toolset>MCP. The toolsets are core, governance and buying
POST /api/a2aA2A JSON-RPC: SendMessage (1.0) and message/send (0.3), with one data part { skill, input }
/t/<tenant>/governance, /t/<tenant>/governance/a2aTenant governance MCP and A2A
/.well-known/mcp/server-card.json, /.well-known/oauth-protected-resource, /.well-known/agent-card.jsonServer card, RFC 9728 metadata, A2A agent card
/t/<tenant>/buyer, /t/<tenant>/buyer/a2aTenant buying MCP and A2A
/t/<tenant>/.well-known/brand.jsonThe account's governance and buying agents and where their keys are
/t/<tenant>/governance/.well-known/jwks.json, /t/<tenant>/buyer/.well-known/jwks.jsonThe governance-signing key and the request-signing key
/t/<tenant>/.well-known/audit-keys.json, /t/<tenant>/.well-known/governance-revocations.jsonThe audit-signing key and the signed revocation list
/t/<tenant>/.well-known/adagents-entry.jsonThe 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.

  1. The Gateway. Its methods supply price bands and delivery measurements, each with a verified run.
  2. A key service. It holds the signing keys behind the same signer interface, with governance keys on their own origin.
  3. Login. OAuth 2.1 access-token verification against your authorization server.
  4. Counterparty keys. A lookup that fetches a seller's brand.json and key set.
  5. 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 presentRecorded and not judged today
Who may buy for the plan, and who may sell to itThe text of a policy, and policy ids from a registry
One budget in one currency per planGeography beyond the countries a request states, channel mix, audience constraints, restricted attributes and reallocation thresholds
A person's approval, where the plan requires oneRuntime attestations for signal activation
Price, dates and terms the seller actually supplied, against what was approvedSpend 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:

JSON
[{"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.

MCP and A2A · REST API quickstart · Standards map · Offline verification

↑↓ to move↵ to open

Connect an agent

Precise Sandbox speaks MCP over Streamable HTTP with a per-company workspace key (penv_...). Request a private sandbox key at sandbox.precise.ai.

https://sandbox.precise.ai/api/mcp/<YOUR_SANDBOX_KEY>

Set PRECISE_SANDBOX_KEY to your per-company workspace key (penv_...), then run once in a terminal.

claude mcp add --transport http precise-sandbox https://sandbox.precise.ai/api/mcp --header "Authorization: Bearer $PRECISE_SANDBOX_KEY"