# Lost prepared desktop installer: real-app comparison

Built the base and head separately with:
`T3CODE_DEV_SEED=0 vp run dist:desktop:linux --build-version 1.2.3 --mock-updates --mock-update-server-port 19300 --output-dir "$PROOF_ROOT/<side>-build"`

Set PROOF_ROOT to an empty scratch folder. The attached feed.py and lose-download.py use that variable. Run feed.py with base or head; it copies that side's actual built AppImage into its isolated run directory and creates the two marked feed payloads. Run the repository's start:mock-update-server with T3CODE_DESKTOP_MOCK_UPDATE_SERVER_ROOT pointing to $PROOF_ROOT/feed and T3CODE_DESKTOP_MOCK_UPDATE_SERVER_PORT=19300.

Start each side's installed T3-Code.AppImage under headless-desktop with APPIMAGE_EXTRACT_AND_RUN=1, --no-sandbox --disable-gpu, T3CODE_PORT=19301, T3CODE_DEV_SEED=0, T3CODE_ENVIRONMENT_LABEL='Desktop host', T3CODE_DESKTOP_MOCK_UPDATES=true, and T3CODE_DESKTOP_MOCK_UPDATE_SERVER_PORT=19300. Give each side fresh T3CODE_HOME, XDG_CONFIG_HOME and XDG_CACHE_HOME under its own run directory.

Run the attached hold-proxy.mjs from a dependency-installed checkout. It forwards actual host HTTP/WS traffic on port 19302 and holds only server.commitDesktopUpdate frames. It preserves the Host header for DPoP authentication; it supplies no app responses.

The real web client ran with APP_VERSION=1.2.5, T3CODE_DEV_SEED=0, and T3CODE_ENVIRONMENT_LABEL='Update client'. Browser viewport: 1280x800 CSS pixels, light theme, 2x image scale. Linux x64 AppImages, Electron 44.10.1 on Xvfb. No provider turns or copied database were used.

For each side:
1. Mint a real host pairing code using its CLI pair --base-dir command.
2. In the web client, Settings -> Environments -> List -> Add environment, pair http://127.0.0.1:19302 with that code. Remove the previous side's saved environment before pairing the other side.
3. Start browser recording. Click 'Update for Desktop host server'; click Confirm.
4. Wait for GET http://127.0.0.1:19302/proof/status to return {"held":1}; the host log must report update downloaded version 1.2.5 and remote update prepared.
5. Run lose-download.py <side>. This deletes only the downloaded 1.2.5 AppImage, retaining update-info.json, and changes latest-linux.yml to 1.2.4.
6. GET http://127.0.0.1:19302/proof/release.
7. Capture the client outcome and actual updater log. Compare the installed file with the original build and inspect its final marker.

Base: updater fetched 1.2.4, called quitAndInstall, overwrote the installed AppImage with the marked 1.2.4 feed payload, and quit. Client displayed Restarting. Automatic relaunch lost its Xvfb D-Bus/display session.
Head: updater found 1.2.4 but refused it with 'The update feed no longer offers 1.2.5.' Client stayed Connected on 1.2.3, the environment endpoint still answered, and the installed AppImage was byte-identical to its original build.

The mock feed payloads are copies of the real side-specific 1.2.3 build plus version markers, matching the reported marker-based reproduction. This proves actual updater selection, replacement and quit behavior; it does not claim that the replacement payload's embedded app version is 1.2.4. No unit tests are used as evidence.

Recordings were inspected via contact sheets; stills were opened and visually inspected, and repeated screenshots were byte-identical. The runtime transcript removes private paths, run IDs and request IDs. The head transcript ends before intentional teardown.
