basho/riak_dt
61.0
Adequate · 13 November 2026
5.8k
lines of production code
Erlang
primary language
8
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 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 61 → 61 (-0.1)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.
Lenses
- Code Health 99 → 98 (-0.4)
- Architecture 100 → 100 (+0.0)
- Maturity 38 → 37 (-0.8)
- Readiness 67 → 68 (+1.1)
- Security 90 → 90 (+0.0)
- Event Sourcing 100 → 100 (+0.0)
Resolved (2)
- Documentation: no installation or build instructions (README.md)
- Flaky test: riak_dt_lwwreg:0 update_assign_ts_test
New (17)
- Edited copies of one member (3 members, 8+ corresponding lines) (src/riak_dt_gset.erl)
- Edited copy of a member (13 corresponding lines) (src/riak_dt_map.erl)
- Edited copy of a member (2 corresponding lines) (src/riak_dt_disable_flag.erl)
- Edited copy of a member (2 corresponding lines) (src/riak_dt_lwwreg.erl)
- Edited copy of a member (3 corresponding lines) (src/riak_dt_disable_flag.erl)
- Edited copy of a member (3 corresponding lines) (src/riak_dt_emcntr.erl)
- Edited copy of a member (3 corresponding lines) (src/riak_dt_map.erl)
- Edited copy of a member (4 corresponding lines) (src/riak_dt_map.erl)
- Edited copy of a member (5 corresponding lines) (src/riak_dt_orswot.erl)
- Edited copy of a member (6 corresponding lines) (src/riak_dt_lwwreg.erl)
- Edited copy of a member (6 corresponding lines) (src/riak_dt_map.erl)
- Edited copy of a member (6 corresponding lines) (src/riak_dt_od_flag.erl)
- Edited copy of a member (7 corresponding lines) (src/riak_dt_map.erl)
- Edited copy of a member (7 corresponding lines) (src/riak_dt_map.erl)
- Edited copy of a member (7 corresponding lines) (src/riak_dt_map.erl)
- Edited copy of a member (7 corresponding lines) (src/riak_dt_pncounter.erl)
- Edited copy of a member (9 corresponding lines) (src/riak_dt_map.erl)
Written by cca.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 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 c2a3e1b8e3bc6f586f181558396683137ebe8c87 — 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.