View as Markdown

Mandate · Reference

Policy field catalog

A policy rule's conditions read fields in three layers: the standard catalog, Your fields and Any field. GET /v1/account/policies/fields returns them for one audience, with the operators each type takes; a person's own rules read GET /v1/personal/policies/fields.

The console's rules builder and the rules embed's Advanced view list the standard fields under the same groups (Order, Agent, Approval, Cart, Location and so on), and no two fields of an audience share a label.

AudienceaudienceDocument
A person's own rulesperson/v1/personal/policies
A store's checkout rulesstore/v1/authorize/policies
An agent builder's policybuilder/v1/mandate/policies
Attest claims riskclaims/v1/attest/risk_policies
Attest capture rulescapture/v1/attest/capture_policies

Verified and as reported

Verified fields are values Provenance checks itself: the signed amount, the agent's identity, the device tier, the payload hash. As reported fields are what the agent, store or person sent; a rule on one is only as good as what the sender says, and the builder labels it that way.

Operators by type

TypeOperators
numbergt, gte, lt, lte, eq, ne
stringeq, ne, in, matches, in_list, not_in_list
booleaneq
listcontains, contains_any
timeeq, ne, in, gt, gte, lt, lte

Standard fields

A standard fact is written { "fact": "<name>", "op", "value" }. A request field is written { "fact": "field", "path": "<path>", "op", "value" }.

The builder lists a store's fields in groups, in this order: Order, Agent signature, Agent behaviour, Payment (with Stripe risk scores under their own heading), Store, Time and Person. Each field in the catalog names its group.

A person's rules

FieldConditionTypeTrust
Order totalorder.amountnumberVerified
Currencyorder.currencystringAs reported
Categoryorder.categorieslistAs reported
StorestorestringVerified
Agentagent_idstringVerified
Time (hour)time.local_hourtimeVerified
Day of weektime.local_weekdaytimeVerified

The hour and weekday are in the document's timezone (an IANA name such as America/Chicago). A person's rules read these fields only, and their outcomes are ask or block.

A store's checkout rules

FieldConditionTypeTrust
Order totalorder.amountnumberVerified
Currencyorder.currencystringAs reported
Categoryorder.categorieslistAs reported
Itemsorder.item_countnumberAs reported
Agent verifiedagent.verifiedbooleanVerified
Visitor kindagent.classstring: signed_agent, declared_bot, suspected_bot, likely_human or unknownVerified
Covered bycheckout.coveredstring: token, mandate, reused or noneVerified
Bot scoreagent.bot_scorenumberVerified
Agent platformagent.platformstring: openai, anthropic, google, microsoft, apple, perplexity, meta or common_crawlAs reported
Platform named byagent.platform_sourcestring: signed or declaredAs reported
Card network agent programagent.network_programstring: visa_tap, visa_vic or mastercard_agent_payVerified
Signed foragent.signed_forstring: browse, pay or generalVerified
Name on the agent's cardagent.card_namestringVerified (as its signer published it)
Agent run byagent.operator_kindstring: direct or intermediaryAs reported
Card network sent the buyer's detailsagent.network_consumerbooleanVerified
Why it's an agent orderagent.order_signalslist: channel, visit, network_signature, shared_payment_token, agentic_tokenAs reported
Agent commerce protocolagent.protocolstring: ucp (present only on a UCP checkout)As reported
UCP platformucp.platformstring: the host of the platform's profile URLAs reported
UCP platform signed the requestucp.platform_signedbooleanVerified
Platform shows our approval stepucp.approval_actionbooleanAs reported
AP2 checkout mandateucp.ap2_mandatestring: accepted, refused or absentVerified
Who finished the checkoutucp.completed_bystring: person or agent (present only on your checkout page after a UCP escalation)As reported
Paid with a Stripe shared payment tokenpayment.shared_payment_tokenboolean (present only when checked on your Stripe)Verified
Paid with a Stripe shared payment token (as reported)payment.shared_payment_token_reportedbooleanAs reported
Paid with a card network agent token (as reported)payment.agentic_tokenbooleanAs reported
Paid with a network tokenpayment.network_tokenbooleanVerified
Agent's Stripe profilepayment.agent_profilestringVerified
Stripe risk scorespayment.stripe_risk.bot, .card_testing, .stolen_card, .fraudulent_dispute, .card_issuer_declinenumberVerified
Bot likelihood score)agent.bot_likelihood_scorenumber (0 to 100)As reported
Shopper account age (days)merchant.customer_account_age_daysnumberAs reported
Shipping tomerchant.ship_tostringAs reported
Gift card amountmerchant.gift_card_amountnumberAs reported
Billing countrybilling.countrystring (ISO 3166-1, US)As reported
Billing regionbilling.regionstring (ISO 3166-2, US-OR)As reported
Customer's answer (after approval)approval.decisionstring: approved or declinedVerified
Passkey age, in days (after approval)approval.passkey_age_daysnumber (two places; a passkey made on the approval's page is 0)Verified
Approval locationapproval.locationstring: matches_billing, differs, unavailable or no_billingAs reported
Device time zone matches billingapproval.timezone_matches_billingbooleanAs reported
Network country matches billingapproval.network_country_matches_billingbooleanAs reported
Network region matches billingapproval.network_region_matches_billingbooleanAs reported
Network city matches billingapproval.network_city_matches_billingbooleanAs reported
Distance from billing (km)approval.min_distance_km_billingnumberAs reported
Hour (UTC)hour_utctimeVerified
Day of week (UTC)weekday_utctimeVerified

The ucp.* fields come from a UCP checkout assessment. None of them alone approves an order; an accepted AP2 mandate counts only through your outside confirmations.

An agent builder's policy

FieldConditionTypeTrust
Order totalorder.amountnumberVerified
Currencyorder.currencystringAs reported
Categoryorder.categorieslistAs reported
Itemsorder.item_countnumberAs reported
Agentagent_idstringVerified
Agent platformagent.platformstring: a platform name, from the agent's requestAs reported
Platform named byagent.platform_sourcestring: signed or declaredAs reported
Action typeaction_typestringAs reported
TooltoolstringAs reported
Amounttransaction_amountnumberAs reported
SuppliercounterpartystringAs reported
Mandatemandate_idstringAs reported
Device tierdevice_trust_tierstringVerified
Face or fingerprint usedbiometric_boundbooleanVerified
Hardware-backed phonehardware_attestedbooleanVerified
Action matches what was approvedpayload_boundbooleanVerified
Hour (UTC)hour_utctimeVerified
Day of week (UTC)weekday_utctimeVerified

An agent builder's catalog also lists spend and request limits, counted from the account's own approved requests. Each is a velocity condition with its velocity parameters, is on Pro and above, and counts requests before this one:

FieldConditionTrust
Spend by this agent this month{ "fact": "velocity", "metric": "amount_sum", "window": "month", "per": "agent" }As reported
Spend by the account this monthmetric: amount_sum, window: month, per: accountAs reported
Spend by the account in the last 24 hoursmetric: amount_sum, window: 24h, per: accountAs reported
Requests by this agent in the last hourmetric: verify_count, window: 1h, per: agentVerified
Requests by the account in the last hourmetric: verify_count, window: 1h, per: accountVerified

month is the calendar month in UTC, from the 1st at 00:00. Spend adds the amounts agents reported on approved requests; requests are counted by Provenance. The policies page lists the other facts an agent policy reads, such as canaries and external risk.

Cart fields for stores and agent builders

Both catalogs also list the cart's own fields as request fields, read from the order a checkout or a verify carries:

FieldPathType
Order IDorder.order_idstring
Order total (minor units)order.totalnumber
Currencyorder.currencystring
Merchant IDorder.merchant_idstring
Storeorder.originstring
Delivery address digestorder.fulfillment_digeststring
Item SKUorder.items[].skustring
Item nameorder.items[].namestring
Item quantityorder.items[].quantitynumber
Item price (minor units)order.items[].unit_amountnumber
Adjustment kindorder.adjustments[].kindstring
Adjustment labelorder.adjustments[].labelstring
Adjustment amount (minor units)order.adjustments[].amountnumber
Delivery methodorder.fulfillment.method_labelstring
Earliest deliveryorder.fulfillment.estimate_fromstring
Latest deliveryorder.fulfillment.estimate_tostring
Return policyorder.return_policy_urlstring

Every cart field is as reported. The paths in this table are standard fields and work on every plan; a metadata. path is one of Your fields, and any other path is an Any field path.

Claims risk

FieldConditionTypeTrust
Claim typeclaim_typestringAs reported
StatestatestringAs reported
Case typecase_typestringAs reported
Has GPSgps_presentbooleanVerified
Has face or fingerprintbiometric_presentbooleanVerified
Captured on an attested deviceattestedbooleanVerified

Capture rules

A capture rule reads one shot at a time, and takes no Your fields and no Any field paths. <ref> names a reference address by its kind; the full list is in capture rules.

FieldConditionTypeTrust
At least distance to an address (km)capture.min_distance_km.<ref>numberAs reported
Distance to an address (km)capture.distance_km.<ref>numberAs reported
Time zone matches an addresscapture.timezone_matches.<ref>booleanAs reported
Network country, region or city matches an addresscapture.network_country_matches.<ref>, capture.network_region_matches.<ref>, capture.network_city_matches.<ref>booleanAs reported
Network country, regioncapture.network_country, capture.network_regionstringAs reported
VPN or proxy, cloud networkcapture.network.vpn_or_proxy, capture.network.hosting_providerstring, booleanVerified
Has GPS, GPS accuracy (m), mock locationcapture.gps_present, capture.gps_accuracy_m, capture.gps_mockboolean, number, booleanAs reported
GPS fromcapture.gps_sourcestringVerified
OS, OS attestedcapture.os, capture.os_attestedstring, booleanVerified
OS version, clock offset (s), photo metadata consistentcapture.os_version, capture.clock_offset_s, capture.exif_consistentstring, number, booleanAs reported
Device tier, opened incapture.tier, capture.destinationstringVerified
Screen or print, risk scorecapture.screen_or_print, capture.risk_scorestring, numberVerified
Document type, document acceptedcapture.document_type, capture.document_acceptedstring, booleanVerified

One registry for every product

Every fact any product's rules read is declared once, in the fact registry, and each audience's catalog is a view of it. Each standard field the registry declares carries a registry block:

FieldWhat it says
typestring, number, boolean, list, time, probability (0 to 1), score (with a range) or outcome
unit, rangeA number's unit (minor_units, seconds, count, ratio and others) and its lowest and highest value
groupThe registry's group: order, customer, agent, approval, network, run and others
availabilityalways, when_present, needs_integration (with needs), plan or phase (with phase)
provider, tierWhat supplies the value, and what reading it costs: 0 the request and token, 1 our own records, 2 a network call, 3 a model call
sensitivitynone, personal or sensitive
replayHow a backtest gets the value for an earlier request (recorded for a value kept with the decision)
showbuilder (in the picker) or advanced (under More)

An agent builder's catalog also lists the facts verify reads that the builder didn't offer before: the approval facts (approval.passkey, approval.credential_age_s and the rest, which have a value once a person has approved), the network signals (network.agent.*, network.passkey.*), takeover risk (agent.takeover_risk), the run facts (run.*), the order facts (order.skus, order.channel), the customer facts and the counterparty facts.

The customer is the person or company that places an order. The customer facts are customer.company and customer.rating; rules saved with their earlier names (order.buyer_company, order.buyer_rating) are rewritten by the fact_names migration (POST /v1/account/policies/migrations/run with { "system": "fact_names" }), which renames them in every version and checks that each rewritten rule set decides the same on your recent requests.

Your fields

Available on Pro, Growth and Enterprise

Your fields are the custom metadata keys your requests carry, found automatically. Provenance keeps each key's path and type from the last 90 days, up to 200 keys per account and 3 levels deep, and never stores a value in the catalog. A rule reads one as { "fact": "field", "path": "metadata.cost_center", "op": "eq", "value": "research" }. Your fields are as reported.

Any field

Available on Growth and Enterprise

An Any field condition reads any other path in the request, nested ones included:

RuleValue
PathUp to 6 dotted names of letters, digits and _
Lists[] after a name reads every element, at most once in a path, such as order.items[].sku
itemsany (the default): one element matching is enough; all: every element must match
Operatorseq, ne, gt, gte, lt, lte, in, matches, contains, contains_any

On a verify the request is { payload, context, order, metadata }: the token's action_payload, the verify context, the payload again as order when it is cart-shaped, and its metadata. On a checkout assessment it is { order, metadata } from the cart. A path that isn't there doesn't match. Simulate passes the same object as request.