Skip to content
CAI
Software that uses CAICheck a score

DavidAlphaFox/aiutp

55.4

Adequate · 15 November 2026

7.8k

lines of production code

Erlang

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is an Erlang/OTP library implementing the uTP (Micro Transport Protocol) over UDP, designed to provide reliable, ordered data delivery with LEDBAT congestion control. It exposes a socket-based API that handles connection management, network I/O, and selective acknowledgments, while adhering to BEP-29 specifications. The codebase includes comprehensive documentation, unit tests, and example server/client applications for testing the protocol's echo functionality.

Features

Added uTP protocol example server and client

New example files \utp\_server.erl\ and \utp\_client.erl\ have been added to the \examples\ directory. The server provides an echo service that listens on a specified port (defaulting to 9000) and reflects received data back to the sender. The client allows users to connect to this server, send data, and receive responses, facilitating testing of the \aiutp\ protocol implementation.

examples · high confidence

Initial project scaffolding and documentation for aiutp uTP library

This change introduces the initial project structure for the aiutp Erlang/OTP uTP protocol library. It adds comprehensive documentation including a project plan (PLANNING.md) detailing the architecture, OTP supervision tree, and protocol implementation specifics; a task tracker (TASK.md) and its archive (TASK\_DONE.md); and AI development guidelines (CLAUDE.md). It also establishes the build configuration via rebar.config (including EUnit, Cover, and Dialyzer settings) and updates the .gitignore to reflect the rebar3 build environment.

(repo-wide) · high confidence

Introduce uTP (Micro Transport Protocol) library for Erlang

Adds a new \aiutp\ OTP application implementing the uTP protocol (BEP-29) over UDP. This library provides a socket-based API for reliable, ordered data delivery with LEDBAT congestion control, including features like path MTU discovery, selective acknowledgments (SACK), and configurable active/passive data modes.

src · high confidence

Introduce uTP protocol constants and connection state definitions

Added the \aiutp.hrl\ header file defining the core constants, packet types, connection states, and timing parameters for the uTP protocol implementation. This includes standard packet types (DATA, FIN, STATE, RESET, SYN), connection states (IDLE, SYN\_SENT, CONNECTED, etc.), and tuning parameters such as a reduced minimum RTO of 300ms, a 1296-byte packet size, and specific timeouts for keep-alive, zero-window probes, and receive idle detection to align with BEP-29 and libutp behaviors.

include · high confidence

Test coverage

Added comprehensive test suite for uTP core components

Added EUnit tests covering the performance and correctness of internal data structures (buffers, queues, delay estimation), packet encoding/decoding, MTU discovery logic, network window calculations, and the channel state machine and receive API.

test · high confidence

Housekeeping

Published EDoc documentation for the aiutp uTP library

Generated HTML documentation for the entire aiutp Erlang library, covering the public API (aiutp), connection management (aiutp\_channel, aiutp\_channel\_sup), network I/O (aiutp\_net), congestion control (aiutp\_delay), and internal buffering (aiutp\_buffer).

doc · 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 52 → 55 (+3.4)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 71 → 70 (-1.1)
  • Architecture 97 → 96 (-0.5)
  • Maturity 54 → 68 (+13.9)
  • Readiness 33 → 33 (+0.0)
  • Security 100 → 100 (+0.0)

Resolved (3)

  • Classify ADR enforcement: PCB 和常量重构决策记录 (docs/requirements/decisions/2025-12-03-pcb-constants-refactoring.md)
  • Classify ADR enforcement: 超时检查间隔 (TIMEOUT_CHECK_INTERVAL) 决策 (docs/requirements/decisions/2025-12-04-timeout-check-interval.md)
  • Hotspot: src/aiutp_channel.erl (src/aiutp_channel.erl)

New (8)

  • Edited copies of one member (3 members, 15+ corresponding lines) (src/aiutp_buffer.erl)
  • Edited copies of one member (3 members, 8+ corresponding lines) (src/aiutp_channel.erl)
  • Edited copies of one member (3 members, 9+ corresponding lines) (src/aiutp_channel.erl)
  • Edited copy of a member (15 corresponding lines) (src/aiutp_channel_sup.erl)
  • Edited copy of a member (19 corresponding lines) (src/aiutp_channel.erl)
  • Edited copy of a member (22 corresponding lines) (examples/utp_client.erl)
  • Edited copy of a member (44 corresponding lines) (src/aiutp_net.erl)
  • Repeated repair: src/aiutp_channel.erl (src/aiutp_channel.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

DavidAlphaFox/aiutp 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 b03ffb98f60927ba157a2719ae3534e28d46b780 — 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.