Read 2026-10-28
cayleygraph/cayley: technical due diligence, read from its repository
What Borehole read in cayleygraph/cayley's code and history at 81dcd7d: 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 | strong |
| Engineering Process & SDLC Maturity | strong |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | adequate |
| Observability & Operations | strong |
| Fit with the Acquirer | not assessable |
What the repository says
- Releases are cut from another branch than the one surveyed
Architecture & Codebase — including AI provenance
strongquery/shape/shape.go is 1,477 lines, 15× this codebase's median file
adequateThe median source file here is 93 lines. 2 files exceed 1,000 lines, the largest being 1,477. 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.
query/shape/shape.go:1 — 1,477 lines (15× median) |
graph/kv/indexing.go:1 — 1,251 lines (13× median) |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
adequate233 unresolved debt markers, 4.4 per thousand lines
adequateThe codebase carries 233 TODO, FIXME, HACK or XXX markers across 52,679 lines. These are the team's own notes about work they knew was unfinished. A high density is not automatically bad — it can mean an honest team — but every one of them is a decision deferred, and after an acquisition they are deferred onto someone who was not in the room.
.goreleaser.yml:51 — publish: false # TODO(dennwc): enable build when the package is reviewed |
cmd/cayley/command/convert.go:107 — // TODO: print additional stats |
cmd/cayley/command/database.go:42 — // TODO: allow to load multiple files |
cmd/cayley/command/database.go:76 — // TODO: maybe check read-only flag in config before that? |
cmd/cayley/command/database.go:120 — // TODO: check read-only flag in config before that? |
Effort is shifting from building to rewriting
adequateDeleted lines per line added rose from 0.47 to 0.99 between the first and second halves of this history. Rework is normal and often healthy, but a rising ratio means an increasing share of the team's time is spent replacing code that already exists rather than building what does not. Whether that is deliberate repayment or churn is a question for the team.
| first half 0.47, second half 0.99 (split 2019-06-29) |
Go 1.22 is past end of life
adequateThe code is pinned to Go 1.22 (end of life 2025-02-11). None of these receives security fixes any more; the first stopped on 2025-02-11. Moving off an unsupported runtime is rarely a one-line change, so a buyer should ask whether the upgrade is planned and what it touches.
Dockerfile — Go 1.22, end of life 2025-02-11 |
Releases are cut from another branch than the one surveyed
adequateThe newest release, v0.7.7, is not on the branch this survey read; the newest release on it is v0.7.6. The shipped product may differ from what this report describes. Survey the release branch too.
| tag v0.7.7 |
Security & Reliability Posture
adequate1 Dockerfile runs the application as root
adequateNo USER instruction switches away from root, so the process runs with full privileges inside the container. It is a one-line fix and an ordinary expectation, which is why its absence is worth asking about: it usually says more about whether anyone has reviewed the deployment than about this container specifically.
Dockerfile — runs as root |
6 outbound calls can wait forever
adequate6 HTTP calls use a client with no timeout (Python `requests` without `timeout=`, or Go's default client). When a dependency slows down, each one holds a worker until the connection gives up, and enough of them take the service down with the dependency.
client/client.go:49 — outbound call without a timeout |
cmd/cayley/command/health.go:27 — outbound call without a timeout |
cmd/cayleyexport/cayleyexport.go:63 — outbound call without a timeout |
1 SQL statement built from strings
adequate1 places in product code build SQL by formatting or joining strings rather than passing parameters. In each, what the code shows going in is a table or column name, a constant, or something the line does not show, not a request's value. Ask whether any value reaches these strings, rather than a parameter.
graph/sql/quadstore.go:749 — SQL built from a string |
4 locked dependencies have published vulnerabilities, 3 high or critical
adequate4 of 128 locked dependencies match 19 published advisories in OSV, 3 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.
Observability & Operations
strongNo 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 cayleygraph/cayley: 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.