# Paired real server runtime transcript

Synthetic server fixtures only; no provider CLI, UI, live userdata, or dev server. Before is the exact ingestor source from 3cc31ed27c8956b36cee35a50509fb7c6869592b; after is 83ef5cf0b67c915b0db262e8089c84c6eb71a669. Other production source is identical between these commits. TestClock controls domain fixture dates (1970); trace and lock-holder timestamps are actual UTC wall time.

P=plain write; R=writeIfRunCurrent; O=writeIfProviderThreadOwner (late provider_thread.updated); S=secondary thread.model-selection-updated after primary subagent.updated. C=controls.

Representative P recover1 uses production PRAGMA busy_timeout=5000 on the real server connection. Supporting cases deliberately set that connection to 75ms. Separate Python sqlite3 process on the same canonical file holds BEGIN IMMEDIATE. Release is IPC-triggered only after an observed real LockTimeoutError (two for recover2); persistent releases after ingestion exhausts. No timers/sleeps/polling.

All outcomes below passed assertions for success/failure, target-event count, unique log IDs, projection state, and exact bounded attempts for the retry/error modes. `injected*` cases are explicitly synthetic classification tests; never real-lock evidence. `recheck` commits a concurrent model update through the real sink while holding the thread lock before the second model-selection read. Its event is excluded from the target secondary-write count.

A real EventSink stream subscribes before ingestion. Ready and completion domain-event markers use Deferred milestones; marker IDs are excluded from target/log counts. For the initial ingestion, every published event ID/type between markers equals the persisted log in order, with no duplicate IDs. The completion marker drains prior publications without sleeps or polling. Repeat-call assertions separately check the durable log and unchanged child selection.


MIN group M: 16 paired case executions.

## before-P-mixed-75

Database: `/tmp/ev-21092-capture-final/before-P-mixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:28.818Z → 2026-10-24T22:28:28.949Z (0.131s). Attempts: 1; primary subagent writes: 0; success: False.

- Holder 1328574: acquired at 2026-10-24T22:28:28.857395+00:00; changes=[]
- Attempt 1: write, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253A26118567-21dd-469c-ae87-9455a89aa189%3Ad05a4634-314a-485b-8b6c-165260bc738f:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A26118567-21dd-469c-ae87-9455a89aa189%253Ad05a4634-314a-485b-8b6c-165260bc738f%3A9d13f72f-0c61-4840-ad02-38bf31c54efb:b4d18086-708c-47da-b539-d343c2aea803", "type": "provider-turn.updated"}]
- Attempt 1: actual-error: EventSinkWriteError → SqlError → LockTimeoutError
- Holder 1328574: released at 2026-10-24T22:28:28.935886+00:00; changes=[]
- Holder 1328574: closed at 2026-10-24T22:28:28.936361+00:00; changes=[]

Returned: `[]`.
Persisted since fixture seed (0 events): `[]`.
Published (0 events): `[]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": null}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError → SqlError → LockTimeoutError`.

## before-P-injectedMixed-75

Database: `/tmp/ev-21092-capture-final/before-P-injectedMixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:29.355Z → 2026-10-24T22:28:29.360Z (0.005s). Attempts: 1; primary subagent writes: 0; success: False.

- Attempt 1: write, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253A260f5655-3df2-4312-beba-614dbec78046%3Afeaadb95-c16b-42d0-b788-1dd8d6956a66:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A260f5655-3df2-4312-beba-614dbec78046%253Afeaadb95-c16b-42d0-b788-1dd8d6956a66%3Af0737d29-7c56-485a-be2e-73a8c0acc9e1:f9628ffe-f2f1-470a-9794-947f3219c579", "type": "provider-turn.updated"}]
- Attempt 1: injected-error: EventSinkWriteError → SqlError → LockTimeoutError

Returned: `[]`.
Persisted since fixture seed (0 events): `[]`.
Published (0 events): `[]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": null}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError → SqlError → LockTimeoutError`.

## before-R-mixed-75

Database: `/tmp/ev-21092-capture-final/before-R-mixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:30.554Z → 2026-10-24T22:28:30.681Z (0.127s). Attempts: 1; primary subagent writes: 0; success: False.

- Holder 1328596: acquired at 2026-10-24T22:28:30.590264+00:00; changes=[]
- Attempt 1: writeIfRunCurrent, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253A0415de39-dc60-468f-a95b-cb6ab433b383%3A93c9f901-329b-46aa-9de5-300d182b0d3e:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A0415de39-dc60-468f-a95b-cb6ab433b383%253A93c9f901-329b-46aa-9de5-300d182b0d3e%3A47914490-54c6-40fd-8013-5a0776443657:bb25eebd-5d47-4a39-9e6c-d3197e092ae1", "type": "provider-turn.updated"}]
- Attempt 1: actual-error: EventSinkWriteError → SqlError → LockTimeoutError
- Holder 1328596: released at 2026-10-24T22:28:30.668324+00:00; changes=[]
- Holder 1328596: closed at 2026-10-24T22:28:30.668941+00:00; changes=[]

Returned: `[]`.
Persisted since fixture seed (0 events): `[]`.
Published (0 events): `[]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": null}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError → SqlError → LockTimeoutError`.

## before-R-injectedMixed-75

Database: `/tmp/ev-21092-capture-final/before-R-injectedMixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:31.088Z → 2026-10-24T22:28:31.093Z (0.005s). Attempts: 1; primary subagent writes: 0; success: False.

- Attempt 1: writeIfRunCurrent, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253A5438121f-b9a9-4912-9e8a-ac7ac876c358%3A1061bc0d-ab84-4e54-9c99-b5c63164d0d3:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A5438121f-b9a9-4912-9e8a-ac7ac876c358%253A1061bc0d-ab84-4e54-9c99-b5c63164d0d3%3A61efc573-349f-45e4-ab77-f4ea2705d77b:c3dc04cf-ffde-4705-8018-f2d468deae40", "type": "provider-turn.updated"}]
- Attempt 1: injected-error: EventSinkWriteError → SqlError → LockTimeoutError

Returned: `[]`.
Persisted since fixture seed (0 events): `[]`.
Published (0 events): `[]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": null}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError → SqlError → LockTimeoutError`.

## before-O-mixed-75

Database: `/tmp/ev-21092-capture-final/before-O-mixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:32.250Z → 2026-10-24T22:28:32.377Z (0.127s). Attempts: 1; primary subagent writes: 0; success: False.

- Holder 1328619: acquired at 2026-10-24T22:28:32.286706+00:00; changes=[]
- Attempt 1: writeIfProviderThreadOwner, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253A01793708-ca94-45cd-b686-9a99cb49e67d%3A75b1e7ca-0417-4929-a5c3-2d38a7fdcf3d:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A01793708-ca94-45cd-b686-9a99cb49e67d%253A75b1e7ca-0417-4929-a5c3-2d38a7fdcf3d%3A610a8601-102b-404a-9727-5e074a3a2bb2:986f5eda-b092-4754-98b8-ad1869a6c69e", "type": "provider-thread.updated"}]
- Attempt 1: actual-error: EventSinkWriteError → SqlError → LockTimeoutError
- Holder 1328619: released at 2026-10-24T22:28:32.364832+00:00; changes=[]
- Holder 1328619: closed at 2026-10-24T22:28:32.365415+00:00; changes=[]

Returned: `[]`.
Persisted since fixture seed (0 events): `[]`.
Published (0 events): `[]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": null}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError → SqlError → LockTimeoutError`.

## before-O-injectedMixed-75

Database: `/tmp/ev-21092-capture-final/before-O-injectedMixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:32.810Z → 2026-10-24T22:28:32.814Z (0.004s). Attempts: 1; primary subagent writes: 0; success: False.

- Attempt 1: writeIfProviderThreadOwner, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253Aae5a1682-5396-4aa5-916a-6043d966cf40%3Adf3829e0-929c-44e2-b486-309e453c4cf9:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253Aae5a1682-5396-4aa5-916a-6043d966cf40%253Adf3829e0-929c-44e2-b486-309e453c4cf9%3Aeeb83033-a993-4c89-9f33-439184c94708:8f656251-df01-4fb7-b613-52768cc1276c", "type": "provider-thread.updated"}]
- Attempt 1: injected-error: EventSinkWriteError → SqlError → LockTimeoutError

Returned: `[]`.
Persisted since fixture seed (0 events): `[]`.
Published (0 events): `[]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": null}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError → SqlError → LockTimeoutError`.

## before-S-mixed-75

Database: `/tmp/ev-21092-capture-final/before-S-mixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:34.330Z → 2026-10-24T22:28:34.457Z (0.127s). Attempts: 1; primary subagent writes: 1; success: False.

- Holder 1328878: acquired at 2026-10-24T22:28:34.367780+00:00; changes=[]
- Attempt 1: write, event IDs: [{"id": "event:thread:thread%3Aprovider%3Acodex%3Anative-thread%3Aproof-child:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253Aa60a73fc-0fe0-4fac-84b9-f931d58f0f22%253A51ddad75-51a0-41b7-a25b-c2c802ac68a5%3A1c9a2d4c-6ba9-4cbc-bd85-1b5636d614c0:2eb665d3-973b-4746-8b9e-941597f83aa4", "type": "thread.model-selection-updated"}]
- Attempt 1: actual-error: EventSinkWriteError → SqlError → LockTimeoutError
- Holder 1328878: released at 2026-10-24T22:28:34.445287+00:00; changes=[]
- Holder 1328878: closed at 2026-10-24T22:28:34.445840+00:00; changes=[]

Returned: `[]`.
Persisted since fixture seed (1 events): `[{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253Aa60a73fc-0fe0-4fac-84b9-f931d58f0f22%3A51ddad75-51a0-41b7-a25b-c2c802ac68a5:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253Aa60a73fc-0fe0-4fac-84b9-f931d58f0f22%253A51ddad75-51a0-41b7-a25b-c2c802ac68a5%3A1c9a2d4c-6ba9-4cbc-bd85-1b5636d614c0:27091d27-c99f-49a2-b8d2-48c6bcd7a4b6", "type": "subagent.updated"}]`.
Published (1 events): `[{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253Aa60a73fc-0fe0-4fac-84b9-f931d58f0f22%3A51ddad75-51a0-41b7-a25b-c2c802ac68a5:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253Aa60a73fc-0fe0-4fac-84b9-f931d58f0f22%253A51ddad75-51a0-41b7-a25b-c2c802ac68a5%3A1c9a2d4c-6ba9-4cbc-bd85-1b5636d614c0:27091d27-c99f-49a2-b8d2-48c6bcd7a4b6", "type": "subagent.updated"}]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": {"instanceId": "codex", "model": "gpt-5.4", "options": [{"id": "reasoningEffort", "value": "xhigh"}]}}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError → SqlError → LockTimeoutError`.

## before-S-injectedMixed-75

Database: `/tmp/ev-21092-capture-final/before-S-injectedMixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:34.845Z → 2026-10-24T22:28:34.853Z (0.008s). Attempts: 1; primary subagent writes: 1; success: False.

- Attempt 1: write, event IDs: [{"id": "event:thread:thread%3Aprovider%3Acodex%3Anative-thread%3Aproof-child:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253Ae4241113-f182-4f02-9c1c-ade49e8e1327%253A13d61cfe-78ac-4d16-9723-824633b805ae%3A18a81bf7-81d1-4a6c-ab47-8f3c6af461e6:b201fdc6-c571-4af8-80b3-3760b871bd21", "type": "thread.model-selection-updated"}]
- Attempt 1: injected-error: EventSinkWriteError → SqlError → LockTimeoutError

Returned: `[]`.
Persisted since fixture seed (1 events): `[{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253Ae4241113-f182-4f02-9c1c-ade49e8e1327%3A13d61cfe-78ac-4d16-9723-824633b805ae:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253Ae4241113-f182-4f02-9c1c-ade49e8e1327%253A13d61cfe-78ac-4d16-9723-824633b805ae%3A18a81bf7-81d1-4a6c-ab47-8f3c6af461e6:bffd7621-0292-4485-9331-50babe5820dc", "type": "subagent.updated"}]`.
Published (1 events): `[{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253Ae4241113-f182-4f02-9c1c-ade49e8e1327%3A13d61cfe-78ac-4d16-9723-824633b805ae:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253Ae4241113-f182-4f02-9c1c-ade49e8e1327%253A13d61cfe-78ac-4d16-9723-824633b805ae%3A18a81bf7-81d1-4a6c-ab47-8f3c6af461e6:bffd7621-0292-4485-9331-50babe5820dc", "type": "subagent.updated"}]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": {"instanceId": "codex", "model": "gpt-5.4", "options": [{"id": "reasoningEffort", "value": "xhigh"}]}}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError → SqlError → LockTimeoutError`.

## after-P-mixed-75

Database: `/tmp/ev-21092-capture-final/after-P-mixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:46.443Z → 2026-10-24T22:28:46.598Z (0.155s). Attempts: 2; primary subagent writes: 0; success: False.

- Holder 1329179: acquired at 2026-10-24T22:28:46.506103+00:00; changes=[]
- Attempt 1: write, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253A203c8db8-c06d-46c4-8daf-e097783993a0%3Ab5d5c22c-73d8-43e6-baec-847e3fa2f136:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A203c8db8-c06d-46c4-8daf-e097783993a0%253Ab5d5c22c-73d8-43e6-baec-847e3fa2f136%3A53a4eb08-3b67-495d-bb36-8553ac36cfb4:eb17d6b9-1b97-4932-803f-33aad96963ea", "type": "provider-turn.updated"}]
- Attempt 1: actual-error: EventSinkWriteError → SqlError → LockTimeoutError
- Holder 1329179: released at 2026-10-24T22:28:46.583603+00:00; changes=[]
- Attempt 2: write, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253A203c8db8-c06d-46c4-8daf-e097783993a0%3Ab5d5c22c-73d8-43e6-baec-847e3fa2f136:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A203c8db8-c06d-46c4-8daf-e097783993a0%253Ab5d5c22c-73d8-43e6-baec-847e3fa2f136%3A53a4eb08-3b67-495d-bb36-8553ac36cfb4:eb17d6b9-1b97-4932-803f-33aad96963ea", "type": "provider-turn.updated"}]
- Attempt 2: actual-error: EventSinkWriteError → EventStoreAppendEventsError → PersistenceSqlError → SqlError → ConstraintError
- Holder 1329179: closed at 2026-10-24T22:28:46.586393+00:00; changes=[]

Returned: `[]`.
Persisted since fixture seed (0 events): `[]`.
Published (0 events): `[]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": null}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError → EventStoreAppendEventsError → PersistenceSqlError → SqlError → ConstraintError`.

## after-P-injectedMixed-75

Database: `/tmp/ev-21092-capture-final/after-P-injectedMixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:47.974Z → 2026-10-24T22:28:47.979Z (0.005s). Attempts: 2; primary subagent writes: 0; success: False.

- Attempt 1: write, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253Ac5f626a9-33b8-4ae0-9fbf-99f220170a4c%3Ae4cfbf95-eac2-4ff5-9b32-ba114a2e08dc:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253Ac5f626a9-33b8-4ae0-9fbf-99f220170a4c%253Ae4cfbf95-eac2-4ff5-9b32-ba114a2e08dc%3A04ea8822-5fcb-491a-8413-769ac5c5e097:a16ec6da-4342-4468-8599-f1331072fb4b", "type": "provider-turn.updated"}]
- Attempt 1: injected-error: EventSinkWriteError → SqlError → LockTimeoutError
- Attempt 2: write, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253Ac5f626a9-33b8-4ae0-9fbf-99f220170a4c%3Ae4cfbf95-eac2-4ff5-9b32-ba114a2e08dc:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253Ac5f626a9-33b8-4ae0-9fbf-99f220170a4c%253Ae4cfbf95-eac2-4ff5-9b32-ba114a2e08dc%3A04ea8822-5fcb-491a-8413-769ac5c5e097:a16ec6da-4342-4468-8599-f1331072fb4b", "type": "provider-turn.updated"}]
- Attempt 2: injected-error: EventSinkWriteError

Returned: `[]`.
Persisted since fixture seed (0 events): `[]`.
Published (0 events): `[]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": null}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError`.

## after-R-mixed-75

Database: `/tmp/ev-21092-capture-final/after-R-mixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:50.608Z → 2026-10-24T22:28:50.738Z (0.130s). Attempts: 2; primary subagent writes: 0; success: False.

- Holder 1329437: acquired at 2026-10-24T22:28:50.646799+00:00; changes=[]
- Attempt 1: writeIfRunCurrent, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253Ad4c2a5e6-bce2-441a-abd3-c5efd521d986%3A117b1e31-4e27-4175-9971-34839ce40e25:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253Ad4c2a5e6-bce2-441a-abd3-c5efd521d986%253A117b1e31-4e27-4175-9971-34839ce40e25%3A39399bf5-78cd-44c9-bbc8-0afc906edfab:55278f27-f861-4eed-91c5-0ff2c3f99a7e", "type": "provider-turn.updated"}]
- Attempt 1: actual-error: EventSinkWriteError → SqlError → LockTimeoutError
- Holder 1329437: released at 2026-10-24T22:28:50.725061+00:00; changes=[]
- Attempt 2: writeIfRunCurrent, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253Ad4c2a5e6-bce2-441a-abd3-c5efd521d986%3A117b1e31-4e27-4175-9971-34839ce40e25:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253Ad4c2a5e6-bce2-441a-abd3-c5efd521d986%253A117b1e31-4e27-4175-9971-34839ce40e25%3A39399bf5-78cd-44c9-bbc8-0afc906edfab:55278f27-f861-4eed-91c5-0ff2c3f99a7e", "type": "provider-turn.updated"}]
- Attempt 2: actual-error: EventSinkWriteError → EventStoreAppendEventsError → PersistenceSqlError → SqlError → ConstraintError
- Holder 1329437: closed at 2026-10-24T22:28:50.727966+00:00; changes=[]

Returned: `[]`.
Persisted since fixture seed (0 events): `[]`.
Published (0 events): `[]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": null}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError → EventStoreAppendEventsError → PersistenceSqlError → SqlError → ConstraintError`.

## after-R-injectedMixed-75

Database: `/tmp/ev-21092-capture-final/after-R-injectedMixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:51.123Z → 2026-10-24T22:28:51.128Z (0.005s). Attempts: 2; primary subagent writes: 0; success: False.

- Attempt 1: writeIfRunCurrent, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253Ab73feb64-9551-4981-9058-52a1867c4b47%3A9fd8822c-2702-42ad-8ccd-d5d9fca413b0:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253Ab73feb64-9551-4981-9058-52a1867c4b47%253A9fd8822c-2702-42ad-8ccd-d5d9fca413b0%3A1fe890bf-c0c6-41ef-a07a-9acf23e58ef3:ba4f7130-931a-492c-a080-bf7832395d57", "type": "provider-turn.updated"}]
- Attempt 1: injected-error: EventSinkWriteError → SqlError → LockTimeoutError
- Attempt 2: writeIfRunCurrent, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253Ab73feb64-9551-4981-9058-52a1867c4b47%3A9fd8822c-2702-42ad-8ccd-d5d9fca413b0:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253Ab73feb64-9551-4981-9058-52a1867c4b47%253A9fd8822c-2702-42ad-8ccd-d5d9fca413b0%3A1fe890bf-c0c6-41ef-a07a-9acf23e58ef3:ba4f7130-931a-492c-a080-bf7832395d57", "type": "provider-turn.updated"}]
- Attempt 2: injected-error: EventSinkWriteError

Returned: `[]`.
Persisted since fixture seed (0 events): `[]`.
Published (0 events): `[]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": null}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError`.

## after-O-mixed-75

Database: `/tmp/ev-21092-capture-final/after-O-mixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:52.495Z → 2026-10-24T22:28:52.624Z (0.129s). Attempts: 2; primary subagent writes: 0; success: False.

- Holder 1329690: acquired at 2026-10-24T22:28:52.529875+00:00; changes=[]
- Attempt 1: writeIfProviderThreadOwner, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253Af6839c52-e3f9-4c87-b821-a3b1be514663%3Adf1a9e7e-9cbc-4cc3-85aa-6d9065af95dd:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253Af6839c52-e3f9-4c87-b821-a3b1be514663%253Adf1a9e7e-9cbc-4cc3-85aa-6d9065af95dd%3Adc17f7ed-0ab4-4978-a116-c4ffa31af0cf:41b7fad2-fde0-451a-ab97-ca2fcd5ce641", "type": "provider-thread.updated"}]
- Attempt 1: actual-error: EventSinkWriteError → SqlError → LockTimeoutError
- Holder 1329690: released at 2026-10-24T22:28:52.607476+00:00; changes=[]
- Attempt 2: writeIfProviderThreadOwner, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253Af6839c52-e3f9-4c87-b821-a3b1be514663%3Adf1a9e7e-9cbc-4cc3-85aa-6d9065af95dd:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253Af6839c52-e3f9-4c87-b821-a3b1be514663%253Adf1a9e7e-9cbc-4cc3-85aa-6d9065af95dd%3Adc17f7ed-0ab4-4978-a116-c4ffa31af0cf:41b7fad2-fde0-451a-ab97-ca2fcd5ce641", "type": "provider-thread.updated"}]
- Attempt 2: actual-error: EventSinkWriteError → EventStoreAppendEventsError → PersistenceSqlError → SqlError → ConstraintError
- Holder 1329690: closed at 2026-10-24T22:28:52.611620+00:00; changes=[]

Returned: `[]`.
Persisted since fixture seed (0 events): `[]`.
Published (0 events): `[]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": null}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError → EventStoreAppendEventsError → PersistenceSqlError → SqlError → ConstraintError`.

## after-O-injectedMixed-75

Database: `/tmp/ev-21092-capture-final/after-O-injectedMixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:53.016Z → 2026-10-24T22:28:53.021Z (0.005s). Attempts: 2; primary subagent writes: 0; success: False.

- Attempt 1: writeIfProviderThreadOwner, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253A4a446155-73c6-4aea-8adc-c40491593939%3A921cda8e-7805-494c-ac6e-bf8d98299f84:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A4a446155-73c6-4aea-8adc-c40491593939%253A921cda8e-7805-494c-ac6e-bf8d98299f84%3A0a7030c7-19c0-4e00-8e60-f9033f21e8a1:df21e321-730c-4b49-8306-042e02706a76", "type": "provider-thread.updated"}]
- Attempt 1: injected-error: EventSinkWriteError → SqlError → LockTimeoutError
- Attempt 2: writeIfProviderThreadOwner, event IDs: [{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253A4a446155-73c6-4aea-8adc-c40491593939%3A921cda8e-7805-494c-ac6e-bf8d98299f84:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A4a446155-73c6-4aea-8adc-c40491593939%253A921cda8e-7805-494c-ac6e-bf8d98299f84%3A0a7030c7-19c0-4e00-8e60-f9033f21e8a1:df21e321-730c-4b49-8306-042e02706a76", "type": "provider-thread.updated"}]
- Attempt 2: injected-error: EventSinkWriteError

Returned: `[]`.
Persisted since fixture seed (0 events): `[]`.
Published (0 events): `[]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": null}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError`.

## after-S-mixed-75

Database: `/tmp/ev-21092-capture-final/after-S-mixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:54.513Z → 2026-10-24T22:28:54.638Z (0.125s). Attempts: 2; primary subagent writes: 1; success: False.

- Holder 1329712: acquired at 2026-10-24T22:28:54.547265+00:00; changes=[]
- Attempt 1: write, event IDs: [{"id": "event:thread:thread%3Aprovider%3Acodex%3Anative-thread%3Aproof-child:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A962ccd41-24e0-451b-8d6a-1ef5d30a4f0f%253A721a0741-c043-432f-bd78-106286670312%3A0bb7e277-22ee-4c61-911e-8f88e055a83b:32160081-242d-48fd-af6e-d6e0dfba877b", "type": "thread.model-selection-updated"}]
- Attempt 1: actual-error: EventSinkWriteError → SqlError → LockTimeoutError
- Holder 1329712: released at 2026-10-24T22:28:54.624845+00:00; changes=[]
- Attempt 2: write, event IDs: [{"id": "event:thread:thread%3Aprovider%3Acodex%3Anative-thread%3Aproof-child:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A962ccd41-24e0-451b-8d6a-1ef5d30a4f0f%253A721a0741-c043-432f-bd78-106286670312%3A0bb7e277-22ee-4c61-911e-8f88e055a83b:32160081-242d-48fd-af6e-d6e0dfba877b", "type": "thread.model-selection-updated"}]
- Attempt 2: actual-error: EventSinkWriteError → EventStoreAppendEventsError → PersistenceSqlError → SqlError → ConstraintError
- Holder 1329712: closed at 2026-10-24T22:28:54.627307+00:00; changes=[]

Returned: `[]`.
Persisted since fixture seed (1 events): `[{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253A962ccd41-24e0-451b-8d6a-1ef5d30a4f0f%3A721a0741-c043-432f-bd78-106286670312:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A962ccd41-24e0-451b-8d6a-1ef5d30a4f0f%253A721a0741-c043-432f-bd78-106286670312%3A0bb7e277-22ee-4c61-911e-8f88e055a83b:625d5381-3868-44a3-927d-7ced89aa8542", "type": "subagent.updated"}]`.
Published (1 events): `[{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253A962ccd41-24e0-451b-8d6a-1ef5d30a4f0f%3A721a0741-c043-432f-bd78-106286670312:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A962ccd41-24e0-451b-8d6a-1ef5d30a4f0f%253A721a0741-c043-432f-bd78-106286670312%3A0bb7e277-22ee-4c61-911e-8f88e055a83b:625d5381-3868-44a3-927d-7ced89aa8542", "type": "subagent.updated"}]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": {"instanceId": "codex", "model": "gpt-5.4", "options": [{"id": "reasoningEffort", "value": "xhigh"}]}}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError → EventStoreAppendEventsError → PersistenceSqlError → SqlError → ConstraintError`.

## after-S-injectedMixed-75

Database: `/tmp/ev-21092-capture-final/after-S-injectedMixed-75.sqlite`; effective busy_timeout: `[{'timeout': 75}]`.
Ingest: 2026-10-24T22:28:54.995Z → 2026-10-24T22:28:55.002Z (0.007s). Attempts: 2; primary subagent writes: 1; success: False.

- Attempt 1: write, event IDs: [{"id": "event:thread:thread%3Aprovider%3Acodex%3Anative-thread%3Aproof-child:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A2eed32fa-64cd-47a1-b0a3-0023e46f119a%253A29bb054d-48fb-4014-86c7-ff3ec12a6f5a%3A196604f4-496a-4995-b189-953d734444c7:720455fe-cd46-4344-ad7c-6c690bd71cde", "type": "thread.model-selection-updated"}]
- Attempt 1: injected-error: EventSinkWriteError → SqlError → LockTimeoutError
- Attempt 2: write, event IDs: [{"id": "event:thread:thread%3Aprovider%3Acodex%3Anative-thread%3Aproof-child:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A2eed32fa-64cd-47a1-b0a3-0023e46f119a%253A29bb054d-48fb-4014-86c7-ff3ec12a6f5a%3A196604f4-496a-4995-b189-953d734444c7:720455fe-cd46-4344-ad7c-6c690bd71cde", "type": "thread.model-selection-updated"}]
- Attempt 2: injected-error: EventSinkWriteError

Returned: `[]`.
Persisted since fixture seed (1 events): `[{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253A2eed32fa-64cd-47a1-b0a3-0023e46f119a%3A29bb054d-48fb-4014-86c7-ff3ec12a6f5a:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A2eed32fa-64cd-47a1-b0a3-0023e46f119a%253A29bb054d-48fb-4014-86c7-ff3ec12a6f5a%3A196604f4-496a-4995-b189-953d734444c7:915afd98-178b-4622-93ac-4e5b7f3e4770", "type": "subagent.updated"}]`.
Published (1 events): `[{"id": "event:thread:thread%3Afixture%3Aprovider-event-ingestor%3Aproject%3Aproject%253Afixture%253Aprovider-event-ingestor%253A2eed32fa-64cd-47a1-b0a3-0023e46f119a%3A29bb054d-48fb-4014-86c7-ff3ec12a6f5a:provider-session:provider-session%3Aprovider-instance%3Acodex%3Athread%3Athread%253Afixture%253Aprovider-event-ingestor%253Aproject%253Aproject%25253Afixture%25253Aprovider-event-ingestor%25253A2eed32fa-64cd-47a1-b0a3-0023e46f119a%253A29bb054d-48fb-4014-86c7-ff3ec12a6f5a%3A196604f4-496a-4995-b189-953d734444c7:915afd98-178b-4622-93ac-4e5b7f3e4770", "type": "subagent.updated"}]`.
Projected: `{"turns": [], "providerThreads": [{"id": "provider-thread:proof", "status": "idle", "lastRunOrdinal": 1}], "runs": [{"id": "run:proof", "status": "running", "activeAttemptId": "attempt:proof"}], "childModel": {"instanceId": "codex", "model": "gpt-5.4", "options": [{"id": "reasoningEffort", "value": "xhigh"}]}}`.

Returned failure chain: `ProviderEventPublishError → EventSinkWriteError`.
