Skip to main content

AwaitingDevFixEvent

Enum AwaitingDevFixEvent 

Source
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

  1. Terminal failure detected (e.g., AgentChainExhausted)
  2. Reducer transitions to AwaitingDevFix phase
  3. DevFixTriggered event emitted
  4. Development agent invoked with failure context
  5. DevFixCompleted event emitted
  6. CompletionMarkerEmitted event signals transition to Interrupted
  7. Checkpoint saved
  8. 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: PipelinePhase

Phase where the failure occurred.

§failed_role: AgentRole

Agent role that failed.

§

DevFixSkipped

Dev-fix flow was skipped (not yet implemented or disabled).

Fields

§reason: String

Reason for skipping.

§

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

§success: bool

Whether the fix attempt succeeded.

§summary: Option<String>

Optional summary of what was fixed.

§

DevFixAgentUnavailable

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.

Fields

§failed_phase: PipelinePhase

Phase where the failure occurred.

§reason: String

Reason for unavailability.

§

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.

Fields

§is_failure: bool

Whether this is a failure completion (true) or success (false).

Trait Implementations§

Source§

impl Clone for AwaitingDevFixEvent

Source§

fn clone(&self) -> AwaitingDevFixEvent

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AwaitingDevFixEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AwaitingDevFixEvent

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for AwaitingDevFixEvent

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,