@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,29 @@
1
+ {
2
+ "vendor": "claude",
3
+ "asm": {
4
+ "package": "@vibefield/puppeteer-surface",
5
+ "path": "vendors/claude"
6
+ },
7
+ "shimNames": ["claude"],
8
+ "envelope": {
9
+ "session_id": "$sessionId",
10
+ "transcript_path": "$transcriptPath",
11
+ "cwd": "$cwd",
12
+ "permission_mode": "$permissionMode"
13
+ },
14
+ "eventNameField": "hook_event_name",
15
+ "boot": [
16
+ {
17
+ "op": "session.start",
18
+ "with": {
19
+ "source": "startup"
20
+ }
21
+ },
22
+ {
23
+ "op": "session.ready"
24
+ },
25
+ {
26
+ "op": "usage.refresh"
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "version": 1,
3
+ "flows": [
4
+ {
5
+ "id": "deep-research",
6
+ "intent": "workflow.research.deep",
7
+ "scenario": "deep-research",
8
+ "title": "Thorough parallel research",
9
+ "summary": "A full research arc: plan, two parallel teammates, web/fetch/read/shell tools, evidence reconciliation, 94% context pressure, automatic compaction, post-compaction source verification, and a sourced recommendation.",
10
+ "kind": "typical",
11
+ "tags": ["research", "agent-team", "web", "files", "shell", "compaction"],
12
+ "defaultStimulus": {
13
+ "text": "Research how modern coding agents expose delegation and context compaction. Compare the primary sources with this repository and deliver a sourced recommendation.",
14
+ "topic": "coding agent delegation and context compaction"
15
+ },
16
+ "defaultSpeed": 8
17
+ },
18
+ {
19
+ "id": "cross-layer-implementation",
20
+ "intent": "workflow.implementation.cross-layer",
21
+ "scenario": "cross-layer-implementation",
22
+ "title": "Cross-layer implementation",
23
+ "summary": "A realistic repository change with implementation and test workers, grep/read/edit/shell tools, a failing baseline, permission-gated verification, 96% context pressure, compaction, and final diff checks.",
24
+ "kind": "typical",
25
+ "tags": ["code", "subagents", "permission", "failure-recovery", "tests", "compaction"],
26
+ "defaultStimulus": {
27
+ "text": "Replace the toy scenario catalog with realistic long-running workflows, preserve the native evidence boundary, add regression coverage, and verify the final diff."
28
+ },
29
+ "defaultSpeed": 8
30
+ },
31
+ {
32
+ "id": "incident-investigation",
33
+ "intent": "workflow.incident.competing-hypotheses",
34
+ "scenario": "incident-investigation",
35
+ "title": "Competing-hypotheses incident",
36
+ "summary": "Two investigators test deploy and dependency hypotheses using MCP logs/metrics, shell reproduction, and web status evidence; one tool fails, context reaches 93%, compaction preserves the timeline, and a final check isolates the root cause.",
37
+ "kind": "typical",
38
+ "tags": ["incident", "agent-team", "mcp", "web", "tool-failure", "compaction"],
39
+ "defaultStimulus": {
40
+ "text": "Investigate the API timeout spike. Run competing hypotheses in parallel, identify the root cause from logs and metrics, and recommend the safest immediate mitigation."
41
+ },
42
+ "defaultSpeed": 8
43
+ }
44
+ ]
45
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "channel-disconnect",
3
+ "steps": [
4
+ { "at": 0, "do": { "fault": { "kind": "channel-drop", "channel": "hook" } } },
5
+ {
6
+ "at": 25,
7
+ "do": {
8
+ "emit": {
9
+ "event": "Notification",
10
+ "with": {
11
+ "message": "this event is logged but not delivered",
12
+ "notification_type": "idle_prompt",
13
+ "prompt_id": "$uuid:prompt"
14
+ }
15
+ }
16
+ }
17
+ }
18
+ ]
19
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "crash-mid-turn",
3
+ "on": { "channel": "terminal", "stimulus": "paste-submit" },
4
+ "steps": [
5
+ {
6
+ "at": 0,
7
+ "do": {
8
+ "emit": {
9
+ "event": "UserPromptSubmit",
10
+ "with": {
11
+ "prompt": "$stimulus.text",
12
+ "prompt_id": "$uuid:prompt",
13
+ "session_title": "$sessionTitle",
14
+ "permission_mode": "$permissionMode"
15
+ }
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "at": 300,
21
+ "do": {
22
+ "emit": {
23
+ "event": "PreToolUse",
24
+ "with": {
25
+ "prompt_id": "$uuid:prompt",
26
+ "tool_name": "Bash",
27
+ "tool_input": { "command": "make toast" },
28
+ "tool_use_id": "$uuid:tool",
29
+ "effort": { "level": "xhigh" },
30
+ "permission_mode": "$permissionMode"
31
+ }
32
+ }
33
+ }
34
+ },
35
+ {
36
+ "at": 600,
37
+ "do": {
38
+ "fault": { "kind": "crash", "exitCode": 137, "partialTranscriptLine": "{\"type\":\"assis" }
39
+ }
40
+ }
41
+ ]
42
+ }
@@ -0,0 +1,488 @@
1
+ {
2
+ "name": "cross-layer-implementation",
3
+ "notes": "A repository change with parallel code/test work, an initial failure, approval-gated execution, compaction, and final diff verification.",
4
+ "steps": [
5
+ {
6
+ "at": 0,
7
+ "do": {
8
+ "emit": {
9
+ "event": "UserPromptSubmit",
10
+ "with": {
11
+ "prompt": "$stimulus.text",
12
+ "prompt_id": "$uuid:prompt",
13
+ "session_title": "$sessionTitle",
14
+ "permission_mode": "$permissionMode"
15
+ }
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "at": 100,
21
+ "do": {
22
+ "emit": {
23
+ "event": "MessageDisplay",
24
+ "with": {
25
+ "prompt_id": "$uuid:prompt",
26
+ "turn_id": "$uuid:turn",
27
+ "message_id": "$uuid:plan-message",
28
+ "index": 0,
29
+ "final": true,
30
+ "delta": "I’ll trace the affected layers, delegate test coverage, implement the smallest change, and verify the final diff."
31
+ }
32
+ }
33
+ }
34
+ },
35
+ {
36
+ "at": 200,
37
+ "do": {
38
+ "emit": {
39
+ "event": "TaskCreated",
40
+ "with": {
41
+ "prompt_id": "$uuid:prompt",
42
+ "task_id": "implementation",
43
+ "task_subject": "Trace and implement",
44
+ "task_description": "Locate the ownership seam and implement the minimal cross-layer change.",
45
+ "team_name": "implementation-team",
46
+ "teammate_name": "implementer"
47
+ }
48
+ }
49
+ }
50
+ },
51
+ {
52
+ "at": 300,
53
+ "do": {
54
+ "emit": {
55
+ "event": "TaskCreated",
56
+ "with": {
57
+ "prompt_id": "$uuid:prompt",
58
+ "task_id": "regression-tests",
59
+ "task_subject": "Build regression coverage",
60
+ "task_description": "Find the relevant test harness and add high-signal coverage.",
61
+ "team_name": "implementation-team",
62
+ "teammate_name": "test-runner"
63
+ }
64
+ }
65
+ }
66
+ },
67
+ {
68
+ "at": 400,
69
+ "do": {
70
+ "emit": {
71
+ "event": "SubagentStart",
72
+ "with": { "prompt_id": "$uuid:prompt", "agent_id": "implementation-explorer", "agent_type": "Explore" }
73
+ }
74
+ }
75
+ },
76
+ {
77
+ "at": 500,
78
+ "do": {
79
+ "emit": {
80
+ "event": "SubagentStart",
81
+ "with": { "prompt_id": "$uuid:prompt", "agent_id": "implementation-tests", "agent_type": "test-runner" }
82
+ }
83
+ }
84
+ },
85
+ {
86
+ "at": 600,
87
+ "do": {
88
+ "emit": {
89
+ "event": "PreToolUse",
90
+ "with": {
91
+ "prompt_id": "$uuid:prompt",
92
+ "agent_id": "implementation-explorer",
93
+ "agent_type": "Explore",
94
+ "tool_name": "Grep",
95
+ "tool_input": { "pattern": "createScenarioRunner|scenarioSteps", "path": "$cwd" },
96
+ "tool_use_id": "$uuid:grep"
97
+ }
98
+ }
99
+ }
100
+ },
101
+ {
102
+ "at": 800,
103
+ "do": {
104
+ "emit": {
105
+ "event": "PostToolUse",
106
+ "with": {
107
+ "prompt_id": "$uuid:prompt",
108
+ "agent_id": "implementation-explorer",
109
+ "agent_type": "Explore",
110
+ "tool_name": "Grep",
111
+ "tool_input": { "pattern": "createScenarioRunner|scenarioSteps", "path": "$cwd" },
112
+ "tool_response": {
113
+ "matches": ["packages/imposter/src/session/scenario.ts", "packages/imposter/src/session/session.ts"]
114
+ },
115
+ "tool_use_id": "$uuid:grep",
116
+ "duration_ms": 145
117
+ }
118
+ }
119
+ }
120
+ },
121
+ {
122
+ "at": 900,
123
+ "do": {
124
+ "emit": {
125
+ "event": "PreToolUse",
126
+ "with": {
127
+ "prompt_id": "$uuid:prompt",
128
+ "agent_id": "implementation-tests",
129
+ "agent_type": "test-runner",
130
+ "tool_name": "Read",
131
+ "tool_input": { "file_path": "packages/imposter/src/persona/scenarios.claude.test.ts" },
132
+ "tool_use_id": "$uuid:read-tests"
133
+ }
134
+ }
135
+ }
136
+ },
137
+ {
138
+ "at": 1100,
139
+ "do": {
140
+ "emit": {
141
+ "event": "PostToolUse",
142
+ "with": {
143
+ "prompt_id": "$uuid:prompt",
144
+ "agent_id": "implementation-tests",
145
+ "agent_type": "test-runner",
146
+ "tool_name": "Read",
147
+ "tool_input": { "file_path": "packages/imposter/src/persona/scenarios.claude.test.ts" },
148
+ "tool_response": { "summary": "The persona suite is the correct executable contract boundary." },
149
+ "tool_use_id": "$uuid:read-tests",
150
+ "duration_ms": 155
151
+ }
152
+ }
153
+ }
154
+ },
155
+ {
156
+ "at": 1200,
157
+ "do": {
158
+ "emit": {
159
+ "event": "PreToolUse",
160
+ "with": {
161
+ "prompt_id": "$uuid:prompt",
162
+ "tool_name": "Bash",
163
+ "tool_input": { "command": "pnpm --filter @vibefield/puppeteer-imposter test -- scenarios.claude" },
164
+ "tool_use_id": "$uuid:baseline-test"
165
+ }
166
+ }
167
+ }
168
+ },
169
+ {
170
+ "at": 1400,
171
+ "do": {
172
+ "emit": {
173
+ "event": "PostToolUseFailure",
174
+ "with": {
175
+ "prompt_id": "$uuid:prompt",
176
+ "tool_name": "Bash",
177
+ "tool_input": { "command": "pnpm --filter @vibefield/puppeteer-imposter test -- scenarios.claude" },
178
+ "tool_use_id": "$uuid:baseline-test",
179
+ "error": "Expected long-form runflow contract is not implemented yet.",
180
+ "duration_ms": 195,
181
+ "is_interrupt": false
182
+ }
183
+ }
184
+ }
185
+ },
186
+ {
187
+ "at": 1500,
188
+ "do": {
189
+ "emit": {
190
+ "event": "PreToolUse",
191
+ "with": {
192
+ "prompt_id": "$uuid:prompt",
193
+ "tool_name": "Edit",
194
+ "tool_input": {
195
+ "file_path": "packages/imposter/personas/claude/runflows.json",
196
+ "old_string": "short catalog",
197
+ "new_string": "realistic catalog"
198
+ },
199
+ "tool_use_id": "$uuid:edit"
200
+ }
201
+ }
202
+ }
203
+ },
204
+ {
205
+ "at": 1700,
206
+ "do": {
207
+ "emit": {
208
+ "event": "PostToolUse",
209
+ "with": {
210
+ "prompt_id": "$uuid:prompt",
211
+ "tool_name": "Edit",
212
+ "tool_input": {
213
+ "file_path": "packages/imposter/personas/claude/runflows.json",
214
+ "old_string": "short catalog",
215
+ "new_string": "realistic catalog"
216
+ },
217
+ "tool_response": { "changed": true, "files": ["packages/imposter/personas/claude/runflows.json"] },
218
+ "tool_use_id": "$uuid:edit",
219
+ "duration_ms": 180
220
+ }
221
+ }
222
+ }
223
+ },
224
+ {
225
+ "at": 1800,
226
+ "do": {
227
+ "emit": {
228
+ "event": "PreToolUse",
229
+ "with": {
230
+ "prompt_id": "$uuid:prompt",
231
+ "tool_name": "Bash",
232
+ "tool_input": { "command": "pnpm --filter @vibefield/puppeteer-imposter test -- scenarios.claude" },
233
+ "tool_use_id": "$uuid:approved-test"
234
+ }
235
+ }
236
+ }
237
+ },
238
+ {
239
+ "at": 1900,
240
+ "do": {
241
+ "emit": {
242
+ "event": "PermissionRequest",
243
+ "with": {
244
+ "prompt_id": "$uuid:prompt",
245
+ "tool_name": "Bash",
246
+ "tool_input": { "command": "pnpm --filter @vibefield/puppeteer-imposter test -- scenarios.claude" },
247
+ "permission_suggestions": [{ "type": "addRules", "destination": "session" }]
248
+ }
249
+ }
250
+ }
251
+ },
252
+ {
253
+ "at": 2200,
254
+ "do": {
255
+ "emit": {
256
+ "event": "PostToolUse",
257
+ "with": {
258
+ "prompt_id": "$uuid:prompt",
259
+ "tool_name": "Bash",
260
+ "tool_input": { "command": "pnpm --filter @vibefield/puppeteer-imposter test -- scenarios.claude" },
261
+ "tool_response": { "output": "All Claude persona scenario tests passed.", "exitCode": 0 },
262
+ "tool_use_id": "$uuid:approved-test",
263
+ "duration_ms": 265
264
+ }
265
+ }
266
+ }
267
+ },
268
+ {
269
+ "at": 2300,
270
+ "do": {
271
+ "emit": {
272
+ "event": "TaskCompleted",
273
+ "with": {
274
+ "prompt_id": "$uuid:prompt",
275
+ "task_id": "implementation",
276
+ "task_subject": "Trace and implement",
277
+ "task_description": "Ownership seam updated without changing native truth.",
278
+ "team_name": "implementation-team",
279
+ "teammate_name": "implementer"
280
+ }
281
+ }
282
+ }
283
+ },
284
+ {
285
+ "at": 2400,
286
+ "do": {
287
+ "emit": {
288
+ "event": "SubagentStop",
289
+ "with": {
290
+ "prompt_id": "$uuid:prompt",
291
+ "agent_id": "implementation-explorer",
292
+ "agent_type": "Explore",
293
+ "agent_transcript_path": "/tmp/implementation-explorer.jsonl",
294
+ "last_assistant_message": "Implementation seam verified.",
295
+ "stop_hook_active": false,
296
+ "background_tasks": [],
297
+ "session_crons": []
298
+ }
299
+ }
300
+ }
301
+ },
302
+ {
303
+ "at": 2500,
304
+ "do": {
305
+ "emit": {
306
+ "event": "PreToolUse",
307
+ "with": {
308
+ "prompt_id": "$uuid:prompt",
309
+ "agent_id": "implementation-tests",
310
+ "agent_type": "test-runner",
311
+ "tool_name": "Bash",
312
+ "tool_input": { "command": "pnpm --filter @vibefield/puppeteer-imposter typecheck" },
313
+ "tool_use_id": "$uuid:typecheck"
314
+ }
315
+ }
316
+ }
317
+ },
318
+ {
319
+ "at": 2700,
320
+ "do": {
321
+ "emit": {
322
+ "event": "PostToolUse",
323
+ "with": {
324
+ "prompt_id": "$uuid:prompt",
325
+ "agent_id": "implementation-tests",
326
+ "agent_type": "test-runner",
327
+ "tool_name": "Bash",
328
+ "tool_input": { "command": "pnpm --filter @vibefield/puppeteer-imposter typecheck" },
329
+ "tool_response": { "output": "Typecheck passed.", "exitCode": 0 },
330
+ "tool_use_id": "$uuid:typecheck",
331
+ "duration_ms": 190
332
+ }
333
+ }
334
+ }
335
+ },
336
+ {
337
+ "at": 2800,
338
+ "do": {
339
+ "emit": {
340
+ "event": "TaskCompleted",
341
+ "with": {
342
+ "prompt_id": "$uuid:prompt",
343
+ "task_id": "regression-tests",
344
+ "task_subject": "Build regression coverage",
345
+ "task_description": "Regression suite and typecheck both pass.",
346
+ "team_name": "implementation-team",
347
+ "teammate_name": "test-runner"
348
+ }
349
+ }
350
+ }
351
+ },
352
+ {
353
+ "at": 2900,
354
+ "do": {
355
+ "emit": {
356
+ "event": "SubagentStop",
357
+ "with": {
358
+ "prompt_id": "$uuid:prompt",
359
+ "agent_id": "implementation-tests",
360
+ "agent_type": "test-runner",
361
+ "agent_transcript_path": "/tmp/implementation-tests.jsonl",
362
+ "last_assistant_message": "Tests and typecheck passed.",
363
+ "stop_hook_active": false,
364
+ "background_tasks": [],
365
+ "session_crons": []
366
+ }
367
+ }
368
+ }
369
+ },
370
+ {
371
+ "at": 3000,
372
+ "do": {
373
+ "statusline": {
374
+ "with": {
375
+ "session_id": "$sessionId",
376
+ "transcript_path": "$transcriptPath",
377
+ "cwd": "$cwd",
378
+ "model": { "id": "$modelId", "display_name": "$modelId" },
379
+ "workspace": { "current_dir": "$cwd" },
380
+ "context_window": {
381
+ "total_input_tokens": 192000,
382
+ "context_window_size": 200000,
383
+ "used_percentage": 96,
384
+ "current_usage": {
385
+ "input_tokens": 192000,
386
+ "cache_creation_input_tokens": 10000,
387
+ "cache_read_input_tokens": 52000
388
+ }
389
+ }
390
+ }
391
+ }
392
+ }
393
+ },
394
+ {
395
+ "at": 3100,
396
+ "do": {
397
+ "emit": {
398
+ "event": "PreCompact",
399
+ "with": { "prompt_id": "$uuid:prompt", "trigger": "auto", "custom_instructions": "" }
400
+ }
401
+ }
402
+ },
403
+ {
404
+ "at": 3200,
405
+ "do": {
406
+ "emit": {
407
+ "event": "PostCompact",
408
+ "with": {
409
+ "prompt_id": "$uuid:prompt",
410
+ "trigger": "auto",
411
+ "compact_summary": "Preserved requested change, touched files, test evidence, permission outcome, and final diff checklist."
412
+ }
413
+ }
414
+ }
415
+ },
416
+ {
417
+ "at": 3300,
418
+ "do": {
419
+ "emit": {
420
+ "event": "PreToolUse",
421
+ "with": {
422
+ "prompt_id": "$uuid:prompt",
423
+ "tool_name": "Bash",
424
+ "tool_input": { "command": "git diff --check && git diff --stat" },
425
+ "tool_use_id": "$uuid:diff-check"
426
+ }
427
+ }
428
+ }
429
+ },
430
+ {
431
+ "at": 3500,
432
+ "do": {
433
+ "emit": {
434
+ "event": "PostToolUse",
435
+ "with": {
436
+ "prompt_id": "$uuid:prompt",
437
+ "tool_name": "Bash",
438
+ "tool_input": { "command": "git diff --check && git diff --stat" },
439
+ "tool_response": { "output": "No whitespace errors; intended files only.", "exitCode": 0 },
440
+ "tool_use_id": "$uuid:diff-check",
441
+ "duration_ms": 170
442
+ }
443
+ }
444
+ }
445
+ },
446
+ {
447
+ "at": 3600,
448
+ "do": {
449
+ "transcript": {
450
+ "record": {
451
+ "type": "assistant",
452
+ "uuid": "$uuid:assistant",
453
+ "sessionId": "$sessionId",
454
+ "timestamp": "$now",
455
+ "cwd": "$cwd",
456
+ "version": "$vendorVersion",
457
+ "message": {
458
+ "id": "$uuid:message",
459
+ "role": "assistant",
460
+ "model": "$modelId",
461
+ "content": [
462
+ {
463
+ "type": "text",
464
+ "text": "Implemented the cross-layer change, added regression coverage, and verified tests, typecheck, and the final diff."
465
+ }
466
+ ]
467
+ }
468
+ }
469
+ }
470
+ }
471
+ },
472
+ {
473
+ "at": 3700,
474
+ "do": {
475
+ "emit": {
476
+ "event": "Stop",
477
+ "with": {
478
+ "prompt_id": "$uuid:prompt",
479
+ "last_assistant_message": "Implementation complete with regression evidence and a clean diff.",
480
+ "stop_hook_active": false,
481
+ "background_tasks": [],
482
+ "session_crons": []
483
+ }
484
+ }
485
+ }
486
+ }
487
+ ]
488
+ }