diff --git a/epiphany-core/src/bin/epiphany-mvp-status.rs b/epiphany-core/src/bin/epiphany-mvp-status.rs index 791099e5..f42b2bec 100644 --- a/epiphany-core/src/bin/epiphany-mvp-status.rs +++ b/epiphany-core/src/bin/epiphany-mvp-status.rs @@ -480,10 +480,7 @@ fn run_native_status(args: &Args, include_auxiliary_status: bool) -> Result Result build( + EpiphanyCoordinatorAction::LaunchResearch, + Some(EpiphanyCoordinatorRoleId::Research), + Some(EpiphanyCoordinatorSceneAction::RoleLaunch), + false, + true, + "The exact frontier Research lifecycle requires another bounded attempt.", + ), + RepoFrontierResearchContinuationAction::ReviewResearchResult => build( + EpiphanyCoordinatorAction::ReviewResearchResult, + Some(EpiphanyCoordinatorRoleId::Research), + Some(EpiphanyCoordinatorSceneAction::RoleResult), + true, + false, + "The exact frontier Research lifecycle has one terminal result awaiting review.", + ), + }; + } + if input.signals.research_result_status == EpiphanyCoordinatorRoleResultStatus::Completed && !input.research_result_accepted { @@ -1138,23 +1160,6 @@ pub fn recommend_coordinator_action( ); } - if input.eyes_frontier_ready - && !matches!( - input.signals.research_result_status, - EpiphanyCoordinatorRoleResultStatus::Pending - | EpiphanyCoordinatorRoleResultStatus::Running - ) - { - return build( - EpiphanyCoordinatorAction::LaunchResearch, - Some(EpiphanyCoordinatorRoleId::Research), - Some(EpiphanyCoordinatorSceneAction::RoleLaunch), - false, - true, - "Mind has admitted an actionable Eyes frontier; launch Research against that source-gathering authority.", - ); - } - if input.signals.verification_result_status == EpiphanyCoordinatorRoleResultStatus::Completed && input.verification_result_accepted && !input.verification_result_allows_implementation @@ -1353,7 +1358,7 @@ mod tests { verification_result_needs_evidence: false, reorient_finding_accepted: false, hands_frontier_ready: false, - eyes_frontier_ready: false, + research_continuation_action: None, frontier_planning_stage: RepoFrontierPlanningLifecycleStage::Unavailable, proposal_modeling_request_ready: false, } @@ -2343,11 +2348,15 @@ mod tests { research_result_status: EpiphanyCoordinatorRoleResultStatus::Completed, ..modeling_done }, - research_result_accepted: true, + research_result_accepted: false, + research_result_reviewable: true, + research_result_failure_reviewed: true, modeling_result_accepted: true, modeling_result_reviewable: true, hands_frontier_ready: false, - eyes_frontier_ready: true, + research_continuation_action: Some( + RepoFrontierResearchContinuationAction::LaunchResearch, + ), ..input() }); assert_eq!( @@ -2359,7 +2368,7 @@ mod tests { Some(EpiphanyCoordinatorRoleId::Research) ); assert!(eyes_frontier.can_auto_run); - assert!(eyes_frontier.reason.contains("Eyes frontier")); + assert!(eyes_frontier.reason.contains("Research lifecycle")); let consequences_exist = recommend_coordinator_action(EpiphanyCoordinatorInput { signals: modeling_done, diff --git a/epiphany-core/src/surfaces/coordinator_contract.rs b/epiphany-core/src/surfaces/coordinator_contract.rs index 7c042e67..7c72dd29 100644 --- a/epiphany-core/src/surfaces/coordinator_contract.rs +++ b/epiphany-core/src/surfaces/coordinator_contract.rs @@ -7,6 +7,7 @@ use super::EpiphanyPressureLevel; use super::EpiphanyReorientAction; use super::EpiphanyRoleBoardLane; use crate::RepoFrontierPlanningLifecycleStage; +use crate::RepoFrontierResearchContinuationAction; use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] @@ -157,10 +158,9 @@ pub struct EpiphanyCoordinatorInput { /// True only when the canonical runtime RepoModel has exactly one current /// admission and an Active, dependency-ready Hands frontier item. pub hands_frontier_ready: bool, - /// True only when the canonical runtime RepoModel has exactly one current - /// admission and an Active, dependency-ready Eyes frontier item not yet - /// covered by an accepted packet from its typed Research request. - pub eyes_frontier_ready: bool, + /// Exact next action projected by the current frontier Research lifecycle. + /// Legacy role-lane status remains observable but cannot override it. + pub research_continuation_action: Option, /// Read-only projection of the single typed Imagination -> Mind planning /// lifecycle. Self may advance it, but only Mind's result can decide adoption. pub frontier_planning_stage: RepoFrontierPlanningLifecycleStage, @@ -214,7 +214,7 @@ pub struct EpiphanyCoordinatorStatusInput { pub verification_result_needs_evidence: bool, pub reorient_finding_accepted: bool, pub hands_frontier_ready: bool, - pub eyes_frontier_ready: bool, + pub research_continuation_action: Option, pub frontier_planning_stage: RepoFrontierPlanningLifecycleStage, pub proposal_modeling_request_ready: bool, }