Borehole · Project · free tier
koharu-rs/koharu
Free reading: not for reliance
c7d46f2 · 2,436 commits · 785 files
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.

DimensionRating
Architecture & Codebase — including AI provenancestrong
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsnot assessable
Fit with the Acquirernot 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

strong
01.6

crates/koharu-torch/src/wrappers/tensor_generated.rs is 20,327 lines, 144× this codebase's median file

adequate

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

Evidence
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

strong

No finding.

Product & Engineering Maturity

adequate
04.19

10% of bug fixes add or change a test

adequate

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

Evidence
56 of 557

Security & Reliability Posture

adequate
05.3

65 dependencies float, and no lockfile is committed

adequate

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

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

The build runs third-party code it does not pin

adequate

7 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/build.yml:38 — action pinned by tag
.github/workflows/build.yml:39 — action pinned by tag
05.26

18 locked dependencies have published vulnerabilities, 2 high or critical

adequate

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

Evidence
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)
05.60

Relicensed: Apache-2.0 → GPL-3.0 (2025-04-12)

adequate

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

Evidence
LICENSE — Apache-2.0 from 2025-04-09
LICENSE — GPL-3.0 from 2025-04-12

Observability & Operations

not assessable

Not 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 assessable

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