solid-lint: findings checked against labelled katas
How often are solid-lint's findings right, and how many planted violations does it find, with and without the LLM review?
Subject: @shivumat/solid-lint 0.2.5. Model: claude-haiku-5-5.
Result
Kata files where every rule is exactly right (static rules): 92.2% of 64
The 95% interval is 83.0%–96.6%. That meets the bar of 90.0%, but the interval crosses it: this sample can't rule out the other side.
All measures
| Measure | Value | 95% interval | Cases |
|---|---|---|---|
| srp: pass rate | 93.8% | 85.0%–97.5% | 64 |
| ocp: pass rate | 100.0% | 94.3%–100.0% | 64 |
| isp: pass rate | 98.4% | 91.7%–99.7% | 64 |
| dip: pass rate | 98.4% | 91.7%–99.7% | 64 |
| layers: pass rate | 100.0% | 94.3%–100.0% | 64 |
| Precision, static rules + LLM review | 96.7% | — | 61 |
| Recall, static rules + LLM review | 98.3% | — | 60 |
| Precision, static rules alone | 93.5% | — | 62 |
| Recall, static rules alone | 96.7% | — | 60 |
| Static findings the LLM dropped | 3 | — | — |
| Findings the LLM added | 2 | — | — |
| LLM claims without a quoted line | 0 | — | — |
Precision and recall per rule
Against 60 labelled violations in six katas
| Row | Precision, static | Recall, static | Precision, + LLM | Recall, + LLM |
|---|---|---|---|---|
| solid/srp | 78.6% | 91.7% | 84.6% | 91.7% |
| solid/ocp | 100.0% | 100.0% | 100.0% | 100.0% |
| solid/isp | 100.0% | 85.7% | 100.0% | 100.0% |
| solid/dip | 92.3% | 100.0% | 100.0% | 100.0% |
| solid/layers | 100.0% | 100.0% | 100.0% | 100.0% |
| All rules | 93.5% | 96.7% | 96.7% | 98.3% |
Cost and speed
| Model spend for this run | none: no model calls in this run |
|---|---|
| Median time per case | 0.005 ms |
| 95th percentile per case | 0.038 ms |
Where it goes wrong
lru-cache/clean/domain/lru-cache.ts
wrong findings: 1 false positive
Show output
[ { "id": "solid/srp:lru-cache/clean/domain/lru-cache.ts:LruCache.set", "ruleId": "solid/srp", "severity": "info", "message": "LruCache.set coordinates 4 members across 13 statements; extract the separate steps.", "file": "lru-cache/clean/domain/lru-cache.ts", "line": 29, "endLine": 46, "confidence": 0.5, "evidence": "Uses capacity, index, onEvict, order." }, { "id": "solid/dip:lru-cache/clean/domain/lru-cache.ts:LruCache.order", "ruleId": "solid/dip", "severity": "warn", "message": "LruCache constructs its own RecencyList; take it as a constructor parameter typed by an interface.", "file": "lru-cache/clean/domain/lru-cache.ts", "line": 7, "endLine": 7, "confidence": 0.6, "evidence": "LruCache.order = new RecencyList() from lru-cache/clean/domain/linked-list.ts." } ]rate-limiter/violating/domain/limiter.ts
wrong findings: 1 missed
Show output
[{"id":"solid/srp:rate-limiter/violating/domain/limiter.ts:RateLimiter.tryAcquire","ruleId":"solid/srp","severity":"info","message":"RateLimiter.tryAcquire coordinates 6 members across 15 statements; extract the separate steps.","file":"rate-limiter/violating/domain/limiter.ts","line":27,"endLine":50,"confidence":0.5,"evidence":"Uses algorithm, clock, limit, metrics, perMs, store."},{"id":"solid/srp:rate-limiter/violating/domain/limiter.ts:RateLimiter.configure","ruleId":"solid/srp","severity":"info","message":"RateLimiter.configure coordinates 5 members across 12 statements; extract the separate steps.","file":"rate-limiter/violating/domain/limiter.ts","line":91,"endLine":104,"confidence":0.5,"evidence":"Uses algorithm, limit, metrics, perMs, resetAll."},{"id":"solid/ocp:rate-limiter/violating/domain/limiter.ts:switch:sliding-window|token-bucket@RateLimiter.tryAcquire","ruleId":"solid/ocp","severity":"warn","message":"This switch on sliding-window / token-bucket is one of 3 in this f…splitwise/violating/domain/splitwise-service.ts
wrong findings: 1 missed
Show output
[{"id":"solid/srp:splitwise/violating/domain/splitwise-service.ts:SplitwiseService","ruleId":"solid/srp","severity":"warn","message":"SplitwiseService looks like it has more than one job. Split it along the groups below.","file":"splitwise/violating/domain/splitwise-service.ts","line":13,"endLine":127,"confidence":0.6,"evidence":"8 methods (more than 7)"},{"id":"solid/ocp:splitwise/violating/domain/splitwise-service.ts:switch:equal|exact|percent@SplitwiseService.validate","ruleId":"solid/ocp","severity":"warn","message":"This switch on equal / exact / percent is one of 3 in this file; a new kind means editing all of them. Dispatch through a map or polymorphism instead.","file":"splitwise/violating/domain/splitwise-service.ts","line":18,"endLine":38,"confidence":0.8,"evidence":"Switches on the same tag: SplitwiseService.validate, SplitwiseService.computeShares, SplitwiseService.describe."},{"id":"solid/ocp:splitwise/violating/domain/splitwise-service.ts:switch:equal|exact|percent@Split…elevator/violating/domain/controller.ts
wrong findings: 1 false positive
Show output
[{"id":"solid/srp:elevator/violating/domain/controller.ts:ElevatorController","ruleId":"solid/srp","severity":"warn","message":"ElevatorController looks like it has more than one job. Split it along the groups below.","file":"elevator/violating/domain/controller.ts","line":20,"endLine":130,"confidence":0.6,"evidence":"8 methods (more than 7)"},{"id":"solid/srp:elevator/violating/domain/controller.ts:ElevatorController.request","ruleId":"solid/srp","severity":"info","message":"ElevatorController.request coordinates 4 members across 20 statements; extract the separate steps.","file":"elevator/violating/domain/controller.ts","line":55,"endLine":85,"confidence":0.5,"evidence":"Uses cars, describe, floors, maintenance."},{"id":"solid/srp:elevator/violating/domain/controller.ts:ElevatorController.step","ruleId":"solid/srp","severity":"info","message":"ElevatorController.step coordinates 4 members across 20 statements; extract the separate steps.","file":"elevator/violating/domain/controller…parking-lot/violating/domain/garage.ts
wrong findings: 1 false positive
Show output
[{"id":"solid/srp:parking-lot/violating/domain/garage.ts:ParkingGarage","ruleId":"solid/srp","severity":"warn","message":"ParkingGarage looks like it has more than one job. Split it along the groups below.","file":"parking-lot/violating/domain/garage.ts","line":14,"endLine":115,"confidence":0.6,"evidence":"8 methods (more than 7)"},{"id":"solid/srp:parking-lot/violating/domain/garage.ts:ParkingGarage.park","ruleId":"solid/srp","severity":"info","message":"ParkingGarage.park coordinates 6 members across 10 statements; extract the separate steps.","file":"parking-lot/violating/domain/garage.ts","line":50,"endLine":68,"confidence":0.5,"evidence":"Uses fits, free, next, now, spots, store."},{"id":"solid/srp:parking-lot/violating/domain/garage.ts:ParkingGarage.leave","ruleId":"solid/srp","severity":"info","message":"ParkingGarage.leave coordinates 6 members across 12 statements; extract the separate steps.","file":"parking-lot/violating/domain/garage.ts","line":70,"endLine":82,"confidence"…
Where it goes right
elevator/clean/domain/car.ts
exactly right
Show output
[]
elevator/clean/domain/scheduler.ts
exactly right
Show output
[]
elevator/clean/domain/system.ts
exactly right
Show output
[]
Method
- Six LLD katas (parking lot, LRU cache, rate limiter, Splitwise, elevator, pub/sub), each with a violating version holding labelled violations and a clean version, where any finding is a false positive.
- The headline runs the static rules over all 64 kata files through eval-kit; a file passes when every rule's findings there match its labels exactly.
- Precision and recall come from one live run of the LLM review (claude-haiku-5-5, 64 files), replayed from cache in CI. Every LLM claim must quote a line of the file; uncited claims are dropped.
- A finding counts as a true positive when its rule and line range match a labelled violation.
Limits
- The same person wrote the rules, the labels and the prompt, so these are regression baselines, not proof the rules generalise.
- The six katas were written by hand for this purpose.
Receipts
- Run of "solid-lint-katas" on 2026-11-26T08:54:01.230Z with eval-kit 0.3.0
- Dataset "katas", 64 examples, sha256 6ab0fee48bed
- Labels: katas/ground-truth.jsonl
- LLM numbers: eval/llm-score.json
Report generated 2026-11-26.