Borehole · Project · free tier
coaidev/coai
Free reading: not for reliance
3048a49 · 916 commits · 591 files
Read 2026-10-28

coaidev/coai: technical due diligence, read from its repository

What Borehole read in coaidev/coai's code and history at 3048a49: 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 Maturityadequate
Product & Engineering Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

Architecture & Codebase — including AI provenance

adequate
01.6

app/src/routes/admin/Market.tsx is 1,210 lines, 15× this codebase's median file

adequate

The median source file here is 77 lines. 2 files exceed 1,000 lines, the largest being 1,210. 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
app/src/routes/admin/Market.tsx:1 — 1,210 lines (15× median)
app/src/routes/admin/System.tsx:1 — 1,132 lines (14× median)
01.25

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

adequate

1 of 3 `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:39 — base image without a version

Engineering Process & SDLC Maturity

adequate
02.3

Tests are absent or token

adequate

0 test files against 443 source files (0.0%). This does not measure whether the tests are good, only whether enough of them exist for the codebase to be changed safely by someone who did not write it — which is exactly the situation after an acquisition.

Evidence
0 test files / 443 source files
02.6

Almost no process scaffolding exists in the repository

adequate

Of five ordinary markers — CI workflows, CODEOWNERS, a pull-request template, pre-commit hooks, contribution guidance — 1 is present: CI workflows. Branch protection itself is a GitHub setting rather than a file, so this is a reading of proxies and not of the rules themselves. What it does establish is that the process is not written down anywhere a new engineer would find it.

Evidence
1 of 5 markers present across 591 tracked files

Product & Engineering Maturity

strong
04.17

2 pinned runtimes are past end of life

adequate

The code is pinned to Go 1.20 (end of life 2024-02-06); Node.js 18 (end of life 2025-04-30). None of these receives security fixes any more; the first stopped on 2024-02-06. 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.20, end of life 2024-02-06
Dockerfile — Node.js 18, end of life 2025-04-30

Security & Reliability Posture

adequate
05.2

None of the standard security guard rails are configured

adequate

There is no disclosure policy, no automated dependency updates, no named code owners and no pre-commit configuration. None of these is load-bearing on its own. Their collective absence says that security posture here is whatever the current team happens to remember to do, which is not a posture that survives the team changing.

Evidence
checked 5 kinds of guard rail across 591 tracked files; 0 present
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.25

1 environment file is committed

adequate

app/.env.deeptrain is tracked in git. Environment files are where credentials usually live, and committing one usually means nobody decided how secrets reach the running application. Whatever is in it is in the history for good. Check 05.1 says whether it holds anything credential-shaped.

Evidence
app/.env.deeptrain — committed environment file
05.27

The build runs third-party code it does not pin

adequate

8 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. 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/app.yaml:66 — action pinned by tag
.github/workflows/app.yaml:69 — action pinned by tag
05.13

3 outbound calls can wait forever

adequate

3 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
utils/image.go:45 — outbound call without a timeout
utils/image.go:91 — outbound call without a timeout
utils/image.go:200 — outbound call without a timeout
05.26

47 locked dependencies have published vulnerabilities, 22 high or critical in what ships

adequate

47 of 1,706 locked dependencies match 145 published advisories in OSV, 48 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
app/pnpm-lock.yaml — next 14.2.15: GHSA-2464-fhr4-w9xw (critical), fixed in 15.5.28
go.mod — golang.org/x/crypto v0.13.0: GHSA-5cgq-3rg8-m6cv (critical), fixed in 0.52.0
go.mod — golang.org/x/net v0.15.0: GHSA-4374-p667-p6c8 (high), fixed in 0.17.0
05.65

1 advisory against this project in the last 24 months

adequate

The newest was published on 2026-10-16. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 1 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 4.0.0. Answer lives in: the release you run, set against each fixed version.

Evidence
2026-10-16: CVE-2026-111618 (moderate): CoAI (Chat Nio) through 4.0.0 contains an unauthenticated path traversal vulnerability in the generation and article archive download endpoints via the hash que

Observability & Operations

adequate
06.1

No telemetry or error reporting is wired in anywhere

adequate

None of 485 readable files references an instrumentation, metrics or error-reporting library. If this system is in production, nobody learns that it broke from the system itself — they learn it from a customer. That is a reliability finding before it is an observability one.

Evidence
searched 485 tracked text files for 16 known instrumentation libraries; manifests for metrics, tracing and error-reporting families; locked dependencies for the packages that emit; 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
06.18

4 of 7 deployed images carry no version, or `latest`

adequate

4 images in the deployment configuration are named without a version or as `latest`. A redeploy can change the software without a commit, a rollback has nothing to roll back to, and nobody can say from the repository what is running.

Evidence
docker-compose.yaml:4 — image without a version
docker-compose.yaml:21 — image without a version
docker-compose.yaml:32 — image without a version

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on coaidev/coai: 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.