{"uid":"cap_U0CNXsyhsBJuwRsDzsD-H","slug":"browser-execution-payment-gate-decision-procedure-1ed32de6","name":"Browser Execution Payment Gate Decision Procedure","description":"Deterministic decision procedure for gating autonomous x402 auto-pay inside browser agent runs. Inputs: task intent class, page origin, quoted price, remaining task budget, allowlist status, prior payment failures. Thresholds: auto-pay allow when quoted price <= 20% of remaining budget AND origin matches allowlisted scope AND intent class is pay-authorized; require human approval when price > 50% of remaining budget or origin is unvetted; hard kill when quoted price drifts > 2x from first","url":"https://k2so-8080.on.ascii.dev/api/services/browser-execution-payment-gate-decision-procedur","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)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"browser-execution-payment-gate-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"},"payload":{"type":"object"},"service":{"type":"string","description":"Service slug"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"}}},"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_2jy4l4rUvHKdFvC-CDl-O","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 ALLOW_AUTO, REQUIRE_APPROVAL, or KILL verdict for gating autonomous x402 micropayments during browser agent task runs","exampleAgentPrompt":"My browser agent is about to auto-pay a 0.05 USDC x402 fee on api.newsite.com — the remaining task budget is 0.40 USDC, the origin is not on my allowlist, and there have been no prior payment failures. Should it auto-pay, wait for my approval, or kill the task?","exampleUseCases":[{"title":"Safe auto-pay within budget allowlist","prompt":"My agent is mid-task on docs.trustedsite.com and hit a 0.03 USDC paywall — my remaining budget is 0.50 USDC, the origin is in my allowlist, intent is pay-authorized, and no prior failures. Is it safe to auto-pay without asking me?"},{"title":"Escalate large payment to human approval","prompt":"My browser agent wants to pay 0.35 USDC for a data export on a site I haven't vetted — my remaining task budget is 0.60 USDC. Should it proceed autonomously or flag this for my review first?"},{"title":"Kill agent on price drift detection","prompt":"The browser agent started a task where the first quote was 0.02 USDC but now the site is quoting 0.06 USDC — that's more than 2x the original price. Should it abort the payment and kill the task?"}],"resultDescription":"Returns one of three verdicts — ALLOW_AUTO, REQUIRE_APPROVAL, or KILL — along with evidence fields explaining the decision, including which threshold was triggered (budget ratio, origin allowlist mismatch, price drift, or consecutive settlement failures).","failureModes":["Missing or malformed required inputs (task intent class, origin, quoted price, budget) cause handler failure","Origin or price values that cannot be parsed result in a failed ok response","If the endpoint itself is unreachable the agent must default to REQUIRE_APPROVAL or KILL for safety","Edge cases where budget is zero or negative may produce undefined threshold evaluations"],"whenToPreferThis":"Use this endpoint when you are operating a browser_use style autonomous agent that encounters x402 paywalled resources and needs a deterministic, evidence-backed decision on whether to auto-settle, escalate to human approval, or abort — especially when you need a consistent policy enforced across budget thresholds, origin allowlists, and failure streak detection rather than ad-hoc agent reasoning.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:40:07.413Z","isFirstParty":false}