# E129 Unified AGI–RSI Cognitive Architecture

**Entity:** FIRME AI CORPORATION · **System:** CAIN-42 · **Package:** `cain/cain2027/unified/`

## 12 Core Subsystems
1. `kernel.py` — Unified Cognitive Kernel & Orchestrator
2. `agi_engine.py` — Laboratory A: AGI Research Engine (8 capability families)
3. `rsi_engine.py` — Laboratory B: RSI Research Engine (Levels 1–5 bridging `cain/cain2027/e129/{dsl,engine,improve,tasks}`)
4. `contracts.py` — Versioned, immutable typed contracts (`CapabilityWeaknessReport`, `ResearchHypothesis`, `ImprovementCandidate`, `ExperimentSpec`, `EvaluationVerdict`, `PromotionDecision`)
5. `memory.py` — 9-Partition Persistent Provenance Research Memory (SQLite WAL + append-only JSONL)
6. `discovery.py` — 16-Stage Scientific Discovery Loop & 10 Specialized Research Roles
7. `registries.py` (`CognitiveArchitectureRegistry`) — Immutable G0→G3 Ancestry DAG
8. `registries.py` (`ImprovementCandidateRegistry`) — Append-only accepted/rejected/rolled-back candidate ledger
9. `evaluator.py` — Isolated Independent Evaluation Subsystem & 6 External Benchmark Adapters
10. `governance.py` — Unified MCPGate Boundary (3 independent Ed25519 keys: issuer, kill-switch, human promotion)
11. `kernel.py` (`unified_scheduler.db`) — Persistent Single-Host SQLite WAL Experiment Scheduler
12. `kernel.py` (`UnifiedEventLog` + Merkle Root) — Evidence & Provenance Subsystem

Neither engine shares mutable state with the other or certifies its own improvement.
