Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/interplane-mv/blob/main/docs/adr/0003-aien-adapter-uses-existing-primitives.md # interplane-mv INTERPLANE: open interoperability protocol between AI models and agent runtimes. Models express intent. Runtimes retain authority. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `interplane-mv / docs / adr / 0003-aien-adapter-uses-existing-primitives.md` 47 lines ยท 3594 bytes Raw Blame History Rendered 1 # ADR 0003: The AIEN adapter uses AIEN's existing primitives and mints nothing 2 3 Status: Accepted (2026-10-04) 4 5 Observed (CURRENT_STATE.md, verified): `aien-capability::ToolDescriptor{name, effects, schema_digest}` 6 with an order-independent `catalog_digest`; `aien-mcp::McpBroker::admit` records that digest, 7 `SpeculativeLane::invoke_speculative` refuses tools whose effects are not speculation-safe, 8 `stage_effect_intent` records an intent without executing, `EffectLane::execute_effect` requires an 9 `AuthorizedEffect` that has no production constructor. Live authority decisions today are 10 `aien-cli::SafetyEngine::evaluate -> SafetyDecision{Allow, AskUser, Deny}` and 11 `aegis::enforcement::pre_dispatch_check -> Result<(), String>`. `DoctrineDecision::RequireApproval` 12 exists but nothing produces it. No crate depends on aien-mcp or aien-capability. 13 14 Decision: `adapters/aien` (Rust crate `interplane-adapter-aien`, AGPL-3.0-or-later) implements 15 `RuntimeAuthority` by composing, not replacing: 16 17 1. **Catalog**: built from `aien-capability` descriptors; `catalog_digest` is AIEN's own 18 `catalog_digest()`; CrossAxis `stale_capability` protection reuses it. 19 2. **Decide**: effects classification from `ToolEffects`; `speculation_safe` tools (reads) are 20 decided by `SafetyEngine::evaluate` (Allow -> authorized, AskUser -> requires_approval, 21 Deny -> denied) and `pre_dispatch_check` (Err -> denied) in that order; any tool with 22 WORLD_MUTATION | EXTERNAL_WRITE | EXTERNAL_IRREVERSIBLE is `requires_approval` at best, because 23 AIEN itself cannot mint an `AuthorizedEffect` outside tests, and the adapter will not pretend. 24 3. **Execute**: reads go through `aien-mcp::SpeculativeLane::invoke_speculative` against a 25 `McpWire` (in 0.1 an in-process `LocalToolServer` exposing read_file/list_dir over the workspace); 26 effects go through `stage_effect_intent` only, returning `requires_approval` with the staged 27 intent id in `runtime_state` so an operator-side AEGIS flow can later authorize it. 28 4. Nothing in the adapter constructs `AuthorizedEffect`, `DoctrineDecision::Allow`, or a 29 `SafetyDecision`. Every decision object the adapter emits is a translation of a value AIEN produced. 30 31 Consequence: DoD items "AIEN adapter executes an authorized read" and "refuses an unauthorized 32 effect" are both satisfied by AIEN's current machinery; "approval flow to execution" is honestly 33 `requires_approval` until AIEN ships a production `AuthorizedEffect` mint (its own ADR 0016 R8 says 34 only the AIENOS root does that). The adapter depends on `aien-sovereign-core` crates by git 35 revision `7580039` and never the reverse. 36 37 ## Addendum 2026-10-04 (INTERPLANE 0.2): AIEN now owns a production mint; the adapter still mints nothing 38 39 aien-sovereign-core PR #203 adds `aien_mcp::EffectLane::authorize(intent, scope, &dyn EffectAuthority)` 40 and `EffectClassAuthority` (AIEN, from `ToolEffects`). Items 2 and 3 above change as follows: effects are 41 no longer stopped at `stage_effect_intent`. The adapter stages, calls `EffectLane::authorize` with AIEN's 42 `EffectClassAuthority`, and translates the answer: Allow executes through `EffectLane` and returns the 43 receipt, RequireApproval is `requires_approval` with the intent digest, Deny and Contain are `denied` 44 with AIEN's reason. Item 4 holds: the adapter never constructs `AuthorizedEffect` (the mint is 45 crate-private in aien-mcp; a test greps the adapter source), and it adds no policy of its own beyond 46 the existing deny-only workspace confinement. Approval consumption is still unimplemented: a pending 47 intent cannot yet be approved and executed.