<feed xmlns='http://www.w3.org/2005/Atom'>
<title>superpowers.git/skills/subagent-driven-development/scripts/task-brief, branch fix/wave1-executor-helpers</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): refuse a symlink or special-file OUTFILE in task-brief</title>
<updated>2026-11-26T11:25:20+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-26T11:25:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=6af681b0a4ee384f91dca298b8e3da064ae44180'/>
<id>6af681b0a4ee384f91dca298b8e3da064ae44180</id>
<content type='text'>
#2611's staging writes the brief to a temporary file beside OUTFILE and
renames it into place. The rename replaced whatever OUTFILE was: a FIFO
or a symlink became a regular file, and as root a device such as
/dev/null would be replaced too. task-brief now exits 2 unless OUTFILE
is absent or a plain regular file, as it already did for a directory.
Nothing in the skills passes such an OUTFILE.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
#2611's staging writes the brief to a temporary file beside OUTFILE and
renames it into place. The rename replaced whatever OUTFILE was: a FIFO
or a symlink became a regular file, and as root a device such as
/dev/null would be replaced too. task-brief now exits 2 unless OUTFILE
is absent or a plain regular file, as it already did for a directory.
Nothing in the skills passes such an OUTFILE.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(review): drop task-brief's unread used_stderr flag</title>
<updated>2026-11-26T10:05:28+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-26T10:05:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=d87729db3addda6ad19a56c5f75d1ceeaa14e683'/>
<id>d87729db3addda6ad19a56c5f75d1ceeaa14e683</id>
<content type='text'>
stderr() set used_stderr so that awk's END could close the stderr pipe
only when something had been printed. Both readers went back to dev's
text with the not-found check, so the flag is set and never read. The
stderr() helper itself stays; awk still closes its pipes at exit, and
the order of stderr lines is unchanged.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
stderr() set used_stderr so that awk's END could close the stderr pipe
only when something had been printed. Both readers went back to dev's
text with the not-found check, so the flag is set and never read. The
stderr() helper itself stays; awk still closes its pipes at exit, and
the order of stderr lines is unchanged.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>docs(sdd): say the task brief opens with the plan header</title>
<updated>2026-11-26T09:38:58+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-26T09:38:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=815d0cf711cee9eb28b112be65dfa54055ff1347'/>
<id>815d0cf711cee9eb28b112be65dfa54055ff1347</id>
<content type='text'>
The brief now carries the plan header ahead of the task (#2493), but
SDD's Task brief step, the implementer prompt and task-brief's own
header comment still said it holds only the task's text. Nothing told
the implementer that part of the brief is shared context, or that its
Global Constraints bind the task; the #2493 thread asked for exactly
that in the implementer template.

All three now say so, in the review's F3 words. SDD's SKILL.md stays
under the 20,000-byte cap (19,928 bytes).

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The brief now carries the plan header ahead of the task (#2493), but
SDD's Task brief step, the implementer prompt and task-brief's own
header comment still said it holds only the task's text. Nothing told
the implementer that part of the brief is shared context, or that its
Global Constraints bind the task; the #2493 thread asked for exactly
that in the implementer template.

All three now say so, in the review's F3 words. SDD's SKILL.md stays
under the 20,000-byte cap (19,928 bytes).

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(executing-plans): run the plan's closing sections before the final review</title>
<updated>2026-11-26T09:38:09+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-26T09:38:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=0e42dbf98a4338db40ba676ae354bdb4897758ea'/>
<id>0e42dbf98a4338db40ba676ae354bdb4897758ea</id>
<content type='text'>
The final-task bound keeps a plan's trailing Self-Review and Execution
Handoff out of the last brief (#2406). It also keeps out a closing
"Final verification" or "Done criteria" section, and no step told the
executor to read one: Final Review went straight to the review package,
and task-brief's only trace was a stderr line that read like a
truncation error.

executing-plans' Final Review now opens by telling the executor to run
the checks in those sections first, and task-brief's message says the
plan from that heading on is in no brief. Both texts are the review's
F4. The message's apostrophe is written '\'' so the single-quoted awk
program still parses; pasted as is, it is a syntax error.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The final-task bound keeps a plan's trailing Self-Review and Execution
Handoff out of the last brief (#2406). It also keeps out a closing
"Final verification" or "Done criteria" section, and no step told the
executor to read one: Final Review went straight to the review package,
and task-brief's only trace was a stderr line that read like a
truncation error.

executing-plans' Final Review now opens by telling the executor to run
the checks in those sections first, and task-brief's message says the
plan from that heading on is in no brief. Both texts are the review's
F4. The message's apostrophe is written '\'' so the single-quoted awk
program still parses; pasted as is, it is a syntax error.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(sdd): label the plan header in task briefs and end it at the header's rule</title>
<updated>2026-11-26T09:36:16+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-26T09:36:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=e03bb9bbc1fb1186d0a1d5d6523c195ce908c3bf'/>
<id>e03bb9bbc1fb1186d0a1d5d6523c195ce908c3bf</id>
<content type='text'>
A brief opened with everything above the plan's first Task heading and
nothing to mark where that context ends and the task begins, yet the
task reviewer reads the whole brief as what was requested. In a plan
grouped by chunk or phase, every task also got Chunk 1's heading and
intro.

The header now sits under a label saying its Global Constraints bind
the task and the rest is context, and it ends at the header's last ---
rule, so chunk and phase intros stay out; a header with no rule gets
one. The comment above the scan describes this. The code is the
review's F1/F2 patch (#2493).

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A brief opened with everything above the plan's first Task heading and
nothing to mark where that context ends and the task begins, yet the
task reviewer reads the whole brief as what was requested. In a plan
grouped by chunk or phase, every task also got Chunk 1's heading and
intro.

The header now sits under a label saying its Global Constraints bind
the task and the rest is context, and it ends at the header's last ---
rule, so chunk and phase intros stay out; a header with no rule gets
one. The comment above the scan describes this. The code is the
review's F1/F2 patch (#2493).

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(sdd): return task-brief's ENVIRON, not-found and OUTFILE changes to dev's text where no issue requires a change</title>
<updated>2026-11-26T09:33:10+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-26T09:33:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=4ff57366737ba6ae3e47f191fcc59d4163734ade'/>
<id>4ff57366737ba6ae3e47f191fcc59d4163734ade</id>
<content type='text'>
task-brief keeps what its issues need: the brief is staged in a temp
file beside OUTFILE and moved into place only after a clean scan, so a
missing task or a failed rerun never empties an existing brief (#2611);
a deleted plan serves the brief already cached in its workspace
(#2630); and the two-pass CommonMark scan bounds the final task and
carries the plan header (#2406, #2493).

No cited issue asks for the rest, so it reads as on dev again:
- the task number passed through ENVIRON; -v n is back, and so is the
  comment on why only the plan path goes through ENVIRON;
- the not-found message and exit 3 moved into awk, and the close of the
  stderr pipe at the end of awk's END; the shell check is back, on the
  staged file, and stderr prints in the same order as before;
- the line count kept in a variable; the "wrote" line counts the
  committed file again;
- creating a missing OUTFILE directory: an explicit OUTFILE in a missing
  directory fails, as on dev;
- the /dev/null OUTFILE branch, which served only the task-id check
  that left task-done, with its two test cases.

Two cases now create OUTFILE's directory before the call.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
task-brief keeps what its issues need: the brief is staged in a temp
file beside OUTFILE and moved into place only after a clean scan, so a
missing task or a failed rerun never empties an existing brief (#2611);
a deleted plan serves the brief already cached in its workspace
(#2630); and the two-pass CommonMark scan bounds the final task and
carries the plan header (#2406, #2493).

No cited issue asks for the rest, so it reads as on dev again:
- the task number passed through ENVIRON; -v n is back, and so is the
  comment on why only the plan path goes through ENVIRON;
- the not-found message and exit 3 moved into awk, and the close of the
  stderr pipe at the end of awk's END; the shell check is back, on the
  staged file, and stderr prints in the same order as before;
- the line count kept in a variable; the "wrote" line counts the
  committed file again;
- creating a missing OUTFILE directory: an explicit OUTFILE in a missing
  directory fails, as on dev;
- the /dev/null OUTFILE branch, which served only the task-id check
  that left task-done, with its two test cases.

Two cases now create OUTFILE's directory before the call.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(sdd): harden workspace claims, task-brief boundaries, and review-package commits</title>
<updated>2026-11-24T22:55:51+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-11-24T21:59:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=f5b37ad90b2a0eb179c1b481d0b7e58780a8aba1'/>
<id>f5b37ad90b2a0eb179c1b481d0b7e58780a8aba1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #2606 from obra/fix/2429-sdd-repo-resolution</title>
<updated>2026-11-02T22:01:03+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@ritter.dev</email>
</author>
<published>2026-11-02T22:01:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=2f5dc3b335c05e8e3078c0be056c1001baa6b554'/>
<id>2f5dc3b335c05e8e3078c0be056c1001baa6b554</id>
<content type='text'>
fix(sdd): helpers act on the current directory's repo like git, with -C to override (#2429)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fix(sdd): helpers act on the current directory's repo like git, with -C to override (#2429)</pre>
</div>
</content>
</entry>
<entry>
<title>fix(sdd): task-brief refuses a brief an unclosed code fence would run to EOF</title>
<updated>2026-10-23T03:38:19+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-10-22T22:26:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=3735a50d5ab4c77ffa0ec7f0423d7414415c0aab'/>
<id>3735a50d5ab4c77ffa0ec7f0423d7414415c0aab</id>
<content type='text'>
task-brief ignores Task headings inside fenced code blocks by toggling a
flag on every ``` line. When a plan leaves a fence open (an edit deletes a
closing fence), the flag stays set for the rest of the file, every later
Task heading is invisible, and the requested task's brief runs to EOF.
The script then reported success: #2436 saw a 177-line task come back as
a 1159-line brief holding tasks 6 through 10, handed to an implementer as
its requirements.

The awk now notes whether a Task heading line appears inside the fence
that is still open at EOF. If one does while the requested task is being
captured, the task's end cannot be found, so task-brief deletes the
partial output and exits 4, naming the line where the fence opened. If
the open fence hides the requested heading itself, it names the fence
before the existing not-found error (exit 3), and suppresses the
"use the English word Task" hint, which would otherwise blame the
plan's English headings for what the fence did.

A fence left open that hides no Task heading changes nothing about the
brief, so it is still written, with a warning on stderr. Real plans do
this: in a corpus of 1,288 plans, refusing on any fence left open at EOF
blocked three correct briefs in two plans, each ending in a stray ``` that
hides no task. With this rule every brief in that corpus matches dev's.
An unclosed fence in a later task leaves an earlier task's brief alone.

The plan path reaches awk through the environment rather than -v, which
would interpret the backslashes of a Windows path as escapes. The fence
rule itself is unchanged, so this composes with #2304's CommonMark fence
tracking: a correct parser still cannot close a fence the author never
closed.

Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
task-brief ignores Task headings inside fenced code blocks by toggling a
flag on every ``` line. When a plan leaves a fence open (an edit deletes a
closing fence), the flag stays set for the rest of the file, every later
Task heading is invisible, and the requested task's brief runs to EOF.
The script then reported success: #2436 saw a 177-line task come back as
a 1159-line brief holding tasks 6 through 10, handed to an implementer as
its requirements.

The awk now notes whether a Task heading line appears inside the fence
that is still open at EOF. If one does while the requested task is being
captured, the task's end cannot be found, so task-brief deletes the
partial output and exits 4, naming the line where the fence opened. If
the open fence hides the requested heading itself, it names the fence
before the existing not-found error (exit 3), and suppresses the
"use the English word Task" hint, which would otherwise blame the
plan's English headings for what the fence did.

A fence left open that hides no Task heading changes nothing about the
brief, so it is still written, with a warning on stderr. Real plans do
this: in a corpus of 1,288 plans, refusing on any fence left open at EOF
blocked three correct briefs in two plans, each ending in a stray ``` that
hides no task. With this rule every brief in that corpus matches dev's.
An unclosed fence in a later task leaves an earlier task's brief alone.

The plan path reaches awk through the environment rather than -v, which
would interpret the backslashes of a Windows path as escapes. The fence
rule itself is unchanged, so this composes with #2304's CommonMark fence
tracking: a correct parser still cannot close a fence the author never
closed.

Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(sdd): task-brief says when a plan's task headings are not in English</title>
<updated>2026-10-23T03:38:19+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-10-22T22:32:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=750ba92008b88850f6ab321706c7f840bbfff503'/>
<id>750ba92008b88850f6ab321706c7f840bbfff503</id>
<content type='text'>
task-brief recognizes only the English word `Task` in a task heading.
writing-plans' template shows `### Task N:` but never says the word is
machine-read, so a model writing a plan in Spanish writes `## Tarea 1:`.
task-brief and task-start then report "task 1 not found in plan-es.md
(no heading matching 'Task 1')", which reads as "this plan has no task 1"
and sends the controller looking for a task that is on line 3 (#2496).

When a plan has no Task headings at all, task-brief now prints, before the
existing not-found line, that task headings must use the English word
"Task" whatever the plan's language, and lists up to five headings shaped
like tasks (`&lt;word&gt; &lt;id-with-a-digit&gt;`). A plan that has Task headings,
just not the requested one, still gets only the not-found line, so asking
for Task 9 of an eight-task plan stays quiet.

This deliberately does not accept other words. Plans commonly carry
`Phase 1`, `Chunk 2` and `Step 1` headings, and a word-agnostic rule
would turn them into tasks. Keeping the word fixed in the plans
themselves is a writing-plans wording change, which needs evals.

Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
task-brief recognizes only the English word `Task` in a task heading.
writing-plans' template shows `### Task N:` but never says the word is
machine-read, so a model writing a plan in Spanish writes `## Tarea 1:`.
task-brief and task-start then report "task 1 not found in plan-es.md
(no heading matching 'Task 1')", which reads as "this plan has no task 1"
and sends the controller looking for a task that is on line 3 (#2496).

When a plan has no Task headings at all, task-brief now prints, before the
existing not-found line, that task headings must use the English word
"Task" whatever the plan's language, and lists up to five headings shaped
like tasks (`&lt;word&gt; &lt;id-with-a-digit&gt;`). A plan that has Task headings,
just not the requested one, still gets only the not-found line, so asking
for Task 9 of an eight-task plan stays quiet.

This deliberately does not accept other words. Plans commonly carry
`Phase 1`, `Chunk 2` and `Step 1` headings, and a word-agnostic rule
would turn them into tasks. Keeping the word fixed in the plans
themselves is a writing-plans wording change, which needs evals.

Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
</pre>
</div>
</content>
</entry>
</feed>
