KCP Playground ยท 08 / 11 ยท what it spends

The Shopping Agent

An autonomous agent hit a 402 Payment Required. Before the wallet signs anything, KCP checks the purchase โ€” {vendor, amount, currency} โ€” against the skill's declared spend envelope. Set the envelope, aim a purchase at it, and watch the receipt print. The verdict is computed by the real checkConformance spend logic, and signed & verified with genuine crypto.subtle in your browser.

Set an envelope and a purchase, then press โ–ถ Attempt purchase. Try to overspend, or aim at shady-llc โ€” see what the printer says.

skill ยท action_scope.spend

acme-data globex openweather shady-llc

the agent wants to buy

no receipt yet โ€”
the printer is warm
session spend ยท settled0 USDC

Station 08 of 11. Decision = the real checkConformance spend logic from kcp-harness (verbatim: no-authority โ†’ vendor โ†’ currency โ†’ max_spend, fail-closed). On a held purchase, wallet.authorize() is never called. Receipt signed & verified with genuine crypto.subtle.