Borehole · Project · free tier
cayleygraph/cayley
Free reading: not for reliance
81dcd7d · 1,776 commits · 395 files
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.

DimensionRating
Architecture & Codebase — including AI provenancestrong
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsstrong
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed

Architecture & Codebase — including AI provenance

strong
01.6

query/shape/shape.go is 1,477 lines, 15× this codebase's median file

adequate

The 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.

Evidence
query/shape/shape.go:1 — 1,477 lines (15× median)
graph/kv/indexing.go:1 — 1,251 lines (13× median)

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

adequate
04.2

233 unresolved debt markers, 4.4 per thousand lines

adequate

The 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.

Evidence
.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?
04.5

Effort is shifting from building to rewriting

adequate

Deleted 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.

Evidence
first half 0.47, second half 0.99 (split 2019-06-29)
04.17

Go 1.22 is past end of life

adequate

The 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.

Evidence
Dockerfile — Go 1.22, end of life 2025-02-11
04.62

Releases are cut from another branch than the one surveyed

adequate

The 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.

Evidence
tag v0.7.7

Security & Reliability Posture

adequate
05.6

1 Dockerfile runs the application as root

adequate

No 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.

Evidence
Dockerfile — runs as root
05.13

6 outbound calls can wait forever

adequate

6 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.

Evidence
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
05.20

1 SQL statement built from strings

adequate

1 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.

Evidence
graph/sql/quadstore.go:749 — SQL built from a string
05.26

4 locked dependencies have published vulnerabilities, 3 high or critical

adequate

4 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.

Evidence
go.mod — github.com/containerd/containerd v1.7.19: GHSA-pwhc-rpq9-4c8w (high), fixed in 1.7.29
go.mod — github.com/opencontainers/runc v1.1.13: GHSA-cgrx-mc8f-2prm (high), fixed in 1.2.8
go.mod — github.com/golang/glog v1.2.1: GHSA-6wxm-mpqj-6jpf (moderate), fixed in 1.2.4

Observability & Operations

strong
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 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.