Discovery Without Authority: Epistemic Hardware Firewalls, Synchronous/Asynchronous Fault Containment, and Five-Plane Reality Certification in Zero-Dependency Bare-Metal Operating Systems
Year: 2026
Type: preprint
Abstract: Bare-metal operating system kernels commonly collapse epistemic discovery (observing partial, noisy, or vendor-idiosyncratic bus state) into mutation authority capable of resetting root complexes, toggling power rails, or staging gigabyte-scale DMA payloads. Even memory-safe Rust kernels inherit this fragility whenever a peripheral register read triggers an uncontained synchronous Data Abort, an imprecise asynchronous System Error (SError), a time-of-check-to-time-of-use (TOCTOU) Device Tree race, or an over-claimed boolean readiness flag that masks unverified silicon execution. This paper introduces a cohesive architecture for Discovery Without Authority, implemented and empirically evaluated inside SANI (sani_seed v7.1.0), a zero-dependency, no_std, panic=abort Rust operating system kernel comprising 494,060 LOC across 648 files. Centered on 9,224 LOC across six core substrate and discovery modules, the design contributes four tightly coupled invariants: 1. A Three-Layer Epistemic Firewall (src/autopoiesis/epistemic_probe.rs) that binds hardware observations to an encapsulated EpistemicAssessment type (seven private fields) and gates destructive recovery behind non-Copy, non-Clone linear AuthorizedRecovery tokens consumed by value on execution.2. Dual Synchronous and Asynchronous ARMv9 EL2 Fault Containment (src/substrate/aarch64.rs and src/substrate/psci.rs) pairing CAS-armed single-instruction assembly MMIO probes, explicit forbidden-range firewalls (0x8000_0000..0x8800_0000), and register-offset allowlists with HCR_EL2.AMO SError draining across an 8-nop unmask window and -1000 latch gating across PSCI v1.1 transports.3. Zero-TOCTOU Bus Topology and Physical Aperture Discovery (src/substrate/pci.rs and src/substrate/fdt/discover.rs) combining IRQ-safe fixed lock hierarchies, dual-FNV-1a TopologyEpoch snapshots, RAII BAR sizing, and double-rescanned /reserved-memory BodyMap validation within 0xC000_0000..0xE800_0000.4. A Five-Plane Reality Certificate (src/substrate/evidence_fabric.rs) separating compiled declarations from closed silicon evidence across 15 tracked features per ISA. On host x86_64, 1,246 unit tests pass (0 failures) alongside a 100% / 100% / 93% / 80% / 80% (12/15 Evidence-Closed) certificate. On bare-metal ARMv9 Google Pixel 9a (tegu, Tensor G4), guarded bring-up stages a 105,373,368 B (100.49 MiB) Shannon modem TOC in 169,149 ms with faults=0 (4 skipped hazards), advancing closed silicon proof from 80% (12/15) to 86% (13/15).
Author: Nowakowski, Daniel
Language: English
Subfield: Hardware and Architecture
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7230457940
