Skill Descriptor — infrastructure/reference/verification
Module Overview
Given the references a manuscript claims to cite, prove (or disprove) that
each one exists and matches its cited metadata. This is the verification side of
the literature workflow; infrastructure/search/literature is the discovery
side.
Capabilities
- Resolve: DOI → Crossref then OpenAlex (cross-index triangulation); arXiv
id → arXiv API; bare title → Crossref title search with a similarity floor.
- Classify (deterministic):
ok,mismatch,fabricated,unverifiable,
unchecked, anachronism.
- Offline-first: with
allow_network=False(default), consult only the
SQLite cache and report unchecked on a miss — a skipped check never
launders into a clean pass.
- Persistent cache: SQLite, 90-day TTL, stores negative results so
"fabricated" is fast and stable.
- Temporal integrity: flag citations dated after the manuscript's as-of year.
CLI
uv run python -m infrastructure.reference.verification verify references.bib
uv run python -m infrastructure.reference.verification verify references.bib --live --as-of-year 2026 --fail-on-issues
uv run python -m infrastructure.reference.verification verify references.bib --json
uv run python -m infrastructure.reference.verification cache-clear
Python API
from infrastructure.reference.verification import ReferenceResolver, ResolutionCache, verify_bibfile
resolver = ReferenceResolver(cache=ResolutionCache("cache.db"), allow_network=True)
report = verify_bibfile("references.bib", resolver, as_of_year=2026)
print(report.summary_line())
assert not report.has_blocking