Skip to content

feat: update downstream skills, hook, and docs for per-unit specs#43

Merged
MacAttak merged 5 commits intomainfrom
feat/downstream-and-docs
Feb 24, 2026
Merged

feat: update downstream skills, hook, and docs for per-unit specs#43
MacAttak merged 5 commits intomainfrom
feat/downstream-and-docs

Conversation

@MacAttak
Copy link
Contributor

Summary

  • Updates all remaining skill paths (sw-verify, 5 gates, sw-status, sw-learn) to use {currentWork.workDir}/ for unit-local artifact resolution
  • Fixes hooks/session-start.mjs to use work.workDir with backward-compatible fallback, shows unitId in status
  • Updates DESIGN.md with units/ directory pattern and per-unit spec description

Acceptance Criteria

# Criterion Status
AC-1 sw-verify Input uses {currentWork.workDir}/spec.md PASS
AC-2 sw-verify Output uses {currentWork.workDir}/evidence/ PASS
AC-3 gate-spec Input/Output use {currentWork.workDir}/ PASS
AC-4 gate-build Output uses {currentWork.workDir}/evidence/ PASS
AC-5 gate-tests Output uses {currentWork.workDir}/evidence/ PASS
AC-6 gate-security Output uses {currentWork.workDir}/evidence/ PASS
AC-7 gate-wiring Output uses {currentWork.workDir}/evidence/ PASS
AC-8 sw-status shows unitId when present PASS
AC-9 sw-status shows planned status in queue PASS
AC-10 sw-status shows workDir paths in queue entries PASS
AC-11 sw-learn uses {currentWork.workDir}/ for evidence and plan PASS
AC-12 Hook uses work.workDir for spec/plan paths PASS
AC-13 Hook shows unitId in status output PASS
AC-14 Hook backward compat fallback for missing workDir PASS
AC-15 DESIGN.md directory diagram includes units/ pattern PASS
AC-16 sw-plan description mentions per-unit specs PASS
AC-17 Design/Plan Split reflects per-unit artifacts PASS

Gate Results

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

Evidence

🤖 Generated with Claude Code

MacAttak and others added 5 commits February 24, 2026 22:25
Use {currentWork.workDir}/ for spec.md Input and evidence/ Output paths
across sw-verify, gate-spec, gate-build, gate-tests, gate-security,
and gate-wiring.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Display active unit ID when set, show PLANNED status alongside existing
statuses, and include workDir paths in queue entries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use {currentWork.workDir}/ for evidence/ and plan.md Input references.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace hardcoded .specwright/work/${work.id}/ path construction with
work.workDir. Show unitId in status output when present. Falls back
to .specwright/work/${work.id}/ when workDir is absent (old state).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update runtime directory diagram to show units/{unit-id}/ pattern for
multi-unit work. Update sw-plan description to mention per-unit specs
with individual user approval. Update Design/Plan Split section.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MacAttak MacAttak merged commit 5234814 into main Feb 24, 2026
2 checks passed
@MacAttak MacAttak deleted the feat/downstream-and-docs branch February 24, 2026 11:33
@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