Skip to main content

PlanStep

Struct PlanStep 

Source
pub struct PlanStep {
Show 20 fields pub index: usize, pub description: String, pub depends_on: Vec<usize>, pub required_mutation_effects: ToolMutationEffects, pub requires_observation: bool, pub expected_targets: Vec<String>, pub owner_units: Vec<usize>, pub evidence_receipt_ids: Vec<String>, pub background_jobs: Vec<String>, pub waited_jobs: Vec<String>, pub made_folders: Vec<String>, pub not_done: Option<NotDoneReason>, pub evidence: StepEvidence, pub status: StepStatus, pub tool_call_ids: Vec<String>, pub result_summary: Option<String>, pub error: Option<String>, pub retry_count: u32, pub started_at: Option<DateTime<Utc>>, pub completed_at: Option<DateTime<Utc>>,
}
Expand description

A single step in a task plan.

Fields§

§index: usize

Step index (0-based)

§description: String

Human-readable description

§depends_on: Vec<usize>

Indices of prerequisite steps. Missing on legacy rows means the steps are independent; newly generated plans persist explicit serial edges.

§required_mutation_effects: ToolMutationEffects

Typed evidence contract for automatic completion. If empty/false, only an explicit checklist update may complete the step.

§requires_observation: bool§expected_targets: Vec<String>

Exact canonical targets (path, URL, or resource ID), never prose.

§owner_units: Vec<usize>

The owner’s units of work this step carries out (owner_units on its checklist item): the typed identity a re-declaration and a launch find the step by, wherever it sits in the list.

§evidence_receipt_ids: Vec<String>

Tool-call receipt IDs that proved this step.

§background_jobs: Vec<String>

Background jobs (their launch ids) that took this step on and still work on it: a launch named it in its typed checklist_items. Each job’s end settles the step (TaskPlan::settle_background_job), and only these make a new helper for the step a duplicate.

§waited_jobs: Vec<String>

Background jobs this step only waits on: it was left open while the turn’s jobs ran, and no launch named it. It reads as running while they do and, while no job of its own took it on, settles from their typed ends: done once every one succeeded, not done (with the reason) once one failed or stopped. Waiting on a job is not being done by it: it never makes a launch for the step a duplicate.

§made_folders: Vec<String>

The folders the runs that took this step on made for it, from their claim evidence (what each found absent and then created), recorded as each run ended. The card names them, so a run that made another folder than the step’s words named shows the real one (live 2026-11-14: the card read claude-drupal-12, the site was made in claude-company-drupal-5879).

§not_done: Option<NotDoneReason>

Why a step that was not done was left undone, when the daemon knows it from typed state (never from the step’s text). Such a step was held back correctly, so the card does not show it as a failure.

§evidence: StepEvidence

How its state is known: settled by typed evidence, completed on the executing model’s word alone (its checklist update said done and no receipt or helper’s result proved it; evidence clears it), or handed to a helper that never started (a later launch takes it again).

§status: StepStatus

Step status

§tool_call_ids: Vec<String>

Tool calls made during this step (event IDs or tool:timestamp)

§result_summary: Option<String>

Summary of what was accomplished

§error: Option<String>

Error message if step failed

§retry_count: u32

Number of retry attempts

§started_at: Option<DateTime<Utc>>§completed_at: Option<DateTime<Utc>>

Implementations§

Source§

impl PlanStep

Source

pub fn described(&self) -> String

Its words on the card, with the folders its runs made that its words do not already name: the real folder, from the claim evidence.

Source

pub fn unverified(&self) -> bool

Completed on the model’s word alone, and a step that declared a side effect: the one kind of step the card flags. A step that changes nothing (a check, a read) needs no receipt: the reply says what it found.

Source

pub fn has_background_jobs(&self) -> bool

Any background job is still listed on it: one that took it on, or one it waits on.

Source

pub fn helper_not_started(&self) -> bool

It was handed to a helper that never started.

Source

pub fn duration_secs(&self) -> Option<u64>

Calculate step duration in seconds (if completed).

Trait Implementations§

Source§

impl Clone for PlanStep

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for PlanStep

Source§

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

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

impl<'de> Deserialize<'de> for PlanStep

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 PlanStep

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. 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 = !

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

fn try_from(value: U) -> Result<T, !>

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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more