bibaudit

Documentation: https://lorenzofabbri.github.io/bibaudit/
bibaudit checks that every reference in a bibliography exists and that every stored field matches the publisher's record in Crossref, DataCite, PubMed and, for books, Open Library: title, every author, year, journal, volume, issue, pages, publisher, and a PMID stored beside a DOI. Every reference that resolves to a DOI is also checked for retraction against Retraction Watch's own export and PubMed's expression-of-concern cross-reference, neither of which depends on what a publisher deposited with Crossref. Where an entry names co-authors that no registry consulted for it names, zbMATH Open is asked who wrote the work.
No language model is involved at any point. Every verdict is reproducible from the cached registry response, and any of them can be re-derived by hand.
$ bibaudit check references.bib
bibaudit — 438 references checked
BAD-ID (1) the identifier resolves in no consulted registry
jones2020method references.bib:301
doi/unresolved (resolves in no consulted registry)
stored 10.1016/j.jclinepi.2020.99999
registry
FIELD-MISMATCH (2) right work, but stored metadata disagrees with the registry
smith2019cohort references.bib:214
year/mismatch
stored 2019
crossref print=2021, online=2020
wang2021trial references.bib:266
pages/mismatch
stored 1120
crossref 1102
summary
BAD-ID 1
FIELD-MISMATCH 2
INCOMPLETE 74
OK 361
errors by field year=1, pages=1, doi=1
FAIL — 3 reference(s) in the failing set
bibaudit verifies that each reference exists and that its stored metadata
matches the publisher's record. It does not and cannot verify that a cited
work supports the statement it is attached to — that requires reading the paper.
Why not just check that the DOI resolves
A wrong citation passes that check. In one audit of 53 published papers, 66% of the confirmed fabricated references were works that do not exist, which a DOI check catches. But 27% were real works with corrupted fields, and 4% were valid, resolving DOIs attached to the wrong paper.[^taxonomy] A tool that only asks whether the DOI resolves cannot see either of those two classes, and they are the ones that survive review.
[^taxonomy]: Ansari, S., Compound Deception in Elite Peer Review: A Failure Mode Taxonomy of 100 Fabricated Citations at NeurIPS 2025, arXiv:2602.05930. The 100 citations appeared in 53 published papers, about 1% of that year's accepted papers; the taxonomy's remaining 3% are placeholder and semantic hallucinations.
Why it never rewrites your bibliography
Most tools in this space (betterbib, bibcure, rebiber, and the Zotero metadata plugins) fetch the registry record and overwrite your entry with it. That is not verification. It destroys the evidence that there was ever a disagreement, and it assumes the registry is right, which it frequently is not:
- Crossref returns
Gómez for Gómez when a deposit was mis-decoded.
- Environmental Health Perspectives zero-pads article numbers (
027004).
- Some deposits carry a doubled
do(x)do(x) from mangled MathML.
- JSTOR DOIs content-negotiate to the publisher's own DOI for the same work.
- Crossref sometimes registers a shortened title (Rubin 1986 as bare "Comment").
bibaudit reports the disagreement, names the likely cause where it recognises one, and leaves the decision to you. --suggest can write a corrected copy beside the original for you to diff, but the original is never touched.
Install
uv tool install bibaudit
Or with pip:
pip install bibaudit
From a checkout:
uv sync && uv run bibaudit --help
Use
# A bibliography
bibaudit check references.bib
# Quarto or Obsidian notes: DOIs typed in prose and tables, plus every
# [@citekey] resolved against the bibliography
bibaudit check sources/ --bibliography references.bib
# A Zotero library, read-only
bibaudit check ~/Zotero/zotero.sqlite
bibaudit check local # a running Zotero, via its local API
bibaudit check library.json # a CSL-JSON export
# Machine-readable, for CI or a dashboard
bibaudit check references.bib --format json --output audit.json
Useful flags:
--offline reads the cache only, to reproduce an earlier run.
--refresh ignores the cache.
--no-corroborate drops PubMed's second opinion; an entry resolved by its PMID alone then has no registry left to ask and reports UNCHECKED.
--no-retraction-check skips the independent Retraction Watch and PubMed expression-of-concern check (see Retraction below).
--no-isbn skips Open Library entirely.
--no-zbmath stops bibaudit asking zbMATH Open for the byline of a work whose co-authors no other source names.
--verbose shows cosmetic and informational findings.
--mailto you@example.org puts Crossref requests in the polite pool; nothing in this tool needs an account or a key.
--suggest proposes fixes for missing fields (see below).
Run bibaudit check --help for the full list, including --no-europepmc and --no-openalex, which turn off sources consulted when confirming an entry that carries no identifier.
Inputs
| Source |
What is read |
.bib |
every entry and every field |
.qmd, .md, .rmd |
[@key], bare @key, Obsidian's [[@key]] / [[@key\|display]], YAML nocite:, and DOIs typed in prose or inline tables. Ordinary wikilinks ([[Some Note]]), embeds (![[Some Note]]), block references (^block-id) and tags (#tag) are Obsidian navigation, not citations, and are never read as one |
zotero.sqlite |
every item, read-only via an immutable URI |
| CSL-JSON |
every item |
local |
a running Zotero, through its read-only local API |
A note's own bibliography: front matter is resolved against the note's directory (Quarto's rule) unless the note sits inside an Obsidian vault (a directory carrying .obsidian above it), in which case it resolves against the vault root instead, as Obsidian citation plugins such as obsidian-pandoc-reference-list interpret that path.
An entry's PMID is read as an identifier in its own right, out of the fields a PMID is kept in: BibTeX's pmid, or an eprint whose eprinttype says pubmed; CSL's own PMID variable; and a line a PMID: label opens in a Zotero Extra block or a CSL note, which is how a PMID gets recorded in a schema that has no field for one. The label has to open the line at column zero: the same box holds free notes and pasted MEDLINE back-matter, where Comment in: JAMA. 2003;289:2560. PMID: 12759325 names a correction rather than the work being cited, and where efetch's 80-column wrapping puts a bare PMID: at the start of an indented continuation. An entry carrying a PMID and no DOI is fetched from PubMed by that number with a single efetch, where resolving a DOI costs an esearch and an esummary first. It is not searched for by title and author, because a search is a guess and the PMID already names the work exactly.
An entry carrying both is resolved through the DOI, and the PMID becomes a field to check rather than a key: it looked nothing up, so it is a second, independent claim about which work is cited. When PubMed answers for that DOI under a different number, the two identifiers name two citations, and the entry is reported INCOMPLETE. That is a warning rather than a failure, because only one side of the comparison was looked up. Nothing asks PubMed what the stored number names, so a stored PMID that PubMed no longer answers for goes unnoticed. --fail-on INCOMPLETE makes the finding fail the run and prints it with the citekey and the locator, because naming a verdict there brings its references into the report as well as into the exit code.
An entry's isbn field (BibTeX's isbn, Zotero's own field, CSL-JSON's ISBN) is read as an identifier in its own right, checked against its ISO 2108 check digit and resolved through Open Library — the one registry in this tool organised around books rather than DOIs. It is consulted only when neither a DOI nor a usable PMID is stored. The order is doi, pmid, isbn, and a reference carrying more than one is resolved by the strongest, once.
Verdicts
| Verdict |
Meaning |
Fails CI |
RETRACTED |
the cited work has itself been retracted |
yes |
BAD-ID |
the identifier resolves in no consulted registry |
yes |
WRONG-WORK |
the identifier resolves, but to a different paper |
yes |
FIELD-MISMATCH |
right work, stored metadata disagrees |
yes |
UNCONFIRMED |
no identifier and no confident match — needs review |
yes |
DISPUTED |
registries disagree with each other |
no |
INCOMPLETE |
the registry holds fields the entry omits |
no |
ADJUDICATED |
a difference this project's .bibaudit.toml decided to accept |
no |
REGISTRY-ARTIFACT |
difference explained by a known registry defect |
no |
TITLE-DRIFT |
wording differs, same work |
no |
COSMETIC |
differs only in glyphs or capitalisation |
no |
UNCHECKED |
nothing was verified: nobody answered, nobody was asked, or the record held nothing to compare |
no |
OK |
every checked field agrees |
no |
RETRACTED means the cited work was retracted. A retraction notice, the editorial statement itself, is an ordinary citable document and is never reported as retracted. A paper about a retraction cites the notice correctly, and the tool says nothing about it.
ADJUDICATED and REGISTRY-ARTIFACT are both non-failing and are deliberately separate. The second says a registry defect documented in docs/registry-artifacts.md explains the difference, and is settled for everybody. The first says somebody on this project wrote a rule in .bibaudit.toml accepting the difference. That rests on one person's judgement, and it can go stale when a citekey is renamed or a bibliography is re-exported. The summary counts them apart for the same reason.
Change what fails with --fail-on RETRACTED,BAD-ID,WRONG-WORK.
A registry outage is UNCHECKED, never a failure. A check that breaks the build whenever Crossref is briefly down is a check people learn to bypass.
Retraction
Retraction status is the union over every registry that answered, not the primary registry's opinion. Four sources carry it. The first two depend on what a publisher chose to deposit, and the last two do not:
- Crossref, through the
updated-by relation, which includes any Retraction Watch linkage that a publisher's own deposit matched closely enough for Crossref's pipeline to attach;
- PubMed, through MEDLINE's
PT - Retracted Publication, which NLM curates independently of the publisher;
- Retraction Watch's own export, read directly rather than only where Crossref surfaces it, so a retraction Retraction Watch has logged but no publisher deposit ever linked is caught here, where Crossref alone would miss it;
- PubMed's
ECI cross-reference ("Expression of Concern In:"), which MEDLINE records on the entry of the paper the concern is about and never as the PT value PubMed's retraction flag reads, so a concern NLM knows about reaches the report only from here.
All four are checked for every reference that resolves to a DOI, whether the DOI is stored in the entry or comes from a candidate that a title and author search confirmed during the run, in which case it is checked as soon as it is confirmed. Two of the sources are keyed on a DOI, and the other two are lines on the MEDLINE record itself, so an entry resolved by another identifier necessarily reaches fewer of them.
A reference resolved by its PMID keeps both of PubMed's, because both arrive on the citation the lookup already returned: a retraction NLM indexed reports RETRACTED, and a concern NLM recorded reports as a concern. What it loses is Crossref's updated-by and Retraction Watch's export, each of which takes a DOI it does not carry. A book resolved through its ISBN alone loses all four, because Open Library mints no DOI for them to be keyed on. Neither entry reports a clean retraction result: both carry a status/not-asked finding naming the retraction sources the run did not ask — crossref, retraction-watch on the first, crossref, pubmed, retraction-watch on the second — and the run states it beside the banner.