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 / spec / r8-aegis-resident.md

109 lines · 5478 bytes Raw Blame History Rendered
1# R8: AEGIS resident authority
2
3ADR 0016 §41 and its 2026-09-28 scope note. Gate `R8_CONSTITUTIONAL_AEGIS_PASS`.
4
5## Rule
6
7Authority relationships live in the world. A reaction that already holds a
8valid capability runs with no policy round trip. A reaction that needs new
9authority is not ready. Its principal publishes a request, AEGIS decides, and
10only the Aienux root mints. Nothing is called and nothing waits.
11
12"AEGIS" here is the verifier/policy faculty (ARCHITECTURE §2.5), not the
13`aegis-runtime` program. The root is the native Aienux capability authority
14(aienos `native/capability/`, C).
15
16## What runs
17
18Code: `src/runtime/rx_aegis.{c,h}`. Engine additions in `rx_world.{c,h}`:
19`cap_slotted` / `cap_slot`, `stamp_proposed`, `rx_world_crumb_origin`.
20Test: `tests/runtime/rx_r8_aegis.c`, `make test-r8` (any host).
21
22| Object | Written by | Read by |
23|---|---|---|
24| `request` (per client) | the client's own reaction | AEGIS, root |
25| `approval` (per client) | a human, from outside | AEGIS |
26| `decision` (per client) | `aegis.decide` | root, client |
27| `slot[0..3]` (per client) | `root.install` | the client's reactions |
28
29- **Capability slots.** A reaction can declare that capability need *i* reads
30 its reference from a slot object (fields 0–1) at every check, instead of a
31 fixed reference. The slot is also a trigger, so filling it wakes the
32 reaction. A slot is not permission: the Aienux view still validates
33 whatever reference it holds.
34- **`aegis.decide`** applies the policy table. It denies privileged rights,
35 resources no rule covers, and rights beyond the rule. It caps the lease at
36 the rule's maximum. It escalates when the rule requires a human, and then
37 grants or denies on the human's `approval`. A release becomes `REVOKE`.
38- **`root.install`** is the only holder of the Aienux admin. It mints, or
39 revokes, only when all of these hold:
40 1. every decision field was last written by that client's `aegis.decide`.
41 `stamp_proposed` makes each AEGIS commit the author of every field it
42 names, so a value a forger left behind cannot keep the forger's name;
43 2. every request field was last written by a reaction of the client's own
44 subject;
45 3. the decision echoes the request;
46 4. the grant stays inside the client's domain and rights ceiling, with no
47 privileged right.
48
49 It keeps its own record of what it minted per slot. A repeated run never
50 mints twice. It revokes only references it minted itself, never whatever
51 sits in a slot.
52
53This closes the migration map's open item "who may request a fresh mint"
54for the reaction path. The requester is authenticated by who wrote the
55request, and the policy decision by who wrote the decision.
56
57## Results (DGX Spark, host processor)
58
59| | |
60|---|---|
61| Fast path: 2000 actions under a live grant | 0 AEGIS activations, 0 root activations |
62| One fast-path authority check | ~26 ns (Aienux validate) |
63| One in-process policy evaluation | ~3 ns (rule table) |
64| One process spawn + reap (`/bin/true`), the floor of any shell-out policy call like `spark-aegis` | ~260–310 µs |
65| Slow path, outside intent → work committed | ~44–130 µs |
66
67A synchronous per-action policy path would make 2000 round trips for those
682000 actions. R8 made one decision, at grant time. Compared with a
69shell-out, the saving per action is about four orders of magnitude.
70Compared with an in-process policy call, the fast path is not cheaper per
71check (26 ns vs 3 ns). What it removes is the round trip and the ordering
72dependency, not the arithmetic.
73
74## Attacks (all must be refused by the root)
75
76- A policy mistake grants outside the client's domain: refused (`DOMAIN`),
77 nothing minted.
78- An outside writer with wrongly granted WRITE on the client's request asks
79 in the client's name. AEGIS grants by the client's policy; the root
80 refuses (`REQUEST_ORIGIN`).
81- A non-AEGIS reaction with wrongly granted WRITE on the decision forges a
82 grant: nothing minted. It can jam the client's decisions until its grant
83 is revoked; after revocation the honest path works.
84- An outside writer publishes a decision: refused (`DECISION_ORIGIN`).
85- Slot stuffing: another subject's valid reference is written into the
86 client's slot. The client stays blocked (subject mismatch). The root's
87 next grant does not revoke the stuffed reference.
88- Privileged rights, unruled resources, rights beyond the rule, a slot out
89 of range, and a human rejection are all denied.
90- A lease expires on the Aienux clock and the reader stops. A renewal
91 replaces the grant: the old one is revoked, the new one is minted.
92- A release revokes through the root. The client stops; the world goes on.
93
94Every AEGIS and root activation has a waking cause, and the crumb chain
95verifies.
96
97## Not claimed / limits
98
99- The Aienux authority runs as a host library inside this process, not as
100 the Aienux kernel. Keeping the admin handle away from other code is a
101 property of how this program is built, not of an address-space boundary.
102- The policy is a fixed rule table given at start. Changing policy at run
103 time, and revoking grants because the policy changed, is not implemented.
104- A principal wrongly given WRITE on AEGIS's decision object can jam that
105 client's decisions (denial of service). It cannot cause a mint.
106- The client learns of a denial by reading `decision`. There is no retry
107 policy.
108- No graphics-processor reaction uses slots yet (R12's seat binds its
109 references at claim time).