policy.check
Check a proposed payment against the agent's active policy before executing it. Returns ALLOW, HOLD, or BLOCK with a reason. Run this before every settlement call. ALLOW = proceed. HOLD = route to human review queue. BLOCK = halt, do not proceed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | No | Payment purpose string | |
| agent_id | Yes | Agent identifier — must match the agent_id used in policy.create | |
| recipient | No | Recipient wallet address | |
| amount_usd | Yes | Proposed payment amount in USD | |
| session_id | No | Task or session grouping ID for ledger tracking. | |
| to_currency | No | Destination currency code (e.g. EUR, GBP) | |
| counterparty | No | Counterparty name or LEI | |
| delegation_id | No | If acting under a delegation from a parent agent, provide the delegation ID. | |
| oracle_status | No | Current oracle status — STABLE, CAUTION, or UNSTABLE. Get from get_reliability. |