Skip to content

Studio: Windows builds — the workspace compiles, tests gated, the Windows CI job (#936) #938

Done

Description

@danielrispler

Parent

#936

What to build

plotkeeper compiles for Windows, x64 and arm64, and a Windows CI job runs its tests green. Its own non-draft PR to main, before /implement-spec (docs/agents/ticket-authoring.md, "Checks that need CI").

  • Every Unix-only item gets a cfg(unix) gate and a Windows arm. Interim arms, filled in by later tickets: the process runner is a plain std arm (spawn, wait with the deadline, kill the direct child) so git and gh run on the Windows job; the answer hook refuses on Windows (answers nothing, so Claude Code asks in its terminal); pid_alive answers alive on Windows (a session ends by its SessionEnd only); every other refused feature refuses with a Windows line. run_logged returns RunError::Start on Windows.
  • Every Unix-only test is gated with cfg(unix) (or ignored on Windows) and a one-line reason; the PR lists each one. server/examples/sandbox_gate.rs is gated.
  • npm run check:windows = cargo check --workspace --all-targets --target x86_64-pc-windows-msvc, not part of npm run check; the PR gives its measured cold and warm times.
  • .github/workflows/windows.yml as Spec: Windows Phase 1 — Claude Code recorded on native Windows, x64 and arm64 #936 "CI and the local check" says: windows-latest and windows-11-arm; ready PRs, pushes to main and to issue-* (drafts included); a pull_request event from an issue-* head is skipped; npm's script shell is Git Bash at its full path; npm run check:rust without slot.mjs; cargo clippy --locked --workspace --all-targets -- -D warnings for the Windows target; on main pushes, npm run build, the release binaries and an upload of plotkeeper.exe, plotkeeper-run.exe, plotkeeper-hook.exe, plotkeeper-answer.exe as plotkeeper-windows-<arch>.
  • If the arm64 leg meets a crate or build blocker x64 does not have, mark it continue-on-error and tell Daniel (Q39).
  • Docs: AGENTS.md "Checks" (run check:windows for a Rust change when the target is installed) and "Tests" (helpers set USERPROFILE; new Unix-only code gets a Windows arm or a gate with a reason); docs/studio/development.md (the Windows job, check:windows); docs/agents/issue-tracker.md (line 52's "CI skips drafts" reworded; the merger waits on each integration push's Windows run, a red run going back to the implementer; an implementer whose ticket has Windows-only rows pushes its ticket branch, Daniel approving, and shows them red then green there, Q41).

Acceptance criteria

  • npm run check:windows passes on the Mac.
  • Both legs of windows.yml are green on the PR, and the run's test count is in the PR beside the macOS count.
  • The PR lists every gated test with its reason.
  • log-writers-hold-the-log-lock's tests run on Windows unchanged.
  • A push to main uploads both plotkeeper-windows-x64 and plotkeeper-windows-arm64 (checked after merge; Gate A needs them).
  • A push to a draft PR's issue-* branch starts one Windows run; a push to a ready issue-* PR starts one, not two.
  • On Windows, the answer hook answers nothing, and the server ends no session by pid.
  • The docs say what this ticket's description lists.
  • npm run check passes.

Reading

Touches

  • Files: new .github/workflows/windows.yml, package.json, workbench/src/run.rs, workbench/src/lib.rs, hook/src/main.rs, hook/src/lib.rs, hook/src/answer.rs, hook/src/sys.rs, server/src/runner.rs, server/src/switchboard.rs, server/src/lock.rs, server/src/bin/plotkeeper-run.rs, server/examples/sandbox_gate.rs, hook/tests/, server/tests/, workbench/tests/, core/tests/, AGENTS.md, docs/studio/development.md, docs/agents/issue-tracker.md
  • Session: auto mode
  • Route: strong · effort high — concurrency in the interim runner arm and the trust boundary of the answer hook's refusal; a new CI job whose first runs are untested edge cases

Activity

  1. added
    ready-for-agent
    on Nov 30, 2026
  2. added
    windows
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready-for-agentwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions