aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / docs / HARDWARE_GATES.md
| 1 | # Hardware gates: what ran where, and what has no physical receipt |
| 2 | |
| 3 | This page explains the hardware-gate register [`hardware-gates.tsv`](hardware-gates.tsv), which lists |
| 4 | every Aienux and GB10 GPU-driver capability that touches hardware, the host and QEMU gates that |
| 5 | cover it, and its physical status. It is the answer to "has this run on the machine?": a row says PASS |
| 6 | only when a receipt file in this repository holds the matching `HWGATE` line. Everything else is |
| 7 | NOT_RUN or MISSING_IMPLEMENTATION, and stays so until a separately authorized attended run |
| 8 | produces its own receipt. |
| 9 | |
| 10 | This page grants no hardware, boot, staging, service or firmware authority. Physical driver |
| 11 | qualification 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 |
| 14 | the 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 |
| 27 | named in [`PIN`](../PIN)) enforces these as rules R1..R9, refuses an |
| 28 | empty 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 |
| 31 | checker on the register, its fixtures, mutants and planted-bad copies, and the shell checks that |
| 32 | the checker cannot do (receipt files, inventory, receipt claims, source commits, size alarm); the |
| 33 | comments in `gate.sh` name each check. Without the pinned compiler it exits 3 (NOT_RUN), never 0. |
| 34 | |
| 35 | To add a physical PASS: run the attended procedure under its own authorization, commit the raw |
| 36 | receipt under `evidence/` with the `HWGATE <id> PHYSICAL PASS` line plus source commit, image |
| 37 | digest, machine identity and commands, then change the row. The gate refuses the row change |
| 38 | without 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 |
| 43 | not repeat them. Each PASS or FAIL row there names its receipt, and the receipt holds the exact |
| 44 | commands 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 |
| 46 | logs 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 |
| 51 | receipt must show before that row can say PASS. The blocker and owner of each gate are field 7 |
| 52 | of 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 |
| 54 | no receipt yet cannot leave the inventory without a reviewed change to both files. To read |
| 55 | them 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 | |
| 58 | A receipt is never rewritten. When a later review finds that a committed receipt line claims |
| 59 | more 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 |
| 61 | status differs from the register's row for that id and tier unless such a correction covers it. |
| 62 | |
| 63 | The native Spark path still runs the GB10 through NVIDIA's `nvidia.ko`/`nvidia-uvm.ko` |
| 64 | 580.173.02; none of the GPU gates replaces it. |