ADR 0005: Irreversible Effects Execution Adapter and Contract Verification
Status: Accepted (Reconciled with ADR 0013)
Context
Speculative branches and model-driven tools must not directly mutate external reality or physical hardware without verified contracts.
Decision
The execution flow for irreversible external and physical effects is:
- AIEN proposes an effect.
- OMEGA formalizes an Effect Program with semantic bounds and invariants.
- PHYSICS lowers that effect program into concrete device, storage, network, or memory operations.
- AEGIS verifies the effect contract and resulting physical realization against capability constraints.
- The protocol-specific Effect Broker acts only as a small execution adapter for external protocol drivers.
- HARDWARE or external systems perform the verified effect.
- AEGIS verifies observable postconditions where verifiable.
- EVIDENCE records the immutable execution receipt.
AEGIS does not make arbitrary authorization decisions or censor intent. Capabilities are machine-verifiable execution constraints:
CapabilityContract {
principal
resource
permitted_operations
bounds
generation
lifetime
revocation_state
provenance
}
AEGIS checks capability contracts and invariants. PHYSICS realizes operations within those verified bounds.
Consequences
J-Space can speculate safely. External actions flow through formal lowering, continuous invariant verification, and an auditable execution adapter boundary with cryptographic provenance.