Expand description
Purpose: Facade for queue repair surfaces.
Responsibilities:
- Declare focused repair companion modules.
- Re-export the stable repair API used by queue callers.
- Document the split between data, planning, persistence/apply, relationship rewriting, and dependency traversal helpers.
Scope:
- Thin module root only; repair report/plan types, planning, apply, relationship rewriting, and dependency traversal live in sibling companions.
Usage:
- Used through
crate::queue::{RepairReport, QueueRepairPlan, apply_queue_repair_with_undo, apply_queue_maintenance_repair_with_undo, plan_queue_repair, plan_queue_maintenance_repair, plan_loaded_queue_repair, get_dependents}. - Crate-internal helpers remain available through
crate::queue::repair::*.
Invariants/Assumptions:
- Re-exports preserve existing caller imports.
- Mutating repair flows live in
applyand continue to require a held queue lock plus an undo snapshot before saving; planning flows are pure.
Structs§
Functions§
- apply_
queue_ maintenance_ repair_ with_ undo - apply_
queue_ repair_ with_ undo - get_
dependents - Get all tasks that depend on the given task ID (recursively). Returns a list of task IDs that depend on the root task.
- plan_
loaded_ queue_ repair - plan_
queue_ maintenance_ repair - plan_
queue_ repair