summaryrefslogtreecommitdiff
path: root/docs/superpowers/specs
diff options
context:
space:
mode:
authorDrew Ritter <drew@primeradiant.com>2026-09-09 22:53:19 -0700
committerDrew Ritter <drew@primeradiant.com>2026-09-09 22:53:19 -0700
commitb2f28a41c4ecc8f54b7a2d4e9278ac8662481a2a (patch)
tree72b432e743346eec5147afd82068660669f896cb /docs/superpowers/specs
parenta563302acc7fc70f851424520f96868d319c3e86 (diff)
chore(movie): drop the abandoned OS-rollout probe and superseded plans
The first, broader OS-compatibility rollout was stopped and replaced by the narrower Windows completion. Its feasibility probe, probe cleanup test, design, review, 12-task plan, results report, and the completion plan and review record were internal execution artifacts with machine-specific paths. The one probe-derived test list is inlined into the terminal suite. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'docs/superpowers/specs')
-rw-r--r--docs/superpowers/specs/2026-09-09-proof-movie-os-compatibility-design.md548
-rw-r--r--docs/superpowers/specs/2026-09-09-proof-movie-os-compatibility-review.md75
-rw-r--r--docs/superpowers/specs/2026-09-09-proof-movie-windows-completion-review.md36
3 files changed, 0 insertions, 659 deletions
diff --git a/docs/superpowers/specs/2026-09-09-proof-movie-os-compatibility-design.md b/docs/superpowers/specs/2026-09-09-proof-movie-os-compatibility-design.md
deleted file mode 100644
index 1365152..0000000
--- a/docs/superpowers/specs/2026-09-09-proof-movie-os-compatibility-design.md
+++ /dev/null
@@ -1,548 +0,0 @@
-# Proof movie OS compatibility
-
-**Date:** 2026-09-09
-
-**Status:** Historical design. Remaining work is superseded by the [focused Windows completion spec](2026-09-09-proof-movie-windows-completion-design.md). Do not resume this design's broader rollout.
-
-**Scope:** Platform compatibility for the movie skill proposed in [PR #2214](https://github.com/obra/superpowers/pull/2214). Implementation depends on that import or its final equivalent.
-
-## Goal and agreed direction
-
-The movie skill must cover the same OS families and execution environments as
-Superpowers' visual brainstorming companion: macOS, Linux, native Windows, WSL,
-and headless or remote operation. Windows users must be able to launch the movie
-pipeline from PowerShell or Git Bash and record either shell. Native Windows
-must not require WSL; the PowerShell movie workflow must not require Git Bash.
-
-An agent should be able to record real software, assemble a narrated and
-subtitled movie, inspect it, and apply the same verification criteria on every
-supported environment. Native terminal recording is part of the initial scope.
-
-Compatibility means equivalent outcomes, documented prerequisites, and tested
-behavior. Capture methods can differ by OS and available display facilities.
-
-## Evidence and baseline
-
-This design uses local Superpowers commit `3a8bdc11` and PR #2214 head
-`f6617db1517488d4a8b66925519d5ffbeef965b3` as its inspected baselines.
-
-The companion's current implementation establishes these distinctions:
-
-- [Browser launch](../../../skills/brainstorming/scripts/server.cjs) handles
- macOS, native Windows, WSL, Linux with a display, and Linux without a display.
-- [Launch instructions](../../../skills/brainstorming/visual-companion.md)
- accommodate PowerShell tools by invoking Git Bash's `bash.exe`. The companion
- itself has a Bash launcher; this is not evidence of a separate PowerShell
- implementation or of operation without Git Bash.
-- [Process startup](../../../skills/brainstorming/scripts/start-server.sh)
- accounts for foreground execution and Windows/MSYS PID incompatibility.
-- [Windows lifecycle tests](../../../tests/brainstorm-server/windows-lifecycle.test.sh)
- exercise Git Bash behavior. [Browser launcher tests](../../../tests/brainstorm-server/browser-launcher.test.js)
- cover Windows, WSL, and headless Linux decisions, including treating URLs as
- arguments rather than shell commands.
-
-These sources identify the required OS families. They do not establish an
-exhaustive promise covering every OS release, CPU architecture, Linux
-distribution, or desktop capture backend.
-
-An independent review of the platform contract and terminal design is recorded
-in the [adversarial review](2026-09-09-proof-movie-os-compatibility-review.md).
-
-For the imported movie skill, all three shell regression suites were run on
-macOS during this investigation: assembly 4/4, checker 9/9, narration drift 5/5.
-These 18 assertions do not test actual speech generation, title-card rendering,
-subtitle burning, or Windows execution. No Windows support is established by
-those results.
-
-Concrete compatibility gaps in the inspected import include Unix-only command
-examples, a tmux-dependent terminal recipe, macOS-only desktop capture examples,
-FFmpeg glob-dependent frame input, missing Windows browser discovery, and a
-hand-built file URL that misencodes a Windows path. `burn-subtitles` also uses
-only the subtitle basename without setting the working directory described in
-its comment.
-
-## Support contract
-
-| Execution environment | Shells used to launch tools | Required movie routes | Desktop capture behavior |
-| --- | --- | --- | --- |
-| macOS | zsh and Bash | Browser motion, terminal, stills, real-run logs, full processing pipeline | Use available macOS capture with permission; inspect a sample before recording |
-| Linux desktop | Bash; commands use portable POSIX syntax where applicable | Same routes and pipeline | Use an available capture backend for the active display; distinguish X11 from Wayland |
-| Linux headless, container, or remote session | Bash | Headless browser and terminal capture, stills, logs, full processing pipeline | Detect absent display/capture access and choose a route that can prove the claim |
-| Native Windows | Windows PowerShell 5.1, PowerShell 7, Git Bash | Same routes and pipeline; record native PowerShell and Git Bash sessions | Use a verified native capture backend, initially FFmpeg `gdigrab`, when a desktop is accessible |
-| WSL | Linux shell using Linux tools | Same Linux routes and pipeline | WSL capture is scoped to its available display; Windows host desktop capture is a separate native Windows operation |
-
-PowerShell 5.1 and 7 are separate invocation tests. Git Bash is a Windows shell
-environment, not a synonym for WSL. Git Bash must invoke native Windows Python
-and FFmpeg for its native Windows tests. WSL tests must invoke Linux tools.
-
-Keep OS detection, launch-shell detection, recorded-shell selection, and display
-capability separate. A PowerShell launcher may record Git Bash and vice versa.
-Do not infer the recorded shell from the shell running the pipeline.
-
-Do not introduce a Windows 11-only restriction solely because a test machine
-runs Windows 11. Record exact OS, architecture, interpreter, browser, and tool
-versions in validation results. Native terminal capture requires a compatible
-Windows console API; ttyd documents ConPTY builds for Windows 10 1809 or later.
-Other route prerequisites may set their own minimum versions.
-
-Architecture compatibility is also a dependency check: do not assume that a
-Python script or a Windows x64 wheel proves native ARM64 support. Required
-validation starts with macOS arm64 and x64, Linux x64, and native Windows x64,
-plus WSL on Windows. Record Linux arm64 and Windows arm64 dependency availability
-and execution evidence before listing those combinations as verified. A missing
-wheel is a reported route limitation, not an excuse to claim OS parity or
-silently substitute a paid service.
-
-## Approach and alternatives
-
-Use the existing five Python tools as one shared pipeline, with small local
-helpers where platform handling is reused. Keep shell differences in invocation
-examples and adapters for recording real commands. Keep capture differences in
-route documentation and its executable examples.
-
-This preserves the scene file, narration manifest, offsets, subtitles, movie,
-and checker output across operating systems. It also limits changes to the
-skill being imported; no companion rewrite is required.
-
-Two alternatives were considered:
-
-- **Route all Windows work through WSL or Git Bash.** This does not satisfy the
- agreed native PowerShell workflow, and WSL cannot stand in for recording a
- native Windows terminal or application.
-- **Maintain separate PowerShell and Bash pipelines.** This duplicates timing,
- subtitles, and verification behavior and makes platform drift likely. Both
- shells can invoke the same Python scripts explicitly.
-
-## Shared pipeline
-
-### Invocation and dependencies
-
-Document `uv run --script` for all five extensionless tools. Retain existing
-Unix shebang execution for compatibility. Examples set the skill directory using
-the location supplied by the harness, rather than a Claude-specific install path.
-
-```powershell
-$SkillDir = 'C:\path to plugin\skills\proving-it-works-with-a-movie'
-uv run --script "$SkillDir/scripts/assemble" scenes.yaml silent-cut.mp4
-if ($LASTEXITCODE -ne 0) { throw 'Movie assembly failed' }
-```
-
-```bash
-SKILL_DIR='/path to plugin/skills/proving-it-works-with-a-movie'
-uv run --script "$SKILL_DIR/scripts/assemble" scenes.yaml silent-cut.mp4 || exit "$?"
-```
-
-PowerShell recipes must work under 5.1 without relying on PowerShell 7-only
-operators. Bash syntax must be identified as Bash when it is not POSIX syntax.
-All examples must preserve failure status across pipelines and logging.
-
-Before a long recording, check prerequisites for the selected route: `uv`, a
-compatible Python, FFmpeg/ffprobe and required codecs/filters, the chosen
-browser, ttyd for terminal capture, and local narration/transcription packages
-when requested. Check capabilities, not merely executable presence. Report
-the missing capability and an appropriate install or alternate-route action.
-There is no need for a new global installer or plugin-startup dependency check.
-
-Use the tools already involved in the proposed import. Do not introduce a new
-recording service, TTS service, global Node dependency, or Windows-only package
-manager requirement. The import's dependency-policy exception remains a
-maintainer decision associated with PR #2214; this spec does not grant one.
-
-Nested helper invocations must also be independent of the project being filmed.
-In particular, launch the local ASR environment with uv project discovery disabled
-(`--no-project`) and a compatible interpreter selected by uv. The current nested
-`uv run --with faster-whisper ...` can otherwise inherit an unrelated
-`pyproject.toml`. A fixture with an incompatible project Python requirement must
-not change the helper's resolution, modify the project's environment/lockfile,
-or turn an available ASR into a reported dependency failure.
-
-### Paths, encoding, and process arguments
-
-- Resolve assets relative to the scene file and generated assets relative to
- the selected work directory. Preserve existing explicit output-path semantics.
-- Use `Path.resolve().as_uri()` for browser file URLs. Browser discovery honors
- `--browser`, then checks platform installations and PATH, including Chrome and
- Edge on Windows and Chrome/Chromium on macOS and Linux.
-- Use explicit UTF-8 for YAML, JSON, HTML, SRT, concat lists, and text evidence.
- Accept ordinary LF and CRLF text inputs and diagnose unreadable encodings.
- Give owned Python helper pipes an explicit UTF-8 contract as well. Preserve
- raw output from recorded external commands and record the encoding used to
- decode it; do not assume every native Windows program emits UTF-8 or silently
- replace undecodable evidence. Test redirected output under a non-UTF-8 Windows
- console/code-page configuration.
-- Pass external executable arguments as arrays. Avoid shell command strings for
- FFmpeg, browsers, or opening an artifact. User-requested shell commands belong
- only in the selected recorded shell.
-- Keep MSYS path conversion at the launch boundary. Do not translate the same
- path twice or feed Bash pseudo-PIDs to native Windows process APIs.
-- Support spaces, apostrophes, Unicode, and shell metacharacters in valid local
- paths. Exercise nested subtitle directories and work directories outside the
- current directory. Avoid requiring symlink privileges or POSIX tools such as
- `mktemp`, `shasum`, and `kill` for the PowerShell pipeline.
-
-### Frame assembly and subtitles
-
-Expand and sort frame filenames in Python. Feed FFmpeg a deterministic numbered
-sequence staged in the work directory, using ordinary files without requiring
-symlinks. Preserve the existing lexical ordering and frame rate. This replaces
-the dependency on FFmpeg's optional glob support. Clean only staging files owned
-by the current build and preserve source screenshots.
-
-Write concat entries with FFmpeg-specific escaping and test native Windows
-drive paths. File list syntax and filter syntax are separate from shell quoting.
-Preserve measured offsets and the existing timing rules: `card`, `image`, and
-`frames` segments use `max(narration duration, visual duration)`; `movie` segments
-retain the source movie's duration and own audio. The port must not change timing
-or drop frames.
-
-For subtitle burning, stage the SRT under a safe fixed basename in a temporary
-directory and execute FFmpeg from that directory, with resolved input/output
-paths. This avoids interpolating user filenames into the subtitle filter.
-Clean staging on both success and failure. Verify the selected font actually
-renders the sample text, using available platform fonts rather than assuming
-DejaVu is installed everywhere.
-
-Preserve the documented soft-subtitle fallback, with an accurate explanation of
-why burning was unavailable. A burn failure with libass present must report the
-actual failure rather than claim libass is missing. Full-platform acceptance
-requires proving the hard-subtitle path with a capable FFmpeg build; a successful
-soft fallback alone is insufficient. Continue shipping the SRT alongside the
-movie for the existing checker contract.
-
-### Narration and verification
-
-Keep local Piper narration and local transcription available without a cloud
-key on the verified support combinations. First-run model downloads must be
-distinguished from subsequent offline operation. Check actual synthesis and
-transcription, including subprocess interpreter selection and Unicode handling.
-
-Do not make cloud credentials a Windows requirement. A missing local ASR must
-remain visible in output and cannot count as a verified narration acceptance
-run, even where the existing script permits a skip.
-
-Preserve the existing verification thresholds, contact-sheet inspection,
-subtitle checks, and requirement to compare rendered speech with its script.
-Platform compatibility is not a reason to weaken a gate. Existing general
-checker limitations remain limitations; redesigning its heuristics is outside
-this work.
-
-## Recording routes
-
-### Browser and stills
-
-Keep browser-driven recording as the common motion route. Select a compatible
-browser explicitly or through discovery, use an isolated profile, preflight a
-real screenshot, and retain cursor overlays and measured narration pacing.
-Headless recording must work without opening a desktop browser. Distinguish
-Playwright's own recording encoder, when that route is used, from system FFmpeg.
-
-Use available harness browser automation or the documented recorder's browser
-connection. The compatibility work does not create a new browser automation
-framework. Navigation races must have bounded capture timeouts. Unexpected blank
-output or stalled capture must not silently produce a successful recording;
-intentional blank transition beats remain valid evidence.
-
-### Terminal and TUI
-
-Keep the existing ttyd/tmux route for Unix environments. Add a native Windows
-route using ttyd's Windows console support and an explicitly selected PowerShell
-or Git Bash executable. Native Windows must not require tmux, Docker, or WSL.
-
-Drive the native terminal through browser keyboard input into the live ttyd
-terminal. Provide an executable example inside the skill with explicit shell
-selection, viewport, output location, and a short real command sequence. The
-existing `examples/film-terminal.py` reference points outside the imported
-files; replace it with an included, tested example or a correct included-file
-reference. The standalone example is specific to a Docker/tmux demo and must
-not be presented as a working native Windows recorder unchanged.
-
-One persistent Python supervisor owns the browser/CDP page, capture state, and
-terminal session. Start ttyd in writable mode and allow one terminal client.
-Subscribe through CDP to the existing page's ttyd WebSocket events before that
-page connects. Decode ttyd's output-message framing and incrementally parse
-output across message boundaries. A second CDP connection may observe that page;
-a second ttyd WebSocket must not be opened, because ttyd creates another shell
-for another terminal client. The browser input, command observer, and recorded
-pixels must all refer to the same session.
-
-For the reference recorder, later harness calls submit ordered JSON control
-files to a session-owned directory. A request has a unique monotonically
-increasing id and an operation (`run`, `key`, `begin-take`, `end-take`, or `close`).
-Write requests atomically; the supervisor dispatches them in order and writes
-matching acknowledgments and eventual results. A `run` acknowledgment does not
-wait for the command to finish: the command remains in flight while capture
-operations and `close` can proceed. Another `run` is accepted only at a known
-shell prompt; `key` can drive an expected interactive state. Startup reports the
-control directory and session id, and request ids prevent replay. No HTTP
-control service or additional terminal client is needed.
-
-Readiness requires a round trip through the filmed terminal: execute a probe
-that returns a session nonce, shell identity, and working directory, observe its
-completion, and inspect a screenshot from that same page. Do not declare the
-recorder ready based only on a listening port or a loaded page.
-
-Command completion is a shell adapter responsibility. Each scripted beat emits
-a framed completion record after it returns, containing session/request ids and
-an outcome. Its complete framing must not appear in echoed command text. Keep
-instrumentation inside the recorded session; do not edit the human partner's
-shell profiles or change its error preferences. A missing completion record is
-an interruption or timeout, never success.
-
-The outcome distinguishes `completed`, `interrupted`, and `unknown`; a completed
-beat has `shell_success`, a nullable native exit code, and a nullable shell error.
-For Bash, preserve the command status and any producer pipeline statuses before
-instrumentation overwrites them. For PowerShell, capture `$?` immediately after
-the submitted statement and distinguish it from `$LASTEXITCODE`. Attribute a
-native exit code only when the beat identifies its native executable producer;
-a cmdlet's outcome must not inherit an earlier native command's exit code.
-Terminating exceptions and parse failures produce explicit error outcomes when
-observable, or `unknown` when the session no longer permits reliable attribution.
-
-The first implementation accepts atomic command/statement beats. Multi-statement
-scripts remain opaque commands whose own documented status is recorded; the
-recorder does not claim to detect every internally ignored error. Logging and
-formatting are observer operations after status capture. If the command being
-proved is itself a producer/logging pipeline, its adapter must retain the
-producer's outcome separately, or require separate beats rather than label a
-successful logger as a successful producer. Evidence includes the exact command
-and attribution, so a successful recording can honestly show a failed command.
-
-Record PowerShell 5.1 and 7, not only launch the pipeline from each. Test a
-successful native executable followed by a failing cmdlet, a failing native
-executable followed by a successful cmdlet, terminating and non-terminating
-errors, an explicit script exit, parse failure, and failure through logging.
-Tests must detect status changes introduced by instrumentation, including the
-PowerShell 5.1 expression-wrapper behavior.
-
-For interactive TUI beats, use explicit application state and key actions; do
-not send another shell command while the TUI still owns input. Unknown state or
-a completion timeout stops the take with a diagnostic. Validate delayed commands,
-nonzero exits, an interactive TUI, resizing, and non-ASCII output in both recorded
-Windows shells.
-
-A recording session owns one terminal for the duration of its takes. Stopping a
-take pauses capture without killing a long-running command; the same browser
-connection and shell persist until the recording session ends. Browser
-disconnect/reconnect persistence is not assumed. If the connection is lost and
-the shell cannot be proven to survive, mark the take interrupted and report it.
-Verify a nonce, shell identity, and persistent shell variable across two takes,
-a running command between those takes, and a real harness tool-call boundary.
-Include negative tests where an extra terminal client or lost connection must
-not produce a successful session-continuity result.
-
-### Desktop capture and real-run logs
-
-Document device/capability selection per OS: macOS capture, native Windows
-`gdigrab`, and supported Linux display capture. Detect the active display and
-available FFmpeg devices before selecting a command. On Wayland, do not apply an
-X11 recipe by default; use an available permission-aware capture route or switch
-to browser/terminal recording. This work does not promise universal desktop
-capture on every compositor or remote-session configuration.
-
-Preflight by recording a short sample and examining its actual pixels. Permission
-denial, blank capture, an unavailable remote desktop, or missing display must
-produce an explicit route decision. A log reel can prove a real command run; it
-cannot substitute for pixels when the claim is specifically native GUI behavior.
-If the required claim cannot be captured, report it as unproven.
-
-Provide Bash and PowerShell real-run log recipes that retain the command's exit
-status, timestamps, and actual output. Use standard-library Python hashing or
-equivalent native commands for evidence bundles. Retain source logs beside the
-derived movie. Windows PowerShell 5.1 output encoding must be tested explicitly.
-
-## Lifecycle and remote behavior
-
-Match the companion's lifecycle principles without copying its Bash launcher:
-run recorders under the harness's persistent/background execution mechanism,
-report readiness after the real browser/terminal is reachable, and preserve the
-session between agent tool calls. Avoid assuming detached `nohup` processes
-survive in a Windows or managed-harness environment.
-
-Own browser profiles, ports, temporary assets, and child process handles per
-recording session. Bind terminal and debugging endpoints to loopback by default.
-Readiness and command waits have explicit timeouts. On finish, interrupt, or
-failure, stop and wait for owned processes and release resources; do not kill by
-generic executable name or unverified stale PID. Ordinary users must be able to
-run the workflow without elevated privileges.
-
-Session ownership includes the recorded command's local children and
-grandchildren, even when they stop using the terminal. On Windows, assign ttyd
-and the isolated browser root to a session-owned Job Object before their threads
-run, using suspended creation and Win32 calls through Python's `ctypes`. Disable
-breakaway and use kill-on-job-close so descendants cannot outlive the recorder.
-Keep the supervisor outside its child job, and detect failure to establish the
-job before starting a take. On Unix, track the recorder's own sessions/process
-groups, including ttyd's PTY process group; do not assume killing the ttyd parent
-terminates its shell group. Session persistence ends at `close`; this workflow
-does not launch local services intended to survive it.
-
-On normal close, keep reading terminal output while requesting graceful
-shutdown, then terminate remaining owned processes after a bounded timeout and
-wait for their exit. Drain/close output in an order that does not block older
-ConPTY implementations. On supervisor failure, Windows job closure must still
-terminate owned descendants. Test both success and cancellation with a child and
-grandchild that continue writing heartbeat files, plus an unrelated sentinel
-process. Owned heartbeats must cease, owned processes must disappear, the
-sentinel must survive, and no shutdown operation may hang indefinitely.
-
-Use the same distinction as the companion between a renderer and opening a
-browser for the human partner. If a recorder needs to open a URL, use the OS
-launcher with separate arguments; on WSL, Windows URL opening is a convenience,
-not permission to pass Linux filesystem paths to Windows executables. With no
-display, report the artifact path/URL and continue headless processing. Remote
-browser access uses an explicit, documented access mechanism; remote deployment
-or a new public tunnel service is outside scope.
-
-## Implementation boundaries
-
-Expected files are the five scripts under
-`skills/proving-it-works-with-a-movie/scripts/`, small shared helpers if needed,
-the skill's route documents, an included terminal recording example, and tests
-under `tests/proving-it-works-with-a-movie/`. Add a focused platform support
-reference and link it from `SKILL.md` rather than making every route repeat the
-whole compatibility matrix.
-
-Preserve scene kinds, manifest fields, offsets, CLI arguments, and output artifact
-formats. Keep macOS and Linux entry points working. Do not bundle changes to
-plugin hooks, the visual companion, unrelated skills, standalone-repo retirement,
-or the movie checker's general behavior. No new harness integration is proposed.
-
-Add a portable Python integration suite for the shared behavior. Shell launch
-tests should be thin wrappers over the same fixtures and assertions. Preserve
-existing regression coverage; replacing a Bash test requires equivalent coverage
-in the portable suite. The suite must be runnable locally and on OS runners
-without depending on a particular CI provider.
-
-## Acceptance and evidence
-
-| Area | Required proof |
-| --- | --- |
-| OS coverage | Actual runs on macOS, Linux, native Windows, and WSL; record exact environments and distinguish architecture coverage |
-| Launch shells | Bash and zsh on macOS, Bash on Linux/WSL, Windows PowerShell 5.1, PowerShell 7, and Git Bash on native Windows |
-| Shared pipeline | All scene kinds; measured scene offsets; hard and soft subtitles; checker verdicts and contact sheets |
-| Paths | Spaces, apostrophes, Unicode, metacharacters, Windows drive paths, relative/absolute work directories, nested SRT files, LF/CRLF |
-| Windows terminal | Git Bash and recorded PowerShell 5.1/7; a crossed launch/record-shell combination; cmdlet/native status attribution, delayed command, TUI input, and same-session proof between takes |
-| Native independence | PowerShell movie tools run with Git Bash and WSL unavailable to them; Git Bash native tests use Windows binaries |
-| Local voice | Real no-key Piper synthesis and local ASR in every required OS environment, including WSL; repeat with cached models and network disabled; test nested helper isolation from the filmed project |
-| Capture failure | Blank frame, missing display, permission refusal, browser loss, and timeout produce accurate outcomes and no fabricated proof |
-| Lifecycle | Survives a harness turn boundary; bounded shutdown after success, error, and interruption; owned children/grandchildren terminate while an unrelated sentinel survives |
-| Evidence integrity | Failed command remains failed through logging; missing required speech verification is reported; rendered content matches real actions |
-
-The end-to-end fixture includes a small real browser app with a persistent state
-change and a terminal sequence that prints Unicode, runs a delayed command, and
-returns a nonzero status. Capture those actions, generate real local narration,
-assemble `card`/`image`/`frames`/`movie` scenes, burn subtitles, run the checker, and
-inspect the finished output. Include a terminal TUI take and an unnarrated
-log-reel case. An intentionally failing command may be part of a successful
-recording test: its logged status and narration must accurately show that failure.
-Use synthetic clips for deterministic negative checker tests, clearly identified
-as test fixtures.
-
-Run the end-to-end pipeline from both Windows shell families. Cover PowerShell
-5.1 and 7 with real launch tests; test the OS pipeline with actual executables,
-not only mocked `sys.platform`. Optional display-specific tests may be skipped
-only with a recorded reason and a separate result for the fallback route. A
-missing prerequisite in a required acceptance job is a failure of that job's
-setup, not a green compatibility result.
-
-OS and feature coverage must be joined. Define fixture groups: **P** is the full
-processing fixture (all scene kinds, offsets, hard/soft subtitles, checker and
-negative cases); **B** is real browser capture; **T** is real terminal/TUI capture
-and lifecycle; **V** is no-key synthesis/transcription plus a cached offline
-rerun; **L** is the real-run log reel with preserved status.
-
-| Required environment | Minimum successful groups | Additional proof |
-| --- | --- | --- |
-| macOS arm64 | P, B, T, V, L | Bash and zsh invocation |
-| macOS x64 | P, B, T, V, L | Exact interpreter and model package versions |
-| Linux x64 desktop | P, B, T, V, L | Display type and browser backend |
-| Linux x64 with DISPLAY/WAYLAND_DISPLAY unset and no desktop session | P, B, T, V, L | Positive headless browser and terminal takes, not just a missing-display diagnostic |
-| Native Windows x64 | P, B, T, V, L | Full pipeline from PowerShell and Git Bash; real launch and recorded-shell coverage for PowerShell 5.1/7; native binaries proven |
-| WSL Linux x64 | P, B, T, V, L | Linux binaries proven; local voice runs inside WSL; no hidden Windows-file-path dependency |
-
-Do not multiply the full fixture by every launch-shell permutation: thin
-invocation tests cover remaining permutations, while the explicit Windows
-end-to-end requirements above still apply. Remote/harness continuity requires
-at least one real remote session for browser and terminal recording, with
-artifacts retrieved and the launch/recording hosts identified.
-
-To advertise a desktop backend as verified, retain one successful real desktop
-take on an actual macOS desktop, a Windows desktop using `gdigrab`, or a Linux
-X11 desktop using the documented backend, respectively. A skipped test leaves
-that backend conditional/unverified even if the OS's P/B/T/V/L groups pass.
-Wayland support in this scope means correct detection and an honest route
-decision; a Wayland desktop backend needs its own successful take before a
-stronger claim is published. This does not require every compositor or remote
-desktop configuration to support desktop capture.
-
-Skill instruction changes require `superpowers:writing-skills` and before/after
-pressure testing across multiple agent sessions. Scenarios include a PowerShell
-harness, a Git Bash harness, no cloud key, a path containing spaces, missing
-libass, and headless/blocked capture. Check that agents select valid commands,
-keep failures visible, and inspect the artifact. Store evals and transcripts in
-the project's external eval repository; it is absent from this checkout, so
-record its actual path and commit rather than assuming `evals/` is present.
-The external checkout found during review is
-`/Users/drewritter/prime-rad/superpowers-evals` at `66f08529`; this is an evidence
-location, not a path to hard-code into tests. Its Windows guest launcher proves
-where the agent runs, not which shell its tools use. For each shell-specific
-agent eval, capture the actual agent tool invocation and shell identity; launching
-an agent from PowerShell while all its commands execute in Bash does not satisfy
-the PowerShell-harness scenario.
-
-Evidence records must include OS/architecture, shell, Python/uv, FFmpeg build,
-browser, TTS/ASR versions, harness/model, command, return code, and artifact or
-transcript location. Generated media need not be committed to core, but the
-fixture and reproduction commands must be retained.
-
-### First implementation task: native Windows feasibility
-
-Before the bulk port, run a bounded probe of the chosen ttyd build with native
-PowerShell and Git Bash: one filmed/observed terminal, a command completion
-record, two takes preserving shell state across a harness boundary, and Job
-Object cleanup of a nested worker. Record executable versions and the observed
-ttyd message format. This is runtime validation of the specified design, not
-evidence already gathered by this spec review. A failure revisits the relevant
-adapter design before depending on it; it does not silently remove an agreed
-platform or shell from the contract.
-
-The human partner has provided `drew@ballmer.local` for SSH or Paseo access.
-A read-only SSH inventory succeeded on 2026-09-09: Windows 11 Pro, PowerShell
-5.1, Git Bash, Chrome, and Edge were found. PowerShell 7, uv, FFmpeg/ffprobe,
-and ttyd were not resolved on that session's PATH; their installation status
-needs checking before provisioning. This establishes an available native
-validation host, not a passed recording test or verified desktop access.
-The [implementation plan](../plans/2026-09-09-proof-movie-os-compatibility.md)
-records the observed paths, prerequisite checks, and Ballmer-first probe.
-
-The design has an implementation plan ready for review. Compatibility is complete
-only when the required matrix has evidence, the updated skill has behavior evals,
-and the support documentation accurately distinguishes verified combinations
-from dependency or display limitations.
-
-## External references
-
-- [uv explicit script invocation](https://docs.astral.sh/uv/reference/cli/#uv-run--script)
- supports extensionless Python scripts.
-- [uv platform policy](https://docs.astral.sh/uv/reference/policies/platforms/)
- distinguishes tested platforms from build-only support; it is not a substitute
- for validating the rest of the movie toolchain.
-- [FFmpeg image input](https://ffmpeg.org/ffmpeg-formats.html#image2)
- documents that glob input depends on build support.
-- [FFmpeg Windows desktop capture](https://ffmpeg.org/ffmpeg-devices.html#gdigrab)
- documents desktop, region, and window capture.
-- [ttyd Windows builds](https://github.com/tsl0922/ttyd/wiki/Compile-on-Windows)
- document native ConPTY support and its OS requirement.
-- [Piper package files](https://pypi.org/project/piper-tts/#files)
- include Windows x64 builds; package availability alone is not a completed
- synthesis or transcription test.
-- [PowerShell automatic variables](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_automatic_variables)
- distinguish command success from native process exit status.
-- [ttyd protocol implementation](https://github.com/tsl0922/ttyd/blob/main/src/protocol.c)
- associates a terminal process with each initialized client connection.
-- [CDP WebSocket receive events](https://chromedevtools.github.io/devtools-protocol/tot/Network/#event-webSocketFrameReceived)
- expose messages from the browser's existing socket, including encoded binary payloads.
-- [Windows Job Objects](https://learn.microsoft.com/en-us/windows/win32/procthread/job-objects)
- provide a process-ownership boundary for session cleanup.
-- [ConPTY close behavior](https://learn.microsoft.com/en-us/windows/console/closepseudoconsole)
- informs output draining and bounded shutdown on older Windows versions.
diff --git a/docs/superpowers/specs/2026-09-09-proof-movie-os-compatibility-review.md b/docs/superpowers/specs/2026-09-09-proof-movie-os-compatibility-review.md
deleted file mode 100644
index fb353dc..0000000
--- a/docs/superpowers/specs/2026-09-09-proof-movie-os-compatibility-review.md
+++ /dev/null
@@ -1,75 +0,0 @@
-# Proof movie compatibility: adversarial design review
-
-**Date:** 2026-09-09
-
-**Reviewed draft:** `a36d831d6f9764b6a1355b23f318519701f37029`
-
-**Design:** [OS compatibility spec](2026-09-09-proof-movie-os-compatibility-design.md)
-
-## Method and limits
-
-Two independent agents reviewed the committed draft with separate contexts and
-read-only assignments. `review_terminal_spec` examined native terminal control,
-shell outcomes, ttyd, and lifecycle. `review_platform_spec` examined the platform
-contract, dependency feasibility, and acceptance evidence. The author separately
-checked the shared pipeline against the actual imported scripts and verified the
-review findings before revising the design.
-
-The independent reviewers found no Critical issues and four Important design
-gaps. They did not run native Windows recording. This is adversarial review of a
-specification, not skill pressure testing or OS acceptance testing.
-
-## Findings and disposition
-
-| Finding | Evidence/failure scenario | Design revision |
-| --- | --- | --- |
-| T1: PowerShell outcome was underspecified (Important) | A failed cmdlet can leave an earlier native exit code at zero, or a successful cmdlet can leave it nonzero. PowerShell 5.1 expression wrappers can alter the success variable. Native-exit-only tests miss this. | Separate shell success, native exit attribution, errors, and unknown/interrupted completion. Capture status before logging; define atomic beats and opaque script behavior. Record both PowerShell 5.1 and 7 with mixed cmdlet/native and error fixtures. |
-| T2: Process ownership omitted descendants (Important) | ttyd terminates its Windows shell with `TerminateProcess`; this does not by itself prove children/grandchildren stop. A worker can keep writing after a cancelled recording. | Establish a Windows Job Object before children run, with kill-on-close and no breakaway; account for Unix PTY process groups. Drain output during bounded shutdown. Require owned descendants to exit while an unrelated sentinel survives. |
-| T3: Output observation could attach to the wrong shell (Important) | ttyd spawns a process per initialized terminal WebSocket. Opening a separate observer socket creates another shell rather than attaching to the filmed one. | One persistent supervisor and one terminal client. Observe the filmed page's existing connection through CDP, use writable mode and a readiness round trip, and control takes through ordered request files. Test nonce, shell identity, state, and command continuity. |
-| P1: OS and feature coverage were not joined (Important) | The original acceptance rows could be satisfied by proving features on one OS and doing smoke runs elsewhere, leaving genuinely headless Linux or WSL local voice untested. | Assign P/B/T/V/L fixture groups to each required OS/architecture environment. Require positive headless and WSL voice runs, separately map shell checks, and reserve verified desktop claims for backends with real successful takes. |
-| A1: Nested ASR helper inherited the filmed project (author finding) | Imported `narrate` uses nested `uv run --with faster-whisper ...` without disabling project discovery. An unrelated project Python requirement can prevent the helper from launching. | Disable nested helper project discovery; require compatible interpreter selection and a fixture proving no dependency on, or mutation of, the filmed project's environment/lockfile. |
-
-Additional clarifications retain the existing `movie` scene's own-audio/duration
-exception, use the exact scene-kind names in the fixture, distinguish helper
-UTF-8 pipes from arbitrary native command encodings, and require shell-specific
-agent evals to prove the actual tool shell rather than the agent's launch shell.
-
-## Verification performed during review
-
-- Inspected ttyd's `src/protocol.c`: process creation is associated with the
- initialized terminal client, and input depends on writable mode.
-- Inspected ttyd's `src/pty.c`: Windows shell termination uses `TerminateProcess`.
-- Checked Microsoft's PowerShell automatic-variable documentation, Job Objects,
- and ConPTY shutdown documentation. These support the design corrections; they
- do not establish that the future recorder implements them correctly.
-- Reproduced uv project discovery in a temporary directory containing a
- `pyproject.toml` requiring Python `>=9.99`.
- `uv run --offline python -c 'print("ASR child launched")'` exited 2 with an
- interpreter-resolution error; adding `--no-project` before `python` exited 0.
- This isolates the project-discovery issue without claiming an actual ASR/model
- test was run.
-- Located the external eval checkout at
- `/Users/drewritter/prime-rad/superpowers-evals`, commit `66f08529`, and read its
- Windows guest agent instructions. They establish a native guest launch path,
- not a PowerShell tool adapter or a completed movie eval.
-
-## Recheck and remaining work
-
-Both original reviewers rechecked the revised design. The terminal reviewer
-confirmed T1/T2/T3 resolved for implementation planning with no new Critical or
-Important contradictions. The platform reviewer confirmed P1 resolved with no
-new findings. The terminal reviewer also checked CDP's documented receive events
-and binary payload representation and found no demonstrated accessibility blocker
-for the proposed observer. No independent review finding remains open.
-
-Runtime validation remains implementation work: the first planned task is a
-bounded native Windows probe of same-session ttyd observation, PowerShell/Git Bash
-completion, persistent takes, and descendant cleanup. Its result determines
-whether the specified adapters can proceed unchanged. The
-[implementation plan](../plans/2026-09-09-proof-movie-os-compatibility.md) is now
-written for review and records the available Windows validation host. The runtime
-probe is a prerequisite within that plan, not a test claimed to have passed
-during specification review.
-
-The eventual skill changes still require before/after pressure tests and the
-OS acceptance matrix. This review must not be cited as that evidence.
diff --git a/docs/superpowers/specs/2026-09-09-proof-movie-windows-completion-review.md b/docs/superpowers/specs/2026-09-09-proof-movie-windows-completion-review.md
deleted file mode 100644
index 2418a96..0000000
--- a/docs/superpowers/specs/2026-09-09-proof-movie-windows-completion-review.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# Adversarial review of the Windows completion spec
-
-**Reviewed draft:** `cd5e0bd7`.
-**Spec:** [Windows completion design](2026-09-09-proof-movie-windows-completion-design.md).
-**Reviewer:** Independent Codex subagent `/root/review_windows_completion`, given the user goal, current spec, and relevant source paths without the controller's full conversation.
-**Scope:** Design correctness, scope discipline, existing-code compatibility, and sufficient Windows acceptance. Read-only review; no implementation, runtime tests, provisioning, remote-host work, or additional agents.
-
-## Initial verdict
-
-Revise before implementation. The reviewer judged the narrowed architecture proportionate and found five mandatory contract corrections. None required restoring the old framework, platform matrix, or eval infrastructure.
-
-| Finding | Evidence in the reviewed source | Spec correction |
-| --- | --- | --- |
-| R1 — Producer attribution and success (P1) | Probe `dispatch` depends on `native_producer`; Bash `emit_bash` selects the first saved pipeline status. The draft required attribution but omitted the input field and aggregate success rule. | Include the field; limit its promise to a direct native invocation or first pipeline stage followed by logging. Keep raw PowerShell status and observed errors distinct. A failed/unknown identified producer cannot yield a successful command result. |
-| R2 — Cached ASR verification (P1) | `narrate`'s unchanged-WAV/manifest branch bypasses all transcription, including under `--verify on`. The controller independently identified and sent this case to the reviewer, who confirmed it. | Explicit `on` verifies reused WAVs as well as new audio. Add the off→on cached-clip case to the focused checks; unchanged text does not establish verified audio. |
-| R3 — Complete asynchronous control (P2) | Probe reads exactly the next consecutive request filename; arbitrary positive IDs can block it. Duplicate rejection prevents resubmitting solely to wait for an existing result. | Specify consecutive IDs, one controller, visible next ID, and prompt gap/duplicate rejection. Add a wait-only `result` command; distinguish acknowledgment from completion and client timeout from cancellation. |
-| R4 — Timeout/shutdown state (P2) | Probe command timeout terminates the session, but the draft left this ambiguous. Probe dispatch publishes close/cancel replies before cleanup. | Command timeout records unknown and tears down the session. Define active-take/pending-command behavior for close/cancel. Successful shutdown completion is published only after resource cleanup, separately from acknowledgment. |
-| R5 — Event timing and automatic capture (P2) | Draft allowed nearly two-second duplicate intervals while requiring only total-duration accuracy; a transient could be omitted without failing that duration check. | Specify monotonic boundaries, capture request/completion timestamps, conservative placement on the output grid, and visible gaps. Require several ordered TUI states in automatic frames before exit; a manual checkpoint cannot substitute. |
-
-The controller checked R1–R4 against the cited implementation paths and R5 against the actual capture/export contract before editing. The revisions add focused checks inside the existing Windows validation work, not new infrastructure.
-
-## Boundaries retained
-
-- Fixed geometry removes runtime resize support. It does not prove wrapping/redraw correctness.
-- Periodic screenshots are a proposed implementation choice. Existing successful single screenshots do not establish sustained capture correctness.
-- A focused actual Windows cadence/wrapping test remains required before further recorder extraction. Its failure requires a bounded design decision, not automatic expansion into the old plan.
-- The three Windows shell runs may share downloaded model caches and fixture setup, but each must produce its own final-code evidence.
-- Existing agents remain stopped. This newly authorized reviewer performs review only.
-
-## Scoped recheck
-
-The same reviewer rechecked R1–R5 and contradictions introduced by their revisions. **All five are resolved sufficiently for implementation; no new concrete blocker or mandatory scope reduction was found.** The revised design is ready to guide implementation when execution is authorized.
-
-The reviewer found no evidence that fixed-geometry periodic screenshots fail as a design. Sustained capture and wrapping correctness remain unproven runtime questions covered by the focused Windows decision gate. Design approval does not establish Windows support or replace that test.
-
-Both review passes were read-only. The controller changed only this review record and the completion spec; implementation did not resume.