{"uid":"cap_fs-ionxuc6CecLNrVDkLf","slug":"browser-task-x402-payment-decision-procedure-30786312","name":"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-8080.on.ascii.dev/api/services/browser-task-x402-payment-decision-when-an-agent","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":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_SpBIEXFjahr4RESbW1Jp9","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 structured decision procedure for agents to decide whether to pay or abort when hitting a 402 paywall mid-browser-task, including threshold logic, caps, and kill criteria.","exampleAgentPrompt":"I need a clear decision procedure for when my browser-automation agent hits a 402 paywall mid-task — give me the pay-vs-abort logic with task-value thresholds, per-task caps, session budget rules, artifact verification steps, and kill criteria.","exampleUseCases":[{"title":"Capping runaway browser agent spend","prompt":"My browser agent keeps hitting paywalls and I'm worried it'll overspend — give me a decision procedure with session budget limits and kill criteria so it knows when to stop paying and abort."},{"title":"Artifact verification before payment approval","prompt":"Before my agent pays a 402 gate to unlock a downloaded report, what checks should it run to verify the artifact is actually going to be delivered and worth the cost?"},{"title":"Per-task payment threshold policy","prompt":"I want my browser agent to have a clear pay-vs-abort policy: define task-value thresholds and per-task payment caps it should use when it hits a 402 mid-task on a low-priority research job."}],"resultDescription":"A structured decision procedure (prose brief and/or schema) covering: conditions under which the agent should pay vs abort a 402, task-value threshold comparisons, per-task and session-level payment caps, delivered-artifact verification steps, and kill criteria for runaway payment scenarios. Includes metadata such as generation source (llm/reasoning/deterministic), model used, and ISO-8601 timestamp.","failureModes":["Service unavailable or handler error — ok:false returned with no brief","Invalid or unsupported HTTP method — schema rejects non-GET/HEAD/DELETE","Topic override ignored or misapplied if malformed","LLM generation failure — generationSource may fall back or return empty brief","Payment not processed — 402 returned if x402 payment header missing or rejected"],"whenToPreferThis":"Use this endpoint when an autonomous browser agent needs a codified, blunt decision policy for x402 payment gates encountered mid-task — especially when you need threshold logic, budget caps, and kill criteria rather than generic payment advice. Prefer it over manual policy definition when you want a ready-to-use procedure generated on-demand, including artifact verification and abort conditions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:43:11.584Z","isFirstParty":false}