Remove Codex Epiphany state mirror

This commit is contained in:
Meta Vens 2026-07-12 01:21:18 +01:00
commit d5d16c677a
14 changed files with 60 additions and 359 deletions

View file

@ -1886,11 +1886,13 @@ focused core test and status-command test prove the transition. Explicit
`EpiphanyCoordinatorService::interrupt_job`; nine bridge tests prove no local
binding mutation policy remains, and the vendored app-server compiles. Generic update and promotion
commit via `EpiphanyCoordinatorService::apply_state_update_from`, allow a legacy
rollout to seed only an empty unified store, refuse stale host overwrite, then
mirror the exact committed state to rollout for legacy clients. Ten bridge tests
and two coordinator-state tests pass; the vendored app-server compiles. Next
decide whether the rollout mirror can be deleted and notifications/readback
projected directly from unified CultCache.
rollout to seed only an empty unified store, and refuse stale host overwrite.
The rollout mirror and per-turn rollout writer are deleted; Codex no longer
injects Epiphany state through developer messages. App-server reads and
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.
## Immediate Re-entry Instruction

View file

@ -278,7 +278,10 @@ Generic update and promotion now commit through
`EpiphanyCoordinatorService::apply_state_update_from`. A rollout snapshot may
seed native state only when the unified store has no state document; once native
truth exists, stale host input is refused even without an expected revision.
Only after the native commit succeeds does `epiphany_persist_state` mirror the
exact committed document for legacy clients, and its return value cannot repair
or override native truth. The remaining question is whether the rollout mirror
can be deleted in favor of notification/read projection directly from CultCache.
The Codex rollout mirror is deleted. New turns neither persist Epiphany state as
rollout items nor inject a rendered Epiphany state developer message. App-server
read and automation paths load unified CultCache first and fail closed when that
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.