402xAgent rules

How a check turns a live x402 payment request into pay, skip or recheck. Machine-readable: /rules.json (version 2026-10-27).

Verdicts

Reason codes

reason_codeverdictdefault confidencerule
price_okpayhighLive 402 offers canonical USDC on a supported mainnet, to the listed wallet and network, at the listed price (within 1%).
price_below_listingpayhighAs price_ok, but the live price is more than 1% below the listed price.
price_mismatchskiphighLive price is more than 1% above the listed or claimed price.
pay_to_mismatchskiphighThe 402 pays a different wallet than listed.
network_mismatchskiphighThe 402 asks for payment on a different network than listed.
asset_not_usdcskiphighThe 402 asks for a token other than canonical USDC.
network_unsupportedskiphighThe 402 only offers a testnet or a network we do not support.
ssrf_blockedskiphighPrivate, local or otherwise unsafe address; never fetched. (0.55.0: a host that does not resolve is dns_error, not this.)
no_paywallskipmediumThe endpoint answered without an x402 payment request (one probe; a route may need another method or path). Includes a plain 403; since 0.55.0 not a 429 (rate_limited) or a WAF-challenge 403 (waf_challenge).
bad_challengeskipmediumA 402 came back but its payment request has no readable USDC price.
challenge_expiredskiphighOpt-in only (&check_expiry=1): every Base USDC option has an absolute expiry (extra.validBefore/expiresAt/expiry/deadline) at or within skew_s (default 30, max 300) of now, or maxTimeoutSeconds <= 5.
ambiguousskipmediumThe payment request is unclear (several incompatible offers).
free_trial_activerechecklowThe seller says a free trial is active, so there is no price to check yet.
timeoutrechecklowThe endpoint did not answer in time. Since 0.56.0 one budget covers the whole probe of a target (every redirect hop and the body read): PROBE_TIMEOUT_MS, default 8000 ms.
unreachablerechecklowCould not connect (TLS or network error; an unresolvable host is dns_error since 0.55.0).
server_errorrechecklowThe endpoint returned a 5xx.
delivery_failedrechecklow0.53.3 (DELIVERY_CHECK): the terms would pass, but our latest paid call to this endpoint (within 14 days) settled and got back a failed delivery (5xx, challenge/CAPTCHA page, sign-in/subscribe wall, canned refusal, error-only or placeholder body). Applies to new checks only; past pay/skip verdicts and receipts are never changed; endpoints without delivery data are unaffected.
terms_changed_since_quoterechecklow0.54.0 opt-in (&quote=<receipt id>): the live terms would pass, but the price, pay_to, network or asset differs from the quote (crawl or live receipt) the buyer was shown. Check again without quote to approve the new terms.
rate_limitedrechecklow0.55.0 (new checks only): HTTP 429 with no x402 terms. Was skip/no_paywall. After TRANSIENT_SKIP_AFTER_HOURS (default 24 h) of only rate_limited / waf_challenge / dns_error answers for the same URL + method: skip/rate_limited_persistent.
waf_challengerechecklow0.55.0 (new checks only): HTTP 403 with a firewall/WAF signature: a cf-mitigated or x-amzn-waf-action header, a Cloudflare-served challenge/block page (server: cloudflare plus challenge-platform / cf_chl_opt / cf-chl- markers, 'Just a moment...', 'Attention Required! | Cloudflare', or 'Sorry, you have been blocked' with a Cloudflare Ray ID), or an AkamaiGHost 'Access Denied' page with its Reference #. A plain 403 stays skip/no_paywall. Was skip/no_paywall. Persisting: skip/waf_blocked_persistent.
dns_errorrechecklow0.55.0 (new checks only): the host did not resolve (no A/AAAA answer or a resolver error) on the first lookup and on exactly one retry; the URL is never fetched. A live DNS failure uses no free check and is never charged (also as dns_error_persistent). Hosts that resolve to private, loopback or link-local addresses are still skip/ssrf_blocked. Was skip/ssrf_blocked (live) or skip 'domain does not resolve' (crawl). Persisting: skip/dns_error_persistent.
rate_limited_persistentskipmedium0.55.0: the endpoint has answered only rate_limited / waf_challenge / dns_error for at least TRANSIENT_SKIP_AFTER_HOURS (default 24 h; from our stored checks of the same URL + method) and the latest was a 429.
waf_blocked_persistentskipmedium0.55.0: as rate_limited_persistent, and the latest answer was a WAF-challenge 403.
dns_error_persistentskipmedium0.55.0: as rate_limited_persistent, and the latest lookup failed DNS (after one retry).
host_unstablerechecklow0.56.0 (new checks only): per-host circuit breaker. After BREAKER_FAILS (default 3) failed probes of the same host (HTTP 5xx, timeout or connection error) within BREAKER_WINDOW_MIN (default 10) minutes, with no successful probe in between, new checks of that host answer this for BREAKER_COOLDOWN_MIN (default 15) minutes without fetching the target: no free check used, never charged or settled, no receipt stored. Then one half-open probe decides: success closes the breaker, a failure re-opens it. Neutral for the 0.55.0 fallback: it neither counts toward nor breaks a rate_limited / waf_challenge / dns_error streak, and never becomes a skip. SSRF blocks stay ssrf_blocked; a plain 403 stays no_paywall.
terms_unstablerechecklow0.57.0 (new live checks only): multi-probe before pay. A live, uncached check whose first probe would be pay probes the same target again MULTIPROBE_GAP_MS (default 250 ms) later, inside the PROBE_TIMEOUT_MS budget (a confirm probe gets at least 1500 ms). It runs only once access is granted (a free check used or a payment verified and settled), and never for cron self-checks. This code: the confirm probe read different 402 terms (scheme, network, asset or payTo of any offer, or an amount more than 1% apart, the same tolerance as a listed price; order-insensitive), or none; the receipt names the differing fields (never values) in probe.multiprobe.diff_fields. With MULTIPROBE_COUNT=3 a third probe breaks the tie and pay needs the 2nd and 3rd to agree. A confirm probe that fails (5xx, timeout, connection error) answers its own existing code (server_error, timeout, unreachable) and counts as a breaker failure. Cached probes and crawl answers are not re-probed; one check is still one free check or one $0.02 payment. MULTIPROBE_COUNT=1 turns it off.
terms_stalerechecklow0.54.0 catalog/crawl answers only (discover; effective_verdict on crawl receipts, by-url, skips and lookup): the stored pay's terms are older than TERMS_MAX_AGE_HOURS (7 days in production; see each discover answer's terms_max_age_hours). Never produced by a live check, which always re-reads the 402.

within 1% of the listed price counts as the listed price.

Confidence

Quality codes

Separate from reason_code; never changes a verdict. Folded into reputation.

codereputation valuerule
quality_ok1Reachable, answered HTTP 402 with a well-formed payment request (JSON body or PAYMENT-REQUIRED header), declares an output schema, and the response sample it publishes validates against that schema.
quality_unverified0.7Reachable, HTTP 402 with a well-formed content type, but there is nothing to validate: no output schema declared, or a schema without a sample. Not a fault; we never pay the seller to capture a real response.
quality_bad_content_type0.4HTTP 402 whose terms are only in the body, and the body is not JSON (content-type is not application/json or +json).
quality_schema_mismatch0.3The listing declares an output schema (bazaar extension or v1 outputSchema) and the sample it publishes does not validate against it.
quality_bad_status0.2Reachable, but the response is not an HTTP 402 payment request (e.g. 200 without a paywall, 404, 5xx).
quality_unreachable0No response: timeout, DNS/TLS/network error, or an address we refuse to fetch.

Seller reputation

score = round(100 * sum(w_i * c_i) / sum(w_i)), over the components c_i (each 0..1) that have data; a component with no data is left out and the remaining weights are renormalized. Cap: with at least 5 pay/skip checks in 30 days and pay_share under 0.2, score = min(score, 49).

componentweightdefinition
stability25per endpoint: time the current payment terms (price, network, asset, pay_to) have held / time we have observed the endpoint (endpoint_history, last 30 observations); mean over endpoints. Observations without terms (timeouts) do not reset it.
drift201 - min(1, 2 * penalty / transitions) over consecutive term-bearing observations of every endpoint; penalty per transition: pay_to change 1, network or asset change 1, price-only change 0.5. No transitions -> no data.
verdicts30last 30 days of checks: pay_share * (0.5 + 0.5 * consistency). pay_share = pay / (pay + skip); consistency = share of checks that agree with their endpoint's latest verdict. Recheck verdicts (timeouts, 5xx) are left out.
freshness101 if the newest check is under 24 h old, then linear down to 0 at 14 days.
quality15mean over endpoints of the latest quality code's value: quality_ok=1, quality_unverified=0.7, quality_bad_content_type=0.4, quality_schema_mismatch=0.3, quality_bad_status=0.2, quality_unreachable=0. No quality data -> no data.

Limits

Fields

402xAgent