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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | adequate |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
adequateheadroom/proxy/handlers/openai.py is 11,767 lines, 55× this codebase's median file
adequateThe 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.
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) |
1 base image floats: no version, or `latest`
adequate1 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.
Dockerfile:64 — base image without a version |
Engineering Process & SDLC Maturity
strongTests are retried until they pass
adequateThe 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.
sdk/typescript/test/client.test.ts:226 — test retry |
Product & Engineering Maturity
strongNo finding.
Security & Reliability Posture
adequate31 credential-shaped strings in the tree sit in tests, examples, documentation or local development settings
adequateStrings 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.
| 5 cited: JWT, where fakes are usual |
The build runs third-party code it does not pin
adequate17 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.
.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 |
16 SQL statements built from strings
adequate16 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.
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 |
11 locked dependencies have published vulnerabilities, 5 high or critical in what ships
adequate11 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.
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 |
1 advisory against this project in the last 24 months, 1 high or critical
adequateThe 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.
| 2026-08-27: GHSA-h46j-26q3-rggf (high), fixed in 0.35.0: Headroom vulnerable to Cross-Site WebSocket Hijacking (CSWSH) |
Observability & Operations
adequateNo structured logging library is in use
adequateNothing 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.
| searched 2,549 files for 10 structured logging libraries; 0 matched |
No error reporter is wired in
adequateNothing 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.
| no error reporter initialised |
Fit with the Acquirer
not assessableNot 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.