{"uid":"cap_1oEf00lFTt8g4ZuLi4gjo","slug":"writerslogic-compensation-coverage-checker-cca40c10","name":"WritersLogic Compensation Coverage Checker","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/compensation-coverage?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"steps":{"type":"array","items":{"type":"object","required":["id","effect"],"properties":{"id":{"type":"string","maxLength":200,"minLength":1},"effect":{"enum":["read","write"],"type":"string"},"dependsOn":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":20},"compensation":{"type":"string","maxLength":200,"minLength":1,"description":"Id of the step that undoes this one."},"irreversible":{"type":"boolean","description":"Declared impossible to undo (send email, wire transfer)."}},"additionalProperties":false},"maxItems":100,"minItems":1},"completed":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":100,"description":"Step ids completed so far, in completion order. Only used for rollbackOrder and to say an irreversible write has already run; coverage is always checked for the whole plan."}}},"responseSchema":{"type":"json"},"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":"unknown","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_3aQ5-Y-avMQdUPz2IcuKl","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":"Validates that every write step in an agent plan has a valid, non-self-referential compensation step, detects dependency cycles, flags irreversible writes, and returns compensations to run in reverse completion order for rollback.","exampleAgentPrompt":"Check my agent plan for compensation coverage — I have steps like 'charge-card' (write, compensated by 'refund-card'), 'send-email' (write, irreversible), and 'update-db' (write, compensated by 'restore-db'), and so far 'charge-card' and 'update-db' have completed; tell me if every write has a valid compensation, flag any cycles or irreversible writes, and give me the rollback order.","exampleUseCases":[{"title":"Saga rollback order after partial failure","prompt":"My agent workflow has these steps: 'reserve-seat' (write, compensated by 'cancel-seat'), 'charge-payment' (write, compensated by 'refund-payment'), and 'send-confirmation' (write, marked irreversible). Steps 'reserve-seat' and 'charge-payment' have completed so far. Check whether all writes have valid compensation steps and give me the order to run the compensations for rollback."},{"title":"Cycle detection in compensation graph","prompt":"Before I run my multi-step agent plan, check it for dependency cycles and missing compensations. The steps are: 'create-order' (write, compensated by 'delete-order', depends on nothing), 'allocate-inventory' (write, compensated by 'release-inventory', depends on 'create-order'), and 'delete-order' (write, compensated by 'create-order'). I'm worried about circular compensation references."},{"title":"Pre-flight validation of irreversible writes","prompt":"Validate my agent plan before execution — it has steps: 'backup-data' (write, compensated by 'restore-data'), 'wire-transfer' (write, irreversible), and 'notify-team' (write, irreversible). No steps have completed yet. I need to know which writes lack proper compensation coverage and which ones I need to be careful about because they can't be undone."}],"resultDescription":"Returns a validation report indicating whether every write step has a compensation step that exists in the plan, is itself a write, and is not self-referential; reports any dependency cycles; lists any writes flagged as irreversible; and provides the ordered list of compensation steps to execute in reverse completion order for rollback given the completed steps supplied.","failureModes":["Compensation step ID references a step not present in the plan — returns coverage error for that write","A step lists itself as its own compensation — flagged as invalid self-compensation","Dependency graph contains a cycle — cycle is detected and reported","Irreversible write has already run (appears in completed) — flagged in results","Empty steps array or missing required fields — request rejected with validation error","More than 100 steps or 100 completed IDs provided — rejected due to schema limits"],"whenToPreferThis":"Use this endpoint when building or validating agent plans that follow a saga or compensation pattern and you need to ensure every write operation has a valid rollback path before execution begins, or when a partial execution has occurred and you need a safe, ordered rollback sequence. Prefer this over manual review when plans have complex dependency graphs where cycles may not be obvious. It does not execute compensations or judge semantic correctness of the undo logic — use it purely for structural and coverage validation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:38:57.791Z","isFirstParty":false,"canonicalSlug":"writerslogic-compensation-coverage-checker-cca40c10"}