{"uid":"cap_6vO5aPU7ZKJ_8nRN9FrkP","slug":"writerslogic-approval-invalidation-checker-22f0edcc","name":"WritersLogic Approval Invalidation Checker","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/approval-invalidation?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"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_SqQKZfIMymbVC1ISbe9cW","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":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Quote expiry check before invoicing","prompt":"The customer approved a quote 90 minutes ago that was valid for 3600 seconds — before we send the invoice, check whether the approval has expired and whether the line items in the current quote still match what they approved, with a 2% price tolerance and exact quantity matching."},{"title":"Order revision gating in multi-agent pipeline","prompt":"We're on revision 4 of this purchase order and the agent approved revision 3 — flag whether the approval is still valid or has been superseded, and tell me which fields changed between the approved and current JSON."},{"title":"Plan drift detection before autonomous execution","prompt":"My AI agent is about to execute a deployment plan. The approved plan is the JSON I submitted yesterday and here's the current version — use a materiality policy where resource counts must not increase, costs can vary by at most $500 absolute, and everything else must be exact. Tell me if the approval still covers this action."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:40:58.133Z","isFirstParty":false,"canonicalSlug":"writerslogic-approval-invalidation-checker-22f0edcc"}