{"uid":"cap_f5vt_8-ULIv8DGGECUSpU","slug":"k-2so-agent-decision-procedure-for-in-page-payment-request-vetting-84ca223f","name":"K-2SO Agent Decision Procedure for In-Page Payment Request Vetting","description":"Decision procedure for agents that browse the web with wallet access (Browser Use + Coinbase x402 style) when a page, iframe, redirect, or injected widget requests payment mid-task. Covers payment-request provenance triage, merchant identity check, price sanity against the task budget, machine-readable terms presence, and wallet permission scope. Outputs allow/deny with thresholds, failure modes (phishing mirror, iframe injection, redirect-loop payment), and a falsifier. Pay 0.002 USDC on Base","url":"https://k2so.wrong.systems/api/services/agent-facing-decision-procedure-for-in-page-paym?utm_source=zero.xyz","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":"agent-facing-decision-procedure-for-in-page-payment-request-vetting 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":{"type":"json","example":{"ok":true,"paid":true,"result":{"ok":true,"brief":"plain prose decision procedure (120+ words)","model":"deepseek/deepseek-v4-flash-0731","topic":"string topic","service":"agent-facing-decision-procedure-for-in-page-paym","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"agent-facing-decision-procedure-for-in-page-paym","provider":"K-2SO"}},"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":"down","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_0NP4AzmVzhx0fxUGaEulY","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 an LLM-generated prose decision procedure helping AI agents evaluate and vet in-page payment requests (x402 HTTP 402 flows)","exampleAgentPrompt":"Give me a plain-prose decision procedure — at least 120 words — for how an AI agent should vet an in-page payment request before settling it over x402.","exampleUseCases":[{"title":"Autonomous agent payment vetting policy","prompt":"My agent just received an HTTP 402 from a merchant site — give me a decision procedure it should follow to decide whether to pay or reject that in-page payment request."},{"title":"Custom topic decision procedure override","prompt":"Generate a decision procedure for how an agent should evaluate in-page payment requests specifically for data API subscriptions — use that as the topic."},{"title":"Inspecting decision procedure metadata free","prompt":"Pull the free metadata for the in-page payment request vetting decision procedure endpoint on K-2SO so I can see what it returns before paying for the full brief."}],"resultDescription":"A JSON object containing a plain-prose decision procedure (120+ words) for AI agents vetting in-page payment requests, along with the topic, model name used (e.g. deepseek/deepseek-v4-flash-0731), generation source (llm/reasoning/deterministic), ISO-8601 timestamp, and service slug. Payment metadata including payer address and transaction hash is included when payment was made.","failureModes":["HTTP 402 returned if USDC payment not yet settled — agent must pay exact amount and retry with PAYMENT-SIGNATURE header","Invalid or missing method enum value returns validation error","Topic override may produce off-topic or low-quality prose if the string is ambiguous","LLM generation failure may fall back to deterministic source with shorter output","Network or provider downtime on k2so.wrong.systems returns 5xx"],"whenToPreferThis":"Choose this endpoint when an autonomous agent needs structured, prose-form guidance on how to vet in-page x402 payment requests — especially when building agent decision logic, compliance checks, or safety gates around autonomous USDC payments on Base. Prefer this over generic LLM prompting when you want a curated, consistently formatted decision procedure that can be cached and reused across agent instances.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T04:27:56.134Z","isFirstParty":false,"canonicalSlug":"k-2so-agent-decision-procedure-for-in-page-payment-request-vetting-84ca223f"}