pub enum DraftOutcome {
ParkedForReview {
mission_id: String,
mission_branch: String,
},
Enqueued {
mission_id: String,
},
NeedsContext {
mission_id: String,
questions: Vec<String>,
},
WrongPlan {
mission_id: String,
reason: String,
},
PlanAsProse {
mission_id: String,
},
}Expand description
Terminal result of driving one ticket through a draft turn.
Variants§
ParkedForReview
Plan approved and committed on mission_branch, parked for review
(ticket set to TicketState::Review).
Enqueued
Plan approved and the mission enqueued (ticket set to
TicketState::Queued).
NeedsContext
The orchestrator wants answers first (ticket set to
TicketState::NeedsContext, questions appended to the ticket body).
WrongPlan
The planner escalated: it can produce a plan but believes it is
likely wrong (ticket set to TicketState::WrongPlan, reason
appended to the ticket body, .status note prefixed WRONG-PLAN: ).
PlanAsProse
The orchestrator produced a plan but emitted it as prose instead of through the plan channel, and a bounded retry did not recover it. No plan JSON is filed to the ticket body; the ticket is parked in NeedsContext with a short .status note and the user re-runs draft.
Trait Implementations§
Source§impl Clone for DraftOutcome
impl Clone for DraftOutcome
Source§fn clone(&self) -> DraftOutcome
fn clone(&self) -> DraftOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more