# R11: Truncated process table

Before [e9236274a3](https://git.cafe/pingdotgg/t3code/commit/e9236274a3a6e0c731a7df4092db1e686f039068); after [63e44670dd](https://git.cafe/pingdotgg/t3code/commit/63e44670dd1d222cf63619d5e02415f2a9fd3bc2).

Before run: `/tmp/lead-24640-r1/capture/2026-10-27T14-24-50.586Z-before-R11`. After run: `/tmp/lead-24640-r1/capture/2026-10-27T14-24-50.586Z-after-R11`.

Environment: fs-31 Linux x86_64, Node v26.12.1; no viewport/theme/DPR/font scaling. Fresh per-run app databases. Same RPC fixture on each side. Native sidecars compiled with isolated Rust 1.99.1 where used.

Both reject the complete oversized (>524288 bytes) output; warning reports stdoutTruncated. Prior busy/label is retained; no partial-table idle is published.

Wrapper timings exclude Python startup and stream drain. Acquisition timings use the real terminal.posixProcessTableSnapshot trace span. An idle gap is END→next START, never start-to-start. Before delay=min(1000×2^failureCount,60000)ms; after delay=min(max(1000×2^failureCount,4×measured fallback acquisition),60000)ms. Native-failed production ticks increment failureCount even when fallback succeeds; successful absent-supplier harness ticks reset it. Native requests and terminal processing can add overhead.

| Event | Before ([e9236274a3](https://git.cafe/pingdotgg/t3code/commit/e9236274a3a6e0c731a7df4092db1e686f039068)) | After ([63e44670dd](https://git.cafe/pingdotgg/t3code/commit/63e44670dd1d222cf63619d5e02415f2a9fd3bc2)) | Δ |
|---|---|---|---|
| Fallback query 1 | R11-seed, background; shim START 2026-10-27T14:24:58 (mono 921687254478250); END 2026-10-27T14:24:58 (mono 921687268067603); 13.6ms, exit 0; acquisition 2026-10-27T14:24:58.087Z→2026-10-27T14:24:58.151Z, 64.3ms | R11-seed, background; shim START 2026-10-27T14:24:58 (mono 921687232993327); END 2026-10-27T14:24:58 (mono 921687248196557); 15.2ms, exit 0; acquisition 2026-10-27T14:24:58.068Z→2026-10-27T14:24:58.131Z, 63.0ms | Same truncation rejection |
| Fallback query 2 | R11-failure, background; shim START 2026-10-27T14:25:00 (mono 921689319283797); END 2026-10-27T14:25:00 (mono 921689323036427); 3.8ms, exit 0; acquisition 2026-10-27T14:25:00.154Z→2026-10-27T14:25:00.206Z, 52.3ms | R11-failure, background; shim START 2026-10-27T14:25:00 (mono 921689303714881); END 2026-10-27T14:25:00 (mono 921689308916348); 5.2ms, exit 0; acquisition 2026-10-27T14:25:00.134Z→2026-10-27T14:25:00.194Z, 60.1ms | Measured duration/result above |
| Fallback query 3 | R11-failure, background; shim START 2026-10-27T14:25:04 (mono 921693374182104); END 2026-10-27T14:25:04 (mono 921693377842431); 3.7ms, exit 0; acquisition 2026-10-27T14:25:04.208Z→2026-10-27T14:25:04.261Z, 52.3ms | R11-failure, background; shim START 2026-10-27T14:25:04 (mono 921693354141460); END 2026-10-27T14:25:04 (mono 921693357665100); 3.5ms, exit 0; acquisition 2026-10-27T14:25:04.197Z→2026-10-27T14:25:04.242Z, 44.8ms | Measured duration/result above |
| Background completion→next-query gaps | R11-seed→R11-failure: shim gap 2.051s, acquisition gap 2.003s<br>R11-failure→R11-failure: shim gap 4.051s, acquisition gap 4.002s | R11-seed→R11-failure: shim gap 2.056s, acquisition gap 2.003s<br>R11-failure→R11-failure: shim gap 4.045s, acquisition gap 4.003s | Same truncation rejection |
| Terminal event 1 | 2026-10-27T14:24:58.155Z `fixture-thread-a/term-0` activity, seq=5, busy=True, label=`fixture-child` | 2026-10-27T14:24:58.136Z `fixture-thread-a/term-0` activity, seq=5, busy=True, label=`fixture-child` | Compare identity/sequence; subscriptions deduplicated |
| Terminal event 2 | 2026-10-27T14:25:04.523Z `fixture-thread-a/term-0` closed, seq=6 | 2026-10-27T14:25:04.508Z `fixture-thread-a/term-0` closed, seq=6 | Compare identity/sequence; subscriptions deduplicated |
| Peak all fallback queries | 1 | 1 | Independent closeIdle may overlap one background query |
| Peak background fallback queries | 1 | 1 | Independent closeIdle may overlap one background query |

## Before scripted milestones and final observation states
```json
[
  {
    "kind": "control",
    "utc": "2026-10-27T14:24:50.763Z",
    "ms": 174.726352,
    "phase": "R11",
    "mode": "truncate",
    "delay": 0
  },
  {
    "kind": "server-ready",
    "utc": "2026-10-27T14:24:56.844Z",
    "ms": 6255.686286
  },
  {
    "kind": "rpc-connected",
    "utc": "2026-10-27T14:24:56.983Z",
    "ms": 6394.635813
  },
  {
    "kind": "control",
    "utc": "2026-10-27T14:24:57.088Z",
    "ms": 6499.395965,
    "phase": "R11-seed",
    "mode": "valid",
    "delay": 0
  },
  {
    "kind": "child-ready",
    "utc": "2026-10-27T14:24:57.169Z",
    "ms": 6580.663346,
    "threadId": "fixture-thread-a",
    "terminalId": "term-0",
    "childPid": 3397823,
    "marker": "READY_R11_0"
  },
  {
    "kind": "control",
    "utc": "2026-10-27T14:24:58.260Z",
    "ms": 7671.287017,
    "phase": "R11-failure",
    "mode": "truncate",
    "delay": 0
  },
  {
    "kind": "scenario-complete",
    "utc": "2026-10-27T14:25:04.517Z",
    "ms": 13927.961446
  },
  {
    "kind": "cleanup-start",
    "utc": "2026-10-27T14:25:04.641Z",
    "ms": 14052.635023,
    "pids": [
      3396955,
      3396957,
      3397821,
      3397823
    ],
    "ptyPids": [
      3397821,
      3397823
    ]
  },
  {
    "kind": "cleanup-end",
    "utc": "2026-10-27T14:25:06.748Z",
    "ms": 16159.846069,
    "survivorsBeforeFinalKill": [],
    "remaining": []
  }
]
```
Metadata snapshots taken before and after driver cleanup:
```json
[
  {
    "kind": "state",
    "utc": "2026-10-27T14:24:58.260Z",
    "ms": 7670.994007,
    "terminals": [
      {
        "threadId": "fixture-thread-a",
        "terminalId": "term-0",
        "cwd": "/tmp/lead-24640-r1/capture/2026-10-27T14-24-50.586Z-before-R11",
        "worktreePath": null,
        "status": "running",
        "pid": 3397821,
        "exitCode": null,
        "exitSignal": null,
        "hasRunningSubprocess": true,
        "label": "fixture-child",
        "updatedAt": "2026-10-27T14:24:58.153Z"
      }
    ]
  },
  {
    "kind": "state",
    "utc": "2026-10-27T14:25:04.516Z",
    "ms": 13927.879342,
    "terminals": [
      {
        "threadId": "fixture-thread-a",
        "terminalId": "term-0",
        "cwd": "/tmp/lead-24640-r1/capture/2026-10-27T14-24-50.586Z-before-R11",
        "worktreePath": null,
        "status": "running",
        "pid": 3397821,
        "exitCode": null,
        "exitSignal": null,
        "hasRunningSubprocess": true,
        "label": "fixture-child",
        "updatedAt": "2026-10-27T14:24:58.153Z"
      }
    ]
  },
  {
    "kind": "state",
    "utc": "2026-10-27T14:25:04.624Z",
    "ms": 14035.847401,
    "terminals": []
  }
]
```

## After scripted milestones and final observation states
```json
[
  {
    "kind": "control",
    "utc": "2026-10-27T14:24:50.770Z",
    "ms": 181.495541,
    "phase": "R11",
    "mode": "truncate",
    "delay": 0
  },
  {
    "kind": "server-ready",
    "utc": "2026-10-27T14:24:57.038Z",
    "ms": 6449.790769
  },
  {
    "kind": "rpc-connected",
    "utc": "2026-10-27T14:24:57.149Z",
    "ms": 6560.43056
  },
  {
    "kind": "control",
    "utc": "2026-10-27T14:24:57.239Z",
    "ms": 6650.010195,
    "phase": "R11-seed",
    "mode": "valid",
    "delay": 0
  },
  {
    "kind": "child-ready",
    "utc": "2026-10-27T14:24:57.308Z",
    "ms": 6719.26968,
    "threadId": "fixture-thread-a",
    "terminalId": "term-0",
    "childPid": 3397839,
    "marker": "READY_R11_0"
  },
  {
    "kind": "control",
    "utc": "2026-10-27T14:24:58.257Z",
    "ms": 7668.399049,
    "phase": "R11-failure",
    "mode": "truncate",
    "delay": 0
  },
  {
    "kind": "scenario-complete",
    "utc": "2026-10-27T14:25:04.501Z",
    "ms": 13912.215568
  },
  {
    "kind": "cleanup-start",
    "utc": "2026-10-27T14:25:04.629Z",
    "ms": 14040.415461,
    "pids": [
      3396956,
      3396959,
      3397837,
      3397839
    ],
    "ptyPids": [
      3397837,
      3397839
    ]
  },
  {
    "kind": "cleanup-end",
    "utc": "2026-10-27T14:25:06.739Z",
    "ms": 16150.63556,
    "survivorsBeforeFinalKill": [],
    "remaining": []
  }
]
```
Metadata snapshots taken before and after driver cleanup:
```json
[
  {
    "kind": "state",
    "utc": "2026-10-27T14:24:58.257Z",
    "ms": 7668.038102,
    "terminals": [
      {
        "threadId": "fixture-thread-a",
        "terminalId": "term-0",
        "cwd": "/tmp/lead-24640-r1/capture/2026-10-27T14-24-50.586Z-after-R11",
        "worktreePath": null,
        "status": "running",
        "pid": 3397837,
        "exitCode": null,
        "exitSignal": null,
        "hasRunningSubprocess": true,
        "label": "fixture-child",
        "updatedAt": "2026-10-27T14:24:58.134Z"
      }
    ]
  },
  {
    "kind": "state",
    "utc": "2026-10-27T14:25:04.501Z",
    "ms": 13912.11031,
    "terminals": [
      {
        "threadId": "fixture-thread-a",
        "terminalId": "term-0",
        "cwd": "/tmp/lead-24640-r1/capture/2026-10-27T14-24-50.586Z-after-R11",
        "worktreePath": null,
        "status": "running",
        "pid": 3397837,
        "exitCode": null,
        "exitSignal": null,
        "hasRunningSubprocess": true,
        "label": "fixture-child",
        "updatedAt": "2026-10-27T14:24:58.134Z"
      }
    ]
  },
  {
    "kind": "state",
    "utc": "2026-10-27T14:25:04.610Z",
    "ms": 14021.246601,
    "terminals": []
  }
]
```

## Behaviour difference
Same truncation rejection
Raw UTC/monotonic RPC, query, signal, metadata, warnings, and cleanup records are in the paired transcripts. PID, randomly generated script terminal suffix, database path, UTC, sequence batching, and scheduler jitter naturally vary between fresh runs. No visual comparison is applicable.