@vibefield/puppeteer-imposter 0.0.0-stage → 0.2.0

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,725 @@
1
+ {
2
+ "name": "cross-layer-implementation",
3
+ "notes": "A 30-step Codex implementation turn with parallel workers, command/file/MCP tools, a real approval request, compaction, and final verification.",
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": 500,
71
+ "do": {
72
+ "emit": {
73
+ "event": "item/started",
74
+ "with": {
75
+ "threadId": "$threadId",
76
+ "turnId": "$uuid:turn",
77
+ "startedAtMs": "$nowMs",
78
+ "item": {
79
+ "type": "collabAgentToolCall",
80
+ "id": "$uuid:spawn-implementer",
81
+ "tool": "spawnAgent",
82
+ "status": "inProgress",
83
+ "senderThreadId": "$threadId",
84
+ "prompt": "Trace the implementation seam and propose the smallest safe change.",
85
+ "receiverThreadIds": [],
86
+ "agentsStates": {}
87
+ }
88
+ }
89
+ }
90
+ }
91
+ },
92
+ {
93
+ "at": 600,
94
+ "do": {
95
+ "emit": {
96
+ "event": "item/completed",
97
+ "with": {
98
+ "threadId": "$threadId",
99
+ "turnId": "$uuid:turn",
100
+ "completedAtMs": "$nowMs",
101
+ "item": {
102
+ "type": "collabAgentToolCall",
103
+ "id": "$uuid:spawn-implementer",
104
+ "tool": "spawnAgent",
105
+ "status": "completed",
106
+ "senderThreadId": "$threadId",
107
+ "prompt": "Trace the implementation seam and propose the smallest safe change.",
108
+ "receiverThreadIds": ["$uuid:implementer-thread"],
109
+ "agentsStates": {}
110
+ }
111
+ }
112
+ }
113
+ }
114
+ },
115
+ {
116
+ "at": 700,
117
+ "do": {
118
+ "emit": {
119
+ "event": "item/started",
120
+ "with": {
121
+ "threadId": "$threadId",
122
+ "turnId": "$uuid:turn",
123
+ "startedAtMs": "$nowMs",
124
+ "item": {
125
+ "type": "collabAgentToolCall",
126
+ "id": "$uuid:spawn-tests",
127
+ "tool": "spawnAgent",
128
+ "status": "inProgress",
129
+ "senderThreadId": "$threadId",
130
+ "prompt": "Find the regression boundary and design high-signal tests.",
131
+ "receiverThreadIds": [],
132
+ "agentsStates": {}
133
+ }
134
+ }
135
+ }
136
+ }
137
+ },
138
+ {
139
+ "at": 800,
140
+ "do": {
141
+ "emit": {
142
+ "event": "item/completed",
143
+ "with": {
144
+ "threadId": "$threadId",
145
+ "turnId": "$uuid:turn",
146
+ "completedAtMs": "$nowMs",
147
+ "item": {
148
+ "type": "collabAgentToolCall",
149
+ "id": "$uuid:spawn-tests",
150
+ "tool": "spawnAgent",
151
+ "status": "completed",
152
+ "senderThreadId": "$threadId",
153
+ "prompt": "Find the regression boundary and design high-signal tests.",
154
+ "receiverThreadIds": ["$uuid:tests-thread"],
155
+ "agentsStates": {}
156
+ }
157
+ }
158
+ }
159
+ }
160
+ },
161
+ {
162
+ "at": 900,
163
+ "do": {
164
+ "emit": {
165
+ "event": "item/started",
166
+ "with": {
167
+ "threadId": "$threadId",
168
+ "turnId": "$uuid:turn",
169
+ "startedAtMs": "$nowMs",
170
+ "item": {
171
+ "type": "commandExecution",
172
+ "id": "$uuid:trace",
173
+ "command": "rg -n 'createScenarioRunner|scenarioSteps|runflows' packages/imposter",
174
+ "cwd": "$threadCwd",
175
+ "status": "inProgress",
176
+ "commandActions": [
177
+ {
178
+ "type": "search",
179
+ "query": "createScenarioRunner|scenarioSteps|runflows",
180
+ "command": "rg -n 'createScenarioRunner|scenarioSteps|runflows' packages/imposter"
181
+ }
182
+ ]
183
+ }
184
+ }
185
+ }
186
+ }
187
+ },
188
+ {
189
+ "at": 1100,
190
+ "do": {
191
+ "emit": {
192
+ "event": "item/completed",
193
+ "with": {
194
+ "threadId": "$threadId",
195
+ "turnId": "$uuid:turn",
196
+ "completedAtMs": "$nowMs",
197
+ "item": {
198
+ "type": "commandExecution",
199
+ "id": "$uuid:trace",
200
+ "command": "rg -n 'createScenarioRunner|scenarioSteps|runflows' packages/imposter",
201
+ "cwd": "$threadCwd",
202
+ "status": "completed",
203
+ "commandActions": [
204
+ {
205
+ "type": "search",
206
+ "query": "createScenarioRunner|scenarioSteps|runflows",
207
+ "command": "rg -n 'createScenarioRunner|scenarioSteps|runflows' packages/imposter"
208
+ }
209
+ ],
210
+ "aggregatedOutput": "Scenario data belongs to personas; runtime validation belongs to the scenario runner and persona tests.",
211
+ "exitCode": 0,
212
+ "durationMs": 175
213
+ }
214
+ }
215
+ }
216
+ }
217
+ },
218
+ {
219
+ "at": 1200,
220
+ "do": {
221
+ "emit": {
222
+ "event": "item/started",
223
+ "with": {
224
+ "threadId": "$threadId",
225
+ "turnId": "$uuid:turn",
226
+ "startedAtMs": "$nowMs",
227
+ "item": {
228
+ "type": "fileChange",
229
+ "id": "$uuid:file-change",
230
+ "status": "inProgress",
231
+ "changes": [
232
+ {
233
+ "path": "packages/imposter/personas/codex/runflows.json",
234
+ "kind": {
235
+ "type": "update"
236
+ },
237
+ "diff": "+ realistic runflow catalog"
238
+ }
239
+ ]
240
+ }
241
+ }
242
+ }
243
+ }
244
+ },
245
+ {
246
+ "at": 1400,
247
+ "do": {
248
+ "emit": {
249
+ "event": "item/completed",
250
+ "with": {
251
+ "threadId": "$threadId",
252
+ "turnId": "$uuid:turn",
253
+ "completedAtMs": "$nowMs",
254
+ "item": {
255
+ "type": "fileChange",
256
+ "id": "$uuid:file-change",
257
+ "status": "completed",
258
+ "changes": [
259
+ {
260
+ "path": "packages/imposter/personas/codex/runflows.json",
261
+ "kind": {
262
+ "type": "update"
263
+ },
264
+ "diff": "+ realistic runflow catalog"
265
+ }
266
+ ]
267
+ }
268
+ }
269
+ }
270
+ }
271
+ },
272
+ {
273
+ "at": 1500,
274
+ "do": {
275
+ "emit": {
276
+ "event": "item/started",
277
+ "with": {
278
+ "threadId": "$threadId",
279
+ "turnId": "$uuid:turn",
280
+ "startedAtMs": "$nowMs",
281
+ "item": {
282
+ "type": "commandExecution",
283
+ "id": "$uuid:baseline-test",
284
+ "command": "pnpm --filter @vibefield/puppeteer-imposter test -- scenarios.codex",
285
+ "cwd": "$threadCwd",
286
+ "status": "inProgress",
287
+ "commandActions": [
288
+ {
289
+ "type": "unknown",
290
+ "command": "pnpm --filter @vibefield/puppeteer-imposter test -- scenarios.codex"
291
+ }
292
+ ]
293
+ }
294
+ }
295
+ }
296
+ }
297
+ },
298
+ {
299
+ "at": 1700,
300
+ "do": {
301
+ "emit": {
302
+ "event": "item/completed",
303
+ "with": {
304
+ "threadId": "$threadId",
305
+ "turnId": "$uuid:turn",
306
+ "completedAtMs": "$nowMs",
307
+ "item": {
308
+ "type": "commandExecution",
309
+ "id": "$uuid:baseline-test",
310
+ "command": "pnpm --filter @vibefield/puppeteer-imposter test -- scenarios.codex",
311
+ "cwd": "$threadCwd",
312
+ "status": "failed",
313
+ "commandActions": [
314
+ {
315
+ "type": "unknown",
316
+ "command": "pnpm --filter @vibefield/puppeteer-imposter test -- scenarios.codex"
317
+ }
318
+ ],
319
+ "aggregatedOutput": "Expected long-form runflow contract is not implemented yet.",
320
+ "exitCode": 1,
321
+ "durationMs": 180
322
+ }
323
+ }
324
+ }
325
+ }
326
+ },
327
+ {
328
+ "at": 1800,
329
+ "do": {
330
+ "emit": {
331
+ "event": "item/started",
332
+ "with": {
333
+ "threadId": "$threadId",
334
+ "turnId": "$uuid:turn",
335
+ "startedAtMs": "$nowMs",
336
+ "item": {
337
+ "type": "mcpToolCall",
338
+ "id": "$uuid:issue-context",
339
+ "server": "github",
340
+ "tool": "get_issue",
341
+ "status": "inProgress",
342
+ "arguments": {
343
+ "number": 42
344
+ }
345
+ }
346
+ }
347
+ }
348
+ }
349
+ },
350
+ {
351
+ "at": 2000,
352
+ "do": {
353
+ "emit": {
354
+ "event": "item/completed",
355
+ "with": {
356
+ "threadId": "$threadId",
357
+ "turnId": "$uuid:turn",
358
+ "completedAtMs": "$nowMs",
359
+ "item": {
360
+ "type": "mcpToolCall",
361
+ "id": "$uuid:issue-context",
362
+ "server": "github",
363
+ "tool": "get_issue",
364
+ "status": "completed",
365
+ "arguments": {
366
+ "number": 42
367
+ },
368
+ "result": {
369
+ "content": [
370
+ {
371
+ "type": "text",
372
+ "text": "{\"title\":\"Replace toy scenarios with realistic agent workflows\",\"acceptance\":\"20-30 steps, tool diversity, delegation, compaction\"}"
373
+ }
374
+ ],
375
+ "structuredContent": {
376
+ "title": "Replace toy scenarios with realistic agent workflows",
377
+ "acceptance": "20-30 steps, tool diversity, delegation, compaction"
378
+ }
379
+ }
380
+ }
381
+ }
382
+ }
383
+ }
384
+ },
385
+ {
386
+ "at": 2100,
387
+ "do": {
388
+ "emit": {
389
+ "event": "item/started",
390
+ "with": {
391
+ "threadId": "$threadId",
392
+ "turnId": "$uuid:turn",
393
+ "startedAtMs": "$nowMs",
394
+ "item": {
395
+ "type": "commandExecution",
396
+ "id": "$uuid:approved-test",
397
+ "command": "pnpm --filter @vibefield/puppeteer-imposter test",
398
+ "cwd": "$threadCwd",
399
+ "status": "inProgress",
400
+ "commandActions": [
401
+ {
402
+ "type": "unknown",
403
+ "command": "pnpm --filter @vibefield/puppeteer-imposter test"
404
+ }
405
+ ]
406
+ }
407
+ }
408
+ }
409
+ }
410
+ },
411
+ {
412
+ "at": 2200,
413
+ "do": {
414
+ "emit": {
415
+ "request": true,
416
+ "event": "item/commandExecution/requestApproval",
417
+ "with": {
418
+ "threadId": "$threadId",
419
+ "turnId": "$uuid:turn",
420
+ "itemId": "$uuid:approved-test",
421
+ "startedAtMs": "$nowMs",
422
+ "command": "pnpm --filter @vibefield/puppeteer-imposter test",
423
+ "cwd": "$threadCwd",
424
+ "commandActions": [
425
+ {
426
+ "type": "unknown",
427
+ "command": "pnpm --filter @vibefield/puppeteer-imposter test"
428
+ }
429
+ ],
430
+ "availableDecisions": ["accept", "cancel"]
431
+ }
432
+ }
433
+ }
434
+ },
435
+ {
436
+ "at": 2500,
437
+ "do": {
438
+ "emit": {
439
+ "event": "item/completed",
440
+ "with": {
441
+ "threadId": "$threadId",
442
+ "turnId": "$uuid:turn",
443
+ "completedAtMs": "$nowMs",
444
+ "item": {
445
+ "type": "commandExecution",
446
+ "id": "$uuid:approved-test",
447
+ "command": "pnpm --filter @vibefield/puppeteer-imposter test",
448
+ "cwd": "$threadCwd",
449
+ "status": "completed",
450
+ "commandActions": [
451
+ {
452
+ "type": "unknown",
453
+ "command": "pnpm --filter @vibefield/puppeteer-imposter test"
454
+ }
455
+ ],
456
+ "aggregatedOutput": "Scenario, normalizer, and control-plane tests passed.",
457
+ "exitCode": 0,
458
+ "durationMs": 265
459
+ }
460
+ }
461
+ }
462
+ }
463
+ },
464
+ {
465
+ "at": 2600,
466
+ "do": {
467
+ "emit": {
468
+ "event": "item/started",
469
+ "with": {
470
+ "threadId": "$threadId",
471
+ "turnId": "$uuid:turn",
472
+ "startedAtMs": "$nowMs",
473
+ "item": {
474
+ "type": "collabAgentToolCall",
475
+ "id": "$uuid:wait-workers",
476
+ "tool": "wait",
477
+ "status": "inProgress",
478
+ "senderThreadId": "$threadId",
479
+ "receiverThreadIds": ["$uuid:tests-thread"],
480
+ "agentsStates": {}
481
+ }
482
+ }
483
+ }
484
+ }
485
+ },
486
+ {
487
+ "at": 2700,
488
+ "do": {
489
+ "emit": {
490
+ "event": "item/completed",
491
+ "with": {
492
+ "threadId": "$threadId",
493
+ "turnId": "$uuid:turn",
494
+ "completedAtMs": "$nowMs",
495
+ "item": {
496
+ "type": "collabAgentToolCall",
497
+ "id": "$uuid:wait-workers",
498
+ "tool": "wait",
499
+ "status": "completed",
500
+ "senderThreadId": "$threadId",
501
+ "receiverThreadIds": ["$uuid:tests-thread"],
502
+ "agentsStates": {}
503
+ }
504
+ }
505
+ }
506
+ }
507
+ },
508
+ {
509
+ "at": 2800,
510
+ "do": {
511
+ "emit": {
512
+ "event": "thread/tokenUsage/updated",
513
+ "with": {
514
+ "threadId": "$threadId",
515
+ "turnId": "$uuid:turn",
516
+ "tokenUsage": {
517
+ "total": {
518
+ "totalTokens": 384000,
519
+ "inputTokens": 374000,
520
+ "cachedInputTokens": 96000,
521
+ "outputTokens": 10000,
522
+ "reasoningOutputTokens": 6000
523
+ },
524
+ "last": {
525
+ "totalTokens": 384000,
526
+ "inputTokens": 374000,
527
+ "cachedInputTokens": 96000,
528
+ "outputTokens": 10000,
529
+ "reasoningOutputTokens": 6000
530
+ },
531
+ "modelContextWindow": 400000
532
+ }
533
+ }
534
+ }
535
+ }
536
+ },
537
+ {
538
+ "at": 2900,
539
+ "do": {
540
+ "emit": {
541
+ "event": "item/started",
542
+ "with": {
543
+ "threadId": "$threadId",
544
+ "turnId": "$uuid:turn",
545
+ "startedAtMs": "$nowMs",
546
+ "item": {
547
+ "type": "contextCompaction",
548
+ "id": "$uuid:compaction"
549
+ }
550
+ }
551
+ }
552
+ }
553
+ },
554
+ {
555
+ "at": 3000,
556
+ "do": {
557
+ "emit": {
558
+ "event": "item/completed",
559
+ "with": {
560
+ "threadId": "$threadId",
561
+ "turnId": "$uuid:turn",
562
+ "completedAtMs": "$nowMs",
563
+ "item": {
564
+ "type": "contextCompaction",
565
+ "id": "$uuid:compaction"
566
+ }
567
+ }
568
+ }
569
+ }
570
+ },
571
+ {
572
+ "at": 3100,
573
+ "do": {
574
+ "emit": {
575
+ "event": "thread/tokenUsage/updated",
576
+ "with": {
577
+ "threadId": "$threadId",
578
+ "turnId": "$uuid:turn",
579
+ "tokenUsage": {
580
+ "total": {
581
+ "totalTokens": 405000,
582
+ "inputTokens": 392000,
583
+ "cachedInputTokens": 104000,
584
+ "outputTokens": 13000,
585
+ "reasoningOutputTokens": 7000
586
+ },
587
+ "last": {
588
+ "totalTokens": 21000,
589
+ "inputTokens": 18000,
590
+ "cachedInputTokens": 8000,
591
+ "outputTokens": 3000,
592
+ "reasoningOutputTokens": 1000
593
+ },
594
+ "modelContextWindow": 400000
595
+ }
596
+ }
597
+ }
598
+ }
599
+ },
600
+ {
601
+ "at": 3200,
602
+ "do": {
603
+ "emit": {
604
+ "event": "item/started",
605
+ "with": {
606
+ "threadId": "$threadId",
607
+ "turnId": "$uuid:turn",
608
+ "startedAtMs": "$nowMs",
609
+ "item": {
610
+ "type": "commandExecution",
611
+ "id": "$uuid:diff-check",
612
+ "command": "git diff --check && git diff --stat",
613
+ "cwd": "$threadCwd",
614
+ "status": "inProgress",
615
+ "commandActions": [
616
+ {
617
+ "type": "unknown",
618
+ "command": "git diff --check && git diff --stat"
619
+ }
620
+ ]
621
+ }
622
+ }
623
+ }
624
+ }
625
+ },
626
+ {
627
+ "at": 3400,
628
+ "do": {
629
+ "emit": {
630
+ "event": "item/completed",
631
+ "with": {
632
+ "threadId": "$threadId",
633
+ "turnId": "$uuid:turn",
634
+ "completedAtMs": "$nowMs",
635
+ "item": {
636
+ "type": "commandExecution",
637
+ "id": "$uuid:diff-check",
638
+ "command": "git diff --check && git diff --stat",
639
+ "cwd": "$threadCwd",
640
+ "status": "completed",
641
+ "commandActions": [
642
+ {
643
+ "type": "unknown",
644
+ "command": "git diff --check && git diff --stat"
645
+ }
646
+ ],
647
+ "aggregatedOutput": "No whitespace errors; intended files only.",
648
+ "exitCode": 0,
649
+ "durationMs": 170
650
+ }
651
+ }
652
+ }
653
+ }
654
+ },
655
+ {
656
+ "at": 3500,
657
+ "do": {
658
+ "emit": {
659
+ "event": "item/started",
660
+ "with": {
661
+ "threadId": "$threadId",
662
+ "turnId": "$uuid:turn",
663
+ "startedAtMs": "$nowMs",
664
+ "item": {
665
+ "type": "agentMessage",
666
+ "id": "$uuid:agent-message",
667
+ "text": "",
668
+ "phase": "final_answer"
669
+ }
670
+ }
671
+ }
672
+ }
673
+ },
674
+ {
675
+ "at": 3600,
676
+ "do": {
677
+ "emit": {
678
+ "event": "item/agentMessage/delta",
679
+ "with": {
680
+ "threadId": "$threadId",
681
+ "turnId": "$uuid:turn",
682
+ "itemId": "$uuid:agent-message",
683
+ "delta": "Implemented the cross-layer change with parallel review, approval evidence, passing tests, and a verified final diff."
684
+ }
685
+ }
686
+ }
687
+ },
688
+ {
689
+ "at": 3700,
690
+ "do": {
691
+ "emit": {
692
+ "event": "item/completed",
693
+ "with": {
694
+ "threadId": "$threadId",
695
+ "turnId": "$uuid:turn",
696
+ "completedAtMs": "$nowMs",
697
+ "item": {
698
+ "type": "agentMessage",
699
+ "id": "$uuid:agent-message",
700
+ "text": "Implemented the cross-layer change with parallel review, approval evidence, passing tests, and a verified final diff.",
701
+ "phase": "final_answer"
702
+ }
703
+ }
704
+ }
705
+ }
706
+ },
707
+ {
708
+ "at": 3800,
709
+ "do": {
710
+ "emit": {
711
+ "event": "turn/completed",
712
+ "with": {
713
+ "threadId": "$threadId",
714
+ "turn": {
715
+ "id": "$uuid:turn",
716
+ "status": "completed",
717
+ "error": null,
718
+ "items": []
719
+ }
720
+ }
721
+ }
722
+ }
723
+ }
724
+ ]
725
+ }