@vibefield/puppeteer-imposter 0.0.0-stage → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/LICENSE +21 -0
  2. package/bin/ai.mjs +17 -0
  3. package/dist/cli/argv.d.ts +40 -0
  4. package/dist/cli/argv.d.ts.map +1 -0
  5. package/dist/cli/argv.js +62 -0
  6. package/dist/cli/argv.js.map +1 -0
  7. package/dist/cli/http-persona.d.ts +15 -0
  8. package/dist/cli/http-persona.d.ts.map +1 -0
  9. package/dist/cli/http-persona.js +216 -0
  10. package/dist/cli/http-persona.js.map +1 -0
  11. package/dist/cli/main.d.ts +11 -0
  12. package/dist/cli/main.d.ts.map +1 -0
  13. package/dist/cli/main.js +671 -0
  14. package/dist/cli/main.js.map +1 -0
  15. package/dist/cli/prompt-line.d.ts +27 -0
  16. package/dist/cli/prompt-line.d.ts.map +1 -0
  17. package/dist/cli/prompt-line.js +93 -0
  18. package/dist/cli/prompt-line.js.map +1 -0
  19. package/dist/control/client.d.ts +51 -0
  20. package/dist/control/client.d.ts.map +1 -0
  21. package/dist/control/client.js +206 -0
  22. package/dist/control/client.js.map +1 -0
  23. package/dist/control/index.d.ts +10 -0
  24. package/dist/control/index.d.ts.map +1 -0
  25. package/dist/control/index.js +10 -0
  26. package/dist/control/index.js.map +1 -0
  27. package/dist/control/peer.d.ts +42 -0
  28. package/dist/control/peer.d.ts.map +1 -0
  29. package/dist/control/peer.js +174 -0
  30. package/dist/control/peer.js.map +1 -0
  31. package/dist/control/protocol.d.ts +207 -0
  32. package/dist/control/protocol.d.ts.map +1 -0
  33. package/dist/control/protocol.js +535 -0
  34. package/dist/control/protocol.js.map +1 -0
  35. package/dist/index.d.ts +36 -0
  36. package/dist/index.d.ts.map +1 -0
  37. package/dist/index.js +36 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/persona/launch.d.ts +7 -0
  40. package/dist/persona/launch.d.ts.map +1 -0
  41. package/dist/persona/launch.js +26 -0
  42. package/dist/persona/launch.js.map +1 -0
  43. package/dist/persona/load.d.ts +28 -0
  44. package/dist/persona/load.d.ts.map +1 -0
  45. package/dist/persona/load.js +705 -0
  46. package/dist/persona/load.js.map +1 -0
  47. package/dist/persona/session-id.d.ts +4 -0
  48. package/dist/persona/session-id.d.ts.map +1 -0
  49. package/dist/persona/session-id.js +12 -0
  50. package/dist/persona/session-id.js.map +1 -0
  51. package/dist/persona/types.d.ts +265 -0
  52. package/dist/persona/types.d.ts.map +1 -0
  53. package/dist/persona/types.js +38 -0
  54. package/dist/persona/types.js.map +1 -0
  55. package/dist/session/channels/hook.d.ts +31 -0
  56. package/dist/session/channels/hook.d.ts.map +1 -0
  57. package/dist/session/channels/hook.js +114 -0
  58. package/dist/session/channels/hook.js.map +1 -0
  59. package/dist/session/channels/http-sse.d.ts +67 -0
  60. package/dist/session/channels/http-sse.d.ts.map +1 -0
  61. package/dist/session/channels/http-sse.js +212 -0
  62. package/dist/session/channels/http-sse.js.map +1 -0
  63. package/dist/session/channels/jsonrpc.d.ts +56 -0
  64. package/dist/session/channels/jsonrpc.d.ts.map +1 -0
  65. package/dist/session/channels/jsonrpc.js +196 -0
  66. package/dist/session/channels/jsonrpc.js.map +1 -0
  67. package/dist/session/channels/leader-ipc.d.ts +27 -0
  68. package/dist/session/channels/leader-ipc.d.ts.map +1 -0
  69. package/dist/session/channels/leader-ipc.js +314 -0
  70. package/dist/session/channels/leader-ipc.js.map +1 -0
  71. package/dist/session/channels/native-store.d.ts +31 -0
  72. package/dist/session/channels/native-store.d.ts.map +1 -0
  73. package/dist/session/channels/native-store.js +275 -0
  74. package/dist/session/channels/native-store.js.map +1 -0
  75. package/dist/session/channels/statusline.d.ts +20 -0
  76. package/dist/session/channels/statusline.d.ts.map +1 -0
  77. package/dist/session/channels/statusline.js +48 -0
  78. package/dist/session/channels/statusline.js.map +1 -0
  79. package/dist/session/channels/terminal.d.ts +27 -0
  80. package/dist/session/channels/terminal.d.ts.map +1 -0
  81. package/dist/session/channels/terminal.js +108 -0
  82. package/dist/session/channels/terminal.js.map +1 -0
  83. package/dist/session/channels/transcript.d.ts +16 -0
  84. package/dist/session/channels/transcript.d.ts.map +1 -0
  85. package/dist/session/channels/transcript.js +24 -0
  86. package/dist/session/channels/transcript.js.map +1 -0
  87. package/dist/session/channels/ws-unix.d.ts +57 -0
  88. package/dist/session/channels/ws-unix.d.ts.map +1 -0
  89. package/dist/session/channels/ws-unix.js +396 -0
  90. package/dist/session/channels/ws-unix.js.map +1 -0
  91. package/dist/session/http-session-server.d.ts +31 -0
  92. package/dist/session/http-session-server.d.ts.map +1 -0
  93. package/dist/session/http-session-server.js +508 -0
  94. package/dist/session/http-session-server.js.map +1 -0
  95. package/dist/session/scenario-driver.d.ts +105 -0
  96. package/dist/session/scenario-driver.d.ts.map +1 -0
  97. package/dist/session/scenario-driver.js +211 -0
  98. package/dist/session/scenario-driver.js.map +1 -0
  99. package/dist/session/scenario.d.ts +119 -0
  100. package/dist/session/scenario.d.ts.map +1 -0
  101. package/dist/session/scenario.js +299 -0
  102. package/dist/session/scenario.js.map +1 -0
  103. package/dist/session/serve.d.ts +124 -0
  104. package/dist/session/serve.d.ts.map +1 -0
  105. package/dist/session/serve.js +136 -0
  106. package/dist/session/serve.js.map +1 -0
  107. package/dist/session/session.d.ts +125 -0
  108. package/dist/session/session.d.ts.map +1 -0
  109. package/dist/session/session.js +781 -0
  110. package/dist/session/session.js.map +1 -0
  111. package/dist/session/template.d.ts +35 -0
  112. package/dist/session/template.d.ts.map +1 -0
  113. package/dist/session/template.js +133 -0
  114. package/dist/session/template.js.map +1 -0
  115. package/dist/session/timeline.d.ts +81 -0
  116. package/dist/session/timeline.d.ts.map +1 -0
  117. package/dist/session/timeline.js +155 -0
  118. package/dist/session/timeline.js.map +1 -0
  119. package/dist/tui/app.d.ts +30 -0
  120. package/dist/tui/app.d.ts.map +1 -0
  121. package/dist/tui/app.js +72 -0
  122. package/dist/tui/app.js.map +1 -0
  123. package/dist/tui/mount.d.ts +37 -0
  124. package/dist/tui/mount.d.ts.map +1 -0
  125. package/dist/tui/mount.js +88 -0
  126. package/dist/tui/mount.js.map +1 -0
  127. package/dist/tui/store.d.ts +38 -0
  128. package/dist/tui/store.d.ts.map +1 -0
  129. package/dist/tui/store.js +56 -0
  130. package/dist/tui/store.js.map +1 -0
  131. package/dist/tui/theme.d.ts +40 -0
  132. package/dist/tui/theme.d.ts.map +1 -0
  133. package/dist/tui/theme.js +54 -0
  134. package/dist/tui/theme.js.map +1 -0
  135. package/package.json +67 -3
  136. package/personas/antigravity/behavior/happy-turn.json +9 -0
  137. package/personas/antigravity/ops.json +14 -0
  138. package/personas/antigravity/persona.json +15 -0
  139. package/personas/antigravity/runflows.json +6 -0
  140. package/personas/antigravity/scenarios/happy-turn.json +25 -0
  141. package/personas/claude/behavior/happy-turn.json +19 -0
  142. package/personas/claude/ops.json +128 -0
  143. package/personas/claude/persona.json +29 -0
  144. package/personas/claude/runflows.json +45 -0
  145. package/personas/claude/scenarios/channel-disconnect.json +19 -0
  146. package/personas/claude/scenarios/crash-mid-turn.json +42 -0
  147. package/personas/claude/scenarios/cross-layer-implementation.json +488 -0
  148. package/personas/claude/scenarios/deep-research.json +494 -0
  149. package/personas/claude/scenarios/duplicate-out-of-order.json +57 -0
  150. package/personas/claude/scenarios/flood.json +11 -0
  151. package/personas/claude/scenarios/happy-turn.json +57 -0
  152. package/personas/claude/scenarios/incident-investigation.json +465 -0
  153. package/personas/claude/scenarios/late-after-exit.json +27 -0
  154. package/personas/claude/scenarios/permission-allow.json +55 -0
  155. package/personas/claude/scenarios/permission-deny.json +71 -0
  156. package/personas/claude/scenarios/token-usage-refresh.json +33 -0
  157. package/personas/claude/scenarios/unknown-event.json +14 -0
  158. package/personas/codex/behavior/approval-turn.json +15 -0
  159. package/personas/codex/behavior/happy-turn.json +10 -0
  160. package/personas/codex/ops.json +159 -0
  161. package/personas/codex/persona.json +36 -0
  162. package/personas/codex/runflows.json +45 -0
  163. package/personas/codex/scenarios/channel-disconnect.json +31 -0
  164. package/personas/codex/scenarios/crash-mid-turn.json +30 -0
  165. package/personas/codex/scenarios/cross-layer-implementation.json +725 -0
  166. package/personas/codex/scenarios/deep-research.json +684 -0
  167. package/personas/codex/scenarios/duplicate-out-of-order.json +87 -0
  168. package/personas/codex/scenarios/flood.json +22 -0
  169. package/personas/codex/scenarios/happy-turn.json +81 -0
  170. package/personas/codex/scenarios/incident-investigation.json +695 -0
  171. package/personas/codex/scenarios/late-after-exit.json +59 -0
  172. package/personas/codex/scenarios/permission-allow.json +110 -0
  173. package/personas/codex/scenarios/permission-deny.json +83 -0
  174. package/personas/codex/scenarios/token-usage-refresh.json +49 -0
  175. package/personas/codex/scenarios/unknown-event.json +17 -0
  176. package/personas/codex/serve.json +124 -0
  177. package/personas/copilot/behavior/happy-turn.json +9 -0
  178. package/personas/copilot/ops.json +28 -0
  179. package/personas/copilot/persona.json +17 -0
  180. package/personas/copilot/runflows.json +6 -0
  181. package/personas/copilot/scenarios/happy-turn.json +50 -0
  182. package/personas/grok/behavior/approval-turn.json +16 -0
  183. package/personas/grok/behavior/happy-turn.json +13 -0
  184. package/personas/grok/ops.json +330 -0
  185. package/personas/grok/persona.json +24 -0
  186. package/personas/grok/runflows.json +25 -0
  187. package/personas/grok/scenarios/agent-team-lifecycle.json +74 -0
  188. package/personas/grok/scenarios/compact-lifecycle.json +61 -0
  189. package/personas/grok/serve.json +57 -0
  190. package/personas/hermes/behavior/approval-turn.json +11 -0
  191. package/personas/hermes/behavior/happy-turn.json +9 -0
  192. package/personas/hermes/ops.json +227 -0
  193. package/personas/hermes/persona.json +15 -0
  194. package/personas/hermes/runflows.json +50 -0
  195. package/personas/hermes/scenarios/happy-turn.json +25 -0
  196. package/personas/hermes/scenarios/late-after-exit.json +21 -0
  197. package/personas/hermes/scenarios/permission-deny.json +54 -0
  198. package/personas/hermes/scenarios/unknown-event.json +14 -0
  199. package/personas/hermes/serve.json +54 -0
  200. package/personas/kimi/behavior/happy-turn.json +9 -0
  201. package/personas/kimi/ops.json +357 -0
  202. package/personas/kimi/persona.json +23 -0
  203. package/personas/kimi/runflows.json +84 -0
  204. package/personas/kimi/scenarios/compaction-lifecycle.json +20 -0
  205. package/personas/kimi/scenarios/duplicate-out-of-order.json +60 -0
  206. package/personas/kimi/scenarios/happy-turn.json +66 -0
  207. package/personas/kimi/scenarios/late-after-end.json +28 -0
  208. package/personas/kimi/scenarios/tool-failure.json +43 -0
  209. package/personas/kimi/scenarios/tool-success.json +57 -0
  210. package/personas/kimi/scenarios/unknown-record.json +15 -0
  211. package/personas/opencode/README.md +32 -0
  212. package/personas/opencode/behavior/happy-turn.json +9 -0
  213. package/personas/opencode/behavior/permission-turn.json +18 -0
  214. package/personas/opencode/http-serve.json +72 -0
  215. package/personas/opencode/ops.json +250 -0
  216. package/personas/opencode/persona.json +22 -0
  217. package/personas/opencode/runflows.json +45 -0
  218. package/personas/opencode/scenarios/duplicate-event.json +27 -0
  219. package/personas/opencode/scenarios/failure.json +30 -0
  220. package/personas/opencode/scenarios/happy-turn.json +86 -0
  221. package/personas/opencode/scenarios/late-event.json +29 -0
  222. package/personas/opencode/scenarios/out-of-order.json +42 -0
  223. package/personas/opencode/scenarios/permission-allow.json +31 -0
  224. package/personas/opencode/scenarios/permission-deny.json +31 -0
  225. package/personas/opencode/scenarios/question-reject.json +37 -0
  226. package/personas/opencode/scenarios/question-reply.json +38 -0
  227. package/personas/opencode/scenarios/reconnect.json +22 -0
  228. package/personas/opencode/scenarios/resume.json +30 -0
  229. package/personas/opencode/scenarios/unknown-event.json +15 -0
  230. package/personas/pi/behavior/happy-turn.json +9 -0
  231. package/personas/pi/ops.json +19 -0
  232. package/personas/pi/persona.json +16 -0
  233. package/personas/pi/runflows.json +6 -0
  234. package/personas/pi/scenarios/happy-turn.json +52 -0
  235. package/personas/synthetic/behavior/happy-turn.json +12 -0
  236. package/personas/synthetic/groundtruth.html +164 -0
  237. package/personas/synthetic/groundtruth.json +380 -0
  238. package/personas/synthetic/model/behavior.json +27 -0
  239. package/personas/synthetic/model/channels.json +16 -0
  240. package/personas/synthetic/model/detection.json +13 -0
  241. package/personas/synthetic/model/events/agent.action.json +16 -0
  242. package/personas/synthetic/model/events/agent.boot.json +16 -0
  243. package/personas/synthetic/model/events/agent.halt.json +16 -0
  244. package/personas/synthetic/model/events/agent.prompt.json +16 -0
  245. package/personas/synthetic/model/events/agent.reply.json +16 -0
  246. package/personas/synthetic/model/events/agent.settled.json +16 -0
  247. package/personas/synthetic/model/manifest.json +7 -0
  248. package/personas/synthetic/ops.json +18 -0
  249. package/personas/synthetic/persona.json +11 -0
  250. package/README.md +0 -3
@@ -0,0 +1,695 @@
1
+ {
2
+ "name": "incident-investigation",
3
+ "notes": "A 29-step Codex incident turn with competing workers, MCP/shell/web evidence, a failed reproduction, automatic compaction, and a sourced conclusion.",
4
+ "then": [
5
+ {
6
+ "at": 0,
7
+ "do": {
8
+ "emit": {
9
+ "event": "turn/started",
10
+ "with": {
11
+ "threadId": "$threadId",
12
+ "turn": {
13
+ "id": "$uuid:turn",
14
+ "status": "inProgress",
15
+ "items": []
16
+ }
17
+ }
18
+ }
19
+ }
20
+ },
21
+ {
22
+ "at": 100,
23
+ "do": {
24
+ "emit": {
25
+ "event": "item/started",
26
+ "with": {
27
+ "threadId": "$threadId",
28
+ "turnId": "$uuid:turn",
29
+ "startedAtMs": "$nowMs",
30
+ "item": {
31
+ "type": "userMessage",
32
+ "id": "$uuid:user-item",
33
+ "clientId": null,
34
+ "content": [
35
+ {
36
+ "type": "text",
37
+ "text": "$stimulus.text"
38
+ }
39
+ ]
40
+ }
41
+ }
42
+ }
43
+ }
44
+ },
45
+ {
46
+ "at": 200,
47
+ "do": {
48
+ "emit": {
49
+ "event": "item/completed",
50
+ "with": {
51
+ "threadId": "$threadId",
52
+ "turnId": "$uuid:turn",
53
+ "completedAtMs": "$nowMs",
54
+ "item": {
55
+ "type": "userMessage",
56
+ "id": "$uuid:user-item",
57
+ "clientId": null,
58
+ "content": [
59
+ {
60
+ "type": "text",
61
+ "text": "$stimulus.text"
62
+ }
63
+ ]
64
+ }
65
+ }
66
+ }
67
+ }
68
+ },
69
+ {
70
+ "at": 300,
71
+ "do": {
72
+ "emit": {
73
+ "event": "item/started",
74
+ "with": {
75
+ "threadId": "$threadId",
76
+ "turnId": "$uuid:turn",
77
+ "startedAtMs": "$nowMs",
78
+ "item": {
79
+ "type": "reasoning",
80
+ "id": "$uuid:reasoning",
81
+ "summary": [],
82
+ "content": []
83
+ }
84
+ }
85
+ }
86
+ }
87
+ },
88
+ {
89
+ "at": 400,
90
+ "do": {
91
+ "emit": {
92
+ "event": "item/reasoning/summaryTextDelta",
93
+ "with": {
94
+ "threadId": "$threadId",
95
+ "turnId": "$uuid:turn",
96
+ "itemId": "$uuid:reasoning",
97
+ "summaryIndex": 0,
98
+ "delta": "Run deploy-regression and dependency-failure hypotheses independently, then compare both against the same timeline."
99
+ }
100
+ }
101
+ }
102
+ },
103
+ {
104
+ "at": 500,
105
+ "do": {
106
+ "emit": {
107
+ "event": "item/completed",
108
+ "with": {
109
+ "threadId": "$threadId",
110
+ "turnId": "$uuid:turn",
111
+ "completedAtMs": "$nowMs",
112
+ "item": {
113
+ "type": "reasoning",
114
+ "id": "$uuid:reasoning",
115
+ "summary": [
116
+ "Run deploy-regression and dependency-failure hypotheses independently, then compare both against the same timeline."
117
+ ],
118
+ "content": []
119
+ }
120
+ }
121
+ }
122
+ }
123
+ },
124
+ {
125
+ "at": 600,
126
+ "do": {
127
+ "emit": {
128
+ "event": "item/started",
129
+ "with": {
130
+ "threadId": "$threadId",
131
+ "turnId": "$uuid:turn",
132
+ "startedAtMs": "$nowMs",
133
+ "item": {
134
+ "type": "collabAgentToolCall",
135
+ "id": "$uuid:spawn-deploy",
136
+ "tool": "spawnAgent",
137
+ "status": "inProgress",
138
+ "senderThreadId": "$threadId",
139
+ "prompt": "Test whether the latest deploy caused the incident.",
140
+ "receiverThreadIds": [],
141
+ "agentsStates": {}
142
+ }
143
+ }
144
+ }
145
+ }
146
+ },
147
+ {
148
+ "at": 700,
149
+ "do": {
150
+ "emit": {
151
+ "event": "item/completed",
152
+ "with": {
153
+ "threadId": "$threadId",
154
+ "turnId": "$uuid:turn",
155
+ "completedAtMs": "$nowMs",
156
+ "item": {
157
+ "type": "collabAgentToolCall",
158
+ "id": "$uuid:spawn-deploy",
159
+ "tool": "spawnAgent",
160
+ "status": "completed",
161
+ "senderThreadId": "$threadId",
162
+ "prompt": "Test whether the latest deploy caused the incident.",
163
+ "receiverThreadIds": ["$uuid:deploy-thread"],
164
+ "agentsStates": {}
165
+ }
166
+ }
167
+ }
168
+ }
169
+ },
170
+ {
171
+ "at": 800,
172
+ "do": {
173
+ "emit": {
174
+ "event": "item/started",
175
+ "with": {
176
+ "threadId": "$threadId",
177
+ "turnId": "$uuid:turn",
178
+ "startedAtMs": "$nowMs",
179
+ "item": {
180
+ "type": "collabAgentToolCall",
181
+ "id": "$uuid:spawn-dependency",
182
+ "tool": "spawnAgent",
183
+ "status": "inProgress",
184
+ "senderThreadId": "$threadId",
185
+ "prompt": "Test whether an upstream dependency or quota caused the incident.",
186
+ "receiverThreadIds": [],
187
+ "agentsStates": {}
188
+ }
189
+ }
190
+ }
191
+ }
192
+ },
193
+ {
194
+ "at": 900,
195
+ "do": {
196
+ "emit": {
197
+ "event": "item/completed",
198
+ "with": {
199
+ "threadId": "$threadId",
200
+ "turnId": "$uuid:turn",
201
+ "completedAtMs": "$nowMs",
202
+ "item": {
203
+ "type": "collabAgentToolCall",
204
+ "id": "$uuid:spawn-dependency",
205
+ "tool": "spawnAgent",
206
+ "status": "completed",
207
+ "senderThreadId": "$threadId",
208
+ "prompt": "Test whether an upstream dependency or quota caused the incident.",
209
+ "receiverThreadIds": ["$uuid:dependency-thread"],
210
+ "agentsStates": {}
211
+ }
212
+ }
213
+ }
214
+ }
215
+ },
216
+ {
217
+ "at": 1000,
218
+ "do": {
219
+ "emit": {
220
+ "event": "item/started",
221
+ "with": {
222
+ "threadId": "$threadId",
223
+ "turnId": "$uuid:turn",
224
+ "startedAtMs": "$nowMs",
225
+ "item": {
226
+ "type": "mcpToolCall",
227
+ "id": "$uuid:logs",
228
+ "server": "observability",
229
+ "tool": "query_logs",
230
+ "status": "inProgress",
231
+ "arguments": {
232
+ "service": "api",
233
+ "since": "30m",
234
+ "query": "status>=500"
235
+ }
236
+ }
237
+ }
238
+ }
239
+ }
240
+ },
241
+ {
242
+ "at": 1200,
243
+ "do": {
244
+ "emit": {
245
+ "event": "item/completed",
246
+ "with": {
247
+ "threadId": "$threadId",
248
+ "turnId": "$uuid:turn",
249
+ "completedAtMs": "$nowMs",
250
+ "item": {
251
+ "type": "mcpToolCall",
252
+ "id": "$uuid:logs",
253
+ "server": "observability",
254
+ "tool": "query_logs",
255
+ "status": "completed",
256
+ "arguments": {
257
+ "service": "api",
258
+ "since": "30m",
259
+ "query": "status>=500"
260
+ },
261
+ "result": {
262
+ "content": [
263
+ {
264
+ "type": "text",
265
+ "text": "{\"matches\":184,\"pattern\":\"timeouts begin two minutes before deploy completion\"}"
266
+ }
267
+ ],
268
+ "structuredContent": {
269
+ "matches": 184,
270
+ "pattern": "timeouts begin two minutes before deploy completion"
271
+ }
272
+ }
273
+ }
274
+ }
275
+ }
276
+ }
277
+ },
278
+ {
279
+ "at": 1300,
280
+ "do": {
281
+ "emit": {
282
+ "event": "item/started",
283
+ "with": {
284
+ "threadId": "$threadId",
285
+ "turnId": "$uuid:turn",
286
+ "startedAtMs": "$nowMs",
287
+ "item": {
288
+ "type": "commandExecution",
289
+ "id": "$uuid:reproduce",
290
+ "command": "./scripts/reproduce-timeout.sh",
291
+ "cwd": "$threadCwd",
292
+ "status": "inProgress",
293
+ "commandActions": [
294
+ {
295
+ "type": "unknown",
296
+ "command": "./scripts/reproduce-timeout.sh"
297
+ }
298
+ ]
299
+ }
300
+ }
301
+ }
302
+ }
303
+ },
304
+ {
305
+ "at": 1500,
306
+ "do": {
307
+ "emit": {
308
+ "event": "item/completed",
309
+ "with": {
310
+ "threadId": "$threadId",
311
+ "turnId": "$uuid:turn",
312
+ "completedAtMs": "$nowMs",
313
+ "item": {
314
+ "type": "commandExecution",
315
+ "id": "$uuid:reproduce",
316
+ "command": "./scripts/reproduce-timeout.sh",
317
+ "cwd": "$threadCwd",
318
+ "status": "failed",
319
+ "commandActions": [
320
+ {
321
+ "type": "unknown",
322
+ "command": "./scripts/reproduce-timeout.sh"
323
+ }
324
+ ],
325
+ "aggregatedOutput": "Fixture lacks the production timeout header; reproduction inconclusive.",
326
+ "exitCode": 1,
327
+ "durationMs": 185
328
+ }
329
+ }
330
+ }
331
+ }
332
+ },
333
+ {
334
+ "at": 1600,
335
+ "do": {
336
+ "emit": {
337
+ "event": "item/started",
338
+ "with": {
339
+ "threadId": "$threadId",
340
+ "turnId": "$uuid:turn",
341
+ "startedAtMs": "$nowMs",
342
+ "item": {
343
+ "type": "webSearch",
344
+ "id": "$uuid:status-search",
345
+ "query": "upstream provider status timeout incident",
346
+ "action": {
347
+ "type": "search",
348
+ "query": "upstream provider status timeout incident"
349
+ }
350
+ }
351
+ }
352
+ }
353
+ }
354
+ },
355
+ {
356
+ "at": 1800,
357
+ "do": {
358
+ "emit": {
359
+ "event": "item/completed",
360
+ "with": {
361
+ "threadId": "$threadId",
362
+ "turnId": "$uuid:turn",
363
+ "completedAtMs": "$nowMs",
364
+ "item": {
365
+ "type": "webSearch",
366
+ "id": "$uuid:status-search",
367
+ "query": "upstream provider status timeout incident",
368
+ "action": {
369
+ "type": "search",
370
+ "query": "upstream provider status timeout incident"
371
+ },
372
+ "results": ["No matching provider incident in the relevant window."]
373
+ }
374
+ }
375
+ }
376
+ }
377
+ },
378
+ {
379
+ "at": 1900,
380
+ "do": {
381
+ "emit": {
382
+ "event": "item/started",
383
+ "with": {
384
+ "threadId": "$threadId",
385
+ "turnId": "$uuid:turn",
386
+ "startedAtMs": "$nowMs",
387
+ "item": {
388
+ "type": "mcpToolCall",
389
+ "id": "$uuid:metrics",
390
+ "server": "observability",
391
+ "tool": "query_metrics",
392
+ "status": "inProgress",
393
+ "arguments": {
394
+ "metric": "api.request.duration",
395
+ "group_by": "release",
396
+ "since": "2h"
397
+ }
398
+ }
399
+ }
400
+ }
401
+ }
402
+ },
403
+ {
404
+ "at": 2100,
405
+ "do": {
406
+ "emit": {
407
+ "event": "item/completed",
408
+ "with": {
409
+ "threadId": "$threadId",
410
+ "turnId": "$uuid:turn",
411
+ "completedAtMs": "$nowMs",
412
+ "item": {
413
+ "type": "mcpToolCall",
414
+ "id": "$uuid:metrics",
415
+ "server": "observability",
416
+ "tool": "query_metrics",
417
+ "status": "completed",
418
+ "arguments": {
419
+ "metric": "api.request.duration",
420
+ "group_by": "release",
421
+ "since": "2h"
422
+ },
423
+ "result": {
424
+ "content": [
425
+ {
426
+ "type": "text",
427
+ "text": "{\"series\":[{\"release\":\"previous\",\"p99_ms\":480},{\"release\":\"current\",\"p99_ms\":5100}]}"
428
+ }
429
+ ],
430
+ "structuredContent": {
431
+ "series": [
432
+ {
433
+ "release": "previous",
434
+ "p99_ms": 480
435
+ },
436
+ {
437
+ "release": "current",
438
+ "p99_ms": 5100
439
+ }
440
+ ]
441
+ }
442
+ }
443
+ }
444
+ }
445
+ }
446
+ }
447
+ },
448
+ {
449
+ "at": 2200,
450
+ "do": {
451
+ "emit": {
452
+ "event": "item/started",
453
+ "with": {
454
+ "threadId": "$threadId",
455
+ "turnId": "$uuid:turn",
456
+ "startedAtMs": "$nowMs",
457
+ "item": {
458
+ "type": "collabAgentToolCall",
459
+ "id": "$uuid:wait-hypotheses",
460
+ "tool": "wait",
461
+ "status": "inProgress",
462
+ "senderThreadId": "$threadId",
463
+ "receiverThreadIds": ["$uuid:deploy-thread"],
464
+ "agentsStates": {}
465
+ }
466
+ }
467
+ }
468
+ }
469
+ },
470
+ {
471
+ "at": 2300,
472
+ "do": {
473
+ "emit": {
474
+ "event": "item/completed",
475
+ "with": {
476
+ "threadId": "$threadId",
477
+ "turnId": "$uuid:turn",
478
+ "completedAtMs": "$nowMs",
479
+ "item": {
480
+ "type": "collabAgentToolCall",
481
+ "id": "$uuid:wait-hypotheses",
482
+ "tool": "wait",
483
+ "status": "completed",
484
+ "senderThreadId": "$threadId",
485
+ "receiverThreadIds": ["$uuid:deploy-thread"],
486
+ "agentsStates": {}
487
+ }
488
+ }
489
+ }
490
+ }
491
+ },
492
+ {
493
+ "at": 2400,
494
+ "do": {
495
+ "emit": {
496
+ "event": "thread/tokenUsage/updated",
497
+ "with": {
498
+ "threadId": "$threadId",
499
+ "turnId": "$uuid:turn",
500
+ "tokenUsage": {
501
+ "total": {
502
+ "totalTokens": 372000,
503
+ "inputTokens": 362000,
504
+ "cachedInputTokens": 91000,
505
+ "outputTokens": 10000,
506
+ "reasoningOutputTokens": 6000
507
+ },
508
+ "last": {
509
+ "totalTokens": 372000,
510
+ "inputTokens": 362000,
511
+ "cachedInputTokens": 91000,
512
+ "outputTokens": 10000,
513
+ "reasoningOutputTokens": 6000
514
+ },
515
+ "modelContextWindow": 400000
516
+ }
517
+ }
518
+ }
519
+ }
520
+ },
521
+ {
522
+ "at": 2500,
523
+ "do": {
524
+ "emit": {
525
+ "event": "item/started",
526
+ "with": {
527
+ "threadId": "$threadId",
528
+ "turnId": "$uuid:turn",
529
+ "startedAtMs": "$nowMs",
530
+ "item": {
531
+ "type": "contextCompaction",
532
+ "id": "$uuid:compaction"
533
+ }
534
+ }
535
+ }
536
+ }
537
+ },
538
+ {
539
+ "at": 2600,
540
+ "do": {
541
+ "emit": {
542
+ "event": "item/completed",
543
+ "with": {
544
+ "threadId": "$threadId",
545
+ "turnId": "$uuid:turn",
546
+ "completedAtMs": "$nowMs",
547
+ "item": {
548
+ "type": "contextCompaction",
549
+ "id": "$uuid:compaction"
550
+ }
551
+ }
552
+ }
553
+ }
554
+ },
555
+ {
556
+ "at": 2700,
557
+ "do": {
558
+ "emit": {
559
+ "event": "thread/tokenUsage/updated",
560
+ "with": {
561
+ "threadId": "$threadId",
562
+ "turnId": "$uuid:turn",
563
+ "tokenUsage": {
564
+ "total": {
565
+ "totalTokens": 393000,
566
+ "inputTokens": 380000,
567
+ "cachedInputTokens": 99000,
568
+ "outputTokens": 13000,
569
+ "reasoningOutputTokens": 7000
570
+ },
571
+ "last": {
572
+ "totalTokens": 21000,
573
+ "inputTokens": 18000,
574
+ "cachedInputTokens": 8000,
575
+ "outputTokens": 3000,
576
+ "reasoningOutputTokens": 1000
577
+ },
578
+ "modelContextWindow": 400000
579
+ }
580
+ }
581
+ }
582
+ }
583
+ },
584
+ {
585
+ "at": 2800,
586
+ "do": {
587
+ "emit": {
588
+ "event": "item/started",
589
+ "with": {
590
+ "threadId": "$threadId",
591
+ "turnId": "$uuid:turn",
592
+ "startedAtMs": "$nowMs",
593
+ "item": {
594
+ "type": "commandExecution",
595
+ "id": "$uuid:verify-config",
596
+ "command": "./scripts/compare-release-config.sh previous current",
597
+ "cwd": "$threadCwd",
598
+ "status": "inProgress",
599
+ "commandActions": [
600
+ {
601
+ "type": "unknown",
602
+ "command": "./scripts/compare-release-config.sh previous current"
603
+ }
604
+ ]
605
+ }
606
+ }
607
+ }
608
+ }
609
+ },
610
+ {
611
+ "at": 3000,
612
+ "do": {
613
+ "emit": {
614
+ "event": "item/completed",
615
+ "with": {
616
+ "threadId": "$threadId",
617
+ "turnId": "$uuid:turn",
618
+ "completedAtMs": "$nowMs",
619
+ "item": {
620
+ "type": "commandExecution",
621
+ "id": "$uuid:verify-config",
622
+ "command": "./scripts/compare-release-config.sh previous current",
623
+ "cwd": "$threadCwd",
624
+ "status": "completed",
625
+ "commandActions": [
626
+ {
627
+ "type": "unknown",
628
+ "command": "./scripts/compare-release-config.sh previous current"
629
+ }
630
+ ],
631
+ "aggregatedOutput": "Current release lowered the upstream timeout from 10s to 1s.",
632
+ "exitCode": 0,
633
+ "durationMs": 175
634
+ }
635
+ }
636
+ }
637
+ }
638
+ },
639
+ {
640
+ "at": 3100,
641
+ "do": {
642
+ "emit": {
643
+ "event": "item/started",
644
+ "with": {
645
+ "threadId": "$threadId",
646
+ "turnId": "$uuid:turn",
647
+ "startedAtMs": "$nowMs",
648
+ "item": {
649
+ "type": "agentMessage",
650
+ "id": "$uuid:agent-message",
651
+ "text": "",
652
+ "phase": "final_answer"
653
+ }
654
+ }
655
+ }
656
+ }
657
+ },
658
+ {
659
+ "at": 3200,
660
+ "do": {
661
+ "emit": {
662
+ "event": "item/completed",
663
+ "with": {
664
+ "threadId": "$threadId",
665
+ "turnId": "$uuid:turn",
666
+ "completedAtMs": "$nowMs",
667
+ "item": {
668
+ "type": "agentMessage",
669
+ "id": "$uuid:agent-message",
670
+ "text": "Root cause: the current release lowered the upstream timeout. Roll back now, then restore the intended timeout with a regression test.",
671
+ "phase": "final_answer"
672
+ }
673
+ }
674
+ }
675
+ }
676
+ },
677
+ {
678
+ "at": 3300,
679
+ "do": {
680
+ "emit": {
681
+ "event": "turn/completed",
682
+ "with": {
683
+ "threadId": "$threadId",
684
+ "turn": {
685
+ "id": "$uuid:turn",
686
+ "status": "completed",
687
+ "error": null,
688
+ "items": []
689
+ }
690
+ }
691
+ }
692
+ }
693
+ }
694
+ ]
695
+ }