Repository navigation
fix(agent): handle Windows installer permission semantics and retain failure diagnostics - #1322
Merged
Merged
Conversation
AnthonyRonning
force-pushed
the
codex-wininst-maple
branch
3 times, most recently
from
October 27, 2026 14:02
d6d773a to
3d12eed
Compare
AnthonyRonning
force-pushed
the
codex-wininst-maple
branch
from
October 27, 2026 14:12
3d12eed to
88d504e
Compare
AnthonyRonning
marked this pull request as ready for review
October 27, 2026 14:12
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Windows installer preflight rejects safe temporary files/directories because it treats
OWNER RIGHTSas an independent foreign writer. It also treats the directory-onlyFILE_DELETE_CHILDbit inherited by NSIS checker files as file modification authority. Both checks can stop installation before any destination files are created.Resolve an OWNER RIGHTS allow ACE only after validating the same handle's actual owner against the existing user/SYSTEM/Administrators allowlist. Classify that handle before applying mutation rights, retaining the full directory mask and every actual file mutation right. Native regressions cover the exact Python and NSIS ACLs plus owner and foreign-writer rejection controls. Authenticode, publisher/timestamp, path, reparse and hardlink policies remain intact.
Installer diagnostics now distinguish NSIS phases, capture bounded read-only checker output, and preserve isolated fixture presence/type evidence before cleanup. Cleanup errors retain the original failure. No automatic installer retry is added.
Validation:
foreign-write-acerefusal. The current production preflight API passed against both checker copies under the original Python ACL and the NSIS ACL: four successful calls, with no destination changes. This verifies native admission, not a complete signed installation or upgrade.The temporary historical diagnostic workflow/scripts/example were removed after preserving their logs, inventories and hashes. The final cleanup commit uses
[skip ci]to avoid repeating tests for unchanged production code; full application CI/hooks were intentionally waived. Existing producer failures remain failures. Fresh master-signed NSIS installation and A-to-B upgrade qualification remain necessary after an approved merge. This PR performs no merge, release or Windows feed enablement.