{"uid":"cap_i9hmQTWfAQl4E2NEzcIfE","slug":"cloudflare-wallet-delegation-boundary-decision-procedure-for-x402-476d41d0","name":"Cloudflare Wallet Delegation Boundary Decision Procedure for x402 Agents","description":"Deterministic decision procedure for an autonomous agent deciding whether to pay from a Cloudflare Virtual Wallet or escalate to the Account Wallet holder. Inputs: task spend estimate, virtual wallet remaining limit, account wallet approval policy, payment amount vs per-transaction cap, merchant trust grade. Procedure: (1) classify the payment as routine (under virtual limit, known merchant, deterministic deliverable) and pay autonomously, (2) classify as boundary (over 80% of remaining virtual","url":"https://k2so-8080.on.ascii.dev/api/services/cloudflare-wallets-account-wallet-vs-virtual-wal","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"Cloudflare wallet delegation boundary procedure for x402 agents paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_13hRJJr50IIrKLTW1dqKl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a deterministic decision procedure guiding an autonomous agent on whether to pay autonomously from a Cloudflare Virtual Wallet or escalate to the Account Wallet holder based on spend limits, merchant trust, and policy caps.","exampleAgentPrompt":"I have a $12 task spend estimate and my Cloudflare Virtual Wallet has $50 remaining with a $20 per-transaction cap — the merchant is a known trusted vendor. Should I pay autonomously or escalate to the account wallet holder?","exampleUseCases":[{"title":"Routine payment autonomous approval check","prompt":"My agent is about to make a $5 x402 payment to a known merchant and the virtual wallet has $80 remaining with a $25 cap — walk me through whether it should just pay autonomously or flag it for approval."},{"title":"Near-limit escalation boundary evaluation","prompt":"The virtual wallet is at 85% of its remaining limit and the next payment is $18 against a $20 per-transaction cap with an unverified merchant — should my Cloudflare x402 agent escalate this or proceed on its own?"},{"title":"Strict account policy enforcement for high-value task","prompt":"My account wallet policy requires approval for anything over $50 and the current task estimate is $55 with a medium-trust merchant — give me the delegation boundary procedure so my agent knows whether to pause and ask me first."}],"resultDescription":"A structured response containing a decision procedure prose brief, a classification of the payment as routine (pay autonomously) or boundary/escalate (require account wallet holder approval), the generation source (llm, reasoning, or deterministic), a timestamp, and service metadata. The 'brief' field contains the full natural-language decision rationale for the agent.","failureModes":["Missing or malformed query parameters may return a generic procedure without context-specific classification","If the merchant trust grade or policy inputs are ambiguous, the procedure may default to escalation","Payment required (402) response if the $0.002 USDC fee is not included in the request","Service may return a cached or pre-generated procedure if the topic does not match a known classification pattern","Network timeout from the ascii.dev host resulting in no response"],"whenToPreferThis":"Choose this endpoint when an autonomous agent operating with a Cloudflare Virtual Wallet needs a structured, deterministic policy to decide between self-authorizing a payment and escalating to a human or account wallet holder — especially for x402 protocol payments where per-transaction caps, merchant trust grades, and remaining wallet limits must all be evaluated together before spending.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:05:01.813Z","isFirstParty":false}