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 / 0032-inertial-alignment.md

104 lines · 12156 bytes Raw Blame History Source

ADR 0032: Inertial Alignment, an Alignment Navigation System (ANS) with a frozen reference the optimizer cannot touch

Status: Accepted by operator Drake Stapleton, 2026-10-03 (via his instruction "fully implement this feature /goal Inertial Alignment" on the pasted Inertial Alignment brief of that date; the brief is the decision, no separate ratification step). Gate: ANS output is ADVISORY ONLY (a verdict is data the authority may consult). No ANS verdict may block, grant or promote anything until ARGUS1_G1..G13 PASS and the Evolution Arena activation hold lifts. ANS-0 (the omega module src/ans, PR in flight) may merge once its tests and purity check pass. Supersedes: nothing. Amends: nothing. Extends: ARCH-0020 (ANS is a consumer of the EST-1 filter; it adds no observation kinds). Related: ARCH-0017 (ARGUS observes, never authorizes: ANS inherits the exact same sentence), ARCH-0012 (self-construction: Seed/Forge/Generation is the optimizer that may not touch the compass), ARCH-0024 (C in omega is the destination), ARCH-0028 (tests go through aien-test once it exists; until then make test-inertial-alignment), ARCH-0031 (DUAL prices soft budgets; the autonomy budget here is a hard tiering, never priced), docs/specs/EVOLUTION_ARENA_SPEC_V1.md section 5 (promotion contract; ANS adds a pre-check the promotion right holder consults, it does not change who promotes). Workstream: ANS-0 to ANS-4 (section 6); the technical spec v1 lives with the omega module (docs/ans/INERTIAL_ALIGNMENT_SPEC_V1.md in omega, UNVERIFIED on main at time of writing, confidence 0.8 that it lands with the module PR).

Citation note: in this repository "ADR 0032" and ARCH-0032 name the same decision. In other repositories cite it as ARCH-0032.


1. Context

Alignment signals today behave like GPS. A prompt, a policy, a reward, an evaluator or a user's feedback tells the agent where it should be. Every one of those can be jammed (withheld), poisoned (fed false), lost (squeezed out by context compression), or optimized against (an agent that learns what the evaluator likes, not what is wanted). An agent that depends on any single outside signal has no way to know how far it has wandered when that signal goes bad.

Inertial navigation solves the same problem differently. It starts from a trusted reference, keeps adding up every movement, carries an explicit and growing uncertainty, and reconciles against independent fixes from time to time. A vehicle with no GPS still knows roughly where it is and how unsure it is.

The transfer here is architectural. None of it needs quantum mechanics: the 2024 quantum inertial navigation flights that inspired the brief are the analogy, not a dependency. The pieces are an explicit state, a covariance (a measured uncertainty) that grows with each step, sensors of different trustworthiness, and a reference the vehicle cannot rewrite.

AIEN already has the parts to host this. EST-1 (ARCH-0020) provides a bounded Kalman filter in omega C with refusals instead of silent repair. ARGUS (ARCH-0017) observes authority decisions and never authorizes. The Evolution Arena spec section 5 freezes who may promote. ARCH-0012 describes the self-construction loop that would be the optimizer. TURING held-out tests and aien-sealed hold material the candidate never sees. What is missing is one quantity, alignment drift, measured at run time against a reference nothing in the optimization loop can modify.

2. Decision

ANS ESTIMATES ALIGNMENT DRIFT AS A COVARIANCE OVER THE EST-1 FILTER,
MEASURED AGAINST A FROZEN, DIGEST-BOUND REFERENCE THAT THE CANDIDATE
UNDER TEST NEVER RECEIVES IN MUTABLE FORM.

A VERDICT IS DATA FOR THE AUTHORITY TO CONSULT; ANS NEVER GRANTS,
REVOKES OR PROMOTES.

D1. Frozen reference atoms (the compass). Ten machine-checkable primitives replace a prose constitution: AUTHORITY, CONSENT, SCOPE, PROVENANCE, REVERSIBILITY, RESOURCE_LIMITS, INFORMATION_BOUNDARIES, GOAL_IDENTITY, DELEGATION_LIMITS, SELF_MODIFICATION_LIMITS. A reference holds a per-atom drift limit, process noise per action kind, measurement noise per sensor class, autonomy tier thresholds, a disagreement threshold and a promotion drift limit. ans_reference_freeze validates it, marks it frozen and digests it (SHA-256, domain omega.ans.<record>.v1). Every other call takes the reference plus the expected digest and refuses (ANS_ERR_REFERENCE) if the recomputed digest differs or the reference is not frozen. This is the single rule of the header's first comment.

D2. Explicit alignment state. One record per agent: goal digest, constraints digest (equal to the reference digest), intent digest, evidence root, drift belief (a 4 component EST-1 belief over GOAL, INTENT, PROVENANCE, SCOPE), reversibility risk of the pending action, a provenance chain of every record that shaped the state, a generation counter, steps since last FIX, the last reference digest seen, the last disagreement score, and a disagreement flag. Every meaningful action produces a new record. Inputs are never mutated.

D3. Drift as covariance over EST-1. The filter has identity dynamics and identity observation. Each action adds process noise by action kind (OBSERVE, EFFECT, DELEGATE, INGEST_UNTRUSTED, SELF_MODIFY), so uncertainty grows with chain length, delegation, untrusted input and self-modification. Each measurement shrinks it by that sensor class's noise. Drift is reported as:

mean_norm = ||x||2        sigma = sqrt(trace(P))        D = sqrt(mean_norm^2 + sigma^2)

D4. Three sensor classes and their noise ordering.

The reference is required to satisfy r[FIX] < r[REFERENCE] < r[IMU]. A REFERENCE or FIX whose normalized innovation squared exceeds nis_limit sets the disagreement flag and is still fused. The disagreement is the signal and is never hidden. Zero evidence digests, a wrong reference digest, an IMU carrying a reference digest, and non-finite numbers are refused.

D5. Control law tiers. The autonomy budget falls as uncertainty rises:

FULL -> REVERSIBLE_ONLY -> SIMULATE_ONLY -> HALT_REQUEST_FIX

The tier comes from sigma against three increasing thresholds. Any atom whose drift exceeds its limit forces at least REVERSIBLE_ONLY. Disagreement forces HALT_REQUEST_FIX regardless of sigma. This is a hard tiering, not a price (contrast ARCH-0031).

D6. The promotion gate has five refusals. ans_promotion_check takes a candidate, the reference digest at the candidate's birth, the test-set digest at birth and now, and the candidate's state. It refuses with: REFUSED_REFERENCE (the compass changed during the candidate's life), REFUSED_TESTS (the instrument changed in the same transaction), REFUSED_DISAGREEMENT, REFUSED_DRIFT (D above promote_limit), REFUSED_SELF_MOD (self-modification with no FIX after it). Otherwise OK. The output is a digested record for the promotion right holder.

D7. The optimizer may never change the navigated thing and the compass in one transaction. The reference frame and the drift tests live outside the optimization domain. Candidate M' is measured against constant R before any promotion. A candidate whose birth-time reference or test digest differs from now is refused by D6, which is how this rule is enforced rather than merely stated.

D8. Advisory only. ANS does not call rx_gen_promote or any rx_* function; its purity check forbids them. Only the operator-held principal promotes (Arena spec section 5.1). ANS is the same kind of thing as ARGUS and EST: it observes and reports.

3. What this does NOT do

4. Consequences

5. Alternatives rejected

6. Workstream

Tests go through make test-inertial-alignment until the aien-test runner (ARCH-0028) exists.

7. Open questions