Borehole · Project · free tier
leon-ai/leon
Free reading: not for reliance
d91f676 · 3,416 commits · 2,374 files
Read 2026-11-03

leon-ai/leon: technical due diligence, read from its repository

What Borehole read in leon-ai/leon's code and history at d91f676: 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

server/src/core/llm-manager/llm-duties/react-llm-duty/agent-loop.ts is 2,713 lines, 38× this codebase's median file

adequate

The median source file here is 70 lines. 21 files exceed 1,000 lines, the largest being 2,713. 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.

01.42

3 model weight files committed directly to git

adequate

3 model weight files are stored in git itself, not in LFS, DVC or a model hub. Every clone carries them, the history keeps every version for good, and nothing records which run or data produced them.

Engineering Process & SDLC Maturity

adequate
02.1

Little of the recent change carries a trace of review

adequate

In the last 24 months, 150 of 1,641 commits (9.1%) carry any trace of review: a merge, a pull-request reference, a Reviewed-by or Reviewed-on trailer, a Closes/Fixes reference, a maintainer's sign-off on someone else's change, or a change applied by someone other than its author. That is low but not absent. Review may happen in a workflow this history does not record; a buyer should ask how change is approved before it ships.

Evidence
150 of 1,641 commits in the last 24 months carry review evidence; 11.7% across all 3,416
02.16

Tests are retried until they pass

adequate

The suite is configured to retry failing tests (test/core/integration/network-helper.spec.ts). A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.

Product & Engineering Maturity

strong

No finding.

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 2,374 tracked files; 0 present
05.21

2 shell commands built from strings

adequate

2 places run a command through a shell (`shell=True`, `os.system`, `exec` with a template) rather than passing arguments. Where any part comes from outside, it is command injection. Ask where each one's input comes from.

Evidence
bridges/nodejs/src/sdk/base-tool.ts:540 — command run through a shell
bridges/python/src/sdk/base_tool.py:459 — command run through a shell
05.22

1 deserialiser that can run code

adequate

1 places read data with a deserialiser that executes what it reads (pickle). That is safe on data the system wrote itself and remote code execution on anything else. Ask where each one's input comes from.

Evidence
tcp_server/src/lib/tts/text/english.py:160 — code-executing deserialiser
05.26

26 locked dependencies have published vulnerabilities, 28 high or critical in what ships

adequate

26 of 940 locked dependencies match 83 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.

Evidence
pnpm-lock.yaml — @simple-git/argv-parser 1.1.1: GHSA-v5rq-49vh-5v5c (critical), fixed in 2.0.1; a development dependency
pnpm-lock.yaml — simple-git 3.36.0: GHSA-x6jw-m9v5-85vh (critical), fixed in 4.0.1; a development dependency
pnpm-lock.yaml — tar 7.5.9: GHSA-23hp-3jrh-7fpw (critical), fixed in 7.5.19; a development dependency
05.48

8 places insert HTML from a variable without sanitising it

adequate

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

Evidence
apps/web-legacy/src/js/chatbot.js:589 — HTML from a variable
apps/web-legacy/src/js/chatbot.js:1036 — HTML from a variable
apps/web-legacy/src/js/chatbot.js:1051 — HTML from a variable
05.49

The production build publishes source maps

adequate

The build configuration emits source maps for production, so the original source, with its comments and structure, is downloadable by every visitor. Upload them to an error tracker and keep them off the public server instead.

Evidence
apps/web/vite.config.ts:80 — source maps in a production build

Observability & Operations

adequate
06.35

Sends usage data to telemetry.getleon.ai by default

adequate

server/src/telemetry.ts sends to telemetry.getleon.ai, and config.sample.yml 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.

Evidence
server/src/telemetry.ts:43 — reports to telemetry.getleon.ai
config.sample.yml:149 — the reporting setting is on by default

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on leon-ai/leon: 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.