Make legacy Epiphany rollout payload opaque
This commit is contained in:
parent
f2b8763eb5
commit
3e55aadb9c
10 changed files with 81 additions and 27 deletions
|
|
@ -1912,7 +1912,12 @@ 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.
|
||||
`epiphany-state-model` from Codex protocol's production dependency graph. That
|
||||
cut is complete: the rollout variant carries opaque JSON, app-server alone
|
||||
performs typed validation, malformed payloads fail closed, and production
|
||||
Codex protocol has no native-state dependency. Next delete its obsolete
|
||||
native-state test fixture and dev-dependency, leaving only an opaque historical
|
||||
envelope preservation test.
|
||||
|
||||
## Immediate Re-entry Instruction
|
||||
|
||||
|
|
|
|||
|
|
@ -312,3 +312,11 @@ app-server compatibility code, and legacy-focused core tests import
|
|||
`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.
|
||||
|
||||
The historical rollout payload is now opaque inside Codex protocol:
|
||||
`RolloutItem::EpiphanyState(serde_json::Value)`. App-server's legacy quarantine
|
||||
alone decodes that value into `EpiphanyStateItem`, returns a typed state only
|
||||
after validation, and rejects malformed payloads. The old tagged JSON shape,
|
||||
latest-surviving selection, and rollback semantics remain covered. Codex
|
||||
protocol no longer has a production dependency on `epiphany-state-model`; a
|
||||
source guard proves both the opaque variant and dependency boundary.
|
||||
|
|
|
|||
Reference in a new issue