# Bounty Engineer Retry Policy Planner

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

Given a failed API call's error context, computes a structured retry schedule with delays, decision (retry or abort), and safety caveats for autonomous agents.

## Facts

- Endpoint: POST https://bounty-engineer-x402-prod.onrender.com/v1/retry-policy-plan?utm_source=zero.xyz
- Price: $0.002/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-retry-policy-planner-750c8e2a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TM3HKRDgW6S6l3RMFIbw-

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-retry-policy-planner-750c8e2a -d '<json body>'
```

Example prompt: I just got a 429 rate-limited error on attempt 1 of 4, with a base delay of 1000ms and max delay of 3000ms — the request is idempotent and has no side effects. Can you plan a retry schedule for me?

## When to prefer this

Use this endpoint when your autonomous agent needs deterministic, policy-driven retry scheduling after a failed downstream API call — especially when balancing exponential backoff, rate-limit hints, idempotency safety, and side-effect risk. Prefer this over hardcoded retry logic when the agent must adapt delay schedules to varying error codes, attempt counts, or server-specified retry-after intervals.

## Known failure modes

- Missing or invalid required fields may return a malformed or default response
- If max_attempts is already reached the decision will be 'abort'
- Non-retryable status codes (e.g. 400, 401) will return an abort decision
- Ambiguous side_effect_possible=true with non-idempotent requests will include strong safety warnings
- Network timeout to the endpoint itself may require client-side retry of this planning call

## 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 JSON object with a retry decision ('retry' or 'abort'), a reason for the decision, a scheduled list of future attempts with per-attempt delay_ms values, the current attempt number, error context, idempotency status, and a limitations array warning about transport-layer vs. semantic safety of retries.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "attempt": {
   "type": "integer"
  },
  "error_code": {
   "type": "string"
  },
  "idempotent": {
   "type": "boolean"
  },
  "status_code": {
   "type": "integer"
  },
  "max_attempts": {
   "type": "integer"
  },
  "max_delay_ms": {
   "type": "integer"
  },
  "base_delay_ms": {
   "type": "integer"
  },
  "retry_after_ms": {
   "type": "integer"
  },
  "side_effect_possible": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "mode": "retry_policy_plan",
  "reason": "transient_failure",
  "decision": "retry",
  "schedule": [
   {
    "attempt": 2,
    "delay_ms": 1500
   },
   {
    "attempt": 3,
    "delay_ms": 1000
   },
   {
    "attempt": 4,
    "delay_ms": 2000
   }
  ],
  "error_code": "rate_limited",
  "idempotent": true,
  "limitations": [
   "This is a transport retry policy, not proof that a downstream action is safe to repeat. Mark side effects accurately and use a real idempotency key when supported."
  ],
  "status_code": 429,
  "max_attempts": 4,
  "current_attempt": 1,
  "side_effect_possible": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bounty-engineer-retry-policy-planner-750c8e2a/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)
