# Desktop guarded-page navigation proof

Environment for all captures: Linux desktop, Electron 44.10.1 under Xvfb and Openbox; 1440x900 window, light theme. Each side runs its own compiled app and fresh database. No real user data or provider turn is used.

Build each checkout with `vp i`, then `vp run build:desktop:bundle`. Install Electron with `node node_modules/electron/install.js` from `apps/desktop` if needed.

Place `prove-desktop.cjs` and `guarded-page.cjs` together. Run each side separately:

```sh
headless-desktop node prove-desktop.cjs CHECKOUT base ARTIFACT_PARENT
headless-desktop node prove-desktop.cjs CHECKOUT head ARTIFACT_PARENT
```

The driver starts an HTTP page on loopback port 48731. This is the actual page under test, with a real Chromium beforeunload handler and a visible server request counter; no external provider or service is simulated. It opens the Browser panel using app controls and visits /other then /guarded. A native mouse click activates the guard. It exercises Refresh, native Ctrl+R, Back, typed /other?typed=1, and Preview menu > Hard reload. It selects Stay when a prompt exists, then repeats each action selecting Leave. On the base there is no prompt to answer. The head returns to /guarded after Back succeeds so typed navigation starts on the guarded page on both sides.

The same driver runs on both commits. The driver uses Playwright's Electron support for app controls and read-only observations of the guest, and xdotool for native clicks, keyboard reload, and native dialog buttons. It does not intercept or replace dialogs, navigation methods, or IPC handlers. All actions go through real UI controls.

Raw videos run at original speed. Captioned videos add only action labels. `caption-recording.py` creates these from each observation report. Screenshots are accepted only after two captures 500 ms apart have identical PNG pixels.

The observation JSON records the actual guest text, address bar, Chromium navigation history, notifications, and HTTP requests for every action. It does not inspect the app's persisted recent-visit database.

Capture by GPT-6.1-Sol through the Codex harness.
