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.
| Dimension | Rating |
|---|---|
| Architecture & Codebase — including AI provenance | adequate |
| Engineering Process & SDLC Maturity | adequate |
| Product & Engineering Maturity | strong |
| Security & Reliability Posture | adequate |
| Observability & Operations | adequate |
| Fit with the Acquirer | not assessable |
Architecture & Codebase — including AI provenance
adequateserver/src/core/llm-manager/llm-duties/react-llm-duty/agent-loop.ts is 2,713 lines, 38× this codebase's median file
adequateThe 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.
server/src/core/llm-manager/llm-duties/react-llm-duty/agent-loop.ts:1 — 2,713 lines (38× median) |
server/src/core/llm-manager/llm-duties/react-llm-duty.ts:1 — 2,456 lines (35× median) |
server/src/core/llm-manager/llm-providers/ai-sdk-remote-llm-provider.ts:1 — 2,286 lines (32× median) |
server/src/core/memory-manager/memory-manager.ts:1 — 2,207 lines (31× median) |
skills/native/speed_test_skill/src/lib/speedtest.py:1 — 2,090 lines (29× median) |
3 model weight files committed directly to git
adequate3 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.
core/data/models/audio/wake_word/Hey_Leon.onnx — weights in git |
core/data/models/audio/wake_word/embedding.onnx — weights in git |
core/data/models/audio/wake_word/melspectrogram.onnx — weights in git |
Engineering Process & SDLC Maturity
adequateLittle of the recent change carries a trace of review
adequateIn 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.
| 150 of 1,641 commits in the last 24 months carry review evidence; 11.7% across all 3,416 |
Tests are retried until they pass
adequateThe 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.
test/core/integration/network-helper.spec.ts:94 — test retry |
Product & Engineering Maturity
strongNo finding.
Security & Reliability Posture
adequateNone of the standard security guard rails are configured
adequateThere 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.
| checked 5 kinds of guard rail across 2,374 tracked files; 0 present |
2 shell commands built from strings
adequate2 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.
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 |
1 deserialiser that can run code
adequate1 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.
tcp_server/src/lib/tts/text/english.py:160 — code-executing deserialiser |
26 locked dependencies have published vulnerabilities, 28 high or critical in what ships
adequate26 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.
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 |
8 places insert HTML from a variable without sanitising it
adequate8 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.
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 |
The production build publishes source maps
adequateThe 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.
apps/web/vite.config.ts:80 — source maps in a production build |
Observability & Operations
adequateSends usage data to telemetry.getleon.ai by default
adequateserver/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.
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 assessableNot 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.