# Reproduce the real-app captures

All agent turns use the repository's recorded Replay (dev) provider. Antigravity is a real configured provider instance used for the metadata switch; these captures do not require an Antigravity or Claude turn, a paid model, or credentials from another process.

Use two isolated checkouts, one at b33c3308292c0e1161e7a56c0aa6248a859fa593 and one at 41b422792b671f2045d6cbc6a34fb86ade143090. Run `vp i` in both. Place `manual-lineage.ts` in `scripts/scenarios/` in each checkout.

In each checkout, start the real web app with a new, empty data directory:

```sh
T3CODE_DEV_SEED=0 node scripts/scenarios/start-app.ts web "$PROOF_HOME" 127.0.0.1 "$PROOF_PORT"
```

The two sides used ports 43115 and 43116. Keep each app's terminal alive. In another terminal in the matching checkout:

```sh
node scripts/scenarios/manual-lineage.ts "$PROOF_HOME" "http://127.0.0.1:$PROOF_PORT" seed
```

The driver creates a project, a parent waiting on a recorded question, a sibling, and a delegated child. It waits for the child's recorded first turn to finish, stops the parent without stopping children, configures the child as Antigravity Review, and renames it Updated review. It prints the parent and child URLs, task states, and whether the child is present in a shell snapshot requested with omitIdleSubagents=true.

Pair a browser with this server using its own CLI:

```sh
node apps/server/src/bin.ts pair --base-dir "$PROOF_HOME"
```

Use separate browser profiles for the two servers, a 1440x900 CSS viewport and the light theme. Open the printed parent URL. Thread details starts open; expand Previous agents and hover its child row. Compare the row title, icon and badge with the hover card. The base row retains Initial review and the Replay icon; the head row shows Updated review, Antigravity and AR. Wait for identical screenshots at least 500 ms apart before saving a still.

For the running/queued comparison, open the child URL and run:

```sh
node scripts/scenarios/manual-lineage.ts "$PROOF_HOME" "http://127.0.0.1:$PROOF_PORT" run
```

This switches the child back to the recorded long stream and sends a follow-up from the sibling. Start a browser recording while it is running, then run:

```sh
node scripts/scenarios/manual-lineage.ts "$PROOF_HOME" "http://127.0.0.1:$PROOF_PORT" queue
```

Scroll the conversation to the bottom so SECOND FOLLOW-UP QUEUED WHILE RUNNING is visible in the dashed queued-message bubble. Return to the parent URL and hover its Lineage row. Base's hover card selects Pending; head's selects Running and retains its Stop control. The uploaded recordings show the queued message before returning to the parent. The observation file includes recording start times and timestamped queue state.

The additional attempt below did not reach the omitted-child active-group path:

```sh
node scripts/scenarios/manual-lineage.ts "$PROOF_HOME" "http://127.0.0.1:$PROOF_PORT" active-omitted
```

It interrupts only the running child turn, holds the queued follow-up, changes the current title and provider again, and reads the shell. The child is omitted, but the task becomes idle and is grouped under Previous agents. Do not count this as active-group proof. Likewise, the recorded queue has a running task and a pending task; it does not isolate the newer-unstarted-pending versus older-completed selection case.
