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 / osc / audit / aienos-physics.md

310 lines · 46394 bytes Raw Blame History Source

Appendix to OMEGA_SYSTEMS_CORE_CODE_AUDIT.md. Worker report (Opus, read-only), aienos 8706fb8 (native/capability byte-identical to Omega lock 4c21386), physics fecbedb. Reviewed: spot-checked nvrm.c:440 function-static UVM params, m16_native.c:97-108 poll without acquire, aienos_capability.h:7-10,77 u64 generation (all confirmed). Correction to its OPEN item 14: the Makefile default AIENOS_R7_DIR=../aienos-r9 on this host has no native/capability directory (checked 2026-09-29), so local R7 builds need an override; the build does not enforce aienos.lock. Not authoritative on its own; Part II of the main document rules.

OSC-0 / OSC-0B audit: AIENOS + PHYSICS C and assembly (read-only)

Sources: AIENOS snapshot @ 8706fb8 (aienos-snap/), PHYSICS snapshot @ fecbedb (physics-snap/), Omega link points in omega/.claude/worktrees/osc-0 (Makefile, .github/workflows/rx-host.yml, src/runtime/aienos_cap.h, src/runtime/rx_native_bind.c, a few src/ call sites), aien-architecture @ 873025c (local HEAD, 2026-09-27; may lag origin). Nothing was built, run or modified.

Labels: [FACT] code fact (file:line) · [SETTLED] decision already written down (doc cited) · [PROPOSED] recommended OSC-0B decision · [OPEN] unresolved.

Paths below are relative to the snapshot roots (aienos-snap/… = A:, physics-snap/… = P:, Omega worktree = O:).


1. Inventory

1.1 AIENOS C and assembly (non-vendored) — 1,268 lines total

PathLinesPurposeClass
A:native/capability/aienos_capability.c580Native capability authority (slot table, 64-bit generations, rights, delegation, cascade revoke, epoch, lease clock, restart). Omega links it as libaienos_capability.a.Table logic (state_*, lines 20-356) = B; hosted shell (pthread, calloc, /dev/urandom, CLOCK_BOOTTIME, lines 358-580) = E
A:native/capability/aienos_capability.h133Public C ABI of the authority (constants, AienosCapRef/Entry/Mint, 19 functions)B (C ABI boundary)
A:native/capability/tests/capability_test.c323Rule testsB (test)
A:native/capability/Makefile—-std=gnu11 -O2 -Wall -Wextra -Werror -fstack-protector-strong—
A:crates/aienos-artifact-tool/fixtures/p2_6/p26seed/probe.S131EL0 test probe: requests one capability, checks allow/deny via svcA/B test fixture (keep as asm; it is a test payload)
A:…/p2_5/p25exec/probe.S83EL0 execution probe (handle array, forged handle denial)test fixture
A:…/p2_5/p25wx/probe.S12W^X probe: store to own code page must faulttest fixture
A:…/p2_5/p25spin/probe.S6Runaway loop; only timer IRQ budget can end ittest fixture

AIENOS Rust (to be rewritten under the no-Rust rule; line counts only), 57,841 lines in 14 crates:

CrateLinesPurpose
aienos-kernel37,976Bare-metal no_std AArch64 kernel: vectors, GIC, timer, page tables, SMMUv3, DMA gate, NVMe, store, caps, scheduler
aienos-boot4,580UEFI entry / handoff
aienos-artifact2,505Binary Artifact v0 parser + identity
aienos-accel2,218GB10 PCI/BAR0 discovery
aienos-aegis1,757Capability graph / effect intent pipeline
aienos-evidence1,728Host evidence capture/verify
aienos-agent-state1,440Persistent agent state ABI
aienos-artifact-tool1,319Host artifact tooling
aienos-capability1,001Rust capability authority (u32 generations). Currently the declared differential oracle (its Cargo.toml description). F [PROPOSED] under the no-Rust rule once the C authority is the only authority
aienos-crypto922no_std crypto primitives
aienos-cortex728Cortex provenance store
aienos-c1-tree721COW prefix tree
aienos-store-tool477Store v1 image tool
aienos-capability-ffi469C binding for the Rust authority (F, replaced by native C)

Vendored (list only): A:vendor/ — 58 Rust crates (~630k lines: syn, libc, uefi, uefi-raw, serde*, curve25519-dalek, ed25519-dalek, sha2, der, …). No vendored C. P:third_party/nvidia-open-580.173.02 — NVIDIA open kernel module headers; Omega compiles against four of its include dirs (O:Makefile:10-13).

1.2 PHYSICS C and assembly (non-vendored) — 9,399 lines total

PathLinesPurposeClass
P:nvrm/nvrm.c810Native NVIDIA RM/UVM client: ioctls on /dev/nvidiactl, /dev/nvidia0, /dev/nvidia-uvm; memory alloc/free with GPU VA == CPU VA; channel group, GPFIFO, USERD, doorbell. Omega compiles it into omegatool and R12/R-silicon tests.D (ioctl/mmap/doorbell) wrapped in B bookkeeping (live table, VA free list)
P:nvrm/nvrm.h119Nvrm, NvrmMem, NvrmLiveAlloc; 15 functions; nvrm_mthd inlineD/B C ABI
P:nvrm/lifecycle_gates.c350M19R hardware gates for nvrm_free / wait_marker_getest (E)
P:m16/m16_native.c112Thin wrapper: open, 64-slot legacy alloc table, channel + 4 KiB pushbuffer, semaphore-release method stream, marker pollC/D
P:m16/m16_native.h54M16NativeContext (embeds whole Nvrm)C ABI
P:m16/m16_concurrent.c135Two-channel causality testtest (E)
P:m16/m16_requalify.c132Single-channel causality testtest (E)
P:m15/physics_accel.c457Software model of SMMUv3 windows / queues / receipts (no MMIO, no ioctl)F (or keep as spec only)
P:m15/physics_accel.h255Model structs: EffectIntent (64 B), EffectReceipt (192 B), AcceleratorCapability (u32 generation)F / spec
P:m15/physics_accel_native.c/.h286 / 126sysfs probe of SMMU + GB10 (read-only files) + DMA "model"F (sysfs probe = E)
P:m15/tools/m15tool.c701M15 host toolE
P:tools/m2tool.c1,120M2 host qualification tool (sha256, hexfield, audit-verify, golden)E
P:m3/tools/m3tool.c260M3 host toolE
P:sha256_clean.c107Freestanding SHA-256 used by Atlas bootstrap image and host toolsB (keep)
P:physics.s336M2 PHYSICS entry: ingress validation, EL check, VBAR install, frame authority init, panic traps, polled PL011 UARTC/D
P:vector_table.s305M2 16-slot vector table + stackless trap capture → print → wfe haltD
P:memory_alloc.s189M2 physical frame bitmap authority (grant only)C
P:capability.s137M2 CAP_ROOT genesis + validate_capability(ptr, op, addr, size)C
P:atlas_m2.s174Atlas M2 bootstrap seed: DAIF mask, descriptor, SHA-256 verify, br to PHYSICSE (bootstrap) / D
P:m3/physics.s277M3 PHYSICS entryC/D
P:m3/vector_table.s205M3 vectors (regressed vs M2, see §3a)D (F once M2 collector is reused)
P:m3/capability.s533M3 32-slot capability ledger, u32 generation, derive/lookup/revoke, provenance SHA-256C
P:m3/memory_alloc.s222M3 frame bitmap: grant, grant-in-range, releaseC
P:m3/effect_broker.s411M3 submit_effect(intent_ptr) 10-stage admission + receiptC (semantics = A, should move up)
P:m3/receipt_ledger.s176Append-only 32-receipt hash chainC
P:m3/replay_cache.s15732-entry idempotency cacheC
P:m3/sha256_be.s85Big-endian SHA-256 in asmC
P:m3/atlas_m3.s155Atlas M3 seedE
P:m3/tests/test_m3_authority.s, sha256_kat.s, kat_stub.s843 / 163 / 7In-guest tests (sha256_kat enables SCTLR_EL1.A)test

Class totals (C + asm lines, excluding tests/fixtures, approximate):


2. Hazard counts (C files, non-vendored; asm listed separately)

HazardCountRepresentative sites
malloc/calloc/realloc/free78 (m2tool 42, m3tool 20, aienos_capability.c 15, physics_accel_native 1); 0 in nvrm/m16A:native/capability/aienos_capability.c:423-425 (3× calloc), :363 free in release, :514 malloc in restart; P:m3/tools/m3tool.c:48,53
Raw pointer fields in structs8P:nvrm/nvrm.h:27 void *cpu, :44 void *cpu, :59 void *usermode_cpu, :60 volatile uint32_t *doorbell; A:…/aienos_capability.c:37,41 CapShared *shared (admin and view share one)
Pointer arithmetic~90P:nvrm/nvrm.c:285 doorbell = mmio + offset; :717 fifo.cpu + userd_off + offsetof; P:m15/physics_accel.c:382 ring slot; all PHYSICS asm uses base+shift addressing (m3/capability.s:147-149)
NULL / 0 sentinels~35 C + asmNvrmMem all-zero == "freed" (nvrm.c:547); MAP_FAILED vs NULL mix (nvrm.c:162,284); asm allocate_frame returns 0 = exhausted (memory_alloc.s:112); lookup_capability returns 0 ptr (m3/capability.s:217); AIENOS_CAP_PARENT_NONE = UINT32_MAX (aienos_capability.h:69)
ptr+len conventions12 APIsGood: nvrm_enqueue(pb, off, nwords) (nvrm.c:720) checks span; sha256_compute(data, len, scratch[128], out[8]). Missing length: aienos_cap_authorize(admin, presented) reads 32 B (aienos_capability.c:572-580); aienos_cap_cognition_mint(view, req, token); m16_native_build_release(words, …) writes 8 words (m16_native.c:52-66); asm validate_capability(cap_ptr, …) (capability.s:92); submit_effect(intent_ptr) (m3/effect_broker.s:82)
Flexible array members0—
Unsafe casts52 (m2tool 28, nvrm.c 8, m3tool 5, others)nvrm.c:285 (volatile uint32_t *)((uint8_t *)mmio + …); nvrm.c:485 mmap((void *)va…) integer→pointer; nvrm.c:729 (volatile uint64_t *)rm->fifo.cpu; NV_PTR_TO_NvP64(params) pointer→u64 into kernel (nvrm.c:73, 270, 293); O:src/runtime/rx_native_bind.c:21 (AienosCapEntry *)out type pun
goto cleanup14 (nvrm.c 7, m2tool 7)nvrm.c:688-706 goto failed in channel_destroy
Global mutable statenvrm.c: 5 (g_va_counter, g_va_slots_lock, g_va_recycled[1024], g_va_recycled_count :183-186, function-local static UVM_MAP_EXTERNAL_ALLOCATION_PARAMS ma :442); aienos_capability.c: 1 (last_boot_gen :52); PHYSICS asm: all state is at fixed physical addresses (0x40205800.., 0x40206000, 0x40207000, M3 0x40209000/0x4020A000/0x4020C000)
Arenas / pools5Fixed tables: Nvrm.live[4096], Nvrm.free_list[4096] (nvrm.h:64-67), M16NativeContext.legacy_allocs[64] (m16_native.h:18), CapState.entries[256] (aienos_capability.c:24), M3 cap table 32×128 B / receipts 32×192 B / replay 32×64 B
GPU VAs / CPU addresses in structs9NvrmMem.va + .cpu (identical by construction, nvrm.h:25-28); NvrmVaRange; Nvrm.va_next/va_slot_base/channel_va; M15 DmaWindowDescriptor.iova_base/phys_base; M2/M3 cap records bound_base/bound_size (physical)
Generation counters / handle IDs8 schemesC authority u64 (aienos_capability.h:73-76); M2 cap u32 never checked (capability.s:37-41); M3 u32 (m3/capability.s:403-408); M15 u32 (physics_accel.h:88); RM handles next_handle++ u32 from 0xcf000001, refuse at UINT32_MAX (nvrm.c:65-72); GPFIFO put/retired u32 wrap (nvrm.h:63-64); marker serial compare (m16_native.c:103); Rust caps u32 (kernel caps.rs:76, abi.rs:141)
Rights fields4AIENOS_CAP_RIGHT_* 10 bits (aienos_capability.h:43-60); M2/M3 allowed_ops u32 (capability.s:20); M15 ACCEL_OP_*; Omega RX_RIGHT_* re-declared (O:src/runtime/rx_caproot.h:67-80)
Stale-handle validation5 sitesaienos_capability.c:135-138, 143-167, 204; m3/capability.s:153-157, 183-195; nvrm_free live-table match (nvrm.c:553-563)
Serialization of native structs4M15 hashes raw EffectIntent/EffectReceipt bytes (physics_accel.c:103, 119-121); M3 broker builds receipt at fixed offsets (effect_broker.s:66-79); M3 derive hashes 80 B built at fixed offsets (m3/capability.s:412-436); AienosCapEntry copied across C ABI by value/pointer
MMIO3Usermode doorbell *rm->doorbell = token (nvrm.c:742-744); USERD GPPut store (nvrm.c:733); PL011 UART at 0x09000000 (physics.s:249-268)
ioctl / mmap19 in nvrm.cnvrm.c:59 (all RM escapes), 145 (UVM), 177 (mmap RM memory), 485 (PROT_NONE reservation), 596 munmap
Page-table / SMMU code0 in C/asmOnly in Rust kernel (smmu.rs 1,392 lines, pagetable.rs 658) and M15 model. PHYSICS M2/M3 run with MMU off.
DMA codeGPU onlyCoherent sysmem via RM NV01_MEMORY_SYSTEM + RM_MAP_MEMORY_DMA with CACHE_SNOOP_ENABLE (nvrm.c:434) + UVM external range (nvrm.c:417-450)
_Static_assert0 in AIENOS/PHYSICS; 4 in Omega's shim (O:rx_native_bind.c:10-16)—
packed / __attribute__ layout0 packed; 3 aligned(16) scratch buffers—

3. Machine-semantics evidence

(a) Interrupts, vectors, interrupt context

(b) MMIO / volatile / barriers / cache / DMA / page tables / SMMU

(c) Atomics and memory orderings

(d) Layout, hardware formats, endianness, hashing

(e) Failure handling

(f) Capability authority generation / rights model


4. Per-site hazard table (top 30)

repository/pathfunction/typehazardcurrent ownership modelcurrent lifetime modelproposed Omega replacementmigration difficultyrequired compatibility boundary
physics/nvrm/nvrm.c:543-612nvrm_freeFrees RM memory + unmaps while GPU work may still reference it; other NvrmMem copies dangleCaller holds NvrmMem by value; Nvrm.live[] is the real ownerManual; "freed" = all-zero struct; no GPU fencehandle<DeviceMem> owned by an arena/region per channel; free requires a completion token (own<Fence>)HighRM/UVM ioctl ABI (C ABI adapter)
physics/nvrm/nvrm.c:674-706nvrm_channel_destroyTears down channel with in-flight GP entries (no put==retired check)Nvrm owns channel handlesManual, ordered frees with goto failedown<Channel> whose drop requires drained state; typestateMediumRM free order (C ABI adapter)
physics/nvrm/nvrm.c:442uvm_map static … maHidden global shared by all contexts → data raceFunction-local staticProcess lifetimeStack T inline (it is ~ a few KB) or per-context fieldLownone
physics/nvrm/nvrm.c:726-740nvrm_retireTrusts caller that entries completed; no GPGetCaller asserts completionMonotonic u32 counters, wrap by subtractionown<Fence> produced only by observed marker; retire consumes itMediumOmega calls (omega_accelerator_world.c:984)
physics/m16/m16_native.c:97-108m16_native_wait_marker_geVolatile poll with no acquire barrier; data read after may be staleBorrowed volatile u32*Caller-guaranteeddevice<u32> with load_acquire; returns own<Fence>Lownone
physics/nvrm/nvrm.c:742-744nvrm_ringMMIO store with no NULL check, no own barrierNvrm.doorbell raw ptr into RM mmapLives until munmap(usermode_cpu) in closedevice<Doorbell> (MMIO typed handle), unsafe physical block for the storeLowusermode MMIO mapping
physics/m16/m16_native.c:69-75m16_native_enqueue_methodsRewrites single 4 KiB pushbuffer at offset 0 while earlier entries may be unconsumedM16NativeContext.pb_memReused every submitarena/region ring of pushbuffer slices tied to GP entries; slice<u32>MediumGPFIFO entry format
physics/nvrm/nvrm.h:24-29NvrmMemCopyable struct with raw cpu pointer + VA; aliasing and dangling copiesValue type, no ownerNonehandle<DeviceMem> (gen-checked) + &[u8]/slice<T> view borrowed from itMediumOmega struct field access
physics/nvrm/nvrm.h:40-84Nvrm (~225 KiB)Huge, stack-allocated by Omega (omega_blackwell_submit.c:44); fields read directly by OmegaCaller-owned storageScope of callerown<Nvrm> heap/region; opaque type with accessorsMediumOmega reads .put/.retired/.faulted/.entries/.root/.device/.vaspace
physics/nvrm/nvrm.c:161-181, 485map_to_cpu, alloc_with_cacheabilityint→pointer casts, MAP_FIXED over reservationKernel mapping owned by Nvrm.live[]Until munmappin<DeviceMem> (pinned, identity VA) produced by an unsafe physical blockHighLinux mmap + RM ABI
physics/nvrm/nvrm.c:64-80rm_allocNV_PTR_TO_NvP64(params) passes user pointer to kernel as u64Stack param blocksDuration of ioctlC ABI adapter taking &mut TLowNVIDIA ioctl structs (third_party headers)
physics/nvrm/nvrm.c:183-209VA slot globalsProcess-global mutable state + spinlock; recycled list silently drops when >1024ProcessProcessarena/region VA allocator object owned by a device-session rootLownone
physics/nvrm/nvrm.c:629-635channel error notifierAllocated, never read → device fault/loss invisibleNvrm.notifierChanneldevice<Notifier> checked on every wait; explicit DeviceLost errorMediumRM notifier layout
physics/nvrm/nvrm.h:111-113nvrm_mthdcount not masked; overflows into opcode bitspure fn—T inline bitfield type with checked constructorLowmethod header format
physics/m16/m16_native.c:52-66m16_native_build_releaseWrites 8 words to buffer of unknown lengthCaller buffer—returns [u32; 8] T inline or takes &mut slice<u32>Lownone
physics/m16/m16_native.c:22-42legacy alloc tableLookup by CPU pointer; 64-slot linearContext-ownedManualhandle<DeviceMem>LowOmega does not use it directly
aienos/native/capability/aienos_capability.c:420-449, 452-462aienos_cap_start/stopTwo heap handles share a refcounted CapShared; use after stop is UAF; double stop double-freesRefcount (holders)Manual stopown<Admin> + own<View> sharing Rc-like region; or SemanticId-keyed singleton in a regionMediumOmega calls aienos_cap_stop 27×
aienos/native/capability/aienos_capability.c:572-580aienos_cap_authorizeReads 32 bytes from pointer with no lengthBorrowedCall&[u8; 32]LowC ABI (unused by Omega)
aienos/native/capability/aienos_capability.c:343-351, 558-561aienos_cap_force_generationTest seam exported in production ABIAdmin—Remove from production; test-only buildLow2 call sites in Omega src+tests
aienos/native/capability/aienos_capability.c:111-128bootstrap (via restart)restart revives a killed writer (writer_alive=true)Admin—Typestate: killed authority cannot restart without explicit revival rightLowbehaviour change visible to R-gates
aienos/native/capability/aienos_capability.c:369-375LOCKED macroGNU statement expression; lock not held across multi-call sequences (validate then use = TOCTOU)pthread mutexPer call&T view under a region lock; validated ref returns handle<Cap> checked again at useMediumOmega rx_world validate→act pattern
omega/src/runtime/aienos_cap.h:18-47 + rx_native_bind.c:21header copy + (AienosCapEntry *)outHand-copied structs, no constants, padding-dependent, type pun between RxCapEntry and AienosCapEntryOmega copyBuildSingle generated header; SemanticId<Cap> = {u32 idx, u64 gen} with explicit layout + assertsLowthe C ABI itself
physics/m3/capability.s:139-211lookup_capabilityReturns raw pointer into cap table; caller may keep it past revokeTable owns recordsUntil slot reusedhandle<Cap> returned; record accessed via &T scoped borrowMedium (asm)M3 gate receipts
physics/m3/capability.s:403-408derive generationu32 generation; slot retired on wrapTableFixedu64 generation SemanticId<Cap>MediumM3 receipts/hashes include u32 gen
physics/capability.s:92-127validate_capability (M2)Takes record pointer, no generation checkCaller pointer—handle<Cap> lookupLow (M2 frozen)M2 byte-identical image
physics/m3/memory_alloc.s:185-222release_frameReleases any allocated frame without capability or DMA-quiescence proof (contradicts doc §6.4)BitmapManualown<Frame> consumed by release together with own<DmaQuiesced> receiptMediumframe-authority gates
physics/m3/effect_broker.s:82-135submit_effect(intent_ptr)Pointer only, alignment checked, no range check against caller memoryCallerCall&EffectIntent (64 B T inline, explicit LE layout)Mediumreceipt format
physics/m3/vector_table.s:32-35, 116-140common_trapClobbers x0/x1 before save; FAR validity wrong for EC 0x26Fixed frameTerminalReuse M2 collector (unsafe physical block)LowM3 gate expectations
physics/m15/physics_accel.c:85-127, 343-392receipt seal, submit_commandHash over native struct bytes; ring tail overwrites without head checkLink structManualExplicit serializer to [u8; N]; model code retiredLow (retire)none (not linked)
physics/atlas_m2.s:130-134handoff br x19No ic iallu; dsb; isb before jumping to loaded imageAtlasOne-shotunsafe physical block with mandatory I-cache syncLowAtlas byte-identical image (M2 frozen)

5. C ABI dependencies that cannot immediately disappear

Omega → AIENOS capability authority [FACT] O:Makefile:184-197 (and 210, 224, 242, 256, 282, 310, 329, 351): links $(AIENOS_R7_DIR)/native/capability/out/libaienos_capability.a (default dir ../aienos-r9; CI checks out the commit in aienos.lock = 4c21386, O:.github/workflows/rx-host.yml:38-58). Header: Omega's own copy src/runtime/aienos_cap.h (no constants). Calls (count in src+tests): office 49, mint 30, stop 27, start 23, revoke 22, validate 15, inspect 7, clock 5, advance_clock 5, reclaim 4, cognition_mint 4, restart 3, cognition_admin 3, bump_epoch 3, kill 2, generation_advance 2, force_generation 2. Pointer passing and implied ownership:

Omega → PHYSICS NVRM/M16 [FACT] O:Makefile:3-24, 71-75, 316-331, 357: compiles $(PHYSICS_DIR)/m16/m16_native.c and nvrm/nvrm.c into omegatool and GPU tests; include paths -I physics/m16 -I physics/nvrm + four NVIDIA open-580.173.02 header dirs; pinned by physics.lock = fecbedb and a Makefile check (O:Makefile:47-60). Calls: nvrm_mthd 114, m16_native_close 56, nvrm_alloc 35, m16_native_submit_methods 6, wait_marker_ge 5, open 5, create_channel 5, nvrm_retire 4, wait_marker 3, nvrm_free 2, nvrm_enqueue 2, nvrm_channel/destroy 2 each, nvrm_ring 1, nvrm_alloc_gpu_uncached 1. Pointer passing and implied ownership:

Not linked by Omega [FACT]: PHYSICS M2/M3 asm images (QEMU-only, separate binaries), M15 model, tools.


6. Existing good patterns worth keeping


7. OSC-0B items (hardware/kernel side)

1. Interrupt + device concurrency and publication

ObjectWho keeps it aliveWho may touchWhere it lives
C capability table (CapShared)refcount of Admin+View handlesAdmin: mutate; View: validate/inspect; cognition: nothingheap (calloc) in the Omega process
Nvrm / M16NativeContextthe Omega caller (stack or struct)single owning thread by convention (no lock)Omega stack/struct (~225 KiB)
GPU memory (NvrmMem)Nvrm.live[] + RM objectanyone holding a copy of the pointerLinux-RM sysmem at identity VA (pinning assumed, [OPEN])
GPFIFO / USERD / doorbellNvrmnvrm_enqueue/nvrm_ring, Omega reads counters directlyRM sysmem / usermode MMIO
PHYSICS cap table, bitmap, ledgersthe PHYSICS image foreverPHYSICS code only (MMU off, EL1, single CPU)fixed physical addresses per contract

8. Contradictions (docs vs code, code vs code)

  1. Generation width. C authority: u64, never wraps, EXHAUSTED at max (A:native/capability/aienos_capability.h:8-10, .c:80-84). Omega header: u64 (O:src/runtime/aienos_cap.h:7-8). AIENOS ADR 0013 + Rust kernel: u32, retire at u32::MAX (A:docs/adr/0013-aienos-abi-v1.md:57, 83-94; A:crates/aienos-kernel/src/caps.rs:76, abi.rs:141). Rust aienos-capability crate: u32 (src lib :86-87). PHYSICS M3: u32 retire on wrap (m3/capability.s:403-408). M2: u32, unchecked. M15: u32 (physics_accel.h:88).
  2. Who owns authority. PHYSICS README "Trusted Machine Authority … PHYSICS AUTHORIZES", governor of SMMUv3/devices (P:README.md:1-40). aien-architecture ADR 0013/0014 (873025c): PHYSICS→FORGE is realization only, "not a gatekeeper"; AIENOS owns interrupts, capabilities, DMA confinement (docs/adr/0014:5-10; doctrine/SOVEREIGNTY.md:383). The M3 capability ledger and effect broker in PHYSICS asm are authority code under the old model.
  3. Release requires DMA quiescence (P:docs/native-frame-authority.md §6.4) vs M3 release_frame checks only the bitmap bit (P:m3/memory_alloc.s:185-222) and nvrm_free has no GPU completion check.
  4. README claims SMMUv3 DMA protection (P:README.md:38) vs no SMMU code in PHYSICS; evidence says Linux programs the SMMU, "takeover deferred" (P:evidence/physics_accelerator_link_qualification_receipt.json:38-39).
  5. M2 cap comment vs code: header says resource_type = 0xFFFFFFFF (P:capability.s:24) but code stores 1 (:47-49); contract says 1.
  6. Decision codes: DEC_REJECTED and DEC_REJECTED_STRUCTURAL are both 2 (P:m15/physics_accel.h:33-35).
  7. "No Rust" in A:native/capability/Makefile:1 vs aienos-capability + aienos-capability-ffi still workspace members (A:Cargo.toml:4-5).
  8. Omega pin vs snapshot: Omega aienos.lock = 4c21386 and Makefile default dir ../aienos-r9; this audit's snapshot is 8706fb8. [OPEN] which authority commit is actually linked in local builds.
  9. Header drift: Omega's aienos_cap.h omits every constant; Omega re-declares rights (RX_RIGHT_*) with no compile-time tie to AIENOS_CAP_RIGHT_*.
  10. M3 vs M2 trap collector: M2 preserves x0/x1 and checks FnV; M3 does neither (§3a).
  11. Name vs behaviour: m16_native_wait_marker (equals) calls _ge (m16_native.c:93-95).
  12. nvrm.h declares nvrm_alloc_gpu_uncached after #endif (P:nvrm/nvrm.h:117-119).

  1. [PROPOSED] One capability identity: SemanticId<Cap> = { u32 index, u64 generation }, explicit 16-byte LE layout, generation never wraps, slot retired at max, restart floor as in the C authority. Supersede ADR 0013's u32 generation and M3/M15 u32 (needs ADR amendment; Drake-visible).
  2. [PROPOSED] Two-phase revocation: revoke is immediate for new uses; reclaim of memory, VA, frames or channels requires an own<Quiesced> proof (observed fence or drained channel, and natively SMMU unmap + TLBI + CMD_SYNC). Encoded in types, matching native-frame-authority.md §6.4.
  3. [PROPOSED] Completion is a value: GPU completion produces own<Fence> only from an acquire-load of a marker; nvrm_retire, pushbuffer reuse and nvrm_free consume fences. Plain volatile polling without acquire is forbidden.
  4. [PROPOSED] Failure classes: invariant violation in kernel/trap context → stackless capture + halt (M2 collector is the reference); exhaustion/OOM, invalid/stale capability, device loss → error values, fail closed, never silent. Device sessions carry a sticky faulted/DeviceLost state sourced from the RM error notifier.
  5. [PROPOSED] No-allocate/no-block contexts: trap/IRQ code may not allocate, take a blocking lock, or call the capability authority's mutating API; the type system marks these contexts.
  6. [PROPOSED] Explicit layouts: any struct crossing a device, hash, receipt, or C ABI is declared with offsets and LE encoding and emits _Static_asserts in generated C headers; hashes are computed over serializer output. Omega's hand-copied aienos_cap.h is replaced by one generated header.
  7. [PROPOSED] Opaque device sessions: Nvrm becomes an opaque own<DeviceSession> (heap/region, not stack); Omega stops reading its fields and uses accessors. Remove the function-local static in uvm_map now (trivial C fix, independent of OSC).
  8. [PROPOSED] Pinned memory: fixed-address PHYSICS regions and identity-VA GPU memory are pin<T>/device<T> created only in unsafe physical blocks; everything above borrows slice<T>.
  9. [PROPOSED] Minimal ordering vocabulary: acquire/release on device<T>, dmb ish/oshld/oshst, dsb, isb, cache clean/invalidate by range; nothing else in safe code.
  10. [PROPOSED] Retire/merge: M15 model (F), Rust aienos-capability(+ffi) (F), M3 trap collector (replace with M2's). Keep sha256_clean.c pattern. Remove aienos_cap_force_generation from the production ABI; make restart unable to revive a killed writer without an explicit right.
  11. [OPEN] Where authority lives long-term: C authority in AIENOS (current Omega link) vs PHYSICS M3 ledger (old doctrine). ADR 0014 points to AIENOS; PHYSICS M3 ledger is then legacy evidence.
  12. [OPEN] Native GB10 coherence for all engines, and whether GPU-uncached allocations need CPU-side cache maintenance natively.
  13. [OPEN] Atlas handoff I-cache sync requirement once caches are on natively (atlas_m2.s:130-134).
  14. [OPEN] Which AIENOS commit Omega actually links (lock 4c21386 vs snapshot 8706fb8).