# Use network signals

Step up approvals with network facts in your policy, and report fraud on orders you verified or accepted so the network learns from it.

Use this to let what the network knows about an agent or a passkey change what your policy asks for, and to report the orders that went wrong. Network facts are inputs to your own rules: on their own, they never block anything.

**Before you begin:** your account shares with the network (the default; see [give to get](https://provenanceauth.com/docs/authorize/concepts/network-signals.md#give-to-get)), and your agents call authorize with `agent_id`.

## 1. Add network facts to a rule

[Policies](https://provenanceauth.com/docs/concepts/policies.md) read these facts:

| Fact | Value |
| --- | --- |
| `network.agent.unrecognized_rate` | Refusals as unrecognized over all decisions, 0 to 1 |
| `network.agent.off_task_rate` | Denials as "Not what I asked for" over all decisions, 0 to 1 |
| `network.agent.fraud_report_rate` | Fraud reports over orders and decisions, 0 to 1 |
| `network.agent.verified` | Whether the agent has a registered signing key |
| `network.passkey.unrecognized_denials_count` | Times this passkey refused a request as unrecognized |
| `network.passkey.companies_count` | Companies other than you that saw this passkey |
| `network.sufficient_data` | Whether every value rests on the [minimums](https://provenanceauth.com/docs/authorize/concepts/network-signals.md#minimums) |

Below the minimums a fact is `null`, and a comparison with `null` doesn't match, so a new agent is treated by your other rules.

```json
{
  "rules": [
    {
      "id": "ask-for-agents-people-refuse",
      "when": [{ "fact": "network.agent.unrecognized_rate", "op": "gt", "value": 0.05 }],
      "require": { "approval": true }
    }
  ]
}
```

Save it with [`PUT /v1/mandate/policies`](https://provenanceauth.com/docs/api/policies.md#put-v1-mandate-policies), or start from the **Network signals** template in **Rules → Developer editor → Templates & advanced**.

## 2. Read the signals on a result

A valid verify for a verified agent carries `network_signals`, as do approvals, checkout approvals and network accepts. Log them next to your own risk data; don't show them to the person.

```ts
const result = await provenance.mandate.assessments.create({ intentToken, actionDescription });
if (result.valid && result.networkSignals?.agent?.sufficientData) {
  riskLog.record({ agentUnrecognizedRate: result.networkSignals.agent.unrecognizedRate });
}
```

## 3. Report an order that went wrong

Report fraud, an unrecognized charge or an agent that misbehaved, by the order's token `jti` or a `decision_id` from your ledger. The example records an order first, then reports it:

**curl**

```bash
curl -s -X POST $PROVENANCE_API/v1/mandate/intents -H "Authorization: Bearer $PROVENANCE_KEY" -H "Content-Type: application/json" -d '{ "action_description": "Buy 2 linen notebooks: $38.00", "agent_session_id": "sess_report_docs", "device_id": "dev_00000000000000000000000000000001" }' > /dev/null
export DECISION_ID=$(curl -s "$PROVENANCE_API/v1/mandate/assessments?session=sess_report_docs&limit=1" -H "Authorization: Bearer $PROVENANCE_KEY" | jq -r '.data[0].id')
curl -s -X POST $PROVENANCE_API/v1/authorize/agent_reports \
  -H "Authorization: Bearer $PROVENANCE_KEY" -H "Content-Type: application/json" \
  -d '{ "decision_id": "'$DECISION_ID'", "kind": "unrecognized_charge", "occurred_at": "2026-10-26T19:00:00Z", "note": "The cardholder called about this order." }'
```

**Node**

```ts
const report = await provenance.authorize.network.report({
  decisionId: decision.id,
  kind: "unrecognized_charge",
  occurredAt: "2026-10-26T19:00:00Z",
  note: "The cardholder called about this order.",
});
```

**Python**

```python
report = client.authorize.network.report(
    decision_id=decision["id"],
    kind="unrecognized_charge",
    occurred_at="2026-10-26T19:00:00Z",
    note="The cardholder called about this order.",
)
```

The report counts from the next hourly count. Your note stays private. Withdraw it within 30 days with [`DELETE /v1/authorize/agent_reports/{id}`](https://provenanceauth.com/docs/api/network.md#delete-v1-authorize-agent-reports-id).

## 4. When a person says Not me

A person can open an order in the Provenance app and choose **Not me**. Provenance pauses their agent and files an `unrecognized_charge` report on your account for that order. It shows in [`GET /v1/authorize/agent_reports`](https://provenanceauth.com/docs/api/network.md#get-v1-authorize-agent-reports) with `filed_by: "person"`, and your webhook endpoints subscribed to `authorize.network_report.filed` get it at once:

```text
{
  "id": "evt_01M6YQ2ZJ8K4V7N9P2R5T8W1X3",
  "object": "event",
  "type": "authorize.network_report.filed",
  "created_at": "2026-11-08T14:02:11.000Z",
  "environment": "live",
  "account_id": "acct_quillstack",
  "data": {
    "id": "nrp_01M6YQ2ZHT3B6D9F2H5K8M1P4R",
    "object": "network_report",
    "kind": "unrecognized_charge",
    "status": "active",
    "filed_by": "person",
    "intent_jti": "8f5f6828-813c-4494-8b64-c32b35c07827",
    "order_id": "ord_8841",
    "store_origin": "https://shop.quillstack.example",
    "subject": "Xb4hR2kq9WfT7pLm3Ns8Vd1Yc6Ze0Ga5",
    "occurred_at": "2026-11-08T13:40:02.000Z",
    "created_at": "2026-11-08T14:02:11.000Z"
  }
}
```

`subject` is the `sub` your own tokens carried for this person: the same person has a different one at every other store. The event carries nothing else about them (no name, contact, passkey, agent or note). Match it to the order by `order_id` or `intent_jti`, hold the shipment if you still can, and reach the customer the way you normally would. Provenance doesn't open a dispute or ask for a refund.

## Errors you might see

| Code | What to do |
| --- | --- |
| `parameter_invalid` | The order isn't one your account verified or accepted. Report only your own orders. |
| `network_report_duplicate` | This order already has a report of this kind. |
| `network_report_closed` | The report was withdrawn, removed after review, or is past 30 days. |

## See also

- [Network signals](https://provenanceauth.com/docs/authorize/concepts/network-signals.md)
- [Accept network orders](https://provenanceauth.com/docs/authorize/guides/accept-network-orders.md)
- [Policies](https://provenanceauth.com/docs/concepts/policies.md)
