Skip to content

Studio: Windows CI — a real Claude Code session recorded end to end (#936) #952

Backlog

Description

@danielrispler

Parent

#936

What to build

The Windows job runs a real Claude Code session and fails if it isn't recorded with its files and project, so a hook that silently stops running is caught on every PR.

  • A Rust test that runs when PLOTKEEPER_E2E_CLAUDE is set, and fails if claude.exe is then missing. It serves a stand-in Anthropic Messages API from inside the test (a process from another CI step is gone), runs plotkeeper install --yes in a scratch home, then claude -p with ANTHROPIC_BASE_URL at the stand-in and --allowedTools Write; the stand-in asks for one Write of a file in a scratch repository, then ends the turn.
  • If claude plugin install cannot work offline in CI, the test passes the rendered hooks through --settings and its doc comment says so.
  • windows.yml installs Claude Code's native build and sets the variable.

Acceptance criteria

  • The log holds SessionStart, UserPromptSubmit, Stop and SessionEnd from plotkeeper-hook.exe with claude.exe as the agent.
  • The core reads one turn whose files are that file and whose project is the scratch repository.
  • Without the variable the test is skipped on macOS and Linux.
  • Each Windows-only test row is shown red (an assertion failure), then green, on Windows runs of this ticket's own pushed issue-* branch, x64 and arm64; Daniel approves the push when auto mode stops it (Spec: Windows Phase 1 — Claude Code recorded on native Windows, x64 and arm64 #936 breakdown, Q41; the rule is in docs/agents/issue-tracker.md once 01 lands). Both run links are in the PR.
  • npm run check and npm run check:windows pass.

Reading

Touches

  • Files: new server/tests/e2e_claude.rs, .github/workflows/windows.yml
  • Session: auto mode
  • Route: medium · effort medium — one test and one workflow step, run only in the Windows job

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentwindows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions