# Pi rewind proof

Base: 16acd71825142d1b8e5abd0aaa5b84f6982e6b13
Head: d23761dec8960fef4e2f5edbe22fcbf94d1dfcdf

Real web client and server, Linux Chromium, Pi 1.6.0, real openai/gpt-6-luna through the configured provider endpoint. No replay agent or mocked protocol. The scenario documentation excludes provider-specific protocol behavior, so this uses manual browser interactions. Both checkouts installed dependencies independently with `vp i` and ran their own `vp run dev`. Both databases and all project folders were created fresh, without copying production or earlier proof state.

## Rebuild

Create two worktrees at the commits above and run `vp i` in each. Put these scripts in one directory. Pi must already have a working model and account configured. Change --model when initializing if necessary, using the same model on both sides.

For each side, choose distinct absolute CHECKOUT, HOME_DIR and DATA_DIR paths, then:

```sh
python3 reproduce.py init --checkout "$CHECKOUT" --home "$HOME_DIR" --data "$DATA_DIR"
```

From each checkout, start the server in its own terminal and keep it attached:

```sh
T3CODE_DEV_SEED=0 T3CODE_ENVIRONMENT_LABEL='Pi proof' vp run dev --home-dir "$HOME_DIR"
```

Wait until it listens. In another terminal:

```sh
python3 reproduce.py seed --checkout "$CHECKOUT" --home "$HOME_DIR" --data "$DATA_DIR" --case primary
```

Open the printed pairing URL once, then navigate directly to /<environment-id>/<URL-encoded-thread-id>. The home/userdata/environment-id file supplies the environment ID; the driver prints the thread ID. Record the browser at 1280x800, light theme. On /hop, click its collapsed prompt, click Edit from here, leave the Edit from here? dialog visible, and click Revert and keep changes. Wait until /hop is restored to the composer and the transcript retains ONE and TWO. Run:

```sh
python3 reproduce.py followup --checkout "$CHECKOUT" --home "$HOME_DIR" --data "$DATA_DIR" --case primary
```

Observed base: ONE, TWO, DISCARDED. Observed head: ONE TWO. The primary recordings show these actual answers, not just a custom inspector. The head public clip removes only its first 3 seconds of navigation/loading; no interaction was removed. The originals are in the archive.

For the source-verification stills, resize both browsers to 1440x1000, expand the follow-up prompt, collapse the sidebar, open the app terminal, and run `python3 <path-to-provenance.py> <HOME_DIR> --brief`. This reads the listening server's /proc cwd, checks its actual TCP port owner, reads Git HEAD there, verifies adapter bytes against git show HEAD, and verifies the web listener's cwd is in that same checkout. It does not read a hand-written commit label. Blur terminal/composer cursors, wait for two screenshots at least 500ms apart to be pixel-identical, then capture. The included still pairs were identical 600ms apart.

## Supplementary cases

Each case uses its own fresh git project and .pi state, in both databases. Run the same seed command with another --case:

- steering: ONE; TWO, with the extension injecting `Reply with exactly the word STEERED` as real Pi steering after TWO's assistant message; /hop; /clonehome; /home; the same history query before rewind. Edit /hop and confirm Revert and keep changes, then run followup with --case steering. Both post-rewind model answers retain ONE, TWO, STEERED. Base's native branch still contains DISCARDED even though this second query omits it; head's branch removes it. This is a retention check, not another claimed visible model-answer failure. Base's public steering clip removes only its idle/pre-probe lead-in (first 33 seconds), leaving the same initial pre-rewind state and controls as head. Original included.
- command: ONE; /checkpoint (no native turn ref); /hop; /clonehome; /home. Edit /hop, confirm, then followup. Both model answers are ONE. This verifies the head command checkpoint path without claiming a visible base failure for this case.
- weak: ONE; /weakretain (fork at current head and prompt TWO); /hop; /clonehome; /home. Edit /home, so the retained checkpoint is /clonehome's weak native turn ref, not the strong TWO turn. Confirm, then followup with --case weak. Base shows `The provider could not roll back this conversation` and keeps /home in the transcript. Head succeeds, removes /home and restores it to the composer. Both follow-ups include ONE, TWO, DISCARDED: DISCARDED predates this chosen checkpoint and must be retained. observations.json records the weak ordinal-4 refs and base ordinal-5 completed vs head ordinal-5 rolled_back.

Primary recordings were made before adding supplementary projects. Later recordings include the same additional synthetic exploration threads in each database. Initial attempts to construct a weak checkpoint instead produced strong or null refs; those threads are not claimed as weak evidence. The confirmed weak case above uses /clonehome's observed weak ref. No provider runs in either evidence database failed. A preliminary Haiku setup request was rejected by the endpoint in a separate, abandoned database; neither evidence database contains it. No .pi state was shared across projects or sides.

## Contents and limits

roundtrip.ts is the real Pi extension. reproduce.py is a convenience driver for the same CLI/RPC seeding and follow-up operations; it does not perform rollback or alter the adapter. provenance.py derives serving-source identity. observations.json exports only synthetic user/assistant text, refs, timestamps and run statuses; native paths are reduced to filenames. Source provenance JSON has no private paths. Sanitized server logs redact pairing links and local paths. Original videos are provided alongside the public clips.

These observations do not cover every fixture combination, particularly first-turn weak/command checkpoints or a missing-timestamp rejection. No changes were committed, pushed, or written to the pull request. Work performed with gpt-6.1-sol through the Codex harness in T3 Code.
