Skip to content

feat(sw-plan): rewrite for per-unit specs with individual review#41

Merged
MacAttak merged 5 commits intomainfrom
feat/sw-plan-rewrite
Feb 24, 2026
Merged

feat(sw-plan): rewrite for per-unit specs with individual review#41
MacAttak merged 5 commits intomainfrom
feat/sw-plan-rewrite

Conversation

@MacAttak
Copy link
Contributor

Summary

  • Rewrites skills/sw-plan/SKILL.md so each work unit gets its own directory with independent spec.md, plan.md, and context.md
  • Adds per-unit spec loop with individual user approval via AskUserQuestion before moving to the next unit
  • Preserves single-unit flat layout for backward compatibility

Acceptance Criteria

# Criterion Status
AC-1 Multi-unit outputs in units/{unit-id}/ directory PASS
AC-2 No spec/plan at work root for multi-unit PASS
AC-3 Single-unit flat layout preserved PASS
AC-4 workUnits populated at pending before loop PASS
AC-5 Single-unit decomposition uses flat layout PASS
AC-6 User approves decomposition before directories created PASS
AC-7 Per-unit directory with context, plan, spec PASS
AC-8 Individual AskUserQuestion approval per unit PASS
AC-9 Revision loop until approved PASS
AC-10 Unit status → planned after approval PASS
AC-11 designingplanning at start PASS
AC-12 planningbuilding with unitId/workDir activation PASS
AC-13 Gates reset on first unit activation PASS
AC-14 Curated context subset per unit PASS
AC-15 Self-contained unit context PASS
AC-16 Compaction recovery with skip/resume PASS
AC-17 Decomposition revision requires reset PASS
AC-18 No implementation code in stage boundary PASS
AC-19 Handoff to /sw-build after activation PASS

Gate Results

Gate Status Findings (B/W/I)
spec PASS 0/0/0
build SKIP N/A (markdown-only)
tests SKIP N/A (markdown-only)
security SKIP N/A (markdown-only)
wiring SKIP N/A (markdown-only)

Evidence

🤖 Generated with Claude Code

MacAttak and others added 5 commits February 24, 2026 22:06
Inputs now reference design-level artifacts via {currentWork.id}.
Outputs section documents both single-unit flat layout (unchanged)
and multi-unit layout with per-unit spec/plan/context in units/.

Co-Authored-By: Claude <noreply@anthropic.com>
Adds 1-unit fallback to flat layout, requires user approval before
creating unit directories, populates workUnits at status pending.

Co-Authored-By: Claude <noreply@anthropic.com>
Adds the sequential per-unit loop: create unit dir, write curated
context/plan/spec, present each for individual user approval via
AskUserQuestion. Updates workUnits entry to planned after approval.

Co-Authored-By: Claude <noreply@anthropic.com>
After all units approved: sets unitId, workDir, first unit to building,
transitions planning→building, resets gates. Single-unit unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Compaction recovery checks workUnits statuses: skip planned, resume
from first pending. Decomposition revision requires reset + re-run.

Co-Authored-By: Claude <noreply@anthropic.com>
@MacAttak MacAttak merged commit e7cbebb into main Feb 24, 2026
2 checks passed
@MacAttak MacAttak deleted the feat/sw-plan-rewrite branch February 24, 2026 11:16
@github-actions github-actions bot mentioned this pull request Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant