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/adr/0005-effect-broker.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 / adr / 0005-effect-broker.md` 41 lines ยท 1561 bytes Raw Blame History Rendered 1 # ADR 0005: Irreversible Effects Execution Adapter and Contract Verification 2 3 **Status:** Accepted (Reconciled with ADR 0013) 4 5 ## Context 6 7 Speculative branches and model-driven tools must not directly mutate external reality or physical hardware without verified contracts. 8 9 ## Decision 10 11 The execution flow for irreversible external and physical effects is: 12 13 1. AIEN proposes an effect. 14 2. OMEGA formalizes an Effect Program with semantic bounds and invariants. 15 3. PHYSICS lowers that effect program into concrete device, storage, network, or memory operations. 16 4. AEGIS verifies the effect contract and resulting physical realization against capability constraints. 17 5. The protocol-specific Effect Broker acts only as a small execution adapter for external protocol drivers. 18 6. HARDWARE or external systems perform the verified effect. 19 7. AEGIS verifies observable postconditions where verifiable. 20 8. EVIDENCE records the immutable execution receipt. 21 22 AEGIS does not make arbitrary authorization decisions or censor intent. Capabilities are machine-verifiable execution constraints: 23 24 ```text 25 CapabilityContract { 26 principal 27 resource 28 permitted_operations 29 bounds 30 generation 31 lifetime 32 revocation_state 33 provenance 34 } 35 ``` 36 37 AEGIS checks capability contracts and invariants. PHYSICS realizes operations within those verified bounds. 38 39 ## Consequences 40 41 J-Space can speculate safely. External actions flow through formal lowering, continuous invariant verification, and an auditable execution adapter boundary with cryptographic provenance.