interplane.Get Omega
Read in your language

physics-mv

FORGE: request-bound machine realization, providers and verification for AienOS. Host, simulated and GB10 hardware paths have separate evidence.

Brought by drakestapleton

branch main Branches Tags History

physics-mv / AGENTS.md

85 lines · 7285 bytes Raw Blame History Source

PHYSICS (FORGE machine realization, the native GB10 client and the Atlas/PHYSICS boot artifacts)

FORGE (C, forge/) turns a verified Omega meaning into a concrete realization on the machine at hand: the CPU, the NVIDIA GB10 GPU, and a simulated analog provider for testing. nvrm/ is the small C client that drives the GB10 directly through the open NVIDIA kernel interface, with no CUDA. The root *.s files and m3/ are the historical Atlas and PHYSICS boot artifacts (AArch64 assembly), qualified in QEMU only. Research-grade, pre-alpha. The repository is still named physics; the subsystem role is FORGE.

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.

Scope

Installation

Needs host gcc and make, the AArch64 cross binutils and compiler (aarch64-linux-gnu-gcc, -ld, -objcopy; override with CC, LD, OBJCOPY, or CROSS for the M3 build), qemu-system-aarch64, socat and jq. There is no Python and no CUDA toolkit.

Some gates need sibling checkouts next to this one, under these exact directory names:

git clone https://github.com/aien-dev/physics-mv physics
git clone https://github.com/aien-dev/omega-mv omega
git clone https://github.com/aien-dev/aien-architecture-mv aien-architecture
cd physics

../omega is needed by analog-sim, form0 and gate34-writer; ../aien-architecture by m3. A step whose sibling is missing exits 3 with a message.

Configuration

Usage

tests/gates/run.sh <step> is the one entry point; each step runs the same script as the gate manifest of that name in tests/gates/.

Host-only steps (no GPU):

tests/gates/run.sh forge-v2           # FORGE V2 known-answer tests
tests/gates/run.sh forge-aegis        # AEGIS binds a result to its request; submit refused before any GPU call
tests/gates/run.sh analog-sim         # simulated analog provider vs digital oracle (needs ../omega)
tests/gates/run.sh form0              # FORM0 realization-form gates (needs ../omega)
tests/gates/run.sh gate34-writer      # Gate 3/4 receipt writer (needs ../omega)
tests/gates/run.sh gb10-lock          # GPU lock helper on a scratch lock file
tests/gates/run.sh zero-disk-secrets  # no plaintext .env files in the tree
tests/gates/run.sh m2                 # M2 PHYSICS_BOOT in QEMU, rebuilt from source
tests/gates/run.sh m3                 # M3 PHYSICS_EFFECTS in QEMU, in a temporary copy (needs ../aien-architecture)
make host-tests-m16                   # m16 GPU wait primitive: host test plus 3 mutants that must be caught
make test-nvrm-buddy                  # nvrm 2 MiB-block count per buddy zone, from a recorded table

Steps that need the real GB10 on the DGX Spark: forge-gate34 (tests/run_forge_gates.sh), m15, m16-requal, nvrm-lifecycle, submission-visibility. Run them only on the Spark, one at a time, and never kill one mid-run. They take the GPU lock (/tmp/aien-gb10.lock) through tests/gb10_lock.sh. Do not run them on any other machine.

Conventions

Safety and approvals

Further reading