interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / docs / r16-production-entry-point.md

179 lines · 11248 bytes Raw Blame History Source

R16: production entry point and legacy surface

Spec: spec/r16-orchestrator-retirement.md (R16-G5). Map: spec/r16-orchestrator-retirement-map.md. Checked by make test-r16-surface.

The production entry point

The production path is the resident reaction world: the R13 living system (goal in, AIEN reacts, Omega reacts, authority, GPU, evidence, generation promotes) and its R14 recovery paths. Nothing sequences the faculties; each reaction wakes on the objects it declared and commits under the grants it holds, checked by the native Aienux capability authority (C, pinned by aienos.lock).

Who may act is fixed by the runtime too (spec C6): at startup the entry point enrolls every production subject (rx_living_enroll_callers), closes enrollment (rx_world_bind_callers) and binds the generation store to the world and to the native authority (rx_gen_bind_authority). After that a reaction registration, a generation proposal or a promotion that does not carry the named subject's runtime-issued credential is refused. Since spec C7 the promotion checks that credential again right before the active pointer moves, a revocation waits for any commit already past its identity check, and the world refuses to bind while a reaction registered without a credential exists. Adding or completing candidate work on a bound store also needs a credential, and work can no longer be added already done.

whatsourcesmake target
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 piecestest-r13-host
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
recoverytests/runtime/rx_r14_recovery.c on the same sourcestest-r14-host, test-r14-silicon
proof that no legacy orchestrator is in the path (G3)link map, strings and exec trace of the production binaries abovetest-r16-authpath, test-r16-authpath-silicon

Operator control (R16 G6, CAND-3)

The production program takes one optional argument, --state-dir <dir>: its durable state, validated at startup (a real directory owned by the program's user, no group or other permission bits; anything else is refused with exit 2 before any world starts). Without it the program uses a fresh 0700 scratch directory, as before. <dir>/gen-<mode>/ is each mode's generation store and also its durable halt directory; <dir>/control/ holds the operator credential file and the owner-only socket operator.sock. The only outside entry point is that socket, driven by build/rx_operator (tools/rx_operator.c): status, stop, resume, revoke-cap, revoke, and shutdown while stopped. The contract is docs/r16-operator-control.md; the proof is make test-r16-operator-host, make test-r16-operator-mutants and make test-r16-operator-silicon.

Production program and test build (Lane 32)

Test-only pieces build only with one flag, AIEN_TEST_BUILD (-DAIEN_TEST_BUILD=1, Makefile $(AIEN_TEST_FLAGS)), which is off by default. The flag gates:

The build refuses these pieces without the flag: each test header stops with #error, RXC_TEST_HOOKS without the flag is an #error, the production rules stop if CFLAGS carries either flag, and the production R13 source stops unless ARGUS is linked (RX_ARGUS=2, authority observer).

programbinarymake targetflagARGUSFabric and composition phasesreceipt / gate key
production, host seatbuild/rx_r13_living_hosttest-r13-hostofflinkedNOT_RUN, with the reason in the receiptR13/rx_living_receipt.json, R13_LIVING_SYSTEM
production, GB10 seatbuild/rx_r13_living_silicontest-r13-siliconofflinkedNOT_RUN, with the reasonsame
test build, host seatbuild/rx_r13_living_testbuild_hosttest-r13-testbuild-hostonnot linkedrunR13/rx_living_test_build_receipt.json, R13_LIVING_SYSTEM_TEST_BUILD
test build, GB10 seatbuild/rx_r13_living_testbuild_silicontest-r13-testbuild-silicononnot linkedFabric run; composition NOT_RUN (host-seat fixture)same

A phase that cannot run in the production program is reported NOT_RUN with its reason, never PASS. The Fabric phase returns once a real transport exists (after TRUST-1); the composition phase needs the rogue-candidate hook.

ARGUS mode in production: observe and record (RX_ARGUS=2, authority observer, consumer ingest), pinned by argus.lock like the ARGUS suites. ARGUS holds no capability and the pinned ARGUS has no response path, so it never blocks, never revokes on its own and never expands its own authority (ARGUS-1 decisions: one narrow revoke is the only automatic response, and it is not in the pinned ARGUS yet). The production R13 run fails closed if ARGUS is not active, is not ingesting, or saw no authority event; the receipt carries the ARGUS counts. The R14 recovery and R15 rigs reuse the production sources ($(filter-out ...,$(RX_R13_SRCS))) without ARGUS.

Checks: make test-prod-hygiene (link map and strings of the production binary hold no test piece; ARGUS symbols present; --argus-probe host run prints ARGUS_OBSERVING=PASS; with RX_ARGUS_AUTO=0 the probe fails), make test-prod-hygiene-silicon (the same on the GB10 build), and make test-prod-refuses-test-pieces (negative build test: compiling the production program with each test piece must FAIL). R16-G3 (test-r16-authpath) inspects the production program and runs the hygiene static checks as its check 2b.

Legacy and reference paths (not production)

pathclass (map)explicit namenotes
omegatool hand-sequenced living matvecA, retired--legacy-oracle-living-matvec; symbols legacy_oracle_*the old --demonstrate-living-matvec mode is gone and rejected
omegatool milestone demonstrations (16 modes)D, reference oracle--reference-demonstrate-<name>historical M4 to M17 demonstrations; the old --demonstrate-<name> modes are rejected
omegatool gate runners --run-gates, --run-m<N>-gatesB, keptqualification runnersthey run the historical milestone gates; they sequence tests, not faculties. The map does not flag them for G5
omegatool default modenonenonewith no argument omegatool prints usage and exits 1; it runs nothing
SEQ reference loopDrx_seq_reference.[ch] (rx_seq_pulse, rx_seq_run_until_complete)R15 comparison baseline only; refuses a production world (make test-r16-negative)
M19 omega_world_*C, known-good fallbackM19 world gateskept for recovery
Omega Visor (src/visor/)operator console./omegaone operator command per line, only on operator request; not a production entry point
aien-sovereign-core, aegis-runtime (Rust)A by non-use, or LEGACY / NOT-IN-CHARGEmap rows carry the labelnot linked or executed by the production path (G3 checks both)

Host gates on this branch

Run from the omega tree. AIENOS_LOCK_REPO must name a clone that has the aienos.lock commit (the default ../aienos-argus-cap exists only for a checkout directly under ~/workspace); it is needed only the first time, to extract the pinned authority into build/aienos-authority/. Without it the build stops and says exactly what to set.

A="AIENOS_LOCK_REPO=$HOME/workspace/aienos-argus-cap"
make $A r16-inventory test-r16-inventory     # G1/G2 (seconds)
make $A test-r16-authpath                    # G3 host stand-in (about 30 s)
make $A test-r16-negative                    # G4 (under 1 s); PASS since spec C6: every subject acts only with a
                                             # runtime-issued caller credential, so the promoter-subject exploit that
                                             # was accepted at 44d8c06 (spec C5) is refused with the identity error
make $A test-r16-negative-mutants            # G4 guards load-bearing (about 1 min; judged on the gate line;
                                             # 36 mutants incl. 12 identity and 9 C7 mutants, all killed)
make $A test-r16-surface                     # G5 (seconds)

Full ladder (G7) and the R15 qualification: not run on this branch

These touch the graphics processor and must run on the frozen candidate commit with a clean tree, one heavy run at a time.

Preconditions:

  1. Candidate commit frozen, git status clean, branch rebased on omega main.
  2. PHYSICS_DIR set explicitly to a physics checkout at physics.lock (fecbedb); ~/workspace/physics is at a different commit. Use ~/workspace/hive-worktrees/physics or a fresh checkout at the lock.
  3. AIENOS_LOCK_REPO and AIENOS_R7_DIR as in the host section (the mk/visor-authority.mk default is wrong until fixed).
  4. Quiet machine: ~/workspace/.spark-quiet set by the session that runs the ladder, AI services off, no other heavy test (omega sessions rules).
  5. GPU seat clean: no leftover rx_* or omegatool process holding the seat. Never wrap a chip test in timeout and never kill one.
  6. Long runs detached (setsid nohup, or tools/r15_qualify.sh --detach), so a closed terminal or agent cannot stop them.
  7. sudo -n sysctl allowed for kernel.perf_event_paranoid (the R15 run sets it 4 -> 1 and restores 4).

Command sequence (V="PHYSICS_DIR=<physics at fecbedb> $A"):

make $V test-r3              # R1, R2, R3, R4 (causal trace), R5, R6: one binary
make $V test-r7
make $V test-r8
make $V test-r9
make $V test-r10
make $V test-r11
make $V test-r12             # R12 host
make $V test-r13-host
make $V test-r14-host
make $V test-r15-parity-host
make $V test-r12-silicon
make $V test-r13-silicon
make $V test-r14-silicon
make $V test-r15-parity-silicon
make $V test-r16-authpath-silicon     # G3 silicon
PHYSICS_DIR=... AIENOS_LOCK_REPO=... tools/r15_qualify.sh --detach silicon
# r15_qualify verifies the pinned Git objects, builds private archive copies,
# and executes only the digest-bound copies stored in the new raw run directory.
make r15-receipt RUN=evidence/R15/raw/<run-id> CANDIDATE=<commit> RERUNS=<file> NOTES=<file>

Time, from the R15 attempt 2 records on the same machine: the correctness ladder took 2 min 39 s (evidence/R15/reruns-3e9e53b-log-summary.txt); the R15 silicon qualification took about 35 min (21:57 to 22:32, evidence/R15/ATTEMPT-2-PASS.md). With builds, G3 silicon under exec tracing (about 1.5 min) and setting up the quiet machine, plan on 45 to 60 minutes.