Skip to content

Session Handoff [windows]: #1094 Landed and Promoted, the Menu Locks Now Coordinate, #1093 Next #2539

Closed

Description

@ptr727

Next steps

Work this lane from the maintainer's Windows host, one issue per branch through drive-pr, and run each fix natively before claiming it fixed. Run the suite from Git Bash. The whole suite passes there, so a new failure on this host is a regression rather than backlog.

  1. menu.ps1: hub-cache cleanup marker does not identify which session fetched it #1093: menu.ps1's hub-cache cleanup marker does not identify which session fetched. It sits next to host-setup: menu.sh and menu.ps1 hub-cache locks do not coordinate across tools #1094's new lock in Invoke-Cleanup, so read Lock-Hub and Invoke-WithHubLock first. Done means a test in TestPowerShellMenuHubLock's shape, run on both platforms.
  2. Bootstrap registers its temporary tree as the live Claude Code skills source, then deletes it #1756: bootstrap registers its temporary tree as the live Claude Code skills tree. Check it against the current bootstrap.ps1 first, since Two concurrent bootstrap runs can remove each other's tree #1764 and install-skills.ps1 fails under a directory whose path contains a wildcard character #1765 closed elsewhere this round.
  3. Fleet Tooling Assumes a POSIX Host, So It Fails on the Windows Hosts the Fleet Supports #1143: a Windows CI job. The suite passes on Windows in about four minutes. See the parked decision queue below for the question, and act on the answer recorded in this link's comments.
  4. The rest of the lane, oldest first.

External blockers

Internal dependencies

  • Use tests/host_capability.py before writing any new Windows-sensitive test. Use bash_or_skip for the shell. Hand bash any script holding a doubled backslash as a file, never through -c.
  • A pwsh behavior claimed for Linux needs a Linux run. This host's WSL has no pwsh, and the mcr.microsoft.com/powershell image has no python3. The working route is to copy /opt/microsoft/powershell/7 from that image into a Docker volume, then run the suite in python:3.12-slim with --network none and DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1, with the volume mounted and pwsh linked onto PATH.

State

The parked decision queue

The queue holds 0 open decision issues. One question from this lane's next steps went to the maintainer at close: whether to add a Windows job for #1143. The answer is commented on this link.

What the last round did

  • Landed #2537 and promoted it through #2538, closing host-setup: menu.sh and menu.ps1 hub-cache locks do not coordinate across tools #1094.
    • menu.ps1 now locks hub.lock with FileShare.None in place of a named mutex, so it coordinates with menu.sh's flock.
    • The lock is re-entrant, since Invoke-FetchHub runs inside a held span. It is skipped under -DryRun, matching menu.sh.
    • It waits only on a held lock, read from the HResult, and fails the task on anything else.
  • Three local strict-review passes ran.
    • The first two raised five findings. Four were fixed: dry run creating files, an unbounded wait on any IOException, an uncaught directory-creation failure that ended the session, and a missing dry-run test.
    • One was declined: a portable fixture for a non-contention IOException.
    • The third pass raised none.
  • Declined Copilot's P1 asking to bound the lock wait.
    • The base's WaitOne() and menu.sh's flock block without a timeout too.
    • A hold as long as an OS package upgrade is the documented case.
    • A dead peer releases a file lock.

What not to repeat

  • git worktree remove while the session's working directory sits in the worktree. It recurred a third time. git worktree add followed by a cd into the new tree moved the session's primary working directory there. The remove then emptied the tree but could not delete the directory itself. Leave the worktree before removing it. Where it has already happened, rmdir the empty leftover once the working directory has moved.
  • Testing a fallback with a trigger that never reaches it. A path under a regular file makes New-Item -Force fail without throwing on Windows, so the test reached the later open failure instead of the catch it was written for. Stub the cmdlet in the harness body, as test_a_cache_directory_that_cannot_be_created_returns_the_failure_value does, and mutation-check the test.
  • Handing a reviewer-denied action back to the main seat. A strict-review subagent left a gitignored .venv in the worktree and was denied deleting it. That is the maintainer's call, not something to redo from another seat. Here the worktree removal took it.

New learnings

  • A held FileShare.None open raises IOException with HResult 0x80070020 on Windows and raw errno 11 on Linux. A full disk or a read-only mount is a plain IOException too, so the type alone does not mean contention. This is recorded in Lock-Hub's comment in host-setup/menu.ps1.
  • On Linux, .NET implements FileShare.None as a non-blocking exclusive flock. That makes a menu.ps1 lock and menu.sh's shared and exclusive locks one lock, as TestPowerShellMenuHubLock's cross-tool cases pin.

Activity

  1. added
    handoff
    on Oct 8, 2026
  2. ptr727 commented on Oct 8, 2026

    @ptr727
    OwnerAuthor

    Parked decision queue at close: 0 open decision issues. Asked from next step 3: whether to add a Windows CI job for #1143. The maintainer answered add a windows-latest job running the suite, recorded on #1143. Step 3 is now to author that job as its own PR, on the gate-change path.

  3. ptr727 commented on Oct 8, 2026

    @ptr727
    OwnerAuthor

    Continued in #2550, round 8 on track windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    handoff

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions