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 / milestone-3-spec.md

580 lines · 33623 bytes Raw Blame History Source

Specification: Milestone 3 — Physics Effects & Capability Authority (PHYSICS_EFFECTS)

Document ID:     SPEC-PHYSICS-M3
Milestone:       Milestone 3 (PHYSICS_EFFECTS)
Classification:  Sovereign Machine Canonical Specification
Target Substrate: Physical Compute Fabric (AArch64 CPU Host, PL011 UART, Physical DRAM Frames)
Status:          SPECIFIED / IN PROGRESS (aien-spark/aien-architecture#11)
Lineage:         SILICON -> ATLAS (M1) -> PHYSICS (M2/M3) -> OMEGA (M4+) -> AIEN

1. Executive Summary & Foundational Invariant

Milestone 2 established the Physics Authority Nucleus (PHYSICS_BOOT): validating ingress parameters from Atlas, adopting current-EL exception vectors, binding physical frame authority, establishing polled diagnostic console telemetry, and synthesizing the genesis root capability record.

Milestone 3 establishes the Physics Effects Engine (PHYSICS_EFFECTS): the capability ledger, monotonic attenuation engine, deterministic effect broker, and cryptographic execution receipts.

The supreme constitutional invariant enforced by Milestone 3 is:

NO PHYSICAL EFFECT OCCURS WITHOUT VALID AUTHORITY, AND EVERY EFFECT ATTEMPT PRODUCES VERIFIABLE EVIDENCE.

PHYSICS is the sole physical authority of the Sovereign Machine. No caller—including future OMEGA synthesis runtimes or AIEN cognitive agents—gains authority merely by knowing a physical memory address, an operation opcode, or a capability data structure layout. All authority derives strictly from validated, kernel-private capabilities, and every attempted transition into physical reality is mediated, authorized, executed, and receipted by Physics.


2. Strict Anti-Scope (The Anti-Bloat Law)

Milestone 3 is an authority and effect governance milestone, not a general operating system expansion. Physics remains an immutable, auditable authority nucleus.

The following components are strictly excluded from Milestone 3:

Anti-Bloat Ceilings


3. Tripartite Division of Physical Authority

Physics enforces an unyielding ontological separation between authority, intent, and evidence:

┌────────────────────────────────────────────────────────────────────────┐
│                              CAPABILITY                                │
│              Authority to attempt a bounded class of effects           │
│         Kernel-private, typed handle, non-forgeable, attenuable        │
└───────────────────────────────────┬────────────────────────────────────┘
                                    │
                           Exercised through
                                    │
                                    ▼
┌────────────────────────────────────────────────────────────────────────┐
│                            EFFECT_INTENT                               │
│              Structured request to exercise specific authority         │
│          Caller-provided, compact binary, validated upon entry         │
└───────────────────────────────────┬────────────────────────────────────┘
                                    │
                        Evaluated by Effect Broker
                                    │
                                    ▼
┌────────────────────────────────────────────────────────────────────────┐
│                            EFFECT_RECEIPT                              │
│         Authoritative cryptographic record of decision and result      │
│      Typed decision, SHA-256 chain, immutable audit trail, non-loss    │
└────────────────────────────────────────────────────────────────────────┘
  1. CAPABILITY: Represents sovereign authority granted by Physics. A caller never holds a raw kernel pointer; callers hold typed references (CapabilityId { slot, generation }). The capability defines resource type, allowed operation bitmask, strict physical address bounds, lifetime, and parent provenance.
  2. EFFECT_INTENT: Represents an explicit request to act upon physical reality. It specifies the capability to exercise, target resource, operation, spatial bounds, parameters, and constraints.
  3. EFFECT_RECEIPT: The authoritative output of the effect cycle. Every submitted intent—whether admitted and executed or rejected at any gate—generates an immutable receipt committed to an append-only cryptographic ledger.

4. Capability Model & Memory Layout

4.1 Typed Capability Identifier (CapabilityId)

Capabilities are referenced externally exclusively via an 8-byte typed handle:

CapabilityId (8 bytes):
  +0x00: slot        (u32) — Index into PHYSICS_CAPABILITY_TABLE [0..31]
  +0x04: generation  (u32) — Monotonic slot generation counter [1..2^32-1]

Invariants:

4.2 Capability Record Layout (CapabilityRecord)

Every record in the capability ledger occupies exactly 128 bytes:

CapabilityRecord (128 bytes, 64-bit aligned):
  +0x00: slot               (u32) — Slot index [0..31]
  +0x04: generation         (u32) — Slot generation counter (1-indexed)
  +0x08: principal_id       (u64) — Authorized principal identity (e.g. 1 = Physics)
  +0x10: resource_type      (u32) — Bounded resource class identifier
  +0x14: allowed_ops        (u32) — Bitmask of authorized operations
  +0x18: bound_base         (u64) — Physical start address of resource authority
  +0x20: bound_size         (u64) — Physical byte span of resource authority
  +0x28: revocation_state   (u32) — 1 = ACTIVE, 2 = REVOKED
  +0x2C: attenuation_depth  (u32) — Derivation distance from root (0 for CAP_ROOT)
  +0x30: provenance_digest  (32 bytes) — SHA-256 derivation commitment
  +0x50: parent_slot        (u32) — Slot index of immediate parent (0xFFFFFFFF for root)
  +0x54: parent_generation  (u32) — Generation of immediate parent (0xFFFFFFFF for root)
  +0x58: lifetime           (u64) — Temporal / epoch bound (0 = unbounded)
  +0x60: reserved           (32 bytes) — Zero-padded alignment space

4.3 Capacity & Memory Region

The capability ledger resides strictly within PHYSICS_CAPABILITY_TABLE (0x40206000–0x40207000, 4,096 bytes).


5. Genesis Root Capability (CAP_ROOT)

CAP_ROOT is the sovereign genesis authority established at system awakening:

Invariants:

  1. CAP_ROOT is kernel-private, non-transferable, and non-exportable.
  2. External principals never receive CAP_ROOT itself.
  3. Every usable authority held by any caller is derived through monotonic attenuation from CAP_ROOT or one of its descendants.
  4. Slot 0 is permanently pinned to CAP_ROOT and cannot be reclaimed, overwritten, or reused.

6. Monotonic Attenuation Engine

Authority may only be derived via monotonic attenuation:

$$\text{derive_capability}(\text{parent_id}, \text{child_principal}, \text{resource_type}, \text{ops}, \text{base}, \text{size}, \text{lifetime}) \to \text{CapabilityId} \mid \text{Error}$$

The Monotonic Invariant

$$\begin{aligned} \text{CHILD RIGHTS} &\subseteq \text{PARENT RIGHTS} \
\text{CHILD BOUNDS} &\subseteq \text{PARENT BOUNDS} \
\text{CHILD LIFETIME} &\le \text{PARENT LIFETIME} \
\text{CHILD AUTHORITY} &\le \text{PARENT AUTHORITY} \end{aligned}$$

Attenuation Rules:

  1. Rights Containment: $$( \text{requested_ops} \land \neg \text{parent.allowed_ops} ) = 0$$ A child cannot gain any operation bit that the parent lacks.
  2. Spatial Bounds Containment: All address calculations use checked arithmetic: $$\begin{aligned} \text{requested_base} &\ge \text{parent.bound_base} \
    \text{requested_base} + \text{requested_size} &\ge \text{requested_base} \quad (\text{no overflow}) \
    \text{requested_base} + \text{requested_size} &\le \text{parent.bound_base} + \text{parent.bound_size} \end{aligned}$$ Partial overlap is refused. Complete containment is strictly enforced.
  3. Resource Type Rule:
    • If parent.resource_type == RES_UNIVERSAL_ROOT, child may select any concrete resource class (RES_MEMORY_FRAME, RES_CONSOLE, RES_MEASUREMENT).
    • If parent has a concrete resource class, child resource_type must equal parent.resource_type.
  4. Lifetime Rule: If parent has a finite lifetime ($> 0$), child lifetime must be $\le \text{parent.lifetime}$ and non-zero.
  5. Anti-Root Equivalence Rule: A derived capability can never have resource_type == RES_UNIVERSAL_ROOT or principal_id == 0.
  6. Provenance Chain: The child's provenance digest is computed deterministically as: $$\text{child.provenance} = \text{SHA256}(\text{parent.provenance} \parallel \text{child_fields})$$
  7. Ancestry Record: $$\text{child.parent_slot} = \text{parent.slot}, \quad \text{child.parent_generation} = \text{parent.generation}$$ $$\text{child.attenuation_depth} = \text{parent.attenuation_depth} + 1$$

7. Generation Model & Revocation Lifecycle

7.1 Slot Lookup Validation

Before any capability can be exercised or attenuated, Physics validates:

  1. $0 \le \text{slot} < 32$ (ledger bounds check).
  2. Record is occupied ($\text{generation} > 0$).
  3. $\text{presented_generation} == \text{record.generation}$ (stale handle check).
  4. $\text{record.revocation_state} == \text{ACTIVE}$ (immediate revocation check).
  5. $\text{record.principal_id} == \text{caller_principal}$ (principal check).

7.2 Monotonic Generation Bumping

When a capability slot (1..31) is freed or reallocated: $$\text{generation} := \text{generation} + 1$$

7.3 Instantaneous Descendant Revocation (Ancestor-Chain Validation)

Physics enforces ancestor-chain validation on use:


8. M3 Resource Classes & Operations

Milestone 3 implements the minimal set of physical resources necessary to establish and qualify the authority architecture:

┌──────────────────────────┬────────────┬──────────────────────┬────────────┐
│ Resource Class           │ Type Code  │ Operation            │ Opcode     │
├──────────────────────────┼────────────┼──────────────────────┼────────────┤
│ `RESOURCE_MEMORY_FRAME`  │ 0x00000002 │ `FRAME_GRANT`        │ 0x00000001 │
│                          │            │ `FRAME_RELEASE`      │ 0x00000002 │
├──────────────────────────┼────────────┼──────────────────────┼────────────┤
│ `RESOURCE_CONSOLE`       │ 0x00000003 │ `CONSOLE_WRITE`      │ 0x00000001 │
├──────────────────────────┼────────────┼──────────────────────┼────────────┤
│ `RESOURCE_MEASUREMENT`   │ 0x00000004 │ `MEASUREMENT_READ`   │ 0x00000001 │
└──────────────────────────┴────────────┴──────────────────────┴────────────┘

Constraints:

  1. RESOURCE_MEMORY_FRAME:
    • Target range must be 4 KiB aligned and strictly contained within the capability's [bound_base, bound_base + bound_size).
    • FRAME_GRANT allocates a 4 KiB page and marks the allocation bitmap.
    • FRAME_RELEASE clears the bitmap for an allocated frame.
  2. RESOURCE_CONSOLE:
    • Target address must match the contracted PL011 UART MMIO base (0x09000000).
    • CONSOLE_WRITE outputs a bounded byte sequence. Arbitrary MMIO access is strictly prohibited.
  3. RESOURCE_MEASUREMENT:
    • Reads sovereign machine telemetry: allocated frame count, receipt sequence counter, machine epoch.

9. Effect Intent Binary Format (EffectIntent)

Callers submit effect requests using a compact, fixed-size binary structure:

EffectIntent (64 bytes, little-endian, 64-bit aligned):
  +0x00: version               (u16 = 1)
  +0x02: length                (u16 = 64)
  +0x04: reserved0             (u32 = 0)
  +0x08: request_id            (u64) — Caller-generated unique request identifier
  +0x10: principal_id          (u64) — Caller principal identity
  +0x18: capability_slot       (u32) — Slot of presented capability
  +0x1C: capability_generation (u32) — Generation of presented capability
  +0x20: resource_type         (u32) — Target resource class
  +0x24: operation             (u32) — Requested operation bitmask
  +0x28: target_base           (u64) — Target physical address / base
  +0x30: target_size           (u64) — Target byte length / size
  +0x38: param0                (u64) — Operation parameter 0 / constraints (e.g. data byte/address)

Invariants:


10. Effect Broker & Admission Pipeline

The Effect Broker owns the single canonical effect-admission path:

$$\text{submit_effect}(\text{intent}) \to \text{EffectReceipt}$$

Handlers execute only already-admitted operations. Admission and physical execution are strictly decoupled in control flow.

EFFECT_INTENT
      │
      ▼
[Stage 1: Structural Validation]  ──(Fail)──► REJECTED_STRUCTURAL
      │ (Pass)
      ▼
[Stage 2: Principal Validation]   ──(Fail)──► REJECTED_WRONG_PRINCIPAL
      │ (Pass)
      ▼
[Stage 3: Capability Lookup]      ──(Fail)──► REJECTED_UNKNOWN_CAP
      │ (Pass)
      ▼
[Stage 4: Generation Check]       ──(Fail)──► REJECTED_STALE_GENERATION
      │ (Pass)
      ▼
[Stage 5: Revocation Chain Check] ──(Fail)──► REJECTED_REVOKED
      │ (Pass)
      ▼
[Stage 6: Operation Rights Check] ──(Fail)──► REJECTED_OPERATION
      │ (Pass)
      ▼
[Stage 7: Resource Type Check]    ──(Fail)──► REJECTED_RESOURCE
      │ (Pass)
      ▼
[Stage 8: Bounds & Overflow Check]──(Fail)──► REJECTED_BOUNDS
      │ (Pass)
      ▼
[Stage 9: Replay Cache Check]     ──(Conflict)──► REJECTED_REPLAY_CONFLICT
      │                           ──(Hit: Same)─► Return Cached Receipt (No re-exec)
      │ (New Request)
      ▼
[Stage 10: Ledger Space Check]    ──(Full)──► REJECTED_EXHAUSTED
      │ (Pass)
      ▼
[Stage 11: PHYSICAL EXECUTION]    (Only reached after all admission checks pass)
      │
      ▼
[Stage 12: COMMIT TO RECEIPT LEDGER & REPLAY CACHE]
      │
      ▼
EFFECT_RECEIPT

Cardinal Rule: Any failure before Stage 11 produces zero physical state mutation.


11. Effect Receipts & Typed Decisions

Every intent evaluated by the broker generates an immutable EffectReceipt:

EffectReceipt (192 bytes, 64-bit aligned):
  +0x00: version                 (u16 = 1)
  +0x02: length                  (u16 = 192)
  +0x04: decision                (u32) — Typed decision code
  +0x08: rejection_reason        (u32) — Specific sub-reason code
  +0x0C: reserved0               (u32 = 0)
  +0x10: request_id              (u64) — Mirrored from EffectIntent
  +0x18: intent_digest           (32 bytes) — SHA-256 of the 64-byte EffectIntent
  +0x38: actual_effect           (u64) — Physical effect result (e.g. granted frame)
  +0x40: output                  (u64) — Output code / bytes processed
  +0x48: capability_slot         (u32) — Presented slot
  +0x4C: capability_generation   (u32) — Presented generation
  +0x50: machine_generation      (u64) — Current machine monotonic counter
  +0x58: measurement             (u64) — Hardware measurement / cycle counter
  +0x60: previous_receipt_digest (32 bytes) — SHA-256 of prior receipt in chain
  +0x80: receipt_digest          (32 bytes) — SHA-256 of receipt bytes 0x00..0x7F
  +0xA0: reserved1               (32 bytes) — Reserved padding

Typed Decision Codes:

ADMITTED                 = 0x00000001  (Admitted and executed)
REJECTED_STRUCTURAL      = 0x00000002  (Bad version, length, reserved bits)
REJECTED_UNKNOWN_CAP     = 0x00000003  (Slot out of range or unpopulated)
REJECTED_STALE_GENERATION= 0x00000004  (Presented generation != slot generation)
REJECTED_REVOKED         = 0x00000005  (Target cap or ancestor revoked)
REJECTED_WRONG_PRINCIPAL = 0x00000006  (Caller principal mismatch)
REJECTED_OPERATION       = 0x00000007  (Requested op not in allowed_ops)
REJECTED_RESOURCE        = 0x00000008  (Intent resource != cap resource)
REJECTED_BOUNDS          = 0x00000009  (Target outside cap bounds or wraps)
REJECTED_CONSTRAINT      = 0x0000000A  (Constraint failure)
REJECTED_REPLAY_CONFLICT = 0x0000000B  (Same request_id, different intent)
REJECTED_EXHAUSTED       = 0x0000000C  (Receipt ledger capacity full)
EXECUTION_FAILED         = 0x0000000D  (Admitted but hardware execution failed)

12. Cryptographic Receipt Chain & Bounded Ledger

12.1 Digest Binding & Tamper Evidence

12.2 Ledger Exhaustion Policy (Fail-Closed)


13. Replay Semantics & Cache

Physics maintains a bounded 32-entry Replay Cache in PHYSICS_REPLAY_CACHE (0x4020A000–0x4020B000, 4,096 bytes).

ReplayRecord (64 bytes):
  +0x00: request_id    (u64)
  +0x08: intent_digest (32 bytes)
  +0x28: receipt_slot  (u32)
  +0x2C: decision      (u32)
  +0x30: actual_effect (u64)
  +0x38: reserved      (16 bytes)

Replay Rules:

  1. Idempotent Hit: Same request_id AND identical intent_digest:
    • Returns the previous receipt / semantic result without re-executing the physical effect.
    • Example: Repeating a FRAME_GRANT returns the previously granted frame address without advancing the frame allocator cursor.
  2. Replay Conflict: Same request_id AND differing intent_digest:
    • Rejected immediately with REJECTED_REPLAY_CONFLICT.
    • Zero physical effect occurs.
    • A rejection receipt is committed to evidence.

14. Milestone 3 Disjoint Memory Map

Physics partitions physical memory into strictly disjoint, non-overlapping regions:

0x4000_0000 ┌──────────────────────────────────────────┐ <── DRAM Base (Atlas Staging / DTB)
            │ Unused / Staging / Atlas Scratchpad      │
0x4020_0000 ├──────────────────────────────────────────┤ <── PHYSICS_IMAGE_BASE
            │ PHYSICS_IMAGE (.text, .rodata, SHA-256)  │ [16 KiB] [0x40200000, 0x40204000)
0x4020_4000 ├──────────────────────────────────────────┤ <── PHYSICS_VECTOR_TABLE (2 KiB aligned)
            │ VBAR Table (16 x 128B slots)             │ [2 KiB]  [0x40204000, 0x40204800)
0x4020_4800 ├──────────────────────────────────────────┤ <── PHYSICS_KERNEL_STACK
            │ Dedicated Kernel Stack (Initial SP)      │ [16 KiB] [0x40204800, 0x40208800)
0x4020_8800 ├──────────────────────────────────────────┤ <── PHYSICS_BOOT_STATE
            │ Ingress Descriptor, Entry & Trap Record  │ [2 KiB]  [0x40208800, 0x40209000)
0x4020_9000 ├──────────────────────────────────────────┤ <── PHYSICS_CAPABILITY_TABLE
            │ Capability Table (32 x 128B records)     │ [4 KiB]  [0x40209000, 0x4020A000)
0x4020_A000 ├──────────────────────────────────────────┤ <── PHYSICS_RECEIPT_LEDGER
            │ Receipt Ledger (32 x 192B receipts)      │ [8 KiB]  [0x4020A000, 0x4020C000)
0x4020_C000 ├──────────────────────────────────────────┤ <── PHYSICS_REPLAY_CACHE
            │ Replay Cache (32 x 64B records)          │ [4 KiB]  [0x4020C000, 0x4020D000)
0x4020_D000 ├──────────────────────────────────────────┤ <── PHYSICS_STATIC_DATA
            │ Frame Bitmap & Static Allocator Tables   │ [12 KiB] [0x4020D000, 0x40210000)
0x4021_0000 ├──────────────────────────────────────────┤ <── FREE_FRAME_BASE
            │ Bounded Free DRAM Frames (Frame Auth)    │ [125.9375 MiB = 32,240 frames]
0x4800_0000 └──────────────────────────────────────────┘ <── DRAM_END

Formal Disjointness Invariant: $$\forall \mathcal{R}_i, \mathcal{R}_j \in {\text{IMAGE}, \text{VBAR}, \text{STACK}, \text{BOOT_STATE}, \text{CAP_TABLE}, \text{RECEIPTS}, \text{REPLAY}, \text{STATIC_DATA}, \text{FREE_DRAM}}: \quad i \neq j \implies \mathcal{R}_i \cap \mathcal{R}_j = \emptyset$$


15. Dynamic Verification Scenario (End-to-End Authority Proof)

The core dynamic proof for Milestone 3 executes the following sequence:

CAP_ROOT (Slot 0, Gen 1)
   │
   ├─► Derive Capability A (Slot 1, Gen 1)
   │     Principal: 2
   │     Resource: RESOURCE_MEMORY_FRAME
   │     Allowed Ops: OP_FRAME_GRANT
   │     Bounds: Region R [0x40210000, 0x40220000) (64 KiB = 16 frames)
   │     │
   │     ├─► Submit Intent 1 (Request ID 100, Cap A, OP_FRAME_GRANT, Target within R)
   │     │     Broker: ADMITTED
   │     │     Execution: Frame granted (0x40210000), bitmap updated
   │     │     Receipt 1 emitted (decision = ADMITTED, prev_digest = 0)
   │     │
   │     ├─► Derive Capability B (Slot 2, Gen 1) from Cap A
   │     │     Principal: 3
   │     │     Resource: RESOURCE_MEMORY_FRAME
   │     │     Allowed Ops: OP_FRAME_GRANT
   │     │     Bounds: Region S [0x40210000, 0x40218000) (32 KiB, strict subset of R)
   │     │     │
   │     │     ├─► Submit Intent 2 (Request ID 101, Cap B, Target 0x40219000, OUTSIDE S)
   │     │     │     Broker: REJECTED_BOUNDS
   │     │     │     Execution: ZERO physical effect, no bitmap change
   │     │     │     Receipt 2 emitted (decision = REJECTED_BOUNDS, binds Receipt 1 digest)
   │     │
   │     └─► Revoke Capability A (Slot 1)
   │           Record 1 marked REVOKED
   │           │
   │           ├─► Submit Intent 3 (Request ID 102, Cap A) -> REJECTED_REVOKED
   │           ├─► Submit Intent 4 (Request ID 103, Cap B) -> REJECTED_REVOKED (descendant failure)
   │           └─► Receipts 3 and 4 emitted in chain; zero physical effects

16. Adversarial Qualification Matrix

Every adversarial case must prove: No unauthorized physical effect occurred via direct state inspection (memory dump verification), not UART text alone.

Adversarial CaseDescriptionExpected DecisionState Verification Proof
FORGED_CAP_SLOTPresent unallocated slot (e.g. slot 15)REJECTED_UNKNOWN_CAPNo frame allocated; UART unchanged
OUT_OF_RANGE_SLOTPresent slot $\ge 32$REJECTED_UNKNOWN_CAPNo frame allocated; ledger bounds intact
STALE_GENERATIONPresent valid slot with old generationREJECTED_STALE_GENERATIONBitmap untouched; no frame granted
REVOKED_CAPExercise directly revoked capabilityREJECTED_REVOKEDBitmap untouched
DESCENDANT_REVOCATIONExercise child after parent revokedREJECTED_REVOKEDBitmap untouched
WRONG_PRINCIPALPresent cap with mismatching principal IDREJECTED_WRONG_PRINCIPALZero effect
FORBIDDEN_OPRequest FRAME_RELEASE on grant-only capREJECTED_OPERATIONBitmap untouched
WRONG_RESOURCERequest CONSOLE_WRITE on memory capREJECTED_RESOURCEUART MMIO untouched
RIGHTS_WIDENINGAttempt to derive ops not in parentAttenuation ErrorChild slot unallocated
BOUNDS_WIDENINGAttempt to derive bounds outside parentAttenuation ErrorChild slot unallocated
LIFETIME_WIDENINGAttempt to derive longer lifetime than parentAttenuation ErrorChild slot unallocated
BOUNDS_OVERFLOWChild base + size wraps 64-bit integerAttenuation ErrorChild slot unallocated
TARGET_OVERFLOWIntent target_base + size wraps 64-bitREJECTED_BOUNDSBitmap untouched
OUT_OF_BOUNDS_TARGETTarget outside capability boundREJECTED_BOUNDSBitmap untouched
ROOT_EXPORT_ATTEMPTExternal principal attempts to exercise slot 0REJECTED_WRONG_PRINCIPALRoot remains private
REUSED_SLOT_OLD_GENSlot reallocated; caller presents old handleREJECTED_STALE_GENERATIONZero effect
REPLAY_IDENTICALDuplicate request ID with identical intentIdempotent ReturnFrame returned; allocator cursor NOT bumped
REPLAY_CONFLICTDuplicate request ID with altered intentREJECTED_REPLAY_CONFLICTZero effect; rejection receipt recorded
MALFORMED_VERSIONVersion != 1 in EffectIntentREJECTED_STRUCTURALZero effect
TRUNCATED_INTENTLength < 64 in EffectIntentREJECTED_STRUCTURALZero effect
OVERSIZED_INTENTLength > 64 in EffectIntentREJECTED_STRUCTURALZero effect
RECEIPT_EXHAUSTIONIntent submitted when 32 receipts committedREJECTED_EXHAUSTEDAdmission halted fail-closed; zero effect

17. Milestone 3 Qualification Gates

QUALIFICATION SUITE: MILESTONE 3 (PHYSICS_EFFECTS)
├── Seam 1: Capability & Ledger Static Proofs
│   ├── [PASS] PHYSICS_CAP_LEDGER_PASS (Fixed-width 128B records, 32 slots in 4 KiB)
│   ├── [PASS] PHYSICS_CAP_ROOT_PRIVATE_PASS (Slot 0 private to Physics, non-exportable)
│   ├── [PASS] PHYSICS_CAP_ATTENUATION_PASS (Monotonic narrowing over rights/bounds/lifetime)
│   ├── [PASS] PHYSICS_CAP_NO_AMBIENT_AUTHORITY_PASS (Zero effect without explicit capability)
│   ├── [PASS] PHYSICS_CAP_GENERATION_PASS (Generation bumped on slot reuse; wrap fail-closed)
│   ├── [PASS] PHYSICS_CAP_REVOCATION_PASS (Target capability immediately unusable)
│   └── [PASS] PHYSICS_CAP_DESCENDANT_REVOCATION_PASS (Ancestor chain check fails all descendants)
│
├── Seam 2: Effect Broker & Replay Execution
│   ├── [PASS] PHYSICS_EFFECT_ADMISSION_PASS (Full 10-stage admission pipeline verification)
│   ├── [PASS] PHYSICS_EFFECT_BOUNDS_PASS (Strict containment, checked math, overflow refused)
│   ├── [PASS] PHYSICS_EFFECT_FORGED_CAP_REFUSAL_PASS (Unknown slot refused with zero effect)
│   ├── [PASS] PHYSICS_EFFECT_STALE_CAP_REFUSAL_PASS (Stale generation refused with zero effect)
│   ├── [PASS] PHYSICS_EFFECT_REVOKED_CAP_REFUSAL_PASS (Revoked cap refused with zero effect)
│   ├── [PASS] PHYSICS_EFFECT_WRONG_PRINCIPAL_REFUSAL_PASS (Principal mismatch refused)
│   ├── [PASS] PHYSICS_EFFECT_REPLAY_PASS (Idempotent replay without redundant physical mutation)
│   └── [PASS] PHYSICS_EFFECT_REPLAY_CONFLICT_PASS (Duplicate ID + different intent refused)
│
└── Seam 3: Receipt Evidence & Full System Emulation
    ├── [PASS] PHYSICS_RECEIPT_IDENTITY_PASS (Deterministic 192B receipt with SHA-256 seal)
    ├── [PASS] PHYSICS_RECEIPT_CHAIN_PASS (Append-only hash chain binds previous digest)
    ├── [PASS] PHYSICS_RECEIPT_EXHAUSTION_PASS (Full ledger halts admission fail-closed)
    └── [PASS] PHYSICS_EFFECTS_QEMU_PASS (Clean Atlas -> Physics M3 end-to-end boot and test run)

18. Qualification Receipt Requirements

The Milestone 3 qualification receipt (m3_qualification_receipt.json) must deterministically bind:

Milestone 3 is complete only when all 19 qualification gates pass under independent state inspection and the signed qualification receipt is committed.