In the rc.1-v0.23.6 Windows x64 update E2E leg (run 24066510747),
`tests/install/windows-bundled-e2e.ps1` threw a bare
`Old payload processes remain alive` immediately after the new package
relaunched, without waiting briefly for post-swap process teardown or
recording which process(es) under OLD's InstallLocation were still alive.
The `finally` evidence collector (`windows-update-evidence.ps1`) also saved
only `AppInstaller` processes, leaving the failing process's PID, PPID,
executable path, and command line absent from both the job log and uploaded
proof artifacts.
- Add `tests/install/e2e-assets/windows-stale-processes.ps1`: scans
`Win32_Process` under `$OldInstallLocation\`, polls up to `-SettleSeconds`
(default 15s) if any are initially alive, writes full process identity
(`ProcessId`, `ParentProcessId`, `Name`, `CreationDate`, `ExecutablePath`,
`CommandLine`) to `proof/stale-processes.json` whenever any stale process
was sighted, logs the initial/remaining records to stdout, and includes
the surviving process summary in the thrown error.
- Update `tests/install/e2e-assets/windows-update-evidence.ps1` to accept
optional `-OldInstallLocation` and record matching processes under OLD/NEW
package install roots or matching `$Identity`/`hermes` to `processes.json`
and stdout (recording `processes-error.txt` without aborting other
evidence on WMI failure).
- Wire both into `tests/install/windows-bundled-e2e.ps1` (initializing
`$old = $null` before `try` so `finally` is strict-mode safe on early
failures) and cover with `platforms("windows")` PowerShell 5.1 tests.