Skip to content
CAI
Software that uses CAICheck a score

discord/manifold

55.9

Adequate · 3 October 2026

736

lines of production code

Elixir

primary language

2

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Manifold is a distributed messaging library for Elixir that routes messages to single or multiple PIDs using configurable partitioners and senders. It supports direct and offloaded sending modes with optional binary packing to optimize memory and performance. The system includes automatic hibernation for idle components to reduce CPU usage and provides benchmarks and tests to validate its scalability and linearization guarantees.

Features

Initial release of Manifold distributed messaging library

Introduces the Manifold library, providing a distributed messaging system with configurable partitioners and senders. Users can now send messages to single or multiple PIDs using either direct routing or an optional :offload send mode for improved performance. The library supports binary and ETF message packing modes and allows runtime configuration of the number of partitioners and senders, with sensible defaults based on system schedulers.

lib · high confidence

Behavioural changes

Introduce sharded partitioner with configurable message packing and hibernation

The Manifold library now includes a sharded \Partitioner\ that distributes messages across multiple worker processes based on PID hashing, improving scalability for high-throughput scenarios. Message serialization is handled by the \Sender\, which supports an optional binary packing mode to reduce memory overhead. Additionally, the \Partitioner\, \Sender\, and \Worker\ components now automatically hibernate periodically to lower CPU usage when idle, with configurable delay and jitter settings.

lib/manifold · high confidence

Test coverage

Added benchmark suite for partitioning and message sending; Initial test suite for Manifold library.

Dependencies

Initial project setup with Elixir 1.15 and dev dependencies

The project is initialized with version 1.7.0, targeting Elixir 1.15. It includes development-only dependencies for benchmarking (benchfella 0.3.5) and documentation generation (ex\_doc 0.40.3), along with their transitive dependencies (earmark\_parser, makeup, etc.) locked in mix.lock.

(dependencies) · 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

Score

  • CAI 54 → 56 (+2.3)
  • Rubric changed (rubric-2026.09.15 → rubric-2026.10.1) — scores are not directly comparable.

Lenses

  • Code Health 100 → 99 (-0.3)
  • Architecture 69 → 69 (+0.0)
  • Maturity 53 → 53 (+0.0)
  • Readiness 41 → 45 (+4.3)
  • Security 80 → 83 (+3.3)

Resolved (1)

  • Off-boarding risk: anonymized user #1

New (2)

  • Duplicated block (21 lines × 2) (bench/send_bench.exs)
  • Off-boarding risk: anonymized user #1

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

Survey your own repository

discord/manifold 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 3 October 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 73045259fd1c749bdf96449cf64c55cf81a01fab — the exact code this score is about.
  • Scored under rubric-2026.10.1 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-4f4226d619ea.