From b27b8f41c01d4f1d43a7f8578a128285b5b9ec7a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 7 Aug 2026 09:37:26 +0100 Subject: [PATCH] Let proposals preempt resolved verdict context --- .../src/bin/epiphany-mvp-coordinator.rs | 1 + .../src/coordinator_launch_context.rs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/epiphany-core/src/bin/epiphany-mvp-coordinator.rs b/epiphany-core/src/bin/epiphany-mvp-coordinator.rs index 964837f8..7ea52cb3 100644 --- a/epiphany-core/src/bin/epiphany-mvp-coordinator.rs +++ b/epiphany-core/src/bin/epiphany-mvp-coordinator.rs @@ -1180,6 +1180,7 @@ fn launch_role( context, runtime_store, &state, + proposal_modeling_request_id, ) .map_err(anyhow::Error::msg)?; } diff --git a/epiphany-core/src/coordinator_launch_context.rs b/epiphany-core/src/coordinator_launch_context.rs index 9b946c04..5f852e02 100644 --- a/epiphany-core/src/coordinator_launch_context.rs +++ b/epiphany-core/src/coordinator_launch_context.rs @@ -420,7 +420,11 @@ pub fn append_modeling_work_loop_telemetry_context( mut context: String, runtime_store_path: &Path, state: &EpiphanyThreadState, + proposal_modeling_request_id: Option<&str>, ) -> Result { + if proposal_modeling_request_id.is_some() { + return Ok(context); + } let Some(accepted_verification) = latest_unique_accepted_verification(state)? else { return Ok(context); }; @@ -1483,6 +1487,7 @@ mod tests { "ordinary".to_string(), missing_store, &ordinary, + None, ) .expect("ordinary Modeling does not touch verdict authority"), "ordinary" @@ -1510,9 +1515,21 @@ mod tests { "ambiguous".to_string(), missing_store, &ambiguous, + None, ) .expect_err("equal-time accepted results must not be selected by adjacency"); assert!(error.contains("temporally ambiguous")); + + assert_eq!( + append_modeling_work_loop_telemetry_context( + "proposal".to_string(), + missing_store, + &ambiguous, + Some("repo-frontier-proposal-modeling-request"), + ) + .expect("explicit proposal authority excludes historical verdict incorporation"), + "proposal" + ); } #[test] @@ -1849,6 +1866,7 @@ mod tests { "".to_string(), &runtime_store, &state, + None, ) .map_err(anyhow::Error::msg)?; assert!(modeling_context.contains(""));