interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

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
6Model proposes
7J-Space compares
8AEGIS verifies
9Cap Root authorizes
10Broker externalizes
11World commits
12Provenance proves
13Cortex remembers
14```
15
16## AEGIS on every provider
17
18All providers enter the same policy boundary:
19
20- Native
21- MCP
22- Fabric
23- WASM
24- Process
25- HTTP
26
27The broker routes; it does not grant authority.
28
29## Secret invariant
30
31The 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
35Preferred delivery:
36
371. broker-owned authentication,
382. short-lived OAuth token,
393. descriptor/pipe/socket delivery,
404. call-scoped child environment variable only when required.
41
42## Credential scope
43
44```rust
45pub enum CredentialScope {
46 FabricResolvable,
47 MachineBound(MachineId),
48 OperatorBound(OperatorId),
49 SessionBound(SessionId),
50}
51```
52
53Fabric placement filters Machines by credential resolvability.
54
55## Effect Broker
56
57Irreversible operations should execute in a small, heavily audited broker.
58
59```text
60Runtime
61 -> AuthorizedEffect
62 -> Effect Broker
63 -> protocol-specific driver
64 -> external system
65 -> receipt
66 -> World Commit
67```
68
69## Retry rule
70
71Do not blindly retry an irreversible action after an ambiguous timeout.
72
73Use:
74
75- provider idempotency keys where available,
76- remote-state reconciliation,
77- explicit uncertain-effect state,
78- operator reconciliation where necessary.