Skip to content

fix: scope SDD artifacts by plan identity - #1938

Open
luochen211 wants to merge 3 commits into
obra:devfrom
luochen211:fix/sdd-plan-scoped-artifacts
Open

luochen211 wants to merge 3 commits into
obra:devfrom
luochen211:fix/sdd-plan-scoped-artifacts

Conversation

@luochen211

@luochen211 luochen211 commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Current status (2026-09-26)

Superseded by the implementation now on dev: 9816a9c adds plan-scoped workspaces and 6692bd2 adds ownership markers for same-basename plans. The upstream workspace regression suite passes, including distinct plans, same-basename collisions, normalized paths, and external plans. Reapplying this older implementation would replace the current CLI contract, so no further code update is proposed here.


Summary

  • scope SDD workspace directories by plan identity when a plan is available
  • route task briefs, review packages, and progress-ledger instructions through the same plan-scoped workspace
  • add regression coverage for concurrent same-basename plans in one worktree

Why

Multiple SDD runs in the same working tree currently write briefs, reports, review packages, and progress state into the same flat .superpowers/sdd directory. That can overwrite artifacts and make compaction recovery resume the wrong plan.

Fixes #1936
Related #1816
Related #1888

Testing

  • tests/claude-code/test-sdd-workspace.sh
  • tests/claude-code/test-worktree-path-policy.sh
  • bash tests/shell-lint/test-lint-shell.sh
  • bash -n skills/subagent-driven-development/scripts/sdd-workspace skills/subagent-driven-development/scripts/task-brief skills/subagent-driven-development/scripts/review-package tests/claude-code/test-sdd-workspace.sh
  • git diff --check

Notes

  • tests/claude-code/run-skill-tests.sh --test test-sdd-workspace.sh and tests/claude-code/test-subagent-driven-development.sh did not run through their wrapper on this macOS host because GNU timeout is not installed; the targeted SDD workspace test was run directly and passed.

@obra obra added the skill:subagent-driven-development The subagent-driven-development skill label Sep 20, 2026
@obra obra added the pr-template-rules-ignored PR filed after template was added but didn't use it label Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-template-rules-ignored PR filed after template was added but didn't use it skill:subagent-driven-development The subagent-driven-development skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants