Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/physics-mv/blob/main/TEACHING.md # physics-mv FORGE: request-bound machine realization, providers and verification for AienOS. Host, simulated and GB10 hardware paths have separate evidence. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `physics-mv / TEACHING.md` 53 lines ยท 4547 bytes Raw Blame History Source # A realization request and its refusal I separated machine realization from semantic authority so a backend can propose machine code without declaring it safe. The name FORGE and this boundary are recorded in ADR 0014 ; this repository still has its historical `physics` name. The host seam here is implemented, but the sample lowering is deliberately simulated, not a GB10 instruction generator. The host fixture builds a `ForgeRealizationRequest` with program digest, opcode count, IR bytes and a target machine descriptor . `forge_realize` checks the descriptor digest, pads a copy of IR to an aligned code buffer and computes request, code and realization digests. `aegis_verify_realization` checks code size, machine limits, descriptor and request binding, then marks the result verified. A result for program A is refused when replayed for program B or a different opcode count. Mutated code, a stale identity and another target descriptor are also refused. The token in this seam uses a public constant and is an integrity marker, not authentication against a caller able to recompute it. The submit-side fixture verifies refusals before NVRM access. This particular seam fixture does not select a physical provider; the form realization layer holds that separate choice, and the analog simulation fixture checks its simulated provider against an oracle. The V2 descriptor specification explains the serialized machine boundary. ## Replay Use a fresh checkout on a Linux host with gcc, git and bash. The test needs no GPU, model, sibling repository, QEMU or network after the clone. The four source files under test (`forge/forge_realize.c`, `forge/forge_descriptor.c`, `tests/test_forge_aegis_host.c` and `tests/run_forge_aegis_host_gates.sh`) are byte-identical between `14273c5c` (the receipted replay) and `ef451582` (main on 2026-11-05). ``` git clone https://github.com/aien-dev/physics-mv.git physics-lesson cd physics-lesson git checkout --detach ef451582076d0b9c1315144e05751e1b719f171e tests/gates/run.sh forge-aegis ``` The expected exit is 0, with all 13 checks PASS and the final line `FORGE AEGIS host results: TOTAL=13 PASSED=13 FAILED=0`. The checks include `REALIZE_OK`, `VERIFY_OWN_REQUEST_ACCEPTED` and `NEG_RESULT_REPLAYED_TO_OTHER_PROGRAM_REFUSED`. See my raw replay for the observed output and environment at `14273c5c`. This is a host seam test. It does not establish other things: - The analog provider is a simulation. - The older assembly boot receipts are QEMU evidence. - Neither shows a current physical GB10 execution. Hardware routes remain separate in README.md and the gate manifests . ### The failed approach, replayed Before `b0f7308` , `aegis_verify_realization` took the request but never compared it with the result. Put that version back in a scratch checkout and the same test catches it: ``` git show b0f7308^:forge/forge_realize.c > forge/forge_realize.c # scratch checkout only tests/gates/run.sh forge-aegis ``` The expected exit is 1, with `FORGE AEGIS host results: TOTAL=13 PASSED=10 FAILED=3`. The three checks that FAIL are: - `NEG_RESULT_REPLAYED_TO_OTHER_PROGRAM_REFUSED` - `NEG_RESULT_REPLAYED_TO_OTHER_OPCODE_COUNT_REFUSED` - `NEG_REQUEST_FOR_OTHER_TARGET_REFUSED` A result for program A verified for program B, which is the defect physics#53 fixed. ### Boundaries - Omega defines the meaning; FORGE receives only its digest and IR. - AEGIS verification is the only route to a `ForgeVerifiedRealization`. - The GPU client (`nvrm/` ) is reached only through `forge_submit_realization` . In this fixture every submit is refused before any NVRM call. - The GPU programming tutorial lives in CUDA++ (aien-dev/CUDApp) and is not repeated here. ### Parent fresh-checkout replay A separate coordination replay is retained in the parent receipt . Its scope and observed exit are explicit; source review and final desk qualification remain separate. A recorded absence or expected failing baseline is not a passing implementation.