Audit scope
Written for an outside, independent security audit. Revision described:
bf54b19fa590e8ae925c0e80815516dbf41e7326 on main, 2026-10-28. Everything below is taken from
the repository's own files at that revision; items marked NOT_RUN were not executed while writing
this document.
What this repository is
Omega is a systems language and compute platform being implemented in handwritten, seeded .om.
The seeded compiler seed/out/omc is rebuilt from a 408-byte hand-written loader
(seed0 -> hex1 -> asm2 -> om4 -> omc); its qualified profile is AArch64 Linux, static ELF. An x86-64 Linux backend (target x86linux,
#923) is merged as DRAFT: emulated execution only, native x86 qualification NOT_RUN
(docs/X86-LINUX.md).
The default branch still holds substantial C (about 600 tracked files under src/: the legacy
OSC compiler, the reaction runtime, GB10 numerics), which the README calls unfinished migration.
Status: research grade, staged Alpha qualification in progress. OMEGA_SYSTEMS_CORE_CODE_AUDIT.md
is an earlier internal code audit marked PROPOSED and partly superseded; it is history, not a
current security review.
What to review, in priority order
- The seed chain:
seed/rung0/seed0.hex,seed/rung0/load0.sh(the one outside step, POSIXprintf), rungs 1 to 4,seed/omc/omc.om,seed/omega-from-seed.sh(rebuilds omc twice to identical bytes), and the committedseed/out/omc(sha25626540e6de62402d5784b30b24d7c6faae488137c1f8a4b3e784fd0b5d5528991, fromseed/omc/omc.om9977db63aae76ee41c35a7a5715d7dc40427f3c7711597f31e5b60697ef8e7ef; omc KFD GET_PROCESS_APERTURES_NEW owned-mapping span, branchamdserve/kfd-apertureon Radicle main 46520074). The earlier audit pins46dedc0a55c3e6187f7c7cea896c9691761f961210c906337a4cdbac7baa32f1(omc KFD CREATE_QUEUE queue object, amd_queue_v2_t extent; effects rows for the KFD words, branchamdserve/kfd-queueobj, not landed),bef974c1414dbac5b8f636d872a5815fb04594cda7bb213e9c0e0a1ff6f31c5b(omc KFD CREATE_QUEUE compiler-owned queue-object binding, branchamdserve/kfd-queueobj, not landed),5fe037d9653e72dfc57a346312ec9284f388a6e002adce6fdee1305fe70c5bdc(omc KFD words rebased with current diagnostic and module compiler work, branchamdserve/kfd-word-r2, not landed separately (merged into this line)),106558ba36e28d1a55384b9e2e1387ec429ff267bb03f1215f86c9c03ca64bed(omc's arena is a run-time pool that grows under a caller-stated memory ceiling, OMC_MEMORY_MAX (om4 learns the pool subset and envcnt/envread; error 14 now means the host or the ceiling refused), branchcompletion/integrated-20261112on Radicle main 4b4a0e4c),a5613368f427aacd73ebeee16d46f8b3203405711d4de5b860d0cbee11ce4533(omc run-time pools, landing 1 (global NAME T *, enlarge, len; OMEGESE 9.15), branchomc/poolson Radicle main 83507124),2495bc253c662dce362ac62393796a3579156dcfd5df7e3eba06df3436ae5d04(omc inline-cycle check reads the inline-edge tables only (no trap 3 past the calls' room; gate-nocaps drives every table past its first room), branchomc/inline-edgeson Radicle main ad3f7770),1e628c80d5bd2ad0b08eb46d8abff66eff284a74e5a302e589c2d61cfe9f7347(omc arena accesses written inline, in range by construction, and input-sized first rooms (compile time at or below f4fa7951 on the stack's units), branchomc/perfon Radicle main 1fa9e360),c52e986ed693c241f0bbb5c673a81a4aef70b9b923c447004360ffd111383607(omc tables in one growing arena, no table capacities (OMEGESE 9.6, decision 23 amended 2026-11-11), branchomc/no-capson Radicle main b2ad967e),f4fa7951816bbd09c5eaaae6692852a70c3c305164b365027c5b683dec7d63e9(OM-2 AArch64 global array bases and lengths pinned in X18..X26, with factory bay 16's pinshut fix, branchham/omc-perf-mem-3, stacked onham/om-threads-4andham/omc-perf-loops-5on Radicle main 12bdb787),0ed21175a1709cb755c289383cd8fcbfaac8330c3967fe4656b9f82fc96a3c4f(scheduler host words cpuset/cpuget/cpunow/setprio/getprio 236..240, branchham/om-threads-4, stacked onham/omc-perf-loops-5on Radicle main 12bdb787),6844d173abc85ecbc04154cce85e4e5eeec8bf7b21f4ab1c10728c55efe7dd00(OM-2 AArch64forloops tested at the latch, branchham/omc-perf-loops-5, on Radicle main 12bdb787),564c5835f307a65c07908eb5bd236addb060a42f44cfb7ac496879195486c999(names of up to 63 bytes, branchomc/long-names2e20b286, merged afterpearl/exec-limitson rad main a59a425b inham/omc-train),b87c8b651fc74c90357c9a6df93172aec18e89324bd9be8adb85f5142670318e(exec argv packets at 1024 records / 65536 bytes, branchpearl/exec-limits,ham/omc-train),6d1b1cf5a44803389a831b67f750ea4cd1c9f53edfde9d6d9241d7352887f1f8(the prlimit 235 host word, branchseed/prlimit-host-word, on rad main 408c76b7),0f2de85153b07656f4b992d101272987fe6ed1eee471ef70b132a37f5ba6b02f(x86 typesfmaoperands before its error 9, branchfix/x86-fma-order),cfd96b48b0460ab5557853d6856f9c741b96ac8d0d624e06198defb4cbfa0d8a(the execenv 233 host word, branchhive/execprog-env),5f90edea61bac241398df5036990d899361a5acd9decb37954ce088ec0f6f6df(PR #1054, main 3e3dc205),b1d9cff6d765d85159e14d8346ed946704e32e9ca39554fb22a7c3f23fe0cca3(PR #1045, main 8dc0fc5c),96eda108a064e419a6cda9112d3bf56ab64f2265fb04f8bb62c08a0786569763(PR #1050, main 49d79616),b4f45121f6c6d5d8a6ed0f5c4f3934b7cc4bec369bfa89523699bd33928f9b55(PR #1015, main d3d1b1bc) andbe8c51301307555254fc59e351d281aae1aa096d91521777e33a41c8b446448a(main 9920aab1) are historical. - Native host words (ids 100..165) and device and mapping words (ids 166..177) in
docs/one_layer/OMEGESE.mdandseed/host/: what effects compiled programs can perform. - Seeded libraries that parse input:
seed/json,seed/net(http.om),seed/wasm,seed/spirv,seed/sm121. - C code on
main:src/compiler/,src/runtime/(reaction runtime, capability and receipt paths,rx_argus.chooks),src/fabric/, numerics. Memory safety and parser handling. om/units (om/sha256,om/blake3) and the generatedsrc/omega_om_units.*from omega-bridge atom/omega-bridge.lock.tests/gates/run.shand the.gatemanifests;.aien/always,.aien/unmapped-ok,.aien/verify.pub..github/workflows/aien-verification.yml(pull request and push,contents: read, advisory),evidence-immutable.yml(pull request, fails on any modification of existing evidence),om-units-arm64.yml(hosted ARM64 rerun of the om-units gate, advisory). This branch addssbom.yml(SPDX SBOM artifact, read-only token).irspirv-intel-cpu.yml(advisory replay of the irspirv SPIR-V suite on Intel's CPU OpenCL runtime) landed onmainafter the described revision; this branch pins its actions by commit sha like the others.tools/test scripts and C helpers.
AGENTS.md: a head that changes .aien/, tests/gates/, .github/workflows/, .forgejo/ or
tools/aien-test/ is BLOCKED_OPERATOR and needs an operator run on the Spark. evidence/ is
immutable: never modify, rename or delete an existing file there.
Trust boundaries
- Untrusted:
.omsource given toomc; input to seeded parsers and network code; pull request heads (run by the Spark judge inside its sandbox). - Trusted: the seed hex and loader; the committed
omcdigest;.aien/verify.pubonmain; sibling checkouts at the commits inphysics.lock,argus.lock,aienos.lockandom/omega-bridge.lock; the DGX Spark that signs bundles. - GitHub checks are advisory; the DGX Spark is the test judge (
docs/PIPELINE.md).
Threat model summary
- Assets: compiler integrity (a trusted seed path with no C), correctness of emitted machine code, receipt integrity, the build host.
- Attackers considered: a malicious pull request (including one that rewrites evidence or
gates); hostile
.ominput; hostile data to seeded parsers; a tampered committed binary. - Defended: byte-identical self-rebuild and recorded digest; evidence additions-only check in CI
and as a Spark gate; BLOCKED_OPERATOR rule for trust paths; zero-disk-secrets gate; signed
bundles checked against
.aien/verify.pubfrommain. - Not defended / explicitly out of scope: the fixpoint is a same-lineage rebuild check, not diverse double compilation (README); host and emulator passes are not hardware qualification; the reaction runtime ladder R1 to R16 is not requalified on the current candidate.
Build from source at a pin
AArch64 Linux with gcc, make and sh. Some gates need sibling checkouts (../physics at
physics.lock 048e5f5e881b092733baaf65d0ace46abda7f908, ../aienos,
../omega-bridge at 431fff0a95f84c0a8bf9d3383f94d7e1f02d913e); a missing sibling exits 3.
git clone https://github.com/aien-dev/omega-mv.git omega
cd omega
git checkout bf54b19fa590e8ae925c0e80815516dbf41e7326
sh seed/omega-from-seed.sh
sha256sum seed/out/omc
Expected digest: the value in seed/out/omc.sha256.
Run every test
tests/gates/run.sh seed
tests/gates/run.sh evidence-immutable
tests/gates/run.sh zero-disk-secrets
tests/gates/run.sh om-units
make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-compiler-quick
make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-numeric-cpu
make PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 test-realize
- Every gate name in
tests/gates/*.gateis arun.shargument; the Spark runs the touched gates plus.aien/always(OMEGA-EVIDENCE-IMMUTABLE,OMEGA-ZERO-DISK-SECRETS). evidence-immutableprintsevidence/: additions only;zero-disk-secretsprintsZero plaintext .env files verified.- Some older milestone gate scripts rewrite their receipts in place; run on a throwaway checkout.
- Gates that touch the GB10 (
*-silicon,gpu-*, chip campaigns) need the DGX Spark in an authorized window: NOT_RUN. All commands above: NOT_RUN while writing this document.
Known limitations and NOT_RUN
- C remains on the default branch (
docs/migration/C-TO-OM-INVENTORY.md). - R15 and R16 recorded FAIL at requalification; the R16 receipt
22d7a79ais invalid as a current claim (README). aien-verification.ymlsetsREPO_SLUG: aien-dev/omegawhile this repository isaien-dev/omega-mv; whether GitHub redirects this is unknown from the repository.- Hardware results are tied to the exact commit in each receipt.
Dependencies and provenance
- No outside step on the seed path except POSIX
printf(seed/rung0/load0.sh). - Legacy build: gcc and make on AArch64. Sibling repositories pinned by lock files above.
- Committed binaries:
seed/out/omc; binary blobs and a static library underevidence/are recorded artifacts, not build inputs. - Licence: Apache-2.0 (
LICENSE,NOTICE).
Evidence
evidence/: about 255 content-addressed receipt directories (<name>.<sha256>.json), additions only, enforced byevidence-immutable.ymland theevidence-immutablegate.- Signed Spark bundles:
aien-dev/aien-receiptsatomega/<sha>/bundle.json(docs/PIPELINE.md). Receipts are append-only and never edited.