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 / rx-r7-captable-map.md

64 lines · 3538 bytes Raw Blame History Rendered
1# R7 design: host capability checks onto the Aienux table
2
3The mapping itself is `spec/r7-aienos-authority-mapping.md`. This note is the
4short version.
5
6Status: the native authority now has the pieces this note said were missing,
7and the host attack list matches the Linux mint. The Linux mint remains the
8oracle and is still in the tree. The reaction world can be pointed at the
9native view; that view cannot mint. This note does not connect real AIEN,
10and it does not give the reaction world an administrative handle.
11
12Grounded in:
13
14- host validation: `rx_caproot_validate` in `src/runtime/rx_caproot.c`, after
15 the split that keeps `RxCapAdmin` off `RxWorld`
16- Aienux table: `CapTable` in `crates/aienos-kernel/src/caps.rs` on aienos
17 `main`, and `Handle` in `crates/aienos-kernel/src/abi.rs`
18
19## What already matches
20
21| Host check | Aienux table today |
22| --- | --- |
23| A reference is `{id, generation}` | `Handle` is `{index, generation}`. Generation 0 is never issued. |
24| A reused slot must not honor the old reference | `lookup` requires the slot generation to match. A stale handle is `InvalidHandle`. |
25| A slot whose generation is already the maximum is retired, not wrapped | `allocate` skips a slot whose generation is `u32::MAX`. The old handle stays invalid. The host helper `rx_cap_generation_advance` copies that rule. |
26| Narrowing is allowed. Adding rights is not | `derive` requires `DERIVE` and refuses a right the parent does not hold (`RightsEscalation`). |
27| Revoking a parent revokes the children | `revoke` walks parent links across the tables the caller supplies, children first. A capability that has been derived from becomes a tombstone so the chain still reaches the children. |
28| Copying the reference is not permission | `lookup` checks rights on the live slot. The host checks the root table. The object stores the reference and still asks the root. |
29
30## What the native authority now carries
31
32The older task table is unchanged. The native authority beside it now has
33the pieces the host oracle was checking:
34
35- Subject. A capability presented by the wrong principal is refused.
36- Epoch and lease. A stale epoch and an expired lease are refused.
37- Privileged rights stay at the office. Mint, revoke-any, reclaim, epoch, and
38 clock cannot be delegated. The task table's rights stay read, write, map,
39 grant, derive, and revoke.
40- Resource width. The native resource is 64 bits. Narrowing drops nothing:
41 a value that does not fit in 32 bits is refused.
42- The reaction world can receive the validation view. It does not receive
43 the office token or the mint path. The Linux mint process remains beside
44 it as the oracle.
45
46## What must not move across
47
48- The permission word on the shared object. Authority stays on the capability,
49 which is what `CapTable` already does. Do not copy that word into the table
50 and do not start honoring it.
51- An administrative handle on the reaction world. Cognition may hold a
52 capability reference. It may not hold the table, the office, or the mint path.
53- A second generation counter. The handle generation and the object generation
54 are different numbers for different things. Each still has only one counter
55 of its own.
56
57## Order
58
591. The Linux mint process is still the oracle.
602. Subject, epoch, and lease are on the native authority, and the reaction
61 view cannot mint.
623. The reaction world can check that authority. The Linux mint stays.
634. Host parity on the attack list is the R7 evidence. Retiring the Linux
64 oracle would be a later decision.