Skip to content
CAI
Software that uses CAICheck a score

GenericJam/mob

73.0

Strong · 15 November 2026

27.7k

lines of production code

Elixir

with Objective-C, Zig, Swift

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Action receipts for causal debugging and native alert dialogs

The framework now provides causal receipts to track the lifecycle of user actions (taps, text changes, etc.) from dispatch through to the committed frame, allowing developers to pinpoint exactly where an action failed (e.g., in routing, app code, or rendering) rather than relying on ambiguous timing-based checks. Additionally, \Mob.Alert\ introduces native alert dialogs, action sheets, and toast messages, enabling standard platform-specific user feedback and confirmation flows directly from Elixir handlers.

lib/mob · high confidence

Introduction of the core NIF stub module

The \src/mob\_nif.erl\ file has been added as the central Erlang NIF stub, exporting a comprehensive set of functions that bridge the application to native platform capabilities. This includes device state queries (battery, network, orientation), media controls (audio recording, playback, metering, TTS), UI interactions (alerts, toasts, webview JS execution), and a test harness for UI inspection and automation. It also exposes post-mortem data ingestion for iOS and Android, USB vendor communication, and DNS resolution, effectively consolidating the native interface layer for the Mob framework.

src · high confidence

New mix tasks for Erlang formatting, flake detection, and onboarding verification

Three new Mix tasks are introduced to improve developer workflows and test reliability. \mix erlfmt\ wraps the \erlfmt\ library to format or check \.erl\ source files, enabling the pre-commit checks referenced in project documentation. \mix mob.flake\ runs the test suite repeatedly in fresh OS processes to identify non-deterministic (flaky) tests, reporting failures with full logs to aid debugging. \mix mob.onboarding\_test\ executes integration tests that verify a new user can successfully set up and run the application, isolating each test in a temporary workspace to prevent side effects.

lib/mix · high confidence

iOS platform layer: new UI primitives, GPU view, and input event handling

This change introduces the initial iOS native implementation for the Mob UI framework. It adds support for new UI node types including \:anchored\ (floating panels with precise positioning logic), \:gpu\_view\ (Metal-backed fragment-shader surfaces), and \:sheet\ (native modal sheets). The entry point \MobRootView\ and data model \MobNode\ handle the rendering tree, layout properties (padding, alignment, spacing), and theme application. High-frequency input events such as pinch, rotate, drag, and pointer movement are now bridged to the BEAM via \MobInputEvents\. Additionally, the iOS harness includes a native view registry for custom components, IME composition support for text fields, and a startup watchdog to detect main-thread blocking during boot.

ios · high confidence

Behavioural changes

Android native layer ported from C to Zig

The Android native bridge has been rewritten in Zig, replacing the previous C implementation. This migration includes a hand-declared FFI layer for JNI and libc bindings, a static NIF table definition, and the core BEAM launcher logic. The port preserves the original behavior while enabling in-process IPv4 DNS resolution via Bionic's getaddrinfo to fix resolution failures on physical devices, and implements a tap-handle codec that expands the supported widget pool from 256 to 4,096 to prevent handle exhaustion.

android · high confidence

New pre-push hook enforces code quality and release preflight checks

A new \.githooks/pre-push\ script is introduced to automatically validate code before pushing. It runs fast checks (formatting, Credo linting, and compilation with warnings-as-errors) on every push. If \mix.exs\ has changed, it additionally runs a subset of tests and a security scan. The hook also provides advisory warnings if the branch is significantly behind \origin/master\ or if code changes were made without corresponding test updates, helping developers catch integration issues and coverage gaps early.

.githooks · high confidence

Test coverage

1 commit adding/updating tests in test/mob/plugin; 9 commits adding/updating tests in test/mob/post\_mortem; Expanded test coverage for agent receipts, UI primitives, and native integration.

Dependencies

Upgrade to Elixir 1.19 and update dependencies

The project now requires Elixir 1.19 (up from 1.18) and has updated its dependency lockfile, including major version bumps for Ecto and Ecto SQL to 3.14.0, ExDoc to 0.40.3, and Exqlite to 0.37.0. The mix.exs also adds configuration for the mix\_unused tool to handle specific callback patterns and declares :public\_key as an extra application to support runtime certificate loading on Elixir 1.19+.

(dependencies) · high confidence

Housekeeping

Adds project linting and formatting configuration files

The repository now includes configuration files for code style enforcement: \.clang-format\ sets LLVM-based formatting for C/C++ sources, \.swiftlint.yml\ configures SwiftLint with relaxed limits for the iOS renderer, and \.credo.exs\ registers the ExSlop plugin for Elixir static analysis.

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

Lenses

  • Code Health 94 → 91 (-2.8)
  • Architecture 85 → 94 (+9.4)
  • Maturity 93 → 93 (-0.0)
  • Readiness 60 → 60 (+0.0)
  • Security 83 → 75 (-8.3)
  • Performance 100 → 100 (+0.0)

Resolved (98)

  • Classify ADR enforcement: :scroll builds its content lazily (iOS) (decisions/2026-09-02-lazy-scroll-on-ios.md)
  • Classify ADR enforcement: A physical iPhone loads deployed BEAMs from numbered, committed directories (decisions/2026-10-15-ios-versioned-code-dirs.md)
  • Classify ADR enforcement: A physical iPhone's node host can be set by the connecting tool (decisions/2026-10-09-ios-node-host-override.md)
  • Classify ADR enforcement: A receipt per action, not a window in which anything might have happened (decisions/2026-09-10-a-receipt-per-action-not-a-window.md)
  • Classify ADR enforcement: A safe-area read with no window is not an answer (decisions/2026-09-10-a-safe-area-read-with-no-window-is-not-an-answer.md)
  • Classify ADR enforcement: An invariant must survive to the next sample (decisions/2026-09-10-an-invariant-must-survive-to-the-next-sample.md)
  • Classify ADR enforcement: Android ApplicationExitInfo ingest goes through pure JNI, not MobBridge.kt (decisions/2026-09-11-appexit-native-jni-not-bridge.md)
  • Classify ADR enforcement: Android libc decls go through mob_zig, not extern "c" fn in-place (decisions/2026-09-14-android-libc-decls-through-mob_zig.md)
  • Classify ADR enforcement: Apps write their own Erlang init arguments to $MOB_DATA_DIR/mob_init_args (decisions/2026-10-06-app-init-args.md)
  • Classify ADR enforcement: Audio output probes — verify sound is actually working (decisions/2026-06-29-audio-output-probes.md)
  • Classify ADR enforcement: Children key on the author's :id, not on position (decisions/2026-09-03-children-key-on-author-id.md)
  • Classify ADR enforcement: Colour verification samples pixels: crop in the NIF, reduce in Elixir (decisions/2026-08-10-sample-region-crops-natively-and-stays-debug-only.md)
  • Classify ADR enforcement: Composite expansion pass (the ui_components expand: form, honored) (decisions/2026-06-11-composite-expansion-pass.md)
  • Classify ADR enforcement: Defect reports are a shipped feature, and their format is a contract (decisions/2026-09-04-defect-reports-are-a-shipped-feature.md)
  • Classify ADR enforcement: Destructive post-mortem drains are journaled until observed (decisions/2026-09-30-destructive-post-mortem-drains-are-journaled-until-observed.md)
  • Classify ADR enforcement: Development distribution: a private cookie per app, loopback listeners where possible (decisions/2026-09-30-private-dist-cookie-and-loopback-listeners.md)
  • Classify ADR enforcement: Diagnostic stores share one hardened owner (decisions/2026-09-30-diagnostic-stores-share-one-hardened-owner.md)
  • Classify ADR enforcement: Dirty NIF scheduling for mob_nif (decisions/2026-04-28-dirty-nifs.md)
  • Classify ADR enforcement: Extensible permission registry for plugins (Option A, runtime) (decisions/2026-06-04-plugin-permission-registry.md)
  • Classify ADR enforcement: Extract location from core into the mob_location plugin (Wave 2) (decisions/2026-06-05-mob-location-extraction.md)
  • …and 78 more

New (15)

  • Duplicated block (6 lines × 2) (ios/MobRootView.swift)
  • Edited copies of one member (3 members, 17+ corresponding lines) (lib/mob/router.ex)
  • Edited copies of one member (3 members, 7+ corresponding lines) (lib/mob/agent/receipts.ex)
  • Edited copies of one member (4 members, 15+ corresponding lines) (lib/mob/event/bridge.ex)
  • Edited copies of one member (4 members, 4+ corresponding lines) (lib/mob/diag/store.ex)
  • Edited copy of a member (17 corresponding lines) (ios/MobRootView.swift)
  • Edited copy of a member (2 corresponding lines) (lib/mob/post_mortem/android.ex)
  • Edited copy of a member (21 corresponding lines) (lib/mob/socket.ex)
  • Edited copy of a member (4 corresponding lines) (lib/mob/diag/heir.ex)
  • Edited copy of a member (4 corresponding lines) (lib/mob/router.ex)
  • Edited copy of a member (41 corresponding lines) (lib/mob/screen/server.ex)
  • Edited copy of a member (6 corresponding lines) (lib/mob/agent/receipts.ex)
  • Edited copy of a member (8 corresponding lines) (lib/mob/test.ex)
  • Hotspot: lib/mob/renderer.ex (lib/mob/renderer.ex)
  • Renderer.prepare_props (cyclomatic 17) (lib/mob/renderer.ex)

Changes since last survey

  • 6 commits — 6 feature/other, 0 fixes

By area

  • (root) — 3 commits
  • lib/mob — 2 commits
  • android/jni — 1 commit

Notable commits

  • change: Component events repaint only when the rendered props change (#236)
  • change: Per-node multi-pointer on_touch: pointer id, position in node, captured by the down node (#238)
  • change: Release 0.9.28 (#237)
  • change: Release 0.9.29 (#239)
  • change: Release 0.9.30
  • change: bionic timespec is c_long on 32-bit Android; per-ABI layout guard (MOB-523) (#240)

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

Survey your own repository

GenericJam/mob 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 ac6ec71c7346c63eb739c0a6f29802ca4784d564 — 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.