{"uid":"cap_nFkCfZ-J7z66j47ubpBUZ","slug":"writerslogic-fleet-memory-record-query-agent-observations-5c73302a","name":"WritersLogic Fleet Memory — record & query agent observations","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/fleet-memory?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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":50}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_a_CgHg36F_bjV1AVsiYHf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Sharing endpoint brownout signals across fleet","prompt":"Log in our shared fleet memory that api.stripe.com:POST:/v1/refunds timed out twice in the last hour — outcome 'timeout', observed right now — under endpoint-health, so all my other agents can check before retrying."},{"title":"Querying IVR menu path success history","prompt":"Query our fleet memory for the subject +18005551234:billing under the ivr-path namespace over the last 72 hours — I want to see which paths worked and how recently an agent last tried one."},{"title":"Recording submission outcome after review","prompt":"Record in fleet memory that the ambiguous insurance claim submission we flagged last week was finally accepted — subject is claim-form:provider-xyz, namespace submission-outcome, observed at 2024-06-11T09:00:00Z — so agents stop retrying alternatives."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T00:31:57.330Z","isFirstParty":false,"canonicalSlug":"writerslogic-fleet-memory-record-query-agent-observations-5c73302a"}