Stop Codex protocol from owning Epiphany state

This commit is contained in:
Meta Vens 2026-07-12 02:19:47 +01:00
commit f2b8763eb5
17 changed files with 113 additions and 127 deletions

View file

@ -1907,7 +1907,12 @@ and reference context at the app-server boundary. That cut is complete:
app-server derives runtime-spine paths from generic config snapshots and uses
generic `reference_turn_id`; `CodexThread` exposes no `epiphany_*` async API.
Next audit the broad Epiphany re-export slab in `codex-protocol` and make
compatibility code import native state contracts directly where possible.
compatibility code import native state contracts directly where possible. That
slab is deleted: app-server-protocol, app-server, and core legacy tests import
the native model directly; Codex protocol keeps only a private state-item import
for historical rollout decoding. Next make that legacy payload opaque in Codex
protocol and decode it only in the app-server quarantine, removing
`epiphany-state-model` from Codex protocol's production dependency graph.
## Immediate Re-entry Instruction

View file

@ -305,3 +305,10 @@ Epiphany-named reference-turn and runtime-spine-path helpers are deleted;
app-server derives the compatibility store path from the generic config
snapshot and calls a generic `reference_turn_id` accessor. The core source guard
rejects any `pub async fn epiphany_*` API on `CodexThread`.
`codex-protocol` no longer republishes Epiphany's anatomy. App-server-protocol,
app-server compatibility code, and legacy-focused core tests import
`epiphany-state-model` directly. Protocol retains a private
`EpiphanyStateItem` import solely to decode the historical rollout variant; its
two round-trip tests and app-server's two migration tests pass. A source guard
forbids `pub use epiphany_state_model::*` from returning.