# R04: ordered live observations

Provider: OpenCode 2.2.6. Linux x86_64. All timestamps UTC. Synthetic isolated state only. Models redacted; ids anonymized consistently across these four transcripts.

| Observed at | Side / SHA | Run states | Provider status / pendingBackgroundTasks | Owned process state |
|---|---|---|---|---|
| 2026-11-10T11:55:25.239336+00:00 | before / fa2f4ff2a2bac5ac92e07749f6b83b0003d642a0 | `[{"ordinal": 1, "status": "completed"}]` | `[{"status": "idle", "pendingBackgroundTasks": []}]` | `[{"pid": 620594, "cwd": "/tmp/lead-32851-r1/capture-1/fixture", "ps": "PID    PPID STAT     ELAPSED COMMAND\n 620594  620446 Ss         07:08 sleep 500"}, {"pid": 620446, "cwd": "/home/user/wt/pr-32851-before/apps/server", "ps": "PID    PPID STAT     ELAPSED COMMAND\n 620446  616789 Ssl        07:13 /tmp/lead-32851-r1/capture-1/opencode-runtime/node_modules/.bin/opencode serve --hostname=127.0.0.1 --port=33881"}]` |
| 2026-11-10T11:55:59.803060+00:00 | before / fa2f4ff2a2bac5ac92e07749f6b83b0003d642a0 | `[{"ordinal": 1, "status": "completed"}]` | `[{"status": "idle", "pendingBackgroundTasks": []}]` | `[{"pid": 620594, "state": "absent from /proc"}, {"pid": 620446, "state": "absent from /proc"}]` |
| 2026-11-10T11:57:37.731390+00:00 | after / c88510a57629353853b405fbb6f0ca578e98fb40 | `[{"ordinal": 1, "status": "completed"}]` | `[{"status": "idle", "pendingBackgroundTasks": [{"taskId": "shell_20", "description": "sleep 500", "kind": "command"}]}]` | `[{"pid": 630920, "cwd": "/tmp/lead-32851-r1/capture-1/fixture", "ps": "PID    PPID STAT     ELAPSED COMMAND\n 630920  623063 Ss         00:50 sleep 500"}, {"pid": 623063, "cwd": "/home/user/wt/pr-32851/apps/server", "ps": "PID    PPID STAT     ELAPSED COMMAND\n 623063  621547 Ssl        07:34 /tmp/lead-32851-r1/capture-1/opencode-runtime/node_modules/.bin/opencode serve --hostname=127.0.0.1 --port=44305"}]` |
| 2026-11-10T11:57:37.907038+00:00 | before / fa2f4ff2a2bac5ac92e07749f6b83b0003d642a0 | `[{"ordinal": 1, "status": "completed"}, {"ordinal": 2, "status": "completed"}]` | `[{"status": "idle", "pendingBackgroundTasks": []}]` | `[{"pid": 620594, "state": "absent from /proc"}, {"pid": 620446, "state": "absent from /proc"}]` |
| 2026-11-10T11:58:22.727851+00:00 | after / c88510a57629353853b405fbb6f0ca578e98fb40 | `[{"ordinal": 1, "status": "completed"}]` | `[{"status": "idle", "pendingBackgroundTasks": []}]` | `[{"pid": 630920, "state": "absent from /proc"}, {"pid": 623063, "state": "absent from /proc"}]` |
| 2026-11-10T11:58:59.821247+00:00 | after / c88510a57629353853b405fbb6f0ca578e98fb40 | `[{"ordinal": 1, "status": "completed"}, {"ordinal": 2, "status": "completed"}]` | `[{"status": "idle", "pendingBackgroundTasks": []}]` | `[{"pid": 630920, "state": "absent from /proc"}, {"pid": 623063, "state": "absent from /proc"}]` |

The accompanying JSON retains ordered event sequences, full redacted event payloads, run projections, roster projections, and `ps`/`/proc` observations.

Graceful SIGTERM of each isolated backend, followed by a direct restart on the same port and isolated home. This proves the restart path with orderly shutdown; abrupt crash/power-loss recovery was not exercised. Before has no shell-cancellation event and the native next-turn input contains only the user message. After persists `run.background-work-cancelled` at 11:57:38.531 with `kind: shell` and command/id; native next-turn input includes the cancellation note. Before the explicit next message the after run count is still 1 at 11:58:22.728 (~31 seconds after readiness); no automatic plain-shell continuation was observed in that bounded window.

## Native provider inputs

### before — 2026-11-10T11:56:19.905000+00:00

```text
Do not call any tools. If T3 supplied a note about background work being lost on restart, quote that note exactly. Otherwise reply NO_RESTART_NOTE.
```

### after — 2026-11-10T11:58:29.439000+00:00

```text
Note: the T3 server restarted, and this background work was cancelled before it finished. It will not report back on its own, so resume or restart what you still need and wait for its result:
- shell: sleep 500 (id shell_20)

User message:
Do not call any tools. If T3 supplied a note about background work being lost on restart, quote that note exactly. Otherwise reply NO_RESTART_NOTE.
```

