summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2026-10-23fix(codex): accept linked git worktrees as checkoutsfix/codex-scripts-in-worktreesJesse Vincent
package-codex-plugin.sh and sync-to-codex-plugin.sh checked for a checkout with [[ -d .git ]]. In a linked worktree .git is a file, so both scripts died with "not a git checkout" there, and tests/codex/test-package-codex-plugin.sh failed 9 checks when run from any worktree. Test that .git exists instead: it covers both layouts and still requires the path to be the root of a checkout, which matters for sync's user-supplied --local path. The scripts' later git commands already work in worktrees. Regression tests run the package script from a linked worktree of the repo, and a sync preview from a linked upstream worktree into a linked destination worktree. The package test is adapted from #1910. Co-authored-by: tianma-if <tianma-if@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(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(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.
2026-09-11fix(movie): retain incomplete cleanup and command evidenceDrew Ritter
Address both independent Task 3 review findings at 42486dbb. When an owned leader exits before tree cleanup, the existing parentage helper cannot confirm orphan descendant cleanup. Treat that state as incomplete, preserve PID metadata, return failure, and never invoke the helper on the exited leader's numeric PID. Continue releasing the other owned resources without adding descendant tracking. Keep a recording capture failure truthful while preserving available completed command evidence: outcome remains failed, exit status remains 1, and the capture error is retained alongside ok, native exit_code, and cwd. A completed successful command does not make a failed recording successful, and no successful take manifest is published. TDD regressions reproduced an exited leader incorrectly returning 0 and capture failures dropping completed native status for exits 0 and 7. All 14 covering lifecycle and observation tests pass using fake process handles, fake clocks, mocked capture/log boundaries, and intercepted media writes; git diff --check passes. No real media generation or inspection, process/browser launches, SessionTests, FilmGridTests, or full media suites were executed. Detailed RED/GREEN evidence is appended to .superpowers/sdd/2026-09-11-movie-committee-repairs/task-3-report.md.
2026-09-11fix(movie): own recorder cleanup and bound observationDrew Ritter
Implement Task 3 of the consolidated PR 2214 movie repairs. Startup failures could leak an already launched ttyd or browser because acquisitions preceded the cleanup block; close killed historical numeric PIDs and reported success without confirmed cleanup. Register each acquired resource inside serve's try/finally, invalidate readiness on shutdown, retain logs, and atomically retire PID metadata only after confirmed owned-process and profile cleanup. Close now requests stop and waits under one overall 30-second deadline without killing PIDs. Poll CDP and owner readiness while observing commands without recording, preserving a completed native exit status across simultaneous disconnects and reserving exit 2 for live unfinished commands. Fill only bounded 5 fps slots when a final capture crosses the hard or hold endpoint, correctly strip ST-terminated OSC titles, and emit ASCII-escaped stdout JSON while preserving UTF-8 session files. A serve-only CDP call-boundary check prevents a stop from waiting through multiple consecutive calls. Add 21 contract tests using fake processes, fake websocket responses, fake clocks, byte-token capture callbacks, and intercepted frame writes. Register real-session test cleanup immediately after Popen and retain live PID snapshots, but do not execute that fixture. RED evidence and implementation report are in .superpowers/sdd/2026-09-11-movie-committee-repairs/task-3-report.md. Validation: 26/26 authorized prompt, serve-argument, and recorder contract tests pass; git diff --check passes. No media generation, inspection, browser/ttyd launch, real session or frame-grid suite was performed. Native movie acceptance remains Drew's review; an abruptly hard-killed owner with a live browser and stale readiness remains the agreed limitation.
2026-09-11fix(movie): refine subtitle chunks using allocated durationsDrew Ritter
Address Task 2 review round 1: initial character budgets count spaces that disappear between chunks, so proportional timing can exceed --max-secs even when a further word-boundary split is feasible. Reallocate after splitting an over-target multiword cue, checking actual integer millisecond intervals each time. Coalescing runs once before refinement, and refinement stops at the available millisecond count or unsplittable words. This keeps tiny impossible readability targets bounded while preserving every word and the full measured scene interval. Added a failing six-second unequal-chunk regression and a tiny-target termination/positive-interval guard. The RED emitted 3273 ms for a cue with a 3000 ms target. GREEN: 43 safe contract tests and six covering existing offset/BOM tests pass. All verification remained text/data or mocked media boundaries.
2026-09-11fix(movie): keep subtitle timing and track selection faithfulDrew Ritter
Implement Task 2 of the movie committee repairs. Allocate proportional cue boundaries across each complete rounded scene interval, reserve positive millisecond spans, and coalesce chunks when the available interval cannot represent them separately. Readability limits guide word splitting without dropping text or clipping narration tails; invalid intervals fail before subtitle output is written. Explicitly select the supplied soft subtitle track with optional source audio, including the hard-burn fallback. Parse only numbered SRT cue timing lines so arrow-bearing captions cannot crash the checker or inflate coverage. Preserve the existing maximum cue end policy, assembly-offset intersection, and partial manual retiming. Add 17 safe subtitle contracts and register the contracts runner suite. Real-file mocked narrate/assemble/subtitle reruns retain removed narration WAV evidence while omitting stale assembly audio and offsets. Verification: 41 contract tests and 18 authorized existing regressions pass; only text and mocked media boundaries were exercised. Native Windows and human video acceptance remain outside this verification.
2026-09-11test(movie): cover unsupported ASR and ordinary retriesDrew Ritter
Close Task 1 review round 2 without production changes. Feed actual unsupported ASR text through auto and strict verification while proving off does not call ASR. Run the second rejected narration invocation without --force, then assert it synthesizes new takes and retains distinct rejected bytes instead of reusing cache evidence.
2026-09-11fix(movie): retain narration evidence through verificationDrew Ritter
Address Task 1 review round 1. Treat successful empty ASR output as speech failure rather than an unavailable verifier, reject empty chat claims within the existing bounded retry loop, and extend unsupported segmentation detection to supplementary CJK ideographs. Withdraw cached acceptance before every revalidation so strict failures and interrupts cannot leave stale publication. Preserve nested manifest WAV paths on cache reacceptance, and measure a unique candidate before promotion so duration failures retain their evidence across reruns. Add structured movie geometry coverage plus both silent and source-audio mapping tests. All tests use uv --no-project with mocked synthesis, ASR, probes, and encoding; no media operation was run.
2026-09-11fix(movie): make narration acceptance govern assemblyDrew Ritter
Repair Task 1 from the 2026-09-11 movie committee plan. Narration now atomically withdraws acceptance before it mutates accepted bytes, stages failed takes as retained evidence, and publishes a manifest entry only after transcript gates and duration measurement. It preflights ffprobe, preserves bounded retries and cache identity, and distinguishes unsupported token comparison from cache identity. Assembly now validates accepted manifest narration before it starts encoding, ignores generated narration for movie scenes, selects manifest WAV paths, maps source or synthetic movie audio explicitly, fits wide movies within the requested inner rectangle, and escapes only literal directory percent signs in sequence paths. The focused regression suite mocks every media boundary; real-media fixture declarations are updated but not executed. Prompt constraints prohibit real media generation, probing, inspection, synthesis, ASR, browser, checker, or full media suites.
2026-09-11Fix inserted narration and movie audio subtitle checksDrew Ritter
Address the final three review findings on PR #2214, as approved by Drew. Count both sides of every non-equal transcript span so a short insertion or expanded replacement cannot evade the drift gate on a longer script. Preserve the existing length and run thresholds. Honor --no-expect-audio for encoded silent tracks. Base subtitle requirements on detected audible speech so opting out of expected audio does not suppress captions for speech that is present. Extract the first embedded subtitle stream as SRT when no sidecar is present and apply the same cue-end check to either source. Empty cues fail even for short narration, and extraction or malformed timing errors are reported as failures. Preserve the silent end-card allowance. Validation: the new tests first reproduced ten failing cases across narration insertion, silent-track opt-out, and embedded subtitle handling. All 35 focused narration, checker-policy, and subtitle-text tests now pass. External media commands, audio and picture sampling, contact-sheet creation, synthesis, and ASR were mocked; no actual media inspection or live ASR was performed. Drew retains final video acceptance.