Spend a step per entry parsed and per key resolved.
Every \cite/\citep/\citet/\nocite in the document, in source order.
That order is the numbering order (see the file's own doc comment for
why "plain" prints in citation order rather than alphabetically), and
\nocite sites (style: "silent") contribute keys without printing.
Where diagnostics go. Appended to, never replaced.
The entrypoint, for a diagnostic with no better position than the document.
The whole project, decoded. .bib files are inputs like the .tex (D38):
the engine performs no I/O, so a name in \bibliography{refs} is resolved
against these keys — refs, then refs.bib — or it is a missing-file
diagnostic. There is no path to open.
What both entry points need. One object so the two calls read alike.