summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2026-11-02Merge dev into the OpenCode compaction bootstrap fixfix/2391-opencode-compaction-bootstrapDrew Ritter
Drew requested resolution of the merge conflict in obra/superpowers PR #2601. Merge current dev into the existing PR branch without rewriting its history. Resolve the V2 bootstrap hunk by keeping #2601's shared handler registered on context, compaction, and generate, and incorporating #2600's exact BOOTSTRAP_MARKER prefix guard. This preserves injection for prompts that merely mention EXTREMELY_IMPORTANT while preventing duplicate bootstrap parts. All other dev changes merge without manual edits. Validation: bash tests/opencode/run-tests.sh passed all five suites, including hook registration, tag-mention regression coverage, child-session suppression, caching, and skill registration. git diff --cached --check passed and the index contains no unresolved paths. Live OpenCode integration sessions were not rerun for this conflict-only repair. Tracking: PRI-3674
2026-11-02Merge pull request #2600 from obra/fix/2197-opencode-bootstrap-guardDrew Ritter
fix(opencode): don't mistake a prompt that mentions EXTREMELY_IMPORTANT for the bootstrap
2026-11-02Merge pull request #2597 from obra/fix/2583-opencode-skill-namesDrew Ritter
fix(opencode): tell the model skill ids are bare names (#2583)
2026-11-02Merge pull request #2596 from obra/fix/2536-hermes-child-bootstrapDrew Ritter
fix(hermes): skip the controller bootstrap for delegate_task children (#2536)
2026-10-22fix(pi): inject the bootstrap on every prompt, not just the first (#2083)fix/2083-pi-bootstrap-every-turnJesse Vincent
The pi extension cleared injectBootstrap on agent_end, assuming it marked the end of a session. pi emits agent_end at the end of every agent run, which is once per user prompt, so from the second prompt on no provider request carried the using-superpowers bootstrap. The messages a context handler returns are sent to the provider but are not written to session history, so the bootstrap is never in event.messages on a later call and the existing marker check cannot see an earlier injection. The bootstrap therefore has to be injected into every provider request. Removing the agent_end disarm does exactly that, one copy per request at a stable position at the start of the messages. Observed against pi 0.85.1 with a local stub OpenAI-compatible provider, one session of three prompts (the second makes a tool call): before, only request 1 of 4 carried the bootstrap; after, all 4 carry exactly one copy. The test that asserted the disarm as intended behaviour is replaced by one that drives pi's per-prompt lifecycle events across several prompts and provider requests. The porting guide described the agent_end reset as the pattern to copy and now describes the failure instead. Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
2026-10-22fix(opencode): don't mistake a prompt that mentions EXTREMELY_IMPORTANT for ↵fix/2197-opencode-bootstrap-guardJesse Vincent
the bootstrap Both bootstrap injectors skip a first user message whose text parts include the substring 'EXTREMELY_IMPORTANT', to avoid injecting twice into the same message. Any user prompt that names the tag matches too, so the bootstrap is silently dropped for that session. That is what #2197 hit. The reporter's probe was opencode run "Is there an 'EXTREMELY_IMPORTANT' block in your context? ..." and the prompt itself tripped the guard. `opencode run` is not the cause: with the real hosts (V1 1.18.21 path and git-package forms, V1 1.19.4, V2 2.1.2, V2 2.1.3) and a request-recording stub model, the reporter's prompt reaches the model without the bootstrap on every host, and a neutral prompt gets the bootstrap on every host. Match the bootstrap's own opening line at the start of a part instead. The injected part always starts with it (the template now uses the same constant), so the double-injection guard keeps working, and a prompt that only mentions the tag no longer suppresses the bootstrap. Fixes #2197 Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
2026-10-22fix(opencode): inject the V2 bootstrap on compaction and generate requestsJesse Vincent
The V2 plugin registered its bootstrap injector only on ctx.session.hook('context'). OpenCode 2 prepares each model request kind through its own hook: normal agent turns through `context`, the compaction (summary) request through `compaction`, and session-scoped one-shot generation through `generate` (packages/core/src/session/model-request.ts). Every built-in V2 plugin registers its handler on all three, and the upstream V1 migration guide says to do the same when a transform must apply to every request kind. So the compaction request's first user message lacked the bootstrap that every prior turn carried, and the prompt diverged right after system + tools. On a provider with prefix caching that is a cold re-prefill of the whole session on its largest request (#2391). Reproduced on real OpenCode 2.1.2 and 2.1.3 with a scripted stub model that pushes the session over the compaction ceiling: before, the compaction request shares 26.5k of 30.8k serialized chars with the previous agent request and differs at the first user message; after, the previous request is a full prefix of the compaction request. The handler body is unchanged (child-session skip, idempotence guard, checkpoint-only append), lifted into a named function and registered on all three hooks, each in its own try/catch. Based on PR #2409. Fixes #2391 Co-authored-by: Aashish <145881415+aashish254@users.noreply.github.com> Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
2026-10-22Merge pull request #2598 from obra/fix/2394-pi-skill-filtersDrew Ritter
fix(pi): stop resources_discover from bypassing package skill filters
2026-10-22Merge pull request #2594 from obra/fix/2503-run-hook-no-bashDrew Ritter
fix(hooks): fall back to zsh, or exit quietly, when bash is missing on Unix (#2503)
2026-10-22Merge pull request #2593 from obra/fix/2081-session-start-forksDrew Ritter
fix(hooks): start no child processes in the SessionStart hook (#2081)
2026-10-22fix(hooks): fall back to zsh, or exit quietly, when bash is missing on Unix ↵fix/2503-run-hook-no-bashJesse Vincent
(#2503) On a Unix system without bash, the harness can't honour shell:"bash" and runs run-hook.cmd with zsh or sh. $BASH is unset there, so the wrapper's exec "${BASH:-bash}" fails with "command not found: bash" (zsh) or "exec: bash: not found" (sh), the hook exits 127, and the bootstrap is lost on every session start. Keep $BASH first, so the empty-PATH case from #2310 still works, then look for bash on PATH, then zsh, which runs session-start unchanged (its output is byte-identical to bash's, including for a SKILL.md full of backslashes, quotes, tabs and CRs). With neither shell, exit 0 quietly, as the Windows half already does. Reproduced with Claude Code 2.1.308 in an alpine container with zsh and no bash: the hook exited 127 and no bootstrap reached the model before the change; after it the hook exits 0 and the bootstrap arrives. Tests run the wrapper under real zsh and under a non-bash sh with a PATH that holds only zsh, and under that sh with neither shell. They skip where zsh is absent or sh is bash (Git Bash, macOS). Co-authored-by: Twot <twotnguyen@users.noreply.github.com> Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
2026-10-22fix(hooks): start no child processes in the SessionStart hook (#2081)fix/2081-session-start-forksJesse Vincent
On Windows, Git Bash emulates fork(), so every command substitution and pipe costs tens of milliseconds. The SessionStart hook runs on every startup, /clear and compaction, and on dev it forked six times: the $(cd ... && pwd) in run-hook.cmd and twice in session-start, $(escape_for_json ...), and printf | cat. Resolve paths with parameter expansion, read the skill with the read builtin, have escape_for_json assign a variable, and absorb EPIPE with trap '' PIPE plus printf 2>/dev/null || true instead of piping through cat. The cat pipe also turned an early-closed stdout into exit 141 under pipefail; the new emit_json exits 0 there. Measured on Windows 11 (VM, Git Bash 5.2), 21 interleaved runs of run-hook.cmd session-start: median 116 ms before, 46 ms after, against a 25 ms floor for one bash start (the wrapper starts two). Claude Code 2.1.308 logged the hook at 181-421 ms before and 137-146 ms after. Output is byte-identical to dev across all five output shapes, two working directories, normal and empty PATH, direct and through the wrapper (40/40 on Linux), and its sha256 matches on Windows. Tests: the cat-stub case, which asserted the pipe, is replaced by a closed-stdout case, and a new case counts process creations with strace on Linux (5 in session-start and 6 through the wrapper on dev, 0 after). Co-authored-by: willow <willowite@users.noreply.github.com> Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
2026-10-22fix(opencode): tell the model skill ids are bare names (#2583)fix/2583-opencode-skill-namesJesse Vincent
Skills name each other with the Claude Code plugin namespace (`superpowers:brainstorming`), and the using-superpowers bootstrap that the OpenCode plugin injects says "Let's build X -> superpowers:brainstorming first". OpenCode registers superpowers skills under bare ids (`brainstorming`) on both flavors and its `skill` tool does an exact lookup, so a model that copies the namespaced form gets "Unable to load skill superpowers:brainstorming" (V2) or `Skill "superpowers:brainstorming" not found` (V1) and carries on without the skill. The OpenCode tool mapping said only "Invoke a skill -> OpenCode's native skill tool" and never stated the id convention. Reproduced on real hosts (OpenCode 2.1.2 and opencode-ai 1.19.4) with a scripted stub provider: the namespaced call fails, the bare id loads. Add the convention to the "Invoke a skill" line of both mappings, with each flavor's real skill parameter (V1 `name`, V2 `id`), and mirror it in docs/README.opencode.md. Skill prose keeps the prefix, which is correct on Claude Code; the translation belongs in the harness mapping, the same way the Hermes reference shows bare `skill_view("brainstorming")`. Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
2026-10-22fix(hooks): add a powershell form of the SessionStart command for Copilot on ↵fix/2189-copilot-powershell-hookJesse Vincent
Windows (#2189) GitHub Copilot on Windows (Copilot CLI and VS Code Copilot) runs a hook's command through PowerShell and ignores shell:"bash". PowerShell parses "<root>/hooks/run-hook.cmd" session-start as a string expression followed by a bareword, fails with "Unexpected token 'session-start'", and the using-superpowers bootstrap never reaches the session. Copilot prefers a hook's powershell key over command when it is present, so add one that runs the same wrapper with the & call operator. Claude Code ignores the key and keeps dispatching command through Git Bash. Verified on Windows 11 in a VM: Copilot CLI 1.0.103 logged the ParserError and sent no bootstrap before the change, and ran the hook and sent the bootstrap after it. Claude Code 2.1.308 ran the hook and sent the bootstrap both before and after. The new test in test-run-hook-cmd-windows.sh runs the hooks.json powershell value through powershell.exe against a plugin root with a space in its path. Co-authored-by: Tugrul Guner <tugrulguner@users.noreply.github.com> Co-authored-by: Serge ARADJ <orty@users.noreply.github.com> Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
2026-10-22fix(hermes): skip the controller bootstrap for delegate_task children (#2536)fix/2536-hermes-child-bootstrapJesse Vincent
pre_llm_call returned the using-superpowers bootstrap whenever is_first_turn was true. Hermes computes is_first_turn from an empty conversation history, and a delegate_task child always starts empty, so every child's first turn got the same 5.7k-char controller bootstrap as the parent and had to rely on <SUBAGENT-STOP> to ignore it. Live Hermes delegations on #2536 show children opening with skill_view / read_file on Superpowers skills instead of their assigned work. Hermes builds delegate_task children with platform="subagent" (tools/delegate_tool.py) and forwards that as the hook's platform argument, so gate injection on it. parent_session_id is not a safe signal: Hermes also sets it on the continuation session it creates on context compression. Verified against a real Hermes install (hermes-agent 484de065) by running its plugin discovery and agent.turn_context._collect_pre_llm_call_context for a parent and a subagent first turn: 5757/5757 chars before, 5757/0 after. Co-authored-by: Twot <twotnguyen@users.noreply.github.com> Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
2026-10-22fix(pi): stop resources_discover from bypassing package skill filtersfix/2394-pi-skill-filtersJesse Vincent
The pi extension registered a resources_discover handler that returned the whole skills/ directory. pi applies a package's `skills` filter (the one `pi config` writes) only to manifest-declared resources; paths an extension contributes are merged afterwards, unfiltered. So with `"skills": []` or an allowlist on the superpowers package entry, pi 0.85.1 still loaded all 15 skills, every one attributed to extension:superpowers. package.json already declares `pi.skills: ["./skills"]`, and pi loads that with the user's filter applied, so the handler was redundant for package installs, including the README's `pi -e /path/to/superpowers`. Remove it. The bootstrap handlers are unchanged. The porting guide now names the manifest as pi's discovery mechanism. Verified against the real pi 0.85.1 CLI (RPC get_commands, no model call): skills [] loads 0 (was 15), an allowlist of using-superpowers loads 1 (was 15), no filter loads 15, `pi -e <checkout>` loads 15. Fixes #2394 Co-authored-by: m2dumpling <224757904+m2dumpling@users.noreply.github.com> Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
2026-10-21test(brainstorm-server): wait for file events instead of sleepingJesse Vincent
On macOS, fs.watch (FSEvents) delivered events anywhere from ~100ms to 2.4s after the write on Node 26.10 / Darwin 27, and sometimes held an event back to deliver it in a batch with a later one. The file-watching tests slept a fixed 500ms, so they failed when an event came late, and a late event from one test could trigger a reload or clear state/events during another. Six tests failed on v7.0.0 and on dev, a different six each run. The tests now poll for the outcome with a 5s timeout, wait until the server logs the exact screen event they caused, and drain in-flight events with a barrier file before asserting that nothing reloaded or that state/events survived. 15 consecutive runs pass; dropping the server's .html/dotfile filter still fails both negative tests.
2026-10-21subagent-driven-development: move situational content to references/ so ↵Jesse Vincent
SKILL.md survives compaction (#2565) After a compaction, Claude Code re-attaches each invoked skill truncated to 20,000 characters (#2481). SDD was 32,358, so everything from the fix loop on (the five-round cap, the breaker, the ledger round line, the final review's single fix wave, Finish) was gone for the rest of a long session. One reported task ran 18 fix rounds after that. Content SDD only needs at particular moments now lives in references/, behind a pointer at the step that needs it: fix-loop.md (read before every round), final-review.md (with Finish), handling-reports.md (non-DONE statuses), resuming.md (an existing ledger), preflight.md (the conflict scan before Task 1), batching.md, and cannot-verify.md. Those reads come fresh from disk, so they don't depend on what survived compaction. The Process graph shows the fix loop and final review as pointer nodes, and the illustrative Example Workflow is gone. SKILL.md is 19,506 bytes. tests/skill-size/test-skill-size.sh fails when any SKILL.md reaches 20,000 bytes. It still fails for writing-skills and executing-plans. Claude-Session: https://claude.ai/code/session_01EgKgPPzKtNA2okiCmqb11F
2026-10-09Release prep for v7.0.0 (#2488)Jesse Vincent
- RELEASE-NOTES.md: v7.0.0 section covering everything on dev since v6.4.2, led by the brainstorming rebuild (#2463, #2482, #2483) - Bump all 11 declared manifests to 7.0.0; OpenCode pin examples point at #v7.0.0 - bump-version.sh --audit matches whole version strings only, so 7.0.0 no longer matches inside 127.0.0.1 - test-render-graphs.sh resolves the real node binary so its empty-PATH case works under version-manager shims (mise, asdf)
2026-10-07feat(antigravity): native plugin manifest for the Antigravity MarketplaceJesse Vincent
Add .antigravity-plugin/plugin.json with the Marketplace fields (displayName, logo, suggestedPrompts, version, author), a logo rendered from the Superpowers mark by scripts/render-antigravity-logo.sh, and a .version-bump.json entry. The Codex sync excludes the manifest and logo. With the native manifest, agy installs Superpowers as an Antigravity plugin. Before, `agy plugin install <repo>` fell back to importing the repo as a Gemini CLI extension and rejected the copied Claude-format hooks file on every session. Superpowers bootstraps through skill discovery: agy lists each installed skill's description, and using-superpowers' "Use when starting any conversation" gets the model to load it. agy has no session-start hook event; a rules/ file would also load in Cursor, which reads plugin rules from the same repo root; a PreInvocation hook runs on every model call. Verified on agy 1.3.1 (Gemini 3.8 Flash) across 15 clean sessions: brainstorming or systematic-debugging loads before any code.
2026-09-26fix(hermes): pass each skill's frontmatter description to register_skillJesse Vincent
Hermes lists plugin skills (skills_list) with the description given to register_skill, which defaults to "". The plugin registered only a name and path, so all fourteen superpowers skills appeared with blank descriptions and the model had nothing to choose on. Read each SKILL.md's description and pass it through. From #2284 by @pepijn-blom. Co-authored-by: pepijn-blom <322216308+pepijn-blom@users.noreply.github.com>
2026-09-26test(executing-plans): compare the brief path in the scripts' own spelling ↵Jesse Vincent
on Git Bash
2026-09-26test(sdd-workspace): compare physical paths so the suite passes on Git BashJesse Vincent
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 <3890425+t0domanh@users.noreply.github.com>
2026-09-26test(brainstorm-server): run shell helpers without a login shellJesse Vincent
The lifecycle tests ran their helpers with `bash -lc`, so anything a login profile prints landed in captured output (a path from mktemp, the newest session dir) and broke the test. Plain `bash -c` keeps the helpers independent of the user's shell setup. Fixes #2190. From #2192 by @tugrulguner. Co-authored-by: tugrulguner <47668043+tugrulguner@users.noreply.github.com>
2026-09-26sdd-workspace: leave an existing .superpowers/sdd/.gitignore alone (#2399)Jesse Vincent
Based on #2161. Also quotes the empty CDPATH so shellcheck passes (SC1007). Co-authored-by: aruizcu1989 <192807317+aruizcu1989@users.noreply.github.com>
2026-09-26fix(hooks): run-hook.cmd finds per-user Git, skips WSL launchers and the ↵Jesse Vincent
current directory, keeps exit codes (#2393) Combines and supersedes #1864 and #2365. Fixes #1863. Co-authored-by: citizen204 <161211652+citizen204@users.noreply.github.com> Co-authored-by: KaiyiQuan <156817180+KaiyiQuan@users.noreply.github.com>
2026-09-26fix(hooks): make SessionStart hooks resolve without external PATH lookups ↵ada-sen
(#2349) * fix(hooks): make SessionStart hooks resolve without external PATH lookups SessionStart:startup hooks can run before Claude Code's PATH is repaired (anthropics/claude-code#43127), or ahead of a sibling PATH-fixing hook in the same startup batch. hooks/session-start and the Unix half of hooks/run-hook.cmd both shelled out to dirname, cat, and a PATH lookup for bash itself, so an empty PATH made every SessionStart hook fail outright: hooks/session-start: line 7: dirname: command not found hooks/session-start: line 44: cat: command not found None of those external calls are necessary: - ${0%/*} replaces $(dirname "$0") for both scripts. - ${BASH:-bash} replaces a bare 'bash' in run-hook.cmd's exec — bash always sets $BASH to its own absolute path once running, so no PATH lookup is needed to re-invoke it. - $(<file) (a bash builtin) replaces 'cat file' for reading the skill body. - The trailing '| cat' after each printf branch was a no-op pass-through through another external binary; removed. Adds a regression test in tests/hooks/test-session-start.sh that invokes both hooks under an empty PATH. Fixes #2310. * Split $0 on / or \ so cmd-dispatched hooks find the plugin root run-hook.cmd's Windows half starts bash with a backslash path (C:\...\hooks\session-start). ${0%/*} found no slash there, so session-start resolved the wrong plugin root and injected 'Error reading using-superpowers skill' instead of the skill. MSYS dirname handled backslashes, so dev was fine. Seen on Windows 11 + Git Bash 5.2.37 via cmd /c run-hook.cmd session-start. --------- Co-authored-by: Jesse Vincent <jesse@primeradiant.com>
2026-09-26fix(executing-plans): task-done no longer aborts when a passing test prints ↵ada-sen
nothing (#2388) 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.
2026-09-26test(brainstorm-server): stop orphaning the server when a test failsJesse Vincent
process.exit(1) ran inside the try, so the finally that kills the spawned server never ran. The leftover server held port 3334 and the next run died with 'preferred port is in use'. Set process.exitCode instead so teardown runs.
2026-09-26fix(brainstorming): preserve literal content replacement tokens (#2364)落尘
2026-09-18Revert movie skill import (#2214) (#2335)Drew Ritter
Remove the proving-it-works-with-a-movie import at Drew Ritter’s request because its code quality does not meet the release bar. Reverts merge dd53fe0b57223bbbbb8ceae0bda2ba8a26d1c29a and the dependent movie test adjustment in 3979a17bda8691d72bfc5963e5437174c399db67. Remove the later Muse registration and update the unreleased notes so neither advertises the removed skill. Version changes are left for a separate release step.
2026-09-18test(movie): expect 8 frames from the slow-capture film test (#2329)Jesse Vincent
42486db made film() fill every grid slot before the endpoint, but this test kept its old count of 7. Its fake clock advances 0.01 s per capture and 0.02 s per sleep, so the prompt is seen at 1.01 s, the 0.4 s hold ends at 1.41 s, and slots 0.0-1.4 s make 8 frames. The test has failed on every run since 42486db.
2026-09-17Merge pull request #2106 from GoldJohnKing/feat/opencode-v2-supportDrew Ritter
feat(opencode): support OpenCode 2.0.4+ alongside V1
2026-09-17fix(scripts): exclude root index.js from the Codex plugin syncDrew Ritter
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-17fix(opencode): strip quote pairs after joining multi-line frontmatter valuesDrew Ritter
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-17test(opencode): cover bootstrap placement when native compaction retains ↵Drew Ritter
user messages Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-17chore(opencode): mark test-skill-registration.sh executableDrew Ritter
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-17fix(opencode): retain bootstrap after native compactionDrew Ritter
2026-09-17fix(opencode): retry unsuccessful child-session lookupsDrew Ritter
2026-09-17test(opencode): cover canonical skill paths and registration survivalDrew Ritter
2026-09-17Rebuild executing-plans as a first-class inline execution modeinline-executionJesse Vincent
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.
2026-09-17fix(sdd): ownership markers stop same-basename plans sharing a workspacefix/sdd-workspace-ownershipJesse Vincent
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 <plan-basename> path, since disambiguated workspaces differ. Reported by @CRGDan; reproduction and test groundwork by @crisnahine in PR #2120. Fixes #2045
2026-09-17Merge pull request #2134 from obra/fix/sdd-helpers-no-exec-bitDrew Ritter
fix(sdd): invoke sdd-workspace via bash so helpers survive stripped exec bits
2026-09-17Merge pull request #2136 from obra/fix/review-package-range-guardsDrew Ritter
fix(sdd): reject empty or non-descendant BASE..HEAD ranges in review-package
2026-09-16fix(opencode): register skills with Skill.Info 2.0.4 path field; contain ↵GoldJohnKing
per-skill add failures Reported on PR #2106 (80avin): on OpenCode v2.0.4 the plugin is disabled at startup with "Plugin disabled after skill.transform failed", losing both skill registration and bootstrap injection. Root cause: upstream commit 199aabe9e2 (first released in v2.0.4) renamed Skill.Info's required file field `location` -> `path` and removed `slash`. draft.add() decodes payloads with Schema.decodeUnknownSync against that schema, so our `location` payloads now fail decode with "Missing key path". Why the failure was silent: the decode error is thrown during the host's state rebuild, where the State layer catches it and hard-disables the whole plugin group asynchronously - the throw never reaches the try/catch around ctx.skill.transform(), and the session "context" hook is torn down as collateral. Fix: - skill payloads now use `path` (2.0.4 contract); no v2.0.3 compatibility retained per review decision - draft.add() failures are contained per skill inside the transform callback, so one rejected payload skips that skill (visible in server logs) instead of the host disabling the entire plugin - new test-skill-registration unit test pins the 2.0.4 payload contract (absolute path field, no stale location/slash, hostile-add containment) and is registered in run-tests.sh; full suite 3/3 green
2026-09-15Merge origin/dev into import/proving-it-works-skillDrew Ritter
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-14fix(opencode): align V2 tool mapping with the 2.0.3 catalog; harden plugin ↵GoldJohnKing
internals - V2 bootstrap mapping now teaches write/edit/websearch (verified against a live v2.0.3 /api/plugin tool catalog) instead of routing all file mutation through patch - frontmatter parser tolerates CRLF and YAML block scalars/continuation lines - child-session cache is bounded (512 entries, oldest-quarter eviction) - INSTALL.md and docs/README.opencode.md tool tables synced to the 2.0.3 catalog; unit-test needle list extended to cover the new tools
2026-09-14Merge branch 'dev' into feat/opencode-v2-supportGoldJohnKing
2026-09-11Reject invalid chat transcripts and propagate browser cleanup failuresDrew Ritter
Address the two final whole-PR findings from the consolidated movie repair brief. A fresh openai-chat response must provide a speech-bearing string transcript even when local ASR is off; null must not reuse the no-transcript sentinel belonging to deterministic engines or cached accepted audio. Preserve the bounded candidate loop and rejected-byte evidence. Report failed Windows tree termination as OSError so the recorder owner's existing per-child handler continues all cleanup and retains failure metadata. Card rendering checks its acquired browser handle before acting on the PID, propagates wait failure, and reports locked-profile removal instead of allowing a pending successful return to hide incomplete cleanup. Add fake HTTP/process/filesystem boundary regressions for both findings, including real adapter invocation, accepted chat cache reuse, ASR modes, normal completed cards, and serve cleanup after a failed leader later exits. Correct the rejected-chat fixture to use the chat engine. No media or native browser execution was performed; Drew retains personal video acceptance. Validation: expected RED failures retained; 40 focused tests and the single 75-test contracts entrypoint pass. Full evidence and self-review are in .superpowers/sdd/2026-09-11-movie-committee-repairs/final-fix-report.md.
2026-09-11docs: make proof-movie recipes preserve failuresDrew Ritter
Repair the shipped Unix, logging, subtitle, cursor, narration, and recorder guidance against the literal fake-boundary failures recorded for Task 4. The primary pipeline and subtitle recipe now fail fast, measured offsets reach subtitle generation, producer logging preserves the real status under the pipefail owner, and cursor mouseup restores the released state. Document the accepted narration/cache contract, cooperative recorder cleanup limits, and the safe contracts-suite entrypoint without changing Windows recipes or the existing evidence and human-viewing gates. Include the controller-owned plan bookkeeping and record the executable RED/GREEN results while leaving independent fresh-reader trials pending. Prompt: implement Task 4 focused executable movie-guide corrections after Tasks 1-3, using writing-skills and only fake producers, text fixtures, and fake DOM execution. Verification: python3 .superpowers/review/pr2214/committee/recipe-probes.py; uv run --script tests/proving-it-works-with-a-movie/run-tests.py --suite contracts; git diff --check.