Skip to content

feat(experimental): add diagnostic-only Rust Windows prototype - #164

Merged
abruption merged 8 commits into
mainfrom
research/windows-rust-diagnostics
Oct 21, 2026
Merged

abruption merged 8 commits into
mainfrom
research/windows-rust-diagnostics

Conversation

@abruption

@abruption abruption commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Problem and resulting behavior

The existing Rust lab exercises synthetic locks but cannot inspect Windows file or process identity. This adds an unpublished diagnostic-only NTFS prototype with explicit home/thread inputs, 128-bit file IDs, exact-user ownership checks, requested-PID observations and a coordinator-guarded lock probe. Every result retains safeToUnlock=false; the requested PID is never treated as a proven holder.

Synthetic fixtures create private objects and exit cooperatively. A separate operator-run observer starts its own disposable-home Codex 0.163.0 app-server, submits no model turn, checks its effective configuration, records diagnostics, and closes its own stdin normally. Startup uses a fresh file-auth store and no-auth loopback provider with hooks/plugins/snapshots disabled. Normal read-only profile skill discovery is explicitly recorded; full profile isolation is not claimed.

Measured results

  • Windows CI: Rust unit tests 5/5, independent-process integration tests 8/8. Exact CI executable hashes were checked locally and on quintet-desktop.
  • quintet-desktop: the transferred integration binary passed 8/8, exit 0, no remaining synthetic fixtures. Environment: Windows 10/NTFS, High SSH token, Defender real-time protection already disabled.
  • Actual Codex 0.163.0: two completed observations, own server normal exit 0, zero connections to the loopback provider. Diagnostics returned exit 2, unknown/file_owner_not_self. The High-token-created home/lock objects were Administrators-owned. The ownership refusal occurred before the native lock probe; real Codex whole-range interoperability is not established.
  • The SSH token's linked-token query returned error 1312; Medium execution was not available through that token and was not simulated.

Pinned sources, executable/result hashes, failed first attempts and limits

Validation and review

  • Repository install/type-check/lint passed; tests 273 total / 270 passed / 3 platform skips. Local Rust tests: 3 passed; Windows target check/clippy passed. Observer schema/RPC/startup tests: 13 passed, also added to Windows CI.
  • Independent read-only CLI reviews: Claude Code 2.1.306, requested and response-reported claude-opus-5-5; Codex CLI 0.163.0, isolated default model (actual response model not exposed). Frozen-input reviews found result/RPC/entrypoint/encoding/configuration validation gaps; these were fixed and regression-tested. The correction review completed normally in both CLIs with no additional mandatory findings. Opus 5.5 encountered no safety-filter interruption.
  • Package gate correction (9022cc2): identical tarball reproduction isolated npm registry _hasShrinkwrap metadata as the cause of local-file pin drift. The smoke now serves the newly packed bytes through a read-only loopback registry, shuts it down after cache priming, and installs offline into a fresh consumer. Exact runtime pins, complete runtime inventory, artifact/link checks, native CLI/JSON and type-only checks remain required. Synthetic regression covers metadata true vs false and local-file installation with a deliberately newer compatible dependency. No runtime pins or production behavior changed.
  • Correction validation: npm ci/check/lint passed; full local suite 274 total / 270 passed / 4 environment skips / 0 failed. Package smoke passed on Node 24.16/npm 11.15 and CI-equivalent Node 22.13.0/npm 10.9.2; the new regression passed on both. A separate read-only Codex subagent found no blockers (not an additional external CLI review). GitHub checks for exact head 9022cc2f95c62ad156225245c7af5a777f8ec3a1: 41/41 successful, including Linux/macOS package artifacts, package-smoke, supported-tests and CodeQL. User-authorized Draft removal follows these passing gates; no merge or publication is performed.

Recovery assessment

Rust diagnostic primitives are viable under the measured synthetic conditions. Automatic recovery remains no-go: native High ownership needs policy review and genuine Medium measurement, while W4 holder attribution and W5 cooperative release remain unresolved. The observer's EOF controls only its own server; it is not a third-party recovery API.

Related: #163, #146–#152. W1–W7 remain open. Production TypeScript, npm contents, version and supported-platform claims are unchanged.

Proxy review correction

Commit af5ab64 addresses the Codex P2 finding: both npm callers now share a proxy environment helper that merges inherited exclusions and forces 127.0.0.1, localhost, and ::1 into both NO_PROXY and no_proxy. External proxy settings remain available for dependency downloads. The regression runs real npm installs against a rejecting proxy with conflicting exclusions and verifies zero loopback requests reach that proxy.

Validation for this correction: npm ci/check/lint and package smoke passed; full suite 275 total / 271 passed / 4 environment skips / 0 failures. Both focused tests passed with Node 24/npm 11 and CI-equivalent Node 22.13.0/npm 10.9.2; package smoke also passed on Node 22.13.0/npm 10.9.2. A read-only subagent found no blocking issue. GitHub checks for final head af5ab6410d9323209d8b87b716b1665e06499290 passed 41/41. The Codex automatic reviews at 9022cc2 completed; their P2 proxy finding was addressed in af5ab64 and its thread resolved. No separate automatic review result was posted for af5ab64. The PR merged as 22857b3eb14b89976673830c601e54f52a42c217, and main CI passed. No release or publication was performed.

@abruption abruption added this to the v0.4.8 milestone Oct 21, 2026
@abruption
abruption marked this pull request as ready for review October 21, 2026 07:31
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-21T07:37:24.628894Z 9022cc2 Draft marked ready
🔒 Security Review ✅ Completed 2026-10-21T07:38:05.982526Z 9022cc2 Draft marked ready
ℹ️ 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: 9022cc2f95

ℹ️ 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 scripts/package-smoke.mjs Resolved
@abruption
abruption merged commit 22857b3 into main Oct 21, 2026
41 checks passed
@abruption
abruption deleted the research/windows-rust-diagnostics branch October 21, 2026 07:52
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