Skip to content
CAI
Software that uses CAICheck a score

OpenRiak/riak_kv

53.4

Adequate · 15 November 2026

70.6k

lines of production code

Erlang

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

New include headers for capabilities, datatypes, and DTrace probes

This change introduces several new header files in the include directory to support updated internal structures and observability. riak\_kv\_capability.hrl defines macros for negotiating cluster capabilities such as CRDT epoch versions, secondary index versions (v3), and backpressure settings. riak\_kv\_types.hrl establishes the type definitions and mappings for new CRDT datatypes including counters, sets, maps, HLL, and GSET, along with their versioning epochs. riak\_kv\_dtrace.hrl adds DTrace probe categories for GET, PUT, DELETE, buckets, and keys FSMs to enable runtime tracing. Additionally, riak\_kv\_index.hrl updates the index query record to v3, supporting integer start/end terms and new fields like term\_regex and max\_results, while riak\_kv\_vnode.hrl refactors request records and introduces a vnode lock macro for background management tasks.

include · high confidence

Behavioural changes

Deprecation of KV health checks

The KV health check mechanism has been deprecated, meaning the system no longer relies on or exposes these specific health probes. Users should transition to alternative health monitoring strategies provided by the platform or container orchestrators.

src · high confidence

Removal of riak\_kv.app manifest

The riak\_kv.app application manifest has been deleted from the ebin directory. This file previously defined the application metadata, including the version (0.12.0), the list of compiled modules, and application dependencies. Its removal indicates a shift in how the application is packaged or initialized, likely relying on alternative mechanisms such as .app.src files or dynamic module loading.

ebin · high confidence

Fixes

Fix reduceMin and reduceMax JavaScript builtins and add multi-backend schema

The map-reduce JavaScript builtins in priv/mapred\_builtins.js have been corrected: reduceMin and reduceMax now properly handle empty input arrays by returning an empty list instead of crashing, and they use explicit comparison logic instead of relying on string sorting which could yield incorrect results for numeric data. Additionally, a new multi\_backend.schema file has been added to define configuration mappings for specifying multiple storage backends (bitcask, leveldb, leveled, memory) via the cuttlefish configuration system.

priv · high confidence

Test coverage

Added QuickCheck (EQC) test suites for Riak KV components; Expanded test coverage for backend utilities, schema validation, and URL encoding.

Dependencies

Add Jekyll documentation site dependencies

Added a new Gemfile and Gemfile.lock to the docs directory to establish the build environment for the documentation site. This introduces Jekyll (version 4.4.1) as the core static site generator, along with the just-the-docs theme (pinned to 0.10.1) for styling and the jekyll-relative-links plugin to support relative link resolution within the documentation structure.

(dependencies) · high confidence

Migrate to rebar3 and update build configuration

The build system has been upgraded from rebar to rebar3, replacing the legacy Makefile with rebar3 profiles for compilation, testing, dialyzer, and xref checks. The minimum supported Erlang/OTP version is now 24.0, and dependencies have been switched from Mercurial repositories to GitHub branches (openriak-3.4). Additionally, new configuration files for spellchecking, link validation, and a wordlist have been added to support documentation quality.

(repo-wide) · 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 57 → 53 (-3.9)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 75 → 69 (-6.0)
  • Architecture 87 → 90 (+2.6)
  • Maturity 76 → 77 (+0.9)
  • Readiness 55 → 55 (+0.0)
  • Security 81 → 95 (+14.2)
  • Event-Driven 48 → 48 (+0.0)
  • Event Sourcing 71 → 49 (-21.9)

Resolved (15)

  • Duplicated block (12 lines × 2) (src/riak_kv_multi_backend.erl)
  • Duplicated block (12 lines × 2) (src/riak_kv_pb_aaefold.erl)
  • Duplicated block (19 lines × 2) (src/riak_kv_multi_backend.erl)
  • Duplicated block (2–14 lines × 3) (src/riak_kv_pb_aaefold.erl)
  • Most significant orphaned file (src/riak_kv_put_fsm.erl)
  • No SBOM
  • No artifact signing
  • No build provenance
  • Off-boarding risk: anonymized user #1
  • Off-boarding risk: anonymized user #2
  • Orphaned file (src/riak_kv_index_hashtree.erl)
  • Orphaned file (src/riak_kv_multi_backend.erl)
  • Orphaned file (src/riak_kv_multi_prefix_backend.erl)
  • Orphaned file (src/riak_kv_w1c_worker.erl)
  • Unpinned build actions

New (102)

  • Duplicated block (12 lines × 2) (src/riak_kv_multi_backend.erl)
  • Duplicated block (13 lines × 2) (src/riak_kv_pb_aaefold.erl)
  • Duplicated block (19 lines × 2) (src/riak_kv_multi_backend.erl)
  • Duplicated block (2–14 lines × 3) (src/riak_kv_pb_aaefold.erl)
  • Edited copies of one member (3 members, 11+ corresponding lines) (src/riak_kv_wm_aaefold.erl)
  • Edited copies of one member (3 members, 13+ corresponding lines) (src/riak_kv_mrc_sink.erl)
  • Edited copies of one member (3 members, 19+ corresponding lines) (src/riak_kv_wm_object.erl)
  • Edited copies of one member (3 members, 20+ corresponding lines) (src/riak_kv_crdt_json.erl)
  • Edited copies of one member (3 members, 22+ corresponding lines) (src/riak_kv_tictacaae_cli.erl)
  • Edited copies of one member (3 members, 25+ corresponding lines) (src/riak_kv_wm_aaefold.erl)
  • Edited copies of one member (3 members, 25+ corresponding lines) (src/riak_kv_wm_bucket_type.erl)
  • Edited copies of one member (3 members, 32+ corresponding lines) (src/riak_kv_bitcask_backend.erl)
  • Edited copies of one member (3 members, 4+ corresponding lines) (src/riak_client.erl)
  • Edited copies of one member (3 members, 4+ corresponding lines) (src/riak_kv_wm_json.erl)
  • Edited copies of one member (3 members, 4+ corresponding lines) (src/riak_kv_wm_json.erl)
  • Edited copies of one member (3 members, 7+ corresponding lines) (eqc/replrtq_eqc.erl)
  • Edited copies of one member (3 members, 7+ corresponding lines) (src/riak_object.erl)
  • Edited copies of one member (3 members, 9+ corresponding lines) (src/riak_kv_wm_json.erl)
  • Edited copies of one member (4 members, 11+ corresponding lines) (src/riak_client.erl)
  • Edited copies of one member (4 members, 12+ corresponding lines) (src/riak_kv_wm_bucket_type.erl)
  • …and 82 more

Changes since last survey

  • 8 commits — 7 feature/other, 1 fixes

By area

  • (repo) — 4 commits
  • .github/workflows — 1 commit
  • src/riak_kv_console.erl — 1 commit
  • src/riak_kv_multi_backend.erl — 1 commit
  • src/riak_kv_pb_object.erl — 1 commit

Notable commits

  • fix: Update linkcheck, fix Ubuntu version of OTP 24 support
  • change: Merge pull request #170 from aef-/aef-/bucket-status-cli
  • change: Merge pull request #171 from aef-/aef-/back-end-stacktrace
  • change: Merge pull request #182 from aef-/aef-/pb-stats
  • change: Merge pull request #185 from OpenRiak/nhse-o34-orkv.i184-gha
  • change: RIAK-1568 Bucket status CLI returns error code
  • change: RIAK-1827 Print stacktrace when error is raised starting a backend
  • change: RIAK-941 Add additional PB/tombstone stats

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

OpenRiak/riak_kv 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 15 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 f2bd75c38b280018b5106e56aeec5fe094785f27 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — 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.65+preprod-3c33c1882dc1.