<feed xmlns='http://www.w3.org/2005/Atom'>
<title>superpowers.git/tests/claude-code, branch fix/2307-sdd-scripts-windows</title>
<subtitle>Agentic skills framework and development workflow
</subtitle>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/'/>
<entry>
<title>fix(sdd): print a Windows-readable workspace path (#2307)</title>
<updated>2026-10-22T23:26:01+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-10-22T22:21:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=bb3a5aa594ffd34259ecabd7392fd627fa2109a7'/>
<id>bb3a5aa594ffd34259ecabd7392fd627fa2109a7</id>
<content type='text'>
On Windows, sdd-workspace printed the workspace in MSYS form
(/c/Users/... or /tmp/...). Every helper path derives from that line:
task-brief's "wrote", review-package's diff path, executing-plans'
task-start "brief:". PowerShell resolves /c/Users/x as C:\c\Users\x, so
Test-Path and Get-Content on any of them failed. That is the shell an
agent gets from Claude Code's PowerShell tool and from Copilot CLI on
Windows. Reproduced on Windows 11 from PowerShell and from Claude Code
2.1.308's PowerShell tool.

When cygpath is present (Git Bash, MSYS2, Cygwin), print the path
through `cygpath -m`, which gives C:/Users/.... PowerShell, cmd and
Claude Code's Read tool all accept that form, and so does bash, so the
sibling scripts that build file names on top of it keep working.
Elsewhere the output is unchanged.

Only the printed line changes. The plan-path markers keep pwd -P's
spelling, so workspaces created before this change, including absolute
markers for out-of-repo plans, still match their plans. PR #2369
converted root and the plan path too, which would rewrite those
absolute markers and orphan existing workspaces for out-of-repo plans.

Tests: physical_path in both suites now spells paths the way the
scripts print them, and test-sdd-workspace adds a check that PowerShell
can open the printed workspace and brief paths. That check runs on
Windows and is a no-op elsewhere. On Windows the suites failed 10 and 1
assertions before the fix, and both pass after.

Co-authored-by: hzxxxx &lt;hhuihihiux@users.noreply.github.com&gt;
Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On Windows, sdd-workspace printed the workspace in MSYS form
(/c/Users/... or /tmp/...). Every helper path derives from that line:
task-brief's "wrote", review-package's diff path, executing-plans'
task-start "brief:". PowerShell resolves /c/Users/x as C:\c\Users\x, so
Test-Path and Get-Content on any of them failed. That is the shell an
agent gets from Claude Code's PowerShell tool and from Copilot CLI on
Windows. Reproduced on Windows 11 from PowerShell and from Claude Code
2.1.308's PowerShell tool.

When cygpath is present (Git Bash, MSYS2, Cygwin), print the path
through `cygpath -m`, which gives C:/Users/.... PowerShell, cmd and
Claude Code's Read tool all accept that form, and so does bash, so the
sibling scripts that build file names on top of it keep working.
Elsewhere the output is unchanged.

Only the printed line changes. The plan-path markers keep pwd -P's
spelling, so workspaces created before this change, including absolute
markers for out-of-repo plans, still match their plans. PR #2369
converted root and the plan path too, which would rewrite those
absolute markers and orphan existing workspaces for out-of-repo plans.

Tests: physical_path in both suites now spells paths the way the
scripts print them, and test-sdd-workspace adds a check that PowerShell
can open the printed workspace and brief paths. That check runs on
Windows and is a no-op elsewhere. On Windows the suites failed 10 and 1
assertions before the fix, and both pass after.

Co-authored-by: hzxxxx &lt;hhuihihiux@users.noreply.github.com&gt;
Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
</pre>
</div>
</content>
</entry>
<entry>
<title>test(executing-plans): compare the brief path in the scripts' own spelling on Git Bash</title>
<updated>2026-09-27T02:30:38+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@primeradiant.com</email>
</author>
<published>2026-09-27T02:30:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=49b1db53d86d358a0a60446ccecba81c7595f7d0'/>
<id>49b1db53d86d358a0a60446ccecba81c7595f7d0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test(sdd-workspace): compare physical paths so the suite passes on Git Bash</title>
<updated>2026-09-27T02:28:31+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@primeradiant.com</email>
</author>
<published>2026-09-27T02:28:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=c88ba76bdbdb3ebe5c29401854e9129509b2866d'/>
<id>c88ba76bdbdb3ebe5c29401854e9129509b2866d</id>
<content type='text'>
On Windows, git rev-parse --show-toplevel prints C:/Users/... while
the script (and pwd) print /tmp/..., so nine assertions compared two
spellings of the same directory and failed. The script itself was
correct. Normalize the expected paths the same way the script's output
is produced.

From #2149 by @t0domanh.

Co-authored-by: t0domanh &lt;3890425+t0domanh@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On Windows, git rev-parse --show-toplevel prints C:/Users/... while
the script (and pwd) print /tmp/..., so nine assertions compared two
spellings of the same directory and failed. The script itself was
correct. Normalize the expected paths the same way the script's output
is produced.

From #2149 by @t0domanh.

Co-authored-by: t0domanh &lt;3890425+t0domanh@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sdd-workspace: leave an existing .superpowers/sdd/.gitignore alone (#2399)</title>
<updated>2026-09-26T23:02:36+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@primeradiant.com</email>
</author>
<published>2026-09-26T23:02:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=19e54c094bb69e29fabd3bccb64777d3d1d37e8b'/>
<id>19e54c094bb69e29fabd3bccb64777d3d1d37e8b</id>
<content type='text'>
Based on #2161. Also quotes the empty CDPATH so shellcheck passes (SC1007).

Co-authored-by: aruizcu1989 &lt;192807317+aruizcu1989@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Based on #2161. Also quotes the empty CDPATH so shellcheck passes (SC1007).

Co-authored-by: aruizcu1989 &lt;192807317+aruizcu1989@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>fix(executing-plans): task-done no longer aborts when a passing test prints nothing (#2388)</title>
<updated>2026-09-26T19:36:39+00:00</updated>
<author>
<name>ada-sen</name>
<email>ada.sen@primeradiant.com</email>
</author>
<published>2026-09-26T19:36:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=907ad21ac21d0159ac3625c67537634bcb928c24'/>
<id>907ad21ac21d0159ac3625c67537634bcb928c24</id>
<content type='text'>
Under `set -euo pipefail`, task-done extracted the ledger's test-result
field with:

    last=$(grep -v '^[[:space:]]*$' "$log" | tail -n 1)

When the test command passes but the log is empty or blank-only, `grep -v`
matches no lines and exits 1; pipefail propagates that through the
pipeline, and set -e aborts the assignment before the ledger line is
written. A passing task is then silently not recorded: exit 1, no stderr,
no ledger entry — indistinguishable from the failure path the guard exists
to produce.

Make the no-match case non-fatal, falling back to a literal placeholder for
the ledger field:

    last=$(grep -v '^[[:space:]]*$' "$log" | tail -n 1) || last="(no output)"

The failure guard above this line (recording nothing when the test command
itself exits non-zero) is untouched.

Fixes #2385.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Under `set -euo pipefail`, task-done extracted the ledger's test-result
field with:

    last=$(grep -v '^[[:space:]]*$' "$log" | tail -n 1)

When the test command passes but the log is empty or blank-only, `grep -v`
matches no lines and exits 1; pipefail propagates that through the
pipeline, and set -e aborts the assignment before the ledger line is
written. A passing task is then silently not recorded: exit 1, no stderr,
no ledger entry — indistinguishable from the failure path the guard exists
to produce.

Make the no-match case non-fatal, falling back to a literal placeholder for
the ledger field:

    last=$(grep -v '^[[:space:]]*$' "$log" | tail -n 1) || last="(no output)"

The failure guard above this line (recording nothing when the test command
itself exits non-zero) is untouched.

Fixes #2385.</pre>
</div>
</content>
</entry>
<entry>
<title>Rebuild executing-plans as a first-class inline execution mode</title>
<updated>2026-09-18T00:14:38+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@primeradiant.com</email>
</author>
<published>2026-09-17T22:51:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=2b89c4c3f375ab479c3bc0644a76fea78a0f44bb'/>
<id>2b89c4c3f375ab479c3bc0644a76fea78a0f44bb</id>
<content type='text'>
A cheaper execution mode alongside subagent-driven development: the
session implements every task itself under the same workspace, ledger
and stopping rules, with one fresh whole-branch review on the most
capable model at the end. Helper scripts task-start/task-done keep the
ledger and test log honest; the final fix pass re-grades findings and
fixes Critical/Important under TDD. writing-plans' handoff, SDD's
when-to-use text and two README lines change to match.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A cheaper execution mode alongside subagent-driven development: the
session implements every task itself under the same workspace, ledger
and stopping rules, with one fresh whole-branch review on the most
capable model at the end. Helper scripts task-start/task-done keep the
ledger and test log honest; the final fix pass re-grades findings and
fixes Critical/Important under TDD. writing-plans' handoff, SDD's
when-to-use text and two README lines change to match.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(sdd): ownership markers stop same-basename plans sharing a workspace</title>
<updated>2026-09-17T22:51:11+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-08-13T00:35:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=6692bd289f39931f37117af59ea32026fcebf94a'/>
<id>6692bd289f39931f37117af59ea32026fcebf94a</id>
<content type='text'>
sdd-workspace slugged workspaces by basename alone, so docs/alpha/plan.md
and docs/beta/plan.md resolved to one directory and task-brief silently
overwrote the other plan's brief — the single gitignored source of task
requirements, unrecoverable once clobbered.

Each workspace now records its owning plan in a plan-path marker
(repo-relative in-repo, absolute outside). Lookup keeps basename slugs
and existing behavior for the common case: a markerless workspace is
adopted in place (no migration break for in-flight plans), a marker
naming this plan is a match, and a marker naming a different plan
disambiguates with the plan's parent-directory name, then a counter.
Plan paths are normalized (CDPATH-guarded physical cd) so relative,
absolute, and ../ spellings of one plan share one workspace.

task-brief and review-package delegate to sdd-workspace and need no
changes. SKILL.md's workspace bullet no longer promises the exact
&lt;plan-basename&gt; path, since disambiguated workspaces differ.

Reported by @CRGDan; reproduction and test groundwork by @crisnahine
in PR #2120.

Fixes #2045
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
sdd-workspace slugged workspaces by basename alone, so docs/alpha/plan.md
and docs/beta/plan.md resolved to one directory and task-brief silently
overwrote the other plan's brief — the single gitignored source of task
requirements, unrecoverable once clobbered.

Each workspace now records its owning plan in a plan-path marker
(repo-relative in-repo, absolute outside). Lookup keeps basename slugs
and existing behavior for the common case: a markerless workspace is
adopted in place (no migration break for in-flight plans), a marker
naming this plan is a match, and a marker naming a different plan
disambiguates with the plan's parent-directory name, then a counter.
Plan paths are normalized (CDPATH-guarded physical cd) so relative,
absolute, and ../ spellings of one plan share one workspace.

task-brief and review-package delegate to sdd-workspace and need no
changes. SKILL.md's workspace bullet no longer promises the exact
&lt;plan-basename&gt; path, since disambiguated workspaces differ.

Reported by @CRGDan; reproduction and test groundwork by @crisnahine
in PR #2120.

Fixes #2045
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #2134 from obra/fix/sdd-helpers-no-exec-bit</title>
<updated>2026-09-17T22:48:31+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@ritter.dev</email>
</author>
<published>2026-09-17T22:48:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=a2b2d1d5efdc9c24c2faf5577077be152be67cdd'/>
<id>a2b2d1d5efdc9c24c2faf5577077be152be67cdd</id>
<content type='text'>
fix(sdd): invoke sdd-workspace via bash so helpers survive stripped exec bits</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fix(sdd): invoke sdd-workspace via bash so helpers survive stripped exec bits</pre>
</div>
</content>
</entry>
<entry>
<title>fix(sdd): reject empty or non-descendant BASE..HEAD ranges in review-package</title>
<updated>2026-08-13T00:29:29+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-08-13T00:29:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=99f9f00869e3e774e9abe9a29ccfccb8957ec5da'/>
<id>99f9f00869e3e774e9abe9a29ccfccb8957ec5da</id>
<content type='text'>
When an SDD implementer commits to the wrong branch (#2050), the
BASE..HEAD range handed to review-package is either empty or not rooted
at BASE. Both cases previously produced a review package silently —
an empty one lets the reviewer approve "clean" work that isn't there.

Add two mechanical guards after BASE/HEAD validation, exiting 3 (vs 2
for usage errors) so callers can distinguish range problems:

- git merge-base --is-ancestor BASE HEAD, else "HEAD is not a
  descendant of BASE"
- git rev-list --count BASE..HEAD &gt; 0, else "empty commit range"

Guard shape credits the analysis in closed PR #2082 by @stantheman0128.

Fixes #2050
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When an SDD implementer commits to the wrong branch (#2050), the
BASE..HEAD range handed to review-package is either empty or not rooted
at BASE. Both cases previously produced a review package silently —
an empty one lets the reviewer approve "clean" work that isn't there.

Add two mechanical guards after BASE/HEAD validation, exiting 3 (vs 2
for usage errors) so callers can distinguish range problems:

- git merge-base --is-ancestor BASE HEAD, else "HEAD is not a
  descendant of BASE"
- git rev-list --count BASE..HEAD &gt; 0, else "empty commit range"

Guard shape credits the analysis in closed PR #2082 by @stantheman0128.

Fixes #2050
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(sdd): invoke sdd-workspace via bash so helpers survive stripped exec bits</title>
<updated>2026-08-13T00:27:52+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-08-13T00:27:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=0be49879b1c51a479d2013a14fe42ed9bd10ce32'/>
<id>0be49879b1c51a479d2013a14fe42ed9bd10ce32</id>
<content type='text'>
Codex marketplace users hit 'Permission denied' running SDD helpers:
some extractors (Python zipfile) discard Unix mode attributes when
unpacking the package, so task-brief's and review-package's direct exec
of their sibling sdd-workspace fails. Our packaging preserves 0755
(git archive | tar -xpf, asserted by the existing packaging test) — the
bits are lost on the consumer side, which no packaging change can reach.
Invoking the sibling via "${BASH:-bash}" makes the exec bit irrelevant.

TDD: new regression case copies the helpers, chmod -x, runs task-brief
via bash — RED with the reported rc=126 Permission denied, GREEN after.

Reported in #2040 (michaelholcomb-creator). Fixes #2040.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Codex marketplace users hit 'Permission denied' running SDD helpers:
some extractors (Python zipfile) discard Unix mode attributes when
unpacking the package, so task-brief's and review-package's direct exec
of their sibling sdd-workspace fails. Our packaging preserves 0755
(git archive | tar -xpf, asserted by the existing packaging test) — the
bits are lost on the consumer side, which no packaging change can reach.
Invoking the sibling via "${BASH:-bash}" makes the exec bit irrelevant.

TDD: new regression case copies the helpers, chmod -x, runs task-brief
via bash — RED with the reported rc=126 Permission denied, GREEN after.

Reported in #2040 (michaelholcomb-creator). Fixes #2040.
</pre>
</div>
</content>
</entry>
</feed>
