{"uid":"cap_8IEZ4nQ-3XLl9OXX3ezHH","slug":"bounty-engineer-purchase-rescue-f71028f7","name":"Bounty Engineer Purchase Rescue","description":"Machine-buyable infrastructure for autonomous agents: API cost routing, margin optimization, funding-rate data, webpage extraction, result verification, spend controls, retry planning, state, tender search and GitHub bounty intelligence.","url":"https://bounty-engineer-x402-prod.onrender.com/v1/purchase-rescue?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"policy":{"type":"object","required":["max_price_usd","remaining_budget_usd"],"properties":{"max_price_usd":{"type":"number","minimum":0},"expected_pay_to":{"type":"string"},"expected_network":{"type":"string"},"remaining_budget_usd":{"type":"number","minimum":0},"side_effects_possible":{"type":"boolean"}}},"attempts":{"type":"array","items":{"type":"object"},"maxItems":40,"minItems":1}}},"responseSchema":{"type":"json","example":{"ok":true,"mode":"purchase_rescue","steps":["Check whether any prior attempt produced a side effect.","Do not repeat an irreversible transaction on an ambiguous outcome."],"blockers":[],"decision":"inspect_prior_side_effect","warnings":["Repeated intent: reuse the same logical-request identifier and independently reconcile receipts before another signature."],"limitations":["Only sanitized caller-supplied observations are analyzed; no wallet, RPC or facilitator is queried.","No external payment, retry or purchase is performed; settlement claims are not independently verified.","The buyer must authorize any spend and confirm asset, exact amount, network and recipient."],"repeat_intent":true,"retry_after_ms":null,"incident_sha256":"081223492e39f6ff7742cadf8c2876ef93297a947ac125316ea8de9dfa3f06c0","observed_attempts":2,"estimated_price_usd":0.009,"remaining_budget_usd":0.1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.009","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.009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nlg9JQK6XOGNY5mVT0Cou","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.009","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a history of failed purchase attempts and returns a safe, step-by-step rescue decision to guide an autonomous agent through recovering from an ambiguous or stuck payment flow without repeating irreversible transactions.","exampleAgentPrompt":"My agent attempted to call a paid API endpoint twice and I'm not sure if the first payment went through — I have a budget of $0.10 left, max price per call is $0.01, and side effects are possible. Can you analyze those two attempts and tell me whether it's safe to retry or if I should inspect for a prior side effect first?","exampleUseCases":[{"title":"Double-payment prevention after timeout","prompt":"My autonomous agent tried to pay for an API call, got a timeout, tried again, and now I'm not sure which one actually settled. I have $0.08 remaining budget and a $0.01 max per call — analyze those two attempts and tell me if I'm about to double-pay."},{"title":"Stuck agent spend-policy rescue","prompt":"My agent is stuck in a retry loop on a paid API — it's made 5 attempts so far, the max I want to spend is $0.015, my remaining budget is $0.05, and side effects are definitely possible. Give me a rescue plan so it doesn't fire another irreversible transaction."},{"title":"Post-failure incident audit before reauthorization","prompt":"Before I let my agent sign another payment, I want to audit the 3 failed purchase attempts it already made — budget remaining is $0.12, max price is $0.009, and I'm not sure if any of those had side effects. What's your decision: retry, abort, or inspect?"}],"resultDescription":"Returns a structured JSON object with a rescue decision (e.g. 'inspect_prior_side_effect', 'safe_to_retry', 'abort'), ordered recovery steps, any blockers or warnings, a repeat-intent flag, an optional retry delay in milliseconds, an incident SHA256 fingerprint for auditability, the observed attempt count, estimated price, and remaining budget — with explicit limitations noting that no external wallets or facilitators are queried and no actual payment is executed.","failureModes":["Missing required policy fields (max_price_usd or remaining_budget_usd) returns a validation error","Empty or malformed attempts array (must have 1–40 items) causes schema rejection","If side effects cannot be determined from caller-supplied observations, decision defaults to 'inspect_prior_side_effect' conservatively","No actual payment settlement verification is performed — decision is advisory only","Ambiguous caller-supplied observations may yield conservative warnings rather than a clear retry decision"],"whenToPreferThis":"Use this endpoint when an autonomous agent has made one or more ambiguous or failed payment attempts and needs a safe, structured decision on whether to retry, abort, or inspect for prior side effects — especially when irreversible transactions (e.g. on-chain payments) are involved and double-spending must be avoided. Prefer this over ad-hoc retry logic whenever a spend policy with budget caps must be enforced and there is meaningful uncertainty about whether a prior attempt settled.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:50:03.848Z","isFirstParty":false,"canonicalSlug":"bounty-engineer-purchase-rescue-f71028f7"}