# R14: Trusted quiet suppression and input/output wake

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-23-58.419Z-before-R14`. After run: `/tmp/lead-24640-r1/capture/2026-10-27T14-23-57.257Z-after-R14`.

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.

The real native protocol is transparently logged. After two stable snapshots, the next process-table request is about 30s later. Input invalidates the quiet mark; later output is written independently to the owned PTY, invalidating quiet without terminal.write.

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)) | Δ |
|---|---|---|---|
| Background completion→next-query gaps | No subsequent background pair | No subsequent background pair | Same quiet refresh and wake |
| Terminal event 1 | 2026-10-27T14:24:41.211Z `fixture-thread-a/term-1` activity, seq=5, busy=True, label=`fixture-child` | 2026-10-27T14:24:40.174Z `fixture-thread-a/term-1` activity, seq=6, busy=True, label=`fixture-child` | Compare identity/sequence; subscriptions deduplicated |
| Terminal event 2 | 2026-10-27T14:24:41.324Z `fixture-thread-a/term-0` closed, seq=5 | 2026-10-27T14:24:40.292Z `fixture-thread-a/term-0` closed, seq=5 | Compare identity/sequence; subscriptions deduplicated |
| Terminal event 3 | 2026-10-27T14:24:41.329Z `fixture-thread-a/term-1` closed, seq=6 | 2026-10-27T14:24:40.297Z `fixture-thread-a/term-1` closed, seq=7 | Compare identity/sequence; subscriptions deduplicated |
| Peak all fallback queries | 0 | 0 | Independent closeIdle may overlap one background query |
| Peak background fallback queries | 0 | 0 | Independent closeIdle may overlap one background query |
| Native process-table request 1 | 2026-10-27T14:24:05 monotonic=921634143382834 request=bb24da40-f926-42ed-b832-37f837c32b12 | 2026-10-27T14:24:03 monotonic=921633105811576 request=c6097896-4ab3-4311-b7ff-26ca0d8ab065 | Real native payload forwarded unchanged |
| Native process-table request 2 | 2026-10-27T14:24:06 monotonic=921635188650291 request=5644f5c1-3176-4532-a611-dd5701fc71a4 | 2026-10-27T14:24:05 monotonic=921634147024416 request=a80d2241-a224-4186-bf3e-18cb6723b1e9 | Real native payload forwarded unchanged |
| Native process-table request 3 | 2026-10-27T14:24:36 monotonic=921665232525159 request=cde4fb0c-619d-4a81-b4d2-f14113b1a3e3 | 2026-10-27T14:24:35 monotonic=921664192289671 request=6b584f8c-4c93-43e6-945a-619fdd991779 | Real native payload forwarded unchanged |
| Native process-table request 4 | 2026-10-27T14:24:37 monotonic=921666251589670 request=037375a0-8b7d-4bb8-9736-2c2396743e5b | 2026-10-27T14:24:36 monotonic=921665214482932 request=cc3fcc11-fbb0-4191-b113-8e3e5ffdbbb3 | Real native payload forwarded unchanged |
| Native process-table request 5 | 2026-10-27T14:24:38 monotonic=921667270950748 request=35cd0fa3-709f-4ea8-a33e-7cee3cd5942c | 2026-10-27T14:24:37 monotonic=921666234439628 request=bd4abd9d-2d34-40a9-a378-37598d3c4662 | Real native payload forwarded unchanged |
| Native process-table request 6 | 2026-10-27T14:24:40 monotonic=921669291893711 request=a1331d7c-2236-46f0-a117-867c15506ada | 2026-10-27T14:24:39 monotonic=921668255043135 request=72ea92e9-6c92-4554-b1c8-7739cd403776 | Real native payload forwarded unchanged |
| Native process-table request 7 | 2026-10-27T14:24:41 monotonic=921670314424095 request=7092af3c-e0ef-47c3-bce5-70f121a2e88a | 2026-10-27T14:24:40 monotonic=921669275878168 request=b30d2931-58a2-457c-8edd-2a66ea919e34 | Real native payload forwarded unchanged |

## Before scripted milestones and final observation states
```json
[
  {
    "kind": "control",
    "utc": "2026-10-27T14:23:58.603Z",
    "ms": 181.162706,
    "phase": "R14",
    "mode": "valid",
    "delay": 0
  },
  {
    "kind": "server-ready",
    "utc": "2026-10-27T14:24:04.551Z",
    "ms": 6128.983992
  },
  {
    "kind": "rpc-connected",
    "utc": "2026-10-27T14:24:04.636Z",
    "ms": 6214.809453
  },
  {
    "kind": "quiet-two-snapshots",
    "utc": "2026-10-27T14:24:06.067Z",
    "ms": 7645.214106,
    "queries": [
      {
        "kind": "native-request",
        "utc": "2026-10-27T14:24:05",
        "mono_ns": 921634143382834,
        "pid": 3396588,
        "type": "processTable",
        "requestId": "bb24da40-f926-42ed-b832-37f837c32b12"
      },
      {
        "kind": "native-request",
        "utc": "2026-10-27T14:24:06",
        "mono_ns": 921635188650291,
        "pid": 3396588,
        "type": "processTable",
        "requestId": "5644f5c1-3176-4532-a611-dd5701fc71a4"
      }
    ]
  },
  {
    "kind": "quiet-refresh",
    "utc": "2026-10-27T14:24:36.115Z",
    "ms": 37693.150563,
    "queries": [
      {
        "kind": "native-request",
        "utc": "2026-10-27T14:24:05",
        "mono_ns": 921634143382834,
        "pid": 3396588,
        "type": "processTable",
        "requestId": "bb24da40-f926-42ed-b832-37f837c32b12"
      },
      {
        "kind": "native-request",
        "utc": "2026-10-27T14:24:06",
        "mono_ns": 921635188650291,
        "pid": 3396588,
        "type": "processTable",
        "requestId": "5644f5c1-3176-4532-a611-dd5701fc71a4"
      },
      {
        "kind": "native-request",
        "utc": "2026-10-27T14:24:36",
        "mono_ns": 921665232525159,
        "pid": 3396588,
        "type": "processTable",
        "requestId": "cde4fb0c-619d-4a81-b4d2-f14113b1a3e3"
      }
    ]
  },
  {
    "kind": "input-wake-refresh",
    "utc": "2026-10-27T14:24:37.129Z",
    "ms": 38707.696208
  },
  {
    "kind": "external-pty-output",
    "utc": "2026-10-27T14:24:39.663Z",
    "ms": 41240.832284,
    "tty": "/dev/pts/4"
  },
  {
    "kind": "output-wake-refresh",
    "utc": "2026-10-27T14:24:40.170Z",
    "ms": 41748.147245
  },
  {
    "kind": "child-ready",
    "utc": "2026-10-27T14:24:40.230Z",
    "ms": 41807.915806,
    "threadId": "fixture-thread-a",
    "terminalId": "term-1",
    "childPid": 3396843,
    "marker": "READY_R14_1"
  },
  {
    "kind": "scenario-complete",
    "utc": "2026-10-27T14:24:41.317Z",
    "ms": 42895.258822
  },
  {
    "kind": "cleanup-start",
    "utc": "2026-10-27T14:24:41.448Z",
    "ms": 43026.62275,
    "pids": [
      3395885,
      3395886,
      3396588,
      3396590,
      3396810,
      3396841,
      3396843
    ],
    "ptyPids": [
      3396810,
      3396841,
      3396843
    ]
  },
  {
    "kind": "cleanup-end",
    "utc": "2026-10-27T14:24:43.589Z",
    "ms": 45166.977461,
    "survivorsBeforeFinalKill": [],
    "remaining": []
  }
]
```
Metadata snapshots taken before and after driver cleanup:
```json
[
  {
    "kind": "state",
    "utc": "2026-10-27T14:24:41.317Z",
    "ms": 42895.129219,
    "terminals": [
      {
        "threadId": "fixture-thread-a",
        "terminalId": "term-0",
        "cwd": "/tmp/lead-24640-r1/capture/2026-10-27T14-23-58.419Z-before-R14",
        "worktreePath": null,
        "status": "running",
        "pid": 3396810,
        "exitCode": null,
        "exitSignal": null,
        "hasRunningSubprocess": false,
        "label": "Terminal 0",
        "updatedAt": "2026-10-27T14:24:39.663Z"
      },
      {
        "threadId": "fixture-thread-a",
        "terminalId": "term-1",
        "cwd": "/tmp/lead-24640-r1/capture/2026-10-27T14-23-58.419Z-before-R14",
        "worktreePath": null,
        "status": "running",
        "pid": 3396841,
        "exitCode": null,
        "exitSignal": null,
        "hasRunningSubprocess": true,
        "label": "fixture-child",
        "updatedAt": "2026-10-27T14:24:41.210Z"
      }
    ]
  },
  {
    "kind": "state",
    "utc": "2026-10-27T14:24:41.431Z",
    "ms": 43009.24457,
    "terminals": []
  }
]
```

## After scripted milestones and final observation states
```json
[
  {
    "kind": "control",
    "utc": "2026-10-27T14:23:57.435Z",
    "ms": 175.021816,
    "phase": "R14",
    "mode": "valid",
    "delay": 0
  },
  {
    "kind": "server-ready",
    "utc": "2026-10-27T14:24:03.660Z",
    "ms": 6399.721153
  },
  {
    "kind": "rpc-connected",
    "utc": "2026-10-27T14:24:03.760Z",
    "ms": 6500.041506
  },
  {
    "kind": "quiet-two-snapshots",
    "utc": "2026-10-27T14:24:05.032Z",
    "ms": 7772.087751,
    "queries": [
      {
        "kind": "native-request",
        "utc": "2026-10-27T14:24:03",
        "mono_ns": 921633105811576,
        "pid": 3396133,
        "type": "processTable",
        "requestId": "c6097896-4ab3-4311-b7ff-26ca0d8ab065"
      },
      {
        "kind": "native-request",
        "utc": "2026-10-27T14:24:05",
        "mono_ns": 921634147024416,
        "pid": 3396133,
        "type": "processTable",
        "requestId": "a80d2241-a224-4186-bf3e-18cb6723b1e9"
      }
    ]
  },
  {
    "kind": "quiet-refresh",
    "utc": "2026-10-27T14:24:35.084Z",
    "ms": 37823.816772,
    "queries": [
      {
        "kind": "native-request",
        "utc": "2026-10-27T14:24:03",
        "mono_ns": 921633105811576,
        "pid": 3396133,
        "type": "processTable",
        "requestId": "c6097896-4ab3-4311-b7ff-26ca0d8ab065"
      },
      {
        "kind": "native-request",
        "utc": "2026-10-27T14:24:05",
        "mono_ns": 921634147024416,
        "pid": 3396133,
        "type": "processTable",
        "requestId": "a80d2241-a224-4186-bf3e-18cb6723b1e9"
      },
      {
        "kind": "native-request",
        "utc": "2026-10-27T14:24:35",
        "mono_ns": 921664192289671,
        "pid": 3396133,
        "type": "processTable",
        "requestId": "6b584f8c-4c93-43e6-945a-619fdd991779"
      }
    ]
  },
  {
    "kind": "input-wake-refresh",
    "utc": "2026-10-27T14:24:36.100Z",
    "ms": 38840.367618
  },
  {
    "kind": "external-pty-output",
    "utc": "2026-10-27T14:24:38.632Z",
    "ms": 41372.177116,
    "tty": "/dev/pts/3"
  },
  {
    "kind": "output-wake-refresh",
    "utc": "2026-10-27T14:24:39.139Z",
    "ms": 41879.320325
  },
  {
    "kind": "child-ready",
    "utc": "2026-10-27T14:24:39.196Z",
    "ms": 41936.105289,
    "threadId": "fixture-thread-a",
    "terminalId": "term-1",
    "childPid": 3396834,
    "marker": "READY_R14_1"
  },
  {
    "kind": "scenario-complete",
    "utc": "2026-10-27T14:24:40.285Z",
    "ms": 43025.066651
  },
  {
    "kind": "cleanup-start",
    "utc": "2026-10-27T14:24:40.417Z",
    "ms": 43156.976103,
    "pids": [
      3395838,
      3395839,
      3396133,
      3396134,
      3396637,
      3396832,
      3396834
    ],
    "ptyPids": [
      3396637,
      3396832,
      3396834
    ]
  },
  {
    "kind": "cleanup-end",
    "utc": "2026-10-27T14:24:42.570Z",
    "ms": 45309.711128,
    "survivorsBeforeFinalKill": [],
    "remaining": []
  }
]
```
Metadata snapshots taken before and after driver cleanup:
```json
[
  {
    "kind": "state",
    "utc": "2026-10-27T14:24:40.285Z",
    "ms": 43024.884249,
    "terminals": [
      {
        "threadId": "fixture-thread-a",
        "terminalId": "term-0",
        "cwd": "/tmp/lead-24640-r1/capture/2026-10-27T14-23-57.257Z-after-R14",
        "worktreePath": null,
        "status": "running",
        "pid": 3396637,
        "exitCode": null,
        "exitSignal": null,
        "hasRunningSubprocess": false,
        "label": "Terminal 0",
        "updatedAt": "2026-10-27T14:24:38.642Z"
      },
      {
        "threadId": "fixture-thread-a",
        "terminalId": "term-1",
        "cwd": "/tmp/lead-24640-r1/capture/2026-10-27T14-23-57.257Z-after-R14",
        "worktreePath": null,
        "status": "running",
        "pid": 3396832,
        "exitCode": null,
        "exitSignal": null,
        "hasRunningSubprocess": true,
        "label": "fixture-child",
        "updatedAt": "2026-10-27T14:24:40.172Z"
      }
    ]
  },
  {
    "kind": "state",
    "utc": "2026-10-27T14:24:40.399Z",
    "ms": 43138.712271,
    "terminals": []
  }
]
```

## Additional idle fallback contrast
Both use failing native helpers and an idle shell with no foreground child. Three shared fallback queries occur with approximately 2s/4s failure gaps, instead of native quiet suppression. The complete additional RPC/shim/server transcript and exact scripts are appended to each R14 transcript.
| Fallback observation | Before | After | Δ |
|---|---|---|---|
| Idle fallback query 1 | R14F, background; shim START 2026-10-27T14:35:48.440Z (mono 922337562521484); END 2026-10-27T14:35:48.454Z (mono 922337576905577); 14.4ms, exit 0; acquisition 2026-10-27T14:35:48.403Z→2026-10-27T14:35:48.463Z, 60.0ms | R14F, background; shim START 2026-10-27T14:35:49.620Z (mono 922338742972403); END 2026-10-27T14:35:49.632Z (mono 922338754661170); 11.7ms, exit 0; acquisition 2026-10-27T14:35:49.580Z→2026-10-27T14:35:49.641Z, 61.2ms | Same idle fallback cadence |
| Idle fallback query 2 | R14F, background; shim START 2026-10-27T14:35:50.506Z (mono 922339628202803); END 2026-10-27T14:35:50.520Z (mono 922339642406929); 14.2ms, exit 0; acquisition 2026-10-27T14:35:50.465Z→2026-10-27T14:35:50.526Z, 60.6ms | R14F, background; shim START 2026-10-27T14:35:51.682Z (mono 922340804302980); END 2026-10-27T14:35:51.693Z (mono 922340816138333); 11.8ms, exit 0; acquisition 2026-10-27T14:35:51.644Z→2026-10-27T14:35:51.700Z, 56.8ms | Same idle fallback cadence |
| Idle fallback query 3 | R14F, background; shim START 2026-10-27T14:35:54.579Z (mono 922343701485428); END 2026-10-27T14:35:54.594Z (mono 922343716511325); 15.0ms, exit 0; acquisition 2026-10-27T14:35:54.527Z→2026-10-27T14:35:54.603Z, 75.8ms | R14F, background; shim START 2026-10-27T14:35:55.751Z (mono 922344873610559); END 2026-10-27T14:35:55.768Z (mono 922344891096741); 17.5ms, exit 0; acquisition 2026-10-27T14:35:55.702Z→2026-10-27T14:35:55.777Z, 75.2ms | Same idle fallback cadence |
| Idle gaps | R14F→R14F: shim gap 2.051s, acquisition gap 2.002s<br>R14F→R14F: shim gap 4.059s, acquisition gap 4.001s | R14F→R14F: shim gap 2.050s, acquisition gap 2.002s<br>R14F→R14F: shim gap 4.057s, acquisition gap 4.002s | Native failure does not earn quiet suppression |

## Behaviour difference
Same quiet refresh and wake
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.