M16.3 baseline assurance review
The baseline has checked-in safeguards and regression coverage for all four M16.3 areas. The baseline commit records a passing macOS ARM64 gate with explicit sandbox exceptions. Linux child confinement has historical enforced evidence on x86_64 with Landlock ABI 6. Rooted Seatbelt child confinement and pinned process-plugin execution on macOS remain unverified. The baseline predates trap and eval integration. M16.3 plan, Post-eval evidence
M16.6 raises the Linux minimum to Landlock ABI 3 and bypasses
native executable reuse for FFI. See the
audit validation for evidence on that candidate. The
results below record the earlier builds.
Review scope. Session
20261107-parallel-language / security / attempt 2
inspected source, test assertions and recorded results at
3d25e9145e18bb97ddb9f424a7cc417091ff007b. This review
ran documentation checks only. The broad gate is deferred to the
merged tree. Evidence below identifies the tree and host where a
result was recorded. The coverage column describes test assertions
in the reviewed checkout.
Assurance matrix
| Boundary | Safeguards and prerequisites | Checked-in coverage | Evidence and limits |
|---|---|---|---|
| Package ceilings and capability narrowing | Platforms supply capability values. Source-file ownership
governs ceiling checks, including specialized generic and
interface calls. Fs.restrict canonicalizes an
existing subroot and read_only carries forward write
denial. Net.restrict narrows a host grant and
none removes it. Re-sandboxing preserves the parent's
restrictions. ADR-0074,
ADR-0095,
capability
reference |
Ceiling diagnostics cover dependencies, projections and concrete receivers. C and interpreter cases cover handles carried through helpers and records, filesystem operations, traversal and symlink denial, read-only views and Net narrowing. Construction and reflection are checked separately. Package implementation, capability checks | Baseline macOS gate plus historical Linux coverage. Ceilings express declared intent. Runtime filesystem checks use resolution followed by prefix checks and assume a root free of hostile concurrent mutation. Child-process containment relies on the OS policy below. ADR-0095 |
| Linux process sandbox | Select Process.sandbox(fs, net) for
run, stream or agent
run_input. Landlock restricts filesystem access and
seccomp filters syscalls after no_new_privs. Requires
usable Landlock, seccomp and a recognized audit architecture. The
interpreter needs a C compiler to build the shared-policy
launcher. Setup errors deny spawning. Root Net permits networking,
none() denies new sockets and non-empty host lists
are unsupported. ADR-0096,
launcher,
native
policy |
Both backends test allowed and denied operations and
preservation of parent restrictions. Low-level tests check policy
setup and failure. The gate exposes enforced or
UNVERIFIED, and
HARNESS_REQUIRE_SANDBOX=1 requires enforcement. Interpreter
process support, sandbox
launcher, native
policy, gate |
Enforced on Linux 6.12.94+ x86_64, Landlock ABI 6 at
a6e3585. Enforcement on the merged candidate and
other kernel, ABI or architecture combinations needs its own
evidence. An UNVERIFIED result establishes only the
checks that ran, such as an explicit denial on unavailable Linux
policy. CP-10.2
results, probe
results |
| macOS process sandbox | The deny-default Seatbelt profile is passed to
/usr/bin/sandbox-exec. It needs that executable, an
accepted profile and a child compatible with its system-read and
selected-root rules. Networking follows the selected Net grant.
Missing launcher support denies spawning. Descriptor-pinned
process plugins need fexecve, which the Darwin path
lacks and rejects. ADR-0097,
ADR-0099,
native
spawn |
Portable tests in the Linux probe suite check emitted profile bytes and path escaping. Process smoke cases cover basic launch, environment and stream behavior. Workspace/tool-server and pinned-plugin cases use explicit unverified markers when the host cannot exercise them. Profile emission, process launcher, pinned-plugin declarations | Implemented. Rooted Seatbelt enforcement and descriptor-pinned
execution are unverified in the baseline macOS gate. Profile
generation and basic launch evidence cover different assertions
from rooted policy enforcement. Sandbox
reference, AT-04 gate record |
| Generator evaluation and generated source | Explicit offline gen uses a pure interpreter
entry. Fixed policy sets 50,000,000 fuel, 256 MiB of cumulative
charged heap growth, 16 MiB of returned text and a depth guard.
Generated source is parsed, formatted and checked in the host
graph before publication. Freshness checks use generator closure,
reflection, toolchain/ABI and output hashes. ADR-0078,
ADR-0079,
ADR-0082,
ADR-0084 |
Pure IR tests check effect refusal and allocation charging.
Generator tests cover fuel, heap, depth, output size, invalid
output, dependency edges, stale/edited/orphan companions, failed
validation before publication and write-free --check.
Generated programs run on both backends. Pure
interpreter tests, generator
tests, reflection
tests |
Recorded generator checkpoint and baseline macOS gate. Charged heap measures interpreter accounting rather than total process memory. Companion hashes establish freshness and integrity against the recorded inputs, with package trust still required. Shared-worker coverage must be checked again after eval lands. CP-9.3 record, generator reference |
| Trusted platform natives and FFI | Platform native names resolve in a compiled-in registry.
Private top-level externs require [ffi] and explicit
ffi authority in the declaring package, including
root opt-in for FFI dependencies. Manifests constrain headers,
libraries and pkg-config metadata. ABI lowering
checks C prototypes and limits supported types and buffer
ownership. Interpreted calls require a C compiler and use a framed
helper. The compiler, shim and native dependencies are trusted. ADR-0093,
ADR-0151,
ADR-0152,
FFI reference |
Tests cover missing package/root opt-in, malformed metadata, duplicate shim paths, prototype and toolchain errors, shim cache invalidation, buffer ownership, UTF-8 handling and helper death. Example goldens exercise SQLite and zlib through both backends. FFI cache tests, SQLite examples, zlib examples | The baseline macOS gate passed with its named exceptions. Earlier macOS results distinguish Apple SQLite without extension loading from Homebrew SQLite with it. The helper preserves FFI state and reports helper death as a trap. Native C retains native crash behavior. Neither form supplies OS confinement for shims. FFI reference |
The generator's execution authority and the companion's runtime
authority are separate. The pure worker refuses platform calls,
print, exit, parallel operations and externs. Runtime companions
still use normal resolution, visibility and ceilings. Generated
imports are limited to the host, reflection and the ADR-0084
package edges, with a dedicated ToolSchema allowance for
codec.rt. Ordinary build, run and check verify
companions without running generators. Explicit
gen --check can evaluate a stale job while remaining
write-free. Pure
worker, generator
path, ToolSchema
tests
How to read the platform results
- Baseline macOS ARM64. The message for
3d25e914recordsCC=gcc scripts/check.sh --quietendingcheck: OKon tree1f7ba09807c1f970421be8d6793d4a249d02a6a6. That tree matches the reviewed commit. It reports 1,630 workspace Rust passes, 795 C/interpreter comparisons and 484 diagnostic goldens. It marks Linux escape proofs, rooted Seatbelt, pinned process plugins and case-sensitive filesystem casesUNVERIFIED. The earlier Apple M1/macOS 26.6 record in commit1a839edbdescribes rooted Seatbelt children aborting and Darwin descriptor execution returning denial.Mac gate evidence with the same sandbox distinctions - Historical enforced Linux. The CP-10.2 record
identifies
a6e3585, an ancestor of the baseline. Its enforcement run usedHARNESS_REQUIRE_SANDBOX=1, reported nine passing focused tests acrosssandbox_escape,sandbox_probeandprocess_sandbox, and recorded a passing gate with 770 differential comparisons. The policy allows fixed system read/execute roots and/dev/nullin addition to the selected filesystem grant. The restricted environment keeps onlyPATH=/usr/bin:/bin. Landlock rights depend on the ABI, includingREFERwhen available.socketpairremains available with networking disabled. Ordinarycli.processretains its unsandboxed behavior. Checkpoint evidence, policy reference - Generator and FFI regression history. CP-9.3
records 735 differential programs and 441 diagnostics. The earlier
generator fix
9060b8carecords 65 generator and 11 generated-tool passes. Core FFI fixfb45c710records 22 focused FFI passes without a host-specific qualification claim. On macOS 26.6/M1,a6ed274brecords SQLite goldens on C and interpreter with Apple SQLite 3.51.0 (OMIT_LOAD_EXTENSION) and Homebrew SQLite 3.53.1 (extension loading available viaHARNESS_FFI_PREFIX). It reports empty golden stderr for SQLite and zlib and a green gate with the macOS sandbox exceptions. Checkpoint log, FFI dependency requirements
The workflow config lists Linux x64 and macOS ARM64 gates. Its Windows job identifies the runner. Platform qualification here comes from the recorded assertions and their outcomes. CI workflow
Checks for final review after eval lands
Post-eval review evidence
The baseline report landed in PR #178. The post-eval review
covers main at
d163c5b2febcd7775353afba0cd8cfd001d0edb0, tree
58732611ee0ac357e2f0bba1e913cdfaf3dbb451. The merge
contains the trap/eval campaign tip
1c7329707bad87a0d73d315adc0be3ac08c653ac. The first
gated integration e18116a4 and the landed tree have
identical compiler, runtime, and test sources. The landed tree was
gated again after plan, site, and handoff changes. Baseline
PR, landed
integration
| Check | Review evidence | Outcome and limits |
|---|---|---|
| Capability and process scope | The landed delta keeps the core process launcher, Linux and Seatbelt policies, and capability regression files unchanged from the baseline. The type checker shares substitution and expectation helpers. Eval checks concrete source signatures before handle erasure, including nested aggregate fields. | The Linux x64 GCC and Clang gates passed with enforced Landlock ABI 7. The macOS gate passed the capability and package suites. Rooted Seatbelt workspace and tool processes and eight pinned process-plugin cases remain unverified on macOS. Capability checks, package implementation, workspace ownership contract |
| Eval eligibility | The frontend builds an in-memory wrapper in the selected module and resolves its checked IR identity. The command checks reachable concrete functions before calling the worker. The walk inspects nested branches, loops and switch arms. It refuses externs, capability signatures, unknown targets, external intrinsics, platform calls, print, exit and parallel statements. | The integrated unit and CLI suites passed. They cover
transitive native refusal, missing-compiler success, a wrapper
that leaves ordinary main idle, and unchanged project
contents. Eligibility
implementation, eval
frontend tests, eval
command |
| Pure worker and generator publication | Eval and generators share sandboxed machine construction and
use separate decoders. The worker applies fuel, heap and depth
bounds and guards externs before FFI helper compilation. Eval
counts the full encoded record before returning owned success
bytes. The generator decoder still checks
result<str, str> and the returned text limit.
Orphan removal still requires a regular candidate file and a valid
content hash. |
The integrated gate passed the worker and generator regressions, including exact output bounds, no partial result, byte-identical companions and generated programs on both backends. Worker, worker tests, generator regressions |
| Trap reporting and FFI trust | Opt-in trap capture bounds frames and metadata. Argument rendering uses checked source classes, keeps handles payload-free and applies final secret-state suppression. The ordinary FFI helper remains trusted native code. | The integrated trap and core FFI suites passed. SQLite and zlib each passed six additional plugin-local goldens on C and interpreter using the gated release binary. ADR-0151 and ADR-0152 retain their Proposed status. Trap report tests, FFI cache tests, FFI contract, ADR index |
PR #179 separately landed atomic lockfile publication and a regression that checks that replacement does not write through a symlink. Its review tracks existing policy decisions and limitations, including the scope of Linux network and process restrictions and the shared tool-server behavior described in ADR-0118. Items P1–P9 remain recorded for owner disposition in that review. ADR-0118 is still Proposed. November review, ADR-0118, PR #179
The zlib and SQLite integration tests probe system headers
before running the plugin-local C/interpreter goldens. To verify
the examples explicitly, this review ran
harness plugin check for both packages from a
temporary copy of the landed plugin trees using the gated release
binary. The GCC header probe reported SQLite 3.54.0
and zlib 1.2.12. pkg-config reported
SQLite 3.51.0, zlib 1.2.12 and linker
arguments -lsqlite3 -lz. Header and package metadata
versions are separate observations. The core FFI tests use their
own fixture shims. Plugin
checks, core
FFI cache tests
The local macOS ARM64
CC=gcc scripts/check.sh --quiet gate ended
check: OK on the exact landed tree. Log
check-20261107-163251-15972.log reports 1,673 Rust
passes across 77 test runs and 795 cross-backend program
comparisons with zero failures. It also records 484 diagnostic
goldens, 18 spec examples, sanitizer checks and plugin acceptance.
Linux enforcement, rooted Seatbelt workspace and tool processes,
eight process-plugin cases, and case-sensitive fixtures were
marked UNVERIFIED on that host.
The Linux x64 GCC and Clang gates on d163c5b2 each
reported sandbox: enforced landlock-abi=7 and
check: OK, with 800 C/interpreter comparisons, 484
diagnostic goldens and 18 spec examples. The logs identify the
tested architecture and Landlock ABI. ThreadSanitizer was clean
under Clang and unverified under GCC due to its runtime probe. The
Windows job passed runner identification only. Linux
GCC, Linux
Clang, Windows
smoke
The owner authorized merging this documentation closeout without additional gates. The results above apply to the reviewed implementation tree.