basho/riak_dt
58.4
Adequate · 23 September 2026
5.8k
lines of production code
Erlang
primary language
5
measurements over time
What this system is
This system is an Erlang library implementing Convergent Replicated Data Types (CRDTs) for distributed state management. It provides core data structures such as counters, registers, flags, maps, and sets, each supporting serialization, merging, and statistical reporting. The codebase includes comprehensive property-based testing using QuickCheck to verify CRDT invariants like commutativity and idempotence.
Features
Added QuickCheck state-based tests for CRDTs
Added new QuickCheck (EQC) state-based tests for the CRDT modules (map, ORSWOT, OD flag, and general state machine testing). These tests verify the correctness of CRDT operations such as create, update, merge, and replicate by comparing the actual implementation against a reference model, ensuring that operations are idempotent, commutative, and associative as expected.
eqc · medium confidence
Introduce CRDT type definitions and versioning tags
The \include/riak\_dt.hrl\ header file is added, defining Erlang type aliases for \riak\_dt\_dict\ and \riak\_dt\_set\ (using \ordsets\), and the \include/riak\_dt\_tags.hrl\ header is added, establishing a centralized system of tags and error macros for all CRDT data types. This change enables versioning and serialization/deserialization logic to be managed consistently across different data types.
include · high confidence
Introduction of the riak\_dt library with new CRDT types
The \src\ directory now contains the \riak\_dt\ application, introducing a library of Convergent Replicated Data Types (CRDTs) for Erlang. This includes a new \riak\_dt\ module defining the core behavior and serialization, alongside implementations for a grow-only counter (\riak\_dt\_gcounter\), a last-write-wins register (\riak\_dt\_lwwreg\), a disable-only flag (\riak\_dt\_disable\_flag\), an enable-only flag (\riak\_dt\_enable\_flag\), a multi-field container (\riak\_dt\_map\), and a grow-only set (\riak\_dt\_gset\). Each type supports binary serialization, merging, and statistical reporting.
src · high confidence
Removals
Removal of the legacy riak\_crdt application
The entire \riak\_crdt\ application has been removed from the codebase. This includes the deletion of the application source file, the main module, header files, and all associated Erlang source files such as the client, console, vnode, and FSM implementations. This change eliminates the legacy CRDT implementation from the system.
_apps/riak\crdt · high confidence
Behavioural changes
Project renamed to riak\_dt and refactored as an OTP application
The project has been renamed from riak\_crdt to riak\_dt, with corresponding updates to the .gitignore, Makefile, and rebar.config to reflect the new name and structure. The build system has been standardized on rebar3, introducing new targets for testing, dialyzer, xref, and EQC, while removing older, unused Makefile targets. The rebar.config has been updated to specify a minimum OTP version of 22.0 and includes plugins for EQC and xref checks.
(repo-wide) · high confidence
Removed legacy release scripts and configuration files
The release build system no longer includes the legacy shell scripts (erl, nodetool, riak\_crdt, riak\_crdt-admin) and configuration templates (app.config, vm.args, reltool.config, vars.config) that were used to manage the application's runtime environment. This removes the ability to start, stop, or interact with the node using the previous tooling, indicating a shift in how the application is deployed and managed.
rel · high confidence
Test coverage
Added EUnit tests for riak\_dt\_gset
Added new EUnit tests for the riak\_dt\_gset module, including an update\_add\_test and an update\_add\_all\_test to verify set update operations.
test · high confidence
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 53 → 58 (+5.6)
- Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.
Lenses
- Code Health 97 → 98 (+1.6)
- Architecture 100 → 100 (+0.0)
- Maturity 21 → 33 (+11.2)
- Readiness 69 → 68 (-1.1)
- Security 80 → 85 (+4.6)
- Event Sourcing 100 → 100 (+0.0)
Resolved (10)
- Coverage not included — suite not readable by the collector
- Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
- High: security finding (details withheld)
- High: security finding (details withheld)
- No exposed public API
- No install/run instructions for a new user. (README.md)
- Test reliability not included
- TooManyMethods: riak_dt_map (src/riak_dt_map.erl)
- complexity unreadable for .erl, .hrl — churn × complexity hotspots could not be measured
- dormant codebase — no living knowledge left to concentrate
New (16)
- Coverage not measured — no coverage collector is wired up
- Documentation: no installation or build instructions (README.md)
- Duplicated block (10 lines × 2) (src/riak_dt_map.erl)
- Duplicated block (5 lines × 2) (src/riak_dt_emcntr.erl)
- Duplicated block (5 lines × 2) (src/riak_dt_gset.erl)
- Duplicated block (5 lines × 2) (src/riak_dt_map.erl)
- Duplicated block (5 lines × 2) (src/riak_dt_map.erl)
- Duplicated block (5 lines × 4) (src/riak_dt_disable_flag.erl)
- Duplicated block (7 lines × 2) (src/riak_dt_orset.erl)
- High: security finding (details withheld)
- High: security finding (details withheld)
- High: security finding (details withheld)
- Medium: security finding (details withheld)
- Rotate the exposed credentials — git history can't be un-committed
- Secret: generic-api-key (.travis.yml)
- Workflow token permissions not restricted
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
basho/riak_dt 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 23 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit c2a3e1b8e3bc6f586f181558396683137ebe8c87 — the exact code this score is about.
- Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
- Measured by watchdog.canine.dev using codehealth-analyzer preprod-955b9cee9818.