Skip to content

Studio: Windows — a bare start: data folder, .exe names, OS random bytes, the browser opener (#936) #939

Done

Description

@danielrispler

Parent

#936

What to build

plotkeeper starts on Windows, opens the page and keeps its data where Windows programs do. Its own non-draft PR to main after 01, before /implement-spec; Gate A downloads the binaries its merge uploads.

  • data_dir(home) and runs_dir gain a Windows arm, home\AppData\Local\plotkeeper.
  • Every binary name built or matched adds EXE_SUFFIX: HOOK_BINARIES and its users, the hook copies, the hook's own-path check.
  • The answer nonce and the page token take getrandom on every platform.
  • The mode(0o600)/mode(0o700) calls become cfg(unix); on Windows files inherit the profile's ACL.
  • The browser opener calls ShellExecuteW with the URL (not cmd /c start, whose % expansion meets the percent-encoded project fragment).
  • windows-sys becomes a Windows-only dependency of the hook and the server with every feature Phase 1 needs (opener, Toolhelp, process times, security and file flags), so later tickets leave the manifests alone.
  • docs/studio/research/windows.md gains spike round 2 (from local-evidence/2026-11-30-windows-port-grilling/spike2/RESULTS.md), corrects its Codex reading (hooks run through the session's shell, PowerShell on the runner) and updates its site counts.

Acceptance criteria

  • hook/tests/data_folder.rs gains Windows rows for the data folder and runs on the Windows job.
  • A test row checks the hook copies are found and made under .exe names on Windows.
  • The page token and nonce come from getrandom; no code reads /dev/urandom.
  • docs/studio/behaviour/storage.md names the Windows data folder.
  • windows.md holds round 2's durable figures and the Codex correction.
  • Both Windows legs are green on the PR.
  • npm run check and npm run check:windows pass.

Reading

Touches

  • Files: hook/src/lib.rs, hook/src/answer.rs, hook/Cargo.toml, server/src/web.rs, server/src/lock.rs, server/src/hook_copies.rs, server/src/bin/plotkeeper.rs, server/Cargo.toml, hook/tests/data_folder.rs, docs/studio/research/windows.md, docs/studio/behaviour/storage.md
  • Session: auto mode
  • Route: strong · effort high — persistence (the data folder's place, fixed for every later phase) and the trust boundary of the answer nonce

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