Skip to content

feat(sw-build,sw-ship): workDir paths, branch naming, unit advancement#42

Merged
MacAttak merged 4 commits intomainfrom
feat/build-and-ship
Feb 24, 2026
Merged

feat(sw-build,sw-ship): workDir paths, branch naming, unit advancement#42
MacAttak merged 4 commits intomainfrom
feat/build-and-ship

Conversation

@MacAttak
Copy link
Contributor

Summary

  • Updates sw-build/SKILL.md to use {currentWork.workDir}/ for unit-local artifacts and {currentWork.unitId} for branch naming in multi-unit mode
  • Updates sw-ship/SKILL.md to use {currentWork.workDir}/ for spec and evidence paths
  • Rewrites sw-ship unit advancement to find next planned unit, set building status, and reset gates/tasks

Acceptance Criteria

# Criterion Status
AC-1 sw-build inputs use {currentWork.workDir}/ for unit-local PASS
AC-2 sw-build design.md uses design-level path PASS
AC-3 Task loop uses {currentWork.workDir}/spec.md PASS
AC-4 Parent context fallback note for build agents PASS
AC-5 Branch uses unitId when set (multi-unit) PASS
AC-6 Branch uses id when null (single-unit) PASS
AC-7 sw-ship spec at {currentWork.workDir}/spec.md PASS
AC-8 sw-ship evidence at {currentWork.workDir}/evidence/ PASS
AC-9 Finds next planned entry by order PASS
AC-10 Sets unitId and workDir from next unit PASS
AC-11 Sets status to building (not planning) PASS
AC-12 Resets gates, tasksCompleted, tasksTotal, currentTask PASS
AC-13 Handoff: "Next: {unit-name}. Run /sw-build." PASS
AC-14 "All work units complete." when none remaining PASS
AC-15 Single-unit backward compatibility preserved 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 4 commits February 24, 2026 22:18
Use {currentWork.workDir}/ for unit-local artifacts (spec, plan, context)
and .specwright/work/{currentWork.id}/ for design-level artifacts. Add
parent context fallback note for build agents.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use {currentWork.unitId} for branch name in multi-unit mode,
{currentWork.id} in single-unit mode (unchanged behavior).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use {currentWork.workDir}/ for spec.md and evidence/ references
instead of hardcoded .specwright/work/{id}/ paths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Find next planned unit by order, set building status, update unitId and
workDir, reset gates/tasks. Replaces old planning-based advancement.

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