pub enum AwaitingDevFixEvent {
DevFixTriggered {
failed_phase: PipelinePhase,
failed_role: AgentRole,
},
DevFixSkipped {
reason: String,
},
DevFixCompleted {
success: bool,
summary: Option<String>,
},
DevFixAgentUnavailable {
failed_phase: PipelinePhase,
reason: String,
},
CompletionMarkerEmitted {
is_failure: bool,
},
}Expand description
Events for AwaitingDevFix phase.
This phase handles pipeline failure remediation by invoking the development agent to diagnose and fix the root cause before termination.
§When This Occurs
The AwaitingDevFix phase is entered when the pipeline encounters a terminal failure condition (e.g., agent chain exhausted) in any phase. Instead of immediately terminating, the pipeline gives the development agent one final chance to diagnose and fix the issue.
§State Flow
- Terminal failure detected (e.g., AgentChainExhausted)
- Reducer transitions to AwaitingDevFix phase
- DevFixTriggered event emitted
- Development agent invoked with failure context
- DevFixCompleted event emitted
- CompletionMarkerEmitted event signals transition to Interrupted
- Checkpoint saved
- Pipeline exits
§Emitted By
- Dev-fix flow handlers in
handler/dev_fix/ - Completion marker handlers
Variants§
DevFixTriggered
Dev-fix flow was triggered.
Emitted when entering the dev-fix phase. Records which phase and agent failed, providing context for the development agent.
Fields
failed_phase: PipelinePhasePhase where the failure occurred.
DevFixSkipped
Dev-fix flow was skipped (not yet implemented or disabled).
DevFixCompleted
Dev-fix flow completed (may or may not have fixed the issue).
Emitted after the development agent finishes its fix attempt.
The success field indicates whether the agent believes it fixed
the issue, but does not guarantee the pipeline will succeed on retry.
Fields
Dev-fix agent is unavailable (quota/usage limit).
Emitted when the dev-fix agent cannot be invoked due to resource limits. The pipeline will proceed to termination without a fix attempt.
CompletionMarkerEmitted
Completion marker was emitted to filesystem.
Emitted after writing the completion marker to .agent/tmp/completion_marker.
The reducer uses this event to transition from AwaitingDevFix to Interrupted,
enabling the pipeline to complete gracefully.
Trait Implementations§
Source§impl Clone for AwaitingDevFixEvent
impl Clone for AwaitingDevFixEvent
Source§fn clone(&self) -> AwaitingDevFixEvent
fn clone(&self) -> AwaitingDevFixEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AwaitingDevFixEvent
impl Debug for AwaitingDevFixEvent
Source§impl<'de> Deserialize<'de> for AwaitingDevFixEvent
impl<'de> Deserialize<'de> for AwaitingDevFixEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for AwaitingDevFixEvent
impl RefUnwindSafe for AwaitingDevFixEvent
impl Send for AwaitingDevFixEvent
impl Sync for AwaitingDevFixEvent
impl Unpin for AwaitingDevFixEvent
impl UnwindSafe for AwaitingDevFixEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more