From 1f62e61dc1364d6c4ae8281468450d307c8753b3 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 12 Jul 2026 06:08:51 +0100 Subject: [PATCH] Remove Codex-owned Epiphany automation --- notes/fresh-workspace-handoff.md | 7 +- notes/native-coordinator-liberation-map.md | 9 + state/ledgers.msgpack | Bin 412757 -> 413143 bytes state/map.yaml | 2 +- .../app-server/src/bespoke_event_handling.rs | 37 +--- .../app-server/src/codex_message_processor.rs | 3 - .../epiphany_automation.rs | 167 ------------------ .../legacy_epiphany_rollout.rs | 11 ++ .../listener_lifecycle.rs | 1 - .../codex-rs/app-server/src/thread_state.rs | 29 --- 10 files changed, 30 insertions(+), 236 deletions(-) delete mode 100644 vendor/codex/codex-rs/app-server/src/codex_message_processor/epiphany_automation.rs diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index a1b6d4e1..46e23d92 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -1937,7 +1937,12 @@ exact old tag, validates typed payloads fail-closed, and combines them with strictly decoded lifecycle items for rollback-aware recovery. Four migration tests pass; obsolete core fixtures and its state-model dev dependency are gone. Next audit app-server `epiphany_automation` and route dispatch for surviving -Codex-owned coordinator or scheduler decisions. +Codex-owned coordinator or scheduler decisions. The automation authority is +gone: Codex no longer auto-compacts, launches reorientation workers, or steers +checkpoint prompts from turn/token events, and its per-thread checkpoint state +is deleted. Native physiology owns those decisions. Next classify each +remaining Epiphany app-server route/module and cut any route-local policy or +implicit trigger while preserving explicit delegated client compatibility. ## Immediate Re-entry Instruction diff --git a/notes/native-coordinator-liberation-map.md b/notes/native-coordinator-liberation-map.md index a2d47f1b..4e860cfc 100644 --- a/notes/native-coordinator-liberation-map.md +++ b/notes/native-coordinator-liberation-map.md @@ -354,3 +354,12 @@ Codex global tolerance. Four quarantine tests prove raw-tag recognition, latest-surviving selection, rollback rejection, and malformed-payload refusal. Obsolete core legacy fixtures and the final core state-model dev dependency are deleted. + +Codex-owned Epiphany reflexes are deleted too. The app-server event loop no +longer auto-compacts on Epiphany pressure, launches reorientation workers at +turn boundaries, or steers pre-compaction checkpoint instructions into active +turns. `epiphany_automation.rs` and its per-thread checkpoint intervention +state are gone. Native coordinator/heartbeat/Continuity organs own scheduling, +launch, pressure, and recovery; app-server retains explicit compatibility +routes, notifications, and read projection only. A source guard rejects renewed +automation authority in the event loop, processor module list, or thread state. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index aa45b1e4b1e243257cd561562da47f0c23777696..bf8adb927950eb73902c00e3dd28155f32d6eb71 100644 GIT binary patch delta 394 zcmYk1ze)o^5XQY2Q&^iKAUI%QbC<*f{}2liO(9qqh>hK5Z_KSpcGuatkW>~HK7fV@ zzJ#D4c2>TD`a15N2o@hR#qay(o6m>J_haR$5-jhwn$7c%h0@8(^LlU<1Yb9^!tJaO zcx7|ZtLU}#IxCdkk5}&B8ui9@RNsj<8{PU=tM2{t&PK6v);+=@GRAOdVw`}mHgZT~ zBxqY@6QQRdQZ^&O%IIuO3@M(rKpWtcbksAcjs^W3#@?z#>JQ5Q_Le>FKPJ&MP<;j6gUNO1mnwCw8c$V#qJE z>Zzfx2V_=LMpw(D{H05jf9`1&4(6THpu87?Gbu@gekv#qLFgDR)EHr;`jkIh6C@MG O-kg>9f$YEv=c+%TjEu?v delta 56 zcmcaUTk`4*$qkZ>Tt-%=mQlwT*u0H4D>D`{GG1+-%G5rUi4llFG&2yh05R+KsZ4AK FJOKwq5uN}5 diff --git a/state/map.yaml b/state/map.yaml index cd1244c1..07da9c64 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -659,4 +659,4 @@ current_status: - Service lifecycle receipt history is now event-only: `load_epiphany_cultmesh_daemon_service_lifecycle_receipts` filters out the `epiphany-local/daemon-service-lifecycle-receipt/latest` mirror, while `load_latest_epiphany_cultmesh_daemon_service_lifecycle_receipt` remains the latest-state reader. Focused unit test `service_lifecycle_receipt_history_excludes_latest_mirror` proves two per-receipt writes return exactly two history records and latest points at the second. Fresh smoke `verse-query-lifecycle-history-filter-smoke` and live overview/triage `local-20260618-145632-497-efac6f0d` / `local-20260618-145632-321-867947af` prove compact swarm sights still expose service lifecycle attention plus the present elevated runbook artifact without daemon pokes or service mutation. Do not use a broad unscoped cargo test filter for this check on Windows; it fans out across bin harnesses and hit a broken pipe during this pass. - `epiphany-verse-query seed-compact` is the compact seed receipt for wrappers and read-only rites. The older `seed` command still prints the full local Verse context for explicit debugging, but compact wrapper modes now avoid full `seed`/final `query` readback after the combined overview proof exposed Windows debug stack overflow from full-context serialization pressure. last_completed_repo_swarm_cut: Huginn live-fire has crossed the first real repo Body from Persona pressure to branch-local Hands commit and Soul/Mind closure, and now has repeatable closure and redacted-public-proof mouths. On `E:\Projects\Huginn` branch `epiphany/huginn/first-awakening`, `tools/epiphany_local_run.ps1 -Mode repo-persona-intake` accepted item `huginn-inspection-readback-livefire`, Weksa/Persona intake remained sealed, and `epiphany-work derive-plan` lowered it to model-authored safe family `repo.status_section` for `README.md` only. `tools/epiphany_local_run.ps1 -Mode repo-swarm-run` advanced four bounded pulses: run-from-plan, adopt-from-plan, execute-from-plan, and close-from-execute. Huginn commit `e9b07c38fceabbdc89ea35c2156326c80c0393a2` updated only `README.md`; closure receipt `.epiphany\work\work-close-huginn-inspection-readback-livefire.json` records status `closed`, Soul verdict `passed`, Mind state commit `repo-work-close-huginn-inspection-readback-livefire-mind-commit`, safe family `repo.status_section`, path scope `README.md`, Bifrost publication gate, and `privateStateExposed=false`. Verification also ran Huginn's TypeScript compiler through concrete Node path: `C:\Program Files\nodejs\node.exe E:\Projects\Huginn\node_modules\typescript\bin\tsc -p tsconfig.json` passed. Native verifier `epiphany-repo-livefire-closure-smoke --workspace E:\Projects\Huginn --item huginn-inspection-readback-livefire --expected-path README.md --expected-family repo.status_section --expected-gate awaiting-publication --expected-blocker bifrost-publication-missing` checks closure receipt, Mind map entry, overview gate/blocker, authority seals, and `git show` changed paths, returning `status=ok`, `soulVerdict=passed`, `publicationGate=Bifrost`, and `privateStateExposed=false`. Wrapper `tools/epiphany_local_run.ps1 -Mode repo-livefire-closure -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exposes the same read-only proof through the local operator mouth; artifact `local-20260621-190156-803-2f85ba15` printed commit, path, gate, blocker, Soul verdict, Mind commit receipt, and `privateStateExposed=False` without push, merge, publication, or target mutation. New wrapper `tools/epiphany_local_run.ps1 -Mode repo-work-public-proof -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exports the redacted proof bundle and repo-local Verse index without publishing; artifact `local-20260621-190645-345-4555b1dc` wrote `.epiphany\public\proof-bundles\repo-work-public-proof-huginn-inspection-readback-livefire.json`, proof id `repo-work-public-proof-huginn-inspection-readback-livefire`, SHA-256 `857545b199f3e37eb06c2e757e5cfc201958e46667bb1f8403fd333a22620f63`, nine artifact rows, zero publication rows, and `privateStateExposed=False`. Gjallar readback `local-20260621-190701-140-b9519ec6` sees the `REPO-WORK-PUBLIC-PROOF` row and action row from Huginn's repo-local Verse with the same SHA-256 while Bifrost publication remains missing. Launcher compact modes are now named compact operator-context modes instead of read-only modes, and `bifrost-public-proof` summaries print item, target public Verse, room, proof SHA-256, review receipts, and credit receipts so publication receipts are auditable without claiming upstream sync. - next_action: Audit vendored app-server `epiphany_automation` and remaining Epiphany route dispatch as possible surviving coordinator/scheduler authority. Native coordinator/status/mutation/read organs now own live state and processes; retain only explicit client compatibility projection/actuation, and delete any automatic Codex turn-boundary or token-pressure behavior that can still decide Epiphany work. + next_action: Classify every remaining Epiphany app-server module and JSON-RPC route as explicit compatibility projection, explicit compatibility actuation delegated to native owners, migration quarantine, or obsolete authority. Delete any route-local policy/decision logic or implicit trigger; preserve only named external client contracts that delegate directly to native services. diff --git a/vendor/codex/codex-rs/app-server/src/bespoke_event_handling.rs b/vendor/codex/codex-rs/app-server/src/bespoke_event_handling.rs index 0420fd94..1b101f5c 100644 --- a/vendor/codex/codex-rs/app-server/src/bespoke_event_handling.rs +++ b/vendor/codex/codex-rs/app-server/src/bespoke_event_handling.rs @@ -1,6 +1,4 @@ use crate::codex_message_processor::ApiVersion; -use crate::codex_message_processor::maybe_run_epiphany_coordinator_automation_for_turn_boundary; -use crate::codex_message_processor::maybe_run_epiphany_pre_compaction_checkpoint_intervention_for_token_count; use crate::codex_message_processor::read_rollout_items_from_rollout; use crate::codex_message_processor::read_summary_from_rollout; use crate::codex_message_processor::summary_to_thread; @@ -146,7 +144,6 @@ use codex_protocol::request_user_input::RequestUserInputResponse as CoreRequestU use codex_sandboxing::policy_transforms::intersect_permission_profiles; use codex_shell_command::parse_command::shlex_join; use codex_utils_absolute_path::AbsolutePathBuf; -use epiphany_codex_bridge::invalidation::EpiphanyInvalidationManager; use std::collections::HashMap; use std::path::Path; use std::sync::Arc; @@ -179,7 +176,6 @@ pub(crate) async fn apply_bespoke_event_handling( outgoing: ThreadScopedOutgoingMessageSender, thread_state: Arc>, thread_watch_manager: ThreadWatchManager, - epiphany_invalidation_manager: EpiphanyInvalidationManager, api_version: ApiVersion, fallback_model_provider: String, codex_home: &Path, @@ -224,13 +220,9 @@ pub(crate) async fn apply_bespoke_event_handling( EventMsg::TurnComplete(turn_complete_event) => { // All per-thread requests are bound to a turn, so abort them. outgoing.abort_pending_server_requests().await; - let (turn_failed, turn_was_context_compaction, force_checkpoint_compaction) = { - let mut state = thread_state.lock().await; - ( - state.turn_summary.last_error.is_some(), - state.turn_summary.context_compaction_started, - state.take_epiphany_checkpoint_intervention_pending_compaction(&event_turn_id), - ) + let turn_failed = { + let state = thread_state.lock().await; + state.turn_summary.last_error.is_some() }; thread_watch_manager .note_turn_completed(&conversation_id.to_string(), turn_failed) @@ -244,16 +236,6 @@ pub(crate) async fn apply_bespoke_event_handling( &thread_state, ) .await; - if !turn_failed && !turn_was_context_compaction { - maybe_run_epiphany_coordinator_automation_for_turn_boundary( - conversation_id, - conversation, - epiphany_invalidation_manager, - &outgoing, - force_checkpoint_compaction, - ) - .await; - } } EventMsg::McpStartupUpdate(update) => { if let ApiVersion::V2 = api_version { @@ -1453,7 +1435,6 @@ pub(crate) async fn apply_bespoke_event_handling( .await; } EventMsg::TokenCount(token_count_event) => { - let token_usage_info = token_count_event.info.clone(); handle_token_count_event( conversation_id, event_turn_id.clone(), @@ -1461,14 +1442,6 @@ pub(crate) async fn apply_bespoke_event_handling( &outgoing, ) .await; - maybe_run_epiphany_pre_compaction_checkpoint_intervention_for_token_count( - conversation_id, - event_turn_id, - conversation, - token_usage_info, - &thread_state, - ) - .await; } EventMsg::Error(ev) => { thread_watch_manager @@ -1867,7 +1840,6 @@ pub(crate) async fn apply_bespoke_event_handling( outgoing.abort_pending_server_requests().await; let pending = { let mut state = thread_state.lock().await; - state.clear_epiphany_checkpoint_intervention_pending_compaction(); std::mem::take(&mut state.pending_interrupts) }; if !pending.is_empty() { @@ -3251,7 +3223,6 @@ mod tests { outgoing: ThreadScopedOutgoingMessageSender, thread_state: Arc>, thread_watch_manager: ThreadWatchManager, - epiphany_invalidation_manager: EpiphanyInvalidationManager, analytics_events_client: AnalyticsEventsClient, codex_home: PathBuf, } @@ -3271,7 +3242,6 @@ mod tests { self.outgoing.clone(), self.thread_state.clone(), self.thread_watch_manager.clone(), - self.epiphany_invalidation_manager.clone(), ApiVersion::V2, "test-provider".to_string(), &self.codex_home, @@ -3593,7 +3563,6 @@ mod tests { outgoing: outgoing.clone(), thread_state: thread_state.clone(), thread_watch_manager: thread_watch_manager.clone(), - epiphany_invalidation_manager: EpiphanyInvalidationManager::new(), analytics_events_client: AnalyticsEventsClient::new( AuthManager::from_auth_for_testing( CodexAuth::create_dummy_chatgpt_auth_for_testing(), diff --git a/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs b/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs index f17f27e1..57bb8f09 100644 --- a/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs +++ b/vendor/codex/codex-rs/app-server/src/codex_message_processor.rs @@ -1,7 +1,6 @@ mod auth_routes; mod catalog_routes; mod command_routes; -mod epiphany_automation; mod epiphany_mutation_routes; mod epiphany_read_routes; mod epiphany_thread_host; @@ -25,8 +24,6 @@ mod thread_turn_routes; mod turn_routes; use self::auth_routes::ActiveLogin; -pub(crate) use self::epiphany_automation::maybe_run_epiphany_coordinator_automation_for_turn_boundary; -pub(crate) use self::epiphany_automation::maybe_run_epiphany_pre_compaction_checkpoint_intervention_for_token_count; use self::epiphany_thread_host::live_thread_epiphany_state; use self::epiphany_thread_host::load_epiphany_state_from_rollout_path; pub(super) use self::listener_lifecycle::{EnsureConversationListenerResult, ListenerTaskContext}; diff --git a/vendor/codex/codex-rs/app-server/src/codex_message_processor/epiphany_automation.rs b/vendor/codex/codex-rs/app-server/src/codex_message_processor/epiphany_automation.rs deleted file mode 100644 index b498d0d3..00000000 --- a/vendor/codex/codex-rs/app-server/src/codex_message_processor/epiphany_automation.rs +++ /dev/null @@ -1,167 +0,0 @@ -use std::sync::Arc; - -use codex_app_server_protocol::ServerNotification; -use codex_app_server_protocol::ThreadEpiphanyStateUpdatedSource; -use codex_core::CodexThread; -use codex_core::SteerInputError; -use codex_protocol::ThreadId; -use codex_protocol::protocol::Op; -use codex_protocol::protocol::TokenUsageInfo as CoreTokenUsageInfo; -use codex_protocol::user_input::UserInput as CoreInputItem; -use epiphany_codex_bridge::coordinator::EpiphanyCoordinatorAutomationAction; -use epiphany_codex_bridge::coordinator::EpiphanyCoordinatorAutomationInput; -use epiphany_codex_bridge::coordinator::select_epiphany_coordinator_automation; -use epiphany_codex_bridge::invalidation::EpiphanyInvalidationManager; -use epiphany_codex_bridge::invalidation::epiphany_freshness_watcher_snapshot; -use epiphany_codex_bridge::mutation::epiphany_job_launch_changed_fields; -use epiphany_codex_bridge::mutation_service::launch_epiphany_job_on_thread; -use epiphany_codex_bridge::pressure::derive_epiphany_pressure; -use epiphany_codex_bridge::pressure::render_epiphany_pre_compaction_checkpoint_intervention; -use epiphany_codex_bridge::pressure::should_run_epiphany_pre_compaction_checkpoint_intervention; -use epiphany_codex_bridge::protocol_edge::protocol_state_updated_notification; -use epiphany_codex_bridge::retrieve::epiphany_retrieval_state_for_paths; -use tokio::sync::Mutex; -use tracing::warn; - -use super::epiphany_thread_host::EpiphanyCodexThreadHost; -use super::epiphany_thread_host::client_visible_live_thread_epiphany_state; -use super::epiphany_thread_host::epiphany_token_usage_snapshot; -use super::epiphany_thread_host::load_authoritative_epiphany_state; -use super::epiphany_thread_host::runtime_spine_store_path; -use crate::outgoing_message::ThreadScopedOutgoingMessageSender; -use crate::thread_state::ThreadState; - -pub(crate) async fn maybe_run_epiphany_coordinator_automation_for_turn_boundary( - thread_id: ThreadId, - thread: Arc, - epiphany_invalidation_manager: EpiphanyInvalidationManager, - outgoing: &ThreadScopedOutgoingMessageSender, - force_checkpoint_compaction: bool, -) { - let thread_id_text = thread_id.to_string(); - let Some(state) = load_authoritative_epiphany_state(thread.as_ref()).await else { - return; - }; - - let config_snapshot = thread.config_snapshot().await; - let codex_home = thread.codex_home().await; - let retrieval_override = - epiphany_retrieval_state_for_paths(config_snapshot.cwd.to_path_buf(), codex_home).await; - epiphany_invalidation_manager - .ensure_thread_watch(&thread_id_text, &config_snapshot.cwd) - .await; - let watcher_snapshot = epiphany_invalidation_manager - .snapshot(&thread_id_text) - .await; - let token_usage_info = thread.token_usage_info().await; - let token_usage_snapshot = epiphany_token_usage_snapshot(token_usage_info.as_ref()); - let runtime_store_path = runtime_spine_store_path(&thread).await; - - let verdict = select_epiphany_coordinator_automation(EpiphanyCoordinatorAutomationInput { - thread_id: &thread_id_text, - state: &state, - retrieval_override: &retrieval_override, - watcher_snapshot: epiphany_freshness_watcher_snapshot(&watcher_snapshot), - token_usage_info: token_usage_snapshot.as_ref(), - runtime_store_path: runtime_store_path.as_path(), - force_checkpoint_compaction, - }) - .await; - - match verdict.action { - EpiphanyCoordinatorAutomationAction::None => {} - EpiphanyCoordinatorAutomationAction::CompactRehydrateReorient => { - if let Err(err) = thread.submit(Op::Compact).await { - warn!( - "failed to run Epiphany coordinator automatic compaction for {thread_id}: {err}" - ); - } - } - EpiphanyCoordinatorAutomationAction::LaunchReorientWorker => { - let Some(launch_request) = verdict.launch_request else { - return; - }; - let host = EpiphanyCodexThreadHost::new(thread.as_ref()); - let launched = match launch_epiphany_job_on_thread(&host, launch_request).await { - Ok(launched) => launched, - Err(err) => { - warn!( - "failed to launch Epiphany coordinator reorientation worker for {thread_id}: {err}" - ); - return; - } - }; - let epiphany_state = - client_visible_live_thread_epiphany_state(thread.as_ref(), launched.epiphany_state) - .await; - outgoing - .send_server_notification(ServerNotification::ThreadEpiphanyStateUpdated( - protocol_state_updated_notification( - thread_id_text, - ThreadEpiphanyStateUpdatedSource::JobLaunch, - epiphany_state.revision, - epiphany_job_launch_changed_fields(), - epiphany_state, - ), - )) - .await; - } - } -} - -pub(crate) async fn maybe_run_epiphany_pre_compaction_checkpoint_intervention_for_token_count( - thread_id: ThreadId, - turn_id: String, - thread: Arc, - token_usage_info: Option, - thread_state: &Arc>, -) { - let token_usage_snapshot = epiphany_token_usage_snapshot(token_usage_info.as_ref()); - let pressure = derive_epiphany_pressure(token_usage_snapshot.as_ref()); - if !should_run_epiphany_pre_compaction_checkpoint_intervention(&pressure) { - return; - } - if load_authoritative_epiphany_state(thread.as_ref()) - .await - .is_none() - { - return; - } - { - let mut state = thread_state.lock().await; - if state.turn_summary.context_compaction_started { - return; - } - if !state.record_epiphany_checkpoint_intervention(&turn_id) { - return; - } - } - - let text = render_epiphany_pre_compaction_checkpoint_intervention(&pressure); - match thread - .steer_input( - vec![CoreInputItem::Text { - text, - text_elements: Vec::new(), - }], - Some(&turn_id), - None, - ) - .await - { - Ok(_) => { - thread_state - .lock() - .await - .mark_epiphany_checkpoint_intervention_pending_compaction(&turn_id); - } - Err(SteerInputError::NoActiveTurn(_)) - | Err(SteerInputError::ExpectedTurnMismatch { .. }) - | Err(SteerInputError::ActiveTurnNotSteerable { .. }) - | Err(SteerInputError::EmptyInput) => { - warn!( - "failed to steer Epiphany pre-compaction checkpoint intervention for {thread_id}" - ); - } - } -} diff --git a/vendor/codex/codex-rs/app-server/src/codex_message_processor/legacy_epiphany_rollout.rs b/vendor/codex/codex-rs/app-server/src/codex_message_processor/legacy_epiphany_rollout.rs index 4279190e..c19c9145 100644 --- a/vendor/codex/codex-rs/app-server/src/codex_message_processor/legacy_epiphany_rollout.rs +++ b/vendor/codex/codex-rs/app-server/src/codex_message_processor/legacy_epiphany_rollout.rs @@ -151,6 +151,17 @@ mod tests { use codex_protocol::protocol::TurnCompleteEvent; use codex_protocol::protocol::TurnStartedEvent; use codex_protocol::protocol::UserMessageEvent; + + #[test] + fn codex_event_loop_has_no_epiphany_automation_authority() { + let event_loop = include_str!("../bespoke_event_handling.rs"); + let processor = include_str!("../codex_message_processor.rs"); + let thread_state = include_str!("../thread_state.rs"); + + assert!(!event_loop.contains("maybe_run_epiphany")); + assert!(!processor.contains("mod epiphany_automation")); + assert!(!thread_state.contains("epiphany_checkpoint_intervention")); + } use epiphany_state_model::EpiphanyStateItem; fn state(id: &str) -> EpiphanyThreadState { diff --git a/vendor/codex/codex-rs/app-server/src/codex_message_processor/listener_lifecycle.rs b/vendor/codex/codex-rs/app-server/src/codex_message_processor/listener_lifecycle.rs index 948c5cb6..a0ae145c 100644 --- a/vendor/codex/codex-rs/app-server/src/codex_message_processor/listener_lifecycle.rs +++ b/vendor/codex/codex-rs/app-server/src/codex_message_processor/listener_lifecycle.rs @@ -611,7 +611,6 @@ impl CodexMessageProcessor { thread_outgoing, thread_state.clone(), thread_watch_manager.clone(), - epiphany_invalidation_manager.clone(), api_version, fallback_model_provider.clone(), codex_home.as_path(), diff --git a/vendor/codex/codex-rs/app-server/src/thread_state.rs b/vendor/codex/codex-rs/app-server/src/thread_state.rs index fddd1c92..8e1d9b7d 100644 --- a/vendor/codex/codex-rs/app-server/src/thread_state.rs +++ b/vendor/codex/codex-rs/app-server/src/thread_state.rs @@ -9,7 +9,6 @@ use codex_core::ThreadConfigSnapshot; use codex_protocol::ThreadId; use codex_protocol::protocol::EventMsg; use codex_utils_absolute_path::AbsolutePathBuf; -use epiphany_codex_bridge::checkpoint::EpiphanyCheckpointInterventionState; use std::collections::HashMap; use std::collections::HashSet; use std::path::PathBuf; @@ -66,7 +65,6 @@ pub(crate) struct ThreadState { pub(crate) listener_generation: u64, listener_command_tx: Option>, current_turn_history: ThreadHistoryBuilder, - epiphany_checkpoint_intervention: EpiphanyCheckpointInterventionState, listener_thread: Option>, } @@ -99,8 +97,6 @@ impl ThreadState { } self.listener_command_tx = None; self.current_turn_history.reset(); - self.epiphany_checkpoint_intervention - .clear_pending_compaction(); self.listener_thread = None; } @@ -130,31 +126,6 @@ impl ThreadState { } } - pub(crate) fn record_epiphany_checkpoint_intervention(&mut self, turn_id: &str) -> bool { - self.epiphany_checkpoint_intervention - .record_intervention(turn_id) - } - - pub(crate) fn mark_epiphany_checkpoint_intervention_pending_compaction( - &mut self, - turn_id: &str, - ) { - self.epiphany_checkpoint_intervention - .mark_pending_compaction(turn_id); - } - - pub(crate) fn take_epiphany_checkpoint_intervention_pending_compaction( - &mut self, - turn_id: &str, - ) -> bool { - self.epiphany_checkpoint_intervention - .take_pending_compaction(turn_id) - } - - pub(crate) fn clear_epiphany_checkpoint_intervention_pending_compaction(&mut self) { - self.epiphany_checkpoint_intervention - .clear_pending_compaction(); - } } pub(crate) async fn resolve_server_request_on_thread_listener(