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/spec/r7-aienos-authority-mapping.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 / spec / r7-aienos-authority-mapping.md` 84 lines · 5867 bytes Raw Blame History Rendered 1 # R7 design: host authority onto the Aienux capability table 2 3 Status: host parity is proven. The native authority lives in Aienux 4 (`aienos-capability`). The same attack list was run against that authority 5 and the Linux mint, and the outcomes matched. The reaction world can check 6 references through the native view. The Linux mint is still built and is 7 still the oracle. It has not been removed. 8 9 This does not connect real AIEN cognition, Omega synthesis, or AEGIS. It 10 does not start the graphics processor. Continuity across a generation 11 change is specified separately and does not stop the live organism while 12 the next generation is being prepared. 13 14 The reaction world, when pointed at the native authority, receives the 15 read-only view. It does not receive the admin handle or the office token. 16 17 Grounded in aienos `main` at ``07bdb86de0ac30016ead43b321e0a39253b4cc8f``: 18 19 - `crates/aienos-kernel/src/abi.rs` — `Handle`, `ResourceId`, `Rights` 20 - `crates/aienos-kernel/src/caps.rs` — `CapTable` 21 22 And in the host reaction world: 23 24 - `src/runtime/rx_caproot.h` — `RxCapRef`, `RxCapEntry`, rights, lease, epoch 25 - `src/runtime/rx_world.h` — an object stores a capability reference and still 26 asks the root before a use counts 27 28 ## Mapping 29 30 | Host today | Aienux table today | What has to be true before R7 | 31 | --- | --- | --- | 32 | `RxCapRef` is `{cap_id, generation}` | `Handle` is `{index, generation}`. Generation 0 is never issued. | Same pair. A copied pair is still not permission. | 33 | Subject on the capability, checked at validation | No subject. A slot has a resource id and rights. | Add a principal, or an equivalent the host check already depends on. | 34 | Resource is 64 bits | `ResourceId` is a kind plus a 32-bit id. The table's `insert` takes a `u32` resource. | Widen the native resource, or define a lossless narrowing. Do not silently drop the top half. | 35 | Rights: read, write, effect, delegate, and privileged mint / revoke-any / reclaim / epoch / clock | Rights: read, write, map, grant, derive, revoke. Unknown bits are refused. | Read and write line up. Effect has no native bit. Map and grant have no host bit. Privileged rights must stay on the office, not become ordinary derivable bits. | 36 | Delegation only narrows rights | `derive` requires `DERIVE` and refuses a right the parent does not hold. | Same rule. Derivation is not minting. | 37 | Revoking a parent revokes the children | `revoke` walks parent links, children first. A derived slot becomes a tombstone so the chain still reaches the children. | Same cascade. | 38 | Generation: a reused slot must not honor the old reference. A slot at the maximum generation is retired, not wrapped. | `lookup` requires the slot generation to match. `allocate` skips a slot whose generation is already the maximum. | Same stale rule. This generation belongs to the capability. It is not the object's generation. | 39 | Lease expiry on a logical clock | No lease and no clock. | Add a lease, or stop depending on one. Today the host refuses an expired lease. That check has nowhere to land. | 40 | Epoch on the capability, compared with the root epoch | No epoch. | Add an epoch, or stop depending on one. Today the host refuses a stale epoch. | 41 | Admin operations go through `RxCapAdmin` and require the office | `insert`, `derive`, and `revoke` are methods on the table. The table lives in the kernel. | The reaction world receives a validate path only. It must not receive insert, derive, or revoke. | 42 | Runtime validation is `rx_caproot_validate`: read the slot, check subject, resource, rights, epoch, and lease | `lookup` reads the slot and checks rights. It does not check a subject, an epoch, or a lease. | The native validate path has to grow those checks before it can replace the host root. | 43 44 ## What must not move across 45 46 - The permission word in the 32-byte shared object. It is written as zero and 47 is not authority. Copying it into the native table would not create 48 authority either. 49 - An administrative handle on the reaction world. Cognition may hold a 50 capability reference. It may not hold the table, the office, or the mint path. 51 - A second generation counter for the same thing. The capability generation 52 and the object generation are different numbers. Each has one owner. 53 54 ## End state 55 56 The trust root mints. The resident world receives a validation view. Policy 57 and ratification use the trusted admin path. The Linux mint process is only 58 the stand-in until that native root exists. 59 60 ## Order 61 62 1. The Linux mint process stays as the oracle. It is still in the tree. 63 2. Subject, epoch, lease, a 64-bit resource, and office rights that cannot be 64 delegated are on the native authority. The reaction view cannot mint. 65 3. Resource width is 64 bits on the native authority. A value that does not 66 fit in 32 bits is refused if something tries to narrow it. The older task 67 table's rights word is unchanged. Effect and the office rights live on the 68 native authority. Map and grant stay on the task table. 69 4. The reaction world checks the native view when it is started that way. 70 The existing heartbeat still checks the Linux oracle. The mint process is 71 not retired. 72 5. The host attack list matching both sides is the R7 evidence. It is not a 73 graphics-processor claim. Continuity of the organism across time is the 74 separate generation barrier. 75 76 ## Generation barrier 77 78 Object retirement already advances one object's generation and refuses the 79 old pair. That is not a lineage transition for the whole organism. The 80 generation barrier keeps one active generation while the next is prepared, 81 and it becomes strict only when that next generation is promoted. It does 82 not drain the live organism in order to prepare the candidate. The promotion 83 right added beside the other privileged rights is what authorizes that 84 transition. The candidate does not authorize itself.