Unify coordinator work projection
This commit is contained in:
parent
99e883968c
commit
2bcbf2687d
9 changed files with 41 additions and 53 deletions
|
|
@ -1,4 +1,3 @@
|
|||
use super::EpiphanyCrrcAction;
|
||||
use crate::EpiphanyCurrentWorkProjection;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
|
|
@ -46,7 +45,6 @@ pub enum EpiphanyCoordinatorAction {
|
|||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct EpiphanyCoordinatorInput {
|
||||
pub mind_present: bool,
|
||||
pub crrc_action: EpiphanyCrrcAction,
|
||||
pub current_work: EpiphanyCurrentWorkProjection,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use crate::{
|
||||
EpiphanyAgentPassContinuationAction, EpiphanyCoordinatorAction, EpiphanyCoordinatorDecision,
|
||||
EpiphanyCoordinatorInput, EpiphanyCrrcAction, RepoFrontierPlanningLifecycleStage,
|
||||
EpiphanyCoordinatorInput, RepoFrontierPlanningLifecycleStage,
|
||||
RepoFrontierResearchContinuationAction,
|
||||
};
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ pub fn recommend_coordinator_action(
|
|||
);
|
||||
}
|
||||
|
||||
if input.crrc_action == EpiphanyCrrcAction::RegatherManually {
|
||||
if input.current_work.operator_regather_required {
|
||||
return decision(
|
||||
EpiphanyCoordinatorAction::RegatherManually,
|
||||
"The accepted continuity decision requires explicit operator regather.",
|
||||
|
|
|
|||
|
|
@ -14,14 +14,3 @@ pub enum EpiphanyCrrcResultStatus {
|
|||
Failed,
|
||||
Cancelled,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub enum EpiphanyCrrcAction {
|
||||
Continue,
|
||||
LaunchReorientWorker,
|
||||
WaitForReorientWorker,
|
||||
ReviewReorientResult,
|
||||
AcceptReorientResult,
|
||||
RegatherManually,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ mod worker_launch;
|
|||
|
||||
pub use coordinator_contract::*;
|
||||
pub use coordinator_decision::recommend_coordinator_action;
|
||||
pub use crrc::EpiphanyCrrcAction;
|
||||
pub use crrc::EpiphanyCrrcResultStatus;
|
||||
pub use research_decision::EpiphanyResearchDecision;
|
||||
pub use role_board::EpiphanyRoleBoardInput;
|
||||
|
|
|
|||
Reference in a new issue