Skip to content

test: add Windows lock fixtures and compile-only validation - #133

Merged
abruption merged 6 commits into
mainfrom
ci/122-windows-fixture-compile
Oct 14, 2026
Merged

abruption merged 6 commits into
mainfrom
ci/122-windows-fixture-compile

Conversation

@abruption

@abruption abruption commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

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

  • Local npm ci/check/lint/test (223/223), package smoke and diff checks pass at ca3b8ef. Experimental files remain outside the npm artifact.
  • All 34 checks pass at ca3b8ef in run 38488641889, including Windows compilation and the previously failing Linux x64 Node 22 job. The Windows gate parses scripts, tests pure path/budget/verdict functions and compiles C# without executing native experiments.
  • Two designated-host JSONL files were independently checked. Each contains 102 records: 81 match, 20 recorded, and 1 error; all have safeToUnlock=false, and five agent-stop records report normal exit. Source revisions were 6a8b00e and b363316 on Windows 10, PowerShell 5.1, NTFS, with High-integrity synthetic processes. Hashes and limits are recorded in the fixture README. Both errors were empty-file ReadFile error 33; the amended explicit hypothesis does not rewrite historical results or claim a rerun of the latest script.
  • Actual Codex, Medium integrity, Defender-on interaction, forced-exit release and ReFS remain untested.

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.

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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T01:23:12.063319Z ca3b8ef Manual request
🔒 Security Review ✅ Completed 2026-10-13T06:56:32.441946Z 6a8b00e PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread experimental/windows-fixture/lab.ps1 Resolved
Comment thread experimental/windows-fixture/lab.ps1 Resolved
Comment thread experimental/windows-fixture/lab.ps1 Resolved
Comment thread experimental/windows-fixture/lab.ps1 Resolved
@abruption abruption added this to the v0.4.6 milestone Oct 14, 2026
@abruption

Copy link
Copy Markdown
Owner Author

@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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: ca3b8ef1d6

ℹ️ 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".

@abruption
abruption merged commit b5d5041 into main Oct 14, 2026
34 checks passed
@abruption
abruption deleted the ci/122-windows-fixture-compile branch October 14, 2026 01:25
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