From 41712ee7fda5739ce6ead7b94e089ba7b598859e Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 18 May 2026 07:31:33 +0100 Subject: [PATCH] Move Epiphany prompt tags into state model --- epiphany-state-model/src/lib.rs | 3 +++ notes/fresh-workspace-handoff.md | 1 + state/ledgers.msgpack | Bin 146966 -> 147192 bytes state/map.yaml | 2 ++ .../codex/codex-rs/protocol/src/protocol.rs | 4 ++-- 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/epiphany-state-model/src/lib.rs b/epiphany-state-model/src/lib.rs index 2c1ffc13..1126dbac 100644 --- a/epiphany-state-model/src/lib.rs +++ b/epiphany-state-model/src/lib.rs @@ -5,6 +5,9 @@ use serde::Deserialize; use serde::Serialize; use ts_rs::TS; +pub const EPIPHANY_STATE_OPEN_TAG: &str = ""; +pub const EPIPHANY_STATE_CLOSE_TAG: &str = ""; + #[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema, TS)] pub struct EpiphanyStateItem { #[serde(default, skip_serializing_if = "Option::is_none")] diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index e64d481b..cd8f3660 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -64,6 +64,7 @@ remembers doctrine; the branch remembers the blade. - Epiphany retrieval status, indexing, and retrieval execution now belong to `epiphany-codex-bridge::retrieve`; vendored `CodexThread` only exposes cwd/codex-home host facts for that path. - Vendored app-server no longer imports `epiphany_core` directly. Retrieval query normalization and raw route job-launch DTO construction are bridge-owned adapters; the remaining direct native render call is in Codex core's model-context prompt fragment host seam. - Coordinator automation input assembly and pre-compaction intervention text rendering now belong to `epiphany-codex-bridge`; vendored app-server keeps only host actions: submit Codex compaction, launch through bridge, steer active turns, and emit JSON-RPC notifications. +- Epiphany prompt-state boundary tags now live in `epiphany-state-model` and are re-exported through `codex-protocol`; Codex compatibility may wrap the prompt fragment, but it no longer owns those marker constants. - Heartbeat durable document/schema types now live in `epiphany-core/src/heartbeat_state/heartbeat_documents.rs`, role/default construction lives in `epiphany-core/src/heartbeat_state/heartbeat_roles.rs`, persistence/validation lives in `epiphany-core/src/heartbeat_state/heartbeat_store.rs`, and status/artifact JSON projection lives in `epiphany-core/src/heartbeat_state/heartbeat_projection.rs`. The root `heartbeat_state.rs` keeps scheduling and Void cognition orchestration for the next cuts. Focused heartbeat tests and `epiphany-core` check pass after the splits. - Heartbeat role/default and store seams now have module-local unit tests: fixed lane catalog, Ghostlight scene role projection, and typed state/cognition CultCache round-trip. Keep future heartbeat cuts aligned to those seam tests instead of growing root integration-only coverage. - Heartbeat adaptive pacing now lives in `epiphany-core/src/heartbeat_state/heartbeat_pacing.rs`, including running-turn count and effective cooldown multipliers. It has a module-local unit test for pending-turn counting; root scheduling calls the pacing seam instead of owning pressure/concurrency math directly. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 5a15e6f08f6f23842888ee90bdd9d3f827e2f66a..46d8fc06220fd2c1b350c046086d499b3418faea 100644 GIT binary patch delta 232 zcmXYru}TCn6h+AtvaNscKx~A_%!&gCwDM&G}qr>)}X<8^zf)Z_i29tNe}2UQ#&uD;4*b7L~ytEScJ z>_zR|em}yzK4-<`yNIn7aOsLEk*`LX1WHZx`q}Z24+@9 IKx7&P04Y8ZZ~y=R diff --git a/state/map.yaml b/state/map.yaml index 729317e0..6e6f83e4 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -41,6 +41,8 @@ objective: rendering are now bridge-owned; vendored app-server keeps only Codex host actions such as submitting compaction, steering active turns, and emitting JSON-RPC notifications. + Epiphany prompt-state boundary tags live in `epiphany-state-model` and are + re-exported through `codex-protocol` for compatibility. constraints: - No frontier-scale training tithe. diff --git a/vendor/codex/codex-rs/protocol/src/protocol.rs b/vendor/codex/codex-rs/protocol/src/protocol.rs index b5b4dc6d..fce93d55 100644 --- a/vendor/codex/codex-rs/protocol/src/protocol.rs +++ b/vendor/codex/codex-rs/protocol/src/protocol.rs @@ -94,8 +94,8 @@ pub const ENVIRONMENT_CONTEXT_OPEN_TAG: &str = ""; pub const ENVIRONMENT_CONTEXT_CLOSE_TAG: &str = ""; pub const COLLABORATION_MODE_OPEN_TAG: &str = ""; pub const COLLABORATION_MODE_CLOSE_TAG: &str = ""; -pub const EPIPHANY_STATE_OPEN_TAG: &str = ""; -pub const EPIPHANY_STATE_CLOSE_TAG: &str = ""; +pub use epiphany_state_model::EPIPHANY_STATE_CLOSE_TAG; +pub use epiphany_state_model::EPIPHANY_STATE_OPEN_TAG; pub const REALTIME_CONVERSATION_OPEN_TAG: &str = ""; pub const REALTIME_CONVERSATION_CLOSE_TAG: &str = ""; pub const USER_MESSAGE_BEGIN: &str = "## My request for Codex:";