ADR 0003: The AIEN adapter uses AIEN's existing primitives and mints nothing
Status: Accepted (2026-10-04)
Observed (CURRENT_STATE.md, verified): aien-capability::ToolDescriptor{name, effects, schema_digest}
with an order-independent catalog_digest; aien-mcp::McpBroker::admit records that digest,
SpeculativeLane::invoke_speculative refuses tools whose effects are not speculation-safe,
stage_effect_intent records an intent without executing, EffectLane::execute_effect requires an
AuthorizedEffect that has no production constructor. Live authority decisions today are
aien-cli::SafetyEngine::evaluate -> SafetyDecision{Allow, AskUser, Deny} and
aegis::enforcement::pre_dispatch_check -> Result<(), String>. DoctrineDecision::RequireApproval
exists but nothing produces it. No crate depends on aien-mcp or aien-capability.
Decision: adapters/aien (Rust crate interplane-adapter-aien, AGPL-3.0-or-later) implements
RuntimeAuthority by composing, not replacing:
- Catalog: built from
aien-capabilitydescriptors;catalog_digestis AIEN's owncatalog_digest(); CrossAxisstale_capabilityprotection reuses it. - Decide: effects classification from
ToolEffects;speculation_safetools (reads) are decided bySafetyEngine::evaluate(Allow -> authorized, AskUser -> requires_approval, Deny -> denied) andpre_dispatch_check(Err -> denied) in that order; any tool with WORLD_MUTATION | EXTERNAL_WRITE | EXTERNAL_IRREVERSIBLE isrequires_approvalat best, because AIEN itself cannot mint anAuthorizedEffectoutside tests, and the adapter will not pretend. - Execute: reads go through
aien-mcp::SpeculativeLane::invoke_speculativeagainst aMcpWire(in 0.1 an in-processLocalToolServerexposing read_file/list_dir over the workspace); effects go throughstage_effect_intentonly, returningrequires_approvalwith the staged intent id inruntime_stateso an operator-side AEGIS flow can later authorize it. - Nothing in the adapter constructs
AuthorizedEffect,DoctrineDecision::Allow, or aSafetyDecision. Every decision object the adapter emits is a translation of a value AIEN produced.
Consequence: DoD items "AIEN adapter executes an authorized read" and "refuses an unauthorized
effect" are both satisfied by AIEN's current machinery; "approval flow to execution" is honestly
requires_approval until AIEN ships a production AuthorizedEffect mint (its own ADR 0016 R8 says
only the AIENOS root does that). The adapter depends on aien-sovereign-core crates by git
revision 7580039 and never the reverse.
Addendum 2026-10-04 (INTERPLANE 0.2): AIEN now owns a production mint; the adapter still mints nothing
aien-sovereign-core PR #203 adds aien_mcp::EffectLane::authorize(intent, scope, &dyn EffectAuthority)
and EffectClassAuthority (AIEN, from ToolEffects). Items 2 and 3 above change as follows: effects are
no longer stopped at stage_effect_intent. The adapter stages, calls EffectLane::authorize with AIEN's
EffectClassAuthority, and translates the answer: Allow executes through EffectLane and returns the
receipt, RequireApproval is requires_approval with the intent digest, Deny and Contain are denied
with AIEN's reason. Item 4 holds: the adapter never constructs AuthorizedEffect (the mint is
crate-private in aien-mcp; a test greps the adapter source), and it adds no policy of its own beyond
the existing deny-only workspace confinement. Approval consumption is still unimplemented: a pending
intent cannot yet be approved and executed.