interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core-mv / docs / adr / 0002-aien-mcp-effect-authority.md

27 lines · 1774 bytes Raw Blame History Rendered
1# ADR 0002: aien-mcp mints AuthorizedEffect only through a host-supplied EffectAuthority
2
3Status: Proposed (2026-10-04)
4
5`AuthorizedEffect` had no production constructor. This change adds one, and only one:
6`EffectLane::authorize` (and `authorize_and_execute`) in `crates/aien-mcp`. The lane builds an
7`AuthorityContext` from the live session (descriptor, catalog digest), asks an `EffectAuthority`,
8and mints through a crate-private function on `Allow` or `AllowRestricted`.
9`RequireApproval` returns `Pending` carrying the intent digest. `Deny` and `Contain` return
10errors. A stale or unknown tool is denied before the authority is asked or by the authority.
11Nothing is persisted: aien-mcp does not wire the aegis-runtime `Approval` types, so no approval is
12created or consumed here.
13
14`AuthorityDecision` mirrors aegis-runtime `DoctrineDecision` one-to-one. aien-mcp cannot depend on
15aegis-runtime, so the shape is repeated, not extended. Consolidating `SafetyEngine`,
16`ProbePolicyGuard` and `DoctrineDecision` into one authority is a separate AIEN milestone; this
17change adds no new policy language.
18
19`EffectClassAuthority` decides only from the `ToolEffects` bits the catalog already declares:
20`EXTERNAL_IRREVERSIBLE` Deny; `EXTERNAL_WRITE`, `WORLD_MUTATION`, `SECRET_BEARING`,
21`SPAWN_PROCESS` RequireApproval; `PURE`, `READ_FILESYSTEM`, `READ_NETWORK`, `LOCAL_EPHEMERAL`
22Allow; unknown tool or unknown bits Deny.
23
24Known limit: `EffectAuthority` is a public trait, so whoever holds an `EffectLane` and can write
25an implementation can supply an allow-all authority. The seam keeps the intent from being
26self-authorizing; it does not by itself stop a host that chooses a permissive authority. Binding
27the authority to the AIENOS capability root (ADR 0016) is future work.