Skip to main content

Manifest

Struct Manifest 

Source
pub struct Manifest {
Show 19 fields pub schema_version: u32, pub applied_seq: u64, pub run_id: RunId, pub kind: Kind, pub lifecycle: Lifecycle, pub title: String, pub status: Status, pub created_at: DateTime<Utc>, pub updated_at: DateTime<Utc>, pub source_repo: Option<String>, pub source_branch: Option<String>, pub worktree_root: Option<String>, pub managed_tmux_session: Option<String>, pub notify_cmd: Option<String>, pub node_count: u32, pub open_discussions: u32, pub pending_spinoffs: u32, pub parent_run_id: Option<RunId>, pub parent_node_id: Option<NodeId>,
}
Expand description

manifest.json (design.md §1.2).

Fields§

§schema_version: u32

State-schema version this file was written with.

§applied_seq: u64

Watermark: the highest event seq whose projection fold is durably committed. Events in events.jsonl with seq > applied_seq are unapplied tail events — replayed into the projections on the next lock acquisition before any new append (see crate::events::append_and_apply_event). This is what makes append-then-apply atomic across a reducer crash: the event log can run ahead of the projections, but the gap is always healed before the next writer observes stale state.

#[serde(default)] so a legacy manifest.json written before this field existed deserializes with applied_seq = 0. Such a manifest self-migrates on its next write: the catch-up replay re-folds the whole log — every event a no-op, because legacy state was already projected synchronously under the old append-then-apply path — and advances the watermark to last_seq. No separate migration pass or schema bump is required (the field is purely additive to a derived-cache file).

§run_id: RunId

Unique run identifier (ULID). Validated on read.

§kind: Kind

Kind of work this run performs.

§lifecycle: Lifecycle

Execution lifecycle (autonomous vs interactive).

§title: String

Human-readable run title.

§status: Status

Current aggregate run status.

§created_at: DateTime<Utc>

When the run was created.

§updated_at: DateTime<Utc>

When the manifest was last modified.

§source_repo: Option<String>

Source repository the run operates on, if any.

§source_branch: Option<String>

Branch the run was started from, if any.

§worktree_root: Option<String>

Root directory under which this run’s worktrees live, if any.

§managed_tmux_session: Option<String>

tmux session orchestratectl created to host this run’s headless windows (--headless / --tmux-session <name>), if any. None for a foreground run whose window lives in the user’s own session — that session is never a teardown target. When set, the supervisor kills this session once its last orchestratectl-owned window is torn down and only the synthetic bootstrap shell window remains, so an empty headless session is not left behind (issue headless-tmux-session-not-torn-down). #[serde(default)] keeps a manifest written before this field existed readable.

§notify_cmd: Option<String>

Completion-notification command registered at run create --notify, if any. When the run reaches a terminal state (done | failed | cancelled) the supervisor runs this command (at-least-once, deduped on a durable run.notified marker event — the healthy path fires once, a crash between firing and recording may re-fire) with OCTL_RUN_ID / OCTL_STATUS / OCTL_SUMMARY (and OCTL_RUN_KIND / OCTL_RUN_TITLE) in its environment, BEFORE teardown removes the worktree/window. This is how a spawning session learns of completion without polling (issue no-completion-notification-to-parent). None for a run created without --notify; #[serde(default)] keeps a manifest written before this field existed readable.

§node_count: u32

Number of nodes created in this run (denormalized counter).

§open_discussions: u32

Count of currently open discussions (denormalized counter).

§pending_spinoffs: u32

Count of currently pending spin-off proposals (denormalized counter).

§parent_run_id: Option<RunId>

Run that spawned this run, if it is itself a child.

§parent_node_id: Option<NodeId>

Node in the parent run that spawned this run, if any.

Trait Implementations§

Source§

impl Clone for Manifest

Source§

fn clone(&self) -> Manifest

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 Manifest

Source§

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

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

impl<'de> Deserialize<'de> for Manifest

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 Manifest

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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