# Desktop Trusted Types proof

Environment: Linux x86_64, Electron 44.10.1, headless-desktop (Xvfb), 1600×900 window at (0,0), light theme. Browser guest: 952×820, at (648,80). Each commit uses its own fresh T3CODE_HOME and XDG_CONFIG_HOME; T3CODE_DEV_SEED=0. No model calls or copied databases.

Build each checkout with `vp i`, then `vp run build` from apps/desktop. Download Electron with `node node_modules/electron/install.js` from apps/desktop. Launch the compiled app through headless-desktop with `--no-sandbox --disable-gpu --remote-debugging-port=<CDP>` and a distinct T3CODE_PORT. Keep the process attached to the shell.

Run `node page.cjs` to serve the local CSP reproduction on port 47731. This page reproduces the exact browser CSP condition; it does not emulate a provider or external service. Its own innerHTML probe must report that Trusted Types are enforced.

On each fresh desktop app: click Start, Add project, Local folder; select an empty scratch Git repository named annotation-project. This opens a new thread draft. Open right panel, choose Browser, enter http://127.0.0.1:47731/. Resize the app to 1600×900 at (0,0) with xdotool and drag the right panel separator to x=648. Use the same folder and viewport on both sides.

Run drive.cjs with REPO pointing to that checkout, CDP to its debugging port, SIDE=base or head, DISPLAY and XAUTHORITY matching its headless-desktop display. The driver clicks Annotate preview, moves the native mouse to the button, waits, clicks it, and captures the selected state. It records the entire interaction with ffmpeg and takes native display stills only after two captures 500ms apart are identical. Output goes to a new timestamped directory beside the driver.

Supplement: cancel annotation, then run recording.cjs with the same environment. It Shift-clicks Capture screenshot, moves over the same button, captures the recording cursor, and stops recording. The head's user and agent cursors both contain SVG elements; the base throws on the recording cursor's innerHTML assignment before either cursor is installed.

The only intentional TrustedHTML security error on both sides is the page's caught enforcement probe. Base additionally throws from preview-pick-preload.cjs during annotation and recording; head has no such preload exception.

The app's selected model is never invoked. No Google account or Google Chat session was used.
