# `.ciagent/archive/` — Completed-Milestone History

This directory holds byte-identical snapshots of `.ciagent/` files that
were compressed out of the active agent context. Compression is **lossless
via relocation**: every original byte is reachable here, and the git
history at the commit prior to compression preserves the authoritative
state for offline agent loading.

## Why archive

The active milestone is v1.27 (PO State Catalog & Ciagent Compression).
The `.ciagent/` root was compressed twice:

1. **v1.26 P2 compression** (~11,164 lines → ~5,232): the
   completed-milestone narratives (v1.0–v1.24) were relocated. Per the
   run.md context-loading model, agents read `.ciagent/` every
   `/ci-run`; the historical narrative was not load-bearing for v1.26
   execution and was relocated to keep the working context lean.
2. **v1.27 P1 compression** (~5,232 → ~3,882): the v1.26 phase
   verifications + review + evidence + the dated CAPABILITY_INVENTORY
   (superseded by STATE.md) + AUTONOMY_THESIS (folded into NORTH_STAR)
   + COST (predates v1.26 pilot) were relocated. The 4 pre-execution
   files (CLARIFY/GRILL/IDEATE/RESEARCH) were rewritten by v1.27 P0
   and stay active through v1.27.

## Contents

### Snapshots of slimmed files (full content before compression)

| File | Original (lines) | Replaces | Status at time of snapshot |
|---|---|---|---|
| `PROJECT-v1.0-v1.24.md` | 1784 | `.ciagent/PROJECT.md` | v1.0–v1.24 milestone-by-milestone narrative + active milestone v1.26 sections |
| `REQUIREMENTS-v1.0-v1.24.md` | 2490 | `.ciagent/REQUIREMENTS.md` | All requirements v1.0 (REQ-01) through v1.26 (REQ-322) |
| `ROADMAP-v1.0-v1.24.md` | 2341 | `.ciagent/ROADMAP.md` | All phase breakdowns v1.0 through v1.26 |
| `ARCHITECTURE-v1.0-v1.24.md` | 945 | `.ciagent/ARCHITECTURE.md` | Full architecture reference + historical "how we got here" narrative |

The slimmed in-place files retain: active milestone v1.26 context, the
v1.25 milestone (since v1.26 tags ride the v1.25.x line), the durable
vision/tenets/RACI/capability-status sections, and the current-state
architecture reference.

### Completed-phase artifacts (relocated verbatim)

| File | Original (lines) | Phase(s) documented |
|---|---|---|
| `REVIEW.md` | 111 | Multi-persona code review records from completed phases |
| `AUDIT.md` | 553 | Project health audit records (reconstruction tests, branch hygiene) |
| `VERIFY.md` | 86 | Per-phase verification records |
| `PRE_MORTEM.md` | 228 | Pre-mortem analyses for completed milestones |

### v1.27 compression — archived files (8 files, lossless `git mv`)

> The v1.27 NFR milestone (PO State Catalog & Ciagent Compression) archived
> 7 platform-root files + 1 consumer file. All are byte-identical
> relocations; git history at the pre-v1.27 commits preserves the
> authoritative state.

#### Snapshots of superseded durable references (3 files)

| File | Original (lines) | Superseded by | Status at time of snapshot |
|---|---|---|---|
| `CAPABILITY_INVENTORY-v1.10.md` | 120 | `.ciagent/STATE.md` (v1.27) | The 2026-07-27 re-verification sweep (v1.1→v1.8 capabilities). Predates v1.26 pilot (CAP-025 absent; blockchain capabilities absent). |
| `AUTONOMY_THESIS-v1.21.md` | 65 | `NORTH_STAR.md` Vision + Anti-Goals #2 | "Last refined: v1.21" — the autonomy-in-operations thesis, fully folded into NORTH_STAR.md. |
| `COST-v1.14.md` | 106 | (future cost milestone) | AWS cost report dated 2026-07-29, framed "v1.0 → v1.14". Predates v1.26 live pilot (ECS + ALB + DynamoDB + S3 costs not reflected). |

#### v1.26 phase verifications + review + evidence (4 files)

| File | Original (lines) | Phase(s) documented |
|---|---|---|
| `VERIFY-P03.md` | 39 | v1.26 P3 verification — PASS (shipped `v1.25.3`) |
| `VERIFY-P04.md` | 31 | v1.26 P4 verification — PASS (shipped `v1.25.4`) |
| `REVIEW-AUDIT-P05.md` | 218 | v1.26 P5 final review + audit — PROCEED (shipped `v1.25.5`; 0 P0 remain; audit CLEAN) |
| `P4-PILOT-RUN-EVIDENCE-v1.26.md` | 46 | v1.26 live apply evidence (`blkex-pilot-apply-v0.2`; confidence 0.800 pass; outcome backfilled; hash chain valid) |

#### Consumer subproject archive (1 file)

| File | Original (lines) | Phase(s) documented |
|---|---|---|
| `nova-blockchain-exchange/archive/ROADMAP-v1.26.md` | 57 | v1.26 consumer roadmap (P3/P4/P5 marked "planned" at archive time; v1.26 shipped `v1.25.5`). Phase narrative preserved in the platform `.ciagent/ROADMAP.md` §v1.26. |

#### v1.26 pre-execution artifacts (in git history, not archived to disk)

The v1.26 pre-execution files (CLARIFY, GRILL, IDEATE, RESEARCH) were
overwritten by the v1.27 P0 pre-execution cycle. The v1.26-era content
is preserved in git history at the pre-v1.27-P0 commits (search the
log for `docs(P00):` commits on the `milestone/v1.26-pilot-activation`
line). The v1.27 P0 versions stay active through v1.27; they archive at
v1.28 P1 if v1.28 happens. Decisions D-200..D-213 (v1.26) are folded
into `PROJECT.md` load-bearing decisions; D-214..D-225 (v1.27) live in
the active `CLARIFY.md`.

### Live operational files NOT archived

These files remain at their canonical `.ciagent/` paths because they are
read/write targets of live code paths and must not be relocated:

- `REGRESSION_REPORT.json` — written by `core/regression_verify.py:705`,
  read by `core/metrics/collector.py:27` + `core/metrics/trust_snapshot.py:21`
  + `metrics/` views.
- `REGRESSION_REPORT.md` — written by `core/regression_verify.py:704`,
  referenced by `scripts/run_regression.sh`.
- `CHECKPOINT.json` — the authoritative resume point for `/ci-run`.
- `config.json` — operational configuration (no historical content).

## How to load archived content

Agents that need completed-milestone history can read these files
directly (they live inside `.ciagent/`, so the path convention holds):

```
.ciagent/archive/PROJECT-v1.0-v1.24.md
.ciagent/archive/REQUIREMENTS-v1.0-v1.24.md
.ciagent/archive/ROADMAP-v1.0-v1.24.md
.ciagent/archive/ARCHITECTURE-v1.0-v1.24.md
.ciagent/archive/{REVIEW,AUDIT,VERIFY,PRE_MORTEM}.md
```

For the authoritative pre-compression state of any `.ciagent/` file,
use git history at the commit immediately preceding the compression
commit (search the log for `chore(P02): compress .ciagent/ files`).

## `completed-milestones/`

Reserved for future per-milestone summary files if a milestone's
narrative is too large for the slimmed in-place ROADMAP/PROJECT. Currently
empty; v1.0–v1.24 narrative is fully preserved in the four snapshot
files above.