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 Source # Security, Effects, and Secrets ## Separation of powers ``` Model proposes J-Space compares AEGIS verifies Cap Root authorizes Broker externalizes World commits Provenance proves Cortex remembers ``` ## AEGIS on every provider All providers enter the same policy boundary: - Native - MCP - Fabric - WASM - Process - HTTP The broker routes; it does not grant authority. ## Secret invariant The realistic invariant is: 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. Preferred delivery: - broker-owned authentication, - short-lived OAuth token, - descriptor/pipe/socket delivery, - call-scoped child environment variable only when required. ## Credential scope ``` pub enum CredentialScope { FabricResolvable, MachineBound(MachineId), OperatorBound(OperatorId), SessionBound(SessionId), } ``` Fabric placement filters Machines by credential resolvability. ## Effect Broker Irreversible operations should execute in a small, heavily audited broker. ``` Runtime -> AuthorizedEffect -> Effect Broker -> protocol-specific driver -> external system -> receipt -> World Commit ``` ## Retry rule Do not blindly retry an irreversible action after an ambiguous timeout. Use: - provider idempotency keys where available, - remote-state reconciliation, - explicit uncertain-effect state, - operator reconciliation where necessary.