Is this document still current, or superseded by a newer one?

$0.005 USDC per call · Business, finance and compliance · POST /api/v1/document-supersession · Id document-supersession

Given the target document id, the supplied set of documents (id, effective date, which ids each one supersedes, withdrawn flag) and a reference date, reports whether the target is superseded or withdrawn as of that date, following supersession chains, and names the superseding document and its date. For an agent about to rely on a standard, price list, policy or datasheet revision. It can only see the documents supplied: 'current' requires the caller to declare the list complete, otherwise the answer is unknown. Does not fetch documents or compare their text.

What you get

Stops an agent citing a withdrawn or superseded revision.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/document-supersession. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/document-supersession \
  -H 'content-type: application/json' \
  -d '{"target":"SPEC-2023-04","documents":[{"id":"SPEC-2023-04","effectiveDate":"2023-04-01"},{"id":"SPEC-2025-01","effectiveDate":"2025-01-15","supersedes":["SPEC-2023-04"]},{"id":"SPEC-2026-09","effectiveDate":"2026-09-01","supersedes":["SPEC-2025-01"]}],"asOf":"2026-11-04","listComplete":true}'

Input

FieldTypeRequiredDescription
targetstring; length 0..200yesId of the document being relied on.
documentsarray<object>; max 200 itemsyesThe documents the caller knows of, including the target.
asOfstring; length 0..40yesReference date: a superseding document counts only if effective on or before it.
listCompletebooleannoThe caller asserts documents holds every document that could supersede the target. Required for a pass.

Example request body

{
  "target": "SPEC-2023-04",
  "documents": [
    {
      "id": "SPEC-2023-04",
      "effectiveDate": "2023-04-01"
    },
    {
      "id": "SPEC-2025-01",
      "effectiveDate": "2025-01-15",
      "supersedes": [
        "SPEC-2023-04"
      ]
    },
    {
      "id": "SPEC-2026-09",
      "effectiveDate": "2026-09-01",
      "supersedes": [
        "SPEC-2025-01"
      ]
    }
  ],
  "asOf": "2026-11-04",
  "listComplete": true
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
statusstring; one of "pass", "fail", "unknown", "unsupported"nopass: every rule held. fail: a rule was violated (see witnesses). unknown: the input lacks the evidence to decide. unsupported: outside what this engine covers. Missing evidence is never a pass.
requirementsarray<object>no
countsobjectnoNon-optional requirements by state; optional ones are counted separately.
currentone ofnotrue when pass, false when superseded or withdrawn, null when undecidable.
supersededByarray<object>noDocuments effective by asOf that replace the target, directly or through a chain.
scheduledarray<object>noSuperseding documents that take effect after asOf.
witnessesarray<object>no
versionsobjectnoEvery semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile).
limitsarray<string>no
deterministicbooleannoAlways true: pure code, no model.

Pay and connect

Available through: x402 (USDC on Base), MCP. MCP clients reach it through the compliance-evidence-kit package.

Machine-readable