# WritersLogic Cache Key Checker

> WritersLogic Cache Key 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).

Analyzes a declared set of computation inputs and cache key parts to detect stale hits, volatile inclusions, unknown-influence omissions, and cross-tenant leaks, optionally returning a deterministic SHA-256 key digest.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/cache-key-check?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-cache-key-checker-704fa67f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wmIW_cSnIUuggw_9jFjb4

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-cache-key-checker-704fa67f -d '<json body>'
```

Example prompt: Check my cache key setup: I have inputs userId (influencesOutput=yes), requestId (influencesOutput=no, volatile=true), modelVersion (influencesOutput=yes), and timestamp (influencesOutput=no, volatile=true). My key is built from modelVersion only, the result is private, and the tenant input is userId. Flag anything wrong and give me the key digest.

## When to prefer this

Use this endpoint when an AI agent needs to verify or audit cache key correctness before deploying or during debugging, especially when the inputs' influence on output is known by the caller (not discovered by code inspection). It is the right choice when you want a declarative, code-free cache key audit with optional deterministic digest computation and multi-tenant safety checking.

## Known failure modes

- Missing required 'inputs' array returns a 400 validation error
- 'keyParts' referencing names not present in the inputs list may produce unexpected results
- Providing 'private: true' without specifying 'tenantInput' triggers a cross-tenant leak warning rather than an error
- Input arrays exceeding 100 items are rejected with a 400 error
- Digest is only computed when all relevant inputs include a 'value' field; otherwise digest is omitted

## How this service works

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

## Output

Returns lists of problematic inputs categorized as: influential inputs missing from the key (stale/wrong cache hits), volatile inputs inside the key (cache never hits), unknown-influence inputs omitted from the key, and a missing tenant dimension warning for private results. When input values are provided, also returns a deterministic RFC 8785 JSON + SHA-256 key digest string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "scope": {
   "type": "string",
   "maxLength": 200,
   "description": "Namespace mixed into the digest."
  },
  "inputs": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "name",
     "influencesOutput"
    ],
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
     },
     "value": {
      "description": "Optional value, used only to compute the key digest."
     },
     "volatile": {
      "type": "boolean",
      "description": "Changes on every call (timestamp, request id, nonce)."
     },
     "influencesOutput": {
      "enum": [
       "yes",
       "no",
       "unknown"
      ],
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "maxItems": 100,
   "minItems": 1
  },
  "private": {
   "type": "boolean",
   "description": "The result is per-tenant or per-user."
  },
  "keyParts": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 200,
    "minLength": 1
   },
   "maxItems": 100,
   "description": "Names of the inputs the key is built from."
  },
  "tenantInput": {
   "type": "string",
   "maxLength": 200,
   "minLength": 1,
   "description": "Name of the input that identifies the tenant or user; required in the key when private."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-cache-key-checker-704fa67f/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)
