# WritersLogic Acceptance Receipt

> WritersLogic Acceptance Receipt 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).

Runs deterministic acceptance tests against a JSON output and returns per-test results plus a cryptographically signed receipt certifying the tests passed on specific bytes.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/acceptance-receipt?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-acceptance-receipt-24c4dd9b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9lQK9itxTbZWNlCGfgd19

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-acceptance-receipt-24c4dd9b -d '<json body>'
```

Example prompt: Before I release payment for the report my sub-agent just delivered, run these acceptance tests on its JSON output — check that the 'status' field equals 'complete', that 'word_count' is between 500 and 2000, and that 'title' exists — label it task-42, and give me a signed receipt I can keep as proof.

## When to prefer this

Use this endpoint when you need deterministic, cryptographically provable verification of a JSON payload — specifically before authorizing payment for delegated AI work, releasing a next pipeline step, or archiving audit proof. It is ideal when you need a signed receipt (not just a boolean pass/fail) that proves specific tests ran on specific bytes. Prefer it over ad-hoc JSON validation when auditability, non-repudiation, or multi-agent accountability is required. It is not a semantic evaluator — use it only for structural/value assertions you can express precisely.

## Known failure modes

- Test assertion fails — returns per-test failure detail indicating which test did not pass and why
- Output exceeds 262144 bytes JCS limit — rejected with size error
- Invalid JSON Pointer path — test returns error for that assertion
- Malformed test definition missing required 'id' or 'kind' fields — validation error
- More than 100 tests submitted — rejected with maxItems error
- SHA256 value not lowercase hex — test fails or is rejected
- Schema subset not supported by hub — returns unsupported schema error

## How this service works

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

## Output

Returns an array of per-test results (each with the test id, pass/fail status, and details), plus a hub-signed receipt containing the hash of the output, the hash of the test suite, and the hash of the results — providing cryptographic proof that specific tests passed on specific bytes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "label": {
   "type": "string",
   "maxLength": 200,
   "description": "Free text bound into the receipt, e.g. the task id."
  },
  "tests": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "kind"
    ],
    "properties": {
     "id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.:-]{1,64}$"
     },
     "max": {
      "type": "number"
     },
     "min": {
      "type": "number"
     },
     "kind": {
      "enum": [
       "equals",
       "not-equals",
       "exists",
       "absent",
       "type",
       "contains",
       "length-between",
       "number-between",
       "one-of",
       "sha256",
       "schema"
      ],
      "type": "string"
     },
     "path": {
      "type": "string",
      "maxLength": 500,
      "description": "RFC 6901 JSON Pointer into output; empty or omitted = the whole output."
     },
     "value": {
      "description": "equals/not-equals/contains: the JSON value; type: a JSON type name; one-of: an array; sha256: lowercase hex; schema: a hub-subset JSON Schema."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 100,
   "minItems": 1
  },
  "output": {
   "description": "The delivered JSON (at most 262144 bytes as JCS)."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-acceptance-receipt-24c4dd9b/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)
