spend_gate_check
Spend Gate (PAID $0.005 USDC on Base via x402). Ask Jev before you spend: checks whether an agent wallet should pay a payee a quoted USDC amount. Four independent paths vote pay-side/reject-side — provider_trust (Provider Trust verify_provider) and payload_safety (ScriptDocs vulnerability check, only when manifest_url names an npm/PyPI/crates package) — both vote with real verdicts via the fleet operator lane at $0 upstream toll, price_sanity (quote vs caller policy_cap_usdc or the v1 default cap table; cap-only in v1, no historical median), delivery_history (this host's OmniGate settlement/delivery ledger). Coherence = |Σ w·d| / Σ w with d=+1 pay-side, −1 reject-side, w=confidence; gate_pass requires coherence ≥ 0.6 AND a pay-side consensus. Paths with no data abstain (no_signal) and contribute nothing. Only on a gate pass does Jev review run (noul act probability + pay/reject/quarantine choice, model + token usage returned). Use for: vetting a payee/invoice immediately before an agent wallet pays it. Don't use when: you need an actual payment executed (this is a check, it moves no funds), a trading signal (use interfere), or a free lookup (there is none — unpaid calls return the payment challenge). Settlement to the canonical SML payTo on Base.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payee | Yes | Payee domain (e.g. "api.example.com") and/or full endpoint URL the wallet is about to pay. | |
| manifest_url | No | Optional package page URL (npmjs.com/package/…, pypi.org/project/…, crates.io/crates/…) for the payload_safety path. | |
| quoted_amount | Yes | Quoted amount in USDC the wallet is about to pay. | |
| tool_category | No | Optional category of the tool/service being bought (e.g. data_lookup, market_data, inference, compute). Selects the v1 default cap when policy_cap_usdc is omitted; when omitted entirely the cap table's "default" cap applies. | |
| payment_header | No | Base64 X-PAYMENT EIP-3009 payload (standard rail) for $0.005 USDC on Base. | |
| wallet_address | No | Agent wallet address (informational). | |
| payment_tx_hash | No | Base USDC tx hash (sovereign rail) paying $0.005 to the canonical SML receiver. | |
| policy_cap_usdc | No | Optional caller policy cap in USDC; overrides the v1 default cap table for price_sanity. |