Read 2026-11-03
koharu-rs/koharu: technical due diligence, read from its repository
What Borehole read in koharu-rs/koharu's code and history at c7d46f2: 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 | not assessable |
| Fit with the Acquirer | not assessable |
What the repository says
LICENSE: Relicensed: Apache-2.0 → GPL-3.0 (2025-04-12)CONTRIBUTING.md:18: states a policy on AI-generated contributions
Architecture & Codebase — including AI provenance
strongcrates/koharu-torch/src/wrappers/tensor_generated.rs is 20,327 lines, 144× this codebase's median file
adequateThe median source file here is 141 lines. 12 files exceed 1,410 lines, the largest being 20,327. 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/koharu-torch/src/wrappers/tensor_generated.rs:1 — 20,327 lines (144× median) |
crates/koharu-renderer/src/layout.rs:1 — 3,544 lines (25× median) |
crates/koharu-llama-sys/include/ggml.h:1 — 3,029 lines (21× median) |
crates/koharu-pipeline/src/stages/detection.rs:1 — 2,718 lines (19× median) |
crates/koharu-torch-sys/libtch/torch_api_generated.h:1 — 2,684 lines (19× median) |
Engineering Process & SDLC Maturity
strongNo finding.
Product & Engineering Maturity
adequate10% of bug fixes add or change a test
adequateOf 557 fixes in the last 24 months, 56 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.
| 56 of 557 |
Security & Reliability Posture
adequate65 dependencies float, and no lockfile is committed
adequateDependency versions are declared as ranges and no lockfile is committed, so a build today does not necessarily produce what a build last month produced. That matters twice over in a transaction: the thing being bought cannot be reproduced exactly, and a compromised upstream release arrives without anyone choosing to take it.
package.json:21 — ^1.4.4 |
package.json:22 — ^26.6.6 |
package.json:24 — ^2.14.2 |
package.json:25 — ^2.0.1 |
package.json:26 — ^0.75.0 |
The build runs third-party code it does not pin
adequate7 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.
.github/workflows/build.yml:38 — action pinned by tag |
.github/workflows/build.yml:39 — action pinned by tag |
18 locked dependencies have published vulnerabilities, 2 high or critical
adequate18 of 1,088 locked dependencies match 45 published advisories in OSV, 2 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.
Cargo.lock — zip 4.6.1: GHSA-m665-v7pm-7grj (critical), fixed in 9.0.5 |
Cargo.lock — rand 0.7.3: GHSA-cq8v-f236-94qc (low), fixed in 0.9.3 |
Cargo.lock — atomic-polyfill 1.0.3: RUSTSEC-2023-0089 (unrated) |
Relicensed: Apache-2.0 → GPL-3.0 (2025-04-12)
adequateThe root licence changed 1 time(s). The latest terms restrict what users, hosts or a buyer may do in ways the earlier ones did not. Code taken under the old terms stays under them, so both matter in diligence.
Observability & Operations
not assessableNot rated: only 4 of 16 checks could reach a conclusion here; the rest do not apply to this repository or could not read it.
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on koharu-rs/koharu: 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.