namespace ClaudeDo.Data.Repositories;
public enum DiscardPlanningResult
{
/// Planning state cleared, children handled.
Discarded,
/// Parent not found or not in PlanningPhase.Active.
NotInPlanning,
/// At least one child is Queued and the caller did not opt in to auto-dequeue.
BlockedByQueuedChildren,
/// At least one child is Running; user must cancel it before discarding.
BlockedByRunningChildren,
}
public readonly record struct DiscardPlanningOutcome(
DiscardPlanningResult Result,
int QueuedChildrenCount,
int RunningChildrenCount);