pub struct StepPrehookContext {Show 32 fields
pub task_id: String,
pub task_item_id: String,
pub cycle: u32,
pub step: String,
pub qa_file_path: String,
pub item_status: String,
pub task_status: String,
pub qa_exit_code: Option<i64>,
pub fix_exit_code: Option<i64>,
pub retest_exit_code: Option<i64>,
pub active_ticket_count: i64,
pub new_ticket_count: i64,
pub qa_failed: bool,
pub fix_required: bool,
pub qa_confidence: Option<f32>,
pub qa_quality_score: Option<f32>,
pub fix_has_changes: Option<bool>,
pub upstream_artifacts: Vec<ArtifactSummary>,
pub build_error_count: i64,
pub test_failure_count: i64,
pub build_exit_code: Option<i64>,
pub test_exit_code: Option<i64>,
pub self_test_exit_code: Option<i64>,
pub self_test_passed: bool,
pub max_cycles: u32,
pub is_last_cycle: bool,
pub last_sandbox_denied: bool,
pub sandbox_denied_count: u32,
pub last_sandbox_denial_reason: Option<String>,
pub self_referential_safe: bool,
pub self_referential_safe_scenarios: Vec<String>,
pub vars: HashMap<String, String>,
}Expand description
Step prehook context for evaluation
Fields§
§task_id: StringParent task identifier.
task_item_id: StringCurrent task item identifier.
cycle: u32One-based workflow cycle currently being evaluated.
step: StringStep identifier whose prehook is running.
qa_file_path: StringQA document associated with the current item.
item_status: StringCurrent task item status.
task_status: StringCurrent top-level task status.
qa_exit_code: Option<i64>Exit code observed from the last QA step.
fix_exit_code: Option<i64>Exit code observed from the last fix step.
retest_exit_code: Option<i64>Exit code observed from the last retest step.
active_ticket_count: i64Number of open tickets for the task.
new_ticket_count: i64Number of tickets created in the latest QA pass.
qa_failed: boolWhether the last QA pass failed.
fix_required: boolWhether the workflow believes a fix pass is required.
qa_confidence: Option<f32>Confidence score emitted by QA tooling.
qa_quality_score: Option<f32>Quality score emitted by QA tooling.
fix_has_changes: Option<bool>Whether the last fix step changed the workspace.
upstream_artifacts: Vec<ArtifactSummary>Summaries of artifacts produced by upstream steps in the same cycle.
build_error_count: i64Number of build errors from the last build step
test_failure_count: i64Number of test failures from the last test step
build_exit_code: Option<i64>Exit code of the last build step
test_exit_code: Option<i64>Exit code of the last test step
self_test_exit_code: Option<i64>Exit code of the last self_test step
self_test_passed: boolWhether the last self_test step passed
max_cycles: u32Maximum number of cycles configured for this workflow
is_last_cycle: boolWhether this is the last cycle (cycle == max_cycles)
last_sandbox_denied: boolWhether the latest command was denied by sandbox policy.
sandbox_denied_count: u32Number of sandbox denials observed for the item.
last_sandbox_denial_reason: Option<String>Human-readable reason for the latest sandbox denial.
self_referential_safe: boolWhether this QA doc is safe to run in a self-referential workspace
self_referential_safe_scenarios: Vec<String>Scenario IDs that are safe to run in self-referential mode. Non-empty only when the doc is marked unsafe but has safe scenarios.
vars: HashMap<String, String>User-defined pipeline variables (from step captures). Available in prehook CEL expressions with automatic type inference.
Trait Implementations§
Source§impl Clone for StepPrehookContext
impl Clone for StepPrehookContext
Source§fn clone(&self) -> StepPrehookContext
fn clone(&self) -> StepPrehookContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StepPrehookContext
impl Debug for StepPrehookContext
Source§impl Default for StepPrehookContext
impl Default for StepPrehookContext
Source§fn default() -> StepPrehookContext
fn default() -> StepPrehookContext
Source§impl<'de> Deserialize<'de> for StepPrehookContext
impl<'de> Deserialize<'de> for StepPrehookContext
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StepPrehookContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StepPrehookContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for StepPrehookContext
impl Serialize for StepPrehookContext
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for StepPrehookContext
impl RefUnwindSafe for StepPrehookContext
impl Send for StepPrehookContext
impl Sync for StepPrehookContext
impl Unpin for StepPrehookContext
impl UnsafeUnpin for StepPrehookContext
impl UnwindSafe for StepPrehookContext
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