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/aien-architecture-mv/blob/main/docs/07-security-effects-secrets.md # aien-architecture-mv Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories. 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 `aien-architecture-mv / docs / 07-security-effects-secrets.md` 78 lines ยท 1614 bytes Raw Blame History Rendered 1 # Security, Effects, and Secrets 2 3 ## Separation of powers 4 5 ```text 6 Model proposes 7 J-Space compares 8 AEGIS verifies 9 Cap Root authorizes 10 Broker externalizes 11 World commits 12 Provenance proves 13 Cortex remembers 14 ``` 15 16 ## AEGIS on every provider 17 18 All providers enter the same policy boundary: 19 20 - Native 21 - MCP 22 - Fabric 23 - WASM 24 - Process 25 - HTTP 26 27 The broker routes; it does not grant authority. 28 29 ## Secret invariant 30 31 The realistic invariant is: 32 33 > No plaintext secret at rest, in configuration, prompts, logs, receipts, Cortex, or World/J-Space state. A raw bearer secret may be materialized only at the narrowest volatile execution boundary and for the shortest duration required by a legacy protocol. 34 35 Preferred delivery: 36 37 1. broker-owned authentication, 38 2. short-lived OAuth token, 39 3. descriptor/pipe/socket delivery, 40 4. call-scoped child environment variable only when required. 41 42 ## Credential scope 43 44 ```rust 45 pub enum CredentialScope { 46 FabricResolvable, 47 MachineBound(MachineId), 48 OperatorBound(OperatorId), 49 SessionBound(SessionId), 50 } 51 ``` 52 53 Fabric placement filters Machines by credential resolvability. 54 55 ## Effect Broker 56 57 Irreversible operations should execute in a small, heavily audited broker. 58 59 ```text 60 Runtime 61 -> AuthorizedEffect 62 -> Effect Broker 63 -> protocol-specific driver 64 -> external system 65 -> receipt 66 -> World Commit 67 ``` 68 69 ## Retry rule 70 71 Do not blindly retry an irreversible action after an ambiguous timeout. 72 73 Use: 74 75 - provider idempotency keys where available, 76 - remote-state reconciliation, 77 - explicit uncertain-effect state, 78 - operator reconciliation where necessary.