Borehole · Project · free tier
headroomlabs-ai/headroom
Free reading: not for reliance
e995eb9 · 3,324 commits · 2,662 files
Read 2026-10-23

headroomlabs-ai/headroom: technical due diligence, read from its repository

What Borehole read in headroomlabs-ai/headroom's code and history at e995eb9: 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 Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

adequate
01.6

headroom/proxy/handlers/openai.py is 11,767 lines, 55× this codebase's median file

adequate

The median source file here is 211 lines. 15 files exceed 2,110 lines, the largest being 11,767. 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
headroom/proxy/handlers/openai.py:1 — 11,767 lines (55× median)
headroom/cli/wrap.py:1 — 9,415 lines (44× median)
headroom/transforms/content_router.py:1 — 7,925 lines (37× median)
headroom/proxy/server.py:1 — 7,311 lines (34× median)
headroom/proxy/handlers/anthropic.py:1 — 6,406 lines (30× median)
01.25

1 base image floats: no version, or `latest`

adequate

1 of 7 `FROM` lines in product Dockerfiles name an image without a version, or with `latest`. Each build pulls whatever the registry serves that day, so the image that ships can change without a commit, and last month's build cannot be reproduced. Pin a version, or a digest.

Evidence
Dockerfile:64 — base image without a version

Engineering Process & SDLC Maturity

strong
02.16

Tests are retried until they pass

adequate

The suite is configured to retry failing tests (sdk/typescript/test/client.test.ts). A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.

Evidence
sdk/typescript/test/client.test.ts:226 — test retry

Product & Engineering Maturity

strong

No finding.

Security & Reliability Posture

adequate
05.1

31 credential-shaped strings in the tree sit in tests, examples, documentation or local development settings

adequate

Strings shaped like credentials appear only where fakes are usual: test fixtures, examples, documentation, placeholders and local stacks. They are almost always fakes. Ask someone to confirm that none of them works anywhere, because a real key in a development file is still a real key.

Evidence
5 cited: JWT, where fakes are usual
05.27

The build runs third-party code it does not pin

adequate

17 third-party CI actions are referenced by a tag or branch rather than a commit, so they run whatever that tag points to on the day; 2 steps pipe a download straight into a shell. Tags have been moved to malicious commits in real supply-chain attacks, and a piped script is whatever the server returns that minute. Pinning to a commit is the fix, and it is small.

Evidence
.github/workflows/ci.yml:52 — action pinned by tag
.github/workflows/ci.yml:140 — action pinned by tag
.github/workflows/ci.yml:639 — download piped into a shell
05.20

16 SQL statements built from strings

adequate

16 places in product code build SQL by formatting or joining strings rather than passing parameters, and in 12 of them a value, not a table or column name, goes into the string. Where any of those values comes from a request, it is an injection point. Each site needs a look; the fix, parameters, is small.

Evidence
headroom/cli/memory.py:107 — SQL built from a string
headroom/cli/memory.py:145 — SQL built from a string
headroom/cli/memory.py:152 — SQL built from a string
05.26

11 locked dependencies have published vulnerabilities, 5 high or critical in what ships

adequate

11 of 832 locked dependencies match 58 published advisories in OSV, 38 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. This lockfile pins development tools alongside what ships and does not say which is which, so some of these may never reach a user.

Evidence
uv.lock — certifi 2026.1.4: GHSA-6q48-6c7w-9gw2 (critical), fixed in 2026.10.19
uv.lock — pillow 12.3.0: GHSA-332p-7hrc-92wf (critical), fixed in 13.0.0; an optional extra
plugins/opencode/package-lock.json — toml 4.3.0: GHSA-4qx8-w7c3-pj3p (high), fixed in 5.0.1
05.65

1 advisory against this project in the last 24 months, 1 high or critical

adequate

The newest was published on 2026-08-27. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. None of them affects the surveyed version.

Evidence
2026-08-27: GHSA-h46j-26q3-rggf (high), fixed in 0.35.0: Headroom vulnerable to Cross-Site WebSocket Hijacking (CSWSH)

Observability & Operations

adequate
06.2

No structured logging library is in use

adequate

Nothing references a structured logging library. Logs that are written to be read by a person are not searchable by a machine, which means incident response here is proportional to how well someone remembers the codebase rather than to what the tooling can find.

Evidence
searched 2,549 files for 10 structured logging libraries; 0 matched
06.9

No error reporter is wired in

adequate

Nothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.

Evidence
no error reporter initialised

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on headroomlabs-ai/headroom: 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.