atlas
aien-dev/atlas
Brought by drakestapleton
atlas / AGENTS.md
| 1 | # Atlas (the AIEN boot seed) |
| 2 | |
| 3 | > Atlas is a 1,480-byte AArch64 binary, `atlas.bin`, that checks the next boot stage against a pinned SHA-256 digest, hands control to it, and refuses and halts if the check fails. This repository holds the seed, its audit artifacts, its qualification receipt and the C and POSIX shell gate runner that requalifies it. Milestone 1 is qualified in QEMU only; native DGX Spark qualification is pending. The default branch is `master`. |
| 4 | |
| 5 | Shared rules: read https://www.aienos.com/agents/RULES.md first. This file adds what is specific to this repository; where the two differ, this file wins here. |
| 6 | |
| 7 | ## Scope |
| 8 | |
| 9 | - Applies to the whole repository. |
| 10 | - The canonical artifact is `atlas.bin` (SHA-256 `f7802501b410a0c19eff7b8fca8865c9ba9c96bfa4f8065ca8f508b67748b9a5`). `atlas.s` is its source; `atlas.sha256`, `atlas.manifest`, `atlas.memory-map`, `atlas.control-flow`, `atlas.audit`, `atlas.decode` and `machine_contract.json` describe and pin it. |
| 11 | - `physics-0.bin` (source `physics_0.s`) is the 256-byte test payload that Atlas hands off to. The real next-stage boot artifacts live in `aien-dev/physics`, not here. |
| 12 | - `qualification_receipt.json` is the Milestone 1 receipt. `history/alpha/` holds the pre-rename Alpha artifacts as a historical record; no gate reads them. |
| 13 | - `HISTORICAL-PYTHON.md` and `TRANSITION_PLAN_M1.md` record the retired Python tooling. Historical evidence is not edited to match today's standards. |
| 14 | - The repository is quiet: the seed and its gate runner last changed on 2026-09-26. |
| 15 | |
| 16 | ## Installation |
| 17 | |
| 18 | ```bash |
| 19 | git clone https://github.com/aien-dev/atlas.git |
| 20 | cd atlas |
| 21 | ``` |
| 22 | |
| 23 | Requirements, from `run_m1_gates.sh` and `tools/m1tool.c`: a POSIX shell, `gcc`, `git`, and `qemu-system-aarch64` (machine `virt`) for the execution seam. No Python and no package manager. |
| 24 | |
| 25 | ## Usage |
| 26 | |
| 27 | ```bash |
| 28 | # All 8 Milestone 1 gates: builds tools/m1tool and test_sha256_kat with gcc, |
| 29 | # runs the NIST SHA-256 known-answer tests, Seam 1 (static artifact audit) |
| 30 | # and Seam 2 (QEMU boot, handoff, 268-case corruption matrix, fail-closed halt) |
| 31 | ./run_m1_gates.sh |
| 32 | |
| 33 | # Keep Python out of the tree |
| 34 | sh scripts/check-no-python.sh |
| 35 | ``` |
| 36 | |
| 37 | - `run_milestone1_gates.sh` is the same runner under its old name. |
| 38 | - The KAT exit status is required: a failed known-answer test stops the runner before the artifact audit or QEMU seams, even if it printed expected-looking output. |
| 39 | - `./run_m1_gates.sh --write-receipt` overwrites `qualification_receipt.json`. Do not pass it unless the change is an approved requalification. |
| 40 | - QEMU qualification is not native qualification. `ATLAS_BOOT_NATIVE_PASS` needs a physical NVIDIA DGX Spark and has no runner in this repository. |
| 41 | - `tools/m1tool` also exposes `sha256`, `hexfield`, `bytes`, `audit-verify`, `gen-audit`, `mutate-sweep`, `mutate-adv`, `qemu-run` and `qemu-matrix`; each prints its usage when called with wrong arguments. |
| 42 | |
| 43 | ## Conventions |
| 44 | |
| 45 | - No Python anywhere: `scripts/check-no-python.sh` fails on any tracked Python file or Python shebang. |
| 46 | - There is no hosted CI. Testing runs on the project's own machines; GitHub-hosted test workflows were removed on purpose. Put the gate runner's output in the pull request. |
| 47 | - Build products are ignored by `.gitignore` (`tools/m1tool`, `test_sha256_kat`, `*.o`, `*.elf`, `build/`, corruption test files). Do not commit them. |
| 48 | - Every claim about the seed names the gate that proves it, using the gate names in `run_m1_gates.sh`. |
| 49 | |
| 50 | ## Safety and approvals |
| 51 | |
| 52 | - Do not modify `atlas.bin`, `atlas.sha256`, `physics-0.bin`, the pinned physics digest, `machine_contract.json` or `qualification_receipt.json` without an explicit maintainer decision. Changing the seed invalidates the audit artifacts and the receipt and requires a full requalification with a new receipt. |
| 53 | - Do not weaken a gate or the corruption matrix to make a run pass. A refusal that stops working is a failure of the seed, not of the test. |
| 54 | - Do not edit `history/alpha/` or the historical records in `HISTORICAL-PYTHON.md`. |
| 55 | - `master` rejects deletion and non-fast-forward pushes. Work on a branch and merge through a pull request. |
| 56 | |
| 57 | ## Further reading |
| 58 | |
| 59 | - `README.md`: the seed, its invariants, artifacts and the two verification seams. |
| 60 | - `HISTORICAL-PYTHON.md`: why the Python scripts were removed and how to retrieve them from history. |
| 61 | - `TRANSITION_PLAN_M1.md`: the move from Python to C and shell tooling. |
| 62 | - `aien-dev/physics`: the boot artifacts and GB10 hardware path that follow Atlas. |