Metis — Audit Background Provenance
audit_background_provenanceIdentify and record DOI provenance for indexed documents across knowledge layers, checking the local reference library first and optionally querying Crossref for unresolved titles.
Instructions
Where did the documents in the knowledge layers actually come from?
Sweeps `pdf_index_state` and records a DOI for every indexed document it can
identify, so a layer can state its own provenance. Matches against the local
reference library first — that is free and covers most of the corpus — and
only calls Crossref when `resolve_online` is set.
This is the "verify at ingest, trust at read" half of the verification layer.
A corpus of known-real documents makes answer-time checking a containment
problem rather than a truth problem, and the cost is paid once per document
instead of once per claim.
Args:
layer: Restrict to one layer slug (e.g. 'hat-specialist'); omit for all.
resolve_online: Also query Crossref by title for documents the local
library cannot identify. Metadata only; costs one request each.
limit: Maximum documents to process in one pass (default 400).
Returns:
Per-layer provenance counts and what changed in this pass.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | ||
| limit | No | ||
| resolve_online | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |