Move runtime spine path derivation into bridge
This commit is contained in:
parent
bbe8a758a1
commit
89514cf147
8 changed files with 15 additions and 21 deletions
|
|
@ -19,6 +19,7 @@ use epiphany_codex_bridge::mutation_service::launch_thread_epiphany_job;
|
|||
use epiphany_codex_bridge::pressure::map_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::state::runtime_spine_store_path;
|
||||
use tokio::sync::Mutex;
|
||||
use tracing::warn;
|
||||
|
||||
|
|
@ -46,7 +47,7 @@ pub(crate) async fn maybe_run_epiphany_coordinator_automation_for_turn_boundary(
|
|||
.snapshot(&thread_id_text)
|
||||
.await;
|
||||
let token_usage_info = thread.token_usage_info().await;
|
||||
let runtime_store_path = thread.epiphany_runtime_spine_store_path().await;
|
||||
let runtime_store_path = runtime_spine_store_path(thread.as_ref()).await;
|
||||
|
||||
let verdict = select_epiphany_coordinator_automation(EpiphanyCoordinatorAutomationInput {
|
||||
thread_id: &thread_id_text,
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ use epiphany_codex_bridge::launch::EPIPHANY_REORIENT_LAUNCH_BINDING_ID;
|
|||
use epiphany_codex_bridge::launch::epiphany_role_binding_id;
|
||||
use epiphany_codex_bridge::retrieve::map_epiphany_retrieve_response;
|
||||
use epiphany_codex_bridge::state::load_optional_thread_memory_graph_snapshot;
|
||||
use epiphany_codex_bridge::state::runtime_spine_store_path;
|
||||
use epiphany_codex_bridge::view::EpiphanyFreshnessResponseInput;
|
||||
use epiphany_codex_bridge::view::EpiphanyReorientResultResponseInput;
|
||||
use epiphany_codex_bridge::view::EpiphanyRoleResultResponseInput;
|
||||
|
|
@ -123,7 +124,7 @@ impl CodexMessageProcessor {
|
|||
};
|
||||
let runtime_store_path = if epiphany_view_needs_runtime_store(&lenses) {
|
||||
if let Some(loaded_thread) = loaded_thread.as_ref() {
|
||||
Some(loaded_thread.epiphany_runtime_spine_store_path().await)
|
||||
Some(runtime_spine_store_path(loaded_thread).await)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
@ -202,7 +203,7 @@ impl CodexMessageProcessor {
|
|||
}
|
||||
|
||||
let runtime_store_path = if let Some(loaded_thread) = loaded_thread.as_ref() {
|
||||
Some(loaded_thread.epiphany_runtime_spine_store_path().await)
|
||||
Some(runtime_spine_store_path(loaded_thread).await)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
|
@ -423,7 +424,7 @@ impl CodexMessageProcessor {
|
|||
ThreadEpiphanyReorientSource::Stored
|
||||
};
|
||||
let runtime_store_path = if let Some(loaded_thread) = loaded_thread.as_ref() {
|
||||
Some(loaded_thread.epiphany_runtime_spine_store_path().await)
|
||||
Some(runtime_spine_store_path(loaded_thread).await)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
|
|
|||
Reference in a new issue