interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / docs / HARDWARE_GATES.md

64 lines · 4262 bytes Raw Blame History Rendered
1# Hardware gates: what ran where, and what has no physical receipt
2
3This page explains the hardware-gate register [`hardware-gates.tsv`](hardware-gates.tsv), which lists
4every Aienux and GB10 GPU-driver capability that touches hardware, the host and QEMU gates that
5cover it, and its physical status. It is the answer to "has this run on the machine?": a row says PASS
6only when a receipt file in this repository holds the matching `HWGATE` line. Everything else is
7NOT_RUN or MISSING_IMPLEMENTATION, and stays so until a separately authorized attended run
8produces its own receipt.
9
10This page grants no hardware, boot, staging, service or firmware authority. Physical driver
11qualification is scoped separately (Linear DRA-174 over DRA-149..153); native boot campaigns use
12[`campaigns/B7B-PHYSICAL-BOOT-PREP.md`](campaigns/B7B-PHYSICAL-BOOT-PREP.md) and
13[`campaigns/SPARK-BOOT-INPUT-20261028.md`](campaigns/SPARK-BOOT-INPUT-20261028.md), and both need
14the TRUST-1 owner ceremony first.
15
16## The rule and its check
17
18- Statuses: `PASS`, `FAIL` (observations) and `NOT_RUN`, `BLOCKED_HARDWARE`, `BLOCKED_OPERATOR`,
19 `MISSING_IMPLEMENTATION` (no observation). Tiers: `HOST`, `QEMU`, `PHYSICAL`. QEMU is never
20 PHYSICAL, and a host run on a machine that has the device is still HOST.
21- Every gate id has exactly one `PHYSICAL` row, so a missing physical result is written down
22 instead of left out.
23- A PASS or FAIL row names a receipt under `evidence/` that contains the exact line
24 `HWGATE <id> <tier> <status>`. No receipt, no claim.
25
26[`tools/hwgates/hwgates.om`](../tools/hwgates/hwgates.om) (seeded Omega, built with the compiler
27named in [`PIN`](../PIN)) enforces these as rules R1..R9, refuses an
28empty register (R8) and the deletion of a gate whose receipt still names it (R9), and prints
29`HWGATES PASS rows=… gates=… physical=… physical_pass=… physical_not_pass=…`. The local Spark gate
30`AIENOS-HW-GATES` (`tests/gates/run.sh hw-gates`, which runs `tools/hwgates/gate.sh`) runs the
31checker on the register, its fixtures, mutants and planted-bad copies, and the shell checks that
32the checker cannot do (receipt files, inventory, receipt claims, source commits, size alarm); the
33comments in `gate.sh` name each check. Without the pinned compiler it exits 3 (NOT_RUN), never 0.
34
35To add a physical PASS: run the attended procedure under its own authorization, commit the raw
36receipt under `evidence/` with the `HWGATE <id> PHYSICAL PASS` line plus source commit, image
37digest, machine identity and commands, then change the row. The gate refuses the row change
38without that file.
39
40## Where the statuses are
41
42[`hardware-gates.tsv`](hardware-gates.tsv) is the only place a status is written; this page does
43not repeat them. Each PASS or FAIL row there names its receipt, and the receipt holds the exact
44commands and logs (the 2026-11-07 host and QEMU run is
45[`evidence/HWGATES-20261107/RECEIPT.txt`](../evidence/HWGATES-20261107/RECEIPT.txt), with the raw
46logs beside it). To read it as a table: `column -t -s "$(printf '\t')" docs/hardware-gates.tsv`.
47
48## What a physical receipt needs
49
50[`hardware-gates-needs.tsv`](hardware-gates-needs.tsv) lists every gate id and what its PHYSICAL
51receipt must show before that row can say PASS. The blocker and owner of each gate are field 7
52of its PHYSICAL row in `hardware-gates.tsv`; this page does not repeat either. The gate
53(`tools/hwgates/gate.sh`) refuses when the id sets of the two files differ, so a gate that has
54no receipt yet cannot leave the inventory without a reviewed change to both files. To read
55them side by side:
56`join -t "$(printf '\t')" <(grep -v '^#' docs/hardware-gates-needs.tsv | sort) <(awk -F '\t' '$4=="PHYSICAL" {print $1 "\t" $7}' docs/hardware-gates.tsv | sort)`.
57
58A receipt is never rewritten. When a later review finds that a committed receipt line claims
59more than the register allows, a dated `CORRECTION-<date>.txt` beside the receipt names the line
60(`CORRECTS HWGATE <id> <tier> <status>`) and says why. The gate refuses a receipt line whose
61status differs from the register's row for that id and tier unless such a correction covers it.
62
63The native Spark path still runs the GB10 through NVIDIA's `nvidia.ko`/`nvidia-uvm.ko`
64580.173.02; none of the GPU gates replaces it.