@desplega.ai/agent-swarm 1.161.0 → 1.162.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 (224) hide show
  1. package/README.md +3 -2
  2. package/dist/{acp-adapter-xx489vvb.js → acp-adapter-74m73ae9.js} +1 -1
  3. package/dist/{actions-ykjkn0m9.js → actions-4sr14gnt.js} +34 -31
  4. package/dist/{anthropic-messages-5qx80j9k.js → anthropic-messages-8xxrzky9.js} +22 -26
  5. package/dist/{app-0hdqa4k1.js → app-pt68fbwp.js} +13 -11
  6. package/dist/{artifact-3v5t9jtg.js → artifact-fey7dvj9.js} +3 -2
  7. package/dist/{assistant-am2g5g8a.js → assistant-cv3jytks.js} +37 -34
  8. package/dist/{azure-openai-responses-fszbkp0e.js → azure-openai-responses-f5cqsyj8.js} +15 -10
  9. package/dist/{boot-reembed-xy9t7avg.js → boot-reembed-4ht4gqth.js} +13 -11
  10. package/dist/{boot-reembed-gt5gjkt4.js → boot-reembed-nxpcvpj9.js} +12 -10
  11. package/dist/{boot-scrub-logs-9x0985y5.js → boot-scrub-logs-k93kyw8k.js} +9 -7
  12. package/dist/{boot-seeds-trv0d4vg.js → boot-seeds-1skcrs0e.js} +13 -10
  13. package/dist/{claude-adapter-jb6e1e54.js → claude-adapter-r5g0tzge.js} +23 -20
  14. package/dist/{claude-managed-setup-d1q9hv2b.js → claude-managed-setup-pkyrgshb.js} +3 -2
  15. package/dist/{claude-sdk-session-zga700s2.js → claude-sdk-session-jxyxnrwd.js} +5565 -5512
  16. package/dist/{cli-we0q7t0e.js → cli-2zy95vhm.js} +137 -64
  17. package/dist/{cli-35pj2yva.js → cli-4cwxn7gp.js} +38 -11
  18. package/dist/{cli-ad4qxm6j.js → cli-4dcpaefp.js} +2 -2
  19. package/dist/{cli-82c1pacn.js → cli-4x0csdjq.js} +71 -37
  20. package/dist/{cli-sqm3r5ps.js → cli-5bcd7sfy.js} +14 -18
  21. package/dist/{cli-d56tgd45.js → cli-5k6k8ta3.js} +2 -2
  22. package/dist/{cli-1er0rhz8.js → cli-5xhpb3kv.js} +15 -15
  23. package/dist/{cli-yrg7c73k.js → cli-7af8yhav.js} +10 -183
  24. package/dist/{cli-r6fsxc76.js → cli-7tre70zp.js} +513 -961
  25. package/dist/{cli-bh7jed3k.js → cli-8ev9xqnx.js} +34 -18
  26. package/dist/cli-bsky8g7w.js +449 -0
  27. package/dist/{cli-hn04t9db.js → cli-cebmgwsc.js} +14 -10
  28. package/dist/{cli-cfkrztza.js → cli-cvatsam7.js} +2 -2
  29. package/dist/{cli-2658f6at.js → cli-cvk6yzw5.js} +6 -8
  30. package/dist/{cli-ptr8h7kp.js → cli-eg0b3p0k.js} +5 -218
  31. package/dist/{cli-zb6xbk61.js → cli-g739zqzt.js} +4 -4
  32. package/dist/{cli-dv6cdjs2.js → cli-gd4favx9.js} +28 -7
  33. package/dist/{cli-5p3x4zna.js → cli-gpqpmns7.js} +2 -2
  34. package/dist/{cli-5nbmpy8w.js → cli-hb5c2x5y.js} +1 -1
  35. package/dist/{cli-jpf7e1zq.js → cli-hmsw1gpy.js} +3 -3
  36. package/dist/{cli-1cz0c18q.js → cli-jf7wmv1r.js} +2521 -733
  37. package/dist/{cli-qwsnmjdd.js → cli-jxs2ygaw.js} +168 -61
  38. package/dist/cli-kdkwd3yr.js +615 -0
  39. package/dist/{cli-hgmnf38m.js → cli-kh04eqwe.js} +1 -1
  40. package/dist/{cli-0383bp7f.js → cli-kp42yek0.js} +425 -90
  41. package/dist/{cli-ybgv4kw2.js → cli-mbssg1xv.js} +9 -2
  42. package/dist/{cli-jsp14b6c.js → cli-mzfth0bp.js} +38 -1
  43. package/dist/{cli-8g6mc14k.js → cli-nq7yqw7b.js} +16 -5
  44. package/dist/{cli-ee8bc46j.js → cli-nt8hecg9.js} +33 -32
  45. package/dist/{cli-9s68w752.js → cli-p0r8sxj5.js} +1 -1
  46. package/dist/{cli-58e8yr0d.js → cli-pkd6s2wy.js} +4 -2
  47. package/dist/{cli-17xpf7cm.js → cli-q24re23n.js} +6 -4
  48. package/dist/cli-qjjvzwzd.js +222 -0
  49. package/dist/cli-qrgt5bqf.js +189 -0
  50. package/dist/{cli-et8m9xsv.js → cli-rfjw9jw2.js} +22 -10
  51. package/dist/{cli-798vkbks.js → cli-rj0gqwwp.js} +2 -2
  52. package/dist/{cli-121ph74b.js → cli-rnyzn44p.js} +1 -1
  53. package/dist/{cli-vnnz5ncg.js → cli-s3hwpt9v.js} +95 -16
  54. package/dist/{cli-7119ja3w.js → cli-sptrj5f5.js} +2 -2
  55. package/dist/{cli-a8c82p2t.js → cli-sqvfa090.js} +13 -6
  56. package/dist/{cli-phfg8vy8.js → cli-swfmp1fx.js} +26 -26
  57. package/dist/{cli-nsdxtcbg.js → cli-tcen9p5w.js} +8 -5
  58. package/dist/{cli-9m03pzga.js → cli-vc9bp061.js} +5 -5
  59. package/dist/{cli-rtx9dygp.js → cli-vxe6qa4h.js} +1 -1
  60. package/dist/{cli-ecfxwnyb.js → cli-vy3ed88x.js} +1 -1
  61. package/dist/{cli-0c7ata9h.js → cli-vyqs9ya8.js} +6 -6
  62. package/dist/cli-wbvnn6tk.js +861 -0
  63. package/dist/{cli-kgd3p0bm.js → cli-wjgs5wxe.js} +6 -6
  64. package/dist/cli-wxkkd0e0.js +33 -0
  65. package/dist/{cli-akfj32vj.js → cli-xqpk3rp7.js} +5 -4
  66. package/dist/cli-zp38xvtm.js +9487 -0
  67. package/dist/{cli-3zc55ctx.js → cli-zvhd3f64.js} +2 -2
  68. package/dist/{cli-ze1d3wzv.js → cli-zxqx25nz.js} +5 -5
  69. package/dist/cli.js +32 -25
  70. package/dist/{cloudflare-workers-ai-system-one-k6fbxw9d.js → cloudflare-workers-ai-system-one-k8ddqjkq.js} +8 -6
  71. package/dist/{codex-adapter-04v97vep.js → codex-adapter-esvmnhn7.js} +13 -13
  72. package/dist/{codex-hook-20me6byw.js → codex-hook-m73jmqgx.js} +19 -3
  73. package/dist/{codex-session-runner-ax69mqq3.js → codex-session-runner-ban9excr.js} +13 -13
  74. package/dist/{commands-18gy08n1.js → commands-75413p2n.js} +9 -7
  75. package/dist/{db-d2pvjpyt.js → db-7f5pecwg.js} +11 -7
  76. package/dist/{dispatcher-8wbwyzjg.js → dispatcher-fh9at8nz.js} +33 -30
  77. package/dist/{dsh-adapter-ysqk9snv.js → dsh-adapter-wpze65d4.js} +3 -3
  78. package/dist/{e2b-esmt1r16.js → e2b-gjgdjp91.js} +10 -9
  79. package/dist/{pi-logo-animation-e9a0t68z.js → easter-egg-3d-3w5c2n4c.js} +122 -68
  80. package/dist/{execute-cmagrbrz.js → execute-f50wg9nh.js} +29 -6
  81. package/dist/{google-generative-ai-k6n5nbpp.js → google-generative-ai-jxxpnegy.js} +2 -2
  82. package/dist/{google-vertex-44xxtcvp.js → google-vertex-x7q1angm.js} +5 -5
  83. package/dist/{handlers-6b69m5kp.js → handlers-w13787bb.js} +36 -33
  84. package/dist/{hook-srnkt0hb.js → hook-46g1jrvx.js} +28 -15
  85. package/dist/{hook-k3mydf2n.js → hook-4tpts2ry.js} +20 -17
  86. package/dist/{http-hrf80ca1.js → http-19pzbfrt.js} +964 -176
  87. package/dist/{index-9rxdvj6w.js → index-8fd4dm4h.js} +34 -31
  88. package/dist/{index-1asbaj62.js → index-dqmp15bq.js} +35 -32
  89. package/dist/{index-45evq4ee.js → index-qb4q1y3e.js} +33 -30
  90. package/dist/{index-k4nj18qs.js → index-s75wc4wd.js} +12 -10
  91. package/dist/{index-xmevk2b9.js → index-scptvdxg.js} +27 -25
  92. package/dist/{keepalive-sfdz6ksp.js → keepalive-xa5ts9cd.js} +11 -9
  93. package/dist/{lead-ej91e9hw.js → lead-qp4xkvjq.js} +45 -41
  94. package/dist/{maintenance-80dnd7ke.js → maintenance-rm5885hm.js} +13 -11
  95. package/dist/{mistral-conversations-pc3ntnxt.js → mistral-conversations-rw7fbt22.js} +4 -4
  96. package/dist/{node-a5e00qhp.js → node-8zkdq42h.js} +834 -833
  97. package/dist/{oauth-refresh-sweep-m1etk2mx.js → oauth-refresh-sweep-1csdfebf.js} +10 -8
  98. package/dist/{onboard-0q8sdfqc.js → onboard-r6b78cs4.js} +10 -10
  99. package/dist/{openai-codex-responses-n7n683p2.js → openai-codex-responses-efvrgrq3.js} +4 -4
  100. package/dist/{openai-completions-jpaj5g2b.js → openai-completions-bbbrrz4z.js} +12 -8
  101. package/dist/{openai-responses-9a3nme9j.js → openai-responses-9jjyrcm1.js} +15 -10
  102. package/dist/{opencode-adapter-4wcgmvgf.js → opencode-adapter-kb3g6pkf.js} +2 -2
  103. package/dist/{otel-impl-hnqm9mxq.js → otel-impl-0y9knpky.js} +5 -5
  104. package/dist/{pi-mono-adapter-d6sqm9wr.js → pi-mono-adapter-z6s1bme2.js} +100 -19
  105. package/dist/{pricing-refresh-y60z64pm.js → pricing-refresh-mth26tgp.js} +11 -9
  106. package/dist/{rbac-roles-8pa0754b.js → rbac-roles-kwntb23q.js} +13 -9
  107. package/dist/rbac-roles-vpk4ebm8.js +45 -0
  108. package/dist/{registry-v5wytg0s.js → registry-km6t1jd2.js} +1 -1
  109. package/dist/{render-v2-418s1vj7.js → render-v2-hcm7h00y.js} +13 -11
  110. package/dist/{runtime-3pknc168.js → runtime-vfjsfsc5.js} +4 -4
  111. package/dist/{setup-yghdkj4x.js → setup-hbyzd65h.js} +2 -2
  112. package/dist/{virtual-modules-jcceevt5.js → virtual-modules-9bv7ry91.js} +9 -8
  113. package/dist/{work-objects-j1sz20v9.js → work-objects-m09sxnhe.js} +36 -33
  114. package/dist/{worker-d4gcvkjt.js → worker-0h35rvk4.js} +45 -41
  115. package/openapi.json +491 -12
  116. package/package.json +13 -6
  117. package/src/be/api-drain.ts +184 -0
  118. package/src/be/db/tasks/read.ts +31 -6
  119. package/src/be/db/tasks/write.ts +5 -4
  120. package/src/be/db.ts +42 -18
  121. package/src/be/memory/link-resolver.ts +29 -3
  122. package/src/be/migrations/192_favorites_agent_fs_path.sql +36 -0
  123. package/src/be/onboarding.ts +7 -1
  124. package/src/be/seed-prompt-templates.ts +1 -0
  125. package/src/be/swarm-config-guard.ts +35 -16
  126. package/src/be/task-citations.ts +11 -5
  127. package/src/be/users.ts +3 -0
  128. package/src/cli.tsx +3 -2
  129. package/src/comb/agent-fs.ts +39 -0
  130. package/src/comb/config.ts +37 -0
  131. package/src/comb/markers.ts +37 -0
  132. package/src/comb/review-batch.ts +486 -0
  133. package/src/comb/templates.ts +88 -0
  134. package/src/commands/context-preamble.ts +4 -1
  135. package/src/commands/hook.ts +2 -1
  136. package/src/commands/runner.ts +262 -68
  137. package/src/commands/templates.ts +10 -0
  138. package/src/extensions/contract-types.generated.ts +1 -1
  139. package/src/fs/agent-fs-provider.ts +106 -2
  140. package/src/heartbeat/heartbeat.ts +4 -0
  141. package/src/hooks/codex-hook.ts +25 -1
  142. package/src/hooks/hook.ts +13 -0
  143. package/src/hooks/pr-body-guard.ts +983 -0
  144. package/src/http/all-routes.ts +1 -0
  145. package/src/http/assets.ts +5 -17
  146. package/src/http/comb.ts +131 -0
  147. package/src/http/core.ts +2 -1
  148. package/src/http/fs.ts +9 -17
  149. package/src/http/index.ts +23 -9
  150. package/src/http/onboarding.ts +21 -2
  151. package/src/http/poll.ts +30 -3
  152. package/src/http/realtime.ts +62 -0
  153. package/src/http/request-principal.ts +22 -0
  154. package/src/http/status.ts +34 -2
  155. package/src/kv-reserved-namespaces.ts +10 -5
  156. package/src/providers/dsh-adapter.ts +1 -1
  157. package/src/providers/pi-mono-adapter.ts +123 -0
  158. package/src/rbac/legacy-policy.ts +1 -0
  159. package/src/rbac/permissions.ts +4 -0
  160. package/src/realtime/auth.ts +63 -1
  161. package/src/realtime/tickets.ts +52 -0
  162. package/src/realtime/transport.ts +51 -22
  163. package/src/scripts-runtime/types/swarm-extension.d.ts +3 -1
  164. package/src/telemetry-context.ts +175 -0
  165. package/src/telemetry-contract/EVENTS.md +81 -0
  166. package/src/telemetry-contract/SOURCE.json +9 -0
  167. package/src/telemetry-contract/catalog.json +1335 -0
  168. package/src/telemetry-contract/index.ts +60 -0
  169. package/src/telemetry-contract/types.gen.ts +1971 -0
  170. package/src/telemetry-identity.ts +129 -0
  171. package/src/telemetry-snapshot.ts +211 -0
  172. package/src/telemetry-trigger.ts +125 -0
  173. package/src/telemetry-types.typetest.ts +40 -0
  174. package/src/telemetry.ts +271 -67
  175. package/src/tests/api-drain-e2e.test.ts +249 -0
  176. package/src/tests/api-drain-worker-e2e.test.ts +216 -0
  177. package/src/tests/api-drain.test.ts +351 -0
  178. package/src/tests/comb-config-guard.test.ts +38 -0
  179. package/src/tests/comb-links.test.ts +162 -0
  180. package/src/tests/comb-markers.test.ts +68 -0
  181. package/src/tests/comb-review-batch.test.ts +770 -0
  182. package/src/tests/comb-status.test.ts +152 -0
  183. package/src/tests/db-task-read-contract.test.ts +2 -0
  184. package/src/tests/db-task-write-contract.test.ts +1 -0
  185. package/src/tests/docs-index-footprint.test.js +3 -3
  186. package/src/tests/dsh-adapter.test.ts +1 -1
  187. package/src/tests/favorites-agent-fs-path.test.ts +226 -0
  188. package/src/tests/memory-link-resolver.test.ts +34 -0
  189. package/src/tests/onboarding.test.ts +108 -0
  190. package/src/tests/pi-mono-adapter.test.ts +265 -2
  191. package/src/tests/pr-body-leaks.test.ts +789 -0
  192. package/src/tests/preload.ts +8 -0
  193. package/src/tests/rbac-engine.test.ts +19 -0
  194. package/src/tests/realtime-room-auth.test.ts +104 -1
  195. package/src/tests/realtime-tickets.test.ts +74 -0
  196. package/src/tests/realtime-transport.test.ts +131 -4
  197. package/src/tests/runner-api-drain.test.ts +301 -0
  198. package/src/tests/runner-fallback-output.test.ts +61 -0
  199. package/src/tests/runner-fenced-json-output.test.ts +178 -0
  200. package/src/tests/script-connections.test.ts +2 -0
  201. package/src/tests/send-task-requested-by.test.ts +133 -15
  202. package/src/tests/task-lifecycle-telemetry.test.ts +8 -3
  203. package/src/tests/telemetry-context.test.ts +314 -0
  204. package/src/tests/telemetry-init.test.ts +51 -19
  205. package/src/tests/telemetry-snapshot.test.ts +229 -0
  206. package/src/tests/telemetry-trigger.test.ts +200 -0
  207. package/src/tests/template-registry-helpers.ts +1 -0
  208. package/src/tests/workflow-agent-task-retry.test.ts +363 -0
  209. package/src/tests/workflow-definition-telemetry.test.ts +4 -4
  210. package/src/tools/poll-task.ts +20 -1
  211. package/src/tools/send-task.ts +9 -1
  212. package/src/tools/task-action.ts +11 -0
  213. package/src/types.ts +2 -1
  214. package/src/utils/api-drain.ts +24 -0
  215. package/src/utils/constants.ts +57 -16
  216. package/src/utils/pr-body-leaks.ts +172 -0
  217. package/src/utils/task-attachment-links.ts +14 -8
  218. package/src/workflows/recovery.ts +26 -1
  219. package/src/workflows/resume.ts +31 -4
  220. package/src/workflows/task-step-routing.ts +75 -2
  221. package/tsconfig.json +3 -0
  222. package/dist/cli-tjf4cn8z.js +0 -9119
  223. package/dist/cli-tsk3nz8a.js +0 -582
  224. package/dist/{cli-t6v2ah3r.js → cli-twrh04ap.js} +3 -3
@@ -0,0 +1,1335 @@
1
+ {
2
+ "definitions": {
3
+ "trigger_surface": {
4
+ "type": "string",
5
+ "description": "Surface that started a chain of work: agent-swarm's AgentTaskSourceSchema values plus other.",
6
+ "enum": [
7
+ "slack",
8
+ "ui",
9
+ "api",
10
+ "mcp",
11
+ "github",
12
+ "gitlab",
13
+ "linear",
14
+ "jira",
15
+ "agentmail",
16
+ "schedule",
17
+ "workflow",
18
+ "system",
19
+ "other"
20
+ ]
21
+ }
22
+ },
23
+ "common_properties": {
24
+ "agent-swarm": {
25
+ "swarmVersion": {
26
+ "type": "string",
27
+ "description": "agent-swarm version. Legacy key kept during the v1 window; v2 carries context.swarm_version."
28
+ },
29
+ "is_cloud": {
30
+ "type": "boolean",
31
+ "description": "Legacy key kept during the v1 window; v2 carries context.deployment."
32
+ },
33
+ "is_e2b": {
34
+ "type": "boolean",
35
+ "description": "Legacy key kept during the v1 window; v2 carries context.deployment."
36
+ },
37
+ "install_method": {
38
+ "type": "string",
39
+ "description": "Legacy key kept during the v1 window; v2 carries context.install_method."
40
+ },
41
+ "has_embedding_key": {
42
+ "type": "boolean",
43
+ "description": "An embedding API key is configured."
44
+ },
45
+ "has_slack_channel": {
46
+ "type": "boolean",
47
+ "description": "A Slack channel is configured."
48
+ },
49
+ "has_email_channel": {
50
+ "type": "boolean",
51
+ "description": "An email channel is configured."
52
+ },
53
+ "has_notification_channel": {
54
+ "type": "boolean",
55
+ "description": "A notification channel is configured."
56
+ }
57
+ }
58
+ },
59
+ "events": [
60
+ {
61
+ "product": "agent-swarm",
62
+ "event": "task.created",
63
+ "description": "A task was created.",
64
+ "since": "2026-09-30",
65
+ "source": "api-server",
66
+ "properties": {
67
+ "taskId": {
68
+ "type": "string",
69
+ "required": true
70
+ },
71
+ "trigger_surface": {
72
+ "ref": "trigger_surface",
73
+ "required": true,
74
+ "description": "Surface that started the whole chain of work: the source of the root task."
75
+ },
76
+ "task_source": {
77
+ "ref": "trigger_surface",
78
+ "required": true,
79
+ "description": "agent_tasks.source of this task itself."
80
+ },
81
+ "provider": {
82
+ "type": "string"
83
+ },
84
+ "harnessVariant": {
85
+ "type": "string"
86
+ },
87
+ "harnessVersion": {
88
+ "type": "string"
89
+ },
90
+ "hasParent": {
91
+ "type": "boolean",
92
+ "required": true
93
+ },
94
+ "has_repo": {
95
+ "type": "boolean",
96
+ "required": true
97
+ },
98
+ "priority": {
99
+ "type": "integer",
100
+ "required": true
101
+ }
102
+ }
103
+ },
104
+ {
105
+ "product": "agent-swarm",
106
+ "event": "task.started",
107
+ "description": "A task started running.",
108
+ "since": "2026-09-30",
109
+ "source": "api-server",
110
+ "properties": {
111
+ "taskId": {
112
+ "type": "string",
113
+ "required": true
114
+ },
115
+ "trigger_surface": {
116
+ "ref": "trigger_surface",
117
+ "required": true,
118
+ "description": "Surface that started the whole chain of work: the source of the root task."
119
+ },
120
+ "task_source": {
121
+ "ref": "trigger_surface",
122
+ "required": true,
123
+ "description": "agent_tasks.source of this task itself."
124
+ },
125
+ "agentId": {
126
+ "type": "string",
127
+ "required": true
128
+ }
129
+ }
130
+ },
131
+ {
132
+ "product": "agent-swarm",
133
+ "event": "task.claimed",
134
+ "description": "An agent claimed a task.",
135
+ "since": "2026-09-30",
136
+ "source": "api-server",
137
+ "properties": {
138
+ "taskId": {
139
+ "type": "string",
140
+ "required": true
141
+ },
142
+ "trigger_surface": {
143
+ "ref": "trigger_surface",
144
+ "required": true,
145
+ "description": "Surface that started the whole chain of work: the source of the root task."
146
+ },
147
+ "task_source": {
148
+ "ref": "trigger_surface",
149
+ "required": true,
150
+ "description": "agent_tasks.source of this task itself."
151
+ },
152
+ "agentId": {
153
+ "type": "string",
154
+ "required": true
155
+ }
156
+ }
157
+ },
158
+ {
159
+ "product": "agent-swarm",
160
+ "event": "task.completed",
161
+ "description": "A task completed.",
162
+ "since": "2026-09-30",
163
+ "source": "api-server",
164
+ "properties": {
165
+ "taskId": {
166
+ "type": "string",
167
+ "required": true
168
+ },
169
+ "trigger_surface": {
170
+ "ref": "trigger_surface",
171
+ "required": true,
172
+ "description": "Surface that started the whole chain of work: the source of the root task."
173
+ },
174
+ "task_source": {
175
+ "ref": "trigger_surface",
176
+ "required": true,
177
+ "description": "agent_tasks.source of this task itself."
178
+ },
179
+ "provider": {
180
+ "type": "string"
181
+ },
182
+ "harnessVariant": {
183
+ "type": "string"
184
+ },
185
+ "harnessVersion": {
186
+ "type": "string"
187
+ },
188
+ "agentId": {
189
+ "type": "string"
190
+ },
191
+ "durationMs": {
192
+ "type": "integer"
193
+ }
194
+ }
195
+ },
196
+ {
197
+ "product": "agent-swarm",
198
+ "event": "task.failed",
199
+ "description": "A task failed.",
200
+ "since": "2026-09-30",
201
+ "source": "api-server",
202
+ "properties": {
203
+ "taskId": {
204
+ "type": "string",
205
+ "required": true
206
+ },
207
+ "trigger_surface": {
208
+ "ref": "trigger_surface",
209
+ "required": true,
210
+ "description": "Surface that started the whole chain of work: the source of the root task."
211
+ },
212
+ "task_source": {
213
+ "ref": "trigger_surface",
214
+ "required": true,
215
+ "description": "agent_tasks.source of this task itself."
216
+ },
217
+ "provider": {
218
+ "type": "string"
219
+ },
220
+ "harnessVariant": {
221
+ "type": "string"
222
+ },
223
+ "harnessVersion": {
224
+ "type": "string"
225
+ },
226
+ "agentId": {
227
+ "type": "string"
228
+ },
229
+ "durationMs": {
230
+ "type": "integer"
231
+ }
232
+ }
233
+ },
234
+ {
235
+ "product": "agent-swarm",
236
+ "event": "task.cancelled",
237
+ "description": "A task was cancelled.",
238
+ "since": "2026-09-30",
239
+ "source": "api-server",
240
+ "properties": {
241
+ "taskId": {
242
+ "type": "string",
243
+ "required": true
244
+ },
245
+ "trigger_surface": {
246
+ "ref": "trigger_surface",
247
+ "required": true,
248
+ "description": "Surface that started the whole chain of work: the source of the root task."
249
+ },
250
+ "task_source": {
251
+ "ref": "trigger_surface",
252
+ "required": true,
253
+ "description": "agent_tasks.source of this task itself."
254
+ },
255
+ "agentId": {
256
+ "type": "string"
257
+ },
258
+ "previousStatus": {
259
+ "type": "string",
260
+ "required": true
261
+ },
262
+ "durationMs": {
263
+ "type": "integer"
264
+ }
265
+ }
266
+ },
267
+ {
268
+ "product": "agent-swarm",
269
+ "event": "task.superseded",
270
+ "description": "A task was superseded by another task.",
271
+ "since": "2026-09-30",
272
+ "source": "api-server",
273
+ "properties": {
274
+ "taskId": {
275
+ "type": "string",
276
+ "required": true
277
+ },
278
+ "trigger_surface": {
279
+ "ref": "trigger_surface",
280
+ "required": true,
281
+ "description": "Surface that started the whole chain of work: the source of the root task."
282
+ },
283
+ "task_source": {
284
+ "ref": "trigger_surface",
285
+ "required": true,
286
+ "description": "agent_tasks.source of this task itself."
287
+ },
288
+ "provider": {
289
+ "type": "string"
290
+ },
291
+ "harnessVariant": {
292
+ "type": "string"
293
+ },
294
+ "harnessVersion": {
295
+ "type": "string"
296
+ },
297
+ "agentId": {
298
+ "type": "string"
299
+ },
300
+ "reason": {
301
+ "type": "string",
302
+ "required": true
303
+ },
304
+ "durationMs": {
305
+ "type": "integer"
306
+ }
307
+ }
308
+ },
309
+ {
310
+ "product": "agent-swarm",
311
+ "event": "task.session_completed",
312
+ "description": "A worker session for a task finished.",
313
+ "since": "2026-09-30",
314
+ "source": "worker",
315
+ "properties": {
316
+ "taskId": {
317
+ "type": "string",
318
+ "required": true,
319
+ "nullable": true,
320
+ "description": "Task the session ran, or null for a session with no task."
321
+ },
322
+ "trigger_surface": {
323
+ "ref": "trigger_surface",
324
+ "required": true,
325
+ "nullable": true,
326
+ "description": "Root surface of the task, or null for a session with no task."
327
+ },
328
+ "agentId": {
329
+ "type": "string",
330
+ "required": true
331
+ },
332
+ "provider": {
333
+ "type": "string",
334
+ "required": true
335
+ },
336
+ "model": {
337
+ "type": "string",
338
+ "required": true
339
+ },
340
+ "harnessVariant": {
341
+ "type": "string"
342
+ },
343
+ "harnessVersion": {
344
+ "type": "string"
345
+ },
346
+ "exitCode": {
347
+ "type": "integer",
348
+ "required": true
349
+ },
350
+ "isError": {
351
+ "type": "boolean",
352
+ "required": true
353
+ },
354
+ "durationMs": {
355
+ "type": "integer",
356
+ "required": true
357
+ }
358
+ }
359
+ },
360
+ {
361
+ "product": "agent-swarm",
362
+ "event": "server.started",
363
+ "description": "The API server started.",
364
+ "since": "2026-09-30",
365
+ "source": "api-server",
366
+ "properties": {
367
+ "port": {
368
+ "type": "integer",
369
+ "required": true
370
+ }
371
+ }
372
+ },
373
+ {
374
+ "product": "agent-swarm",
375
+ "event": "server.shutdown",
376
+ "description": "The API server shut down.",
377
+ "since": "2026-09-30",
378
+ "source": "api-server",
379
+ "properties": {
380
+ "signal": {
381
+ "type": "string",
382
+ "required": true
383
+ },
384
+ "uptimeMs": {
385
+ "type": "integer",
386
+ "required": true
387
+ },
388
+ "sessionsProcessed": {
389
+ "type": "integer",
390
+ "required": true
391
+ }
392
+ }
393
+ },
394
+ {
395
+ "product": "agent-swarm",
396
+ "event": "session.started",
397
+ "description": "A worker or lead session started.",
398
+ "since": "2026-09-30",
399
+ "source": "worker",
400
+ "properties": {
401
+ "taskId": {
402
+ "type": "string",
403
+ "required": true,
404
+ "nullable": true,
405
+ "description": "Task the session ran, or null for a session with no task."
406
+ },
407
+ "trigger_surface": {
408
+ "ref": "trigger_surface",
409
+ "required": true,
410
+ "nullable": true,
411
+ "description": "Root surface of the task, or null for a session with no task."
412
+ },
413
+ "agentId": {
414
+ "type": "string",
415
+ "required": true
416
+ },
417
+ "harnessProvider": {
418
+ "type": "string",
419
+ "required": true
420
+ },
421
+ "model": {
422
+ "type": "string"
423
+ },
424
+ "role": {
425
+ "type": "string",
426
+ "required": true
427
+ }
428
+ }
429
+ },
430
+ {
431
+ "product": "agent-swarm",
432
+ "event": "session.ended",
433
+ "description": "A worker or lead session ended.",
434
+ "since": "2026-09-30",
435
+ "source": "worker",
436
+ "properties": {
437
+ "taskId": {
438
+ "type": "string",
439
+ "required": true,
440
+ "nullable": true,
441
+ "description": "Task the session ran, or null for a session with no task."
442
+ },
443
+ "trigger_surface": {
444
+ "ref": "trigger_surface",
445
+ "required": true,
446
+ "nullable": true,
447
+ "description": "Root surface of the task, or null for a session with no task."
448
+ },
449
+ "agentId": {
450
+ "type": "string",
451
+ "required": true
452
+ },
453
+ "durationMs": {
454
+ "type": "integer"
455
+ },
456
+ "tasksProcessed": {
457
+ "type": "integer",
458
+ "required": true
459
+ }
460
+ }
461
+ },
462
+ {
463
+ "product": "agent-swarm",
464
+ "event": "session.cost",
465
+ "description": "Token usage and cost of one session.",
466
+ "since": "2026-09-30",
467
+ "source": "worker",
468
+ "properties": {
469
+ "taskId": {
470
+ "type": "string",
471
+ "required": true,
472
+ "nullable": true,
473
+ "description": "Task the session ran, or null for a session with no task."
474
+ },
475
+ "trigger_surface": {
476
+ "ref": "trigger_surface",
477
+ "required": true,
478
+ "nullable": true,
479
+ "description": "Root surface of the task, or null for a session with no task."
480
+ },
481
+ "agentId": {
482
+ "type": "string",
483
+ "required": true
484
+ },
485
+ "model": {
486
+ "type": "string",
487
+ "required": true
488
+ },
489
+ "provider": {
490
+ "type": "string",
491
+ "required": true
492
+ },
493
+ "inputTokens": {
494
+ "type": "integer",
495
+ "required": true
496
+ },
497
+ "outputTokens": {
498
+ "type": "integer",
499
+ "required": true
500
+ },
501
+ "cacheReadTokens": {
502
+ "type": "integer"
503
+ },
504
+ "cacheWriteTokens": {
505
+ "type": "integer"
506
+ },
507
+ "reasoningOutputTokens": {
508
+ "type": "integer"
509
+ },
510
+ "thinkingTokens": {
511
+ "type": "integer"
512
+ },
513
+ "totalCostUsd": {
514
+ "type": "number",
515
+ "required": true
516
+ },
517
+ "durationMs": {
518
+ "type": "integer",
519
+ "required": true
520
+ },
521
+ "numTurns": {
522
+ "type": "integer",
523
+ "required": true,
524
+ "nullable": true
525
+ },
526
+ "isError": {
527
+ "type": "boolean",
528
+ "required": true
529
+ }
530
+ }
531
+ },
532
+ {
533
+ "product": "agent-swarm",
534
+ "event": "session.failure",
535
+ "description": "A session failed.",
536
+ "since": "2026-09-30",
537
+ "source": "worker",
538
+ "properties": {
539
+ "taskId": {
540
+ "type": "string",
541
+ "required": true,
542
+ "nullable": true,
543
+ "description": "Task the session ran, or null for a session with no task."
544
+ },
545
+ "trigger_surface": {
546
+ "ref": "trigger_surface",
547
+ "required": true,
548
+ "nullable": true,
549
+ "description": "Root surface of the task, or null for a session with no task."
550
+ },
551
+ "agentId": {
552
+ "type": "string",
553
+ "required": true
554
+ },
555
+ "errorCategory": {
556
+ "type": "string",
557
+ "required": true
558
+ },
559
+ "provider": {
560
+ "type": "string",
561
+ "required": true
562
+ },
563
+ "model": {
564
+ "type": "string",
565
+ "required": true
566
+ },
567
+ "durationMs": {
568
+ "type": "integer",
569
+ "required": true
570
+ },
571
+ "wasRateLimited": {
572
+ "type": "boolean",
573
+ "required": true
574
+ }
575
+ }
576
+ },
577
+ {
578
+ "product": "agent-swarm",
579
+ "event": "session.cancelled",
580
+ "description": "A session was cancelled.",
581
+ "since": "2026-09-30",
582
+ "source": "worker",
583
+ "properties": {
584
+ "taskId": {
585
+ "type": "string",
586
+ "required": true,
587
+ "nullable": true,
588
+ "description": "Task the session ran, or null for a session with no task."
589
+ },
590
+ "trigger_surface": {
591
+ "ref": "trigger_surface",
592
+ "required": true,
593
+ "nullable": true,
594
+ "description": "Root surface of the task, or null for a session with no task."
595
+ },
596
+ "agentId": {
597
+ "type": "string",
598
+ "required": true
599
+ },
600
+ "errorCategory": {
601
+ "type": "string",
602
+ "required": true
603
+ },
604
+ "provider": {
605
+ "type": "string",
606
+ "required": true
607
+ },
608
+ "model": {
609
+ "type": "string",
610
+ "required": true
611
+ },
612
+ "durationMs": {
613
+ "type": "integer",
614
+ "required": true
615
+ },
616
+ "wasRateLimited": {
617
+ "type": "boolean",
618
+ "required": true
619
+ }
620
+ }
621
+ },
622
+ {
623
+ "product": "agent-swarm",
624
+ "event": "compaction.triggered",
625
+ "description": "The harness compacted a session context.",
626
+ "since": "2026-09-30",
627
+ "source": "worker",
628
+ "properties": {
629
+ "compactTrigger": {
630
+ "type": "string",
631
+ "required": true
632
+ },
633
+ "preCompactTokens": {
634
+ "type": "integer",
635
+ "required": true
636
+ },
637
+ "contextTotalTokens": {
638
+ "type": "integer",
639
+ "required": true
640
+ }
641
+ }
642
+ },
643
+ {
644
+ "product": "agent-swarm",
645
+ "event": "schedule.executed",
646
+ "description": "A schedule fired.",
647
+ "since": "2026-09-30",
648
+ "source": "api-server",
649
+ "properties": {
650
+ "scheduleType": {
651
+ "type": "string",
652
+ "required": true
653
+ },
654
+ "triggeredWorkflows": {
655
+ "type": "boolean",
656
+ "required": true
657
+ },
658
+ "wasRecovered": {
659
+ "type": "boolean",
660
+ "required": true
661
+ }
662
+ }
663
+ },
664
+ {
665
+ "product": "agent-swarm",
666
+ "event": "schedule.error",
667
+ "description": "A schedule failed to fire.",
668
+ "since": "2026-09-30",
669
+ "source": "api-server",
670
+ "properties": {
671
+ "scheduleType": {
672
+ "type": "string",
673
+ "required": true
674
+ },
675
+ "triggeredWorkflows": {
676
+ "type": "boolean",
677
+ "required": true
678
+ },
679
+ "wasRecovered": {
680
+ "type": "boolean",
681
+ "required": true
682
+ },
683
+ "consecutiveErrors": {
684
+ "type": "integer",
685
+ "required": true
686
+ }
687
+ }
688
+ },
689
+ {
690
+ "product": "agent-swarm",
691
+ "event": "workflow.created",
692
+ "description": "A workflow was created.",
693
+ "since": "2026-09-30",
694
+ "source": "api-server",
695
+ "properties": {
696
+ "workflowId": {
697
+ "type": "string",
698
+ "required": true
699
+ },
700
+ "nodeCount": {
701
+ "type": "integer",
702
+ "required": true
703
+ },
704
+ "via": {
705
+ "type": "string",
706
+ "enum": [
707
+ "api",
708
+ "mcp"
709
+ ],
710
+ "description": "Interface that created the workflow. Sent as the property source in v1."
711
+ }
712
+ }
713
+ },
714
+ {
715
+ "product": "agent-swarm",
716
+ "event": "workflow.deleted",
717
+ "description": "A workflow was deleted.",
718
+ "since": "2026-09-30",
719
+ "source": "api-server",
720
+ "properties": {
721
+ "workflowId": {
722
+ "type": "string",
723
+ "required": true
724
+ },
725
+ "via": {
726
+ "type": "string",
727
+ "enum": [
728
+ "api",
729
+ "mcp"
730
+ ],
731
+ "description": "Interface that deleted the workflow. Sent as the property source in v1."
732
+ }
733
+ }
734
+ },
735
+ {
736
+ "product": "agent-swarm",
737
+ "event": "workflow.started",
738
+ "description": "A workflow run started.",
739
+ "since": "2026-09-30",
740
+ "source": "api-server",
741
+ "properties": {
742
+ "workflowId": {
743
+ "type": "string",
744
+ "required": true
745
+ },
746
+ "nodeCount": {
747
+ "type": "integer",
748
+ "required": true
749
+ },
750
+ "triggerType": {
751
+ "type": "string",
752
+ "required": true
753
+ }
754
+ }
755
+ },
756
+ {
757
+ "product": "agent-swarm",
758
+ "event": "workflow.completed",
759
+ "description": "A workflow run completed.",
760
+ "since": "2026-09-30",
761
+ "source": "api-server",
762
+ "properties": {
763
+ "workflowId": {
764
+ "type": "string",
765
+ "required": true
766
+ },
767
+ "durationMs": {
768
+ "type": "integer"
769
+ },
770
+ "stepsCompleted": {
771
+ "type": "integer",
772
+ "required": true
773
+ },
774
+ "stepsFailed": {
775
+ "type": "integer",
776
+ "required": true
777
+ }
778
+ }
779
+ },
780
+ {
781
+ "product": "agent-swarm",
782
+ "event": "workflow.failed",
783
+ "description": "A workflow run failed.",
784
+ "since": "2026-09-30",
785
+ "source": "api-server",
786
+ "properties": {
787
+ "workflowId": {
788
+ "type": "string",
789
+ "required": true
790
+ },
791
+ "durationMs": {
792
+ "type": "integer"
793
+ },
794
+ "stepsCompleted": {
795
+ "type": "integer",
796
+ "required": true
797
+ },
798
+ "stepsFailed": {
799
+ "type": "integer",
800
+ "required": true
801
+ }
802
+ }
803
+ },
804
+ {
805
+ "product": "agent-swarm",
806
+ "event": "agent.registered",
807
+ "description": "An agent registered or reconnected.",
808
+ "since": "2026-09-30",
809
+ "source": "api-server",
810
+ "properties": {
811
+ "role": {
812
+ "type": "string"
813
+ },
814
+ "capabilities": {
815
+ "type": "array",
816
+ "required": true
817
+ },
818
+ "isReconnect": {
819
+ "type": "boolean",
820
+ "required": true
821
+ }
822
+ }
823
+ },
824
+ {
825
+ "product": "agent-swarm",
826
+ "event": "integration.connected",
827
+ "description": "An integration was connected.",
828
+ "since": "2026-09-30",
829
+ "source": "api-server",
830
+ "properties": {
831
+ "type": {
832
+ "type": "string",
833
+ "required": true
834
+ },
835
+ "provider": {
836
+ "type": "string"
837
+ },
838
+ "first_of_type": {
839
+ "type": "boolean",
840
+ "required": true
841
+ }
842
+ }
843
+ },
844
+ {
845
+ "product": "agent-swarm",
846
+ "event": "onboarding.started",
847
+ "description": "Onboarding started.",
848
+ "since": "2026-09-30",
849
+ "source": "api-server",
850
+ "properties": {
851
+ "seconds_since_start": {
852
+ "type": "integer",
853
+ "required": true
854
+ },
855
+ "seconds_since_install": {
856
+ "type": "integer"
857
+ },
858
+ "existing_install": {
859
+ "type": "boolean",
860
+ "required": true
861
+ }
862
+ }
863
+ },
864
+ {
865
+ "product": "agent-swarm",
866
+ "event": "onboarding.step_viewed",
867
+ "description": "An onboarding step was shown.",
868
+ "since": "2026-09-30",
869
+ "source": "api-server",
870
+ "properties": {
871
+ "seconds_since_start": {
872
+ "type": "integer",
873
+ "required": true
874
+ },
875
+ "seconds_since_install": {
876
+ "type": "integer"
877
+ },
878
+ "step": {
879
+ "type": "string",
880
+ "required": true
881
+ }
882
+ }
883
+ },
884
+ {
885
+ "product": "agent-swarm",
886
+ "event": "onboarding.step_completed",
887
+ "description": "An onboarding step was completed.",
888
+ "since": "2026-09-30",
889
+ "source": "api-server",
890
+ "properties": {
891
+ "seconds_since_start": {
892
+ "type": "integer",
893
+ "required": true
894
+ },
895
+ "seconds_since_install": {
896
+ "type": "integer"
897
+ },
898
+ "step": {
899
+ "type": "string",
900
+ "required": true
901
+ },
902
+ "method": {
903
+ "type": "string"
904
+ },
905
+ "derived": {
906
+ "type": "boolean",
907
+ "required": true
908
+ }
909
+ }
910
+ },
911
+ {
912
+ "product": "agent-swarm",
913
+ "event": "onboarding.step_skipped",
914
+ "description": "An onboarding step was skipped.",
915
+ "since": "2026-09-30",
916
+ "source": "api-server",
917
+ "properties": {
918
+ "seconds_since_start": {
919
+ "type": "integer",
920
+ "required": true
921
+ },
922
+ "seconds_since_install": {
923
+ "type": "integer"
924
+ },
925
+ "step": {
926
+ "type": "string",
927
+ "required": true
928
+ }
929
+ }
930
+ },
931
+ {
932
+ "product": "agent-swarm",
933
+ "event": "onboarding.step_failed",
934
+ "description": "An onboarding step failed.",
935
+ "since": "2026-09-30",
936
+ "source": "api-server",
937
+ "properties": {
938
+ "seconds_since_start": {
939
+ "type": "integer",
940
+ "required": true
941
+ },
942
+ "seconds_since_install": {
943
+ "type": "integer"
944
+ },
945
+ "step": {
946
+ "type": "string",
947
+ "required": true
948
+ },
949
+ "error_class": {
950
+ "type": "string",
951
+ "required": true
952
+ }
953
+ }
954
+ },
955
+ {
956
+ "product": "agent-swarm",
957
+ "event": "onboarding.dismissed",
958
+ "description": "Onboarding was dismissed.",
959
+ "since": "2026-09-30",
960
+ "source": "api-server",
961
+ "properties": {
962
+ "seconds_since_start": {
963
+ "type": "integer",
964
+ "required": true
965
+ },
966
+ "seconds_since_install": {
967
+ "type": "integer"
968
+ }
969
+ }
970
+ },
971
+ {
972
+ "product": "agent-swarm",
973
+ "event": "onboarding.completed",
974
+ "description": "Onboarding was completed.",
975
+ "since": "2026-09-30",
976
+ "source": "api-server",
977
+ "properties": {
978
+ "seconds_since_start": {
979
+ "type": "integer",
980
+ "required": true
981
+ },
982
+ "seconds_since_install": {
983
+ "type": "integer"
984
+ }
985
+ }
986
+ },
987
+ {
988
+ "product": "agent-swarm",
989
+ "event": "onboarding.first_task_completed",
990
+ "description": "The first task after onboarding completed.",
991
+ "since": "2026-09-30",
992
+ "source": "api-server",
993
+ "properties": {
994
+ "seconds_since_start": {
995
+ "type": "integer",
996
+ "required": true
997
+ },
998
+ "seconds_since_install": {
999
+ "type": "integer"
1000
+ },
1001
+ "method": {
1002
+ "type": "string"
1003
+ }
1004
+ }
1005
+ },
1006
+ {
1007
+ "product": "agent-swarm",
1008
+ "event": "org.snapshot",
1009
+ "description": "Daily per-install user and agent counts. Counts only: no names, emails or IDs.",
1010
+ "since": "2026-09-30",
1011
+ "source": "api-server",
1012
+ "properties": {
1013
+ "users_total": {
1014
+ "type": "integer",
1015
+ "required": true,
1016
+ "minimum": 0,
1017
+ "description": "Active users."
1018
+ },
1019
+ "users_suspended": {
1020
+ "type": "integer",
1021
+ "required": true,
1022
+ "minimum": 0,
1023
+ "description": "Suspended users."
1024
+ },
1025
+ "users_admin": {
1026
+ "type": "integer",
1027
+ "required": true,
1028
+ "minimum": 0,
1029
+ "description": "Active users with an admin grant."
1030
+ },
1031
+ "users_with_login": {
1032
+ "type": "integer",
1033
+ "required": true,
1034
+ "minimum": 0,
1035
+ "description": "Active users with an email or a live aswt_ token."
1036
+ },
1037
+ "users_linked_slack": {
1038
+ "type": "integer",
1039
+ "required": true,
1040
+ "minimum": 0,
1041
+ "description": "Active users with a linked Slack identity."
1042
+ },
1043
+ "users_linked_github": {
1044
+ "type": "integer",
1045
+ "required": true,
1046
+ "minimum": 0,
1047
+ "description": "Active users with a linked GitHub identity."
1048
+ },
1049
+ "users_linked_gitlab": {
1050
+ "type": "integer",
1051
+ "required": true,
1052
+ "minimum": 0,
1053
+ "description": "Active users with a linked GitLab identity."
1054
+ },
1055
+ "users_linked_linear": {
1056
+ "type": "integer",
1057
+ "required": true,
1058
+ "minimum": 0,
1059
+ "description": "Active users with a linked Linear identity."
1060
+ },
1061
+ "users_linked_jira": {
1062
+ "type": "integer",
1063
+ "required": true,
1064
+ "minimum": 0,
1065
+ "description": "Active users with a linked Jira identity."
1066
+ },
1067
+ "users_linked_other": {
1068
+ "type": "integer",
1069
+ "required": true,
1070
+ "minimum": 0,
1071
+ "description": "Active users with any other linked identity."
1072
+ },
1073
+ "users_active_7d": {
1074
+ "type": "integer",
1075
+ "required": true,
1076
+ "minimum": 0,
1077
+ "description": "Distinct requesting users on tasks created in the last 7 days."
1078
+ },
1079
+ "agents_total": {
1080
+ "type": "integer",
1081
+ "required": true,
1082
+ "minimum": 0,
1083
+ "description": "Registered agents."
1084
+ }
1085
+ }
1086
+ },
1087
+ {
1088
+ "product": "agent-swarm",
1089
+ "event": "ui.session_started",
1090
+ "description": "A dashboard session started.",
1091
+ "since": "2026-09-30",
1092
+ "source": "ui",
1093
+ "properties": {}
1094
+ },
1095
+ {
1096
+ "product": "agent-swarm",
1097
+ "event": "page.viewed",
1098
+ "description": "A dashboard page was viewed.",
1099
+ "since": "2026-09-30",
1100
+ "source": "ui",
1101
+ "properties": {
1102
+ "route_template": {
1103
+ "type": "string",
1104
+ "required": true,
1105
+ "description": "Route pattern, never the concrete URL."
1106
+ }
1107
+ }
1108
+ },
1109
+ {
1110
+ "product": "agent-swarm",
1111
+ "event": "notification.viewed",
1112
+ "description": "A notification-centre item was shown.",
1113
+ "since": "2026-09-30",
1114
+ "source": "ui",
1115
+ "properties": {
1116
+ "key": {
1117
+ "type": "string",
1118
+ "required": true
1119
+ }
1120
+ }
1121
+ },
1122
+ {
1123
+ "product": "agent-swarm",
1124
+ "event": "notification.dismissed",
1125
+ "description": "A notification-centre item was dismissed.",
1126
+ "since": "2026-09-30",
1127
+ "source": "ui",
1128
+ "properties": {
1129
+ "key": {
1130
+ "type": "string",
1131
+ "required": true
1132
+ }
1133
+ }
1134
+ },
1135
+ {
1136
+ "product": "agent-swarm",
1137
+ "event": "notification.submitted",
1138
+ "description": "A notification-centre item was submitted.",
1139
+ "since": "2026-09-30",
1140
+ "source": "ui",
1141
+ "properties": {
1142
+ "key": {
1143
+ "type": "string",
1144
+ "required": true
1145
+ }
1146
+ }
1147
+ },
1148
+ {
1149
+ "product": "agent-swarm",
1150
+ "event": "feature.used",
1151
+ "description": "A dashboard feature was used.",
1152
+ "since": "2026-09-30",
1153
+ "source": "ui",
1154
+ "properties": {
1155
+ "feature": {
1156
+ "type": "string",
1157
+ "required": true
1158
+ }
1159
+ }
1160
+ },
1161
+ {
1162
+ "product": "agent-swarm",
1163
+ "event": "skill.invoked",
1164
+ "description": "A skill was invoked in a session.",
1165
+ "since": "2026-09-30",
1166
+ "source": "worker",
1167
+ "properties": {
1168
+ "skill_name": {
1169
+ "type": "string",
1170
+ "required": true
1171
+ },
1172
+ "skill_source": {
1173
+ "type": "string",
1174
+ "required": true
1175
+ },
1176
+ "trigger_surface": {
1177
+ "ref": "trigger_surface",
1178
+ "required": true,
1179
+ "nullable": true,
1180
+ "description": "Root surface of the task, or null for a session with no task."
1181
+ }
1182
+ }
1183
+ },
1184
+ {
1185
+ "product": "agent-swarm",
1186
+ "event": "session.steered",
1187
+ "description": "A running session received a steering message.",
1188
+ "since": "2026-09-30",
1189
+ "source": "api-server",
1190
+ "properties": {
1191
+ "trigger_surface": {
1192
+ "ref": "trigger_surface",
1193
+ "required": true,
1194
+ "nullable": true,
1195
+ "description": "Root surface of the steered task, or null when unknown."
1196
+ },
1197
+ "by_kind": {
1198
+ "type": "string",
1199
+ "required": true
1200
+ }
1201
+ }
1202
+ },
1203
+ {
1204
+ "product": "agent-swarm",
1205
+ "event": "lead.captured",
1206
+ "description": "A consented lead (Teams waitlist or private-beta sign-up). The email stays in feedback_submissions.",
1207
+ "since": "2026-09-30",
1208
+ "source": "api-server",
1209
+ "properties": {
1210
+ "channel": {
1211
+ "type": "string",
1212
+ "required": true
1213
+ },
1214
+ "submission_id": {
1215
+ "type": "string",
1216
+ "required": true
1217
+ },
1218
+ "consent": {
1219
+ "type": "boolean",
1220
+ "required": true
1221
+ }
1222
+ }
1223
+ },
1224
+ {
1225
+ "product": "agent-fs",
1226
+ "event": "server.started",
1227
+ "description": "The agent-fs server started.",
1228
+ "since": "2026-09-30",
1229
+ "source": "api-server",
1230
+ "properties": {
1231
+ "users": {
1232
+ "type": "integer"
1233
+ },
1234
+ "orgs": {
1235
+ "type": "integer"
1236
+ },
1237
+ "drives": {
1238
+ "type": "integer"
1239
+ },
1240
+ "files": {
1241
+ "type": "integer"
1242
+ },
1243
+ "storage_provider": {
1244
+ "type": "string"
1245
+ },
1246
+ "embedding_provider": {
1247
+ "type": "string"
1248
+ },
1249
+ "os": {
1250
+ "type": "string"
1251
+ },
1252
+ "arch": {
1253
+ "type": "string"
1254
+ },
1255
+ "is_cloud": {
1256
+ "type": "boolean",
1257
+ "required": true
1258
+ },
1259
+ "version": {
1260
+ "type": "string",
1261
+ "required": true
1262
+ }
1263
+ }
1264
+ },
1265
+ {
1266
+ "product": "agent-fs",
1267
+ "event": "server.heartbeat",
1268
+ "description": "Daily agent-fs server heartbeat. v1 also sends one ops_<op> count per operation; list them before agent-fs moves to schema_version 2.",
1269
+ "since": "2026-09-30",
1270
+ "source": "api-server",
1271
+ "properties": {
1272
+ "users": {
1273
+ "type": "integer"
1274
+ },
1275
+ "orgs": {
1276
+ "type": "integer"
1277
+ },
1278
+ "drives": {
1279
+ "type": "integer"
1280
+ },
1281
+ "files": {
1282
+ "type": "integer"
1283
+ },
1284
+ "storage_provider": {
1285
+ "type": "string"
1286
+ },
1287
+ "embedding_provider": {
1288
+ "type": "string"
1289
+ },
1290
+ "os": {
1291
+ "type": "string"
1292
+ },
1293
+ "arch": {
1294
+ "type": "string"
1295
+ },
1296
+ "is_cloud": {
1297
+ "type": "boolean",
1298
+ "required": true
1299
+ },
1300
+ "version": {
1301
+ "type": "string",
1302
+ "required": true
1303
+ },
1304
+ "ops_total": {
1305
+ "type": "integer",
1306
+ "required": true
1307
+ },
1308
+ "shutdown": {
1309
+ "type": "boolean"
1310
+ }
1311
+ }
1312
+ },
1313
+ {
1314
+ "product": "agent-fs",
1315
+ "event": "live.session_started",
1316
+ "description": "An agent-fs live (browser) session started.",
1317
+ "since": "2026-09-30",
1318
+ "source": "live",
1319
+ "properties": {
1320
+ "is_cloud": {
1321
+ "type": "boolean",
1322
+ "required": true
1323
+ },
1324
+ "version": {
1325
+ "type": "string",
1326
+ "required": true
1327
+ },
1328
+ "entry_route": {
1329
+ "type": "string",
1330
+ "required": true
1331
+ }
1332
+ }
1333
+ }
1334
+ ]
1335
+ }