pub struct WorkflowOrchestrator { /* private fields */ }Expand description
Orchestrates spec-driven development workflows
Manages the relationship between specs and implementation tasks, enabling spec-to-task linking, task completion tracking, and acceptance criteria validation.
Implementations§
Source§impl WorkflowOrchestrator
impl WorkflowOrchestrator
Sourcepub fn link_task_to_requirements(
&mut self,
task_id: String,
requirement_ids: Vec<String>,
) -> Result<(), SpecError>
pub fn link_task_to_requirements( &mut self, task_id: String, requirement_ids: Vec<String>, ) -> Result<(), SpecError>
Link a task to acceptance criteria from requirements
Establishes explicit links between implementation tasks and acceptance criteria from the requirements document. This enables traceability and validation.
§Arguments
task_id- The task identifierrequirement_ids- IDs of requirements this task addresses
§Returns
Ok if linking succeeds, Err if task or requirement IDs are invalid
Sourcepub fn get_task_requirements(&self, task_id: &str) -> Vec<String>
pub fn get_task_requirements(&self, task_id: &str) -> Vec<String>
Sourcepub fn get_requirement_tasks(&self, requirement_id: &str) -> Vec<String>
pub fn get_requirement_tasks(&self, requirement_id: &str) -> Vec<String>
Sourcepub fn update_task_status(
&mut self,
task_id: String,
status: TaskStatus,
) -> Result<(), SpecError>
pub fn update_task_status( &mut self, task_id: String, status: TaskStatus, ) -> Result<(), SpecError>
Sourcepub fn get_task_status(&self, task_id: &str) -> TaskStatus
pub fn get_task_status(&self, task_id: &str) -> TaskStatus
Sourcepub fn validate_task_traceability(&self, spec: &Spec) -> Result<(), SpecError>
pub fn validate_task_traceability(&self, spec: &Spec) -> Result<(), SpecError>
Validate that all tasks have explicit links to acceptance criteria
Ensures spec-to-task traceability by verifying that every task has explicit links to at least one requirement.
§Arguments
spec- The specification to validate
§Returns
Ok if all tasks are properly linked, Err with list of unlinked tasks
Sourcepub fn get_completed_tasks(&self) -> Vec<String>
pub fn get_completed_tasks(&self) -> Vec<String>
Sourcepub fn get_in_progress_tasks(&self) -> Vec<String>
pub fn get_in_progress_tasks(&self) -> Vec<String>
Sourcepub fn get_not_started_tasks(&self) -> Vec<String>
pub fn get_not_started_tasks(&self) -> Vec<String>
Sourcepub fn get_completion_percentage(&self) -> f64
pub fn get_completion_percentage(&self) -> f64
Get overall workflow completion percentage
Calculates the percentage of tasks that have been completed.
§Returns
A percentage (0-100) of completed tasks, or 0 if no tasks exist
Sourcepub fn get_all_linked_requirements(&self) -> HashSet<String>
pub fn get_all_linked_requirements(&self) -> HashSet<String>
Get all linked requirement IDs across all tasks
§Returns
A set of all requirement IDs that have task links
Sourcepub fn get_all_linked_tasks(&self) -> HashSet<String>
pub fn get_all_linked_tasks(&self) -> HashSet<String>
Trait Implementations§
Source§impl Clone for WorkflowOrchestrator
impl Clone for WorkflowOrchestrator
Source§fn clone(&self) -> WorkflowOrchestrator
fn clone(&self) -> WorkflowOrchestrator
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more