Repository navigation
Conversation
arittr
force-pushed
the
fix/wave1-executor-helpers
branch
4 times, most recently
from
November 24, 2026 22:00
737007b to
d4140de
Compare
…and record exit status in ledger
arittr
force-pushed
the
fix/wave1-executor-helpers
branch
from
November 24, 2026 22:58
d4140de to
d321f4b
Compare
danishkumar26
left a comment
There was a problem hiding this comment.
Code review from Hermes Agent (danishkumar26). No blocking findings.
What this change does:
- task-brief: two-pass awk scan buffers the plan preamble, strips the controller-only "> For agentic workers:" blockquote, captures only the requested task, and bounds only the final task at equal/shallower non-Task headings — intermediate tasks no longer swallow trailing plan sections (#2406), and final-task lookup misses no longer truncate briefs to 0 bytes (#2611). Plan path and task ID flow through ENVIRON, so backslashes in paths are not mangled (#2459). Unclosed fences exit 4; missing task exits 3; serves a cached brief when an earlier task deleted the plan file (#2630).
- sdd-workspace: claims a workspace dir with an atomic mkdir(".lock") mutex, stale-PID and empty-lock recovery, worktree/submodule-aware plan_id, reserved-name slugs (.lock, .gitignore, .plan-path). A blocked or unwritable .superpowers fails fast instead of spinning (#2619); deleted plans still resolve via plan-path markers.
- task-start/task-done/review-package: BASE/HEAD validated as commits (${X}^{commit}); review range guarded with merge-base --is-ancestor and a non-empty commit count (exit 3 for range errors, exit 2 for bad commits); git log --format=medium so commit bodies reach reviewers (#2298); test output staged atomically to task-N-tests.log, failures to task-N-tests.failed.log, ledger appended only on success; task IDs rejected if empty or containing / or ..; scripts invoked via ${BASH:-bash} so zip-stripped exec bits do not break them (#2040, #2642).
- .gitattributes enforces LF line endings for skills//scripts/.
Verified by running (this checkout):
- bash tests/claude-code/test-sdd-workspace.sh -> all checks PASS (20-way concurrent colliding claims, stale-PID lock recovery, CRLF plans, nested 4-backtick/tilde fences, deleted plans and removed parent dirs, reserved slugs, absorbed submodules, blocked .superpowers, directory OUTFILE rejection)
- bash tests/claude-code/test-executing-plans-scripts.sh -> all checks PASS (stripped exec bits on sibling copies, silent commands, nonexistent/removed task IDs, failed re-runs preserving passing logs)
- bash tests/sdd-helper-paths/test-sdd-helper-paths.sh -> PASS
- bash -n on all five changed shell scripts -> clean
- git diff --check -> clean
Not checked: shellcheck lint (shellcheck not installed on this box).
Verdict: Ship.
… rule to dev's text where no issue requires a change task-done keeps what its issues need: BASE is peeled to a commit (#2620), sdd-workspace runs through bash (#2642), and the ledger records "exit 0, log: task-<N>-tests.log", or "exit 0 (no output), ..." when the command printed nothing, in place of a scraped last line (#2342). No cited issue asks for the rest, so it reads as on dev again: - the task-id guard and the validation through task-brief (#2342 never mentions task ids), with its two test cases and the deleted-plan assertion that pinned it; - the .failed.log staging with its EXIT trap and temp log, the stderr warning for a silent pass and its aside in SKILL.md, the ledger header read from the plan-path marker, and the repair of an unterminated ledger line, with the five test cases that pinned them; - the skills/*/scripts/* LF rule in .gitattributes, with its check-attr case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s text where no issue requires a change sdd-workspace keeps what #2619 and #2630 need: the writable-directory guard, the mkdir claim lock, the bounded claim loop, an empty PLAN_FILE refused, a missing plan resolved lexically to the workspace that already claimed it, and a .lock slug, in any case, kept off the lock directory. review-package keeps its deleted-plan resolution (#2630), its ^{commit} checks (#2620) and commit bodies (#2298). Neither issue needs a new plan identity, so dev's rule is back: the plan-path marker is repo-relative in the repo, absolute outside it. These read as on dev again, because no cited issue asks for them: - the worktree-prefix plan_id loop, which merged one plan's workspaces across worktrees and left in-flight workspaces behind at upgrade; - the .markdown slug, the .gitignore and .plan-path reserved slugs, and the "root" parent fallback; the slug comes from basename again; - the comments the rewrite deleted ("Physical path...", "Invoke via bash...", "Normalize the plan path...", and the ownership rule now above claim_candidate), and the reordered usage check; - review-package reusing the deleted-plan lookup's directory; - the test fixture's git_id refactor. The three cross-checkout identity cases go with the loop, the absorbed-submodule case goes because it passes on dev and no issue asks for it, and the reserved-slug case keeps .lock.md and .LOCK.md only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…to dev's text where no issue requires a change 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 <noreply@anthropic.com>
…nd deleted-plan rules The rewrite deleted the header that says why the workspace is per plan, why it is not under .git/, how plan-path markers and legacy adoption work, and why -C exists (#1799), along with the comments on the create-only .gitignore and the Windows path print. Those choices still hold, and nothing else in the file records them. They read as on dev again, with two sentences added to the marker paragraph so it describes the script as it now is: the counter stops at 100 and claims run under a mkdir lock whose dead holder is reclaimed (#2619), and a plan file that no longer exists resolves to the workspace whose marker already names it (#2630). Only the two lines those sentences join are rewrapped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er's rule 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 <noreply@anthropic.com>
…l review 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 <noreply@anthropic.com>
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 <noreply@anthropic.com>
…it log review-package now lists commits with their bodies (git log --format=medium, #2298), but the fallback for a harness without bash still told the controller to run git log --oneline, which shows subjects only. It now says git log, whose default format is the one review-package uses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…plan cases Two #2630 cases ran task-brief on a deleted plan without capturing its stderr, so every run printed "task-brief: warning: deleted-plan.md not found; serving cached brief" twice between PASS lines. Both now send stderr to a file and check that the warning is there, as the review's F16 proposed, so the suite's output is clean and a lost warning fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 <noreply@anthropic.com>
The usage check had gained `|| [ -z "$1" ]` so that an empty PLAN_FILE is refused now that the relaxed existence check lets a missing plan through (#2630). The slug check three lines later already refuses it: basename makes an empty or "." slug of an empty path, and both fail that check. `sdd-workspace ""` still exits 2 ("cannot derive a workspace name from: ") and creates nothing, with or without -C. No cited issue needs the extra condition, so the line reads as on dev again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#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 <noreply@anthropic.com>
…nnot make one Git Bash copies a file for ln -s unless native symlinks are enabled, and a shell may lack mkfifo. Each case now probes for the thing it needs and prints a [SKIP] line when it cannot be made, so the file still runs on Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Who is submitting this PR? (required)
superpowers,dealerboard,toolsmith@arittr)What your human partner asked you to do, in their words:
Human-authored summary (required, under 200 words)
Stacked on #2736, this fixes a cluster of bugs in the bash/awk helper scripts shared by
subagent-driven-developmentandexecuting-plansthat surfaced once people started running real multi-task plans through them.task-briefwas dropping everything aboveTask 1(so implementers never saw the plan'sGoalorGlobal Constraints, while naive fixes leaked the controller's own dispatch blockquote), letting the last task swallow trailing## Execution Handoffsections, and truncating existing briefs to 0 bytes on lookup misses. If an earlier task deleted or moved the plan file,sdd-workspace,task-brief, andreview-packageall broke with exit2.On top of that,
sdd-workspacespun forever if.superpowerswas blocked by a file and raced when two plans shared a basename,review-packageused--oneline(hiding commit bodies from reviewers), package zip extractors stripping+xbroketask-start/task-done, andtask-donescraped the last stdout line instead of recording real exit status. This fixes those helper contracts together with unit tests.What problem are you trying to solve?
Fixes #2298, fixes #2342, fixes #2493, fixes #2611, fixes #2619, fixes #2620, fixes #2630, fixes #2642.
Addresses part of #2406.
task-brief(used by both executors throughtask-startand the SDD dispatch):Task Nblock.writing-planstells the author that every task's requirements include## Global Constraints, but neither that section nor## Review Focusreached the implementer or the inline executor (task-brief / dispatch: the plan's Global Constraints and Review Focus never reach the implementer, although the plan template says they apply to every task #2493).## Self-Reviewand## Execution Handoffreached the last implementer as requirements (task-brief: the last task of a section absorbs the following non-Task heading and its prose #2406). task-brief: the last task of a section absorbs the following non-Task heading and its prose #2406 also covers a non-Task heading between two tasks (its example is# Wave 2); such a section still joins the task before it after this PR.task-N-brief.md, and a rerun after the plan lost the task emptied the brief that was already there (task-brief: a task that isn't found leaves an empty task-N-brief.md behind (exit 3) #2611).sdd-workspace:owns()treated every failure (amkdirerror, an unwritable parent) as "another plan owns this slot", and the counter loop had no bound. With.superpowersblocked by a regular file the script never returned (sdd-workspace: owns() cannot distinguish 'unusable' from 'foreign-owned' — infinite slug loop; marker claim is check-then-create #2619).git rms the plan,review-packagefor that task, the final review and the final re-review all failed withno such plan file(subagent-driven-development: review-package and sdd-workspace fail once a plan task deletes the plan file #2630).review-package:git log --oneline, so the task reviewer saw subjects only and reported a deviation the implementer had disclosed in a commit body as undisclosed (subagent-driven-development: review-package renders commit subjects only, so the task reviewer reports commit-body disclosures as undisclosed changes #2298).git rev-parse --verify, which accepts a tree or blob; the range guard then misdiagnosed the input with exit 3 (review-package: BASE/HEAD guards accept tree/blob revisions — descendant guard misdiagnoses with exit 3 #2620).task-donehad the same BASE check.executing-plans/scripts/task-startandtask-done:task-briefandsdd-workspaceby direct exec, so they failed with exit 126 when a package extractor stripped the execute bits (executing-plans/scripts/task-start and task-done fail without +x (#2040) #2642).task-doneledgered the last non-blank output line as the test result. Undernode --testthat line is# duration_ms …(executing-plans: task-done ledgers the last log line as the test result, sonode --testruns record# duration_ms …instead of pass/fail #2342).What does this PR change?
skills/subagent-driven-development/scripts/task-brief:---rule when it has one, without the> **For agentic workers:**blockquote, under a three-line blockquote label ("From the plan header. Its Global Constraints bind this task. The rest is context for the whole plan, not work for this task: your requirements are the Task N section after the line of dashes."), and followed by a---line. A plan with nothing above Task 1 gets no header (task-brief / dispatch: the plan's Global Constraints and Review Focus never reach the implementer, although the plan template says they apply to every task #2493).dev. A same-level subsection inside the final task also ends that brief (task-brief: the last task of a section absorbs the following non-Task heading and its prose #2406, partly).~~~, up to three spaces of indent, closed by the same character at least as long, and a backtick fence whose info string contains a backtick is not a fence. A trailing CR is stripped from each line, so a CRLF plan gives an LF brief. The unclosed-fence messages and exit 4 remain./dev/null), which the rename would otherwise replace;devwrote straight into those. Nothing in the skills passes such an OUTFILE (task-brief: a task that isn't found leaves an empty task-N-brief.md behind (exit 3) #2611).sdd-workspacefor the plan's claimed workspace. If a non-emptytask-N-brief.mdis there, it serves that brief (copied to OUTFILE when one is given) with a warning on stderr; otherwise it exits 2. A task that was never briefed before the plan was deleted still cannot be briefed (subagent-driven-development: review-package and sdd-workspace fail once a plan task deletes the plan file #2630).skills/subagent-driven-development/scripts/sdd-workspace:.superpowers/sddcannot be created or is not a writable directory. A candidate that exists but is not a directory is skipped, and the candidates stop at<slug>-<parent>-100, after which the script exits 2 (sdd-workspace: owns() cannot distinguish 'unusable' from 'foreign-owned' — infinite slug loop; marker claim is check-then-create #2619).mkdirlock at.superpowers/sdd/.lockthat holds the claimant's PID. A lock whose PID is no longer running is moved aside and removed; a lock with no PID file is reclaimed after 50 polls; a claimant gives up with exit 2 after 1,000 tries. A plan whose slug is.lockor.lock.*in any case getsplan-in place of its leading dot (.LOCK.mdbecomesplan-LOCK), so it cannot claim the lock directory. The create-only.gitignorewrite moves under the lock (sdd-workspace: owns() cannot distinguish 'unusable' from 'foreign-owned' — infinite slug loop; marker claim is check-then-create #2619)..and..segments are collapsed and it is resolved against its deepest existing ancestor, so a deleted plan yields the marker value it was claimed under. For a missing file the script prints the candidate workspace whose marker names the plan, or exits 2 when none does; it never claims a new workspace (subagent-driven-development: review-package and sdd-workspace fail once a plan task deletes the plan file #2630).dev's. The header comment adds the counter's bound of 100 and two sentences, one on the lock and one on deleted plans.skills/subagent-driven-development/scripts/review-package: drops the plan-file check and resolves a missing plan throughsdd-workspacebefore the BASE and HEAD checks, so an unclaimed missing plan exits 2 (subagent-driven-development: review-package and sdd-workspace fail once a plan task deletes the plan file #2630). BASE and HEAD are verified as^{commit}, so a tree or blob exits 2 withbad BASEorbad HEAD(review-package: BASE/HEAD guards accept tree/blob revisions — descendant guard misdiagnoses with exit 3 #2620). Commits are listed withgit log --format=medium, which prints each commit's body (subagent-driven-development: review-package renders commit subjects only, so the task reviewer reports commit-body disclosures as undisclosed changes #2298).skills/executing-plans/scripts/task-startandtask-done: runtask-briefandsdd-workspacethrough"${BASH:-bash}"(executing-plans/scripts/task-start and task-done fail without +x (#2040) #2642).task-doneverifies BASE as^{commit}(review-package: BASE/HEAD guards accept tree/blob revisions — descendant guard misdiagnoses with exit 3 #2620) and, for a passing run, ledgersexit 0, log: task-<N>-tests.log, orexit 0 (no output), log: task-<N>-tests.logwhen the command printed nothing, in place of the last output line (executing-plans: task-done ledgers the last log line as the test result, sonode --testruns record# duration_ms …instead of pass/fail #2342).skills/executing-plans/SKILL.md:bashbefore the four helper invocations (sdd-workspace,task-start,task-done,review-package) (executing-plans/scripts/task-start and task-done fail without +x (#2040) #2642). The completion checklist and the ledger template name whattask-donewrites (executing-plans: task-done ledgers the last log line as the test result, sonode --testruns record# duration_ms …instead of pass/fail #2342).## Final Reviewopens with a paragraph that tells the executor to read the plan sections after the last task's brief, run every check they name against itsExpected:line before building the review package, and treat notes about writing the plan (self-review, execution handoff) as not steps.subagent-driven-development/references/final-review.mdgets no matching paragraph.skills/subagent-driven-development/SKILL.md: the task-brief bullet says the script writes the plan header (whose Global Constraints bind every task) and the task's full text. The no-bash fallback for the review package listsgit login place ofgit log --oneline(subagent-driven-development: review-package renders commit subjects only, so the task reviewer reports commit-body disclosures as undisclosed changes #2298). The file is 19,922 bytes, under the 20,000-byte limit.skills/subagent-driven-development/implementer-prompt.md: says the brief opens with the plan header, whose Global Constraints bind the implementer, that the rest of the header is background, and that the task is the Task section after the line of dashes.tests/claude-code/test-sdd-workspace.sh: 36 new cases (103 in all): the labelled header, the blockquote strip, plans with no header, a chunked plan whose header ends at its---rule, the final-task bound and its stderr message, fence rules and a CRLF plan, an unclosed fence after a same-level subheading (exit 4), no brief created on exit 3, an existing brief kept on exit 3 and exit 4, the cached brief after the plan is deleted (default and explicit OUTFILE; exit 2 with no cached brief), staging beside OUTFILE, dash-prefixed and directory OUTFILEs, FIFO and symlink OUTFILEs (each skipped where the shell cannot make one), a blocked.superpowers, 60 concurrent claims for three plans (two of them namedplan.md), a backup copy of a workspace, a stale lock, the 100-candidate bound, a deleted plan end to end acrosssdd-workspace,task-briefandreview-packageafter its parent directory is removed, a hidden.plan.md,.lock.mdand.LOCK.mdslugs, tree and blob revisions inreview-package, and commit bodies in the package.tests/claude-code/test-executing-plans-scripts.sh: the two expected ledger lines change to the new result field, and four cases are added (24 in all): a tree as BASE,task-startandtask-donewith execute bits stripped, andtask-doneafter the plan is deleted.Is this change appropriate for the core library?
Yes — these are the bundled bash/awk helper scripts for
subagent-driven-developmentandexecuting-plans, using only POSIX/bash/git/awk primitives with zero third-party dependencies.What alternatives did you consider?
##heading where two fence parsers both agree the line is outside a fence. On the 17 plans this repository once kept underdocs/superpowers/plans/, that trims the mid-plan leaks and truncates nothing, but a non-final task with its own same-level subheading would lose that subsection. This PR bounds only the final task, and task-brief: the last task of a section absorbs the following non-Task heading and its prose #2406 stays partly open.owns()and a cap of 32): it would also fix sdd-workspace: owns() cannot distinguish 'unusable' from 'foreign-owned' — infinite slug loop; marker claim is check-then-create #2619 and is smaller. This PR keeps themkdirlock its first version had..markdownstripped from slugs), from this PR's first version: returned todev's rule. Neither sdd-workspace: owns() cannot distinguish 'unusable' from 'foreign-owned' — infinite slug loop; marker claim is check-then-create #2619 nor subagent-driven-development: review-package and sdd-workspace fail once a plan task deletes the plan file #2630 needs it, and it would leave in-flight workspaces whose plan sits in another worktree with no matching marker.skills/*/scripts/*in.gitattributes, task-ID validation intask-done, a separatetask-<N>-tests.failed.log, the ledger header taken from the plan-path marker, repair of a ledger with no trailing newline, a stderr warning on a silent pass, creating OUTFILE's directory, a/dev/nullOUTFILE branch, and reserving.gitignoreand.plan-pathslugs. No cited issue asks for any of them, so they returned todev's text.%h %s%n%w(0,4,4)%b): not taken.--format=mediumalso adds Author and Date lines and full hashes; both show commit bodies.devdoes: not taken.dev's own tail reads OUTFILE's size and line count, so with a device or a pipe it reports a found task as missing (exit 3), and on Linux/dev/stdoutredirected to a file hangs.task-briefrefuses such an OUTFILE instead.Does this PR contain multiple unrelated changes?
Partly. Every change is in the helper scripts the two plan executors share, or in the skill text that describes what those scripts print. Some changes depend on each other: the #2630 fix runs through
sdd-workspace,task-brief,review-packageandtask-done; the #2493 header and the #2406 bound sharetask-brief's two-pass scan; and the cached-brief path for #2630 uses the #2611 staging. Others are independent and a few lines each: the commit format (#2298), the^{commit}checks (#2620), thebashinvocations (#2642) and the ledger result (#2342). It is stacked on #2736 because both changeskills/executing-plans/SKILL.mdandskills/subagent-driven-development/SKILL.md.Existing PRs
I have reviewed all open AND closed PRs for duplicates or prior art
Related PRs: fix(sdd): include commit bodies in review packages #2303, task-brief: track fence character and length so fenced examples cannot end a task early #2304, fix(sdd): stop task-brief leaking trailing plan sections #2359, fix(sdd): sdd-workspace fails fast on unusable workspaces, never spins #2621, fix(sdd): review-package rejects non-commit revisions with a clean error #2622, fix(executing-plans): invoke task-start and task-done sdd helpers via bash (#2642) #2652, fix(executing-plans): ledger the test summary, not the trailing duration #2348, fix(executing-plans): record node --test pass/fail summary, not # duration_ms (Fixes #2342) #2679, fix(executing-plans): task-done no longer aborts when a passing test prints nothing #2388, fix: default all text files to LF via .gitattributes #2163 (stacked on fix(worktrees): guard worktree creation, branch finishing, and executor workspace lifecycle #2736)
fix(sdd): include commit bodies in review packages #2303 (open) lists commits with the subagent-driven-development: review-package renders commit subjects only, so the task reviewer reports commit-body disclosures as undisclosed changes #2298 reporter's
%h %s%n%w(0,4,4)%bformat; this PR uses--format=mediumand also changes SDD's no-bash fallback.task-brief: track fence character and length so fenced examples cannot end a task early #2304 (open) tracks fence character and length so fenced examples cannot end a task early; this PR's
task-briefapplies the same fence rule inside its two-pass scan and adds the final-task bound and the plan header.fix(sdd): stop task-brief leaking trailing plan sections #2359 (open) ends every task at an equal-or-shallower non-Task heading when two fence parsers agree; this PR bounds only the final task (alternative 1).
fix(sdd): sdd-workspace fails fast on unusable workspaces, never spins #2621 (open) fixes sdd-workspace: owns() cannot distinguish 'unusable' from 'foreign-owned' — infinite slug loop; marker claim is check-then-create #2619 with a noclobber marker write and a three-way
owns(); this PR uses amkdirlock with stale-PID recovery and a writable-directory check (alternative 2).fix(sdd): review-package rejects non-commit revisions with a clean error #2622 (open) adds the same
^{commit}checks toreview-packagewith a "(not a commit)" message; this PR keepsbad BASE:/bad HEAD:, since git prints the cause on the line above, and adds the BASE check totask-done.fix(executing-plans): invoke task-start and task-done sdd helpers via bash (#2642) #2652 (open) makes the same
"${BASH:-bash}"change totask-startandtask-done; this PR also addsbashto the four helper invocations inexecuting-plans/SKILL.md.fix(executing-plans): ledger the test summary, not the trailing duration #2348 (open) and fix(executing-plans): record node --test pass/fail summary, not # duration_ms (Fixes #2342) #2679 (open, against
main) extract a pass/fail summary from the test output for executing-plans: task-done ledgers the last log line as the test result, sonode --testruns record# duration_ms …instead of pass/fail #2342; this PR records the exit status and log filename and parses no output.fix(executing-plans): task-done no longer aborts when a passing test prints nothing #2388 (merged) stopped
task-doneaborting when a passing command prints nothing; this PR keeps that case and records it asexit 0 (no output).fix: default all text files to LF via .gitattributes #2163 (open) sets LF line endings for all text files; this PR no longer changes
.gitattributes.This PR carries no text from another contributor's PR.
Environments tested
New harness support (required if this PR adds a new harness)
N/A — does not add support for a new harness.
Evaluation
node --testruns record# duration_ms …instead of pass/fail #2342, task-brief: the last task of a section absorbs the following non-Task heading and its prose #2406, task-brief / dispatch: the plan's Global Constraints and Review Focus never reach the implementer, although the plan template says they apply to every task #2493, task-brief: a task that isn't found leaves an empty task-N-brief.md behind (exit 3) #2611, sdd-workspace: owns() cannot distinguish 'unusable' from 'foreign-owned' — infinite slug loop; marker claim is check-then-create #2619, review-package: BASE/HEAD guards accept tree/blob revisions — descendant guard misdiagnoses with exit 3 #2620, subagent-driven-development: review-package and sdd-workspace fail once a plan task deletes the plan file #2630, executing-plans/scripts/task-start and task-done fail without +x (#2040) #2642) on top of fix(worktrees): guard worktree creation, branch finishing, and executor workspace lifecycle #2736 with deterministic unit tests./bin/bash3.2.57, BSD awk 20200816 and git 2.54.0 (Apple). Each exited 0, and the test output held only PASS lines and section headers:bash tests/claude-code/test-sdd-workspace.sh: 103 PASS, no SKIP.bash tests/claude-code/test-executing-plans-scripts.sh: 24 PASS.bash tests/claude-code/test-worktree-finishing-mechanics.sh: 37 PASS,STATUS: PASSED.bash tests/sdd-helper-paths/test-sdd-helper-paths.sh: "PASS: all 14 relative helper references…".bash tests/skill-size/test-skill-size.sh: "PASS: every SKILL.md is under 20000 bytes".bash scripts/lint-shell.sh --stricton the seven changed shell files (sdd-workspace,task-brief,review-package,task-start,task-doneand the two test scripts): "Linting 7 shell files", exit 0.git diff --check fix/wave1-worktree-finish-safety HEAD: no output.sdd-workspace ""andsdd-workspace -C <repo> "": exit 2,cannot derive a workspace name from:, nothing created.ubuntu:24.04container,task-brief <plan> 1 /dev/nullwith the script from 22a0cc0 exited 0 and left/dev/nulla regular file; with the final script it exited 2 and/dev/nullwas still a character device.[SKIP]branches were run with a failingmkfifoand a copyinglnfirst onPATH, not on Windows.finishing-branch-*scenarios in superpowers-evals withdevas control, and finishing-a-development-branch deletes never-committed worktree files during "merge and clean up" (24/24 runs); executing-plans commits to main without consent (21/21). Fix attached, 0/21 after. #2706's fixture against the executors). None is aimed at this PR's script or prose changes.deva brief holds only the Task block; on this branch it opens with the labelled plan header, without the worker blockquote, and the final task's brief stops before the plan's trailing sections. A lookup miss no longer empties an existing brief, and an unclosed fence no longer deletes it. A symlink or special-file OUTFILE, whichdevwrites straight into, is refused with exit 2. A blocked.superpowersexits 2 in under two seconds instead of looping until killed, and 60 concurrent claims for three plans, two of them namedplan.md, end with one workspace per plan. After the plan file is deleted,task-done,review-packageandtask-brief(for a task already briefed) resolve the plan's claimed workspace instead of exiting 2. Tree and blob revisions exit 2. Review packages include commit bodies.task-startandtask-donerun with execute bits stripped. The ledger recordsexit 0, log: task-<N>-tests.loginstead of the last output line. Whether agents treat the labelled header, the Final Review paragraph and the cached-brief warning as intended has not been measured.Rigor
superpowers:writing-skillsandcompleted adversarial pressure testing (paste results below)
rationalizations, "human partner" language) without extensive evals
showing the change is an improvement
This PR changes skill text (
executing-plans/SKILL.md,subagent-driven-development/SKILL.md,implementer-prompt.md), and no pressure testing with agents was done. The adversarial testing is of the scripts: concurrent claims, a stale lock, a blocked.superpowers, CRLF plans, nested and tilde fences, unclosed fences, deleted plans and removed parent directories, dash-prefixed, directory, FIFO and symlink OUTFILEs, tree and blob revisions, and stripped execute bits. This PR changes no Red Flags table, rationalization table or "your human partner" wording.The original diff had an independent review by several reviewers. A hunk-by-hunk ledger then compared every hunk with
devand kept it only where a cited issue, a confirmed review finding, or a statement verified false required it; the rest returned todev's text. A separate reviewer checked the rebuilt branch against that ledger, added one commit (d87729d, which drops an awk assignment nothing reads), and re-ran the tests there. Four commits came after that review: the merge of #2736's updated branch (dbed263, which changes none of the scripts), the return ofsdd-workspace's usage check todev's text (22a0cc0), the refusal of a symlink or special-file OUTFILE (6af681b), and the skips for its two test cases (ef91a2a); the checks listed above were run at ef91a2a. Except for the last bullet below, the new and changed tests were run at d87729d against copies of the branch with one change each:test-sdd-workspace.sh, and intest-executing-plans-scripts.sh6 fail, which is every new or changed case there (the two ledger lines, the tree BASE, stripped execute bits twice, the deleted plan)..lockslug mapping deleted: only "plans named .lock.md and .LOCK.md reserve the lock name case-insensitively" fails.test-sdd-workspace.shalso pass against fix(worktrees): guard worktree creation, branch finishing, and executor workspace lifecycle #2736's scripts, because they guard paths those scripts already handle. Four were shown to fail under targeted changes: the worker-blockquote skip removed, the header printed with a leading blank line, and the temporary file staged in$TMPDIR. The other four were not shown to fail: "task-brief exits 2 on deleted plan when requested task was never cached", "task-brief exits 2 when plan is deleted and no cached brief exists for task", thereview-packageunclaimed-plan case, and "canonical candidate workspace wins over alphabetically earlier backup copy"; the last cannot fail under either candidate scheme.task-briefput back to 22a0cc0's copy (no OUTFILE refusal): only the FIFO and symlink cases fail, each with exit 0 and the FIFO or the link replaced by a regular file.Human review