Borehole · Project · free tier
pydantic/logfire
Free reading: not for reliance
71f1769 · 2,243 commits · 1,039 files
Read 2026-11-03

pydantic/logfire: technical due diligence, read from its repository

What Borehole read in pydantic/logfire's code and history at 71f1769: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.

DimensionRating
Architecture & Codebase — including AI provenanceadequate
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturitystrong
Security & Reliability Posturestrong
Observability & Operationsnot assessable
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

adequate
01.6

logfire-sdk/logfire/_internal/main.py is 3,588 lines, 41× this codebase's median file

adequate

The median source file here is 86 lines. 7 files exceed 1,000 lines, the largest being 3,588. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.

Evidence
logfire-sdk/logfire/_internal/main.py:1 — 3,588 lines (41× median)
logfire-sdk/logfire/_internal/config.py:1 — 2,472 lines (28× median)
logfire-sdk/logfire/variables/abstract.py:1 — 2,028 lines (23× median)
logfire-api/logfire_api/_internal/main.pyi:1 — 1,691 lines (19× median)
logfire-sdk/logfire/experimental/api_client.py:1 — 1,422 lines (16× median)
01.7

5% of code blocks appear verbatim in more than one file

adequate

1,405 distinct 8-line blocks appear in two or more files. Copy-paste is the cheapest thing a generator does and among the more expensive things to inherit: a fix has to be applied everywhere the block landed, and nothing in the repository records where that is. Tests, fixtures and documentation examples are excluded — those repeat by design — so this is duplication in code that ships. Blocks are matched after normalising whitespace and only across different files.

Evidence
identical 8-line block in 4 files: logfire-api/logfire_api/_internal/main.pyi, logfire-api/logfire_api/variables/abstract.pyi, logfire-sdk/logfire/_internal/main.py
identical 8-line block in 4 files: logfire-api/logfire_api/_internal/main.pyi, logfire-api/logfire_api/variables/abstract.pyi, logfire-sdk/logfire/_internal/main.py
identical 8-line block in 4 files: logfire-api/logfire_api/_internal/main.pyi, logfire-api/logfire_api/variables/abstract.pyi, logfire-sdk/logfire/_internal/main.py
identical 8-line block in 4 files: logfire-api/logfire_api/_internal/main.pyi, logfire-api/logfire_api/variables/abstract.pyi, logfire-sdk/logfire/_internal/main.py
identical 8-line block in 4 files: logfire-api/logfire_api/variables/abstract.pyi, logfire-api/logfire_api/variables/local.pyi, logfire-sdk/logfire/variables/abstract.py
01.42

1 model weight file committed directly to git

adequate

1 model weight files are stored in git itself, not in LFS, DVC or a model hub. Every clone carries them, the history keeps every version for good, and nothing records which run or data produced them.

Evidence
logfire-sdk/logfire_sdk.pth — weights in git

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

strong

No finding.

Security & Reliability Posture

strong
05.26

15 locked dependencies have published vulnerabilities, 19 high or critical

adequate

15 of 305 locked dependencies match 56 published advisories in OSV, 19 of them rated high or critical. A lockfile says which version is installed, not whether the flawed code is reachable from this product, so each needs a look. Most are fixed by an upgrade, and the advisory names the version. None of the high or critical ones is in what the product ships: they are development dependencies.

Evidence
uv.lock — authlib 1.8.0: GHSA-6v38-4h7w-rj9h (critical), fixed in 1.9.0; a development dependency
uv.lock — aiohttp 3.14.3: GHSA-2g87-pp6c-29x5 (high), fixed in 3.14.4; a development dependency
uv.lock — black 26.10.0: GHSA-cg8m-r9f2-5wm2 (high), fixed in 26.10.1; a development dependency

Observability & Operations

not assessable

Not rated: only 4 of 16 checks could reach a conclusion here; the rest do not apply to this repository or could not read it.

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on pydantic/logfire: every dimension, the questions for the room, and the audit log.

Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.