# Desktop update readiness proof

Run on macOS 26 / Apple Silicon, Electron 44.10.1, light theme, 1440x900 screen. The application windows used the same default bounds. No agent or project was needed. Complete the first-run Start screen before recording.

Build each source commit in its own worktree after `vp i`:

```
T3CODE_DEV_SEED=0 node scripts/build-desktop-artifact.ts --platform mac --arch arm64 --target zip --build-version 0.1.6 --mock-updates --output-dir <side-artifacts>
```

Build the target package from head, version-labelled 0.1.7, with the same command and `--build-version 0.1.7`. These are local builds of the source commits, not the historical public Beta binaries. Extract each ZIP into a separate run directory. Change only each starting bundle's `Contents/Resources/app-update.yml` updaterCacheDirName to an isolated cache location. Keep that location across that side's relaunch.

Ad-hoc sign each extracted bundle, including the target, with the same test requirement:

```
codesign --force --deep --sign - --identifier com.t3tools.t3code --requirements '=designated => identifier "com.t3tools.t3code"' <app-bundle>
```

Rezip the target using `ditto -c -k --sequesterRsrc --keepParent`. Serve the resulting target ZIP and a generic `latest-mac.yml` with version 0.1.7 and its actual SHA-512 and size through feed.cjs on localhost:3000. Signature checking remains enabled. Do not use an unquoted YAML timestamp in this fixture manifest.

For each side, set PROOF_REPO (its worktree), PROOF_APP (its extracted .app), PROOF_STATE (a fresh isolated T3 home), PROOF_OUT (a fresh output directory), PROOF_SIDE, and FEED_LOG. Start the feed with FEED set to its directory. Run native-driver.cjs. The driver launches the real packaged executable with the isolated home and mock-feed flags, connects only to renderer CDP, and uses macOS accessibility controls for native menus and buttons. It records the real screen, compares two native-dialog screenshots 500ms apart before retaining each still, reads updater state through the shipped preload bridge, and counts actual ZIP GETs in the feed log. Presentation stills are cropped to the native dialog.

Both sides: Check for Updates → Download → wait until downloaded → Check for Updates (ready) → Later → application-menu Quit → launch the same packaged executable → Check for Updates. Base offers Download; head offers Restart. Both remain on 0.1.6 until explicit Restart. Normal Quit exits were code 0. Each initial download made exactly one package GET; relaunch made none.

Run signed-install.cjs separately against the head's same state and cache to exercise explicit Restart. It installed the bundle version 0.1.7 and the old process exited code 0. The newer process did not reach the client: Squirrel's relaunch did not preserve the shell's isolated T3CODE_HOME and encountered the default home's existing server. A subsequent fixture using LSEnvironment for the isolated home was stopped by a macOS keychain password prompt. No existing server was stopped and no keychain password or permissions were changed. Successful opening of the newer client is unverified.

The application-menu Quit path was exercised. Applications-directory installation and a literal Dock click were not exercised; these packages ran from isolated directories.
