diff --git a/epiphany-codex-bridge/src/lib.rs b/epiphany-codex-bridge/src/lib.rs index 15e84a82..22fbd62b 100644 --- a/epiphany-codex-bridge/src/lib.rs +++ b/epiphany-codex-bridge/src/lib.rs @@ -20,4 +20,4 @@ pub mod runtime_results; pub mod scene; pub mod scene_protocol; pub mod state; -pub mod view; +pub mod view_protocol; diff --git a/epiphany-codex-bridge/src/view.rs b/epiphany-codex-bridge/src/view_protocol.rs similarity index 100% rename from epiphany-codex-bridge/src/view.rs rename to epiphany-codex-bridge/src/view_protocol.rs diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 5f22be0e..1cd64f16 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -91,7 +91,7 @@ remembers doctrine; the branch remembers the blade. - Context/planning/graph projection is split out too. `context.rs` returns typed `epiphany-core` view documents; `context_protocol.rs` owns Codex JSON-RPC tuple/projection cargo for context, planning, and graph-query responses. - Scene projection is split out too. `scene.rs` returns the typed core `EpiphanyScene`; `scene_protocol.rs` owns `ThreadEpiphanyScene` and scene-action response projection. - Retrieval projection is split out too. `retrieve.rs` normalizes, indexes, looks up state, and retrieves typed core results; `retrieve_protocol.rs` owns Codex JSON-RPC retrieve/index response projection and absolute-path DTO validation. -- View response assembly no longer owns private lens/source/reorient-status projection helpers; those enum conversions route through `protocol_edge`. The larger typed-view wall is still the next architectural judgment, not something to fake with another adapter. +- View response assembly no longer owns private lens/source/reorient-status projection helpers; those enum conversions route through `protocol_edge`. The Codex response assembler is now honestly named `view_protocol.rs`. The larger typed-view wall is still the next architectural judgment, not something to fake with another adapter. - MCP remains JSON because MCP is a JSON protocol. The latest processor cut only moved MCP refresh/OAuth/status/resource/tool-call route handling into `codex_message_processor/mcp_routes.rs`, reducing the root processor to about 8,977 lines; it did not claim MCP payloads are CultNet or make MCP an Epiphany-owned runtime contract. - Codex account auth route handling remains in vendored Codex but now lives in `codex_message_processor/auth_routes.rs`: API-key login, ChatGPT browser/device-code/external-token login, logout, auth status, account, rate limits, and add-credits nudge handling. This preserves Codex ownership of subscription auth while cutting the root processor to about 8,094 lines. - One-off command execution and command stream write/resize/terminate route handling now live in `codex_message_processor/command_routes.rs`; `CommandExecManager` remains the lifecycle owner, while the root processor is about 7,800 lines. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 7e05f1ce..531b43e1 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/state/map.yaml b/state/map.yaml index 20d13c9b..534802b3 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -445,8 +445,9 @@ current_status: validation. View response assembly no longer owns private lens/source/reorient-status projection helpers; those small enum conversions route through - `protocol_edge`, so `view.rs` does not grow a second protocol dialect while - the larger typed-view wall remains under judgment. + `protocol_edge`, and the Codex response assembler is now named + `view_protocol.rs` instead of pretending to be the native Epiphany view + model. The larger typed-view wall remains under judgment. The bridge still depends on vendored Codex for app-server protocol DTOs and absolute path validation, so the purification is not done. next_action: Continue Codex starvation and CultNet liberation by cutting bridge-internal response/projection authority. Prioritize the next coordinator/view seam that still composes policy-shaped facts instead of merely loading host facts and projecting core surfaces; keep MCP/OpenAI JSON only at their true protocol/text edges. Do not add compatibility adapters unless they protect a named ownership invariant. diff --git a/vendor/codex/codex-rs/app-server/src/codex_message_processor/epiphany_read_routes.rs b/vendor/codex/codex-rs/app-server/src/codex_message_processor/epiphany_read_routes.rs index 0f202885..48286c2a 100644 --- a/vendor/codex/codex-rs/app-server/src/codex_message_processor/epiphany_read_routes.rs +++ b/vendor/codex/codex-rs/app-server/src/codex_message_processor/epiphany_read_routes.rs @@ -21,18 +21,18 @@ use epiphany_codex_bridge::retrieve::epiphany_retrieval_state_for_paths; use epiphany_codex_bridge::retrieve::normalize_thread_epiphany_retrieve_query; use epiphany_codex_bridge::retrieve::retrieve_epiphany_for_paths; use epiphany_codex_bridge::retrieve_protocol::protocol_retrieve_response; -use epiphany_codex_bridge::view::EpiphanyFreshnessResponseInput; -use epiphany_codex_bridge::view::EpiphanyReorientResultResponseInput; -use epiphany_codex_bridge::view::EpiphanyRoleResultResponseInput; -use epiphany_codex_bridge::view::EpiphanyViewResponseInput; -use epiphany_codex_bridge::view::derive_epiphany_freshness_surface; -use epiphany_codex_bridge::view::map_epiphany_context_response; -use epiphany_codex_bridge::view::map_epiphany_distill_response; -use epiphany_codex_bridge::view::map_epiphany_graph_query_response; -use epiphany_codex_bridge::view::map_epiphany_propose_response; -use epiphany_codex_bridge::view::map_epiphany_reorient_result_response; -use epiphany_codex_bridge::view::map_epiphany_role_result_response; -use epiphany_codex_bridge::view::map_epiphany_view_response; +use epiphany_codex_bridge::view_protocol::EpiphanyFreshnessResponseInput; +use epiphany_codex_bridge::view_protocol::EpiphanyReorientResultResponseInput; +use epiphany_codex_bridge::view_protocol::EpiphanyRoleResultResponseInput; +use epiphany_codex_bridge::view_protocol::EpiphanyViewResponseInput; +use epiphany_codex_bridge::view_protocol::derive_epiphany_freshness_surface; +use epiphany_codex_bridge::view_protocol::map_epiphany_context_response; +use epiphany_codex_bridge::view_protocol::map_epiphany_distill_response; +use epiphany_codex_bridge::view_protocol::map_epiphany_graph_query_response; +use epiphany_codex_bridge::view_protocol::map_epiphany_propose_response; +use epiphany_codex_bridge::view_protocol::map_epiphany_reorient_result_response; +use epiphany_codex_bridge::view_protocol::map_epiphany_role_result_response; +use epiphany_codex_bridge::view_protocol::map_epiphany_view_response; use super::CodexMessageProcessor; use super::ConnectionRequestId;