How it works

Understand the request before you change the rules.

The proposed publisher pilot: understand signed agent requests, define access terms, and review decisions before enforcement.

Publisher applications are open. Gateway onboarding is in development; payment enforcement and production rollout are not part of this launch.

From your content to a clear decision

An agent asks for an article, listing or catalog action. The gateway is designed to check the signed identity, load your terms and record a decision. This connects your publishing choices to the request itself. In the proposed observe-only pilot, decisions are recorded while requests continue through; paid access comes only after a separately agreed rollout.

GET/events/atlanta-coin-show-2027Signature-Agent: "agent.example"
  1. verifyEd25519 · keyid 7f3a…c1 · directory cache hitok
  2. contractuscoinshows · policy 2026-12-01.3 · action fetch_articleloaded
  3. decideidentity verified · tier basic · route listingsallow_metered
  4. meter402 → PAYMENT-SIGNATURE → facilitatorsettled
  5. ledgerentry 0x2e…9a · debit agent / credit publisher · +$0.004balanced
mode observewould_action allow_meteredaction_taken allowadded 3.1 ms
One decision event, as the gateway records it. Values are illustrative.
  1. 01

    A request arrives, signed

    The agent signs the request with an Ed25519 key and names its key directory in Signature-Agent.

    Agents that follow Web Bot Auth attach three headers: Signature-Input (what was signed, when, and until when), Signature (the Ed25519 signature), and Signature-Agent (the origin that publishes the operator's keys). Unsigned traffic still flows; it is simply unverified.

  2. 02

    Verify the identity

    The gateway fetches the operator's key directory once, caches it, and checks the signature.

    The key directory at /.well-known/http-message-signatures-directory is fetched over a hardened client (no private addresses, no redirects to new hosts, bounded size), cached per operator, and matched by JWK thumbprint. The signature must cover the authority, method, path and Signature-Agent, be inside its validity window, and not be a replay.

  3. 03

    Load your contract

    Your terms, compiled from JSON-LD into actions, prices and limits, signed and versioned.

    A publisher describes what agents may do in a small JSON-LD document: fetch_article, search_catalog, get_item, check_availability, and what each costs or requires. The compiler canonicalizes it (RFC 8785), signs it (detached EdDSA JWS), publishes it at /.well-known/tollgentic.json, and the gateway loads the active version by policy_version.

  4. 04

    Decide

    One pure function returns allow, allow_metered, challenge, rate-limit, deny or redirect.

    decide() is deterministic: identity state, operator tier, route group and contract in; one action out. Routes you mark never-touch (checkout, login, account, form posts) are always allow. In observe mode the decision is recorded as would_action while action_taken stays allow, so you see exactly what enforcement would have done before switching it on.

  5. 05

    Meter, settle, record

    Paid actions get a 402 with x402 terms; settlement and a double-entry ledger entry follow.

    For allow_metered the gateway answers 402 with a PAYMENT-REQUIRED header carrying x402 v2 terms. The agent retries with PAYMENT-SIGNATURE, a facilitator settles on-chain, and the ledger records a balanced entry in integer micro-USD. The payment state machine keeps every step durable, so a lost response never means a lost or doubled charge.

Rollout

Observe, then canary, then enforce. Never the other order.

1

Observe

14 days minimum

Every request runs the full path. Decisions are recorded as would_action; action_taken is always allow. Humans and agents see no change. You get a weekly report of what enforcement would have done, by route group, with raw counts.

2

Canary

7 days, one route group

Challenge signed-but-unknown operators on one read-only route group, sticky by operator, with a control cohort left untreated. Rollback thresholds are written down first. The canary is a separate decision from going live in observe mode.

3

Enforce

route group by route group

Meter the actions you priced. Deny what you chose to deny. Never-touch routes stay pass-through regardless. Each expansion is its own switch, and bypass is one deploy away at every step.

Three rails hold in every stage: the never-touch route group, the TOLLGENTIC_MODE=bypass kill switch, and a route-level rollback that works even when the Worker is unhealthy. We drill the rollback and record the recovery time before a site goes live.

The contract

Your terms, as a document both sides read.

You write the actions agents may take, the routes they map to, the tiers allowed, the price and the rate. The compiler canonicalizes it (RFC 8785), signs it (detached EdDSA JWS), versions it, and publishes it at /.well-known/tollgentic.json. The gateway enforces that exact document, and agents fetch the same bytes.

Full formats on the Developers page.

{
  "@type": "AgentAccessContract",
  "publisher": "https://uscoinshows.example",
  "policy_version": "2026-12-01.3",
  "actions": [
    { "name": "fetch_article",
      "routes": ["/events/*"],
      "tiers": ["basic", "verified"],
      "price_usd_micro": 0 },
    { "name": "search_catalog",
      "routes": ["/search"],
      "tiers": ["verified"],
      "price_usd_micro": 4000,
      "rate": "60/min" }
  ],
  "never_touch": ["/checkout/*", "/account/*",
                  "/login", "POST:/forms/*"]
}
Getting started

A pilot begins with your publishing goals

  1. Agree the scope first. Apply with one Cloudflare site you control. Once onboarding and safety checks are ready, agree which read-only routes enter the pilot and test the protected visitor journeys and rollback plan before installation.
  2. Write the contract. Start from a template for a directory, a listings site or a catalog. Mark your never-touch routes. Price nothing at first if you like; observe mode does not need prices to produce evidence.
  3. Review the evidence together. The proposed pilot includes at least fourteen days of observation and a weekly review of signed operators and policy decisions. Unsigned traffic remains unverified. A potential priced request is not collected revenue; decide separately whether to test a canary or paid access.