check_ledger
Validate a JSON Lines evidence ledger without modifying it, returning record and claim IDs, keys, counts, gaps, and optional checks for anchors, revisions, sources, source URLs, and bibliography.
Instructions
Check a ledger without changing anything; the result holds record and claim ids, keys and
counts, never quote or source text. gaps is always returned: contestable records lacking a
locator, quote or justification, claims whose records are all withdrawn, and, when a
bibliography is known, record keys missing from it. Optional checks, each returned only when
its input is given: work reports anchors not found in it, or with only a marker, under
anchors (HTML is matched on its visible text; other files on their source text, so markup
inside an anchor reports not found: prefer the rendered HTML); revision lists records assessed
against another or an unknown provenance.manuscript_rev; sources maps a record key to the
source's full text and re-checks each quote against it (matched, not_found, no_source);
source_urls maps a record key to a public http(s) URL whose text (HTML, plain text or a
PDF with a text layer, up to 10 MB; hyphenation across PDF lines can make a quote
not_found) the server fetches itself and adds to sources (a key in both is an error).
Hosts that are not public, including via redirects, are refused; fetches that fail are
listed with a short reason under quotes.fetch_failed, and their records count as no_source.
bibliography is a .bib or CSL JSON file; for an HTML work without one, its ref-<key>
entries serve. Withdrawn records are skipped unless include_withdrawn.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| work | No | ||
| sources | No | ||
| revision | No | ||
| source_urls | No | ||
| bibliography | No | ||
| include_withdrawn | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |