Remove Epiphany state from Codex sessions

This commit is contained in:
Meta Vens 2026-07-12 01:33:00 +01:00
commit 86c6e0b450
13 changed files with 56 additions and 148 deletions

View file

@ -1893,6 +1893,12 @@ automation prefer unified CultCache and fail closed on corrupt native state,
while `stateUpdated` notifications carry the native commit result directly.
Historical rollout reconstruction remains migration-only. Next audit whether
the remaining session fallback and compatibility routes can be narrowed further.
That audit removed Codex session custody entirely: `SessionState`, `Session`, and
`CodexThread` no longer cache or expose Epiphany state, and normal Codex rollout
reconstruction ignores legacy Epiphany items. The app-server reads unified
CultCache first and invokes the legacy rollout parser directly only when native
state is absent. Next move that parser out of `codex-core` into the compatibility
boundary if the protocol seam permits it.
## Immediate Re-entry Instruction

View file

@ -285,3 +285,10 @@ document is corrupt; session state is only an empty-store migration seed.
`stateUpdated` notifications carry the exact native commit result directly.
Historical rollout reconstruction remains a compatibility reader, not an owner
or a writer.
Codex session custody is deleted as well. `SessionState`, `Session`, and
`CodexThread` carry no Epiphany state cache or accessor; normal Codex rollout
reconstruction ignores historical Epiphany items. The app-server compatibility
host reads unified CultCache first and, only when it is empty, invokes the
legacy rollout reader directly at the boundary. A source guard rejects renewed
session custody.