atlas
aien-dev/atlas
Brought by drakestapleton
atlas / TRANSITION_PLAN_M1.md
| 1 | # Sovereign Tooling Transition Plan: Milestone 1 (ATLAS) |
| 2 | Tracking: aien-dev/aien-architecture#12, aien-dev/atlas#2 |
| 3 | |
| 4 | ## Context & Sovereignty Rule |
| 5 | Per the Sovereign Machine doctrine, qualification and build tooling must be local, in-house, and offline, with zero Python in the trusted path. |
| 6 | Milestone 1 previously used Python for static audit, execution harness, and gate orchestration (`run_milestone1_gates.py`, `seam1_artifact_audit.py`, `seam2_execution_harness.py`, `generate_audit_ledger.py`). |
| 7 | |
| 8 | ## Implementation Summary |
| 9 | A complete, pure C (C11) and POSIX shell replacement suite has been designed and implemented in `aien-dev/atlas`: |
| 10 | 1. `tools/m1tool.c`: Pure C host qualification tool compiled via host `gcc` and linked directly with audited `sha256_clean.c`. |
| 11 | - Subcommands: `sha256`, `hexfield`, `bytes`, `audit-verify`, `gen-audit`, `mutate-sweep`, `mutate-adv`, `qemu-run`, `qemu-matrix`. |
| 12 | 2. `run_m1_gates.sh` (symlinked as `run_milestone1_gates.sh`): Master POSIX shell gate runner orchestrating KAT verification, Seam 1 static audits, and Seam 2 QEMU execution harness. |
| 13 | |
| 14 | ## Artifact Integrity & Receipt Preservation |
| 15 | - The canonical binary artifact `atlas.bin` (SHA-256 `f7802501b410a0c19eff7b8fca8865c9ba9c96bfa4f8065ca8f508b67748b9a5`, 1480 bytes) is **not modified**. |
| 16 | - The existing qualification receipt `qualification_receipt.json` remains **untouched** as historical evidence for the Python-based qualification. |
| 17 | - The new C/shell tooling was verified to produce 100% gate pass rate across all 8 gates: |
| 18 | 1. `ATLAS_ARTIFACT_IDENTITY_PASS` |
| 19 | 2. `ATLAS_MACHINE_CONTRACT_PASS` |
| 20 | 3. `ATLAS_AUDIT_PASS` |
| 21 | 4. `ATLAS_STACK_DESCRIPTOR_DISJOINT_PASS` |
| 22 | 5. `ATLAS_BOOT_QEMU_PASS` |
| 23 | 6. `ATLAS_HANDOFF_QEMU_PASS` |
| 24 | 7. `ATLAS_CORRUPTION_REFUSAL_QEMU_PASS` (268/268 refused: 256 sweep + 12 adversarial) |
| 25 | 8. `ATLAS_FAIL_CLOSED_QEMU_PASS` |
| 26 | |
| 27 | ## Transition Phasing |
| 28 | 1. **Phase 1 (Dual-Track Availability - Present)**: |
| 29 | - Pure C and shell tooling (`tools/m1tool.c`, `run_m1_gates.sh`) are introduced. |
| 30 | - Developers and automated CI can verify gates using `./run_m1_gates.sh` without any Python runtime installed. |
| 31 | - Legacy Python scripts remain available as historical reference. |
| 32 | 2. **Phase 2 (Formal Requalification Decision)**: |
| 33 | - When recorded in `aien-architecture#12`, `run_m1_gates.sh --write-receipt` generates a refreshed receipt reflecting the pure C/shell verification toolchain. |
| 34 | 3. **Phase 3 (Python Retirement & Archival), done 2026-10-15**: |
| 35 | - Legacy Python files are deleted from the tree (kept in git history, see `HISTORICAL-PYTHON.md`), completing total retirement of Python. A CI guard keeps Python out. |