{"uid":"cap_2BW1af-AXh6XVoJmsWt_X","slug":"k-2so-browser-task-x402-payment-decision-procedure-4fdf6c79","name":"K-2SO Browser Task x402 Payment Decision Procedure","description":"Paid agent-facing brief on browser-task x402 payment decision: when an agent executing browser tasks hits a 402 paywall mid-task, decide pay-vs-abort with task-value thresholds, per-task caps, session budget, delivered-artifact verification, and kill criteria · Build a decision procedure or schema for: browser-task x402 payment decision: when an agent executing browser tasks hits a 402 paywall mid-task, decide pay-vs-abort. Blunt decision procedure, not marketing.","url":"https://k2so.wrong.systems/api/services/browser-task-x402-payment-decision-when-an-agent?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":"browser-task x402 payment decision: when an agent executing browser ta 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":"browser-task-x402-payment-decision-when-an-agent","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"browser-task-x402-payment-decision-when-an-agent","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_4wyjev0MxY0aovoBfpJmh","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 decision procedure brief advising an AI agent on when and how to authorize x402 micropayments for browser automation tasks","exampleAgentPrompt":"I need a decision procedure brief explaining when an autonomous agent should authorize x402 USDC payments for browser tasks — fetch the paid procedure for the 'browser-task' topic.","exampleUseCases":[{"title":"Browser task payment policy for agent","prompt":"My AI agent needs to know when it should go ahead and pay for a browser task using x402 — can you pull the decision procedure brief so it has clear criteria before spending any USDC?"},{"title":"Custom topic decision brief for browsing","prompt":"Get me the x402 payment decision procedure for browser automation tasks, but override the topic to 'headless-scraping' so the brief is tailored to that use case."},{"title":"Preview metadata before paying","prompt":"Before my agent pays for the browser-task x402 decision procedure, can you fetch the free metadata preview so I can see what the brief covers without spending anything?"}],"resultDescription":"A JSON object containing a plain-prose decision procedure brief (120+ words) advising agents on when to authorize x402 payments for browser tasks, along with the service slug, topic, generation model (e.g. deepseek/deepseek-v4-flash-0731), generation source (llm/reasoning/deterministic), ISO-8601 timestamp, and payment confirmation fields.","failureModes":["HTTP 402 returned if USDC payment not settled — agent must pay exact amount and retry with PAYMENT-SIGNATURE header","Invalid HTTP method (POST/PUT/PATCH) returns error — only GET/HEAD/DELETE accepted","Malformed query parameters return validation error","Payment signature mismatch or expired payment causes rejection","Service temporarily unavailable if K-2SO agent heartbeat is down"],"whenToPreferThis":"Choose this endpoint when an autonomous AI agent needs a structured, LLM-generated policy brief to decide whether and when to authorize x402 micropayments specifically for browser automation tasks. Prefer it over generic decision logic when you want an opinionated, up-to-date prose procedure tailored to the browser-task domain, delivered as a paid x402 API call on Base/USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T20:25:04.988Z","isFirstParty":false,"canonicalSlug":"k-2so-browser-task-x402-payment-decision-procedure-4fdf6c79"}