interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / AGENTS.md

96 lines · 6116 bytes Raw Blame History Source

Planning authority

Before using any roadmap or architecture plan, read docs/PLAN_AUTHORITY.md and ROADMAP.md.

Whole-system execution order is owned by aien-spark/aien-architecture/CURRENT_EXECUTION_PLAN.md. This repository does not own a competing AIEN master plan.


AIEN OS Recovery Gate — Agent Directives & Architectural Invariants

This document codifies mandatory architectural invariants, cryptographic boundaries, and coding standards for all agents modifying aienos-recovery-gate.


1. The Separation of Proofs Doctrine

Any validation or recovery flow must strictly separate and independently evaluate three distinct integrity boundaries:

  1. Store v1 Structural Integrity (Unkeyed):
    • Evaluated by Store::open() and Store v1 DAG verification (superblocks, CommitRecords, Catalogs, CRC32C, SHA-256 graph).
    • Validates that bytes form a crash-consistent, non-corrupted Store history.
    • Must operate with zero key material. Informs Recovery Core whether the physical device is valid, degraded, torn, or foreign.
  2. M5 Keyed Authentication (K_root_auth / K_vol):
    • Evaluated after key unseal using SecurityManifest (kind 22) HMAC-SHA256 and chunked AEAD envelope Polyval tags.
    • Validates that the Store history and application objects were authorized by the holder of the volume encryption key.
  3. Anti-Rollback Freshness (AntiRollbackSource / RollbackAnchor):
    • Evaluated against hardware-backed monotonic state (TPM NV counter / platform security anchor).
    • Validates that an authorized Store history is not an unauthorized replay of an older state.

Mandate: Never merge, shortcut, or conflate these three proofs. A Store that fails structural integrity is physical corruption; a Store that fails keyed authentication is malicious tampering or wrong key; a Store that fails anti-rollback is replay.


2. Store v1 Format Immutability (ADR 0015 Permanence)


3. Elimination of Content-Addressing Circularities


4. Private Scratchpad Verification Invariant


5. Identity-Preserving Store Migration


6. Engineering & Implementation Standards