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/omega-mv/blob/main/docs/r16-production-entry-point.md # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / docs / r16-production-entry-point.md` 179 lines ยท 11248 bytes Raw Blame History Rendered 1 # R16: production entry point and legacy surface 2 3 Spec: `spec/r16-orchestrator-retirement.md` (R16-G5). Map: 4 `spec/r16-orchestrator-retirement-map.md`. Checked by `make test-r16-surface`. 5 6 ## The production entry point 7 8 The production path is the resident reaction world: the R13 living system 9 (goal in, AIEN reacts, Omega reacts, authority, GPU, evidence, generation 10 promotes) and its R14 recovery paths. Nothing sequences the faculties; each 11 reaction wakes on the objects it declared and commits under the grants it 12 holds, checked by the native Aienux capability authority (C, pinned by 13 `aienos.lock`). 14 15 Who may act is fixed by the runtime too (spec C6): at startup the entry point 16 enrolls every production subject (`rx_living_enroll_callers`), closes 17 enrollment (`rx_world_bind_callers`) and binds the generation store to the 18 world and to the native authority (`rx_gen_bind_authority`). After that a 19 reaction registration, a generation proposal or a promotion that does not 20 carry the named subject's runtime-issued credential is refused. Since spec C7 21 the promotion checks that credential again right before the active pointer 22 moves, a revocation waits for any commit already past its identity check, and 23 the world refuses to bind while a reaction registered without a credential 24 exists. Adding or completing candidate work on a bound store also needs a 25 credential, and work can no longer be added already done. 26 27 | what | sources | make target | 28 |---|---|---| 29 | living system, host seat (production program) | `$(RX_R13_SRCS)` (omega `src/`, `src/runtime/`, `tests/runtime/rx_r13_living.c`) + `libaienos_capability.a` + pinned ARGUS (`rx_argus.c`, `argus.lock`); no test pieces | `test-r13-host` | 30 | living system, GB10 seat (production program) | the same + `rx_resident_gpu.c`, the Blackwell encoder/codegen and the physics seat (`m16_native.c`, `nvrm.c`) | `test-r13-silicon` | 31 | recovery | `tests/runtime/rx_r14_recovery.c` on the same sources | `test-r14-host`, `test-r14-silicon` | 32 | proof that no legacy orchestrator is in the path (G3) | link map, strings and exec trace of the production binaries above | `test-r16-authpath`, `test-r16-authpath-silicon` | 33 34 ### Operator control (R16 G6, CAND-3) 35 36 The production program takes one optional argument, `--state-dir `: its 37 durable state, validated at startup (a real directory owned by the program's 38 user, no group or other permission bits; anything else is refused with exit 2 39 before any world starts). Without it the program uses a fresh 0700 scratch 40 directory, as before. `/gen-/` is each mode's generation store and 41 also its durable halt directory; `/control/` holds the operator credential 42 file and the owner-only socket `operator.sock`. The only outside entry point is 43 that socket, driven by `build/rx_operator` (`tools/rx_operator.c`): status, stop, 44 resume, revoke-cap, revoke, and shutdown while stopped. The contract is 45 `docs/r16-operator-control.md`; the proof is `make test-r16-operator-host`, 46 `make test-r16-operator-mutants` and `make test-r16-operator-silicon`. 47 48 ### Production program and test build (Lane 32) 49 50 Test-only pieces build only with one flag, `AIEN_TEST_BUILD` (`-DAIEN_TEST_BUILD=1`, 51 Makefile `$(AIEN_TEST_FLAGS)`), which is off by default. The flag gates: 52 53 - the Fabric F5-0 loopback transport (`src/fabric/fab_loopback.[ch]`), the HMAC 54 stand-in authenticator (`fab_hmac.[ch]`), the Fabric dispatcher 55 (`fab_dispatch.[ch]`) and the fixed test keys they carry (`fl-key-*`); 56 - the R13 Fabric living phase (`tests/fabric/fab_living_phase.h`); 57 - the composition fault, rogue-candidate and hold hooks (`RXC_TEST_HOOKS` in 58 `rx_compose.[ch]`; the flag turns them on) and the R13 composition phase that 59 uses them with `tests/runtime/rx_compose_fixture.h`. 60 61 The build refuses these pieces without the flag: each test header stops with 62 `#error`, `RXC_TEST_HOOKS` without the flag is an `#error`, the production 63 rules stop if `CFLAGS` carries either flag, and the production R13 source stops 64 unless ARGUS is linked (`RX_ARGUS=2`, authority observer). 65 66 | program | binary | make target | flag | ARGUS | Fabric and composition phases | receipt / gate key | 67 |---|---|---|---|---|---|---| 68 | production, host seat | `build/rx_r13_living_host` | `test-r13-host` | off | linked | NOT_RUN, with the reason in the receipt | `R13/rx_living_receipt.json`, `R13_LIVING_SYSTEM` | 69 | production, GB10 seat | `build/rx_r13_living_silicon` | `test-r13-silicon` | off | linked | NOT_RUN, with the reason | same | 70 | test build, host seat | `build/rx_r13_living_testbuild_host` | `test-r13-testbuild-host` | on | not linked | run | `R13/rx_living_test_build_receipt.json`, `R13_LIVING_SYSTEM_TEST_BUILD` | 71 | test build, GB10 seat | `build/rx_r13_living_testbuild_silicon` | `test-r13-testbuild-silicon` | on | not linked | Fabric run; composition NOT_RUN (host-seat fixture) | same | 72 73 A phase that cannot run in the production program is reported NOT_RUN with its 74 reason, never PASS. The Fabric phase returns once a real transport exists 75 (after TRUST-1); the composition phase needs the rogue-candidate hook. 76 77 ARGUS mode in production: observe and record (`RX_ARGUS=2`, authority 78 observer, consumer `ingest`), pinned by `argus.lock` like the ARGUS suites. 79 ARGUS holds no capability and the pinned ARGUS has no response path, so it 80 never blocks, never revokes on its own and never expands its own authority 81 (ARGUS-1 decisions: one narrow revoke is the only automatic response, and it 82 is not in the pinned ARGUS yet). The production R13 run fails closed if ARGUS 83 is not active, is not ingesting, or saw no authority event; the receipt 84 carries the ARGUS counts. The R14 recovery and R15 rigs reuse the production 85 sources (`$(filter-out ...,$(RX_R13_SRCS))`) without ARGUS. 86 87 Checks: `make test-prod-hygiene` (link map and strings of the production 88 binary hold no test piece; ARGUS symbols present; `--argus-probe` host run 89 prints `ARGUS_OBSERVING=PASS`; with `RX_ARGUS_AUTO=0` the probe fails), 90 `make test-prod-hygiene-silicon` (the same on the GB10 build), and 91 `make test-prod-refuses-test-pieces` (negative build test: compiling the 92 production program with each test piece must FAIL). R16-G3 93 (`test-r16-authpath`) inspects the production program and runs the hygiene 94 static checks as its check 2b. 95 96 ## Legacy and reference paths (not production) 97 98 | path | class (map) | explicit name | notes | 99 |---|---|---|---| 100 | omegatool hand-sequenced living matvec | A, retired | `--legacy-oracle-living-matvec`; symbols `legacy_oracle_*` | the old `--demonstrate-living-matvec` mode is gone and rejected | 101 | omegatool milestone demonstrations (16 modes) | D, reference oracle | `--reference-demonstrate-` | historical M4 to M17 demonstrations; the old `--demonstrate-` modes are rejected | 102 | omegatool gate runners `--run-gates`, `--run-m-gates` | B, kept | qualification runners | they run the historical milestone gates; they sequence tests, not faculties. The map does not flag them for G5 | 103 | omegatool default mode | none | none | with no argument omegatool prints usage and exits 1; it runs nothing | 104 | SEQ reference loop | D | `rx_seq_reference.[ch]` (`rx_seq_pulse`, `rx_seq_run_until_complete`) | R15 comparison baseline only; refuses a production world (`make test-r16-negative`) | 105 | M19 `omega_world_*` | C, known-good fallback | M19 world gates | kept for recovery | 106 | Omega Visor (`src/visor/`) | operator console | `./omega` | one operator command per line, only on operator request; not a production entry point | 107 | aien-sovereign-core, aegis-runtime (Rust) | A by non-use, or LEGACY / NOT-IN-CHARGE | map rows carry the label | not linked or executed by the production path (G3 checks both) | 108 109 ## Host gates on this branch 110 111 Run from the omega tree. `AIENOS_LOCK_REPO` must name a clone that has the 112 `aienos.lock` commit (the default `../aienos-argus-cap` exists only for a 113 checkout directly under `~/workspace`); it is needed only the first time, to 114 extract the pinned authority into `build/aienos-authority/`. Without it the 115 build stops and says exactly what to set. 116 117 ``` 118 A="AIENOS_LOCK_REPO=$HOME/workspace/aienos-argus-cap" 119 make $A r16-inventory test-r16-inventory # G1/G2 (seconds) 120 make $A test-r16-authpath # G3 host stand-in (about 30 s) 121 make $A test-r16-negative # G4 (under 1 s); PASS since spec C6: every subject acts only with a 122 # runtime-issued caller credential, so the promoter-subject exploit that 123 # was accepted at `44d8c06` (spec C5) is refused with the identity error 124 make $A test-r16-negative-mutants # G4 guards load-bearing (about 1 min; judged on the gate line; 125 # 36 mutants incl. 12 identity and 9 C7 mutants, all killed) 126 make $A test-r16-surface # G5 (seconds) 127 ``` 128 129 ## Full ladder (G7) and the R15 qualification: not run on this branch 130 131 These touch the graphics processor and must run on the frozen candidate 132 commit with a clean tree, one heavy run at a time. 133 134 Preconditions: 135 136 1. Candidate commit frozen, `git status` clean, branch rebased on omega main. 137 2. `PHYSICS_DIR` set explicitly to a physics checkout at `physics.lock` 138 (`fecbedb`); `~/workspace/physics` is at a different commit. Use 139 `~/workspace/hive-worktrees/physics` or a fresh checkout at the lock. 140 3. `AIENOS_LOCK_REPO` and `AIENOS_R7_DIR` as in the host section (the 141 `mk/visor-authority.mk` default is wrong until fixed). 142 4. Quiet machine: `~/workspace/.spark-quiet` set by the session that runs the 143 ladder, AI services off, no other heavy test (omega sessions rules). 144 5. GPU seat clean: no leftover `rx_*` or `omegatool` process holding the seat. 145 Never wrap a chip test in `timeout` and never kill one. 146 6. Long runs detached (`setsid nohup`, or `tools/r15_qualify.sh --detach`), so 147 a closed terminal or agent cannot stop them. 148 7. `sudo -n sysctl` allowed for `kernel.perf_event_paranoid` (the R15 run sets 149 it 4 -> 1 and restores 4). 150 151 Command sequence (`V="PHYSICS_DIR= $A"`): 152 153 ``` 154 make $V test-r3 # R1, R2, R3, R4 (causal trace), R5, R6: one binary 155 make $V test-r7 156 make $V test-r8 157 make $V test-r9 158 make $V test-r10 159 make $V test-r11 160 make $V test-r12 # R12 host 161 make $V test-r13-host 162 make $V test-r14-host 163 make $V test-r15-parity-host 164 make $V test-r12-silicon 165 make $V test-r13-silicon 166 make $V test-r14-silicon 167 make $V test-r15-parity-silicon 168 make $V test-r16-authpath-silicon # G3 silicon 169 PHYSICS_DIR=... AIENOS_LOCK_REPO=... tools/r15_qualify.sh --detach silicon 170 # r15_qualify verifies the pinned Git objects, builds private archive copies, 171 # and executes only the digest-bound copies stored in the new raw run directory. 172 make r15-receipt RUN=evidence/R15/raw/ CANDIDATE= RERUNS= NOTES= 173 ``` 174 175 Time, from the R15 attempt 2 records on the same machine: the correctness 176 ladder took 2 min 39 s (`evidence/R15/reruns-`3e9e53b`-log-summary.txt`); the 177 R15 silicon qualification took about 35 min (21:57 to 22:32, 178 `evidence/R15/ATTEMPT-2-PASS.md`). With builds, G3 silicon under exec tracing 179 (about 1.5 min) and setting up the quiet machine, plan on 45 to 60 minutes.