# Final-head replay transcript: PR 19738

Scope: [#19738](https://git.cafe/pingdotgg/t3code/pulls/19738), [GitHub mirror #19738](https://github.com/pingdotgg/t3code/pull/19738). Branch `takeover/pr-19738`, sole checkout `/home/ubuntu/wt/pr-19738`.

Final head [221f4bed6f](https://github.com/pingdotgg/t3code/commit/221f4bed6f43c2b7e1a3a3efcce778c9cb822468), full SHA `221f4bed6f43c2b7e1a3a3efcce778c9cb822468`; exact base [8bcef34f16](https://github.com/pingdotgg/t3code/commit/8bcef34f16ca2a08aa19c35dd64b71290bd4412f), full SHA `8bcef34f16ca2a08aa19c35dd64b71290bd4412f`.

Reviewed capture [9da6ba5f1f](https://github.com/pingdotgg/t3code/commit/9da6ba5f1fe6d66ecc4e734d38276451f0b9ab78). Original `aravhawk/t3code`, `fix/persisted-pr-inactivity`, [7cce90c](https://github.com/aravhawk/t3code/commit/7cce90c9b35e12fd9649cac4d4b3d11ae57c474c).

Both settlement implementation and tests are byte-identical between reviewed capture and final head. The merge introduced current main's Orchestrator, ProjectionStore and dev-runner; this refresh rebuilt and executed with those sources. The exact base-to-head diff contains only settlement implementation and its test. The base implementation is therefore built with identical runtime inputs to exact base, using an external read-only bundler load hook for that one source. Head uses the same hook and build setup pinned to final head. One pinned source load per bundle is asserted. No tracked source file is written, no checkout/ref is changed, and build outputs live under `/tmp/ev-19738`.

Commands actually completed:

```sh
cd /home/ubuntu/wt/pr-19738
python3 /tmp/ev-19738/replay.py base
python3 /tmp/ev-19738/replay.py head
```

Each replay archives only the previous fixture userdata/caches under `/tmp/ev-19738/archive`, rebuilds its bundle, starts the real dev runner with explicit `--home-dir /tmp/ev-19738 --no-seed --no-browser --no-auto-bootstrap-project-from-cwd`, runs `seed`, `pre`, `advance`, stops its owned process group with an exit barrier, restarts against the same isolated database and clock offset, runs `durability`, then stops again. `T3CODE_DEV_SEED=0`. No live userdata was accessed. No browser, provider turn, real forge write, manual settlement, database timestamp rewrite, tracked edit, commit, push, comment or watch.

Same fixture/setup for both refs: three empty threads with only persisted PR links, no legacy aliases, no worktree/scripts, no activity; known-open retention-off, known-open project retention-on, and null-snapshot unknown control. Actual GitHub summary decoder consumes locally stubbed GraphQL responses. Initial inactivity disabled; pre-threshold settings D=3; external Date.now offset +345600000 ms; settings D=2 triggers immediate worker sweep. Timers remain real. Driver awaits actual instrumented sweep-complete milestones before reading all three projections. Both bundles use the same observational preload; it does not alter settlement decisions.

## Base observations

Exact ref `8bcef34f16ca2a08aa19c35dd64b71290bd4412f`. 12 projection assertions passed across seed, pre, advance and restart.

- seed: proof-open=unsettled, proof-retained=unsettled, proof-unknown=unsettled; assertions at 2026-10-25T00:11:55.928Z through 2026-10-25T00:11:55.960Z.
- pre: proof-open=unsettled, proof-retained=unsettled, proof-unknown=unsettled; assertions at 2026-10-25T00:11:56.856Z through 2026-10-25T00:11:56.882Z.
- advance: proof-open=unsettled, proof-retained=unsettled, proof-unknown=unsettled; assertions at 2026-10-25T00:11:57.830Z through 2026-10-25T00:11:57.861Z.
- durability: proof-open=unsettled, proof-retained=unsettled, proof-unknown=unsettled; assertions at 2026-10-25T00:12:06.615Z through 2026-10-25T00:12:06.653Z.

Completed sweeps:

```json
[
  {
    "realAt": "2026-10-25T00:11:56.834Z",
    "logicalAt": "2026-10-25T00:11:56.834Z",
    "pid": 1766651,
    "kind": "sweep-complete",
    "threadId": null,
    "candidates": [
      "proof-open",
      "proof-retained",
      "proof-unknown"
    ],
    "days": 3
  },
  {
    "realAt": "2026-10-25T00:11:57.806Z",
    "logicalAt": "2026-10-29T00:11:57.806Z",
    "pid": 1766651,
    "kind": "sweep-complete",
    "threadId": null,
    "candidates": [
      "proof-open",
      "proof-retained",
      "proof-unknown"
    ],
    "days": 2
  },
  {
    "realAt": "2026-10-25T00:12:05.716Z",
    "logicalAt": "2026-10-29T00:12:05.716Z",
    "pid": 1767677,
    "kind": "sweep-complete",
    "threadId": null,
    "candidates": [
      "proof-open",
      "proof-retained",
      "proof-unknown"
    ],
    "days": 2
  },
  {
    "realAt": "2026-10-25T00:12:05.986Z",
    "logicalAt": "2026-10-29T00:12:05.986Z",
    "pid": 1767677,
    "kind": "sweep-complete",
    "threadId": "proof-open",
    "candidates": [
      "proof-open"
    ],
    "days": 2
  },
  {
    "realAt": "2026-10-25T00:12:06.006Z",
    "logicalAt": "2026-10-29T00:12:06.006Z",
    "pid": 1767677,
    "kind": "sweep-complete",
    "threadId": "proof-retained",
    "candidates": [
      "proof-retained"
    ],
    "days": 2
  }
]
```

Read-only active event-store assertions:

```json
{
  "no_run_message_or_provider_activity_events": true,
  "settled_count": 0,
  "server_generated_settle_only": true
}
```

Owned server lifecycle:

```json
[
  {
    "kind": "spawn",
    "pid": 1766579,
    "build": "base",
    "cmd": [
      "node",
      "scripts/dev-runner.ts",
      "dev:server",
      "--home-dir",
      "/tmp/ev-19738",
      "--no-seed",
      "--no-browser",
      "--no-auto-bootstrap-project-from-cwd",
      "--host",
      "127.0.0.1",
      "--port",
      "19738",
      "--dev-url",
      "http://127.0.0.1:19739"
    ],
    "at": 1792887110.2536807,
    "home": "/tmp/ev-19738"
  },
  {
    "kind": "stop-owned-group",
    "pid": 1766579,
    "ownedPids": [
      1766579,
      1766608,
      1766614,
      1766645,
      1766651
    ],
    "allExited": true,
    "at": 1792887121.0776792
  },
  {
    "kind": "spawn",
    "pid": 1767608,
    "build": "base",
    "cmd": [
      "node",
      "scripts/dev-runner.ts",
      "dev:server",
      "--home-dir",
      "/tmp/ev-19738",
      "--no-seed",
      "--no-browser",
      "--no-auto-bootstrap-project-from-cwd",
      "--host",
      "127.0.0.1",
      "--port",
      "19738",
      "--dev-url",
      "http://127.0.0.1:19739"
    ],
    "at": 1792887121.1389163,
    "home": "/tmp/ev-19738"
  },
  {
    "kind": "stop-owned-group",
    "pid": 1767608,
    "ownedPids": [
      1767608,
      1767637,
      1767643,
      1767671,
      1767677
    ],
    "allExited": true,
    "at": 1792887129.865529
  }
]
```

## Head observations

Exact ref `221f4bed6f43c2b7e1a3a3efcce778c9cb822468`. 12 projection assertions passed across seed, pre, advance and restart.

- seed: proof-open=unsettled, proof-retained=unsettled, proof-unknown=unsettled; assertions at 2026-10-25T00:12:27.300Z through 2026-10-25T00:12:27.344Z.
- pre: proof-open=unsettled, proof-retained=unsettled, proof-unknown=unsettled; assertions at 2026-10-25T00:12:28.446Z through 2026-10-25T00:12:28.487Z.
- advance: proof-open=settled, proof-retained=unsettled, proof-unknown=unsettled; assertions at 2026-10-25T00:12:29.487Z through 2026-10-25T00:12:29.521Z.
- durability: proof-open=settled, proof-retained=unsettled, proof-unknown=unsettled; assertions at 2026-10-25T00:12:37.808Z through 2026-10-25T00:12:37.850Z.

Completed sweeps:

```json
[
  {
    "realAt": "2026-10-25T00:12:28.415Z",
    "logicalAt": "2026-10-25T00:12:28.415Z",
    "pid": 1768738,
    "kind": "sweep-complete",
    "threadId": null,
    "candidates": [
      "proof-open",
      "proof-retained",
      "proof-unknown"
    ],
    "days": 3
  },
  {
    "realAt": "2026-10-25T00:12:29.462Z",
    "logicalAt": "2026-10-29T00:12:29.462Z",
    "pid": 1768738,
    "kind": "sweep-complete",
    "threadId": null,
    "candidates": [
      "proof-open",
      "proof-retained",
      "proof-unknown"
    ],
    "days": 2
  },
  {
    "realAt": "2026-10-25T00:12:37.123Z",
    "logicalAt": "2026-10-29T00:12:37.123Z",
    "pid": 1770098,
    "kind": "sweep-complete",
    "threadId": null,
    "candidates": [
      "proof-retained",
      "proof-unknown"
    ],
    "days": 2
  },
  {
    "realAt": "2026-10-25T00:12:37.264Z",
    "logicalAt": "2026-10-29T00:12:37.264Z",
    "pid": 1770098,
    "kind": "sweep-complete",
    "threadId": "proof-retained",
    "candidates": [
      "proof-retained"
    ],
    "days": 2
  }
]
```

Read-only active event-store assertions:

```json
{
  "no_run_message_or_provider_activity_events": true,
  "settled_count": 1,
  "server_generated_settle_only": true
}
```

Committed settlement (full event/receipt records are in SQL artifact):

```json
[
  {
    "sequence": 11,
    "event_id": "event:thread:proof-open:command:server%3Aauto-settle%3Aproof-open%3Ac25bdf56-f820-440a-ae6e-87bf7e44b453:fd069c4b-2e9c-4878-ae1e-ea36e7b6582f",
    "aggregate_kind": "thread",
    "stream_id": "proof-open",
    "stream_version": 3,
    "event_type": "thread.settled",
    "occurred_at": "2026-10-29T00:12:29.455Z",
    "command_id": "server:auto-settle:proof-open:c25bdf56-f820-440a-ae6e-87bf7e44b453",
    "causation_event_id": null,
    "correlation_id": "server:auto-settle:proof-open:c25bdf56-f820-440a-ae6e-87bf7e44b453",
    "actor_kind": "server",
    "metadata_json": "{\"providerInstanceId\":\"codex\"}",
    "application_event_version": 2,
    "payload": {
      "createdBy": "user",
      "creationSource": "web",
      "id": "proof-open",
      "projectId": "proof-19738",
      "title": "proof-open",
      "providerInstanceId": "codex",
      "modelSelection": {
        "instanceId": "codex",
        "model": "gpt-6.1-sol"
      },
      "runtimeMode": "full-access",
      "interactionMode": "default",
      "branch": null,
      "worktreePath": null,
      "linkedPullRequest": null,
      "pullRequests": [
        {
          "host": "github.com",
          "repository": "fixture-owner/fixture-repo",
          "number": 101,
          "url": "https://github.com/fixture-owner/fixture-repo/pull/101",
          "source": "manual",
          "linkedAt": "2026-10-25T00:12:27.007Z",
          "snapshot": {
            "state": "open",
            "title": "Fixture open 101",
            "headBranch": "fixture",
            "baseBranch": "main",
            "isDraft": false,
            "updatedAt": "2026-10-25T00:12:27.083Z",
            "syncedAt": "2026-10-25T00:12:27.015Z",
            "closedAt": null,
            "mergedAt": null,
            "author": null,
            "additions": 0,
            "deletions": 0,
            "changedFiles": 0,
            "reviewDecision": null,
            "checksState": null,
            "mergeability": "mergeable"
          },
          "stack": null
        }
      ],
      "activeProviderThreadId": null,
      "lineage": {
        "parentThreadId": null,
        "relationshipToParent": null,
        "rootThreadId": "proof-open"
      },
      "forkedFrom": null,
      "createdAt": "2026-10-25T00:12:26.982Z",
      "updatedAt": "2026-10-29T00:12:29.455Z",
      "archivedAt": null,
      "settledOverride": "settled",
      "settledAt": "2026-10-25T00:12:26.982Z",
      "unsettledAt": null,
      "snoozedUntil": null,
      "snoozedAt": null,
      "pinnedAt": null,
      "pinOrderKey": null,
      "activeOrderKey": null,
      "lastVisitedAt": null,
      "deletedAt": null
    }
  }
]
```

Owned server lifecycle:

```json
[
  {
    "kind": "spawn",
    "pid": 1768669,
    "build": "head",
    "cmd": [
      "node",
      "scripts/dev-runner.ts",
      "dev:server",
      "--home-dir",
      "/tmp/ev-19738",
      "--no-seed",
      "--no-browser",
      "--no-auto-bootstrap-project-from-cwd",
      "--host",
      "127.0.0.1",
      "--port",
      "19738",
      "--dev-url",
      "http://127.0.0.1:19739"
    ],
    "at": 1792887141.2978737,
    "home": "/tmp/ev-19738"
  },
  {
    "kind": "stop-owned-group",
    "pid": 1768669,
    "ownedPids": [
      1768669,
      1768698,
      1768704,
      1768732,
      1768738
    ],
    "allExited": true,
    "at": 1792887152.7642047
  },
  {
    "kind": "spawn",
    "pid": 1770026,
    "build": "head",
    "cmd": [
      "node",
      "scripts/dev-runner.ts",
      "dev:server",
      "--home-dir",
      "/tmp/ev-19738",
      "--no-seed",
      "--no-browser",
      "--no-auto-bootstrap-project-from-cwd",
      "--host",
      "127.0.0.1",
      "--port",
      "19738",
      "--dev-url",
      "http://127.0.0.1:19739"
    ],
    "at": 1792887152.816038,
    "home": "/tmp/ev-19738"
  },
  {
    "kind": "stop-owned-group",
    "pid": 1770026,
    "ownedPids": [
      1770026,
      1770055,
      1770061,
      1770092,
      1770098
    ],
    "allExited": true,
    "at": 1792887161.1090035
  }
]
```

## Semantic delta and limits

Base reproduces the regression: retention-off known-open thread remains unsettled after four logical days. Final head settles only that thread, with its open PR link preserved and settledAt equal to createdAt. Retention-on and unknown controls stay unsettled at the same logical age, including restart. Base persists zero settlements; final head persists exactly one from `server:auto-settle:proof-open:`. Event histories and all returned projections contain no user-message/run/provider activity. All 20 observed owned server-group PIDs exited; port 19738 is closed.

No semantic delta from the prior reviewed head replay. The intended base-to-head delta remains: visible open persisted links can age into inactivity settlement when retention is off, while unknown snapshots stay conservative and retention stays effective. No new behavior was added in this refresh.

This refresh replays the runtime portion of P1/P2/P3/P10/P11 from the original 11-row matrix. It carries forward the prior SUFFICIENT audit and prior deterministic coverage for the remaining rows because implementation/tests are byte-identical. It does not claim that all 11 rows were independently rerun here. The parent is running scoped tests independently; no additional test suite was created or expanded. No new code review or proof audit was commissioned. Clients/remote/tunnel rendering and real provider turns are outside this server-only replay.

## FRICTION

- Old replay pinned pre-merge refs and temporarily replaced tracked source. Updated ref constants and a read-only external build hook remove that mutation. The hook uses the installed Vite+ pack API and the checkout's actual config; exact base differs only in the loaded implementation and excluded test file.
- Build-helper module resolution required resolving Vite through Vite+'s real installed package path; two early build attempts failed before starting a server. Both successful builds and complete replays are preserved. No application defect resulted.
- Existing one-day minimum, batched GraphQL aliases and sweep completion constraints remain handled by the existing clock/forge/diagnostic fixtures. This is logical-clock evidence, not a four-day wall-clock wait.
- Prior audit download returned HTTP 403 through Python's default request; curl retrieved the immutable artifact successfully.
- Unexpected external discovery/telemetry fetches were blocked by the preload, as before. No fixture fetch forwarded to the forge. Raw server logs/private auth/databases are excluded from uploads; sanitized logs omit token/URL-bearing lines.
