Reference implementation for the Phoenix Architecture. Work in progress.
aicoding.leaflet.pub/
ai
coding
crazy
1# Phase E — Shadow Pipeline & Compaction
2
3## Overview
4
5Phase E enables safe canonicalization pipeline upgrades and storage compaction.
6
7## Components
8
9### 1. Shadow Pipeline (`src/shadow-pipeline.ts`)
10
11Runs old and new canonicalization pipelines in parallel, compares output,
12and classifies the upgrade as SAFE / COMPACTION_EVENT / REJECT.
13
14### 2. Compaction Engine (`src/compaction.ts`)
15
16Moves cold data to archives while preserving:
17- Node headers, provenance edges, approvals, signatures
18
19Storage tiers: Hot Graph → Ancestry Index → Cold Packs