Repository navigation
test: add Windows lock fixtures and compile-only validation - #133
Conversation
Fixture-only PowerShell 5.1 + Add-Type lab mirroring Rust std 1.95 LockFileEx semantics pinned from Codex writer_lock.rs. Records guarded probe states, Rust/fs-ext range conflicts, SHARE_DELETE phases, mandatory read, explicit no-follow policy, Restart Manager opener candidates, and a bounded process identity check. Never signals or terminates processes and always reports safeToUnlock=false. Refs #122
- Probe identity waits on the same process handle; exit code is not used as liveness proof - Guard and thread unlock run in finally; unlock failure is unknown - Setup steps are recorded; missing observations are incomplete and failed unhypothesized steps are errors; nonzero exit on any of them - Scratch is created with a verified protected per-user DACL and agents only accept paths under that root - Monotonic budgets with bounded async stdin writes; agents dispose handles on EOF - OutFile must be new, outside scratch, and is written UTF-8 without BOM - Run under the host execution policy; add parse/compile-only check.ps1 Refs #122
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6a8b00ef71
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Please review the current release-candidate head ca3b8ef. All 34 checks pass and the four original findings are implemented/resolved. The latest follow-up only adds bounded non-ASCII fixture diagnostics; it does not claim the earlier intermittent failure's cause was established. The existing review summary still names an earlier commit. |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Problem and scope
Add unpublished Windows lock-observation fixtures for #122, with a PowerShell 5.1 parse/C# compile gate. The synthetic runner records coordination, lock ranges, share-delete behavior, opener candidates and process identity. Every experimental record stays safeToUnlock=false; no production Windows support or native Codex recovery is claimed.
The runner validates private scratch ownership, uses cooperative EOF/exit cleanup and host execution policy, bounds wait parameters, decodes stdin as UTF-8, identifies the actual scratch volume through a marker file, and reports finalization errors with infrastructure exit code 2. Path scoping is lexical rather than a production reparse adapter. The four original review findings are implemented and their threads are resolved.
Verification
Linux CI diagnosis
Run 38362077790 at dc9a210 failed only the Linux x64 Node 22 non-ASCII-home classification assertion (unknown versus live_owner), before owner-lock path matching. The failure logged no decision evidence. Production src, dependencies and the original test logic were unchanged by the Windows work, but this alone does not establish the cause or prove flakiness.
Commit ca3b8ef adds bounded assertion diagnostics: blockers/warnings, lock observation/probe state, owner identity completeness/stability and fixture exit state. It omits transcript contents, argv, cwd and raw paths. Assertions and timeouts are unchanged. The new CI passed without reproducing the failure; the original cause remains undetermined. This is diagnostic hardening, not a claimed root-cause fix.
Refs #122. Keep the research issue open. No merge, release or package publication is part of this request.