Skip to content

fix(session): refuse parent-backed private VM disks - #937

Merged
antropos17 merged 1 commit into
masterfrom
codex/vm-standalone-disk-20261015
Oct 14, 2026
Merged

antropos17 merged 1 commit into
masterfrom
codex/vm-standalone-disk-20261015

Conversation

@antropos17

@antropos17 antropos17 commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Private VM registration previously inspected only the attached file, allowing an otherwise eligible differencing disk to refer to an unheld parent. Version-three registration now requires a standalone Microsoft fixed/dynamic VHD or VHDX through Windows information-only APIs with NO_PARENTS, while the original file and ancestors remain held. Loss of that observation permanently refuses the lease. Legacy read-only records retain compatibility.

The Windows qualification driver adds eleven actual disposable image controls before VM creation, including present/missing parents, corrupt/mismatched formats, disposed handles and retained writer denial. Source hashes and bounded failure progress remain in the existing receipt. No lifecycle permission or production acceptance is added.

Validation: both registration regressions failed before implementation and pass afterward; 167 local Windows checks passed (ten elevated creation cases explicitly skipped locally), the full PowerShell control bundle passed, and all seven native helpers built. All five required CI contexts passed on exact source 555dd89 in run 38651247952.

Windows11 run 38651247611 attempt 1 passed all eleven actual native disk-image cases, protected registration/upgrade inspection counts 1/1 and all 55 mutation denials. All 44 installed-owner inputs and 43 image-control inputs match the frozen source (raw CRLF differences retained). Windows setup and the fixed standard-user task passed. The overall run FAILED later in the unchanged Claude task with scratch-limit; cancellation, stdio, owner lifetime and the guest installed-owner corpus were not reached. That failure is retained and is not a full-lab pass. VM Off/removal and all four finite file removals were confirmed, with no cleanup failure. Raw receipt: 545537 bytes, SHA256 17ab8b330fc9a3a645b4c4276ae251b35350d64df6118106c96c3e9629576da6.

Both review passes were by current Codex. Overall acceptance stays 30/60; A1-A4 remain unreviewed and launch stays closed. Claude scratch observation remains a separate follow-up; its code and limits were unchanged by this PR.

@antropos17
antropos17 merged commit 9f0f3a4 into master Oct 14, 2026
7 of 8 checks passed
@antropos17
antropos17 deleted the codex/vm-standalone-disk-20261015 branch October 14, 2026 23:28
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