Home¶
bibaudit checks that every reference in a bibliography exists, and that every field stored for it 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. Half the retraction sources are keyed on a DOI, so an entry resolved by a PMID or by an ISBN reaches fewer of them, and limits says which. It reads .bib files, Quarto and Obsidian notes, Zotero libraries and CSL-JSON.
No language model is involved at any point. Every verdict is reproducible from the cached registry response, and any single finding can be checked by hand against the record it came from. --offline never touches the network: a cached answer is replayed, and anything uncached or past its cache lifetime is reported UNCHECKED rather than guessed at. Registry answers are cached for --cache-ttl days (90 by default) and the Retraction Watch index for seven. A replay inside those windows re-derives the original report exactly; one outside them re-derives a narrower report, in which whatever has expired reads UNCHECKED.
Nothing is ever written to your bibliography. bibaudit never writes to the .bib, the .qmd or .md, or the Zotero database, which it opens read-only because it is your live library and Zotero may be writing to it. bibaudit reports the disagreement and leaves the decision to you.
A run¶
Three entries: one whose stored fields all agree but which omits a volume PubMed holds, one carrying a year no registry holds, and one whose DOI resolves nowhere.
$ bibaudit check references.bib
bibaudit — 3 references checked
BAD-ID (1) the identifier resolves in no consulted registry
jones2020method references.bib:23
doi/unresolved (resolves in no consulted registry)
stored 10.1016/j.jclinepi.2020.99999
registry
FIELD-MISMATCH (1) right work, but stored metadata disagrees with the registry
beral2003breast references.bib:11
year/mismatch
stored 2004
crossref issued=2003, print=2003, pubmed:issued=2003
summary
BAD-ID 1
FIELD-MISMATCH 1
INCOMPLETE 1
errors by field year=1, doi=1
suppressed 1 (1 registry defect(s)) (--show-suppressed to list)
FAIL — 2 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.
What is in that report, and why:
beral2003breastis the right work (the DOI resolves and the title agrees), and the stored year is one no registry carries. The report prints every date slot the registries do carry rather than a single "correct" year, because an entry citing the online-first date when Crossref also holds a print date is right, and reporting it would be a false alarm.jones2020methodisBAD-ID: the DOI is well-formed and no registry that answered holds it. That is a fact about an answer, not a network failure. A registry that could not be reached leaves the referenceUNCHECKED, neverBAD-ID, because confusing ignorance with absence is the one way this tool could accuse a real paper of not existing.- The third entry is
INCOMPLETEand appears only in the summary: PubMed holds a volume the entry omits. There is nothing to decide, so it is not printed by default. Run with--verboseto see it. suppressed 1is the Million Women Study entry, which stores the consortium as one collective author while Crossref splits the byline into people. That is a difference in representation, not a defect, so it does not fail. It is still counted, because a report that silently drops what it chose not to show you is not an audit.--show-suppressedprints it with both values.- Every report ends with the sentence about what was not checked. It is not boilerplate to be skipped; see what it cannot tell you.
The run exits 1, as it does when a bibliography entry cannot be read and so goes unaudited. Exit 2 means the tool could not run at all — bad arguments, an unreadable input, a broken config. A registry outage is neither: see in CI.
Install¶
Or with pip:
From a checkout:
Then point it at something:
What it cannot tell you¶
bibaudit verifies metadata, not argument. It can tell you that a DOI resolves to a different paper than the one stored beside it. It cannot tell you whether that paper supports the sentence the citation is attached to. That is the failure mode no metadata check can reach, and it requires reading the paper.
It also cannot prove that a work does not exist. Registry coverage has real gaps — pre-1990 work, grey literature, non-English publishing, and books, whose Open Library records are crowd-sourced and frequently carry a title and nothing else. An entry that nothing can confirm is reported UNCONFIRMED, which means needs review, never fabricated.
A passing report is a narrower claim than it looks
OK, the per-reference verdict, means every field bibaudit could check agreed with a registry that answered. PASS, the line at the end of the run, is weaker than that and is not a verdict at all: it means no reference fell into the failing set. INCOMPLETE, DISPUTED and UNCHECKED are all outside that set, so a run in which no registry could be reached reports every entry UNCHECKED and still prints PASS, and still exits 0 — because an outage is not a defect in your bibliography and must not break your build. Read the summary counts, not the last line.
Neither word means the references support the claims they are attached to, and neither means nothing in the file was ever retracted — retraction linkage has to have been deposited or logged somewhere before anyone can find it. Limits states the boundary in full.
Start here¶
- Why field-level — why "the DOI resolves" is the check a wrong citation passes.
- Inputs — what is read out of
.bib, Quarto and Obsidian notes, Zotero and CSL-JSON, and what is deliberately not read as a citation. - Verdicts — all thirteen, and which ones break a build.
- Command line — every flag and what it costs to turn off.
- Retraction — the four sources, why they are consulted as a union, and what a clean result does not establish.
- Limits — the boundary, stated plainly.
The rest: in CI, registry defects, adjudicating a difference and proposing fixes.
The three rules¶
-
No model is in the verdict path: not as a fallback, not for the hard cases, not behind a flag. A verdict must be reproducible from the cached registry response by anyone, indefinitely. Where a check cannot be made deterministic, the tool reports the uncertainty instead of resolving it.
-
The tool reports and never rewrites.
betterbib,bibcure,rebiberand 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 often is not (see registry defects). bibaudit has no authority to decide which side is wrong.--suggestwrites a separate file for you to diff; the original is never opened for writing. -
A false alarm costs more than a miss. A report full of noise stops being read, and an unread report still looks like assurance. Every check ships with its known-benign exceptions, such as the collective author above, or it does not ship.
Licensed MIT.