Unify Modeling continuation actions

This commit is contained in:
Meta Vens 2026-08-17 22:00:55 +02:00
commit e404c10537
6 changed files with 47 additions and 55 deletions

View file

@ -1,7 +1,7 @@
use epiphany_core::EpiphanyCrrcAction;
use epiphany_core::EpiphanyCrrcSceneAction;
use epiphany_core::EpiphanyCrrcStateStatus;
use epiphany_core::EpiphanyProposalModelingContinuationAction;
use epiphany_core::EpiphanyModelingContinuationAction;
use epiphany_core::EpiphanyReorientFindingInterpretation;
use epiphany_core::EpiphanyRoleBoardLane;
use epiphany_core::EpiphanyRoleFindingInterpretation;
@ -699,7 +699,7 @@ pub fn recommend_coordinator_action(
if let Some(action) = input.proposal_modeling_action {
return match action {
EpiphanyProposalModelingContinuationAction::Launch => build(
EpiphanyModelingContinuationAction::Launch => build(
EpiphanyCoordinatorAction::LaunchModeling,
Some(EpiphanyCoordinatorRoleId::Modeling),
Some(EpiphanyCoordinatorSceneAction::RoleLaunch),
@ -707,7 +707,7 @@ pub fn recommend_coordinator_action(
true,
"The oldest unresolved proposal request is ready for its exact Modeling attempt.",
),
EpiphanyProposalModelingContinuationAction::Wait => build(
EpiphanyModelingContinuationAction::Wait => build(
EpiphanyCoordinatorAction::WaitForModelingResult,
Some(EpiphanyCoordinatorRoleId::Modeling),
Some(EpiphanyCoordinatorSceneAction::RoleResult),
@ -715,7 +715,7 @@ pub fn recommend_coordinator_action(
false,
"The exact proposal Modeling attempt is still running.",
),
EpiphanyProposalModelingContinuationAction::Review => build(
EpiphanyModelingContinuationAction::Review => build(
EpiphanyCoordinatorAction::ReviewModelingResult,
Some(EpiphanyCoordinatorRoleId::Modeling),
Some(EpiphanyCoordinatorSceneAction::RoleResult),
@ -1489,7 +1489,7 @@ mod tests {
fn selected_user_proposal_preempts_generic_regather() {
let decision = recommend_coordinator_action(EpiphanyCoordinatorInput {
recommendation: recommendation(EpiphanyCrrcAction::RegatherManually),
proposal_modeling_action: Some(EpiphanyProposalModelingContinuationAction::Launch),
proposal_modeling_action: Some(EpiphanyModelingContinuationAction::Launch),
..input()
});
assert_eq!(decision.action, EpiphanyCoordinatorAction::LaunchModeling);

View file

@ -6,7 +6,7 @@ use super::EpiphanyPressure;
use super::EpiphanyPressureLevel;
use super::EpiphanyReorientAction;
use super::EpiphanyRoleBoardLane;
use crate::EpiphanyProposalModelingContinuationAction;
use crate::EpiphanyModelingContinuationAction;
use crate::RepoFrontierPlanningLifecycleStage;
use crate::RepoFrontierResearchContinuationAction;
use serde::{Deserialize, Serialize};
@ -167,7 +167,7 @@ pub struct EpiphanyCoordinatorInput {
/// lifecycle. Self may advance it, but only Mind's result can decide adoption.
pub frontier_planning_stage: RepoFrontierPlanningLifecycleStage,
/// Exact current action for the oldest unresolved proposal Modeling request.
pub proposal_modeling_action: Option<EpiphanyProposalModelingContinuationAction>,
pub proposal_modeling_action: Option<EpiphanyModelingContinuationAction>,
pub body_modeling_work_ready: bool,
pub body_modeling_review_ready: bool,
}
@ -220,7 +220,7 @@ pub struct EpiphanyCoordinatorStatusInput {
pub hands_frontier_ready: bool,
pub research_continuation_action: Option<RepoFrontierResearchContinuationAction>,
pub frontier_planning_stage: RepoFrontierPlanningLifecycleStage,
pub proposal_modeling_action: Option<EpiphanyProposalModelingContinuationAction>,
pub proposal_modeling_action: Option<EpiphanyModelingContinuationAction>,
pub body_modeling_work_ready: bool,
pub body_modeling_review_ready: bool,
}