# Bounty Engineer Purchase Rescue

> Bounty Engineer Purchase Rescue is a paid API for AI agents from bounty-engineer-x402-prod.onrender.com, paid per call via x402, $0.009/call, status unknown (last checked 2026-10-12).

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.

## Facts

- Endpoint: POST https://bounty-engineer-x402-prod.onrender.com/v1/purchase-rescue?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bounty-engineer-purchase-rescue-f71028f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8IEZ4nQ-3XLl9OXX3ezHH

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bounty-engineer-purchase-rescue-f71028f7 -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bounty-engineer-purchase-rescue-f71028f7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bounty-engineer-x402-prod.onrender.com](https://www.zero.xyz/host/bounty-engineer-x402-prod.onrender.com/llms.txt)
