Skip to content

Fix Windows workflows and source integrity - #3

Open
vacterro wants to merge 24 commits into
mainfrom
fix/hermetic-accounts-ci
Open

vacterro wants to merge 24 commits into
mainfrom
fix/hermetic-accounts-ci

Conversation

@vacterro

@vacterro vacterro commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Fix Windows update, account workflow and source-integrity defects:

  • Resolve both parent paths before enforcing the executable replacement directory, accepting valid Windows 8.3/long aliases.
  • Refuse pre-existing explicit grants before creating a temporary read lease. Refuse revoke and expiry sweep if the ACL has changed, preserving detected unowned permissions. This is a pre-mutation check, not an atomic transaction against unrelated ACL writers.
  • Stop a sign-in watcher when its owning window closes.
  • Keep account detail content height independent of scrolling, preventing blank overscroll and keeping advanced controls reachable.
  • Make required CI independent of operator profiles and credentials, first-paint GDI state, and obsolete private-field/viewport assumptions. Authentication refusal and identity assertions remain enforced; credentials are injected only by a separately compiled fixture entrypoint.
  • Bind scenario destination hashes to the reviewed published blobs and pin their text checkout to LF. Original migration source hashes, classifications, payload code and exact-byte integrity assertions are preserved.
  • Keep test diagnostics in UTF-8, use existing checkout folders instead of an operator-only V drive, and give native console-injection evidence a unique temporary directory and hidden disposable console.

Validation: account harness 256 PASS; managed launch harness 109 PASS; access harness 49 PASS (previous implementation fails 3 new controls); identity contract 13 PASS; complete runtime harness 279 PASS plus identity projection 21 PASS; closed-window/scroll controls 4 PASS versus 2 failures on the previous source. Scenarios 42 PASS versus the previous manifest's integrity failure; native Ctrl-V delivers all 4 semantic input records. All eight hermetic Secure Apps Python suites, destructive all-disks acceptance, transaction/rollback checks and three shipped C# builds pass locally. Console title tests pass with the existing explicit desktop acceptance skip. Hosted regs is running on the final revision.

ACL enumeration reference: https://learn.microsoft.com/en-us/dotnet/api/system.security.accesscontrol.directoryobjectsecurity.getaccessrules?view=netframework-4.8.1

@vacterro vacterro changed the title Fix account tests on clean Windows runners Fix Windows update paths and account CI isolation Oct 28, 2026
Reject existing explicit allows before granting a read lease. Revoke and
expiry sweep must refuse an ACL changed since the grant, because removing
all allows for that SID could otherwise erase somebody else's permissions.
Exercise existing FullControl and changed grants with native ACL checks.
@vacterro vacterro changed the title Fix Windows update paths and account CI isolation Fix Windows updates and scoped access safety Oct 28, 2026
Keep the production native credential reader as the default and inject a
probe only in a separately compiled fixture entrypoint. Prove both missing
authentication refusal and the complete authenticated launch argv without
reading or modifying the operator's vendor credentials.

Bound the consent assertion to the connect method so unrelated explanatory
comments cannot satisfy its forbidden-prompt pattern.
Stop the sign-in watcher when its owning window closes. Keep detail content
height independent of the scroll offset so controls remain reachable.

Exercise worker completion and scroll invariance, scroll visible diagnostic
controls before clicking, and use the account-owned workdir setter in the
readiness fixture. Preserve all launch, identity and diagnostic assertions.
@vacterro vacterro changed the title Fix Windows updates and scoped access safety Fix Windows update and account workflow defects Oct 28, 2026
@vacterro vacterro changed the title Fix Windows update and account workflow defects Fix Windows workflows and source integrity Oct 28, 2026
codex added 11 commits October 28, 2026 17:17
A relocated pythonw.exe loses its runtime dependencies. Compile a CI-only windowless forwarder that keeps the interpreter in place and preserves the raw Windows argument tail and exit status.
SAIPATCH follows the shim to a fingerprintable executable. Compile an unsupported test host from source and verify that the target exists; retain the existing vendor-build tier and missing-fixture negative controls.
The quoting oracle selected a mutagen-dependent action on a clean runner. Resolve a shipped zero-dependency Python action for both target probes; retain all 42 assertions, production dependency refusals, exact payload hashes and destructive-action protections.
Replace the fixed 1.2-second startup assumption with a bounded wait on
the exact recorder process. Report wait and exit status on failure.
The same delayed-recorder oracle fails with the old wait and passes
with process synchronization; all four target assertions remain.
Record XML containment while its file handle is open. After cleanup,
an existing root can expand a short alias while the missing child cannot.
Keep every containment assertion and the production privilege boundary;
the outside-scratch writer control still fails the updated oracle.
Resolve the live temporary fixture before probing later refusal branches.
A short TEMP alias otherwise fails canonical-path validation first and
masks the expected non-executable refusal. All assertions stay intact.
The same real dot-segment fixture fails before and passes after; a helper
with broken absolute-path guards still fails two checks. All 35 hygiene
tests pass. The production helper and its launch boundary are unchanged.
Hosted regs40732476949 fails the plugin unit child but discards its captured
assertion output. Emit that output on nonzero exit so the exact failing
assertion is visible. Keep the original child command and exit gate intact.
The same198 tests pass locally; hosted cause remains unconfirmed.
Provision resolution-only CLI/ZCode fixtures and a synthetic account
transport so hosted tests need no operator installation or registry.
Canonical fixture paths retain exact WorkDir and argv assertions across
Windows short/long aliases. Missing commands and engines still fail closed;
console safety assertions remain enabled.
Hosted PowerShell retains RUNNER~1 while Python resolves runneradmin.
Compare the fixture file identity so both aliases bind the same engine.
Different files, absent files and mismatched shared commands still fail.
No production launcher or security boundary changes.
Elevated runners reported failed native mutations as unhealthy (1),
while unelevated callers masked the missing ToolFailed flag with (3).
Set the existing tool-error flag so elevated failures return (2).

Recording fakes exercise both admin facts without acquiring elevation.
Retain no-delete after failed create and no-create after failed delete.
Cold hosted launcher startup exceeds ten seconds. Wait at most sixty
seconds for the exact process, retain timed-out sandboxes, and isolate
each recorder output so a late process cannot satisfy a later case.
Keep shipped launcher resolution and exact drive-root assertions.
Exercise twelve-second recorders in CI; the old wait fails both cases.
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.

2 participants