Skip to main content

DevelopmentEvent

Enum DevelopmentEvent 

Source
pub enum DevelopmentEvent {
Show 20 variants PhaseStarted, IterationStarted { iteration: u32, }, ContextPrepared { iteration: u32, }, PromptPrepared { iteration: u32, }, AgentInvoked { iteration: u32, }, AnalysisAgentInvoked { iteration: u32, }, XmlExtracted { iteration: u32, }, XmlMissing { iteration: u32, attempt: u32, }, XmlValidated { iteration: u32, status: DevelopmentStatus, summary: String, files_changed: Option<Vec<String>>, next_steps: Option<String>, }, OutcomeApplied { iteration: u32, }, XmlArchived { iteration: u32, }, XmlCleaned { iteration: u32, }, IterationCompleted { iteration: u32, output_valid: bool, }, PhaseCompleted, ContinuationTriggered { iteration: u32, status: DevelopmentStatus, summary: String, files_changed: Option<Vec<String>>, next_steps: Option<String>, }, ContinuationSucceeded { iteration: u32, total_continuation_attempts: u32, }, OutputValidationFailed { iteration: u32, attempt: u32, }, ContinuationBudgetExhausted { iteration: u32, total_attempts: u32, last_status: DevelopmentStatus, }, ContinuationContextWritten { iteration: u32, attempt: u32, }, ContinuationContextCleaned,
}
Expand description

Development phase events.

Events related to development iterations, including continuation handling for partial/failed completion states. Development iterations involve invoking developer agents to make code changes.

§State Transitions

  • PhaseStarted: Sets phase to Development
  • IterationStarted: Resets agent chain, clears continuation state
  • IterationCompleted(output_valid=true): Transitions to CommitMessage
  • IterationCompleted(output_valid=false): Stays in Development for retry
  • ContinuationTriggered: Saves context for continuation attempt
  • ContinuationSucceeded: Clears continuation, proceeds to CommitMessage
  • PhaseCompleted: Transitions to Review

Variants§

§

PhaseStarted

Development phase has started.

§

IterationStarted

A development iteration has started.

Fields

§iteration: u32

The iteration number starting.

§

ContextPrepared

Development context prepared for an iteration.

Emitted after Effect::PrepareDevelopmentContext completes.

Fields

§iteration: u32

The iteration number the context was prepared for.

§

PromptPrepared

Development prompt prepared for an iteration.

Emitted after Effect::PrepareDevelopmentPrompt completes.

Fields

§iteration: u32

The iteration number the prompt was prepared for.

§

AgentInvoked

Developer agent was invoked for an iteration.

Emitted after Effect::InvokeDevelopmentAgent completes.

Fields

§iteration: u32

The iteration number the agent was invoked for.

§

AnalysisAgentInvoked

Analysis agent was invoked to verify development results for an iteration.

Emitted after Effect::InvokeAnalysisAgent completes. The analysis agent produces development_result.xml by comparing git diff against PLAN.md.

Fields

§iteration: u32

The iteration number the analysis agent was invoked for.

§

XmlExtracted

Development result XML exists and was read successfully for the iteration.

Emitted after Effect::ExtractDevelopmentXml completes.

Fields

§iteration: u32

The iteration number the XML was extracted for.

§

XmlMissing

Development result XML missing for an iteration.

Emitted after Effect::ExtractDevelopmentXml when the XML was absent.

Fields

§iteration: u32

The iteration number the XML was extracted for.

§attempt: u32

The invalid output attempt count.

§

XmlValidated

Development result XML validated for an iteration.

This event captures the parsed development outcome.

Fields

§iteration: u32

The iteration number the XML was validated for.

§status: DevelopmentStatus

The parsed development status.

§summary: String

Summary of what was accomplished.

§files_changed: Option<Vec<String>>

Files changed in this attempt.

§next_steps: Option<String>

Agent’s recommended next steps.

§

OutcomeApplied

Development outcome applied for an iteration.

Fields

§iteration: u32

The iteration number the outcome was applied for.

§

XmlArchived

Development result XML archived for an iteration.

Emitted after Effect::ArchiveDevelopmentXml completes.

Fields

§iteration: u32

The iteration number the XML was archived for.

§

XmlCleaned

Development result XML cleaned before invoking the developer agent.

Fields

§iteration: u32

The iteration number the XML was cleaned for.

§

IterationCompleted

A development iteration completed with validation result.

Fields

§iteration: u32

The iteration number that completed.

§output_valid: bool

Whether the output passed validation.

§

PhaseCompleted

Development phase completed, all iterations done.

§

ContinuationTriggered

Continuation triggered due to partial/failed status.

Emitted only when development output is valid (parseable) but status is not “completed” (i.e., “partial” or “failed”).

Fields

§iteration: u32

Current iteration number.

§status: DevelopmentStatus

Status from the agent (“partial” or “failed”).

§summary: String

Summary of what was accomplished.

§files_changed: Option<Vec<String>>

Files changed in this attempt.

§next_steps: Option<String>

Agent’s recommended next steps.

§

ContinuationSucceeded

Continuation attempt succeeded with status “completed”.

Fields

§iteration: u32

Current iteration number.

§total_continuation_attempts: u32

Number of continuation attempts it took.

§

OutputValidationFailed

Output validation failed (XSD/XML parsing error).

Emitted when development output cannot be parsed or fails XSD validation. The reducer decides whether to retry (same agent) or switch agents based on the attempt count in state.

Fields

§iteration: u32

Current iteration number.

§attempt: u32

Current invalid output attempt number.

§

ContinuationBudgetExhausted

Continuation attempts exhausted without reaching completed status.

Emitted when development iteration has used all allowed continuation attempts but still hasn’t reached status=“completed”.

Fields

§iteration: u32

Current iteration number.

§total_attempts: u32

Total continuation attempts made.

§last_status: DevelopmentStatus

Last status received (Partial or Failed).

§

ContinuationContextWritten

Continuation context file was written successfully.

Emitted after WriteContinuationContext effect completes. The reducer clears the needs_context_write flag on this event.

Fields

§iteration: u32

Current iteration number.

§attempt: u32

Current continuation attempt number.

§

ContinuationContextCleaned

Continuation context file was cleaned up.

Emitted after CleanupContinuationContext effect completes.

Trait Implementations§

Source§

impl Clone for DevelopmentEvent

Source§

fn clone(&self) -> DevelopmentEvent

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 DevelopmentEvent

Source§

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

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

impl<'de> Deserialize<'de> for DevelopmentEvent

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 DevelopmentEvent

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>,