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 / 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
7Speculative branches and model-driven tools must not directly mutate external reality or physical hardware without verified contracts.
8
9## Decision
10
11The execution flow for irreversible external and physical effects is:
12
131. AIEN proposes an effect.
142. OMEGA formalizes an Effect Program with semantic bounds and invariants.
153. PHYSICS lowers that effect program into concrete device, storage, network, or memory operations.
164. AEGIS verifies the effect contract and resulting physical realization against capability constraints.
175. The protocol-specific Effect Broker acts only as a small execution adapter for external protocol drivers.
186. HARDWARE or external systems perform the verified effect.
197. AEGIS verifies observable postconditions where verifiable.
208. EVIDENCE records the immutable execution receipt.
21
22AEGIS does not make arbitrary authorization decisions or censor intent. Capabilities are machine-verifiable execution constraints:
23
24```text
25CapabilityContract {
26 principal
27 resource
28 permitted_operations
29 bounds
30 generation
31 lifetime
32 revocation_state
33 provenance
34}
35```
36
37AEGIS checks capability contracts and invariants. PHYSICS realizes operations within those verified bounds.
38
39## Consequences
40
41J-Space can speculate safely. External actions flow through formal lowering, continuous invariant verification, and an auditable execution adapter boundary with cryptographic provenance.