A small C coordination runtime (~7100 lines) implementing decaying shared fields, k=7 topological neighbor election, heartbeat-based failure detection, and threshold consensus. Written with seL4-grade coding discipline: no dynamic allocation, no recursion, bounded loops, static configuration. Includes a working Isabelle/AutoCorres verification session.
- POSIX build and test path is working today
- the runtime shape is compact enough to inspect quickly
- the verification session exists and proves a narrow but real slice
- hardening and proof-readiness gaps are tracked explicitly rather than hidden
cmake -S . -B build
cmake --build build
ctest --test-dir build --output-on-failureThis is the shortest trustworthy proof that the repo is alive.
- Field engine (
ekk_field) -- Decaying shared coordination fields with seqlock-protected publish/sample and gradient computation. - Topology (
ekk_topology) -- Event-driven k-nearest neighbor election under configurable distance metrics. - Heartbeat (
ekk_heartbeat) -- Liveness tracking with UNKNOWN/ALIVE/SUSPECT/DEAD state machine and inter-arrival timing. - Consensus (
ekk_consensus) -- Per-ballot threshold voting with early rejection, mutual inhibition, and Byzantine evidence framework. - Module (
ekk_module) -- Module-local coordination loop composing all subsystems into a single tick with three-way outcome contract.
docs/README.md- documentation entrypointdocs/KEY_COMPONENTS.md- subsystem mapdocs/SEL4_REVIEW.md- current correctness and hardening gapsdocs/VERIFICATION_PLAN.md- proof-track scope and milestones
The docs/isabelle/ directory contains an Isabelle/AutoCorres session that proves
properties of the heartbeat state machine and consensus voting logic. To build it,
you need:
Then run:
<isabelle>/bin/isabelle build \
-d <l4v> \
-d docs/isabelle \
EkkVerificationReplace <isabelle> and <l4v> with paths to your local installations.
See docs/SEL4_REVIEW.md for a detailed systems review covering correctness defects, undefined-behaviour paths, and verification-readiness gaps.
See DEVELOPMENT.md for the canonical smoke path and review posture.
- Code (
.c,.h,.thy,ROOT, build scripts): MIT - Documentation (
.md): CC-BY-SA-4.0
Copyright (c) 2026 Elektrokombinacija