Skip to content

Studio: Windows — the hook's roots and trees in one form (#936) #949

Backlog

Description

@danielrispler

Parent

#936

What to build

On Windows the hook finds a session's roots and records its start and end trees, so a turn has files.

  • The hook keeps a copy of read/inside (it does not depend on the core), tested by the core's table through its dev-dependency, as it already copies patched_file.
  • spelled strips canonicalize's \\?\; holds and Named::root compare in one form; claude_trees takes an Edit/Write path absolute on Windows; named_paths keeps C:\… and C:/… tokens whole and reads /c/… as C:/… on a Windows line.
  • Stored roots and tree keys are written in one spelling (git's, through the rule).

Acceptance criteria

  • The hook's copy runs the core's table on every CI.
  • Rows in hook/tests/named_roots.rs with Windows tokens.
  • A Windows-job test: a hook run in a scratch repository records start and end trees and touched roots in one spelling.
  • 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: hook/src/lib.rs, hook/tests/named_roots.rs, hook/tests/record_tree.rs, hook/tests/harness_trees.rs
  • Session: auto mode
  • Route: strong · effort high — stored tree keys and roots, written once and read by every later build

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