Read 2026-10-04
lichess-org/lila: technical due diligence, read from its repository
What Borehole read in lichess-org/lila's code and history at 7e4c1e1: 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 | adequate |
| Product & Engineering Maturity | adequate |
| Security & Reliability Posture | strong |
| Observability & Operations | strong |
| Fit with the Acquirer | not assessable |
What the repository says
- No release for 54 months while development continues
.github/pull_request_template.md:3: states a policy on AI-generated contributions
Architecture & Codebase — including AI provenance
strongui/@types/lichess/i18n.d.ts is 6,420 lines, 94× this codebase's median file
adequateThe median source file here is 68 lines. 8 files exceed 1,000 lines, the largest being 6,420. 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.
ui/@types/lichess/i18n.d.ts:1 — 6,420 lines (94× median) |
modules/coreI18n/src/main/key.scala:1 — 3,271 lines (48× median) |
modules/gathering/src/main/Quote.scala:1 — 1,661 lines (24× median) |
ui/dgt/src/play.ts:1 — 1,245 lines (18× median) |
ui/analyse/src/ctrl.ts:1 — 1,111 lines (16× median) |
Engineering Process & SDLC Maturity
adequateTests cover a thin slice of the codebase
adequate116 test files against 2,499 source files (4.6%). This does not measure whether the tests are good, only whether enough of them exist for the codebase to be changed safely by someone who did not write it — which is exactly the situation after an acquisition.
| 116 test files / 2,499 source files |
Tests are retried until they pass
adequateThe suite is configured to retry failing tests (playwright.config.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.
playwright.config.ts:7 — test retry |
Product & Engineering Maturity
adequate5% of bug fixes add or change a test
adequateOf 1622 fixes in the last 24 months, 76 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.
| 76 of 1622 |
No release for 54 months while development continues
adequateThe last tag, pre-paypal-checkout, was cut 1640 days before the survey; the typical gap between releases was 0 days, and 3040 commits landed in the last 90 days. Users run the last release, not this code.
| last tag pre-paypal-checkout |
Security & Reliability Posture
strong6 locked dependencies have published vulnerabilities, 4 high or critical
adequate6 of 390 locked dependencies match 23 published advisories in OSV, 4 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. None of the high or critical ones is in what the product ships: they are development dependencies.
pnpm-lock.yaml — braces 3.0.3: GHSA-vfj7-8cjw-p6xm (high); a development dependency |
pnpm-lock.yaml — js-yaml 4.2.0: GHSA-2883-xcg3-v3hh (high), fixed in 4.3.2; a development dependency |
pnpm-lock.yaml — dompurify 2.5.9: GHSA-39q2-94rc-95cp (moderate), fixed in 3.4.0 |
4 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.
public/javascripts/vendor/cash.min.js — 1 tracked files, no licence file |
public/vendor/ChessPursuit — 2 tracked files, no licence file |
ui/lib/css/vendor/_flatpickr.scss — 1 tracked files, no licence file |
ui/lib/css/vendor/_multiple-select.scss — 1 tracked files, no licence file |
16 advisories against this project in the last 24 months, 9 high or critical
adequateThe newest was published on 2026-09-08. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 16 of them are fixed in the code you ship could not be told from this history. Answer lives in: the release you run, set against each fixed version.
| 2026-09-08: GHSA-x958-pp85-74wf (high), fixed in 05c4e27e3e863700781f925ba1dd58a4f171696f: Account takeover: POST /login can sign magic link tokens for any account whose name starts with yours |
| 2026-09-08: GHSA-5m3p-75ww-px48 (high), fixed in e774f0a3f06f9e00f4ad3d36986fc9dd2b3c3282: Board-play OAuth token grants account-session access |
| 2026-09-06: GHSA-634p-pgjm-jr9x (low): Empty-scope OAuth tokens expose private user data |
| 2026-09-06: GHSA-3q97-v964-h747 (moderate): Unused sender email can take over pending registrations |
| 2026-09-06: GHSA-622v-64xr-xvm9 (moderate): Forged signup cookie allows takeover of pending registrations |
Observability & Operations
strongNo 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 |
The code branches on the environment's name at 26 places
adequate26 places outside configuration test whether they are running in production or staging. Staging then does not exercise production's code, and each deploy is the first run of those branches. Differences belong in configuration the code reads, not in the code.
app/UiEnv.scala:54 — branch on the environment name |
app/UiEnv.scala:54 — branch on the environment name |
app/controllers/Main.scala:65 — branch on the environment name |
Fit with the Acquirer
not assessableNot rated: structurally not assessable from a repository.
Read more, or read your own
The full report on lichess-org/lila: 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.