Skip to content

Bound every Windows installed-app harness stage and preserve cancellation evidence #2041

Closed

Description

@integry

The exact Windows ARM64 validation job for PR 2039, job 99686501061 in run 33452884848, remained inside Install and exercise ordinary-user Windows application for more than 30 minutes. The previous two ARM64 runs completed this same step in 32 and 39 seconds. Normal cancel and force-cancel requests did not interrupt the active runner promptly.

Audit evidence:

  • Explicit worst-case waits total about 26m32s plus small synchronous work: MSI install 10m and kill, app wait 5m and kill/drain, MSI uninstall 10m and kill.
  • The script still has unbounded external operations around alternate-credential Process.Start/profile load, ordinary-user logon and shortcut probing, CIM profile lookup/removal, recursive filesystem cleanup, registry cleanup, and local-user cleanup.
  • Every product/platform gate on PR 2039 passed apart from this stuck ARM harness execution; x64 ordinary-user flow passed and two prior ARM baselines passed. PR 2039 has been merged so this issue is an independent harness hardening correction.

Implement a focused correction on base 1952-epic-electron-runtime-app:

  • Determine the last reachable stage from available runner evidence if possible.
  • Put a defensible bound around every external operation in the installed-app harness, including setup, alternate-user launch/profile load, probes, uninstall, and cleanup.
  • Ensure cancellation and timeout always terminate owned child/process-tree work and flush a precise last-stage/substage marker before exit.
  • Keep cleanup ownership checks fail-closed; never delete pre-existing users, profiles, shortcuts, registry entries, or install trees.
  • Preserve the machine-wide MSI, ordinary-user launch/readability, reduced-window ready event, uninstall absence, and cleanup assertions without weakening them.
  • Add focused tests for each timeout/cancellation path and prove no secrets enter logs.
  • Validate both Windows x64 and ARM64 ordinary-user jobs plus the complete desktop package matrix.
  • Do not change product behavior, installer scope, window sizing, release trust, or production timeouts.

Activity

  1. propr-dev commented on Sep 1, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 2041/gpt-5.6-sol-bound-every-windows-insta-20260901-0045-zue
    • Base Branch: 1952-epic-electron-runtime-app
    • Worktree: issue-2041-20260901-0045-gpt-5.6-sol-zue

    🔍 Track Task Execution

  2. added a commit that references this issue on Sep 1, 2026
  3. integry commented on Sep 4, 2026

    @integry
    OwnerAuthor

    Implemented by #2042, merged into 1952-epic-electron-runtime-app (e3149c2). Closing the completed child issue during epic issue/PR reconciliation. Final desktop integration and delivery remain tracked by #1950 / #1970; this does not claim a main-branch release.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions