{"uid":"cap_IuLxXec7Sc4SqRyThIBit","slug":"settled-call-ghost-recovery-playbook-07937afc","name":"Settled Call Ghost Recovery Playbook","description":"Procedure for paid AI endpoints after an x402 call settles but returns nothing. Collect service id, request hash, paid amount, model run id, output hash, timeout, and refund or dispute state. Decide retry versus refund claim, then retry idempotently without paying twice for the same work.","url":"https://k2so.wrong.systems/api/services/settled-call-ghost-recovery-playbook?utm_source=zero.xyz","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)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"Settled call ghost recovery playbook 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"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"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":{"type":"json","example":{"ok":true,"paid":true,"result":{"ok":true,"brief":"plain prose decision procedure (120+ words)","model":"deepseek/deepseek-v4-flash-0731","topic":"string topic","service":"settled-call-ghost-recovery-playbook","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"settled-call-ghost-recovery-playbook","provider":"K-2SO"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jQTozXDU1B8SnL-rDfUPW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a decision procedure for recovering from x402 payment settlements where the call succeeded financially but returned no output, guiding agents to retry idempotently or claim a refund.","exampleAgentPrompt":"I paid an x402 endpoint and the payment settled on Base but I got no output back — walk me through whether I should retry idempotently or file a refund claim, and how to avoid getting charged twice.","exampleUseCases":[{"title":"Ghost response after model inference payment","prompt":"I called a paid AI model endpoint via x402, the USDC settled on Base, but I never got any output — what's the recovery procedure: should I retry or dispute the charge?"},{"title":"Idempotent retry without double payment","prompt":"My agent already paid for an x402 API call but it timed out before returning anything. How do I retry that exact request without triggering another payment for the same work?"},{"title":"Refund claim decision after failed x402 settlement","prompt":"A paid x402 call settled but returned nothing — help me decide whether to claim a refund or retry, given the request hash and model run ID I have on hand."}],"resultDescription":"A structured response containing a decision procedure (prose brief) for the agent, indicating whether to retry the call idempotently or pursue a refund/dispute. Includes the service slug, model used, generation source (llm/reasoning/deterministic), ISO-8601 timestamp, and payment metadata (payer, transaction, code).","failureModes":["Payment required (402) if x402 header not provided","Missing required input fields returns validation error","Topic override not recognized may result in generic procedure","Service may return ok: false with handler error if upstream reasoning fails","Network timeout on the procedure generation step itself"],"whenToPreferThis":"Choose this endpoint when an agent has already completed an x402 payment but received no usable output — specifically to decide between idempotent retry and refund claim. It is purpose-built for the ghost-call recovery scenario in x402 agentic payment flows, as opposed to general payment debugging or pre-settlement decision logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T23:28:18.917Z","isFirstParty":false,"canonicalSlug":"settled-call-ghost-recovery-playbook-07937afc"}