Skip to content
CAI
Software that uses CAICheck a score

inaka/worker_pool

64.9

Adequate · 23 September 2026

2.4k

lines of production code

Erlang

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is an Erlang library named \worker\_pool\ that provides a robust implementation for managing concurrent worker processes. It offers configurable strategies for worker selection, request queuing, and lifecycle supervision, along with event-based monitoring and overrun detection. The project includes a comprehensive test suite to verify pool behavior, worker selection algorithms, and error isolation.

Features

Initial release of the Worker Pool library

This change introduces the \worker\_pool\ application, providing a robust Erlang worker pool implementation. It includes the main \wpool\ interface for managing pools, a \wpool\_pool\ supervisor for worker lifecycle management, and a \wpool\_queue\_manager\ for handling request queuing and worker availability. The library supports configurable worker strategies (such as best, random, round-robin, and available), overrun detection with customizable handlers, and an event-based callback system for monitoring worker events like creation and death. It also provides a default \wpool\_worker\ implementation for simple RPC-style tasks and exposes statistics and worker retrieval APIs.

src · high confidence

Behavioural changes

Modernize project tooling and update minimum OTP version

The project has been modernized by switching to rebar3 as the build system, setting the minimum supported OTP version to 27, and adding a suite of development tools including erlfmt for code formatting, hank for shell script linting, and dialyzer for static analysis. The README has been updated to reflect these changes and the new installation instructions.

(repo-wide) · high confidence

Test coverage

Added test suite and helper modules for wpool

Added a comprehensive Common Test suite and supporting test helpers to verify wpool functionality. The new test files include \wpool\_SUITE.erl\ for testing pool lifecycle, shutdown strategies, overrun handling, broadcasting, and supervisor pools; \wpool\_pool\_SUITE.erl\ for worker selection strategies (available, next, random, etc.), queue types, and queue manager options; \wpool\_process\_SUITE.erl\ for gen\_server behavior within workers (init, cast, call, continue, format\_status); and \wpool\_process\_callbacks\_SUITE.erl\ for callback module lifecycle and error isolation. Supporting test doubles (\crashy\_server\, \echo\_server\, \sleepy\_server\, \echo\_supervisor\) and utility functions (\wpool\_test\_utils\, \wpool\_bench\) were also added to facilitate these tests.

test · 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

This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.

Score

  • CAI 63 → 65 (+1.5)
  • Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.

Lenses

  • Code Health 94 → 98 (+3.6)
  • Architecture 100 → 100 (+0.0)
  • Maturity 50 → 39 (-11.4)
  • Readiness 64 → 78 (+13.7)
  • Security 71 → 92 (+21.1)
  • Event Sourcing 100 → 100 (+0.0)

Resolved (13)

  • Coverage not included — suite not readable by the collector
  • Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • No exposed public API
  • Off-boarding risk: anonymized user #1
  • Test reliability not included
  • The README does not describe what happens when tasks are rejected or fail (e.g., retry policy, timeout behavior). (README.md)
  • The README does not mention how to start or configure the worker pool (e.g., bootstrapping gen_servers and the pool). (README.md)
  • complexity unreadable for .erl — churn × complexity hotspots could not be measured

New (16)

  • Coverage not measured — no coverage collector is wired up
  • Dependency hygiene PARTLY measured — rebar3 pinning read, dependency currency not (no rebar.lock-pinned Hex declaration to grade)
  • Documentation: no installation or build instructions (README.md)
  • Documentation: no usage examples (README.md)
  • Duplicated block (10 lines × 2) (src/wpool_process.erl)
  • Duplicated block (5 lines × 2) (src/wpool_process.erl)
  • Duplicated block (5 lines × 3) (src/wpool_process.erl)
  • Duplicated block (7 lines × 3) (src/wpool_process.erl)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • Members sharing a duplicated core (4 members, 50+ identical tokens) (src/wpool_process.erl)
  • Workflow token permissions not restricted

Changes since last survey

  • 10 commits — 9 feature/other, 1 fixes

By area

  • (repo) — 3 commits
  • (root) — 3 commits
  • src/worker_pool.app.src — 1 commit
  • src/wpool.erl — 1 commit
  • src/wpool_sup.erl — 1 commit
  • src/wpool_worker.erl — 1 commit

Notable commits

  • fix: main- Fix license
  • change: Merge pull request #220 from inaka/brujo-otp29
  • change: Merge pull request #221 from inaka/brujo-otp29
  • change: Merge pull request #222 from inaka/brujo-otp29
  • change: brujo-otp29 Add missing group
  • change: brujo-otp29 Fully move into OTP28/29
  • change: brujo-otp29 Reduce coverage requirements just a bit
  • change: brujo-otp29 Use new docs
  • change: brujo-otp29 Use nominal types
  • change: brujo-otp29 noargs

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

Survey your own repository

inaka/worker_pool 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 23 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 599bb39160f2157306dd36c1d3538e033105d83e — the exact code this score is about.
  • Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-955b9cee9818.