martinsumner/leveled
70.8
Strong · 13 November 2026
31.5k
lines of production code
Erlang
primary language
8
measurements over time
What this system is
Leveled is an Erlang-based LSM-tree key-value store designed to serve as a backend for systems like Riak, optimized for handling large values and frequent iteration. It provides core storage capabilities including journal persistence, ledger management, and constant database storage, with support for data compression and dynamic query filtering. The system includes configuration schemas for multi-backend integration and is validated through comprehensive end-to-end and property-based tests covering CRUD operations, compaction, and data recovery.
Features
Add leveled.hrl with configurable defaults and shared records
The include/leveled.hrl file has been added, establishing the shared records and configurable startup defaults for the leveled storage system. This includes definitions for file paths (journal, ledger), cache sizing limits, compression settings (defaulting to lz4), snapshot timeouts, and various object tags (standard, index, head-only, tombstone). It also introduces shared records such as 'level' and 'cdb\_options' used across the system components.
include · high confidence
Initial project setup with build configuration and documentation
The repository is initialized with a new .gitignore file to exclude build artifacts and test data, and a rebar.config file that defines the project structure, dependencies (lz4, zstd, eqwalizer\_support), and build profiles. The README.md is updated to provide a comprehensive introduction to Leveled as an Erlang Key-Value Store, detailing its features such as HEAD request support, object tagging, and compatibility with various OTP versions.
(repo-wide) · high confidence
Initial release of Leveled LSM-tree key-value store
Introduces the core Leveled storage engine, an LSM-tree based key-value store designed for large values and frequent iterator usage, typically as a Riak backend. The release includes the main Bookie API for data operations, the Inker for journal persistence, the Penciller for ledger management, and the CDB file clerk for constant database storage. It also adds a new eval and filter expression engine (with lexer/parser) for dynamic data transformation and querying, alongside support for LZ4 and ZSTD compression, tiny bloom filters, and configurable ledger value versions.
src · high confidence
New configuration schemas for Leveled and Multi-Backend storage
Added \priv/leveled.schema\ and \priv/leveled\_multi.schema\ files that define the configuration options for the Leveled storage backend and its multi-backend integration. These schemas expose settings for data storage paths, disk flush strategies, in-memory cache sizes, and compression methods (including ZSTD support). They also provide granular control over journal management (size and object count limits), compaction scheduling (runs per day, scoring, and time windows), and snapshot timeouts for index queries.
priv · high confidence
Test coverage
Added end-to-end Common Test suites for core storage operations; Added property-based tests for codec, evaluation, filter, and set operation languages.
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 77 → 71 (-6.6)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.
Lenses
- Code Health 92 → 92 (+0.0)
- Architecture 100 → 100 (+0.0)
- Maturity 76 → 66 (-9.9)
- Readiness 68 → 60 (-8.6)
- Security 100 → 100 (+0.0)
Resolved (2)
- Duplicated block (1–5 lines × 7) (src/leveled_sstblock.erl)
- Duplicated block (7 lines × 3) (src/leveled_sstblock.erl)
New (24)
- Dependency hygiene PARTLY measured — rebar3 pinning read, dependency currency not (no rebar.lock-pinned Hex declaration to grade)
- Duplicated block (1–5 lines × 7) (src/leveled_sstblock.erl)
- Duplicated block (7 lines × 3) (src/leveled_sstblock.erl)
- Edited copies of one member (3 members, 12+ corresponding lines) (src/leveled_eval.erl)
- Edited copies of one member (3 members, 19+ corresponding lines) (src/leveled_codec.erl)
- Edited copies of one member (3 members, 8+ corresponding lines) (src/leveled_bookie.erl)
- Edited copies of one member (4 members, 4+ corresponding lines) (src/leveled_iclerk.erl)
- Edited copy of a member (10 corresponding lines) (src/leveled_bookie.erl)
- Edited copy of a member (10 corresponding lines) (src/leveled_log.erl)
- Edited copy of a member (10 corresponding lines) (src/leveled_tree.erl)
- Edited copy of a member (13 corresponding lines) (src/leveled_runner.erl)
- Edited copy of a member (15 corresponding lines) (src/leveled_runner.erl)
- Edited copy of a member (19 corresponding lines) (src/leveled_sst.erl)
- Edited copy of a member (29 corresponding lines) (src/leveled_pmanifest.erl)
- Edited copy of a member (32 corresponding lines) (src/leveled_sst.erl)
- Edited copy of a member (4 corresponding lines) (src/leveled_inker.erl)
- Edited copy of a member (4 corresponding lines) (src/leveled_inker.erl)
- Edited copy of a member (6 corresponding lines) (src/leveled_bookie.erl)
- Edited copy of a member (8 corresponding lines) (src/leveled_bookie.erl)
- Edited copy of a member (9 corresponding lines) (src/leveled_eval.erl)
- …and 4 more
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
martinsumner/leveled was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 51abe4601155c38da091e15d0e5d4ad19ba71195 — the exact code this score is about.
- Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.61+preprod-b8b1a43ae4c3.