Read 2026-10-23
codewhale-hq/codewhale: technical due diligence, read from its repository
What Borehole read in codewhale-hq/codewhale's code and history at ec45097: 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 | adequate |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
strongcrates/tui/src/runtime_api/tests.rs is 26,101 lines, 105× this codebase's median file
adequateThe median source file here is 248 lines. 105 files exceed 2,480 lines, the largest being 26,101. 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.
crates/tui/src/runtime_api/tests.rs:1 — 26,101 lines (105× median) |
crates/tui/src/runtime_threads/tests.rs:1 — 24,344 lines (98× median) |
crates/tui/src/runtime_threads.rs:1 — 21,152 lines (85× median) |
crates/tui/src/lib.rs:1 — 20,597 lines (83× median) |
crates/tui/src/config/tests.rs:1 — 17,318 lines (69× median) |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
adequate9% of bug fixes add or change a test
adequateOf 3294 fixes in the last 24 months, 289 touched a test. A fix without the test that would have caught the bug can quietly come back, and the suite never learns from what went wrong.
| 289 of 3294 |
Security & Reliability Posture
adequate3 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. 1 other match set aside: expired tokens, licence tokens a vendor verifies with a public key, or placeholder text where a key would go. None grants access to anything.
| 2 cited: Slack token, where fakes are usual |
| JWT, where fakes are usual |
The build runs third-party code it does not pin
adequate6 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; 1 step pipes 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/cargo-deny.yml:36 — action pinned by tag |
.github/workflows/ci.yml:206 — action pinned by tag |
web/public/install.sh:14 — download piped into a shell |
4 locked dependencies have published vulnerabilities
adequate4 of 816 locked dependencies match 4 published advisories in OSV. 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.
Cargo.lock — bincode 1.3.3: RUSTSEC-2025-0141 (unrated) |
Cargo.lock — zbus_names 3.0.0: RUSTSEC-2026-0371 (unrated) |
Cargo.lock — zvariant 4.2.0: RUSTSEC-2026-0370 (unrated) |
9 places insert HTML from a variable without sanitising it
adequate9 places set HTML from a value that is neither a literal nor passed through a sanitiser. Where the value can come from a user, that is stored cross-site scripting, and it is the first thing a buyer's security review looks for in a frontend.
extensions/vscode/src/chat.ts:1327 — HTML from a variable |
web/app/[locale]/faq/page.tsx:746 — HTML from a variable |
web/app/[locale]/install/page.tsx:53 — HTML from a variable |
3 vendored components with no licence
adequateThird-party code is committed into this repository without any statement of the terms it arrived under. Unknown terms are harder to deal with than inconvenient ones: an awkward licence can be complied with, an absent one cannot. Each of these needs its origin established before the code changes hands.
vendor/codewhale-design — 5 tracked files, no licence file |
web/vendor/legal-documents — 4 tracked files, no licence file |
web/vendor/whale-character-v2 — 6 tracked files, no licence file |
13 advisories against this project in the last 24 months, 12 high or critical
adequateThe newest was published on 2026-07-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. None of them affects the surveyed version. The record is incomplete: NVD: 13 records name Codewhale with nothing tying them to this repository (CVE-2026-45310, CVE-2026-45311, CVE-2026-45373, …).
| 2026-07-16: GHSA-6v2g-fpxh-pmmh (high), fixed in 0.8.41: SSRF bypass - TOCTOU on DNS failure for DNS pinning |
| 2026-07-16: GHSA-g29h-pfmp-qp9r (high), fixed in 0.8.41: exec_shell_interact sends LLM-controlled input to a running shell without an approval prompt (privilege escalation) |
| 2026-07-16: GHSA-wrj3-vj8c-784f (high), fixed in 0.8.41: rlm_eval auto-approves arbitrary Python execution, bypassing the user's approval policy (RCE) |
| 2026-07-16: GHSA-62f5-cp2p-vq95 (high), fixed in 0.8.41: Project config `instructions` override enables arbitrary file read into AI system prompt via cloned repository |
| 2026-07-16: GHSA-gx45-xrj5-g6c4 (high), fixed in 0.8.41: (CVE-2026-75911) Project config `allow_shell` override enables arbitrary shell command execution via cloned repository |
Observability & Operations
adequateNo 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 |
Sends usage data to telemetry.codewhale.net by default
adequateconfig.example.toml sends to telemetry.codewhale.net, and config.example.toml leaves reporting on as shipped. Every installation reports to the vendor unless its operator turns this off. For a buyer running it inside their own product, that is an outbound data flow to a third party: ask what is sent, how often, and whether the buyer's customers were told.
config.example.toml:364 — reports to telemetry.codewhale.net |
config.example.toml:340 — the reporting setting is on by default |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on codewhale-hq/codewhale: 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.