feat: planning sessions foundation (Plan A) #4

Merged
claude merged 16 commits from feat/planning-sessions-foundation into main 2026-04-23 16:31:37 +00:00
Owner

Implements Plan A of the planning-sessions feature: schema, repository layer, and auto-parent-completion hook. Prerequisite for Plans B (Worker MCP + Launcher) and C (UI), which poll for the migration file on main before starting.

What this ships

  • Three new TaskStatus values: Planning, Planned, Draft
  • Four new columns on tasks (ParentTaskId, PlanningSessionId, PlanningSessionToken, PlanningFinalizedAt) plus self-ref FK with DeleteBehavior.Restrict
  • Seven new repository methods: GetChildren, CreateChild, SetPlanningStarted, UpdatePlanningSessionId, FindByPlanningToken, FinalizePlanning, DiscardPlanning, TryCompleteParent
  • Auto-parent-completion wiring in TaskRunner after all three MarkDone/MarkFailed call-sites
  • Regression tests: queue skips Planning/Planned/Draft; parent delete with children is restricted
  • PRAGMA foreign_keys=ON made explicit in the DbContext

Verification

  • 151 tests pass (16 new)
  • All four projects build cleanly
  • Migration: 20260423154708_AddPlanningSupport.cs

See spec: docs/superpowers/specs/2026-04-23-planning-sessions-design.md
See plan: docs/superpowers/plans/2026-04-23-planning-sessions-plan-a-foundation.md

Implements Plan A of the planning-sessions feature: schema, repository layer, and auto-parent-completion hook. Prerequisite for Plans B (Worker MCP + Launcher) and C (UI), which poll for the migration file on main before starting. ## What this ships - Three new TaskStatus values: Planning, Planned, Draft - Four new columns on tasks (ParentTaskId, PlanningSessionId, PlanningSessionToken, PlanningFinalizedAt) plus self-ref FK with DeleteBehavior.Restrict - Seven new repository methods: GetChildren, CreateChild, SetPlanningStarted, UpdatePlanningSessionId, FindByPlanningToken, FinalizePlanning, DiscardPlanning, TryCompleteParent - Auto-parent-completion wiring in TaskRunner after all three MarkDone/MarkFailed call-sites - Regression tests: queue skips Planning/Planned/Draft; parent delete with children is restricted - PRAGMA foreign_keys=ON made explicit in the DbContext ## Verification - 151 tests pass (16 new) - All four projects build cleanly - Migration: 20260423154708_AddPlanningSupport.cs See spec: docs/superpowers/specs/2026-04-23-planning-sessions-design.md See plan: docs/superpowers/plans/2026-04-23-planning-sessions-plan-a-foundation.md
claude added 16 commits 2026-04-23 16:31:27 +00:00
claude merged commit 845359b885 into main 2026-04-23 16:31:37 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: releases/ClaudeDo#4