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
aien-sovereign-core-mv / docs / adr / 0002-aien-mcp-effect-authority.md
| 1 | # ADR 0002: aien-mcp mints AuthorizedEffect only through a host-supplied EffectAuthority |
| 2 | |
| 3 | Status: 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`, |
| 8 | and mints through a crate-private function on `Allow` or `AllowRestricted`. |
| 9 | `RequireApproval` returns `Pending` carrying the intent digest. `Deny` and `Contain` return |
| 10 | errors. A stale or unknown tool is denied before the authority is asked or by the authority. |
| 11 | Nothing is persisted: aien-mcp does not wire the aegis-runtime `Approval` types, so no approval is |
| 12 | created or consumed here. |
| 13 | |
| 14 | `AuthorityDecision` mirrors aegis-runtime `DoctrineDecision` one-to-one. aien-mcp cannot depend on |
| 15 | aegis-runtime, so the shape is repeated, not extended. Consolidating `SafetyEngine`, |
| 16 | `ProbePolicyGuard` and `DoctrineDecision` into one authority is a separate AIEN milestone; this |
| 17 | change 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` |
| 22 | Allow; unknown tool or unknown bits Deny. |
| 23 | |
| 24 | Known limit: `EffectAuthority` is a public trait, so whoever holds an `EffectLane` and can write |
| 25 | an implementation can supply an allow-all authority. The seam keeps the intent from being |
| 26 | self-authorizing; it does not by itself stop a host that chooses a permissive authority. Binding |
| 27 | the authority to the AIENOS capability root (ADR 0016) is future work. |