Skip to content

research: build and measure a diagnostic-only Rust Windows prototype #163

Done

Description

@abruption

Goal

Build an unpublished diagnostic-only Rust Windows prototype, measure it on the designated quintet-desktop host, and use the evidence to assess recovery feasibility. This is the next practical increment after #122; it contributes to W1-W7 (#146-#152) without declaring those gates complete.

Scope and acceptance

  • Separate experimental executable and schema; every result keeps safeToUnlock=false.
  • Explicit existing home/thread inputs, file identity and current-user ownership checks, requested PID observations, and a coordination-guarded real OS lock probe. No unlock command.
  • Synthetic independent-process tests first, followed by observations of a separately started Codex in a disposable home, without authentication copying or model turns.
  • Record build/source hashes, OS/filesystem/integrity level, Codex version, test expectations/results, and conditions that remain unverified.
  • Preserve unknown for missing/unsafe files, ambiguous ownership or failed probes. Requested PID evidence is not proof of lock ownership.
  • Review the resulting evidence and document what blocks safe cooperative recovery.

The user prioritized this work over preparing another patch release. The work is tracked in Windows support (Rust), milestone #13, ahead of deferred v0.4.8 work. This capability milestone has no version or release date. No production runtime/package changes, force termination, native lock-file deletion, host-policy changes or publication are part of this prototype.

Activity

  1. added this to the v0.4.8 milestone on Oct 21, 2026
  2. abruption commented on Oct 21, 2026

    @abruption
    OwnerAuthor

    Implemented the diagnostic-only prototype in Draft PR #164 (head 69827b1f5a5adba013d19eef82a8c73268d29a52).

    • Windows CI passed 5 Rust unit tests, 8 real-process integration tests, and 13 observer contract tests: https://github.com/abruption/codex-unlock/actions/runs/39555329401
    • The designated Windows host passed the same 8 integration tests with verified executable hashes.
    • Two actual Codex 0.163.0 observations completed with normal own-server EOF shutdown, but diagnostics remained unknown/file_owner_not_self: the High-token-created objects were Administrators-owned. This does not establish real Codex guarded lock interoperability.
    • No usable linked Medium token was obtained from the SSH session (TokenLinkedToken returned 1312). A genuine normal-user execution context is needed for the next W2/W6/W7 measurement.
    • Independent Claude Opus 5.5 and Codex CLI correction reviews completed normally with no additional mandatory findings. Recovery remains no-go pending holder attribution and cooperative release; W1-W7 are not closed by this prototype.
    • The existing tarball nan pin mismatch still fails the package checks. The assertion and dependency pins were not changed.

    Detailed inputs, hashes, failed initial attempts and limits: https://github.com/abruption/codex-unlock/blob/research/windows-rust-diagnostics/experimental/windows-rust-diagnostics/EVIDENCE.md

  3. abruption commented on Oct 21, 2026

    @abruption
    OwnerAuthor

    Windows work is now prioritized in Windows support (Rust), milestone #13, separately from deferred v0.4.8 work. Prototype PR #164 merged as 22857b3eb14b89976673830c601e54f52a42c217; its final head passed 41/41 checks and the main CI completed successfully. No release or package publication was performed.

    New designated-host evidence is in #168 (5bec98c):

    • The measurement runner and its native Codex 0.163.0 process were independently observed as same-user Medium RID 8192 in the intended desktop session, using the previously pinned binary bytes.
    • Synthetic independent-process suite: 8/8 passed, exit 0, no remaining fixture entries.
    • Live native diagnostic: exit 0, current-user ownership passed, coordination acquired/released, whole-range probe returned held.
    • Own app-server ended normally via EOF with exit 0. The thread path was absent afterwards; the diagnostic returned exit 2 / unknown/open_existing_failed (Win32 2), not a measured free lock.
    • Both dedicated temporary tasks were unregistered after completion; the SSH connection was closed. Private result hashes and scoped evidence are documented in the PR.

    This establishes native guarded contention under the measured Medium/NTFS configuration. It does not prove the native lock's entire range, holder attribution or safe third-party release. Defender remained disabled; other environments/modes and the High-token owner/DACL policy remain open. W6/W7 are not marked complete and automatic recovery remains no-go (safeToUnlock=false).

  4. abruption commented on Nov 25, 2026

    @abruption
    OwnerAuthor

    Housekeeping: the diagnostic-only Rust prototype was merged in #164, and #168 records the designated-host measurement and its limits. Closing this prototype/evidence issue as completed. The remaining Windows qualification and safe-recovery questions stay tracked in #146–#152 and the Windows support milestone. This does not mark automatic recovery as supported.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions