Skip to main content

ExecutionStep

Struct ExecutionStep 

Source
pub struct ExecutionStep {
    pub phase: Arc<str>,
    pub iteration: u32,
    pub step_type: Box<str>,
    pub timestamp: String,
    pub outcome: StepOutcome,
    pub agent: Option<Arc<str>>,
    pub duration_secs: Option<u64>,
    pub checkpoint_saved_at: Option<String>,
    pub git_commit_oid: Option<String>,
    pub modified_files_detail: Option<ModifiedFilesDetail>,
    pub prompt_used: Option<String>,
    pub issues_summary: Option<IssuesSummary>,
}
Expand description

A single execution step in the pipeline history.

§Memory Optimization

This struct uses Arc for phase and agent fields to reduce memory usage through string interning. Phase names and agent names are repeated frequently across execution history entries, so sharing allocations via Arc significantly reduces heap usage.

Serialization/deserialization is backward-compatible - Arc is serialized as a regular string and can be deserialized from both old (String) and new (Arc) checkpoint formats.

Fields§

§phase: Arc<str>

Phase this step belongs to (interned via Arc)

§iteration: u32

Iteration number (for development/review iterations)

§step_type: Box<str>

Type of step (e.g., “review”, “fix”, “commit”)

§timestamp: String

When this step was executed (ISO 8601 format string)

§outcome: StepOutcome

Outcome of the step

§agent: Option<Arc<str>>

Agent that executed this step (interned via Arc)

§duration_secs: Option<u64>

Duration in seconds (if available)

§checkpoint_saved_at: Option<String>

When a checkpoint was saved during this step (ISO 8601 format string)

§git_commit_oid: Option<String>

Git commit OID created during this step (if any)

§modified_files_detail: Option<ModifiedFilesDetail>

Detailed information about files modified

§prompt_used: Option<String>

The prompt text used for this step (for deterministic replay)

§issues_summary: Option<IssuesSummary>

Issues summary (found and fixed counts)

Implementations§

Source§

impl ExecutionStep

Source

pub fn new( phase: &str, iteration: u32, step_type: &str, outcome: StepOutcome, ) -> Self

Create a new execution step.

§Performance Note

For optimal memory usage, use new_with_pool to intern repeated phase and agent names via a StringPool. This constructor creates new Arc allocations for each call.

Source

pub fn new_with_pool( phase: &str, iteration: u32, step_type: &str, outcome: StepOutcome, pool: StringPool, ) -> (Self, StringPool)

Create a new execution step using a StringPool for interning.

This is the preferred constructor when creating many ExecutionSteps, as it reduces memory usage by sharing allocations for repeated phase and agent names.

Source

pub fn with_agent(self, agent: &str) -> Self

Set the agent that executed this step.

Source

pub fn with_agent_pooled( self, agent: &str, pool: StringPool, ) -> (Self, StringPool)

Set the agent using a StringPool for interning.

Source

pub const fn with_duration(self, duration_secs: u64) -> Self

Set the duration of this step.

Source

pub fn with_git_commit_oid(self, oid: &str) -> Self

Set the git commit OID created during this step.

Trait Implementations§

Source§

impl Clone for ExecutionStep

Source§

fn clone(&self) -> ExecutionStep

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 ExecutionStep

Source§

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

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

impl<'de> Deserialize<'de> for ExecutionStep

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 PartialEq for ExecutionStep

Source§

fn eq(&self, other: &ExecutionStep) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ExecutionStep

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

impl Eq for ExecutionStep

Source§

impl StructuralPartialEq for ExecutionStep

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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>,