pub struct TaskRuntimeContext {Show 21 fields
pub workspace_id: String,
pub workspace_root: PathBuf,
pub ticket_dir: String,
pub execution_plan: Arc<TaskExecutionPlan>,
pub execution: WorkflowExecutionConfig,
pub current_cycle: u32,
pub init_done: bool,
pub dynamic_steps: Arc<Vec<DynamicStepConfig>>,
pub adaptive: Arc<Option<AdaptivePlannerConfig>>,
pub pipeline_vars: PipelineVariables,
pub safety: Arc<SafetyConfig>,
pub self_referential: bool,
pub consecutive_failures: u32,
pub project_id: String,
pub pinned_invariants: Arc<Vec<InvariantConfig>>,
pub workflow_id: String,
pub spawn_depth: i64,
pub item_step_failures: HashMap<(String, String), u32>,
pub item_retry_after: HashMap<String, Instant>,
pub restart_completed_steps: HashSet<String>,
pub step_filter: Option<HashSet<String>>,
}Expand description
Task runtime context
Fields§
§workspace_id: StringWorkspace identifier selected for this task run.
workspace_root: PathBufAbsolute filesystem root for the active workspace.
ticket_dir: StringDirectory where QA tickets are written.
execution_plan: Arc<TaskExecutionPlan>Immutable execution plan snapshot pinned to the task.
execution: WorkflowExecutionConfigWorkflow execution settings resolved for this task.
current_cycle: u32One-based cycle counter for the current loop iteration.
init_done: boolWhether the one-time init step has already completed.
dynamic_steps: Arc<Vec<DynamicStepConfig>>Dynamic step definitions available to the planner.
adaptive: Arc<Option<AdaptivePlannerConfig>>Optional adaptive planning configuration.
pipeline_vars: PipelineVariablesPipeline variables accumulated across steps in the current cycle
safety: Arc<SafetyConfig>Safety configuration
self_referential: boolWhether the workspace is self-referential
consecutive_failures: u32Consecutive failure counter for auto-rollback
project_id: StringProject ID for project-scoped agent selection.
pinned_invariants: Arc<Vec<InvariantConfig>>WP04: Immutable snapshot of invariants, pinned at task start
workflow_id: StringWP02: Workflow ID for spawn inheritance
spawn_depth: i64WP02: Current spawn depth for depth limiting
item_step_failures: HashMap<(String, String), u32>FR-035: Per-item per-step consecutive failure counter (item_id, step_id) -> count
item_retry_after: HashMap<String, Instant>FR-035: Per-item retry-after timestamp for exponential backoff
restart_completed_steps: HashSet<String>Steps that already completed in this cycle before a self_restart. Populated when resuming from restart_pending to avoid re-running steps.
step_filter: Option<HashSet<String>>FR-090: Task-level step filter. When set, only steps whose ID is in this set are executed; all other steps are skipped.
Implementations§
Source§impl TaskRuntimeContext
impl TaskRuntimeContext
Sourcepub fn adaptive_config(&self) -> Option<&AdaptivePlannerConfig>
pub fn adaptive_config(&self) -> Option<&AdaptivePlannerConfig>
Returns the adaptive planner configuration when adaptive orchestration is enabled.
Sourcepub fn dynamic_step_configs(&self) -> &[DynamicStepConfig]
pub fn dynamic_step_configs(&self) -> &[DynamicStepConfig]
Returns the currently resolved dynamic step definitions.
Trait Implementations§
Source§impl Clone for TaskRuntimeContext
impl Clone for TaskRuntimeContext
Source§fn clone(&self) -> TaskRuntimeContext
fn clone(&self) -> TaskRuntimeContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for TaskRuntimeContext
impl RefUnwindSafe for TaskRuntimeContext
impl Send for TaskRuntimeContext
impl Sync for TaskRuntimeContext
impl Unpin for TaskRuntimeContext
impl UnsafeUnpin for TaskRuntimeContext
impl UnwindSafe for TaskRuntimeContext
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
T behind Arc pointerSource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
fn coerce_rc_to(self: Rc<X>) -> Rc<T>
fn coerce_box_to(self: Box<X>) -> Box<T>
fn coerce_ref_to(&self) -> &T
fn coerce_mut_to(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request