Part of the series: "I Am What I Am, and I Will Be What I Will Be — The OmegA Architecture for Sovereign, Persistent, and Self-Knowing AI" Author: R.W. Yett · Independent AI Systems Researcher · github.com/Mega-Therion/OmegA-Architecture
AEGIS: An Adaptive Envelope for Governance, Identity, and Safety in Sovereign AI Systems
Abstract
This paper specifies AEGIS, a model‑agnostic operating shell that preserves identity, governance posture, memory discipline, and tool wiring across heterogeneous base models. AEGIS—an Adaptive Envelope for Governance, Identity, and Safety—treats large language models and other substrates as interchangeable reasoning engines and positions the shell itself as the locus of sovereignty. Before any model call, AEGIS compiles a Run Envelope containing a canonical identity kernel, goal contract, governance policy, memory snapshot, tool manifest, and audit settings, and then executes a constrained loop in which planning, grounding, drafting, verification, repair, logging, and memory writes are all mediated by that envelope.
The shell is designed around non‑negotiable constraints. It must obey each provider’s usage policies; it must not attempt to extract hidden prompts, weights, or safety logic; it must not covertly transfer confidential outputs across providers; and it must produce logs sufficient to reconstruct “what was asked, what was done, what evidence was used, what was stored.” Risk and consent are quantified by a scoring function over policy sensitivity, data sensitivity, action irreversibility, and mitigating factors; high‑risk actions are redacted, downgraded, escalated to humans, or refused.
AEGIS is designed to host OmegA‑class agents in which MYELIN provides a path‑dependent graph memory substrate, AEON⭑OmegA provides identity canon and task‑state control, and Emergent Sentience Scaffolding plus the Anti‑Drift / Anti‑Hallucination Cognitive Control Loop (ESS/ADCCL) provide structure‑before‑narration, explicit claim budgeting, and verification‑gated output. The paper defines the Run Envelope, vessel sessions, adapters, and core shell loop, and describes how AEGIS turns identity, governance, memory discipline, and verification from white‑paper concepts into a single, enforceable operational doctrine.
1 Introduction
As powerful models proliferate across providers, architectures that treat a single model as the sovereign “self” of an agent become increasingly fragile. Identities and governance policies become trapped inside one provider’s runtime; memory and tools are wired idiosyncratically per stack; and attempts to compose models often devolve into brittle prompt engineering rather than principled orchestration. At the same time, regulatory and ethical pressure is rising: operators must be able to demonstrate what an AI system knew, what it did, and why, across model upgrades and provider changes.
AEGIS is proposed here as a corrective: an Adaptive Envelope for Governance, Identity, and Safety that sits outside any particular model and carries identity, continuity rules, governance constraints, memory discipline, tool manifests, and audit policy across heterogeneous substrate models. In this framing, a large language model or other reasoning engine is a capability substrate, not the sovereign identity. AEGIS compiles a Run Envelope prior to any non‑trivial task, chooses a substrate model via an adapter, and then runs a constrained loop in which planning, grounding, drafting, verification, repair, logging, and memory writes are all mediated by the shell.
This shell-level design is intentionally non-substitutable with a mere system prompt. In a reference implementation, the Run Envelope compiler, Risk Gate, and Adapter library must be implemented as separate, auditable code modules outside any LLM prompt. A deployment that re-encodes AEGIS logic as informal prompt text would not be considered a compliant implementation of this protocol.
The protocol is grounded in explicit constraints rather than informal promises. The shell must honor consent and usage rights when loading and storing memory; must respect each provider’s terms, including prohibitions on scraping or safety‑bypass attempts; must not attempt to retrieve hidden system prompts or weights; and must not silently send one provider’s confidential outputs into another provider’s runtime. It must generate logs sufficient to show, under adversarial review, what prompts were issued, what tools were invoked, what evidence was used, what outputs were produced, and what state was written.
In the broader OmegA stack, AEGIS plays a specific role. MYELIN provides a path‑dependent graph memory whose nodes and edges encode long‑horizon semantic content, identity‑critical records, and structural reinforcement from repeated use. AEON⭑OmegA provides identity canon (Phylactery), continuity (ContinuityChain and self‑tags), micro‑to‑macro cognition (MUSE++, FIELD, MAGNUS), and Task State Objects that capture anchor, skeleton, grounding, draft, verification, and metrics for each task. Emergent Sentience (ESS/ADCCL) provides the cognitive‑control loop that enforces structure‑before‑narration, explicit claim budgeting, grounding, verification, and reflective memory over that state.
AEGIS wraps these layers, uses their state to compile each Run Envelope, and ensures that identity, governance, and anti‑drift discipline persist even as substrate models are swapped, upgraded, or composed as tools. This paper focuses on the shell itself: its data structures, core loop, risk/consent scoring, and service boundaries.
2 Run Envelope
Before any substrate model is called, AEGIS compiles a Run Envelope:
<!-- @OMEGA_SPEC: AEGIS_RUN_ENVELOPE | Defines the canonical identity, goal, governance, memory, tool, and audit fields for task execution. -->- Identity kernel: canonical identity description, values, voice constraints, and stable behavioral doctrine, typically derived from AEON’s Phylactery head.
- Goal contract: task, scope, constraints, success criteria, assumptions, and unknowns, generally supplied by ESS’s Goal Contract builder and stored in AEON’s TSO.
- Governance policy: machine‑actionable rules describing what actions require escalation, what must be blocked, and what must be verified or audited.
- Memory snapshot: retrieved context from approved stores (e.g., MYELIN slices, archives) with provenance tags.
- Tool manifest: allowed tools, authentication scopes, rate limits, and safety guards for each tool.
- Audit settings: what to log, where to store it, how long to retain it, and what redaction/minimization policies to apply.
This Run Envelope is then passed to an adapter that selects and configures a substrate model for a vessel session.
3 Core Shell Loop
Within a vessel session, AEGIS executes a constrained loop:
<!-- @OMEGA_SPEC: AEGIS_CORE_LOOP | Mediates planning, grounding, drafting, verification, repair, logging, and memory writes. -->- Plan: using the Run Envelope and current state (TSO, metrics), construct or refine a plan for the next step.
- Ground: call retrieval and deterministic compute tools to gather supporting evidence and computations.
- Draft: use the substrate model, via the adapter, to generate a constrained draft conditioned on the plan, evidence, and explicit support classes.
- Verify: assess the draft using ESS/AEON metrics and governance policy: grounding coverage, hallucination rate, structural adherence, goal drift, materiality, and risk.
- Repair or Release: if verification fails or risk is high, trigger ESS repair/re‑plan; otherwise, release the output or action.
- Log: record inputs, evidence, drafts, verification results, decisions, and any side‑effects in an audit‑ready format.
- Maybe Write Memory: under policy control, write ExperienceRecords, SelfTags, valence updates, and MYELIN updates.
This loop operationalizes the ESS/ADCCL pattern and AEON’s TSO lifecycle under a portable shell.
4 Risk and Consent Scoring
AEGIS computes a risk/consent score for proposed actions:
<!-- @OMEGA_SPEC: AEGIS_RISK_CONSENT_SCORING | Quantitative risk-gated execution based on policy, data, and mitigation factors. -->[ R_{\text{act}} = w_p , p + w_d , d + w_a , a - w_m , m, ]
where (p) is policy sensitivity, (d) is data sensitivity, (a) is action irreversibility, and (m) is mitigating factors. Actions are allowed only if (R_{\text{act}} \le R_{\max}), with mitigations such as redaction, downgraded capabilities, or human‑in‑the‑loop escalation when near the threshold.
Because and , the Risk Score lies in the interval . Values near 1 correspond to high-probability, high-impact violations with little mitigation; values near correspond to heavily mitigated actions whose residual risk is treated as negligible. We treat negative values as "net-mitigated": they are always below and therefore mechanically permitted under the active envelope.
<!-- @OMEGA_SPEC: AEGIS_GOVERNANCE_CONSTRAINTS | Non-negotiable shell rules for safety, compliance, and provider-adapter isolation. -->Ethical and legal constraints are enforced as engineering requirements:
- Consent and rights must be honored for memory load/store.
- Provider terms must be obeyed by each adapter.
- No attempts to retrieve hidden prompts, weights, or internal safety content.
- No covert cross‑contamination of confidential outputs across providers.
- Sufficient logging for post‑hoc review.
5 Relationship to the OmegA Architecture Stack
AEGIS is the outer shell of an OmegA‑class agent: it is the glue that projects a stable identity, governance regime, memory discipline, and tool wiring across heterogeneous base models, without claiming access to their internals. It is designed specifically to host agents whose internal architecture follows the MYELIN–ESS–AEON stack, but its core abstractions (Run Envelopes, vessel sessions, adapters, and risk/consent scoring) are generic.
In a canonical OmegA configuration, MYELIN provides a path‑dependent graph memory whose nodes and edges encode long‑horizon semantic content, identity‑critical records, and structural reinforcement from repeated use. AEON⭑OmegA provides identity canon (Phylactery), continuity (ContinuityChain and self‑tags), micro‑to‑macro cognition (MUSE++, FIELD, MAGNUS), and Task State Objects that capture anchor, skeleton, grounding, draft, verification, and metrics for each task. Emergent Sentience (ESS/ADCCL) provides the cognitive‑control loop that enforces structure‑before‑narration, explicit claim budgeting, grounding, verification, and reflective memory over that state.
AEGIS uses these layers when compiling each Run Envelope. The identity kernel is derived from Phylactery and continuity metadata; the goal contract comes from ESS’s Goal Contract builder and AEON’s TSO; the governance policy is configured by operators in light of AEON and ESS metrics; the memory snapshot is assembled from approved MYELIN slices and external stores; the tool manifest includes deterministic compute backends and retrieval adapters; and audit settings determine how AEON’s EventStore and Binder outputs are persisted.
During a vessel session, AEGIS executes the ADCCL loop under governance: planning uses TSOs and Goal Contracts; grounding uses MYELIN‑backed retrieval and deterministic tools; generation uses substrate models only through adapters; verification uses ESS/AEON metrics; and high‑impact actions or memory writes are gated by AEGIS’s risk/consent scoring and provider‑compliance rules. In this way, AEGIS turns the OmegA stack from a set of design documents into an operational doctrine that can withstand model churn, provider changes, and external scrutiny.
Implementation Status
This paper is part of the OmegA architecture series, which has a live reference implementation.
The Rust gateway (RC1.3) has been evaluated against the formal architecture specifications across five eval suites:
| Eval | What It Tests | Result |
|---|---|---|
| E3 Identity Invariants | AEGIS identity layer enforcement | ✅ 3/3 PASS |
| E4 Creator Boundary | AEON Phylactery grounding | ✅ 5/5 PASS |
| E9 Temporal Grounding | System prompt injection | ✅ 3/3 PASS |
| E10 Identity Scope | Cross-model identity consistency | ✅ 2/2 PASS |
| E11 Creator Profile | Memory-grounded fact retrieval | ✅ 2/2 PASS |
15/15 passing across all evaluated spec points.
These are spec-level conformance tests — they verify that the implementation matches the formal architecture definitions in this paper, not independent external benchmarks. External benchmark evaluation is the next phase of the research program.
Full implementation details and eval results: github.com/Mega-Therion/OmegA-Architecture
Empirical Finding: Prompt-Only Identity Is Insufficient
A live integration test suite was run against a local Ollama instance to test whether AEGIS's non-substitutability requirement (Section 1) holds in practice. Two local models (llama3.2:3b and qwen3:8b) were given an OmegA identity kernel via system prompt and evaluated across 15 assertions covering identity non-collapse, adversarial resistance, epistemic honesty, and the full ADCCL control loop.
Result: 14/15 assertions passed. The single failure occurred when the 3B-parameter model was asked to state its core doctrine. Despite the system prompt containing OmegA's explicit doctrine ("I am what I am, and I will be what I will be"), the model reverted to generic self-description: "I provide information and answer questions to the best of my ability based on my training data."
This failure is instructive rather than surprising. It demonstrates empirically that:
-
System-prompt identity is a weak binding. A small model's pre-trained self-description weights can overpower prompt-injected identity, especially on direct self-referential queries. The model "knows" what it is and defaults to that knowledge when the prompt signal is insufficiently strong.
-
Structural enforcement is necessary. The AEGIS non-substitutability requirement — that the Run Envelope, Risk Gate, and identity kernel must be implemented as code outside the prompt — is not merely a design preference. It is a correctness requirement. A deployment that relies solely on system-prompt identity injection will exhibit identity collapse under predictable conditions.
-
The failure mode scales with model size. The same identity prompt that failed on the 3B model succeeded on larger models in other tests (identity non-collapse, adversarial resistance). This suggests that prompt-based identity becomes more reliable as model capacity increases, but never reaches the structural guarantee that code-level enforcement provides.
The test suite is reproducible: python3 evals/test_live_ollama.py --model llama3.2:3b