Skip to content

fix: support Strict review file locking on Windows - #464

Open
Bounty-hunter wants to merge 1 commit into
InferMatrixLab:mainfrom
Bounty-hunter:codex/windows-strict-locking
Open

Bounty-hunter wants to merge 1 commit into
InferMatrixLab:mainfrom
Bounty-hunter:codex/windows-strict-locking

Conversation

@Bounty-hunter

Copy link
Copy Markdown

Summary

Strict review currently stops on native Windows during reservation because the reservation index and worktrees require fcntl. Use the operating system's shared and exclusive locks for Strict reservations, run state, and worktree coordination. POSIX uses flock and Windows uses LockFileEx.

  • Preserve contention handling, crash recovery, and worktree retention. The reaper retains lock files so every contender uses the same lock object.
  • Check Windows process liveness through a process handle so polling and bridge shutdown can inspect an owner process safely.
  • Pass Windows runtime variables to the Codex harness and escape bridge paths as TOML strings. The bridge installs signal handlers available on its platform.

Validation

  • 142 targeted tests passed on native Windows. Coverage includes cross-process exclusion and release, shared worktree locks, reservation deduplication, the stdio bridge, and the offline Strict workflow through structured include_score results.
  • python tools/check_spec_freshness.py --strict, the changed files' Ruff F checks, and git diff --check passed.
  • The Strict end-to-end tests use a real local Git checkout with simulated GitHub and model responses.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant