# WritersLogic Fleet Memory — record & query agent observations

> WritersLogic Fleet Memory — record & query agent observations 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).

Shared, tenant-scoped memory store where agents in a fleet record timestamped observations about endpoints, IVR paths, submission outcomes, and other operational signals, then query aggregate statistics and recent observations back.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/fleet-memory?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-fleet-memory-record-query-agent-observations-5c73302a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nFkCfZ-J7z66j47ubpBUZ

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-fleet-memory-record-query-agent-observations-5c73302a -d '<json body>'
```

Example prompt: Record in our fleet memory that the Stripe refunds endpoint returned a 429 at 2024-06-10T14:32:00Z with a latency of 1800ms, under the endpoint-health namespace for subject api.stripe.com:POST:/v1/refunds, so the other agents in the fleet can see it.

## When to prefer this

Use this endpoint when you need a shared, tenant-isolated memory layer so multiple agents can pool operational knowledge — such as which API endpoints are healthy, which IVR paths work, or how often a service throttles — without building your own database. Prefer it over local agent memory when coordination across a fleet matters, and over generic key-value stores when you need built-in time-windowed aggregation, outcome counting, and value percentiles out of the box.

## Known failure modes

- subject string violates pattern — returns validation error
- requestId reused with different input — rejected to prevent duplicate mutations
- observations array exceeds 50 items — rejected
- observedAt timestamp older than 30 days — rejected
- tenantId missing for API-key callers — returns authorization error
- sinceHours outside 1–720 range — validation error
- namespace not in allowed enum — validation error
- no observations found for subject in query window — returns empty/unknown status

## How this service works

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

## Output

For record() calls: a confirmation that the observations were appended, including the idempotency key status. For query() calls: a summary containing per-outcome counts, the most recent observations, numeric percentiles (e.g. latency p50/p95) for any measured values, and the age of the most recent recorded observation — or an indication that no recent data exists.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "op": {
   "enum": [
    "record",
    "query"
   ],
   "type": "string"
  },
  "subject": {
   "type": "string",
   "pattern": "^[A-Za-z0-9_.:/@+-]{1,200}$",
   "description": "What was observed, e.g. api.stripe.com:POST:/v1/refunds, +18005551234:billing, or an error fingerprint."
  },
  "tenantId": {
   "type": "string",
   "pattern": "^[A-Za-z0-9_.-]{1,64}$",
   "description": "Required for API-key callers (namespaced as key:<tenantId>; keep it unguessable). Ignored when a wallet paid: the payer address is the tenant."
  },
  "namespace": {
   "enum": [
    "endpoint-health",
    "rate-limit",
    "ivr-path",
    "submission-outcome",
    "failure-fix",
    "feed-staleness",
    "page-recipe",
    "merchant-workflow",
    "document-reputation",
    "custom"
   ],
   "type": "string"
  },
  "requestId": {
   "type": "string",
   "pattern": "^[A-Za-z0-9_.:-]{1,128}$",
   "description": "Caller-chosen id for this mutation. A retry with the same id and same input returns the stored response (24 h) instead of applying twice; the same id with different input is rejected. Send one on every mutation you may retry: without it a retry is applied again (fleet-memory record appends a duplicate; a repeated spend-ledger commit or release answers NO_HOLD because the first call already took effect)."
  },
  "sinceHours": {
   "type": "integer",
   "maximum": 720,
   "minimum": 1,
   "description": "query window; default 168 (7 days)."
  },
  "observations": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "outcome",
     "observedAt"
    ],
    "properties": {
     "by": {
      "type": "string",
      "maxLength": 64,
      "description": "Recording worker id."
     },
     "unit": {
      "type": "string",
      "maxLength": 16
     },
     "value": {
      "type": "number",
      "description": "Optional measurement, e.g. latency ms or hold minutes."
     },
     "detail": {
      "type": "string",
      "maxLength": 500,
      "description": "e.g. the menu path 1,3,2 or the fix applied. Do not store personal data."
     },
     "outcome": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.:-]{1,64}$",
      "description": "e.g. ok, timeout, 429, accepted, rejected, path-worked."
     },
     "observedAt": {
      "type": "string",
      "maxLength": 40,
      "description": "ISO 8601 with offset; within the last 30 days."
     }
    },
    "additionalProperties": false
   },
   "maxItems"
… (truncated)
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-fleet-memory-record-query-agent-observations-5c73302a/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)
