interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / docs / CAPABILITY_AUTHORITY_RESOURCE.md

34 lines · 1739 bytes Raw Blame History Rendered
1# Capability authority: privileged rights belong to the authority office (issue #266)
2
3Answers the known limit in omega `docs/r16-operator-control.md` ("the halt right is the epoch right").
4
5## Rule
6
7In `native/capability/aienos_capability.c`, `auth_use` is the single gate for every privileged
8authority operation: mint (root), revoke, reclaim, clock advance and epoch bump. It now also
9requires the presented entry's resource to be `AIENOS_CAP_RES_AUTHORITY`. A refusal returns
10`AIENOS_CAP_ERR_RESOURCE`.
11
12A capability may still carry a privileged right on another resource, for example the operator
13CONTROL resource with the epoch right used as the halt right. `aienos_cap_validate` still accepts it
14for that resource, so operator stop, status and resume keep working. The authority operations
15simply no longer accept it, so it can never step the epoch, move the clock, revoke, reclaim or mint.
16
17## Why the resource and not a new right
18
19No accepted ADR or spec in this repository defines a distinct halt or stop right, and adding one
20would change the rights layout the reaction world links against unchanged. The resource check closes
21the hole at the one gate, with no ABI change. Delegation is untouched: privileged rights still
22cannot be delegated.
23
24## Evidence
25
26`make test` in `native/capability`: `control_resource_capability_cannot_operate_the_authority`
27(negative: epoch, clock, revoke, reclaim, mint refused; regression: CONTROL-resource validate and the
28real office still work). `make mutants`: `privileged_right_ignores_resource` removes the check and
29the tests must kill it.
30
31## Pin note
32
33The `aienos.lock` pin in other repositories moves only through a new named candidate, so omega keeps
34its limit note until it adopts one.