Skip to content
CAI
Software that uses CAICheck a score

leo-project/leo_mq

52.3

Adequate · 15 November 2026

1.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

Leo MQ is a local Erlang message-queuing library designed for asynchronous processing and data consistency within the LeoFS ecosystem. It provides a robust API for publishing, consuming, and managing message states, backed by LevelDB storage and optimized for batch processing. The system includes comprehensive state management via gen\_statem and is supported by unit tests to ensure API reliability.

Features

Initial release of Leo MQ header definitions

This change introduces the \leo\_mq.hrl\ header file, establishing the foundational data structures and constants for the Leo MQ subsystem. It defines the \mq\_properties\ record for configuring publishers and consumers, including settings for database processes, batch sizes, and consumption intervals. The file also specifies the \mq\_state\ record and associated macros to represent queue states such as idling, running, and suspending (auto/force), alongside event types for managing the lifecycle of the message queue components.

include · high confidence

Initial release of leo\_mq local message-queueing library

This entry introduces leo\_mq, a local Erlang message-queueing library designed for use within Leo Project applications (such as leo\_storage, leo\_gateway, and leo\_manager) to handle asynchronous processing and fix inconsistent data. The release includes the core library code, a Makefile-based build system using rebar3, and configuration for Erlang/OTP 21 or later. It also establishes the project's CI pipeline via Travis CI, adds Apache 2.0 licensing, and includes documentation generation scripts.

(repo-wide) · high confidence

Leo MQ message queue library introduced at version 2.0.3

The Leo MQ library is now available as a standalone Erlang application (version 2.0.3) providing a robust message queuing system for LeoFS. This release introduces a new API for publishing, suspending, and resuming message consumption, alongside a consumer mechanism built on gen\_statem for improved state management. The backend storage has been updated to use LevelDB by default, and the supervision tree has been refactored to use supervisor2 for better reliability. Users can now leverage features like bulk loading, configurable batch processing, and efficient message counting to optimize message handling performance.

src · high confidence

Test coverage

Added unit tests for Leo MQ API

Added a new EUnit test suite (leo\_mq\_api\_tests) that validates the Leo MQ API's publish, has\_key, count, and status operations using a mocked client module.

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 54 → 52 (-1.5)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 97 → 94 (-3.2)
  • Architecture 100 → 100 (+0.0)
  • Maturity 39 → 39 (+0.0)
  • Readiness 44 → 44 (+0.0)
  • Security 83 → 75 (-8.3)

New (2)

  • Edited copy of a member (24 corresponding lines) (src/leo_mq_api.erl)
  • Edited copy of a member (8 corresponding lines) (src/leo_mq_api.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

leo-project/leo_mq 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 a65615302f68ee525fb0889f1bf45701c21e2e15 — 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.