Skip to main content

Module planning_workflow

Module planning_workflow 

Source
Expand description

Planning workflow tools and supporting logic.

The original 1800-line planning_workflow.rs monolith was decomposed into focused, individually testable modules while preserving the exact public surface consumed by handlers/mod.rs and the task-tracker / exec-harness readers:

  • artifacts: pure, side-effect-free plan/tracker marker handling, section parsing, validation, and tracker generation.
  • persistence: file I/O — draft persistence, plan<->tracker sync, validation-command detection.
  • state: PlanningWorkflowState shared permission state.
  • start: start_planning tool (enter planning workflow).

Re-exports§

pub use artifacts::CANONICAL_STEP_FORMAT;
pub use artifacts::PLANNING_VERIFY_INVALID_EXAMPLES;
pub use artifacts::PLANNING_VERIFY_VALID_EXAMPLES;
pub use artifacts::PlanValidationReport;
pub use artifacts::generate_tracker_markdown_from_plan;
pub use artifacts::merge_plan_content;
pub use artifacts::plan_file_for_tracker_file;
pub use artifacts::split_bracket_items;
pub use artifacts::tracker_file_for_plan_file;
pub use artifacts::validate_plan_content;
pub use persistence::PersistedPlanDraft;
pub use persistence::allocate_plan_file_if_missing;
pub use persistence::persist_plan_draft;
pub use persistence::sync_tracker_into_plan_file;
pub use start::StartPlanningTool;
pub use state::PlanningWorkflowState;

Modules§

artifacts
Pure planning-artifact helpers behind stable public imports.
persistence
Plan artifact I/O: persisting drafts, syncing the embedded tracker, and detecting workspace validation commands.
start
Enter-planning tool: start_planning.
state
Shared planning-workflow state across the start/finish tools.