Skip to main content

ExecutionContext

Struct ExecutionContext 

Source
pub struct ExecutionContext {
    pub clean_session_required: bool,
    pub operator_verify_required: bool,
    pub focused_cycle_required: bool,
}
Expand description

Machine-readable execution-context attributes parsed from a backlog item’s text (#goqueuestall).

  • clean_session_required[clean-session]: the item must run from a session WITHOUT a live editor-IPC listener; running it under a live IPC listener risks closeout corruption, so go-mode skips it while live. NOTE (#qcontdrain): [clean-session] items now DRAIN IN PLACE in the in-session loop, so this flag no longer defers the continuation decision.
  • operator_verify_required[operator-verify]: completion needs operator-driven live verification the agent cannot perform, so go-mode never auto-drains it.
  • focused_cycle_required[focused-cycle] (#qstallguard Layer A): the OPERATOR has declared that this item needs its own dedicated, operator- initiated cycle (e.g. merge-core / supervisor-core work that needs make tmux-ci across live panes), so it must NOT be auto-drained inside the queue loop even though the agent could perform the work. This is the ONLY sanctioned way to mark an agent-doable item non-loop-drainable: it moves the “this needs a focused cycle” judgment OUT of the agent’s prose reading (where it became a stall excuse) and INTO a binary-read tag. The agent must never re-derive non-drainability from an item’s description — absent this tag, a drainable head is drained.

Fields§

§clean_session_required: bool§operator_verify_required: bool§focused_cycle_required: bool

Implementations§

Source§

impl ExecutionContext

Source

pub fn is_deferred(&self) -> bool

True when at least one deferral tag is present.

Source

pub fn loop_undrainable(&self) -> bool

True when the item is undrainable by the IN-SESSION queue loop — it needs a human ([operator-verify]) or a dedicated, freshly-cleared cycle ([focused-cycle]). [clean-session] is intentionally EXCLUDED: it drains in place (#qcontdrain). This is the single authority for “the in-session loop must not auto-drain this head” (#qstallguard Layer A).

Source

pub fn supervisor_undrainable(&self) -> bool

True when the item is undrainable even by the SUPERVISOR clear-and-continue drain — it needs a human ([operator-verify]). Unlike Self::loop_undrainable, [focused-cycle] is NOT supervisor-undrainable (#qfocsup): the supervisor idle-watch force-/clears the session and re-dispatches a [focused-cycle] head to a genuinely fresh context, which is exactly the fresh cycle the tag demands. So a [focused-cycle] item is deferred by the in-session loop (which cannot give it fresh context) but DRAINED by the supervisor’s clear-and-continue path instead of stranding the queue idle. [clean-session] drains everywhere.

Trait Implementations§

Source§

impl Clone for ExecutionContext

Source§

fn clone(&self) -> ExecutionContext

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 Copy for ExecutionContext

Source§

impl Debug for ExecutionContext

Source§

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

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

impl Default for ExecutionContext

Source§

fn default() -> ExecutionContext

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

impl Eq for ExecutionContext

Source§

impl PartialEq for ExecutionContext

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ExecutionContext

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