# WritersLogic Approval Invalidation Checker

> WritersLogic Approval Invalidation 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).

Compares an approved JSON snapshot against the version about to be executed, returning pass/fail/unknown based on a caller-supplied materiality policy, revision matching, and expiry rules.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/approval-invalidation?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-approval-invalidation-checker-22f0edcc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6vO5aPU7ZKJ_8nRN9FrkP

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-approval-invalidation-checker-22f0edcc -d '<json body>'
```

Example prompt: Before we execute this purchase order, check if the current version still matches what the buyer approved — the approved snapshot is the original JSON, the current version is the updated one, and our policy says prices can vary by up to 5% but quantities must be exact; the approval was granted 2 hours ago and is valid for 3600 seconds.

## When to prefer this

Use this endpoint when an AI agent or automated system needs to verify that what it is about to execute still matches a prior human or system approval — especially for quotes, orders, plans, or any JSON artifact subject to drift. Prefer it over manual diff checks when you need structured pass/fail verdicts with per-path materiality rules, revision tracking, and expiry enforcement in a single call. It is particularly well-suited for multi-agent pipelines where approvals may become stale or be superseded.

## Known failure modes

- Missing policy causes unknown verdict for unlisted paths
- Missing asOf or approvedAt causes unknown verdict for expiry check
- Missing one revision field causes unknown verdict for revision check
- Malformed RFC 3339 timestamps result in validation error
- Policy path count exceeds 100-item limit
- numeric-tolerance rule applied to non-numeric field yields unknown or fail
- approved or current fields missing causes inability to compare

## 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 verdict of 'pass' (approval still covers the action), 'fail' (material change detected, revision mismatch, or expired approval — with witness entries naming each differing path plus approved and current values), or 'unknown' (insufficient policy or time evidence to decide).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "asOf": {
   "type": "string",
   "maxLength": 40,
   "description": "RFC 3339 instant for the expiry check; no clock is read."
  },
  "policy": {
   "type": "object",
   "properties": {
    "fields": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "path",
       "rule"
      ],
      "properties": {
       "abs": {
        "type": "number",
        "maximum": 1000000000000000,
        "minimum": 0,
        "description": "numeric-tolerance: allowed absolute difference."
       },
       "pct": {
        "type": "number",
        "maximum": 1000,
        "minimum": 0,
        "description": "numeric-tolerance: allowed difference as percent of the approved value. Either bound being met is enough."
       },
       "path": {
        "type": "string",
        "maxLength": 300,
        "description": "JSON Pointer prefix; \"*\" matches one token."
       },
       "rule": {
        "enum": [
         "exact",
         "ignore",
         "numeric-tolerance",
         "no-increase",
         "no-decrease"
        ],
        "type": "string"
       }
      },
      "additionalProperties": false
     },
     "maxItems": 100
    },
    "default": {
     "enum": [
      "material",
      "ignore"
     ],
     "type": "string",
     "description": "Rule for paths no field rule covers. Default material (any change invalidates)."
    }
   },
   "additionalProperties": false
  },
  "current": {
   "description": "The version about to be executed (JSON)."
  },
  "approved": {
   "description": "The approved snapshot (JSON)."
  },
  "approvedAt": {
   "type": "string",
   "maxLength": 40,
   "description": "RFC 3339 instant."
  },
  "currentRevision": {
   "type": "integer",
   "maximum": 1000000000,
   "minimum": 0
  },
  "validForSeconds": {
   "type": "integer",
   "maximum": 315360000,
   "minimum": 0
  },
  "approvedRevision": {
   "type": "integer",
   "maximum": 1000000000,
   "minimum": 0
  },
  "requireSameRevision": {
   "type": "boolean",
   "description": "Default true when either revision is given (a missing partner gives unknown): an approval for another revision does not cover this one. Send false to ignore the revisions."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-approval-invalidation-checker-22f0edcc/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)
