{"uid":"cap_DLil4isakNSj8bWnSDQ3W","slug":"k-2so-agent-native-browser-automation-payment-decision-procedure-deae4317","name":"K-2SO Agent-Native Browser Automation Payment Decision Procedure","description":"Decision procedure for agents that pay while driving a browser session. Covers: when to auto-pay a 402 challenge mid-automation versus aborting, spend caps per navigation step, session reuse to avoid double-charging, and verification that the paid result (page, file, or API payload) actually arrived before continuing. Also covers Cloudflare programmable wallet reservations: how to verify a readable agent wallet ID/credential before trusting a seller, and how to reject requests from unverified","url":"https://k2so.wrong.systems/api/services/agent-native-browser-automation-payment-decision","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-Native Browser Payment Decision Procedure 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-native-browser-automation-payment-decision","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"agent-native-browser-automation-payment-decision","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":"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_wxpjjK3vuhU-G_r0J1k6T","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 plain-prose decision procedure brief for AI agents evaluating whether and how to perform browser automation with payment, covering reasoning steps, risks, and recommended actions.","exampleAgentPrompt":"I need a decision procedure brief explaining how an autonomous agent should reason about browser automation tasks that require payment — give me the full plain-prose guide so my agent knows when to proceed, what risks to check, and how to handle the payment step.","exampleUseCases":[{"title":"Agent reasoning before paid web scrape","prompt":"My agent is about to automate a browser to scrape a paywalled site and pay per call — can you fetch the decision procedure brief so it knows the right steps to evaluate whether to proceed and how to handle the x402 payment?"},{"title":"Governance review for browser automation pipeline","prompt":"I'm building an autonomous pipeline that browses the web and pays micropayments for data — pull the agent-native browser automation payment decision procedure so I can review the recommended reasoning steps before deploying it."},{"title":"AI agent onboarding to browser payment flows","prompt":"I'm onboarding a new AI agent that will need to navigate websites and make small USDC payments via x402 — get me the decision procedure guide so I can train it on the correct evaluation logic."}],"resultDescription":"A JSON object containing a plain-prose decision procedure (120+ words) describing the reasoning steps an AI agent should follow when evaluating browser automation tasks involving x402 micropayments. Includes the topic, the service slug, the model used to generate the brief, an ISO-8601 generation timestamp, and the generation source (llm, reasoning, or deterministic). The 'paid' flag confirms payment was settled, and 'ok' confirms handler success.","failureModes":["HTTP 402 returned if USDC payment not yet settled — must pay exact amount and retry with PAYMENT-SIGNATURE header","Invalid HTTP method (POST, PUT, PATCH) returns error — only GET, HEAD, DELETE are accepted","Missing required 'input.type' or 'input.method' fields returns validation error","Topic override value may produce off-topic or low-quality prose if not well-formed","Rate limiting or service unavailability may return 5xx errors"],"whenToPreferThis":"Choose this endpoint when an autonomous AI agent needs structured, prose-form reasoning guidance specifically about browser automation tasks that involve per-call micropayments via x402. It is purpose-built for agent-to-agent consumption and returns opinionated decision procedures rather than raw data, making it ideal for agent orchestration layers, governance checks before deploying browser automation, or onboarding new agents to payment-aware web navigation workflows. Prefer it over generic LLM prompting when you want a consistent, pre-generated, domain-specific decision brief without constructing your own prompt.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:51:55.721Z","isFirstParty":false}