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

GitHub aien-dev/physics-mv#24 (code only)

closed derived 4a5e87736005e1de #24

Imported from GitHub aien-dev/physics-mv#24 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 79b30a593344d50783b463e01ed59fd485043cb7 · Head af258d534c6dd6af47d4f59aec5bebab0e8128e1

Apply it

git checkout -b patch-4a5e87736005e1de 79b30a593344d50783b463e01ed59fd485043cb7
curl -fsSL https://interplane.io/drakestapleton/physics-mv/patches/4a5e87736005e1de.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/physics-mv
24
af258d534c6dd6af47d4f59aec5bebab0e8128e1
{"kind":"github-import","owner":"aien-dev","repo":"physics-mv","number":24,"url":"https://github.com/aien-dev/physics-mv/pull/24","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:24Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/README.md b/README.md
index 45f8f88..1b63247 100644
--- a/README.md
+++ b/README.md
@@ -1,96 +1,42 @@
-# PHYSICS: Trusted Machine Authority
+# PHYSICS
 
-```text
-SILICON / UNAVOIDABLE FIRMWARE
-              ↓
-            ATLAS
-       BOOTSTRAP SEED
-              ↓
-           PHYSICS
-   TRUSTED MACHINE AUTHORITY
-              ↓
-            OMEGA
- SEMANTICS + SYNTHESIS + REALIZATION
-              ↓
-             AIEN
- SOVEREIGN DISCOVERY INTELLIGENCE
-```
+Two things live here: the **FORGE** machine realization layer (C), and the historical **Atlas / PHYSICS boot artifacts** (AArch64 assembly) with their evidence. FORGE turns a verified Omega meaning into a concrete realization on the machine at hand (today CPU and the NVIDIA GB10 GPU; a simulated analog provider exists for testing). It is realization and lowering, not a security gatekeeper: AEGIS verifies, and AIENOS owns the trusted substrate.
 
-## The Canonical Statements
 ```text
-ATLAS AWAKENS.
-PHYSICS AUTHORIZES.
-OMEGA DEFINES, SYNTHESIZES, VERIFIES, AND REALIZES.
-AIEN OBSERVES, THINKS, HYPOTHESIZES, SEARCHES, DISCOVERS, AND INVENTS.
+ATLAS AWAKENS. AIEN PROPOSES. OMEGA DEFINES. FORGE REALIZES. AEGIS VERIFIES. HARDWARE ACTS. EVIDENCE TEACHES.
 ```
 
-## The Sovereign Procedural Creed
-> **`WEIGHTS SUGGEST.`**  
-> **`PROGRAMS EXPLAIN.`**  
-> **`OMEGA VERIFIES.`**  
-> **`PHYSICS AUTHORIZES.`**  
-> **`EXPERIMENTS FALSIFY.`**  
-> **`EVIDENCE TEACHES.`**
-
----
-
-## Canonical Distinction: PHYSICS vs. PHYSICS ZERO
-- **`PHYSICS`**: **The Trusted Machine Authority.** The constitutional governor of silicon, CPU exception levels, memory isolation, SMMUv3 DMA protection, device registers, and the Effect Cycle.
-- **`PHYSICS ZERO`**: **The Clean-Room Scientific Discovery Program.** An autonomous epistemological methodology wherein AIEN discovers the underlying structure of reality from raw observation without ever receiving human physical theories, constants, or terminology.
-
----
-
-## Canonical Artifacts & Evidence Files
-- [`physics.bin`](file:///home/drakestapleton/workspace/physics/physics.bin): Trusted Machine Authority Nucleus binary (6,144 bytes).
-- [`physics.sha256`](file:///home/drakestapleton/workspace/physics/physics.sha256): Cryptographic hash (see `physics.sha256`; pinned into Atlas via `physics_pin.inc`).
-- [`physics.manifest`](file:///home/drakestapleton/workspace/physics/physics.manifest): Canonical manifest and provenance record anchored to Atlas.
-- [`physics.memory-map`](file:///home/drakestapleton/workspace/physics/physics.memory-map): Normative physical memory layout with formal pairwise disjointness proof.
-- [`physics.control-flow`](file:///home/drakestapleton/workspace/physics/physics.control-flow): Textual/graphical control flow graph and fail-closed panic traps.
-- [`physics.audit`](file:///home/drakestapleton/workspace/physics/physics.audit): 100% byte-reconciled machine operation ledger (464 instructions, 170 rodata words, 390 canonical padding words, 512 vector table words, 0 discrepancy).
-- [`physics.decode`](file:///home/drakestapleton/workspace/physics/physics.decode): Disassembly dump with static target proof.
-- [`machine_contract.json`](file:///home/drakestapleton/workspace/physics/machine_contract.json): Formal machine contract (`CONTRACT-QEMU-VIRT-AARCH64-M2`).
-- [`qualification_receipt.json`](file:///home/drakestapleton/workspace/physics/qualification_receipt.json): Cryptographic qualification receipt for Milestone 2 (`PHYSICS_BOOT`).
-
----
-
-## Qualification Architecture (Dual Verification Seams)
-
-### Seam 1: Independent Artifact-Audit Seam (`tools/m2tool audit-verify`)
-Validates static artifact properties without requiring execution:
-1. `PHYSICS_ARTIFACT_IDENTITY_PASS`: `physics.bin` matches `physics.sha256`.
-2. `PHYSICS_MACHINE_CONTRACT_PASS`: Code size $\le 32\text{ KiB}$ (actual: 1,856 B), total image $\le 64\text{ KiB}$ (actual: 6,144 B), anti-bloat law satisfied.
-3. `PHYSICS_AUDIT_PASS`: Generalized byte accounting formula reconciled to exact 0 bytes discrepancy:
-   $$\text{CODE} (1856) + \text{RODATA} (680) + \text{PAD} (1560) + \text{VBAR} (2048) = 6144\text{ bytes}$$
-4. `PHYSICS_VECTOR_LAYOUT_PASS`: Exception vector table base satisfies strict 2 KiB alignment, spans exactly 2,048 bytes (`0x000`..`0x7FF`), with all 16 architectural slots verified at 128-byte stride.
-5. `PHYSICS_VECTOR_ALIGNMENT_PASS`: Vector base `0x40201000 % 2048 == 0`.
-6. `PHYSICS_MEMORY_DISJOINTNESS_PASS`: Static mathematical proof that all 7 physical memory regions (`IMAGE`, `VBAR`, `STACK`, `STATE`, `CAP_TABLE`, `STATIC_DATA`, `FREE_FRAME_REGION`) are pairwise disjoint.
-7. `PHYSICS_STATIC_MEMORY_BOUNDS_PASS`: Memory operations confined strictly to declared regions; initial kernel SP is `0x40205800`.
-
-### Seam 2: External Execution Seam (`run_m2_gates.sh` + `tools/qemu_inspect.sh`)
-Boots PHYSICS in QEMU virt (AArch64, cortex-a57, 128 MiB) and qualifies it by reading guest memory over QMP (`pmemsave`), not by trusting UART strings. Every image is rebuilt from source on every run (`m2_build.sh`); nothing is cached.
-1. `PHYSICS_ENTRY_EL_PASS`: recorded `CurrentEL` (boot state +0x40) equals the contract's `expected_entry_el_value` (EL1); a real EL2 entry (`virt,virtualization=on`) is refused with `PANIC_UNCONTRACTED_EL` before any authority exists.
-2. `PHYSICS_DESCRIPTOR_INGRESS_PASS`: the PHYSICS-owned 64-byte descriptor copy equals the contract descriptor word for word; every header (magic, version, length, reserved) and machine-profile violation is refused before bitmap initialization.
-3. `PHYSICS_BOOT_QEMU_PASS`: `physics.bin` and `atlas_m2.bin` rebuild byte-identically; telemetry is exactly the golden sequence; allocator header is exactly `DRAM_END=0x48000000`, 32,248 frames; no exception taken.
-4. `PHYSICS_FRAME_BOUNDS_PASS`: in-kernel exhaustion allocates exactly 32,248 frames, each previous + 4 KiB from `0x40208000` (deterministic, no duplicates), last `0x47FFF000`, then `FRAME_EXHAUSTED`; all 4,031 bitmap bytes set; a canary byte after the bitmap and the whole first free frame stay untouched.
-5. `PHYSICS_RESERVED_FRAME_REFUSAL_PASS`: 13 `is_frame_reserved` probes across Atlas, descriptor, image, vectors, boot state, capability table, static data, `DRAM_END` and wraparound.
-6. `PHYSICS_CAP_ROOT_PASS`: all 10 CAP_ROOT fields (slot, generation, principal, `resource_type=1`, ops, bounds, revocation, attenuation, 32-byte Atlas digest) equal the contract; 10 `validate_capability` probes show the root grants nothing outside `[FREE_FRAME_BASE, DRAM_END)`.
-7. `PHYSICS_EXCEPTION_STATE_CAPTURE_PASS`: two faults (BRK and an alignment Data Abort) with sentinel values in x0..x30; the trap frame at `0x40205880` holds every sentinel, the interrupted SP, vector slot 4, `CurrentEL`, ESR, ELR (== fault site symbol), SPSR `0x3C5`, FAR and FAR_VALID (0 for BRK, 1 with the faulting address for the abort).
-8. `PHYSICS_CORRUPTION_REFUSAL_PASS`: 23 hostile cases (cookie, payload size, descriptor pointer, magic, version, length, reserved bits, zero/overflowing/oversized/undersized/shifted/out-of-profile RAM, UART, PHYSICS base/size, EL2 entry) each end in the expected panic with the entry record, allocator header and CAP_ROOT slot still zero in memory.
-
-`run_m2_gates.sh` (also reachable as `run_milestone2_gates.sh`) rebuilds every artifact from source via `m2_build.sh`, checks the rebuilt binaries against the committed ones, and runs both seams. It leaves the committed `qualification_receipt.json` untouched unless `--write-receipt` is passed. That committed receipt is historical evidence from the retired Python harness (it pins the SHA-256 of the old `.py` scripts, retrievable from git history; see `TRANSITION_PLAN_M2.md`).
-
----
-
-## Native Hardware Qualification Status
-> [!IMPORTANT]
-> **`PHYSICS_BOOT_NATIVE_PASS` remains strictly decoupled from QEMU qualification.**  
-> Native silicon verification on NVIDIA DGX Spark hardware will be evaluated independently. Virtual emulation passes must never be conflated with physical silicon qualification.
-
----
-
-## Reproduction & Verification
-To execute the complete Milestone 2 qualification suite:
+Historical `PHYSICS_*` milestone names (for example `PHYSICS_BOOT`) are unchanged in evidence; the subsystem role was renamed FORGE by ADR 0014 in aien-architecture.
+
+## Current state
+
+Research-grade and pre-alpha.
+
+- **FORGE:** the realize/verify seam (Gates 3 and 4) and the substrate-neutral descriptor contract (V1 and V2) pass their gates. The analog provider is a simulation checked against a digital oracle; no analog hardware is involved. Status and receipts: [CURRENT_EXECUTION_PLAN.md](https://github.com/aien-dev/aien-architecture/blob/main/CURRENT_EXECUTION_PLAN.md) and [doctrine/ROADMAP.md](https://github.com/aien-dev/aien-architecture/blob/main/doctrine/ROADMAP.md) in aien-architecture.
+- **Atlas boot, PHYSICS boot and PHYSICS effects (Milestones 1 to 3):** qualified in QEMU only (AArch64 virt). Native DGX Spark qualification of PHYSICS (`PHYSICS_BOOT_NATIVE_PASS`) has not been done and is never inferred from an emulator pass. The committed `qualification_receipt.json` is historical evidence from a retired Python harness and is kept unchanged ([TRANSITION_PLAN_M2.md](TRANSITION_PLAN_M2.md)).
+- **Physics Zero** (a clean-room scientific discovery program, distinct from this repository's PHYSICS) and **DIRAC-0** are documents in aien-architecture only. No code here implements them.
+
+## How this fits with the other repositories
+
+[omega](https://github.com/aien-dev/omega) pins this repository by commit (`physics.lock`) and uses `nvrm/` and `m16/` for the native GB10 path. [aienos](https://github.com/aien-dev/aienos) is the kernel. [aien-architecture](https://github.com/aien-dev/aien-architecture) owns status.
+
+## Standing rules
+
+C is the target language, with assembly only where measured. No Python (the old Python harness was removed; tools are C or shell). No CUDA toolkit or CUDA library dependence: the GB10 is driven natively through its open kernel interface. No systemd. Offline builds. Never overwrite old receipts.
+
+## Build and verify
+
+Needs gcc, QEMU for AArch64 and `socat` (the QEMU inspector uses QMP). Host and emulator gates:
+
 ```bash
-./run_m2_gates.sh
+tests/run_forge_v2_gates.sh          # FORGE V2 known-answer tests
+tests/run_forge_analog_sim_gates.sh  # simulated analog provider vs digital oracle
+./run_m2_gates.sh                    # M2 PHYSICS_BOOT, 15 gates in QEMU, rebuilt from source
+m3/tests/run_m3_gates.sh             # M3 PHYSICS_EFFECTS, 19 gates in QEMU
 ```
-Prints all 15 gate results. `./run_m2_gates.sh --write-receipt` also rewrites `qualification_receipt.json` (only on a recorded requalification decision, aien-architecture#12).
+
+`./run_m2_gates.sh` leaves the committed receipt untouched unless `--write-receipt` is passed, which is only for a recorded requalification decision. Gates that need the real GB10 (`tests/run_forge_gates.sh`, `tests/run_m15_gates.sh`, `tests/run_m16_requalification.sh`, `tests/run_nvrm_lifecycle_gates.sh`) run on the DGX Spark one at a time and are never killed mid-run; CI declares them SKIP, never PASS.
+
+## Contributing
+
+Open a pull request with the command you ran and its output. Do not edit committed receipts or binaries without the matching rebuilt evidence. Contact: aien@aienos.com.