# Policy field catalog

Every field a policy rule can read, per audience, with whether Provenance verifies it or it is as reported, plus Your fields and Any field paths.

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](https://provenanceauth.com/docs/embeds/rules.md)'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.

| Audience | `audience` | Document |
| --- | --- | --- |
| A person's own rules | `person` | `/v1/personal/policies` |
| A store's checkout rules | `store` | `/v1/authorize/policies` |
| An agent builder's policy | `builder` | `/v1/mandate/policies` |
| Attest claims risk | `claims` | `/v1/attest/risk_policies` |
| Attest capture rules | `capture` | `/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

| Type | Operators |
| --- | --- |
| number | `gt`, `gte`, `lt`, `lte`, `eq`, `ne` |
| string | `eq`, `ne`, `in`, `matches`, `in_list`, `not_in_list` |
| boolean | `eq` |
| list | `contains`, `contains_any` |
| time | `eq`, `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

| Field | Condition | Type | Trust |
| --- | --- | --- | --- |
| Order total | `order.amount` | number | Verified |
| Currency | `order.currency` | string | As reported |
| Category | `order.categories` | list | As reported |
| Store | `store` | string | Verified |
| Agent | `agent_id` | string | Verified |
| Time (hour) | `time.local_hour` | time | Verified |
| Day of week | `time.local_weekday` | time | Verified |

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

| Field | Condition | Type | Trust |
| --- | --- | --- | --- |
| Order total | `order.amount` | number | Verified |
| Currency | `order.currency` | string | As reported |
| Category | `order.categories` | list | As reported |
| Items | `order.item_count` | number | As reported |
| Agent verified | `agent.verified` | boolean | Verified |
| Visitor kind | `agent.class` | string: `signed_agent`, `declared_bot`, `suspected_bot`, `likely_human` or `unknown` | Verified |
| Covered by | `checkout.covered` | string: `token`, `mandate`, `reused` or `none` | Verified |
| Bot score | `agent.bot_score` | number | Verified |
| Agent platform | `agent.platform` | string: `openai`, `anthropic`, `google`, `microsoft`, `apple`, `perplexity`, `meta` or `common_crawl` | As reported |
| Platform named by | `agent.platform_source` | string: `signed` or `declared` | As reported |
| Card network agent program | `agent.network_program` | string: `visa_tap`, `visa_vic` or `mastercard_agent_pay` | Verified |
| Signed for | `agent.signed_for` | string: `browse`, `pay` or `general` | Verified |
| Name on the agent's card | `agent.card_name` | string | Verified (as its signer published it) |
| Agent run by | `agent.operator_kind` | string: `direct` or `intermediary` | As reported |
| Card network sent the buyer's details | `agent.network_consumer` | boolean | Verified |
| Why it's an agent order | `agent.order_signals` | list: `channel`, `visit`, `network_signature`, `shared_payment_token`, `agentic_token` | As reported |
| Agent commerce protocol | `agent.protocol` | string: `ucp` (present only on a UCP checkout) | As reported |
| UCP platform | `ucp.platform` | string: the host of the platform's profile URL | As reported |
| UCP platform signed the request | `ucp.platform_signed` | boolean | Verified |
| Platform shows our approval step | `ucp.approval_action` | boolean | As reported |
| AP2 checkout mandate | `ucp.ap2_mandate` | string: `accepted`, `refused` or `absent` | Verified |
| Who finished the checkout | `ucp.completed_by` | string: `person` or `agent` (present only on your checkout page after a UCP escalation) | As reported |
| Paid with a Stripe shared payment token | `payment.shared_payment_token` | boolean (present only when checked on your Stripe) | Verified |
| Paid with a Stripe shared payment token (as reported) | `payment.shared_payment_token_reported` | boolean | As reported |
| Paid with a card network agent token (as reported) | `payment.agentic_token` | boolean | As reported |
| Paid with a network token | `payment.network_token` | boolean | Verified |
| Agent's Stripe profile | `payment.agent_profile` | string | Verified |
| Stripe risk scores | `payment.stripe_risk.bot`, `.card_testing`, `.stolen_card`, `.fraudulent_dispute`, `.card_issuer_decline` | number | Verified |
| Bot likelihood score) | `agent.bot_likelihood_score` | number (0 to 100) | As reported |
| Shopper account age (days) | `merchant.customer_account_age_days` | number | As reported |
| Shipping to | `merchant.ship_to` | string | As reported |
| Gift card amount | `merchant.gift_card_amount` | number | As reported |
| Billing country | `billing.country` | string (ISO 3166-1, `US`) | As reported |
| Billing region | `billing.region` | string (ISO 3166-2, `US-OR`) | As reported |
| Customer's answer (after approval) | `approval.decision` | string: `approved` or `declined` | Verified |
| Passkey age, in days (after approval) | `approval.passkey_age_days` | number (two places; a passkey made on the approval's page is `0`) | Verified |
| Approval location | `approval.location` | string: `matches_billing`, `differs`, `unavailable` or `no_billing` | As reported |
| Device time zone matches billing | `approval.timezone_matches_billing` | boolean | As reported |
| Network country matches billing | `approval.network_country_matches_billing` | boolean | As reported |
| Network region matches billing | `approval.network_region_matches_billing` | boolean | As reported |
| Network city matches billing | `approval.network_city_matches_billing` | boolean | As reported |
| Distance from billing (km) | `approval.min_distance_km_billing` | number | As reported |
| Hour (UTC) | `hour_utc` | time | Verified |
| Day of week (UTC) | `weekday_utc` | time | Verified |

The `ucp.*` fields come from a [UCP checkout assessment](https://provenanceauth.com/docs/authorize/guides/ucp.md). None of them alone approves an order; an accepted AP2 mandate counts only through your outside confirmations.

### An agent builder's policy

| Field | Condition | Type | Trust |
| --- | --- | --- | --- |
| Order total | `order.amount` | number | Verified |
| Currency | `order.currency` | string | As reported |
| Category | `order.categories` | list | As reported |
| Items | `order.item_count` | number | As reported |
| Agent | `agent_id` | string | Verified |
| Agent platform | `agent.platform` | string: a platform name, from the agent's `request` | As reported |
| Platform named by | `agent.platform_source` | string: `signed` or `declared` | As reported |
| Action type | `action_type` | string | As reported |
| Tool | `tool` | string | As reported |
| Amount | `transaction_amount` | number | As reported |
| Supplier | `counterparty` | string | As reported |
| Mandate | `mandate_id` | string | As reported |
| Device tier | `device_trust_tier` | string | Verified |
| Face or fingerprint used | `biometric_bound` | boolean | Verified |
| Hardware-backed phone | `hardware_attested` | boolean | Verified |
| Action matches what was approved | `payload_bound` | boolean | Verified |
| Hour (UTC) | `hour_utc` | time | Verified |
| Day of week (UTC) | `weekday_utc` | time | Verified |

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:

| Field | Condition | Trust |
| --- | --- | --- |
| Spend by this agent this month | `{ "fact": "velocity", "metric": "amount_sum", "window": "month", "per": "agent" }` | As reported |
| Spend by the account this month | `metric: amount_sum`, `window: month`, `per: account` | As reported |
| Spend by the account in the last 24 hours | `metric: amount_sum`, `window: 24h`, `per: account` | As reported |
| Requests by this agent in the last hour | `metric: verify_count`, `window: 1h`, `per: agent` | Verified |
| Requests by the account in the last hour | `metric: verify_count`, `window: 1h`, `per: account` | Verified |

`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](https://provenanceauth.com/docs/concepts/policies.md#facts) 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:

| Field | Path | Type |
| --- | --- | --- |
| Order ID | `order.order_id` | string |
| Order total (minor units) | `order.total` | number |
| Currency | `order.currency` | string |
| Merchant ID | `order.merchant_id` | string |
| Store | `order.origin` | string |
| Delivery address digest | `order.fulfillment_digest` | string |
| Item SKU | `order.items[].sku` | string |
| Item name | `order.items[].name` | string |
| Item quantity | `order.items[].quantity` | number |
| Item price (minor units) | `order.items[].unit_amount` | number |
| Adjustment kind | `order.adjustments[].kind` | string |
| Adjustment label | `order.adjustments[].label` | string |
| Adjustment amount (minor units) | `order.adjustments[].amount` | number |
| Delivery method | `order.fulfillment.method_label` | string |
| Earliest delivery | `order.fulfillment.estimate_from` | string |
| Latest delivery | `order.fulfillment.estimate_to` | string |
| Return policy | `order.return_policy_url` | string |

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

| Field | Condition | Type | Trust |
| --- | --- | --- | --- |
| Claim type | `claim_type` | string | As reported |
| State | `state` | string | As reported |
| Case type | `case_type` | string | As reported |
| Has GPS | `gps_present` | boolean | Verified |
| Has face or fingerprint | `biometric_present` | boolean | Verified |
| Captured on an attested device | `attested` | boolean | Verified |

### 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](https://provenanceauth.com/docs/attest/guides/capture-rules.md#2-the-facts-a-rule-reads).

| Field | Condition | Type | Trust |
| --- | --- | --- | --- |
| At least distance to an address (km) | `capture.min_distance_km.<ref>` | number | As reported |
| Distance to an address (km) | `capture.distance_km.<ref>` | number | As reported |
| Time zone matches an address | `capture.timezone_matches.<ref>` | boolean | As reported |
| Network country, region or city matches an address | `capture.network_country_matches.<ref>`, `capture.network_region_matches.<ref>`, `capture.network_city_matches.<ref>` | boolean | As reported |
| Network country, region | `capture.network_country`, `capture.network_region` | string | As reported |
| VPN or proxy, cloud network | `capture.network.vpn_or_proxy`, `capture.network.hosting_provider` | string, boolean | Verified |
| Has GPS, GPS accuracy (m), mock location | `capture.gps_present`, `capture.gps_accuracy_m`, `capture.gps_mock` | boolean, number, boolean | As reported |
| GPS from | `capture.gps_source` | string | Verified |
| OS, OS attested | `capture.os`, `capture.os_attested` | string, boolean | Verified |
| OS version, clock offset (s), photo metadata consistent | `capture.os_version`, `capture.clock_offset_s`, `capture.exif_consistent` | string, number, boolean | As reported |
| Device tier, opened in | `capture.tier`, `capture.destination` | string | Verified |
| Screen or print, risk score | `capture.screen_or_print`, `capture.risk_score` | string, number | Verified |
| Document type, document accepted | `capture.document_type`, `capture.document_accepted` | string, boolean | Verified |

## 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:

| Field | What it says |
| --- | --- |
| `type` | `string`, `number`, `boolean`, `list`, `time`, `probability` (0 to 1), `score` (with a `range`) or `outcome` |
| `unit`, `range` | A number's unit (`minor_units`, `seconds`, `count`, `ratio` and others) and its lowest and highest value |
| `group` | The registry's group: `order`, `customer`, `agent`, `approval`, `network`, `run` and others |
| `availability` | `always`, `when_present`, `needs_integration` (with `needs`), `plan` or `phase` (with `phase`) |
| `provider`, `tier` | What 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 |
| `sensitivity` | `none`, `personal` or `sensitive` |
| `replay` | How a backtest gets the value for an earlier request (`recorded` for a value kept with the decision) |
| `show` | `builder` (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:

| Rule | Value |
| --- | --- |
| Path | Up 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` |
| `items` | `any` (the default): one element matching is enough; `all`: every element must match |
| Operators | `eq`, `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`.
