{"uid":"cap_TM3HKRDgW6S6l3RMFIbw-","slug":"bounty-engineer-retry-policy-planner-750c8e2a","name":"Bounty Engineer Retry Policy Planner","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/retry-policy-plan?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":{"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}},"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_qptX5_0iDxjTUmV_Rk7nJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Rate-limited API retry planning","prompt":"My agent just hit a 429 rate limit on its first attempt out of a max of 4. The base delay is 1500ms, max delay is 5000ms, it's an idempotent call with no side effects — what's the full retry schedule?"},{"title":"Safe retry after transient server error","prompt":"I got a 503 error on attempt 2 of 3. The call might have a side effect and I'm not sure if it's idempotent. Base delay is 2000ms, max 4000ms. Should I retry and if so, when?"},{"title":"Abort decision for non-retryable failure","prompt":"My agent got a 400 bad request error on attempt 1 of 3. Error code is 'invalid_input', the request is not idempotent, and there are possible side effects. Should it retry or give up?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:40:48.852Z","isFirstParty":false,"canonicalSlug":"bounty-engineer-retry-policy-planner-750c8e2a"}