Skip to content

test: Compare Rust and TypeScript lock adapters - #128

Merged
abruption merged 2 commits into
mainfrom
test/122-rust-interop
Oct 14, 2026
Merged

abruption merged 2 commits into
mainfrom
test/122-rust-interop

Conversation

@abruption

@abruption abruption commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #123; merge the base first and retarget/revalidate this PR afterward. Refs #122 (research remains open).

The first Rust experiment only compares Rust processes with each other. This adds a synthetic Unix interoperability test against the existing production TypeScript guardedProbeOnce adapter and its fs-ext-extra-prebuilt locking primitive.

The fixture-only Rust child creates its own private directory; neither the child nor the harness accepts an existing lock path or Codex home. The harness verifies Rust-held → TypeScript-held and Node-held → Rust-held, cooperative release, busy/missing coordinator refusal, and unchanged contents/inode/owner/mode/mtime. Commands and cleanup are bounded, cooperative, and send no process signals. The experiment CI runs the comparison on macOS/Linux and retains Windows Rust-to-Rust tests.

Validation: Rust 1.90.0 fmt, clippy (-D warnings), 4 fixture tests; local macOS cross-implementation harness; npm ci, check, lint, 223 tests, package smoke, and git diff --check passed.

Limit: this verifies synthetic primitive interoperability with our current TypeScript implementation, not actual Codex ownership or Windows Codex interoperability. Windows lock ranges/share modes, owner identity, and safe cooperative recovery remain research gates. No runtime CLI, npm artifacts, releases, or publishing changes.

Current validation

Rebased onto the latest #123. At current head 721f8f60c904b6ae11cb05f51788c93874aae098, all 4 available checks pass: the three-OS Rust experiment matrix and GitGuardian. Linux/macOS run the cross-implementation harness; Windows retains Rust-only fixtures. Latest changes clarify command-receive versus response/exit budgets and best-effort cleanup.

Supplemental current-head read-only Codex CLI review completed with no required fixes: review record. Hosted Code Review completed at current 721f8f6 without major issues. Hosted Security Review was requested, but its summary still points to e7315c4; current dedicated security completion remains unconfirmed. The older security result is not represented as current after rebasing.

Main-only repository CI remains a gate after #123 merges and this PR is retargeted. Four experiment checks are not the full production gate.

@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:25:55.116890Z 7e1a77d Manual request
🔒 Security Review ✅ Completed 2026-10-13T05:20:04.820654Z e7315c4 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.

@abruption

Copy link
Copy Markdown
Owner Author

@codex review

Please review the current commit 721f8f60c904b6ae11cb05f51788c93874aae098. The existing automated summary names an earlier revision. Latest changes clarify fixture timeout/cleanup limits; the stacked PR has been rebased onto its updated parent.

@abruption

Copy link
Copy Markdown
Owner Author

@codex security review

Please review the current commit 721f8f60c904b6ae11cb05f51788c93874aae098. The existing automated summary names an earlier revision. Latest changes clarify fixture timeout/cleanup limits; the stacked PR has been rebased onto its updated parent.

@abruption abruption left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Supplemental read-only Codex CLI review completed for the current commit 721f8f60c904b6ae11cb05f51788c93874aae098 with no required fixes. The frozen final input (SHA-256 fdb0b15cf456d5be2d9e9051435e059ca125ff19dcadf97ec44f29019da64a7a) included both current lab source trees, the interop harness, documentation, and deltas. CLI 0.162.1 used its isolated default model; actual model identity was not present in response metadata. No tools/tests/network were executed by the reviewer.

The latest timeout/cleanup wording matches the implementation: Rust's parent uses one shared exit/response deadline, Node uses a separate bound per response/exit wait, child command-receive budgets do not impose a wall-clock I/O/termination limit, and failure cleanup remains best effort on known disposable fixture paths after exit is confirmed. The source-only review does not establish Windows production recovery or actual Codex interoperability. Nonblocking cleanup/error-reporting improvements remain laboratory research concerns.

This CLI review supplements, and does not impersonate, the separately requested current-head hosted Code/Security reviews. CI results and hosted review status are recorded independently in the PR description.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 721f8f60c9

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

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 721f8f60c9

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

Base automatically changed from research/rust-windows-experiment to main October 14, 2026 01:16
@abruption
abruption force-pushed the test/122-rust-interop branch from 721f8f6 to 7e1a77d Compare October 14, 2026 01:21
@abruption

Copy link
Copy Markdown
Owner Author

@codex review

Please review release-candidate head 7e1a77d. Rebased after #123 squash merge and retargeted to main. Both original commits are patch-identical; full repository CI now runs. Prior-head reviews are not being represented as reviews of this new commit.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 7e1a77da20

ℹ️ 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 8d79d0a into main Oct 14, 2026
37 checks passed
@abruption
abruption deleted the test/122-rust-interop branch October 14, 2026 01:35
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