@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,684 @@
1
+ {
2
+ "name": "deep-research",
3
+ "notes": "A 30-step Codex research turn with two collaboration workers, web/MCP/shell tools, automatic compaction, and post-compaction 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": 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": "Split primary-source research from local implementation analysis, then reconcile both lanes."
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
+ "Split primary-source research from local implementation analysis, then reconcile both lanes."
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-sources",
136
+ "tool": "spawnAgent",
137
+ "status": "inProgress",
138
+ "senderThreadId": "$threadId",
139
+ "prompt": "Collect current primary sources and publication dates.",
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-sources",
159
+ "tool": "spawnAgent",
160
+ "status": "completed",
161
+ "senderThreadId": "$threadId",
162
+ "prompt": "Collect current primary sources and publication dates.",
163
+ "receiverThreadIds": ["$uuid:sources-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-analyst",
182
+ "tool": "spawnAgent",
183
+ "status": "inProgress",
184
+ "senderThreadId": "$threadId",
185
+ "prompt": "Map the local repository and extract implementation constraints.",
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-analyst",
205
+ "tool": "spawnAgent",
206
+ "status": "completed",
207
+ "senderThreadId": "$threadId",
208
+ "prompt": "Map the local repository and extract implementation constraints.",
209
+ "receiverThreadIds": ["$uuid:analyst-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": "webSearch",
227
+ "id": "$uuid:web-search",
228
+ "query": "current primary sources for $stimulus.text",
229
+ "action": {
230
+ "type": "search",
231
+ "query": "current primary sources for $stimulus.text"
232
+ }
233
+ }
234
+ }
235
+ }
236
+ }
237
+ },
238
+ {
239
+ "at": 1200,
240
+ "do": {
241
+ "emit": {
242
+ "event": "item/completed",
243
+ "with": {
244
+ "threadId": "$threadId",
245
+ "turnId": "$uuid:turn",
246
+ "completedAtMs": "$nowMs",
247
+ "item": {
248
+ "type": "webSearch",
249
+ "id": "$uuid:web-search",
250
+ "query": "current primary sources for $stimulus.text",
251
+ "action": {
252
+ "type": "search",
253
+ "query": "current primary sources for $stimulus.text"
254
+ },
255
+ "results": ["official specification", "maintainer documentation", "release notes"]
256
+ }
257
+ }
258
+ }
259
+ }
260
+ },
261
+ {
262
+ "at": 1300,
263
+ "do": {
264
+ "emit": {
265
+ "event": "item/started",
266
+ "with": {
267
+ "threadId": "$threadId",
268
+ "turnId": "$uuid:turn",
269
+ "startedAtMs": "$nowMs",
270
+ "item": {
271
+ "type": "mcpToolCall",
272
+ "id": "$uuid:mcp-source",
273
+ "server": "docs",
274
+ "tool": "fetch_document",
275
+ "status": "inProgress",
276
+ "arguments": {
277
+ "uri": "https://example.com/primary-source"
278
+ }
279
+ }
280
+ }
281
+ }
282
+ }
283
+ },
284
+ {
285
+ "at": 1500,
286
+ "do": {
287
+ "emit": {
288
+ "event": "item/completed",
289
+ "with": {
290
+ "threadId": "$threadId",
291
+ "turnId": "$uuid:turn",
292
+ "completedAtMs": "$nowMs",
293
+ "item": {
294
+ "type": "mcpToolCall",
295
+ "id": "$uuid:mcp-source",
296
+ "server": "docs",
297
+ "tool": "fetch_document",
298
+ "status": "completed",
299
+ "arguments": {
300
+ "uri": "https://example.com/primary-source"
301
+ },
302
+ "result": {
303
+ "content": [
304
+ {
305
+ "type": "text",
306
+ "text": "{\"summary\":\"Primary source confirms the current lifecycle and constraints.\"}"
307
+ }
308
+ ],
309
+ "structuredContent": {
310
+ "summary": "Primary source confirms the current lifecycle and constraints."
311
+ }
312
+ }
313
+ }
314
+ }
315
+ }
316
+ }
317
+ },
318
+ {
319
+ "at": 1600,
320
+ "do": {
321
+ "emit": {
322
+ "event": "item/started",
323
+ "with": {
324
+ "threadId": "$threadId",
325
+ "turnId": "$uuid:turn",
326
+ "startedAtMs": "$nowMs",
327
+ "item": {
328
+ "type": "commandExecution",
329
+ "id": "$uuid:inventory",
330
+ "command": "rg -n 'scenario|compaction|subagent' packages draft",
331
+ "cwd": "$threadCwd",
332
+ "status": "inProgress",
333
+ "commandActions": [
334
+ {
335
+ "type": "search",
336
+ "query": "scenario|compaction|subagent",
337
+ "command": "rg -n 'scenario|compaction|subagent' packages draft"
338
+ }
339
+ ]
340
+ }
341
+ }
342
+ }
343
+ }
344
+ },
345
+ {
346
+ "at": 1800,
347
+ "do": {
348
+ "emit": {
349
+ "event": "item/completed",
350
+ "with": {
351
+ "threadId": "$threadId",
352
+ "turnId": "$uuid:turn",
353
+ "completedAtMs": "$nowMs",
354
+ "item": {
355
+ "type": "commandExecution",
356
+ "id": "$uuid:inventory",
357
+ "command": "rg -n 'scenario|compaction|subagent' packages draft",
358
+ "cwd": "$threadCwd",
359
+ "status": "completed",
360
+ "commandActions": [
361
+ {
362
+ "type": "search",
363
+ "query": "scenario|compaction|subagent",
364
+ "command": "rg -n 'scenario|compaction|subagent' packages draft"
365
+ }
366
+ ],
367
+ "aggregatedOutput": "Found scenario catalogs, delegation items, and compaction events.",
368
+ "exitCode": 0,
369
+ "durationMs": 175
370
+ }
371
+ }
372
+ }
373
+ }
374
+ },
375
+ {
376
+ "at": 1900,
377
+ "do": {
378
+ "emit": {
379
+ "event": "item/started",
380
+ "with": {
381
+ "threadId": "$threadId",
382
+ "turnId": "$uuid:turn",
383
+ "startedAtMs": "$nowMs",
384
+ "item": {
385
+ "type": "collabAgentToolCall",
386
+ "id": "$uuid:wait-agents",
387
+ "tool": "wait",
388
+ "status": "inProgress",
389
+ "senderThreadId": "$threadId",
390
+ "receiverThreadIds": ["$uuid:sources-thread"],
391
+ "agentsStates": {}
392
+ }
393
+ }
394
+ }
395
+ }
396
+ },
397
+ {
398
+ "at": 2100,
399
+ "do": {
400
+ "emit": {
401
+ "event": "item/completed",
402
+ "with": {
403
+ "threadId": "$threadId",
404
+ "turnId": "$uuid:turn",
405
+ "completedAtMs": "$nowMs",
406
+ "item": {
407
+ "type": "collabAgentToolCall",
408
+ "id": "$uuid:wait-agents",
409
+ "tool": "wait",
410
+ "status": "completed",
411
+ "senderThreadId": "$threadId",
412
+ "receiverThreadIds": ["$uuid:sources-thread"],
413
+ "agentsStates": {}
414
+ }
415
+ }
416
+ }
417
+ }
418
+ },
419
+ {
420
+ "at": 2200,
421
+ "do": {
422
+ "emit": {
423
+ "event": "item/started",
424
+ "with": {
425
+ "threadId": "$threadId",
426
+ "turnId": "$uuid:turn",
427
+ "startedAtMs": "$nowMs",
428
+ "item": {
429
+ "type": "collabAgentToolCall",
430
+ "id": "$uuid:cross-check",
431
+ "tool": "sendMessage",
432
+ "status": "inProgress",
433
+ "senderThreadId": "$threadId",
434
+ "prompt": "Cross-check the primary-source claims against the repository evidence.",
435
+ "receiverThreadIds": ["$uuid:analyst-thread"],
436
+ "agentsStates": {}
437
+ }
438
+ }
439
+ }
440
+ }
441
+ },
442
+ {
443
+ "at": 2300,
444
+ "do": {
445
+ "emit": {
446
+ "event": "item/completed",
447
+ "with": {
448
+ "threadId": "$threadId",
449
+ "turnId": "$uuid:turn",
450
+ "completedAtMs": "$nowMs",
451
+ "item": {
452
+ "type": "collabAgentToolCall",
453
+ "id": "$uuid:cross-check",
454
+ "tool": "sendMessage",
455
+ "status": "completed",
456
+ "senderThreadId": "$threadId",
457
+ "prompt": "Cross-check the primary-source claims against the repository evidence.",
458
+ "receiverThreadIds": ["$uuid:analyst-thread"],
459
+ "agentsStates": {}
460
+ }
461
+ }
462
+ }
463
+ }
464
+ },
465
+ {
466
+ "at": 2400,
467
+ "do": {
468
+ "emit": {
469
+ "event": "thread/tokenUsage/updated",
470
+ "with": {
471
+ "threadId": "$threadId",
472
+ "turnId": "$uuid:turn",
473
+ "tokenUsage": {
474
+ "total": {
475
+ "totalTokens": 388000,
476
+ "inputTokens": 380000,
477
+ "cachedInputTokens": 100000,
478
+ "outputTokens": 8000,
479
+ "reasoningOutputTokens": 5000
480
+ },
481
+ "last": {
482
+ "totalTokens": 388000,
483
+ "inputTokens": 380000,
484
+ "cachedInputTokens": 100000,
485
+ "outputTokens": 8000,
486
+ "reasoningOutputTokens": 5000
487
+ },
488
+ "modelContextWindow": 400000
489
+ }
490
+ }
491
+ }
492
+ }
493
+ },
494
+ {
495
+ "at": 2500,
496
+ "do": {
497
+ "emit": {
498
+ "event": "item/started",
499
+ "with": {
500
+ "threadId": "$threadId",
501
+ "turnId": "$uuid:turn",
502
+ "startedAtMs": "$nowMs",
503
+ "item": {
504
+ "type": "contextCompaction",
505
+ "id": "$uuid:compaction"
506
+ }
507
+ }
508
+ }
509
+ }
510
+ },
511
+ {
512
+ "at": 2600,
513
+ "do": {
514
+ "emit": {
515
+ "event": "item/completed",
516
+ "with": {
517
+ "threadId": "$threadId",
518
+ "turnId": "$uuid:turn",
519
+ "completedAtMs": "$nowMs",
520
+ "item": {
521
+ "type": "contextCompaction",
522
+ "id": "$uuid:compaction"
523
+ }
524
+ }
525
+ }
526
+ }
527
+ },
528
+ {
529
+ "at": 2700,
530
+ "do": {
531
+ "emit": {
532
+ "event": "thread/tokenUsage/updated",
533
+ "with": {
534
+ "threadId": "$threadId",
535
+ "turnId": "$uuid:turn",
536
+ "tokenUsage": {
537
+ "total": {
538
+ "totalTokens": 410000,
539
+ "inputTokens": 399000,
540
+ "cachedInputTokens": 108000,
541
+ "outputTokens": 11000,
542
+ "reasoningOutputTokens": 6500
543
+ },
544
+ "last": {
545
+ "totalTokens": 22000,
546
+ "inputTokens": 19000,
547
+ "cachedInputTokens": 8000,
548
+ "outputTokens": 3000,
549
+ "reasoningOutputTokens": 1500
550
+ },
551
+ "modelContextWindow": 400000
552
+ }
553
+ }
554
+ }
555
+ }
556
+ },
557
+ {
558
+ "at": 2800,
559
+ "do": {
560
+ "emit": {
561
+ "event": "item/started",
562
+ "with": {
563
+ "threadId": "$threadId",
564
+ "turnId": "$uuid:turn",
565
+ "startedAtMs": "$nowMs",
566
+ "item": {
567
+ "type": "commandExecution",
568
+ "id": "$uuid:verify",
569
+ "command": "rg -n 'source|claim|caveat' research-notes",
570
+ "cwd": "$threadCwd",
571
+ "status": "inProgress",
572
+ "commandActions": [
573
+ {
574
+ "type": "search",
575
+ "query": "source|claim|caveat",
576
+ "command": "rg -n 'source|claim|caveat' research-notes"
577
+ }
578
+ ]
579
+ }
580
+ }
581
+ }
582
+ }
583
+ },
584
+ {
585
+ "at": 3000,
586
+ "do": {
587
+ "emit": {
588
+ "event": "item/completed",
589
+ "with": {
590
+ "threadId": "$threadId",
591
+ "turnId": "$uuid:turn",
592
+ "completedAtMs": "$nowMs",
593
+ "item": {
594
+ "type": "commandExecution",
595
+ "id": "$uuid:verify",
596
+ "command": "rg -n 'source|claim|caveat' research-notes",
597
+ "cwd": "$threadCwd",
598
+ "status": "completed",
599
+ "commandActions": [
600
+ {
601
+ "type": "search",
602
+ "query": "source|claim|caveat",
603
+ "command": "rg -n 'source|claim|caveat' research-notes"
604
+ }
605
+ ],
606
+ "aggregatedOutput": "Every material claim has a source or an explicit caveat.",
607
+ "exitCode": 0,
608
+ "durationMs": 165
609
+ }
610
+ }
611
+ }
612
+ }
613
+ },
614
+ {
615
+ "at": 3100,
616
+ "do": {
617
+ "emit": {
618
+ "event": "item/started",
619
+ "with": {
620
+ "threadId": "$threadId",
621
+ "turnId": "$uuid:turn",
622
+ "startedAtMs": "$nowMs",
623
+ "item": {
624
+ "type": "agentMessage",
625
+ "id": "$uuid:agent-message",
626
+ "text": "",
627
+ "phase": "final_answer"
628
+ }
629
+ }
630
+ }
631
+ }
632
+ },
633
+ {
634
+ "at": 3200,
635
+ "do": {
636
+ "emit": {
637
+ "event": "item/agentMessage/delta",
638
+ "with": {
639
+ "threadId": "$threadId",
640
+ "turnId": "$uuid:turn",
641
+ "itemId": "$uuid:agent-message",
642
+ "delta": "Recommendation: use the source-backed option, retain the documented caveats, and validate the remaining open question."
643
+ }
644
+ }
645
+ }
646
+ },
647
+ {
648
+ "at": 3300,
649
+ "do": {
650
+ "emit": {
651
+ "event": "item/completed",
652
+ "with": {
653
+ "threadId": "$threadId",
654
+ "turnId": "$uuid:turn",
655
+ "completedAtMs": "$nowMs",
656
+ "item": {
657
+ "type": "agentMessage",
658
+ "id": "$uuid:agent-message",
659
+ "text": "Recommendation: use the source-backed option, retain the documented caveats, and validate the remaining open question.",
660
+ "phase": "final_answer"
661
+ }
662
+ }
663
+ }
664
+ }
665
+ },
666
+ {
667
+ "at": 3400,
668
+ "do": {
669
+ "emit": {
670
+ "event": "turn/completed",
671
+ "with": {
672
+ "threadId": "$threadId",
673
+ "turn": {
674
+ "id": "$uuid:turn",
675
+ "status": "completed",
676
+ "error": null,
677
+ "items": []
678
+ }
679
+ }
680
+ }
681
+ }
682
+ }
683
+ ]
684
+ }