# Startup-link renewal runtime proof

Built and ran Linux Electron Desktop separately from each commit, under Xvfb with D-Bus and an unlocked keyring. Each headless server and Desktop client used fresh, isolated state. Viewport: 1280 × 900; light theme; environment label: Renewal demo. No existing database was copied. No provider or model was needed.

Base: [0f9d4039ed](https://github.com/pingdotgg/t3code/commit/0f9d4039ed771be8329e7cf75d96ad6aabccf0b2).
Head: [1c19241f12](https://github.com/pingdotgg/t3code/commit/1c19241f12f7a6eaf6428bd5d0505f5c131f366a).

For each checkout, install dependencies with `vp i`, install Electron with `node node_modules/electron/install.js` from its desktop package, and build with `vp run build:desktop:bundle`.

Run `node src/bin.ts serve --host 127.0.0.1 --port PORT --base-dir STATE` from the server package, with `T3CODE_DEV_SEED=0`, `T3CODE_TELEMETRY_ENABLED=false`, and `T3CODE_ENVIRONMENT_LABEL='Renewal demo'`. Base used port 37731; head used 37732. Save startup output privately; pairing credentials must never be published.

Launch `headless-desktop node desktop-driver.mjs CHECKOUT SIDE SCRATCH`, where SIDE is base or head and SCRATCH is a fresh timestamped directory shared by the two drivers. The driver disables the local Desktop backend and isolates its profile and server home. It writes a sanitized response/socket log without token values or headers.

Drive it by writing a JSON command to SIDE-command.json in SCRATCH, then await SIDE-response.json. Supported commands include click, fill, pair, dump and shot. The pair command's url field receives the startup Pairing URL privately.

Actual UI steps on each side:

1. Open Environments, then Add environment.
2. Paste the startup Pairing URL into Host and submit Add environment.
3. Select List and observe Connected.
4. Leave the Desktop app and headless server running for more than one real hour, without changing clocks, token lifetimes, or code.
5. During the run and after the hour boundary, open Sharing & access, turn Allow the preview tunnel off and back on, then return to Environments → List. activity.py drives this same action on both sides.
6. Capture the connection state. Two screenshots 500 ms apart were byte-identical on each side before making the final stills.
7. Separately on head, run `t3 auth session revoke --base-dir STATE SESSION_ID` for the renewed device session. The socket closes immediately and renewal/reconnect is refused.

Observed UTC timeline:

- Base paired at 16:42:58.887; renewal returned 401 at 17:41:57.968; socket closed at 17:42:58.913. Desktop displayed “T3 Code on Renewal demo did not accept this device”. Post-hour setting changes displayed “Setting not saved… Renewal demo is not connected.”
- Head paired at 16:42:57.866; renewal returned 200 at 17:41:56.965. The same session and original socket remained active, and the post-hour setting changes succeeded. The session expiry moved from December 27 16:42:57.866 to December 27 17:41:56.936, exactly 30 days after renewal.
- Head revocation closed that socket at 17:44:56.411, followed by 401 responses.

runtime-transcript.json contains sanitized network observations, hashed session identifiers, initial/final database metadata read in read-only mode, and actual post-hour UI text. observe-portable.py is the observer with its scratch directory supplied as an argument.

Videos show real wall-clock UTC. Full recordings begin about five minutes after pairing. The shorter before/after videos play the early wait at 120×, then the boundary and post-hour interaction at 2×. Playback speed changes do not alter app clocks or token lifetimes. Stills have identifying captions added above the app. Raw full recordings are also supplied. The revocation video is real time at 10 fps.

Not exercised: waiting 30 actual idle days, other client platforms, wrong-key renewal, or other bootstrap credential types.

Proof performed by gpt-6.1-sol through the Codex harness.
