Skip to content

Stage packaged Windows ARM64 desktop artifacts for ordinary-user Connect smoke #2050

Closed

Description

@integry

Objective

Make the packaged ProPR Connect desktop smoke launch the real Windows ARM64 artifact as an ordinary user from a controlled, authenticated, user-readable staging root. Keep all diagnostics path-free and bounded.

Authoritative evidence

PR #1988 was intentionally merged only into transport sub-epic 1953-epic-desktop-transport-api at merge commit 1af8b44c1eb300dd807729c31e9b23c68dea3647; propagation to the top epic remains blocked.

Exact Windows ARM64 job 99993860820 in run 33549108145 proves the PS5.1 helper/owner/DACL regression and target-native packaging both pass. The subsequent ordinary-user smoke starts its Node harness but spawn of the expected packaged executable fails immediately with ENOENT, and the raw workspace, executable, and user-data paths enter the CI log. This does not prove an absent package: the packaging step completed successfully. It must distinguish output-layout mismatch from alternate-user path/access failure.

Required correction

  • Before alternate-credential execution, verify the target package root and executable from the privileged workflow context using exact canonical path, non-link directory/file type, target architecture, and expected package layout checks. Emit only a fixed category on failure.
  • Stage the complete packaged application tree, including resources required by Electron, into a fresh canonical root under the runner temporary directory whose exact leaf policy and parent identity are validated. Grant only the generated ordinary user, SYSTEM, and Administrators the minimum required read/execute/traverse access; the ordinary user must not gain write access to the package tree.
  • Pass the staged root to the smoke harness through a narrowly scoped, strictly validated contract. Accept only an absolute canonical root under the authenticated runner-temp parent with the exact generated leaf; reject reparse points, symlinks, path escapes, unexpected owners/types, and arbitrary environment-selected roots.
  • Under the ordinary-user token, independently prove the executable exists, is a non-link regular file, and is readable/executable before spawning it. Preserve shell:false, argument arrays, exact architecture, and the isolated user-data/config authority fixture.
  • Replace raw spawn/filesystem errors with a small fixed allowlist such as artifact-missing, artifact-inaccessible, artifact-type, architecture-mismatch, or spawn-failed. Never emit a raw path, argument vector, username, SID, environment value, exception message, stack, or command line.
  • Clean the staged tree and temporary account through bounded, ownership-checked cleanup without masking the primary outcome.
  • Do not weaken the ACL helper, canonical bridge, owner preservation, ordinary-user requirement, packaged executable requirement, or Connect discovery proof. Do not target or merge into main or the top desktop epic.

Tests and gates

Add deterministic staging-root/path/reparse/access/redaction regressions and a failure-before-spawn regression. Require the real ordinary-user packaged smoke to pass on Windows ARM64 and x64, with the target-native artifact and exact Connect ready proof. Retain Full Suite, Audit/package, Native Windows durability, ordinary-user Windows discovery, and all Darwin/Linux packaged gates.

Coordinate with the sibling Windows packaged lifecycle correction so work remains isolated: this issue owns privileged staging, staged-root validation, and pre-spawn accessibility; lifecycle readiness/timeout/tree shutdown owns the other correction.

Blocking #1953, #2035, and final #1950 integration. Do not merge the generated PR automatically; it requires exact-head CI, Ultrafix, and independent audit.

Activity

  1. propr-dev commented on Sep 1, 2026

    @propr-dev
    Contributor

    ❌ Failed to process this issue

    Error Category: git error
    Error Message: Repository integry/propr is corrupted but has active worktrees: error: cannot lock ref 'refs/remotes/origin/1952-epic-electron-runtime-app': is at e3149c2 but expected ee6eb2f
    From https://github.com/integry/propr
    ! ee6eb2f..e3149c2 1952-epic-electron-runtime-app -> origin/1952-epic-electron-runtime-app (unable to update local ref)

    This appears to be a Git-related issue. The system may have encountered a corrupted repository or git operation failure. The issue will be automatically retried, and any corrupted repositories will be cleaned up.

    Processing Stage: Pre-processing (before AI analysis)

    Technical Details
    Error: Repository integry/propr is corrupted but has active worktrees: error: cannot lock ref 'refs/remotes/origin/1952-epic-electron-runtime-app': is at e3149c20c1e5eb21b2f0fb06415757aae3e01f12 but expected ee6eb2fe4c953b3b33c25845c0dda807c7dbee01
    From https://github.com/integry/propr
     ! ee6eb2fe..e3149c20  1952-epic-electron-runtime-app -> origin/1952-epic-electron-runtime-app  (unable to update local ref)
    
        at updateExistingRepo (file:///usr/src/app/packages/core/dist/git/repoManager.js:80... [truncated]
    

    The system will automatically retry this task. If the issue persists, please contact support.

  2. 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: 2050/gpt-5.6-sol-stage-packaged-windows-ar-20260901-2205-sr8
    • Base Branch: 1953-epic-desktop-transport-api
    • Worktree: issue-2050-20260901-2205-gpt-5.6-sol-sr8

    🔍 Track Task Execution

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

    @integry
    OwnerAuthor

    Implemented by #2056, merged into 1953-epic-desktop-transport-api (c2f4c71). 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

    Labels

    AI-donebugllm-codex-gpt56-sol

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions