Skip to main content

AgentDocPipeline

Struct AgentDocPipeline 

Source
pub struct AgentDocPipeline {
    pub turn_id: Option<String>,
    pub run_id: Option<String>,
    pub step: Option<String>,
    pub queue_task_id: Option<String>,
}
Expand description

Live finalize-pipeline state tracker (#fm-run-id-step, Phase 5 of tasks/agent-doc/plans/reentrant-finalize-pipeline.md).

Surfaces the current cycle’s identity and step directly in frontmatter so any agent-doc invocation — or an editor plugin / JB Run Agent Doc action — can read where a crashed or resumed cycle left off without replaying the git log or parsing .agent-doc/cycle_state.

This is ephemeral runtime state, not user configuration: the orchestration layer writes it at each phase transition and clears it once the cycle reaches a terminal phase. step is a free-form string (the orchestration CyclePhase rendered lowercase, e.g. preflight_started / response_captured / write_applied / committed) so an older core build round-trips a newer phase name without data loss, and so agent-doc-core need not depend on the orchestration CyclePhase enum.

Fields§

§turn_id: Option<String>

Logical turn identifier — the backlog/queue task ID driving this cycle (e.g. #fm-run-id-step), or an auto-generated id when the queue prompt has no backlog match.

§run_id: Option<String>

Cycle-state run identifier (the cycle-<millis> capture/cycle id) for correlating frontmatter state with .agent-doc/captures + cycle_state.

§step: Option<String>

Current pipeline step — the orchestration CyclePhase rendered as a lowercase string. Free-form so a newer phase round-trips through an older core build.

§queue_task_id: Option<String>

Backlog ID for the queued task, when the driving queue prompt resolved to (or created) a tracked backlog item. Distinct from turn_id only when the turn id is auto-generated.

Implementations§

Source§

impl AgentDocPipeline

Source

pub fn is_empty(&self) -> bool

True when no field is populated. Used by skip_serializing_if so a drained or terminal cycle leaves no agent_doc_pipeline: block behind in the document.

Trait Implementations§

Source§

impl Clone for AgentDocPipeline

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 AgentDocPipeline

Source§

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

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

impl Default for AgentDocPipeline

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for AgentDocPipeline

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 Eq for AgentDocPipeline

Source§

impl PartialEq for AgentDocPipeline

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl Serialize for AgentDocPipeline

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 StructuralPartialEq for AgentDocPipeline

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

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<M> Meta for M
where M: Default,

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.