Move Epiphany state update law into core
This commit is contained in:
parent
f4c62b3596
commit
410c5c8661
8 changed files with 531 additions and 521 deletions
|
|
@ -171,13 +171,14 @@ contract and active runtime-link conflicts, then returns the durable job binding
|
|||
and runtime link. Vendored `CodexThread` is still a persistence adapter for the
|
||||
compatibility route, not the owner of that state mechanics.
|
||||
|
||||
The Epiphany state-update contract shape has also left vendored Codex.
|
||||
`epiphany-core::EpiphanyStateUpdate` now owns the update document used by the
|
||||
compatibility `thread/epiphany/update`, promotion, accept, and launch paths.
|
||||
`codex-core` re-exports it only as a compatibility alias. Validation and
|
||||
mutation application are still in `CodexThread`; those are the next state-write
|
||||
mechanics to extract before the Codex thread can honestly call itself a
|
||||
persistence adapter.
|
||||
The Epiphany state-update contract and mutation law have also left vendored
|
||||
Codex. `epiphany-core::EpiphanyStateUpdate` now owns the update document used
|
||||
by the compatibility `thread/epiphany/update`, promotion, accept, and launch
|
||||
paths. `epiphany-core::epiphany_state_update_validation_errors` and
|
||||
`epiphany-core::apply_epiphany_state_update` own typed validation and mutation
|
||||
application. `codex-core` re-exports the contract only as a compatibility
|
||||
alias, and `CodexThread` now calls native state-update functions around its
|
||||
remaining revision check, persistence validation, and rollout/session writeback.
|
||||
|
||||
The bad news is useful: the current spine still drags in `codex-api` and its
|
||||
large transport dependency stack. That is tolerable as a sealed compatibility
|
||||
|
|
|
|||
|
|
@ -603,13 +603,17 @@ runtime-link conflicts, and projects the durable job binding plus runtime link.
|
|||
Vendored `CodexThread` now performs only revision checking, persistence
|
||||
validation, and rollout/session writeback around that native plan.
|
||||
|
||||
The Epiphany state-update document shape has now left vendored Codex too.
|
||||
`epiphany-core::EpiphanyStateUpdate` owns the update contract used by update,
|
||||
promote, role/reorient accept, and launch compatibility paths; `codex-core`
|
||||
re-exports it only so older callers keep compiling. The remaining impurity is
|
||||
the important one: `CodexThread` still owns validation, application, revisioned
|
||||
writeback, and route-facing orchestration around that native update document.
|
||||
Move those mechanics next.
|
||||
The Epiphany state-update document shape and mutation law have now left
|
||||
vendored Codex too. `epiphany-core::EpiphanyStateUpdate` owns the update
|
||||
contract used by update, promote, role/reorient accept, and launch
|
||||
compatibility paths, while
|
||||
`epiphany-core::epiphany_state_update_validation_errors` and
|
||||
`epiphany-core::apply_epiphany_state_update` own typed validation/application.
|
||||
`codex-core` re-exports the contract only so older callers keep compiling.
|
||||
`CodexThread` is now a compatibility caller around revision checks,
|
||||
persistence validation, and rollout/session writeback. The remaining impurity
|
||||
is route-facing orchestration in `codex_message_processor.rs` /
|
||||
`epiphany_mutation_routes.rs`; move that behind a native service boundary next.
|
||||
|
||||
Also: MCP itself is allowed to be JSON. The target is not "replace MCP JSON";
|
||||
the target is an Epiphany-owned boundary that speaks typed Epiphany
|
||||
|
|
|
|||
Reference in a new issue