From 6dea5f002dfb9b91c50cb723b624582525ff79af Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Mon, 16 Nov 2026 11:36:40 +0000 Subject: [PATCH 01/10] Wire a real registry C ABI to the executable Idris dispatch oracle --- .github/workflows/registry-boundary.yml | 16 +++- .../2026-11-16-runtime-registry.adoc | 53 +++++++++++++ docs/status/ROADMAP.adoc | 7 +- scripts/check-registry.sh | 2 + scripts/check-runtime-registry.sh | 41 ++++++++++ src/interface/RegistryCheck.idr | 14 +++- src/interface/ffi/build.zig | 13 ++++ src/interface/ffi/include/uaa_registry.h | 31 ++++++++ src/interface/ffi/src/registry.zig | 78 +++++++++++++++++++ src/interface/ffi/test/registry_caller.c | 68 ++++++++++++++++ 10 files changed, 317 insertions(+), 6 deletions(-) create mode 100644 docs/decisions/2026-11-16-runtime-registry.adoc create mode 100644 scripts/check-runtime-registry.sh create mode 100644 src/interface/ffi/include/uaa_registry.h create mode 100644 src/interface/ffi/src/registry.zig create mode 100644 src/interface/ffi/test/registry_caller.c diff --git a/.github/workflows/registry-boundary.yml b/.github/workflows/registry-boundary.yml index 2f710b4..3916576 100644 --- a/.github/workflows/registry-boundary.yml +++ b/.github/workflows/registry-boundary.yml @@ -43,11 +43,21 @@ jobs: make install - name: Add Idris to PATH run: echo "$HOME/.idris2/bin" >> "$GITHUB_PATH" - - name: Total proofs, all tag/registry combinations and rejecting mutant - run: bash scripts/check-registry.sh + - name: Provision pinned Zig for the actual C ABI caller + run: | + set -euo pipefail + cd "$RUNNER_TEMP" + curl --proto '=https' --proto-redir '=https' -fL --retry 3 https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz -o zig.tar.xz + echo '02aa270f183da276e5b5920b1dac44a63f1a49e55050ebde3aecc9eb82f93239 zig.tar.xz' | sha256sum -c - + tar -xf zig.tar.xz + echo "$RUNNER_TEMP/zig-x86_64-linux-0.15.2" >> "$GITHUB_PATH" + - name: Total proofs and actual C ABI differential execution + run: bash scripts/check-runtime-registry.sh - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 if: always() with: name: registry-boundary-evidence - path: build/registry-evidence/ + path: | + build/registry-evidence/ + build/runtime-registry-evidence/ if-no-files-found: error diff --git a/docs/decisions/2026-11-16-runtime-registry.adoc b/docs/decisions/2026-11-16-runtime-registry.adoc new file mode 100644 index 0000000..f1abe5e --- /dev/null +++ b/docs/decisions/2026-11-16-runtime-registry.adoc @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: CC-BY-SA-4.0 +// Copyright (c) 2026 Jonathan D.A. Jewell += Runtime registration boundary + +The first executable registry exposes an opaque C handle, registration, +unregistration and synchronous invocation. Only REST (9) and MCP (1) have +slots. Other named protocols return Unsupported (11); unknown tags return +InvalidParam (2). Duplicate registration refuses without replacing the original +endpoint. A callback's return value is propagated only if it is a named status. +An unknown callback status becomes ProcessFailed (6). + +This is a registry of caller-supplied handlers. No built-in REST or MCP network +transport is available yet. Callback success is its report, not evidence of +delivery. The older template functions are separate and do not implement this +contract. Build the production library and header with `zig build` in +`src/interface/ffi` using Zig 0.15.2. + +== Ownership and lifetime + +The owner serializes every operation on a handle, holds callback code and its +context alive until unregister/destroy, supplies a readable input region for +the entire call, and destroys the handle exactly once. Input is never retained. +Null input is accepted only at length zero. Reentrant calls, mutation and +destruction during a callback refuse; no registry pointer is exposed to the +callback unless its owner deliberately supplies one in the context. + +The runtime does not prove arbitrary foreign-pointer validity, concurrent +access safety, callback termination or recovery from a callback that unwinds +across the C ABI. These are explicit preconditions and future qualification +work, not properties inferred from the finite decoder proof. + +== Evidence and source-to-proof obligations + +The hosted registry workflow compiles the actual Idris model with RefC and +compares its 1,024 observations with a separately compiled C caller linked to +the actual Zig shared library. Observations include both status and endpoint +identity, so selecting the wrong registered slot cannot pass by returning zero. +The caller also exercises duplicate registration, unregister/re-register, +raw bytes, null spans, callback failure, invalid callback status and reentrancy. +An unknown-tag mutation must compile and then fail the executable check. + +The evidence directory records source identities and both matrices. A passing +matrix is finite differential execution, not an Atoma source-refinement proof. +The Idris registration theorem applies to its model. Still required: source +binding for Zig dispatch, preservation under registry updates, region/lifetime +semantics, and a transport-specific implementation/proof contract. Extend the +Agda-compatible boundary first; independently replay supported witness claims +in Lean and Rocq before qualifying the stronger Cubical profile. + +Next: a real REST handler with bounded response storage and explicit timeout, +connection and HTTP failure outcomes, exercised against a local test server in +remote CI. MCP follows with its own framing/session obligations. Neither route +may report availability merely because its protocol has a name. diff --git a/docs/status/ROADMAP.adoc b/docs/status/ROADMAP.adoc index 5f388b8..5878c5b 100644 --- a/docs/status/ROADMAP.adoc +++ b/docs/status/ROADMAP.adoc @@ -8,8 +8,11 @@ Initial development phase. The finite decoder and partial registration model now have total Idris proofs and an executable RefC matrix covering all 256 tags and four registration states. See link:../decisions/2026-11-16-registration-boundary.adoc[registration boundary] -for the evidence and limits. Actual Zig registration and transport invocation -remain pending; planned REST/MCP routes do not establish availability. +for the evidence and limits. The follow-up +link:../decisions/2026-11-16-runtime-registry.adoc[runtime registry] adds a real +Zig shared library and C caller with a 1,024-row Idris differential gate. +Its current PR must pass hosted CI before qualification. Built-in REST/MCP +network transports and source/compiler refinement remain pending. == Milestones diff --git a/scripts/check-registry.sh b/scripts/check-registry.sh index b7f85c8..cc4f088 100644 --- a/scripts/check-registry.sh +++ b/scripts/check-registry.sh @@ -24,6 +24,8 @@ test -x "$work/build/exec/registry-check" grep -q 'No holes' "$evidence/holes.log" if grep -q '^Error:' "$evidence/holes.log"; then cat "$evidence/holes.log" >&2; exit 1; fi "$work/build/exec/registry-check" | tee "$evidence/registry.log" +grep '^case,' "$evidence/registry.log" > "$evidence/idris-oracle.csv" +test "$(wc -l < "$evidence/idris-oracle.csv")" -eq 1024 # Mutate the actual decoder: unknown values must not turn into REST. sed -i 's/)))))))))) = Nothing/)))))))))) = Just REST/' "$work/Abi/ProtocolFinite.idr" diff --git a/scripts/check-runtime-registry.sh b/scripts/check-runtime-registry.sh new file mode 100644 index 0000000..f75b889 --- /dev/null +++ b/scripts/check-runtime-registry.sh @@ -0,0 +1,41 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: MPL-2.0 +# Copyright (c) 2026 Jonathan D.A. Jewell +set -euo pipefail +unset CDPATH +root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd) +zig=$(command -v "${ZIG:-zig}") +zig=$(cd "$(dirname "$zig")" && pwd)/$(basename "$zig") +test "$("$zig" version)" = 0.15.2 +evidence="$root/build/runtime-registry-evidence" +mkdir -p "$evidence" +echo INCOMPLETE > "$evidence/result.txt" +work=$(mktemp -d -t uaa-runtime-registry.XXXXXXXX) +trap 'status=$?; rm -rf -- "$work"; if ((status)); then echo FAIL > "$evidence/result.txt"; fi' EXIT +# Rebuild the Idris oracle in this invocation: a prior PASS cannot rescue it. +bash "$root/scripts/check-registry.sh" > "$evidence/idris.log" 2>&1 +cp "$root/build/registry-evidence/idris-oracle.csv" "$work/oracle.csv" +cp "$root/src/interface/ffi/src/registry.zig" "$work/registry.zig" +cp "$root/src/interface/ffi/include/uaa_registry.h" "$work/uaa_registry.h" +cp "$root/src/interface/ffi/test/registry_caller.c" "$work/caller.c" +(cd "$work"; sha256sum registry.zig uaa_registry.h caller.c oracle.csv) > "$evidence/inputs.sha256" +"$zig" version > "$evidence/zig-version.txt" +build() { + "$zig" build-lib -dynamic -lc -O ReleaseSafe "$work/registry.zig" -femit-bin="$work/libuaa_registry.so" + "$zig" cc -Wall -Wextra -Werror -I "$work" "$work/caller.c" -L "$work" -luaa_registry \ + -Wl,-rpath,"$work" -o "$work/caller" +} +build > "$evidence/build.log" 2>&1 +"$work/caller" > "$evidence/actual.csv" +cmp "$work/oracle.csv" "$evidence/actual.csv" +cp "$work/oracle.csv" "$evidence/expected.csv" +# An actual Zig decoder mutation must compile and be rejected at execution. +sed -i 's/if (!known(tag)) return 2;/if (!known(tag)) return 11;/' "$work/registry.zig" +build > "$evidence/mutant-build.log" 2>&1 +if "$work/caller" > "$evidence/mutant.csv" 2> "$evidence/mutant.log"; then + if cmp -s "$work/oracle.csv" "$evidence/mutant.csv"; then + echo 'FAIL: unknown-tag mutation escaped the oracle' >&2; exit 1 + fi +fi +echo PASS > "$evidence/result.txt" +echo 'PASS: real C ABI, Idris differential matrix, lifetime/refusal regressions and rejecting Zig mutant' diff --git a/src/interface/RegistryCheck.idr b/src/interface/RegistryCheck.idr index 511f5b9..fe0f454 100644 --- a/src/interface/RegistryCheck.idr +++ b/src/interface/RegistryCheck.idr @@ -6,6 +6,8 @@ import Abi.ProtocolFinite import Abi.Registry import Abi.Status import System +import Data.List +import Data.String %default total @@ -28,7 +30,17 @@ check rest mcp n = in observe (dispatchTag r tag) == expected rest mcp n && map protocolTag (protocolFromWire tag) == map protocolTag (protocolFromTag tag) +row : Bool -> Bool -> Nat -> String +row rest mcp n = + let r = MkRegistry (if rest then Just 9 else Nothing) + (if mcp then Just 1 else Nothing) + (status, endpoint) = observe (dispatchTag r (cast n)) + mask : Nat = (if rest then 1 else 0) + (if mcp then 2 else 0) + in "case," ++ show mask ++ "," ++ show n ++ "," ++ show status ++ "," ++ show endpoint + main : IO () main = if all (\rest => all (\mcp => all (check rest mcp) [0..255]) [False, True]) [False, True] - then putStrLn "PASS: all 256 tags x four registration states; original decoder agrees" + then do + putStr (unlines (concatMap (\rest => concatMap (\mcp => map (row rest mcp) [0..255]) [False, True]) [False, True])) + putStrLn "PASS: all 256 tags x four registration states; original decoder agrees" else die "FAIL: registry, status or primitive decoder disagreement" diff --git a/src/interface/ffi/build.zig b/src/interface/ffi/build.zig index 0596e52..a6699b4 100644 --- a/src/interface/ffi/build.zig +++ b/src/interface/ffi/build.zig @@ -14,6 +14,19 @@ pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); + const registry = b.addLibrary(.{ + .name = "uaa_registry", + .linkage = .dynamic, + .root_module = b.createModule(.{ + .root_source_file = b.path("src/registry.zig"), + .target = target, + .optimize = optimize, + .link_libc = true, + }), + }); + b.installArtifact(registry); + b.installFile("include/uaa_registry.h", "include/uaa_registry.h"); + const test_step = b.step("test", "Run the FFI unit and integration tests"); for ([_][]const u8{ "src/main.zig", "test/integration_test.zig" }) |path| { const t = b.addTest(.{ diff --git a/src/interface/ffi/include/uaa_registry.h b/src/interface/ffi/include/uaa_registry.h new file mode 100644 index 0000000..2348eb0 --- /dev/null +++ b/src/interface/ffi/include/uaa_registry.h @@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: MPL-2.0 */ +/* Copyright (c) 2026 Jonathan D.A. Jewell */ +#ifndef UAA_REGISTRY_H +#define UAA_REGISTRY_H +#include +#include +#ifdef __cplusplus +extern "C" { +#endif +typedef struct uaa_registry uaa_registry; +typedef int (*uaa_callback)(void *context, const uint8_t *bytes, size_t len); +/* Caller serializes access, supplies a live handle, and destroys it once. + * Registration borrows callback/context until unregister/destroy. Input is a + * readable span for the synchronous call; NULL is valid only at length zero. + * No pointers are retained from an invocation. Callbacks must not unwind across + * the C ABI. Mutation, recursion and destruction during a callback return 6. + * Status codes are Abi.Status: 0 success, 2 unknown tag, 4 null argument, + * 6 invocation failure, 8 absent registration, 9 duplicate, 11 unsupported. + * Success from call is the callback's report, not proof of remote delivery. + */ +uaa_registry *uaa_registry_create(void); +int uaa_registry_destroy(uaa_registry *registry); +int uaa_registry_register(uaa_registry *registry, uint8_t tag, + uaa_callback callback, void *context); +int uaa_registry_unregister(uaa_registry *registry, uint8_t tag); +int uaa_registry_call(uaa_registry *registry, uint8_t tag, + const uint8_t *bytes, size_t len); +#ifdef __cplusplus +} +#endif +#endif diff --git a/src/interface/ffi/src/registry.zig b/src/interface/ffi/src/registry.zig new file mode 100644 index 0000000..df28199 --- /dev/null +++ b/src/interface/ffi/src/registry.zig @@ -0,0 +1,78 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright (c) 2026 Jonathan D.A. Jewell +// Executable consumer of Abi.Registry. Differential execution is evidence, +// not a source/compiler refinement proof or a built-in network transport. +const std = @import("std"); + +pub const Callback = *const fn (?*anyopaque, ?[*]const u8, usize) callconv(.c) c_int; +const Endpoint = struct { callback: Callback, context: ?*anyopaque }; +pub const Registry = struct { + rest: ?Endpoint = null, + mcp: ?Endpoint = null, + active: bool = false, +}; + +fn known(tag: u8) bool { + return tag >= 1 and tag <= 9; +} + +// All calls on one live registry must be serialized by its owner. Callback +// code/context and input remain borrowed for the synchronous call only. +pub export fn uaa_registry_create() ?*Registry { + const r = std.heap.c_allocator.create(Registry) catch return null; + r.* = .{}; + return r; +} + +pub export fn uaa_registry_destroy(r: ?*Registry) c_int { + const registry = r orelse return 4; + if (registry.active) return 6; + std.heap.c_allocator.destroy(registry); + return 0; +} + +pub export fn uaa_registry_register(r: ?*Registry, tag: u8, callback: ?Callback, context: ?*anyopaque) c_int { + const registry = r orelse return 4; + if (registry.active) return 6; + if (!known(tag)) return 2; + const slot = switch (tag) { + 1 => ®istry.mcp, + 9 => ®istry.rest, + else => return 11, + }; + const cb = callback orelse return 4; + if (slot.* != null) return 9; + slot.* = .{ .callback = cb, .context = context }; + return 0; +} + +pub export fn uaa_registry_unregister(r: ?*Registry, tag: u8) c_int { + const registry = r orelse return 4; + if (registry.active) return 6; + if (!known(tag)) return 2; + const slot = switch (tag) { + 1 => ®istry.mcp, + 9 => ®istry.rest, + else => return 11, + }; + if (slot.* == null) return 8; + slot.* = null; + return 0; +} + +pub export fn uaa_registry_call(r: ?*Registry, tag: u8, bytes: ?[*]const u8, len: usize) c_int { + const registry = r orelse return 4; + if (registry.active) return 6; + if (!known(tag)) return 2; + const endpoint = switch (tag) { + 1 => registry.mcp, + 9 => registry.rest, + else => null, + } orelse return 11; + if (bytes == null and len != 0) return 4; + registry.active = true; + defer registry.active = false; + const status = endpoint.callback(endpoint.context, bytes, len); + // A foreign callback cannot inject an unknown ABI status. + return if (status >= 0 and status <= 11) status else 6; +} diff --git a/src/interface/ffi/test/registry_caller.c b/src/interface/ffi/test/registry_caller.c new file mode 100644 index 0000000..3dc56fc --- /dev/null +++ b/src/interface/ffi/test/registry_caller.c @@ -0,0 +1,68 @@ +/* SPDX-License-Identifier: MPL-2.0 */ +/* Copyright (c) 2026 Jonathan D.A. Jewell */ +#include "uaa_registry.h" +#include +#include + +#define CHECK(x) do { if (!(x)) { fprintf(stderr, "FAIL line %d: %s\n", __LINE__, #x); exit(1); } } while (0) +struct context { unsigned endpoint; unsigned seen; unsigned calls; int result; uaa_registry *registry; }; +static int record(void *raw, const uint8_t *bytes, size_t len) { + struct context *ctx = raw; + CHECK(len == 3 && bytes != NULL); + CHECK(bytes[0] == 0 && bytes[1] == 13 && bytes[2] == 255); + ctx->seen = ctx->endpoint; + ctx->calls++; + if (ctx->registry != NULL) { + CHECK(uaa_registry_destroy(ctx->registry) == 6); + CHECK(uaa_registry_unregister(ctx->registry, 1) == 6); + CHECK(uaa_registry_register(ctx->registry, 9, record, ctx) == 6); + CHECK(uaa_registry_call(ctx->registry, 1, bytes, len) == 6); + } + return ctx->result; +} +static int empty(void *raw, const uint8_t *bytes, size_t len) { + (void)raw; + CHECK(bytes == NULL && len == 0); + return 0; +} +int main(void) { + const uint8_t payload[] = {0, 13, 255}; + CHECK(uaa_registry_call(NULL, 1, payload, sizeof payload) == 4); + for (unsigned rest = 0; rest < 2; ++rest) { + for (unsigned mcp = 0; mcp < 2; ++mcp) { + uaa_registry *registry = uaa_registry_create(); + CHECK(registry != NULL); + struct context rc = {9,0,0,0,NULL}, mc = {1,0,0,0,NULL}; + if (rest) CHECK(uaa_registry_register(registry, 9, record, &rc) == 0); + if (mcp) CHECK(uaa_registry_register(registry, 1, record, &mc) == 0); + for (unsigned tag = 0; tag < 256; ++tag) { + rc.seen = mc.seen = 0; + int status = uaa_registry_call(registry, (uint8_t)tag, payload, sizeof payload); + printf("case,%u,%u,%d,%u\n", rest + 2*mcp, tag, status, rc.seen + mc.seen); + } + CHECK(rc.calls == rest && mc.calls == mcp); + CHECK(uaa_registry_destroy(registry) == 0); + } + } + uaa_registry *registry = uaa_registry_create(); + CHECK(registry != NULL); + struct context ctx = {1,0,0,7,registry}; + CHECK(uaa_registry_register(registry, 0, record, &ctx) == 2); + CHECK(uaa_registry_register(registry, 2, record, &ctx) == 11); + CHECK(uaa_registry_register(registry, 1, NULL, &ctx) == 4); + CHECK(uaa_registry_unregister(registry, 1) == 8); + CHECK(uaa_registry_register(registry, 1, record, &ctx) == 0); + CHECK(uaa_registry_register(registry, 1, empty, NULL) == 9); + CHECK(uaa_registry_call(registry, 1, NULL, 1) == 4); + CHECK(ctx.calls == 0); + CHECK(uaa_registry_call(registry, 1, payload, sizeof payload) == 7); + ctx.result = 99; + CHECK(uaa_registry_call(registry, 1, payload, sizeof payload) == 6); + CHECK(uaa_registry_unregister(registry, 1) == 0); + CHECK(uaa_registry_call(registry, 1, payload, sizeof payload) == 11); + CHECK(ctx.calls == 2); + CHECK(uaa_registry_register(registry, 1, empty, NULL) == 0); + CHECK(uaa_registry_call(registry, 1, NULL, 0) == 0); + CHECK(uaa_registry_destroy(registry) == 0); + return 0; +} From 6cf6d12497a95a62d52a731a174afb2e89261d53 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Mon, 16 Nov 2026 11:39:30 +0000 Subject: [PATCH 02/10] Bind the registry shared-library SONAME to the installed ABI name --- scripts/check-runtime-registry.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-runtime-registry.sh b/scripts/check-runtime-registry.sh index f75b889..17182b5 100644 --- a/scripts/check-runtime-registry.sh +++ b/scripts/check-runtime-registry.sh @@ -21,7 +21,7 @@ cp "$root/src/interface/ffi/test/registry_caller.c" "$work/caller.c" (cd "$work"; sha256sum registry.zig uaa_registry.h caller.c oracle.csv) > "$evidence/inputs.sha256" "$zig" version > "$evidence/zig-version.txt" build() { - "$zig" build-lib -dynamic -lc -O ReleaseSafe "$work/registry.zig" -femit-bin="$work/libuaa_registry.so" + "$zig" build-lib -dynamic -lc -O ReleaseSafe --name uaa_registry "$work/registry.zig" -femit-bin="$work/libuaa_registry.so" "$zig" cc -Wall -Wextra -Werror -I "$work" "$work/caller.c" -L "$work" -luaa_registry \ -Wl,-rpath,"$work" -o "$work/caller" } From d8b0424cdb8396411fa5bf055c291ce97f9bff54 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Mon, 16 Nov 2026 11:51:43 +0000 Subject: [PATCH 03/10] Validate the installed registry library and header through the production build --- scripts/check-runtime-registry.sh | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/scripts/check-runtime-registry.sh b/scripts/check-runtime-registry.sh index 17182b5..4d401c5 100644 --- a/scripts/check-runtime-registry.sh +++ b/scripts/check-runtime-registry.sh @@ -15,22 +15,26 @@ trap 'status=$?; rm -rf -- "$work"; if ((status)); then echo FAIL > "$evidence/r # Rebuild the Idris oracle in this invocation: a prior PASS cannot rescue it. bash "$root/scripts/check-registry.sh" > "$evidence/idris.log" 2>&1 cp "$root/build/registry-evidence/idris-oracle.csv" "$work/oracle.csv" -cp "$root/src/interface/ffi/src/registry.zig" "$work/registry.zig" -cp "$root/src/interface/ffi/include/uaa_registry.h" "$work/uaa_registry.h" -cp "$root/src/interface/ffi/test/registry_caller.c" "$work/caller.c" -(cd "$work"; sha256sum registry.zig uaa_registry.h caller.c oracle.csv) > "$evidence/inputs.sha256" +mkdir -p "$work/src" "$work/include" "$work/test" +cp "$root/src/interface/ffi/build.zig" "$work/" +cp "$root/src/interface/ffi/src/registry.zig" "$work/src/" +cp "$root/src/interface/ffi/src/main.zig" "$work/src/" +cp "$root/src/interface/ffi/include/uaa_registry.h" "$work/include/" +cp "$root/src/interface/ffi/test/registry_caller.c" "$work/test/" +cp "$root/src/interface/ffi/test/integration_test.zig" "$work/test/" +(cd "$work"; sha256sum build.zig src/*.zig include/*.h test/* oracle.csv) > "$evidence/inputs.sha256" "$zig" version > "$evidence/zig-version.txt" build() { - "$zig" build-lib -dynamic -lc -O ReleaseSafe --name uaa_registry "$work/registry.zig" -femit-bin="$work/libuaa_registry.so" - "$zig" cc -Wall -Wextra -Werror -I "$work" "$work/caller.c" -L "$work" -luaa_registry \ - -Wl,-rpath,"$work" -o "$work/caller" + (cd "$work"; "$zig" build -Doptimize=ReleaseSafe) + "$zig" cc -Wall -Wextra -Werror -I "$work/zig-out/include" "$work/test/registry_caller.c" \ + -L "$work/zig-out/lib" -luaa_registry -Wl,-rpath,"$work/zig-out/lib" -o "$work/caller" } build > "$evidence/build.log" 2>&1 "$work/caller" > "$evidence/actual.csv" cmp "$work/oracle.csv" "$evidence/actual.csv" cp "$work/oracle.csv" "$evidence/expected.csv" # An actual Zig decoder mutation must compile and be rejected at execution. -sed -i 's/if (!known(tag)) return 2;/if (!known(tag)) return 11;/' "$work/registry.zig" +sed -i 's/if (!known(tag)) return 2;/if (!known(tag)) return 11;/' "$work/src/registry.zig" build > "$evidence/mutant-build.log" 2>&1 if "$work/caller" > "$evidence/mutant.csv" 2> "$evidence/mutant.log"; then if cmp -s "$work/oracle.csv" "$evidence/mutant.csv"; then From 88d70403e078ad01894e1f81f29d6a4457ab024d Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Mon, 16 Nov 2026 12:00:19 +0000 Subject: [PATCH 04/10] Bind runtime comparison to its freshly generated oracle --- .github/workflows/registry-boundary.yml | 6 +++++- .gitignore | 1 + scripts/check-runtime-registry.sh | 15 +++++++++------ src/interface/ffi/include/uaa_registry.h | 4 +++- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/registry-boundary.yml b/.github/workflows/registry-boundary.yml index 3916576..9dfae54 100644 --- a/.github/workflows/registry-boundary.yml +++ b/.github/workflows/registry-boundary.yml @@ -52,7 +52,11 @@ jobs: tar -xf zig.tar.xz echo "$RUNNER_TEMP/zig-x86_64-linux-0.15.2" >> "$GITHUB_PATH" - name: Total proofs and actual C ABI differential execution - run: bash scripts/check-runtime-registry.sh + run: | + set -euo pipefail + # An inherited producer override must not select an old oracle. + EVIDENCE_DIR="$RUNNER_TEMP/unused-oracle" bash scripts/check-runtime-registry.sh + test ! -e "$RUNNER_TEMP/unused-oracle" - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 if: always() with: diff --git a/.gitignore b/.gitignore index f17593f..a3e5f92 100644 --- a/.gitignore +++ b/.gitignore @@ -148,3 +148,4 @@ verification/proofs/agda/*.agdai # Local registry gate evidence; CI uploads it as an artifact. /build/registry-evidence/ +/build/runtime-registry-evidence/ diff --git a/scripts/check-runtime-registry.sh b/scripts/check-runtime-registry.sh index 4d401c5..204c65c 100644 --- a/scripts/check-runtime-registry.sh +++ b/scripts/check-runtime-registry.sh @@ -4,17 +4,20 @@ set -euo pipefail unset CDPATH root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd) -zig=$(command -v "${ZIG:-zig}") -zig=$(cd "$(dirname "$zig")" && pwd)/$(basename "$zig") -test "$("$zig" version)" = 0.15.2 evidence="$root/build/runtime-registry-evidence" mkdir -p "$evidence" echo INCOMPLETE > "$evidence/result.txt" work=$(mktemp -d -t uaa-runtime-registry.XXXXXXXX) trap 'status=$?; rm -rf -- "$work"; if ((status)); then echo FAIL > "$evidence/result.txt"; fi' EXIT -# Rebuild the Idris oracle in this invocation: a prior PASS cannot rescue it. -bash "$root/scripts/check-registry.sh" > "$evidence/idris.log" 2>&1 -cp "$root/build/registry-evidence/idris-oracle.csv" "$work/oracle.csv" +zig=$(command -v "${ZIG:-zig}") +zig=$(cd "$(dirname "$zig")" && pwd)/$(basename "$zig") +test "$("$zig" version)" = 0.15.2 +# Rebuild and consume the oracle in the same private directory. An inherited +# EVIDENCE_DIR or a stale default oracle must not change the inputs to this run. +EVIDENCE_DIR="$work/idris-evidence" bash "$root/scripts/check-registry.sh" > "$evidence/idris.log" 2>&1 +test "$(cat "$work/idris-evidence/result.txt")" = PASS +cp "$work/idris-evidence/idris-oracle.csv" "$work/oracle.csv" +cp -R "$work/idris-evidence" "$evidence/" mkdir -p "$work/src" "$work/include" "$work/test" cp "$root/src/interface/ffi/build.zig" "$work/" cp "$root/src/interface/ffi/src/registry.zig" "$work/src/" diff --git a/src/interface/ffi/include/uaa_registry.h b/src/interface/ffi/include/uaa_registry.h index 2348eb0..276e09a 100644 --- a/src/interface/ffi/include/uaa_registry.h +++ b/src/interface/ffi/include/uaa_registry.h @@ -15,7 +15,9 @@ typedef int (*uaa_callback)(void *context, const uint8_t *bytes, size_t len); * No pointers are retained from an invocation. Callbacks must not unwind across * the C ABI. Mutation, recursion and destruction during a callback return 6. * Status codes are Abi.Status: 0 success, 2 unknown tag, 4 null argument, - * 6 invocation failure, 8 absent registration, 9 duplicate, 11 unsupported. + * 6 invocation failure/reentrancy, 9 duplicate registration, 11 unsupported. + * Unregister returns 8 for an empty slot. Call returns 11 for an unregistered + * REST/MCP slot (or another known, unsupported protocol). * Success from call is the callback's report, not proof of remote delivery. */ uaa_registry *uaa_registry_create(void); From 6fecbe03de654638e294bbf3897a9d46b0ea4821 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Tue, 24 Nov 2026 19:15:27 +0000 Subject: [PATCH 05/10] Expose the actual protocol classifier to Atoma source checking --- scripts/check-runtime-registry.sh | 2 ++ src/interface/ProtocolTagOracle.idr | 19 +++++++++++++++++++ src/interface/ffi/src/protocol_tag.zig | 6 ++++++ src/interface/ffi/src/registry.zig | 5 +---- 4 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 src/interface/ProtocolTagOracle.idr create mode 100644 src/interface/ffi/src/protocol_tag.zig diff --git a/scripts/check-runtime-registry.sh b/scripts/check-runtime-registry.sh index 204c65c..e704bec 100644 --- a/scripts/check-runtime-registry.sh +++ b/scripts/check-runtime-registry.sh @@ -21,6 +21,7 @@ cp -R "$work/idris-evidence" "$evidence/" mkdir -p "$work/src" "$work/include" "$work/test" cp "$root/src/interface/ffi/build.zig" "$work/" cp "$root/src/interface/ffi/src/registry.zig" "$work/src/" +cp "$root/src/interface/ffi/src/protocol_tag.zig" "$work/src/" cp "$root/src/interface/ffi/src/main.zig" "$work/src/" cp "$root/src/interface/ffi/include/uaa_registry.h" "$work/include/" cp "$root/src/interface/ffi/test/registry_caller.c" "$work/test/" @@ -46,3 +47,4 @@ if "$work/caller" > "$evidence/mutant.csv" 2> "$evidence/mutant.log"; then fi echo PASS > "$evidence/result.txt" echo 'PASS: real C ABI, Idris differential matrix, lifetime/refusal regressions and rejecting Zig mutant' + diff --git a/src/interface/ProtocolTagOracle.idr b/src/interface/ProtocolTagOracle.idr new file mode 100644 index 0000000..c44d557 --- /dev/null +++ b/src/interface/ProtocolTagOracle.idr @@ -0,0 +1,19 @@ +-- SPDX-License-Identifier: MPL-2.0 +-- Copyright (c) 2026 Jonathan D.A. Jewell +module Main +import Abi.ProtocolFinite +%default total + +present : Bits8 -> Nat +present tag = case protocolFromWire tag of + Nothing => 0 + Just _ => 1 + +rows : Nat -> Nat -> IO () +rows Z index = pure () +rows (S fuel) index = do + putStrLn (show index ++ " " ++ show (present (cast index))) + rows fuel (S index) + +main : IO () +main = rows 256 0 diff --git a/src/interface/ffi/src/protocol_tag.zig b/src/interface/ffi/src/protocol_tag.zig new file mode 100644 index 0000000..cf2b1e6 --- /dev/null +++ b/src/interface/ffi/src/protocol_tag.zig @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright (c) 2026 Jonathan D.A. Jewell +// Presence classification only; transport availability remains separate. +pub fn known(tag: u8) bool { + return tag >= 1 and tag <= 9; +} diff --git a/src/interface/ffi/src/registry.zig b/src/interface/ffi/src/registry.zig index df28199..2ce1185 100644 --- a/src/interface/ffi/src/registry.zig +++ b/src/interface/ffi/src/registry.zig @@ -3,6 +3,7 @@ // Executable consumer of Abi.Registry. Differential execution is evidence, // not a source/compiler refinement proof or a built-in network transport. const std = @import("std"); +const known = @import("protocol_tag.zig").known; pub const Callback = *const fn (?*anyopaque, ?[*]const u8, usize) callconv(.c) c_int; const Endpoint = struct { callback: Callback, context: ?*anyopaque }; @@ -12,10 +13,6 @@ pub const Registry = struct { active: bool = false, }; -fn known(tag: u8) bool { - return tag >= 1 and tag <= 9; -} - // All calls on one live registry must be serialized by its owner. Callback // code/context and input remain borrowed for the synchronous call only. pub export fn uaa_registry_create() ?*Registry { From 788ab14f13cd66f768430cc76e66ae6b6e86dd3c Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Tue, 24 Nov 2026 19:28:50 +0000 Subject: [PATCH 06/10] Bound Zig downloads and retain the exact compiler digest --- .github/workflows/registry-boundary.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/registry-boundary.yml b/.github/workflows/registry-boundary.yml index 9dfae54..d1b1a50 100644 --- a/.github/workflows/registry-boundary.yml +++ b/.github/workflows/registry-boundary.yml @@ -47,7 +47,8 @@ jobs: run: | set -euo pipefail cd "$RUNNER_TEMP" - curl --proto '=https' --proto-redir '=https' -fL --retry 3 https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz -o zig.tar.xz + curl --proto '=https' --proto-redir '=https' --connect-timeout 20 --max-time 120 -fL https://zigmirror.hryx.net/zig/zig-x86_64-linux-0.15.2.tar.xz -o zig.tar.xz || \ + curl --proto '=https' --proto-redir '=https' --connect-timeout 20 --max-time 120 -fL https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz -o zig.tar.xz echo '02aa270f183da276e5b5920b1dac44a63f1a49e55050ebde3aecc9eb82f93239 zig.tar.xz' | sha256sum -c - tar -xf zig.tar.xz echo "$RUNNER_TEMP/zig-x86_64-linux-0.15.2" >> "$GITHUB_PATH" @@ -65,3 +66,4 @@ jobs: build/registry-evidence/ build/runtime-registry-evidence/ if-no-files-found: error + From d5c047a6952e8d8c11d48d3cab857bfea1e4b1b2 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Tue, 24 Nov 2026 19:33:21 +0000 Subject: [PATCH 07/10] Use the checksum-verified Zig mirror exercised by Atoma CI --- .github/workflows/registry-boundary.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/registry-boundary.yml b/.github/workflows/registry-boundary.yml index d1b1a50..c3a0848 100644 --- a/.github/workflows/registry-boundary.yml +++ b/.github/workflows/registry-boundary.yml @@ -48,6 +48,7 @@ jobs: set -euo pipefail cd "$RUNNER_TEMP" curl --proto '=https' --proto-redir '=https' --connect-timeout 20 --max-time 120 -fL https://zigmirror.hryx.net/zig/zig-x86_64-linux-0.15.2.tar.xz -o zig.tar.xz || \ + curl --proto '=https' --proto-redir '=https' --connect-timeout 20 --max-time 120 -fL https://zig.linus.dev/zig/zig-x86_64-linux-0.15.2.tar.xz -o zig.tar.xz || \ curl --proto '=https' --proto-redir '=https' --connect-timeout 20 --max-time 120 -fL https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz -o zig.tar.xz echo '02aa270f183da276e5b5920b1dac44a63f1a49e55050ebde3aecc9eb82f93239 zig.tar.xz' | sha256sum -c - tar -xf zig.tar.xz From 730d0c775c9ce84edbe37854d49680cb3b3ed84d Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Tue, 24 Nov 2026 20:54:31 +0000 Subject: [PATCH 08/10] Compile the scalar Idris oracle in the native registry gate --- scripts/check-registry.sh | 15 ++++++++++++++- src/interface/ProtocolTagOracle.idr | 2 ++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/scripts/check-registry.sh b/scripts/check-registry.sh index cc4f088..360527f 100644 --- a/scripts/check-registry.sh +++ b/scripts/check-registry.sh @@ -16,7 +16,8 @@ for module in Protocol ProtocolFinite Status Registry; do cp "$root/src/interface/Abi/$module.idr" "$work/Abi/" done cp "$root/src/interface/RegistryCheck.idr" "$work/" -(cd "$work"; sha256sum Abi/*.idr RegistryCheck.idr) > "$evidence/inputs.sha256" +cp "$root/src/interface/ProtocolTagOracle.idr" "$work/Main.idr" +(cd "$work"; sha256sum Abi/*.idr RegistryCheck.idr Main.idr) > "$evidence/inputs.sha256" (cd "$work"; "$idris" --total -Werror --codegen refc -o registry-check RegistryCheck.idr) > "$evidence/build.log" 2>&1 if grep -q '^Error:' "$evidence/build.log"; then cat "$evidence/build.log" >&2; exit 1; fi test -x "$work/build/exec/registry-check" @@ -27,6 +28,17 @@ if grep -q '^Error:' "$evidence/holes.log"; then cat "$evidence/holes.log" >&2; grep '^case,' "$evidence/registry.log" > "$evidence/idris-oracle.csv" test "$(wc -l < "$evidence/idris-oracle.csv")" -eq 1024 +# The scalar oracle consumes the authoritative decoder in the same fresh profile. +(cd "$work"; "$idris" --total -Werror --codegen refc -o tag-oracle Main.idr) > "$evidence/tag-build.log" 2>&1 +if grep -q '^Error:' "$evidence/tag-build.log"; then cat "$evidence/tag-build.log" >&2; exit 1; fi +test -x "$work/build/exec/tag-oracle" +(cd "$work"; printf ':m\n:q\n' | "$idris" --no-banner Main.idr) > "$evidence/tag-holes.log" 2>&1 +grep -q 'No holes' "$evidence/tag-holes.log" +if grep -q '^Error:' "$evidence/tag-holes.log"; then cat "$evidence/tag-holes.log" >&2; exit 1; fi +"$work/build/exec/tag-oracle" > "$evidence/tag-oracle.tsv" +awk 'NF != 2 || $1 != NR-1 || $2 != (NR >= 2 && NR <= 10 ? 1 : 0) {exit 1} + END {if (NR != 256) exit 1}' "$evidence/tag-oracle.tsv" + # Mutate the actual decoder: unknown values must not turn into REST. sed -i 's/)))))))))) = Nothing/)))))))))) = Just REST/' "$work/Abi/ProtocolFinite.idr" if (cd "$work"; "$idris" --total -Werror --check Abi/ProtocolFinite.idr) > "$evidence/reject.log" 2>&1; then @@ -40,3 +52,4 @@ grep -q 'finiteDecodeSound' "$evidence/reject.log" } > "$evidence/identity.log" echo PASS > "$evidence/result.txt" printf 'PASS: total proof modules, no holes, executable matrix, rejecting decoder mutation.\nEvidence: %s\n' "$evidence" + diff --git a/src/interface/ProtocolTagOracle.idr b/src/interface/ProtocolTagOracle.idr index c44d557..8a6f6e6 100644 --- a/src/interface/ProtocolTagOracle.idr +++ b/src/interface/ProtocolTagOracle.idr @@ -1,7 +1,9 @@ -- SPDX-License-Identifier: MPL-2.0 -- Copyright (c) 2026 Jonathan D.A. Jewell module Main +import Abi.Protocol import Abi.ProtocolFinite +import Data.Fin %default total present : Bits8 -> Nat From dc3d57df5ceaaf8fe9459cb027587c5970dababb Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Tue, 24 Nov 2026 21:46:13 +0000 Subject: [PATCH 09/10] docs: describe implemented Zig registry and remaining proof boundary --- README.adoc | 51 +++++++++++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/README.adoc b/README.adoc index 1469888..c5ef53b 100644 --- a/README.adoc +++ b/README.adoc @@ -23,26 +23,29 @@ image:https://img.shields.io/badge/Zig-Zero--overhead-F7A41D?logo=zig&logoColor= image:https://api.thegreenwebfoundation.org/greencheckimage/github.com[Green Web,link="https://www.thegreenwebfoundation.org/green-web-check/?url=github.com"] -One C ABI for every estate service protocol. A caller links this library and -picks a transport by protocol tag, instead of each service re-rolling its own -HTTP or MCP client. +An Idris2-defined ABI with pure Zig FFI and API implementations for estate +service protocols. The current shared library dispatches synchronous calls to +caller-supplied REST and MCP callbacks through C-compatible declarations. [IMPORTANT] ==== -*Status: minted, no adapter code yet.* This repository was initialised from -`rsr-template-repo` on 2026-11-05. The adapter itself lands in the pull requests -that follow, in the order given under <>. Nothing below is a claim that the -code exists until those land. +*Status: experimental callback registry implemented.* The Zig shared library +supports registration, calls, unregistration and destruction, with explicit +refusals for unsupported tags and invalid state. Hosted checks compare 1,024 +runtime cases with a fresh Idris2 oracle and exercise lifetime/reentrancy +contracts. Built-in HTTP/MCP clients and complete source-to-boundary refinement +remain open. See <> for the distinction between current and planned work. ==== == What this is -Two things already exist in the estate and are joined here: +This adapter connects two parts of the estate; connector-pool integration is +still planned: * the *protocol taxonomy* from `boj-server` (`Boj.Protocol`): nine wire protocols (MCP, LSP, DAP, BSP, NeSy, Agentic, Fleet, gRPC, REST) with an Idris2-proven tag encoding (mirrored in Zig and seam-tested in `boj-server`; - here the Idris2 side exists and the Zig side is still to come); + here both the Idris2 model and Zig runtime classifier exist); * the *HTTP connector pool* from `developer-ecosystem/zig-api` (`connector.zig`, `uapi_connector_*`), the only one of those protocols with a working client today. @@ -51,9 +54,10 @@ In `boj-server` the taxonomy is a column of the cartridge catalogue: it records which protocols a cartridge exposes, and nothing routes a call by it. This adapter makes it a dispatch table. -The design rule: *every protocol the ABI names either works or refuses.* A -call on a protocol with no transport returns `UAPI_ERR_UNSUPPORTED`. It is -never silently accepted. +The design rule: *every protocol the ABI names either works or refuses.* The +current registry supports caller-supplied REST/MCP handlers; other known tags +refuse. See the installed `uaa_registry.h` for operation-specific status values. +A successful callback does not establish remote delivery. [[plan]] == Layers and plan @@ -68,14 +72,14 @@ never silently accepted. | `boj-server` `Boj.Protocol`, `zig-api` `ZigApi.ABI.Connector` | Zig runtime (`src/interface/ffi/`) -| Transport table indexed by protocol tag. REST: the `zig-api` connector, - moved, not rewritten. MCP: a new JSON-RPC client over HTTP and stdio. The - other seven protocols are declared and refuse. +| Implemented: synchronous borrowed callback registry for REST/MCP; other tags + refuse. Planned: integrate the REST connector and add MCP HTTP/stdio clients. | `zig-api` `connector.zig`, `core.zig`; MCP is new -| C header (`src/interface/generated/abi/`) -| Generated from the Idris2 ABI; never edited by hand -| — +| Foreign declarations (`src/interface/ffi/include/uaa_registry.h`) +| Implemented C-compatible declarations for the Zig runtime. Full mechanical + generation and correspondence with Idris2 remain proof obligations. +| Idris2 ABI contracts; Zig implementation |=== Once the adapter is published, `developer-ecosystem/zig-api` and `boj-server` @@ -87,10 +91,13 @@ Proof obligations follow the estate proof policy (`standards/3-practice/PROOF-POLICY.adoc`): Idris2 for the ABI, Kani for the `unsafe` and FFI seams of Rust callers. -*Proofs:* 10 proven of 15; 4 open, 1 argued, all named in -link:docs/EXPLAINME.adoc#proof-ledger[the proof ledger]. Proven means proven -for the Idris2 model; the Zig runtime and the C boundary are open rows, and -agreement with `boj-server`'s taxonomy is argued. +*Proof scope:* see link:docs/EXPLAINME.adoc#proof-ledger[the proof ledger]. +Idris2 model proofs, exhaustive native checks and Atoma's closed scalar source +interpretation are distinct evidence. The scalar classifier is checked over +all 256 byte tags against the Idris2 decoder; compiler refinement, pointer +provenance and the stateful callback boundary remain open. Consumers must +serialize access, retain borrowed callback/context lifetimes and destroy each +live handle exactly once. == Where to go next From a77bf4b08fd61e5df42971be8279a24399553315 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Tue, 24 Nov 2026 23:13:28 +0000 Subject: [PATCH 10/10] fix(ci): require successful registry evidence in CI gate --- .github/workflows/registry-boundary.yml | 15 +++++++++++++++ docs/status/ROADMAP.adoc | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/registry-boundary.yml b/.github/workflows/registry-boundary.yml index c3a0848..1e67873 100644 --- a/.github/workflows/registry-boundary.yml +++ b/.github/workflows/registry-boundary.yml @@ -68,3 +68,18 @@ jobs: build/runtime-registry-evidence/ if-no-files-found: error + gate: + name: CI/gate + needs: [registry] + if: always() + runs-on: ubuntu-24.04 + timeout-minutes: 5 + steps: + - name: Require completed registry boundary evidence + env: + REGISTRY_RESULT: ${{ needs.registry.result }} + run: | + if [ "$REGISTRY_RESULT" != success ]; then + echo "::error::Registry boundary did not pass: $REGISTRY_RESULT" + exit 1 + fi diff --git a/docs/status/ROADMAP.adoc b/docs/status/ROADMAP.adoc index 5878c5b..a1cc448 100644 --- a/docs/status/ROADMAP.adoc +++ b/docs/status/ROADMAP.adoc @@ -11,7 +11,8 @@ link:../decisions/2026-11-16-registration-boundary.adoc[registration boundary] for the evidence and limits. The follow-up link:../decisions/2026-11-16-runtime-registry.adoc[runtime registry] adds a real Zig shared library and C caller with a 1,024-row Idris differential gate. -Its current PR must pass hosted CI before qualification. Built-in REST/MCP +Its current PR must pass hosted CI before qualification. The required +`CI/gate` depends on the registry job and fails on failure, cancellation or skip. Built-in REST/MCP network transports and source/compiler refinement remain pending. == Milestones