Map final legacy rollout deletion

This commit is contained in:
Meta Vens 2026-07-12 05:40:08 +01:00
commit d6ebed2c01
4 changed files with 17 additions and 2 deletions

View file

@ -1925,7 +1925,12 @@ judge whether generic unknown-rollout cargo can remove its final named trace.
The rename is complete and tested: all Rust matches say
`LegacyEpiphanyState`, serde still emits/reads `epiphany_state`, and migration
behavior is unchanged. Next audit a generic unknown historical rollout carrier,
but reject it if it weakens strict decoding of live Codex history.
but reject it if it weakens strict decoding of live Codex history. The audit
rejects it: a catch-all would suppress parse errors across replay, metadata,
listing, state extraction, and agent control. Next remove the named variant
entirely by making app-server's migration quarantine read raw rollout lines,
recognize only `type=epiphany_state`, and strictly decode ordinary Codex
lifecycle items needed for rollback-aware migration.
## Immediate Re-entry Instruction

View file

@ -332,3 +332,13 @@ The opaque Rust variant is now named `LegacyEpiphanyState`, with an explicit
Every remaining Codex match therefore declares that it handles quarantine
cargo rather than live Epiphany authority. Protocol shape and app-server
migration tests prove the rename did not change old-file compatibility.
Generic unknown rollout cargo is rejected. `RolloutRecorder::load_rollout_items`
parses each line into strict `RolloutLine`/`RolloutItem`, counts parse failures,
and feeds the result into history replay, metadata, listing, state extraction,
and agent control. A catch-all variant would turn malformed or future live
items into silent success across every consumer to preserve one extinct record.
The deletion path is narrower: app-server's migration quarantine should read
raw rollout lines, recognize only `type=epiphany_state`, decode its payload,
and combine those migration records with strictly decoded Codex lifecycle items.
Then `LegacyEpiphanyState` can leave Codex protocol and all core consumers.