# WritersLogic Compensation Coverage Checker

> WritersLogic Compensation Coverage Checker is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

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.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/compensation-coverage?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-compensation-coverage-checker-cca40c10
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1oEf00lFTt8g4ZuLi4gjo

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 writerslogic-compensation-coverage-checker-cca40c10 -d '<json body>'
```

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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

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.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-compensation-coverage-checker-cca40c10/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
