pub struct StateConfig {
pub id: String,
pub label: String,
pub description: String,
pub terminal: bool,
pub worker_end: bool,
pub satisfies_deps: SatisfiesDeps,
pub dep_requires: Option<String>,
pub transitions: Vec<TransitionConfig>,
pub actionable: Vec<String>,
pub instructions: Option<String>,
}Expand description
A single state in the workflow state machine.
Fields§
§id: StringUnique state identifier (e.g. new, in_progress). Used in ticket frontmatter and transition targets.
label: StringHuman-readable name shown in apm list and review prompts.
description: StringOptional longer explanation of what this state means.
terminal: boolWhen true, tickets in this state are considered done; no further transitions are expected.
worker_end: boolWhen true, a worker finishing in this state is considered complete (used by the dispatcher to release the worker slot).
satisfies_deps: SatisfiesDepsWhether reaching this state satisfies depends_on relationships. false = never, true = always, a string tag = satisfies deps tagged with that string.
dep_requires: Option<String>Optional string tag that must appear in a dependency’s satisfies_deps for it to count as satisfied.
transitions: Vec<TransitionConfig>List of outgoing transitions from this state.
actionable: Vec<String>Roles that can actively pick up / act on tickets in this state. Valid values: agent, supervisor, engineer, any. Drives apm next, apm start, and apm list --actionable.
instructions: Option<String>Optional extra instructions injected into the worker prompt when a ticket enters this state.
Trait Implementations§
Source§impl Clone for StateConfig
impl Clone for StateConfig
Source§fn clone(&self) -> StateConfig
fn clone(&self) -> StateConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StateConfig
impl Debug for StateConfig
Source§impl<'de> Deserialize<'de> for StateConfig
impl<'de> Deserialize<'de> for StateConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for StateConfig
impl JsonSchema for StateConfig
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more