dsh-botgroup 0.0.0-stage → 0.6.7

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 (810) hide show
  1. package/LICENSE +18 -0
  2. package/README.en.md +180 -0
  3. package/README.md +179 -2
  4. package/THIRD_PARTY_NOTICES.txt +212 -0
  5. package/assets/logo-1024.png +0 -0
  6. package/cordis.patch.yml +13 -0
  7. package/icon.svg +9 -0
  8. package/lib/client.js +28298 -0
  9. package/lib/client.js.map +7 -0
  10. package/lib/host/activity/first-user.d.ts +16 -0
  11. package/lib/host/activity/first-user.js +25 -0
  12. package/lib/host/activity/first-user.js.map +1 -0
  13. package/lib/host/activity/preview.d.ts +2 -0
  14. package/lib/host/activity/preview.js +5 -0
  15. package/lib/host/activity/preview.js.map +1 -0
  16. package/lib/host/activity/remote.d.ts +15 -0
  17. package/lib/host/activity/remote.js +66 -0
  18. package/lib/host/activity/remote.js.map +1 -0
  19. package/lib/host/activity/tracker.d.ts +12 -0
  20. package/lib/host/activity/tracker.js +157 -0
  21. package/lib/host/activity/tracker.js.map +1 -0
  22. package/lib/host/automation/coordinator.d.ts +26 -0
  23. package/lib/host/automation/coordinator.js +58 -0
  24. package/lib/host/automation/coordinator.js.map +1 -0
  25. package/lib/host/automation/delivery.d.ts +16 -0
  26. package/lib/host/automation/delivery.js +65 -0
  27. package/lib/host/automation/delivery.js.map +1 -0
  28. package/lib/host/automation/errors.d.ts +16 -0
  29. package/lib/host/automation/errors.js +19 -0
  30. package/lib/host/automation/errors.js.map +1 -0
  31. package/lib/host/automation/index.d.ts +2 -0
  32. package/lib/host/automation/index.js +4 -0
  33. package/lib/host/automation/index.js.map +1 -0
  34. package/lib/host/automation/remote.d.ts +280 -0
  35. package/lib/host/automation/remote.js +152 -0
  36. package/lib/host/automation/remote.js.map +1 -0
  37. package/lib/host/automation/store.d.ts +297 -0
  38. package/lib/host/automation/store.js +286 -0
  39. package/lib/host/automation/store.js.map +1 -0
  40. package/lib/host/bot-context.d.ts +11 -0
  41. package/lib/host/bot-context.js +318 -0
  42. package/lib/host/bot-context.js.map +1 -0
  43. package/lib/host/capabilities/platform.d.ts +17 -0
  44. package/lib/host/capabilities/platform.js +17 -0
  45. package/lib/host/capabilities/platform.js.map +1 -0
  46. package/lib/host/capabilities/remote.d.ts +94 -0
  47. package/lib/host/capabilities/remote.js +59 -0
  48. package/lib/host/capabilities/remote.js.map +1 -0
  49. package/lib/host/capabilities/service.d.ts +82 -0
  50. package/lib/host/capabilities/service.js +144 -0
  51. package/lib/host/capabilities/service.js.map +1 -0
  52. package/lib/host/collaboration/remote.d.ts +89 -0
  53. package/lib/host/collaboration/remote.js +109 -0
  54. package/lib/host/collaboration/remote.js.map +1 -0
  55. package/lib/host/collaboration/service.d.ts +61 -0
  56. package/lib/host/collaboration/service.js +191 -0
  57. package/lib/host/collaboration/service.js.map +1 -0
  58. package/lib/host/common/integration-stores.d.ts +162 -0
  59. package/lib/host/common/integration-stores.js +50 -0
  60. package/lib/host/common/integration-stores.js.map +1 -0
  61. package/lib/host/common/operations.d.ts +23 -0
  62. package/lib/host/common/operations.js +38 -0
  63. package/lib/host/common/operations.js.map +1 -0
  64. package/lib/host/composer.d.ts +15 -0
  65. package/lib/host/composer.js +102 -0
  66. package/lib/host/composer.js.map +1 -0
  67. package/lib/host/connectors/remote.d.ts +215 -0
  68. package/lib/host/connectors/remote.js +111 -0
  69. package/lib/host/connectors/remote.js.map +1 -0
  70. package/lib/host/connectors/service.d.ts +150 -0
  71. package/lib/host/connectors/service.js +491 -0
  72. package/lib/host/connectors/service.js.map +1 -0
  73. package/lib/host/data-flow/agent-binding.d.ts +8 -0
  74. package/lib/host/data-flow/agent-binding.js +4 -0
  75. package/lib/host/data-flow/agent-binding.js.map +1 -0
  76. package/lib/host/data-flow/connector-boundary.d.ts +7 -0
  77. package/lib/host/data-flow/connector-boundary.js +33 -0
  78. package/lib/host/data-flow/connector-boundary.js.map +1 -0
  79. package/lib/host/data-flow/delegation.d.ts +6 -0
  80. package/lib/host/data-flow/delegation.js +72 -0
  81. package/lib/host/data-flow/delegation.js.map +1 -0
  82. package/lib/host/data-flow/egress.d.ts +26 -0
  83. package/lib/host/data-flow/egress.js +118 -0
  84. package/lib/host/data-flow/egress.js.map +1 -0
  85. package/lib/host/data-flow/grants.d.ts +18 -0
  86. package/lib/host/data-flow/grants.js +39 -0
  87. package/lib/host/data-flow/grants.js.map +1 -0
  88. package/lib/host/data-flow/graph-capability.d.ts +3 -0
  89. package/lib/host/data-flow/graph-capability.js +21 -0
  90. package/lib/host/data-flow/graph-capability.js.map +1 -0
  91. package/lib/host/data-flow/labels.d.ts +6 -0
  92. package/lib/host/data-flow/labels.js +30 -0
  93. package/lib/host/data-flow/labels.js.map +1 -0
  94. package/lib/host/data-flow/lineage.d.ts +10 -0
  95. package/lib/host/data-flow/lineage.js +35 -0
  96. package/lib/host/data-flow/lineage.js.map +1 -0
  97. package/lib/host/data-flow/managed-copies.d.ts +208 -0
  98. package/lib/host/data-flow/managed-copies.js +37 -0
  99. package/lib/host/data-flow/managed-copies.js.map +1 -0
  100. package/lib/host/data-flow/native-policy.d.ts +26 -0
  101. package/lib/host/data-flow/native-policy.js +86 -0
  102. package/lib/host/data-flow/native-policy.js.map +1 -0
  103. package/lib/host/data-flow/outlets.d.ts +55 -0
  104. package/lib/host/data-flow/outlets.js +307 -0
  105. package/lib/host/data-flow/outlets.js.map +1 -0
  106. package/lib/host/data-flow/tool-guard.d.ts +13 -0
  107. package/lib/host/data-flow/tool-guard.js +114 -0
  108. package/lib/host/data-flow/tool-guard.js.map +1 -0
  109. package/lib/host/delegate/continuation.d.ts +5 -0
  110. package/lib/host/delegate/continuation.js +44 -0
  111. package/lib/host/delegate/continuation.js.map +1 -0
  112. package/lib/host/delegate/guard.d.ts +7 -0
  113. package/lib/host/delegate/guard.js +49 -0
  114. package/lib/host/delegate/guard.js.map +1 -0
  115. package/lib/host/delegate/tool.d.ts +3 -0
  116. package/lib/host/delegate/tool.js +180 -0
  117. package/lib/host/delegate/tool.js.map +1 -0
  118. package/lib/host/errors.d.ts +9 -0
  119. package/lib/host/errors.js +17 -0
  120. package/lib/host/errors.js.map +1 -0
  121. package/lib/host/groups/concurrent.d.ts +29 -0
  122. package/lib/host/groups/concurrent.js +272 -0
  123. package/lib/host/groups/concurrent.js.map +1 -0
  124. package/lib/host/groups/data-flow.d.ts +21 -0
  125. package/lib/host/groups/data-flow.js +54 -0
  126. package/lib/host/groups/data-flow.js.map +1 -0
  127. package/lib/host/groups/failure.d.ts +10 -0
  128. package/lib/host/groups/failure.js +36 -0
  129. package/lib/host/groups/failure.js.map +1 -0
  130. package/lib/host/groups/members.d.ts +105 -0
  131. package/lib/host/groups/members.js +204 -0
  132. package/lib/host/groups/members.js.map +1 -0
  133. package/lib/host/groups/messages.d.ts +335 -0
  134. package/lib/host/groups/messages.js +148 -0
  135. package/lib/host/groups/messages.js.map +1 -0
  136. package/lib/host/groups/model-selection.d.ts +15 -0
  137. package/lib/host/groups/model-selection.js +12 -0
  138. package/lib/host/groups/model-selection.js.map +1 -0
  139. package/lib/host/groups/model.d.ts +266 -0
  140. package/lib/host/groups/model.js +22 -0
  141. package/lib/host/groups/model.js.map +1 -0
  142. package/lib/host/groups/owner-follow-up.d.ts +4 -0
  143. package/lib/host/groups/owner-follow-up.js +34 -0
  144. package/lib/host/groups/owner-follow-up.js.map +1 -0
  145. package/lib/host/groups/recall-sessions.d.ts +32 -0
  146. package/lib/host/groups/recall-sessions.js +145 -0
  147. package/lib/host/groups/recall-sessions.js.map +1 -0
  148. package/lib/host/groups/recall-tool.d.ts +9 -0
  149. package/lib/host/groups/recall-tool.js +275 -0
  150. package/lib/host/groups/recall-tool.js.map +1 -0
  151. package/lib/host/groups/recall.d.ts +37 -0
  152. package/lib/host/groups/recall.js +406 -0
  153. package/lib/host/groups/recall.js.map +1 -0
  154. package/lib/host/groups/remote.d.ts +902 -0
  155. package/lib/host/groups/remote.js +146 -0
  156. package/lib/host/groups/remote.js.map +1 -0
  157. package/lib/host/groups/root-guard.d.ts +26 -0
  158. package/lib/host/groups/root-guard.js +59 -0
  159. package/lib/host/groups/root-guard.js.map +1 -0
  160. package/lib/host/groups/roots.d.ts +25 -0
  161. package/lib/host/groups/roots.js +225 -0
  162. package/lib/host/groups/roots.js.map +1 -0
  163. package/lib/host/groups/round-robin.d.ts +2 -0
  164. package/lib/host/groups/round-robin.js +7 -0
  165. package/lib/host/groups/round-robin.js.map +1 -0
  166. package/lib/host/groups/routing.d.ts +8 -0
  167. package/lib/host/groups/routing.js +62 -0
  168. package/lib/host/groups/routing.js.map +1 -0
  169. package/lib/host/groups/service.d.ts +1204 -0
  170. package/lib/host/groups/service.js +286 -0
  171. package/lib/host/groups/service.js.map +1 -0
  172. package/lib/host/groups/state.d.ts +818 -0
  173. package/lib/host/groups/state.js +227 -0
  174. package/lib/host/groups/state.js.map +1 -0
  175. package/lib/host/groups/turn-runner.d.ts +181 -0
  176. package/lib/host/groups/turn-runner.js +578 -0
  177. package/lib/host/groups/turn-runner.js.map +1 -0
  178. package/lib/host/groups/turns.d.ts +657 -0
  179. package/lib/host/groups/turns.js +480 -0
  180. package/lib/host/groups/turns.js.map +1 -0
  181. package/lib/host/groups/worker-tool.d.ts +43 -0
  182. package/lib/host/groups/worker-tool.js +86 -0
  183. package/lib/host/groups/worker-tool.js.map +1 -0
  184. package/lib/host/home.d.ts +27 -0
  185. package/lib/host/home.js +221 -0
  186. package/lib/host/home.js.map +1 -0
  187. package/lib/host/im/service.d.ts +4 -0
  188. package/lib/host/im/service.js +20 -0
  189. package/lib/host/im/service.js.map +1 -0
  190. package/lib/host/index.d.ts +9 -0
  191. package/lib/host/index.js +270 -0
  192. package/lib/host/index.js.map +1 -0
  193. package/lib/host/live-persona.d.ts +9 -0
  194. package/lib/host/live-persona.js +102 -0
  195. package/lib/host/live-persona.js.map +1 -0
  196. package/lib/host/main-session.d.ts +45 -0
  197. package/lib/host/main-session.js +249 -0
  198. package/lib/host/main-session.js.map +1 -0
  199. package/lib/host/memory/admission.d.ts +46 -0
  200. package/lib/host/memory/admission.js +269 -0
  201. package/lib/host/memory/admission.js.map +1 -0
  202. package/lib/host/memory/auto-share.d.ts +36 -0
  203. package/lib/host/memory/auto-share.js +38 -0
  204. package/lib/host/memory/auto-share.js.map +1 -0
  205. package/lib/host/memory/confirmation.d.ts +145 -0
  206. package/lib/host/memory/confirmation.js +88 -0
  207. package/lib/host/memory/confirmation.js.map +1 -0
  208. package/lib/host/memory/conflicts.d.ts +16 -0
  209. package/lib/host/memory/conflicts.js +87 -0
  210. package/lib/host/memory/conflicts.js.map +1 -0
  211. package/lib/host/memory/context.d.ts +16 -0
  212. package/lib/host/memory/context.js +96 -0
  213. package/lib/host/memory/context.js.map +1 -0
  214. package/lib/host/memory/domain-v2.d.ts +338 -0
  215. package/lib/host/memory/domain-v2.js +21 -0
  216. package/lib/host/memory/domain-v2.js.map +1 -0
  217. package/lib/host/memory/facade.d.ts +31 -0
  218. package/lib/host/memory/facade.js +182 -0
  219. package/lib/host/memory/facade.js.map +1 -0
  220. package/lib/host/memory/forget-preview.d.ts +27 -0
  221. package/lib/host/memory/forget-preview.js +100 -0
  222. package/lib/host/memory/forget-preview.js.map +1 -0
  223. package/lib/host/memory/forget-runner.d.ts +31 -0
  224. package/lib/host/memory/forget-runner.js +167 -0
  225. package/lib/host/memory/forget-runner.js.map +1 -0
  226. package/lib/host/memory/forget-service.d.ts +65 -0
  227. package/lib/host/memory/forget-service.js +169 -0
  228. package/lib/host/memory/forget-service.js.map +1 -0
  229. package/lib/host/memory/history-proof.d.ts +5 -0
  230. package/lib/host/memory/history-proof.js +37 -0
  231. package/lib/host/memory/history-proof.js.map +1 -0
  232. package/lib/host/memory/history.d.ts +31 -0
  233. package/lib/host/memory/history.js +45 -0
  234. package/lib/host/memory/history.js.map +1 -0
  235. package/lib/host/memory/layout-upgrade.d.ts +8 -0
  236. package/lib/host/memory/layout-upgrade.js +51 -0
  237. package/lib/host/memory/layout-upgrade.js.map +1 -0
  238. package/lib/host/memory/migration.d.ts +23 -0
  239. package/lib/host/memory/migration.js +105 -0
  240. package/lib/host/memory/migration.js.map +1 -0
  241. package/lib/host/memory/op-log.d.ts +44 -0
  242. package/lib/host/memory/op-log.js +155 -0
  243. package/lib/host/memory/op-log.js.map +1 -0
  244. package/lib/host/memory/open-v2.d.ts +7 -0
  245. package/lib/host/memory/open-v2.js +30 -0
  246. package/lib/host/memory/open-v2.js.map +1 -0
  247. package/lib/host/memory/owner-lease.d.ts +9 -0
  248. package/lib/host/memory/owner-lease.js +105 -0
  249. package/lib/host/memory/owner-lease.js.map +1 -0
  250. package/lib/host/memory/persistent-map.d.ts +40 -0
  251. package/lib/host/memory/persistent-map.js +88 -0
  252. package/lib/host/memory/persistent-map.js.map +1 -0
  253. package/lib/host/memory/port.d.ts +10 -0
  254. package/lib/host/memory/port.js +3 -0
  255. package/lib/host/memory/port.js.map +1 -0
  256. package/lib/host/memory/preserve-inbox.d.ts +7 -0
  257. package/lib/host/memory/preserve-inbox.js +45 -0
  258. package/lib/host/memory/preserve-inbox.js.map +1 -0
  259. package/lib/host/memory/projection.d.ts +22 -0
  260. package/lib/host/memory/projection.js +89 -0
  261. package/lib/host/memory/projection.js.map +1 -0
  262. package/lib/host/memory/prompt.d.ts +3 -0
  263. package/lib/host/memory/prompt.js +56 -0
  264. package/lib/host/memory/prompt.js.map +1 -0
  265. package/lib/host/memory/query.d.ts +5 -0
  266. package/lib/host/memory/query.js +8 -0
  267. package/lib/host/memory/query.js.map +1 -0
  268. package/lib/host/memory/quota-replay.d.ts +4 -0
  269. package/lib/host/memory/quota-replay.js +22 -0
  270. package/lib/host/memory/quota-replay.js.map +1 -0
  271. package/lib/host/memory/quota.d.ts +152 -0
  272. package/lib/host/memory/quota.js +101 -0
  273. package/lib/host/memory/quota.js.map +1 -0
  274. package/lib/host/memory/remote.d.ts +164 -0
  275. package/lib/host/memory/remote.js +191 -0
  276. package/lib/host/memory/remote.js.map +1 -0
  277. package/lib/host/memory/retrieval-aliases.json +55 -0
  278. package/lib/host/memory/retrieval-config.d.ts +15 -0
  279. package/lib/host/memory/retrieval-config.js +17 -0
  280. package/lib/host/memory/retrieval-config.js.map +1 -0
  281. package/lib/host/memory/retrieval-rank.d.ts +16 -0
  282. package/lib/host/memory/retrieval-rank.js +88 -0
  283. package/lib/host/memory/retrieval-rank.js.map +1 -0
  284. package/lib/host/memory/retrieval-text.d.ts +3 -0
  285. package/lib/host/memory/retrieval-text.js +34 -0
  286. package/lib/host/memory/retrieval-text.js.map +1 -0
  287. package/lib/host/memory/root-instructions.d.ts +4 -0
  288. package/lib/host/memory/root-instructions.js +21 -0
  289. package/lib/host/memory/root-instructions.js.map +1 -0
  290. package/lib/host/memory/secrets.d.ts +6 -0
  291. package/lib/host/memory/secrets.js +12 -0
  292. package/lib/host/memory/secrets.js.map +1 -0
  293. package/lib/host/memory/service.d.ts +59 -0
  294. package/lib/host/memory/service.js +148 -0
  295. package/lib/host/memory/service.js.map +1 -0
  296. package/lib/host/memory/shards.d.ts +4 -0
  297. package/lib/host/memory/shards.js +12 -0
  298. package/lib/host/memory/shards.js.map +1 -0
  299. package/lib/host/memory/store-v2.d.ts +37 -0
  300. package/lib/host/memory/store-v2.js +156 -0
  301. package/lib/host/memory/store-v2.js.map +1 -0
  302. package/lib/host/memory/temporal.d.ts +18 -0
  303. package/lib/host/memory/temporal.js +53 -0
  304. package/lib/host/memory/temporal.js.map +1 -0
  305. package/lib/host/memory/tool-guidance.d.ts +3 -0
  306. package/lib/host/memory/tool-guidance.js +11 -0
  307. package/lib/host/memory/tool-guidance.js.map +1 -0
  308. package/lib/host/memory/tools.d.ts +6 -0
  309. package/lib/host/memory/tools.js +121 -0
  310. package/lib/host/memory/tools.js.map +1 -0
  311. package/lib/host/memory/trusted-ingress.d.ts +14 -0
  312. package/lib/host/memory/trusted-ingress.js +13 -0
  313. package/lib/host/memory/trusted-ingress.js.map +1 -0
  314. package/lib/host/memory/version.d.ts +135 -0
  315. package/lib/host/memory/version.js +17 -0
  316. package/lib/host/memory/version.js.map +1 -0
  317. package/lib/host/messaging/config.d.ts +55 -0
  318. package/lib/host/messaging/config.js +44 -0
  319. package/lib/host/messaging/config.js.map +1 -0
  320. package/lib/host/messaging/core.d.ts +279 -0
  321. package/lib/host/messaging/core.js +109 -0
  322. package/lib/host/messaging/core.js.map +1 -0
  323. package/lib/host/messaging/delivery.d.ts +6 -0
  324. package/lib/host/messaging/delivery.js +237 -0
  325. package/lib/host/messaging/delivery.js.map +1 -0
  326. package/lib/host/messaging/evidence.d.ts +15 -0
  327. package/lib/host/messaging/evidence.js +63 -0
  328. package/lib/host/messaging/evidence.js.map +1 -0
  329. package/lib/host/messaging/interrupt.d.ts +3 -0
  330. package/lib/host/messaging/interrupt.js +15 -0
  331. package/lib/host/messaging/interrupt.js.map +1 -0
  332. package/lib/host/messaging/recovery.d.ts +19 -0
  333. package/lib/host/messaging/recovery.js +114 -0
  334. package/lib/host/messaging/recovery.js.map +1 -0
  335. package/lib/host/messaging/remote.d.ts +92 -0
  336. package/lib/host/messaging/remote.js +119 -0
  337. package/lib/host/messaging/remote.js.map +1 -0
  338. package/lib/host/messaging/reply-routing.d.ts +6 -0
  339. package/lib/host/messaging/reply-routing.js +203 -0
  340. package/lib/host/messaging/reply-routing.js.map +1 -0
  341. package/lib/host/messaging/safety.d.ts +29 -0
  342. package/lib/host/messaging/safety.js +78 -0
  343. package/lib/host/messaging/safety.js.map +1 -0
  344. package/lib/host/messaging/service.d.ts +22 -0
  345. package/lib/host/messaging/service.js +56 -0
  346. package/lib/host/messaging/service.js.map +1 -0
  347. package/lib/host/messaging/store.d.ts +732 -0
  348. package/lib/host/messaging/store.js +310 -0
  349. package/lib/host/messaging/store.js.map +1 -0
  350. package/lib/host/messaging/tool.d.ts +3 -0
  351. package/lib/host/messaging/tool.js +100 -0
  352. package/lib/host/messaging/tool.js.map +1 -0
  353. package/lib/host/messaging/wake.d.ts +5 -0
  354. package/lib/host/messaging/wake.js +14 -0
  355. package/lib/host/messaging/wake.js.map +1 -0
  356. package/lib/host/native-schedule/outcomes.d.ts +30 -0
  357. package/lib/host/native-schedule/outcomes.js +31 -0
  358. package/lib/host/native-schedule/outcomes.js.map +1 -0
  359. package/lib/host/native-schedule/service.d.ts +47 -0
  360. package/lib/host/native-schedule/service.js +164 -0
  361. package/lib/host/native-schedule/service.js.map +1 -0
  362. package/lib/host/notifications/data-flow.d.ts +6 -0
  363. package/lib/host/notifications/data-flow.js +56 -0
  364. package/lib/host/notifications/data-flow.js.map +1 -0
  365. package/lib/host/notifications/remote.d.ts +111 -0
  366. package/lib/host/notifications/remote.js +78 -0
  367. package/lib/host/notifications/remote.js.map +1 -0
  368. package/lib/host/notifications/service.d.ts +443 -0
  369. package/lib/host/notifications/service.js +466 -0
  370. package/lib/host/notifications/service.js.map +1 -0
  371. package/lib/host/notifications/time.d.ts +6 -0
  372. package/lib/host/notifications/time.js +21 -0
  373. package/lib/host/notifications/time.js.map +1 -0
  374. package/lib/host/notifications/tool.d.ts +4 -0
  375. package/lib/host/notifications/tool.js +97 -0
  376. package/lib/host/notifications/tool.js.map +1 -0
  377. package/lib/host/onboarding/coordinator.d.ts +87 -0
  378. package/lib/host/onboarding/coordinator.js +332 -0
  379. package/lib/host/onboarding/coordinator.js.map +1 -0
  380. package/lib/host/onboarding/guard.d.ts +5 -0
  381. package/lib/host/onboarding/guard.js +71 -0
  382. package/lib/host/onboarding/guard.js.map +1 -0
  383. package/lib/host/proactive/auto-admission.d.ts +17 -0
  384. package/lib/host/proactive/auto-admission.js +51 -0
  385. package/lib/host/proactive/auto-admission.js.map +1 -0
  386. package/lib/host/proactive/config.d.ts +192 -0
  387. package/lib/host/proactive/config.js +78 -0
  388. package/lib/host/proactive/config.js.map +1 -0
  389. package/lib/host/proactive/coordinator-client.d.ts +17 -0
  390. package/lib/host/proactive/coordinator-client.js +143 -0
  391. package/lib/host/proactive/coordinator-client.js.map +1 -0
  392. package/lib/host/proactive/deferred-notices.d.ts +21 -0
  393. package/lib/host/proactive/deferred-notices.js +147 -0
  394. package/lib/host/proactive/deferred-notices.js.map +1 -0
  395. package/lib/host/proactive/execution-prompt.d.ts +4 -0
  396. package/lib/host/proactive/execution-prompt.js +23 -0
  397. package/lib/host/proactive/execution-prompt.js.map +1 -0
  398. package/lib/host/proactive/execution.d.ts +36 -0
  399. package/lib/host/proactive/execution.js +607 -0
  400. package/lib/host/proactive/execution.js.map +1 -0
  401. package/lib/host/proactive/executors/command.d.ts +49 -0
  402. package/lib/host/proactive/executors/command.js +117 -0
  403. package/lib/host/proactive/executors/command.js.map +1 -0
  404. package/lib/host/proactive/executors/json-command-bridge-entry.d.ts +1 -0
  405. package/lib/host/proactive/executors/json-command-bridge-entry.js +29 -0
  406. package/lib/host/proactive/executors/json-command-bridge-entry.js.map +1 -0
  407. package/lib/host/proactive/executors/json-command-bridge.d.ts +46 -0
  408. package/lib/host/proactive/executors/json-command-bridge.js +135 -0
  409. package/lib/host/proactive/executors/json-command-bridge.js.map +1 -0
  410. package/lib/host/proactive/executors/loopback.d.ts +23 -0
  411. package/lib/host/proactive/executors/loopback.js +136 -0
  412. package/lib/host/proactive/executors/loopback.js.map +1 -0
  413. package/lib/host/proactive/feedback-workflow.d.ts +1336 -0
  414. package/lib/host/proactive/feedback-workflow.js +194 -0
  415. package/lib/host/proactive/feedback-workflow.js.map +1 -0
  416. package/lib/host/proactive/feedback.d.ts +25 -0
  417. package/lib/host/proactive/feedback.js +107 -0
  418. package/lib/host/proactive/feedback.js.map +1 -0
  419. package/lib/host/proactive/follow-up-events.d.ts +45 -0
  420. package/lib/host/proactive/follow-up-events.js +328 -0
  421. package/lib/host/proactive/follow-up-events.js.map +1 -0
  422. package/lib/host/proactive/follow-up-facts.d.ts +5 -0
  423. package/lib/host/proactive/follow-up-facts.js +34 -0
  424. package/lib/host/proactive/follow-up-facts.js.map +1 -0
  425. package/lib/host/proactive/follow-up-tool.d.ts +4 -0
  426. package/lib/host/proactive/follow-up-tool.js +195 -0
  427. package/lib/host/proactive/follow-up-tool.js.map +1 -0
  428. package/lib/host/proactive/governance-artifacts.d.ts +8 -0
  429. package/lib/host/proactive/governance-artifacts.js +182 -0
  430. package/lib/host/proactive/governance-artifacts.js.map +1 -0
  431. package/lib/host/proactive/governance-service.d.ts +39 -0
  432. package/lib/host/proactive/governance-service.js +146 -0
  433. package/lib/host/proactive/governance-service.js.map +1 -0
  434. package/lib/host/proactive/group-budget.d.ts +25 -0
  435. package/lib/host/proactive/group-budget.js +145 -0
  436. package/lib/host/proactive/group-budget.js.map +1 -0
  437. package/lib/host/proactive/group-follow-up.d.ts +10 -0
  438. package/lib/host/proactive/group-follow-up.js +95 -0
  439. package/lib/host/proactive/group-follow-up.js.map +1 -0
  440. package/lib/host/proactive/group-repair.d.ts +93 -0
  441. package/lib/host/proactive/group-repair.js +283 -0
  442. package/lib/host/proactive/group-repair.js.map +1 -0
  443. package/lib/host/proactive/index.d.ts +10 -0
  444. package/lib/host/proactive/index.js +26 -0
  445. package/lib/host/proactive/index.js.map +1 -0
  446. package/lib/host/proactive/lifecycle.d.ts +24 -0
  447. package/lib/host/proactive/lifecycle.js +187 -0
  448. package/lib/host/proactive/lifecycle.js.map +1 -0
  449. package/lib/host/proactive/method-evaluation.d.ts +5 -0
  450. package/lib/host/proactive/method-evaluation.js +41 -0
  451. package/lib/host/proactive/method-evaluation.js.map +1 -0
  452. package/lib/host/proactive/method-package.d.ts +33 -0
  453. package/lib/host/proactive/method-package.js +25 -0
  454. package/lib/host/proactive/method-package.js.map +1 -0
  455. package/lib/host/proactive/method-skill.d.ts +7 -0
  456. package/lib/host/proactive/method-skill.js +20 -0
  457. package/lib/host/proactive/method-skill.js.map +1 -0
  458. package/lib/host/proactive/model-budget.d.ts +10 -0
  459. package/lib/host/proactive/model-budget.js +48 -0
  460. package/lib/host/proactive/model-budget.js.map +1 -0
  461. package/lib/host/proactive/notice-pump.d.ts +16 -0
  462. package/lib/host/proactive/notice-pump.js +174 -0
  463. package/lib/host/proactive/notice-pump.js.map +1 -0
  464. package/lib/host/proactive/notification-bridge.d.ts +3 -0
  465. package/lib/host/proactive/notification-bridge.js +26 -0
  466. package/lib/host/proactive/notification-bridge.js.map +1 -0
  467. package/lib/host/proactive/read-query.d.ts +4 -0
  468. package/lib/host/proactive/read-query.js +53 -0
  469. package/lib/host/proactive/read-query.js.map +1 -0
  470. package/lib/host/proactive/remote.d.ts +4910 -0
  471. package/lib/host/proactive/remote.js +351 -0
  472. package/lib/host/proactive/remote.js.map +1 -0
  473. package/lib/host/proactive/repair.d.ts +48 -0
  474. package/lib/host/proactive/repair.js +205 -0
  475. package/lib/host/proactive/repair.js.map +1 -0
  476. package/lib/host/proactive/result-journal.d.ts +215 -0
  477. package/lib/host/proactive/result-journal.js +132 -0
  478. package/lib/host/proactive/result-journal.js.map +1 -0
  479. package/lib/host/proactive/service.d.ts +30446 -0
  480. package/lib/host/proactive/service.js +1632 -0
  481. package/lib/host/proactive/service.js.map +1 -0
  482. package/lib/host/proactive/setup.d.ts +13 -0
  483. package/lib/host/proactive/setup.js +94 -0
  484. package/lib/host/proactive/setup.js.map +1 -0
  485. package/lib/host/proactive/sources/ci-feed.d.ts +21 -0
  486. package/lib/host/proactive/sources/ci-feed.js +86 -0
  487. package/lib/host/proactive/sources/ci-feed.js.map +1 -0
  488. package/lib/host/proactive/sources/ci.d.ts +35 -0
  489. package/lib/host/proactive/sources/ci.js +72 -0
  490. package/lib/host/proactive/sources/ci.js.map +1 -0
  491. package/lib/host/proactive/sources/github-ci.d.ts +16 -0
  492. package/lib/host/proactive/sources/github-ci.js +117 -0
  493. package/lib/host/proactive/sources/github-ci.js.map +1 -0
  494. package/lib/host/proactive/task-cost.d.ts +10 -0
  495. package/lib/host/proactive/task-cost.js +70 -0
  496. package/lib/host/proactive/task-cost.js.map +1 -0
  497. package/lib/host/proactive/wire.d.ts +5 -0
  498. package/lib/host/proactive/wire.js +48 -0
  499. package/lib/host/proactive/wire.js.map +1 -0
  500. package/lib/host/proactive/work-continuation.d.ts +21 -0
  501. package/lib/host/proactive/work-continuation.js +66 -0
  502. package/lib/host/proactive/work-continuation.js.map +1 -0
  503. package/lib/host/proactive/workspace-process.d.ts +25 -0
  504. package/lib/host/proactive/workspace-process.js +80 -0
  505. package/lib/host/proactive/workspace-process.js.map +1 -0
  506. package/lib/host/proactive/workspace-repair.d.ts +425 -0
  507. package/lib/host/proactive/workspace-repair.js +352 -0
  508. package/lib/host/proactive/workspace-repair.js.map +1 -0
  509. package/lib/host/reference-memory/backend.d.ts +13 -0
  510. package/lib/host/reference-memory/backend.js +134 -0
  511. package/lib/host/reference-memory/backend.js.map +1 -0
  512. package/lib/host/reference-memory/cleanup-files.d.ts +7 -0
  513. package/lib/host/reference-memory/cleanup-files.js +36 -0
  514. package/lib/host/reference-memory/cleanup-files.js.map +1 -0
  515. package/lib/host/reference-memory/copies.d.ts +87 -0
  516. package/lib/host/reference-memory/copies.js +218 -0
  517. package/lib/host/reference-memory/copies.js.map +1 -0
  518. package/lib/host/reference-memory/files.d.ts +4 -0
  519. package/lib/host/reference-memory/files.js +43 -0
  520. package/lib/host/reference-memory/files.js.map +1 -0
  521. package/lib/host/reference-memory/model.d.ts +195 -0
  522. package/lib/host/reference-memory/model.js +66 -0
  523. package/lib/host/reference-memory/model.js.map +1 -0
  524. package/lib/host/reference-memory/service.d.ts +157 -0
  525. package/lib/host/reference-memory/service.js +124 -0
  526. package/lib/host/reference-memory/service.js.map +1 -0
  527. package/lib/host/reference-memory/writer.d.ts +55 -0
  528. package/lib/host/reference-memory/writer.js +265 -0
  529. package/lib/host/reference-memory/writer.js.map +1 -0
  530. package/lib/host/registry/identity.d.ts +3 -0
  531. package/lib/host/registry/identity.js +9 -0
  532. package/lib/host/registry/identity.js.map +1 -0
  533. package/lib/host/registry/lifecycle.d.ts +118 -0
  534. package/lib/host/registry/lifecycle.js +226 -0
  535. package/lib/host/registry/lifecycle.js.map +1 -0
  536. package/lib/host/registry/mutations.d.ts +7 -0
  537. package/lib/host/registry/mutations.js +25 -0
  538. package/lib/host/registry/mutations.js.map +1 -0
  539. package/lib/host/registry/presets.d.ts +13 -0
  540. package/lib/host/registry/presets.js +169 -0
  541. package/lib/host/registry/presets.js.map +1 -0
  542. package/lib/host/registry/types.d.ts +11 -0
  543. package/lib/host/registry/types.js +3 -0
  544. package/lib/host/registry/types.js.map +1 -0
  545. package/lib/host/registry-config.d.ts +66 -0
  546. package/lib/host/registry-config.js +123 -0
  547. package/lib/host/registry-config.js.map +1 -0
  548. package/lib/host/registry.d.ts +142 -0
  549. package/lib/host/registry.js +489 -0
  550. package/lib/host/registry.js.map +1 -0
  551. package/lib/host/shadow/budget.d.ts +106 -0
  552. package/lib/host/shadow/budget.js +112 -0
  553. package/lib/host/shadow/budget.js.map +1 -0
  554. package/lib/host/shadow/config.d.ts +13 -0
  555. package/lib/host/shadow/config.js +13 -0
  556. package/lib/host/shadow/config.js.map +1 -0
  557. package/lib/host/shadow/notification-adapter.d.ts +5 -0
  558. package/lib/host/shadow/notification-adapter.js +16 -0
  559. package/lib/host/shadow/notification-adapter.js.map +1 -0
  560. package/lib/host/shadow/planner.d.ts +39 -0
  561. package/lib/host/shadow/planner.js +76 -0
  562. package/lib/host/shadow/planner.js.map +1 -0
  563. package/lib/host/shadow/schedule-adapter.d.ts +23 -0
  564. package/lib/host/shadow/schedule-adapter.js +15 -0
  565. package/lib/host/shadow/schedule-adapter.js.map +1 -0
  566. package/lib/host/shadow/service.d.ts +23 -0
  567. package/lib/host/shadow/service.js +25 -0
  568. package/lib/host/shadow/service.js.map +1 -0
  569. package/lib/host/store.d.ts +25 -0
  570. package/lib/host/store.js +74 -0
  571. package/lib/host/store.js.map +1 -0
  572. package/lib/host/stores/activity.d.ts +35 -0
  573. package/lib/host/stores/activity.js +188 -0
  574. package/lib/host/stores/activity.js.map +1 -0
  575. package/lib/host/stores/bots.d.ts +21 -0
  576. package/lib/host/stores/bots.js +128 -0
  577. package/lib/host/stores/bots.js.map +1 -0
  578. package/lib/host/stores/domain.d.ts +343 -0
  579. package/lib/host/stores/domain.js +98 -0
  580. package/lib/host/stores/domain.js.map +1 -0
  581. package/lib/host/stores/memory.d.ts +29 -0
  582. package/lib/host/stores/memory.js +139 -0
  583. package/lib/host/stores/memory.js.map +1 -0
  584. package/lib/host/tools/bot-manage.d.ts +14 -0
  585. package/lib/host/tools/bot-manage.js +436 -0
  586. package/lib/host/tools/bot-manage.js.map +1 -0
  587. package/lib/host/workspace/remote.d.ts +194 -0
  588. package/lib/host/workspace/remote.js +98 -0
  589. package/lib/host/workspace/remote.js.map +1 -0
  590. package/lib/host/workspace/service.d.ts +185 -0
  591. package/lib/host/workspace/service.js +261 -0
  592. package/lib/host/workspace/service.js.map +1 -0
  593. package/lib/index.d.ts +10 -0
  594. package/lib/index.js +58 -0
  595. package/lib/index.js.map +1 -0
  596. package/lib/module-manifest.json +262 -0
  597. package/lib/proactive-coordinator/LICENSE +21 -0
  598. package/lib/proactive-coordinator/core.mjs +19067 -0
  599. package/lib/proactive-coordinator/main.mjs +22196 -0
  600. package/lib/proactive-coordinator/package.json +1 -0
  601. package/lib/proactive-coordinator/prompts/admission.md +68 -0
  602. package/lib/proactive-coordinator/prompts/cli.md +17 -0
  603. package/lib/proactive-coordinator/prompts/dispatch.md +59 -0
  604. package/lib/proactive-coordinator/prompts/handoff-orchestrator.md +4 -0
  605. package/lib/proactive-coordinator/prompts/handoff-worker.md +7 -0
  606. package/lib/proactive-coordinator/prompts/handoff.md +6 -0
  607. package/lib/proactive-coordinator/prompts/orchestrator.md +16 -0
  608. package/lib/proactive-coordinator/prompts/replies.md +35 -0
  609. package/lib/proactive-coordinator/prompts/shared.md +7 -0
  610. package/lib/proactive-coordinator/prompts/subscriptions.md +13 -0
  611. package/lib/proactive-coordinator/prompts/team/communication.md +97 -0
  612. package/lib/proactive-coordinator/prompts/team/delivery.md +28 -0
  613. package/lib/proactive-coordinator/prompts/team/scope.md +22 -0
  614. package/lib/proactive-coordinator/prompts/work.md +49 -0
  615. package/lib/proactive-coordinator/prompts/worker.md +10 -0
  616. package/lib/proactive-coordinator/provenance.json +7 -0
  617. package/lib/proactive-coordinator/skills/dsh-superagent-feishu/SKILL.md +12 -0
  618. package/lib/proactive-coordinator/skills/dsh-superagent-github/SKILL.md +14 -0
  619. package/lib/shared/activity-preview.d.ts +5 -0
  620. package/lib/shared/activity-preview.js +40 -0
  621. package/lib/shared/activity-preview.js.map +1 -0
  622. package/lib/shared/activity.d.ts +107 -0
  623. package/lib/shared/activity.js +50 -0
  624. package/lib/shared/activity.js.map +1 -0
  625. package/lib/shared/automation-contract.d.ts +1138 -0
  626. package/lib/shared/automation-contract.js +63 -0
  627. package/lib/shared/automation-contract.js.map +1 -0
  628. package/lib/shared/automation.d.ts +336 -0
  629. package/lib/shared/automation.js +244 -0
  630. package/lib/shared/automation.js.map +1 -0
  631. package/lib/shared/bot-brand.d.ts +20 -0
  632. package/lib/shared/bot-brand.js +26 -0
  633. package/lib/shared/bot-brand.js.map +1 -0
  634. package/lib/shared/capabilities-contract.d.ts +685 -0
  635. package/lib/shared/capabilities-contract.js +38 -0
  636. package/lib/shared/capabilities-contract.js.map +1 -0
  637. package/lib/shared/collaboration-contract.d.ts +614 -0
  638. package/lib/shared/collaboration-contract.js +52 -0
  639. package/lib/shared/collaboration-contract.js.map +1 -0
  640. package/lib/shared/collaboration.d.ts +132 -0
  641. package/lib/shared/collaboration.js +63 -0
  642. package/lib/shared/collaboration.js.map +1 -0
  643. package/lib/shared/connectors.d.ts +216 -0
  644. package/lib/shared/connectors.js +121 -0
  645. package/lib/shared/connectors.js.map +1 -0
  646. package/lib/shared/data-flow.d.ts +135 -0
  647. package/lib/shared/data-flow.js +53 -0
  648. package/lib/shared/data-flow.js.map +1 -0
  649. package/lib/shared/eval-budget.d.ts +100 -0
  650. package/lib/shared/eval-budget.js +34 -0
  651. package/lib/shared/eval-budget.js.map +1 -0
  652. package/lib/shared/group-recall-reads.d.ts +35 -0
  653. package/lib/shared/group-recall-reads.js +12 -0
  654. package/lib/shared/group-recall-reads.js.map +1 -0
  655. package/lib/shared/group-recall.d.ts +132 -0
  656. package/lib/shared/group-recall.js +52 -0
  657. package/lib/shared/group-recall.js.map +1 -0
  658. package/lib/shared/groups-contract.d.ts +4128 -0
  659. package/lib/shared/groups-contract.js +97 -0
  660. package/lib/shared/groups-contract.js.map +1 -0
  661. package/lib/shared/groups.d.ts +966 -0
  662. package/lib/shared/groups.js +240 -0
  663. package/lib/shared/groups.js.map +1 -0
  664. package/lib/shared/identity.d.ts +14 -0
  665. package/lib/shared/identity.js +13 -0
  666. package/lib/shared/identity.js.map +1 -0
  667. package/lib/shared/ids.d.ts +5 -0
  668. package/lib/shared/ids.js +6 -0
  669. package/lib/shared/ids.js.map +1 -0
  670. package/lib/shared/integrations-contract.d.ts +1916 -0
  671. package/lib/shared/integrations-contract.js +71 -0
  672. package/lib/shared/integrations-contract.js.map +1 -0
  673. package/lib/shared/integrations.d.ts +216 -0
  674. package/lib/shared/integrations.js +20 -0
  675. package/lib/shared/integrations.js.map +1 -0
  676. package/lib/shared/managed-flow.d.ts +199 -0
  677. package/lib/shared/managed-flow.js +15 -0
  678. package/lib/shared/managed-flow.js.map +1 -0
  679. package/lib/shared/memory-forget.d.ts +122 -0
  680. package/lib/shared/memory-forget.js +32 -0
  681. package/lib/shared/memory-forget.js.map +1 -0
  682. package/lib/shared/memory-management.d.ts +588 -0
  683. package/lib/shared/memory-management.js +40 -0
  684. package/lib/shared/memory-management.js.map +1 -0
  685. package/lib/shared/memory-ops.d.ts +274 -0
  686. package/lib/shared/memory-ops.js +35 -0
  687. package/lib/shared/memory-ops.js.map +1 -0
  688. package/lib/shared/memory-tool-names.d.ts +2 -0
  689. package/lib/shared/memory-tool-names.js +9 -0
  690. package/lib/shared/memory-tool-names.js.map +1 -0
  691. package/lib/shared/memory-v2.d.ts +268 -0
  692. package/lib/shared/memory-v2.js +51 -0
  693. package/lib/shared/memory-v2.js.map +1 -0
  694. package/lib/shared/messaging-contract.d.ts +161 -0
  695. package/lib/shared/messaging-contract.js +24 -0
  696. package/lib/shared/messaging-contract.js.map +1 -0
  697. package/lib/shared/messaging.d.ts +797 -0
  698. package/lib/shared/messaging.js +229 -0
  699. package/lib/shared/messaging.js.map +1 -0
  700. package/lib/shared/native-schedule.d.ts +35 -0
  701. package/lib/shared/native-schedule.js +25 -0
  702. package/lib/shared/native-schedule.js.map +1 -0
  703. package/lib/shared/notifications.d.ts +167 -0
  704. package/lib/shared/notifications.js +104 -0
  705. package/lib/shared/notifications.js.map +1 -0
  706. package/lib/shared/onboarding-source.d.ts +19 -0
  707. package/lib/shared/onboarding-source.js +9 -0
  708. package/lib/shared/onboarding-source.js.map +1 -0
  709. package/lib/shared/onboarding.d.ts +115 -0
  710. package/lib/shared/onboarding.js +14 -0
  711. package/lib/shared/onboarding.js.map +1 -0
  712. package/lib/shared/operation-errors.d.ts +15 -0
  713. package/lib/shared/operation-errors.js +15 -0
  714. package/lib/shared/operation-errors.js.map +1 -0
  715. package/lib/shared/proactive/activity.d.ts +152 -0
  716. package/lib/shared/proactive/activity.js +23 -0
  717. package/lib/shared/proactive/activity.js.map +1 -0
  718. package/lib/shared/proactive/document.d.ts +31 -0
  719. package/lib/shared/proactive/document.js +17 -0
  720. package/lib/shared/proactive/document.js.map +1 -0
  721. package/lib/shared/proactive/feedback.d.ts +2315 -0
  722. package/lib/shared/proactive/feedback.js +177 -0
  723. package/lib/shared/proactive/feedback.js.map +1 -0
  724. package/lib/shared/proactive/follow-up.d.ts +781 -0
  725. package/lib/shared/proactive/follow-up.js +164 -0
  726. package/lib/shared/proactive/follow-up.js.map +1 -0
  727. package/lib/shared/proactive/governance.d.ts +147 -0
  728. package/lib/shared/proactive/governance.js +92 -0
  729. package/lib/shared/proactive/governance.js.map +1 -0
  730. package/lib/shared/proactive/group-follow-up.d.ts +228 -0
  731. package/lib/shared/proactive/group-follow-up.js +24 -0
  732. package/lib/shared/proactive/group-follow-up.js.map +1 -0
  733. package/lib/shared/proactive/group-repair.d.ts +185 -0
  734. package/lib/shared/proactive/group-repair.js +95 -0
  735. package/lib/shared/proactive/group-repair.js.map +1 -0
  736. package/lib/shared/proactive/handoff.d.ts +17 -0
  737. package/lib/shared/proactive/handoff.js +15 -0
  738. package/lib/shared/proactive/handoff.js.map +1 -0
  739. package/lib/shared/proactive/method-evaluation.d.ts +187 -0
  740. package/lib/shared/proactive/method-evaluation.js +46 -0
  741. package/lib/shared/proactive/method-evaluation.js.map +1 -0
  742. package/lib/shared/proactive/method-package.d.ts +131 -0
  743. package/lib/shared/proactive/method-package.js +28 -0
  744. package/lib/shared/proactive/method-package.js.map +1 -0
  745. package/lib/shared/proactive/notices.d.ts +126 -0
  746. package/lib/shared/proactive/notices.js +64 -0
  747. package/lib/shared/proactive/notices.js.map +1 -0
  748. package/lib/shared/proactive/outcomes.d.ts +23 -0
  749. package/lib/shared/proactive/outcomes.js +41 -0
  750. package/lib/shared/proactive/outcomes.js.map +1 -0
  751. package/lib/shared/proactive/protocol.d.ts +12103 -0
  752. package/lib/shared/proactive/protocol.js +688 -0
  753. package/lib/shared/proactive/protocol.js.map +1 -0
  754. package/lib/shared/proactive/remote-contract.d.ts +29534 -0
  755. package/lib/shared/proactive/remote-contract.js +248 -0
  756. package/lib/shared/proactive/remote-contract.js.map +1 -0
  757. package/lib/shared/proactive/repair.d.ts +65 -0
  758. package/lib/shared/proactive/repair.js +55 -0
  759. package/lib/shared/proactive/repair.js.map +1 -0
  760. package/lib/shared/proactive/responsibility.d.ts +1085 -0
  761. package/lib/shared/proactive/responsibility.js +222 -0
  762. package/lib/shared/proactive/responsibility.js.map +1 -0
  763. package/lib/shared/proactive/setup.d.ts +167 -0
  764. package/lib/shared/proactive/setup.js +26 -0
  765. package/lib/shared/proactive/setup.js.map +1 -0
  766. package/lib/shared/proactive/work-progress.d.ts +14 -0
  767. package/lib/shared/proactive/work-progress.js +22 -0
  768. package/lib/shared/proactive/work-progress.js.map +1 -0
  769. package/lib/shared/proactive/work.d.ts +2887 -0
  770. package/lib/shared/proactive/work.js +250 -0
  771. package/lib/shared/proactive/work.js.map +1 -0
  772. package/lib/shared/proactive/workspace-repair.d.ts +283 -0
  773. package/lib/shared/proactive/workspace-repair.js +195 -0
  774. package/lib/shared/proactive/workspace-repair.js.map +1 -0
  775. package/lib/shared/reference-memory.d.ts +517 -0
  776. package/lib/shared/reference-memory.js +188 -0
  777. package/lib/shared/reference-memory.js.map +1 -0
  778. package/lib/shared/remote-contract.d.ts +4586 -0
  779. package/lib/shared/remote-contract.js +205 -0
  780. package/lib/shared/remote-contract.js.map +1 -0
  781. package/lib/shared/routine-outcomes.d.ts +20 -0
  782. package/lib/shared/routine-outcomes.js +9 -0
  783. package/lib/shared/routine-outcomes.js.map +1 -0
  784. package/lib/shared/schema.d.ts +785 -0
  785. package/lib/shared/schema.js +203 -0
  786. package/lib/shared/schema.js.map +1 -0
  787. package/lib/shared/secrets.d.ts +2 -0
  788. package/lib/shared/secrets.js +15 -0
  789. package/lib/shared/secrets.js.map +1 -0
  790. package/lib/shared/shadow.d.ts +12 -0
  791. package/lib/shared/shadow.js +8 -0
  792. package/lib/shared/shadow.js.map +1 -0
  793. package/lib/shared/version.d.ts +1 -0
  794. package/lib/shared/version.js +3 -0
  795. package/lib/shared/version.js.map +1 -0
  796. package/lib/shared/workspace-contract.d.ts +2284 -0
  797. package/lib/shared/workspace-contract.js +37 -0
  798. package/lib/shared/workspace-contract.js.map +1 -0
  799. package/lib/shared/workspace.d.ts +496 -0
  800. package/lib/shared/workspace.js +120 -0
  801. package/lib/shared/workspace.js.map +1 -0
  802. package/lib/typert.host.d.ts +12 -0
  803. package/lib/typert.host.js +13 -0
  804. package/lib/typert.host.js.map +1 -0
  805. package/lib/typert.remote-client.d.ts +4 -0
  806. package/lib/typert.remote-client.js +9 -0
  807. package/lib/typert.remote-client.js.map +1 -0
  808. package/locale/en.json +1644 -0
  809. package/locale/zh.json +1644 -0
  810. package/package.json +176 -3
@@ -0,0 +1,4910 @@
1
+ import type { FollowUpPolicyRequest, ProactiveSetupRequest } from "../../shared/proactive/setup.js";
2
+ import type { FollowUpPageRequest, Subject } from '../../shared/proactive/follow-up.js';
3
+ import type { FollowUpGroupAbandonRequest, FollowUpGroupChoiceRequest, FollowUpGroupAcceptRequest } from '../../shared/proactive/group-follow-up.js';
4
+ import type { ExportMethodRequest, ImportMethodRequest } from "../../shared/proactive/method-package.js";
5
+ import type { DocumentRequest } from "../../shared/proactive/document.js";
6
+ import type { ActivityRequest, WorkDetailRequest } from '../../shared/proactive/activity.js';
7
+ import type { BeginForget } from "../../shared/proactive/governance.js";
8
+ import type { ResponsibilityMutationRequest } from "../../shared/proactive/responsibility.js";
9
+ import type { WorkContinuationRequest, WorkHistoryRequest } from "../../shared/proactive/work.js";
10
+ import type { WorkspaceReviewRequest } from "../../shared/proactive/workspace-repair.js";
11
+ import type { Context } from "@deepseek-ai/cordis";
12
+ import { TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
13
+ import { type SuggestionRequest, type AcceptRequest, type CancelRequest, type ReviewRequest, type FeedbackRequest, type FeedbackWorkflowRequest, type PauseRequest, type RevokeSourceRequest, type ExternalNoticeRequest, type GroupReviewRequest, type FollowUpActionRequest, type FollowUpWatchRequest, type SuggestionActionReply } from "../../shared/proactive/remote-contract.js";
14
+ import type { ProactiveLifecycle } from "./lifecycle.js";
15
+ import type { BotKey } from "../../shared/identity.js";
16
+ export declare const PROACTIVE_HOST: {
17
+ package: string;
18
+ face: "host";
19
+ schemas: never[];
20
+ readonly invocations: readonly import("@deepseek-ai/dsh-typert-protocol").InvocationDescriptor[];
21
+ model: {
22
+ services: never[];
23
+ events: never[];
24
+ objects: never[];
25
+ };
26
+ };
27
+ export declare class ProactiveRemote extends TypertRemoteService {
28
+ private readonly lifecycle;
29
+ constructor(ctx: Context, lifecycle: ProactiveLifecycle);
30
+ private get service();
31
+ setup(input: ProactiveSetupRequest): Promise<"unavailable" | "conflict" | "updated" | "unchanged" | "credential-missing">;
32
+ followUpSummary(input: Subject): Promise<{
33
+ state: "disabled";
34
+ configEpoch: string | null;
35
+ } | {
36
+ state: "unavailable";
37
+ configEpoch: string | null;
38
+ } | {
39
+ state: "ready";
40
+ configEpoch: string | null;
41
+ scopeOnly: boolean;
42
+ summary: {
43
+ policy: {
44
+ subject: {
45
+ kind: "bot";
46
+ bot: {
47
+ botId: string;
48
+ botCreatedAt: number;
49
+ };
50
+ } | {
51
+ kind: "group";
52
+ group: {
53
+ groupId: string;
54
+ groupCreatedAt: number;
55
+ };
56
+ };
57
+ revision: number;
58
+ pauseEpoch: number;
59
+ localEnabled: boolean;
60
+ legacyCi: "denied" | "inherit";
61
+ observationStart: number | null;
62
+ };
63
+ legacyCiActive: boolean;
64
+ rows: {
65
+ id: string;
66
+ decisionId: string;
67
+ subject: {
68
+ kind: "bot";
69
+ bot: {
70
+ botId: string;
71
+ botCreatedAt: number;
72
+ };
73
+ } | {
74
+ kind: "group";
75
+ group: {
76
+ groupId: string;
77
+ groupCreatedAt: number;
78
+ };
79
+ };
80
+ origin: {
81
+ kind: "work";
82
+ ticketId: string;
83
+ assignmentId: string;
84
+ } | {
85
+ kind: "delegate";
86
+ runId: string;
87
+ sessionId?: string | undefined;
88
+ } | {
89
+ kind: "native-subagent";
90
+ sessionId: string;
91
+ childSessionId: string;
92
+ turn: number;
93
+ } | {
94
+ kind: "team-task";
95
+ teamId: string;
96
+ taskId: string;
97
+ sessionId?: string | undefined;
98
+ } | {
99
+ kind: "group-turn";
100
+ turnId: string;
101
+ } | {
102
+ kind: "watch";
103
+ watchId: string;
104
+ };
105
+ revision: number;
106
+ observedAt: string;
107
+ title: string;
108
+ condition: {
109
+ kind: "needs-review";
110
+ } | {
111
+ kind: "failed";
112
+ reason?: string | undefined;
113
+ members?: {
114
+ deliveryId: string;
115
+ memberId: string;
116
+ reason: string;
117
+ }[] | undefined;
118
+ } | {
119
+ kind: "waiting-input";
120
+ wait: {
121
+ reason: string;
122
+ request: string;
123
+ deadlineAt?: string | undefined;
124
+ };
125
+ } | {
126
+ kind: "tracking";
127
+ completion?: string | undefined;
128
+ } | {
129
+ kind: "approval-pending";
130
+ completion: string;
131
+ wait?: {
132
+ reason: string;
133
+ request: string;
134
+ deadlineAt?: string | undefined;
135
+ } | undefined;
136
+ } | {
137
+ kind: "closed";
138
+ reason: "completed" | "cancelled" | "resolved";
139
+ };
140
+ state: "closed" | "stopped" | "open" | "ignored";
141
+ }[];
142
+ };
143
+ }>;
144
+ followUpPage(input: FollowUpPageRequest): Promise<{
145
+ rows: {
146
+ id: string;
147
+ decisionId: string;
148
+ subject: {
149
+ kind: "bot";
150
+ bot: {
151
+ botId: string;
152
+ botCreatedAt: number;
153
+ };
154
+ } | {
155
+ kind: "group";
156
+ group: {
157
+ groupId: string;
158
+ groupCreatedAt: number;
159
+ };
160
+ };
161
+ origin: {
162
+ kind: "work";
163
+ ticketId: string;
164
+ assignmentId: string;
165
+ } | {
166
+ kind: "delegate";
167
+ runId: string;
168
+ sessionId?: string | undefined;
169
+ } | {
170
+ kind: "native-subagent";
171
+ sessionId: string;
172
+ childSessionId: string;
173
+ turn: number;
174
+ } | {
175
+ kind: "team-task";
176
+ teamId: string;
177
+ taskId: string;
178
+ sessionId?: string | undefined;
179
+ } | {
180
+ kind: "group-turn";
181
+ turnId: string;
182
+ } | {
183
+ kind: "watch";
184
+ watchId: string;
185
+ };
186
+ revision: number;
187
+ observedAt: string;
188
+ title: string;
189
+ condition: {
190
+ kind: "needs-review";
191
+ } | {
192
+ kind: "failed";
193
+ reason?: string | undefined;
194
+ members?: {
195
+ deliveryId: string;
196
+ memberId: string;
197
+ reason: string;
198
+ }[] | undefined;
199
+ } | {
200
+ kind: "waiting-input";
201
+ wait: {
202
+ reason: string;
203
+ request: string;
204
+ deadlineAt?: string | undefined;
205
+ };
206
+ } | {
207
+ kind: "tracking";
208
+ completion?: string | undefined;
209
+ } | {
210
+ kind: "approval-pending";
211
+ completion: string;
212
+ wait?: {
213
+ reason: string;
214
+ request: string;
215
+ deadlineAt?: string | undefined;
216
+ } | undefined;
217
+ } | {
218
+ kind: "closed";
219
+ reason: "completed" | "cancelled" | "resolved";
220
+ };
221
+ state: "closed" | "stopped" | "open" | "ignored";
222
+ }[];
223
+ next?: string | undefined;
224
+ }>;
225
+ followUpPolicy(input: FollowUpPolicyRequest): Promise<{
226
+ kind: "receipt";
227
+ receipt: {
228
+ scope: "core";
229
+ status: "committed" | "duplicate";
230
+ commandId: string;
231
+ receiptId: string;
232
+ committedSeq: number;
233
+ stored: number;
234
+ };
235
+ } | {
236
+ kind: "unknown";
237
+ commandId: string;
238
+ } | {
239
+ kind: "rejected";
240
+ code: "unsupported" | "stale" | "forbidden" | "conflict" | "invalid";
241
+ }>;
242
+ followUpWatchCreate({ commandId, ...input }: FollowUpWatchRequest): Promise<SuggestionActionReply>;
243
+ followUpAction({ commandId, ...input }: FollowUpActionRequest): Promise<{
244
+ kind: "receipt";
245
+ receipt: {
246
+ scope: "core";
247
+ status: "committed" | "duplicate";
248
+ commandId: string;
249
+ receiptId: string;
250
+ committedSeq: number;
251
+ stored: number;
252
+ };
253
+ } | {
254
+ kind: "unknown";
255
+ commandId: string;
256
+ } | {
257
+ kind: "rejected";
258
+ code: "unsupported" | "stale" | "forbidden" | "conflict" | "invalid";
259
+ }>;
260
+ followUpGroupChoice(input: FollowUpGroupChoiceRequest): Promise<{
261
+ choice: {
262
+ predecessorTurnId: string;
263
+ predecessorTurnRevision: number;
264
+ membershipRevision: number;
265
+ modelRevision: number;
266
+ memberId: string;
267
+ bot: {
268
+ botId: string;
269
+ botCreatedAt: number;
270
+ };
271
+ botRevision: number;
272
+ modelSelection: {
273
+ provider: string;
274
+ model: string;
275
+ reasoningEffort?: string | undefined;
276
+ };
277
+ };
278
+ existing?: {
279
+ expectedPolicyRevision: number;
280
+ choice: {
281
+ predecessorTurnId: string;
282
+ predecessorTurnRevision: number;
283
+ membershipRevision: number;
284
+ modelRevision: number;
285
+ memberId: string;
286
+ bot: {
287
+ botId: string;
288
+ botCreatedAt: number;
289
+ };
290
+ botRevision: number;
291
+ modelSelection: {
292
+ provider: string;
293
+ model: string;
294
+ reasoningEffort?: string | undefined;
295
+ };
296
+ };
297
+ text: string;
298
+ approved: true;
299
+ subject: {
300
+ kind: "group";
301
+ group: {
302
+ groupId: string;
303
+ groupCreatedAt: number;
304
+ };
305
+ };
306
+ cardId: string;
307
+ expectedRevision: number;
308
+ commandId: string;
309
+ } | undefined;
310
+ canAbandon?: true | undefined;
311
+ }>;
312
+ followUpGroupAccept(input: FollowUpGroupAcceptRequest): Promise<{
313
+ kind: "started";
314
+ commandId: string;
315
+ turnId: string;
316
+ } | {
317
+ kind: "unknown";
318
+ commandId: string;
319
+ } | {
320
+ kind: "rejected";
321
+ code: "unavailable" | "stale" | "forbidden" | "conflict";
322
+ }>;
323
+ followUpGroupAbandon(input: FollowUpGroupAbandonRequest): Promise<{
324
+ kind: "receipt";
325
+ receipt: {
326
+ scope: "core";
327
+ status: "committed" | "duplicate";
328
+ commandId: string;
329
+ receiptId: string;
330
+ committedSeq: number;
331
+ stored: number;
332
+ };
333
+ } | {
334
+ kind: "unknown";
335
+ commandId: string;
336
+ } | {
337
+ kind: "rejected";
338
+ code: "unsupported" | "stale" | "forbidden" | "conflict" | "invalid";
339
+ }>;
340
+ private requireOwner;
341
+ forgetSource({ commandId, ...input }: BeginForget & {
342
+ commandId: string;
343
+ }): Promise<{
344
+ operationId: string;
345
+ sourceId: string;
346
+ generation: number;
347
+ phase: "blocked" | "fenced" | "purging" | "complete";
348
+ fencedAt: number;
349
+ updatedAt: number;
350
+ pendingAssignments: string[];
351
+ drainDigests: string[];
352
+ redacted: number;
353
+ purgePlans: {
354
+ id: string;
355
+ assignmentId: string;
356
+ sourceId: string;
357
+ generation: number;
358
+ namespaces: ("repair-artifacts" | "workspace-artifacts")[];
359
+ createdAt: number;
360
+ reason: "retention" | "source-forget";
361
+ }[];
362
+ boundaries: ("ordinary-bots-and-sessions-preserved" | "native-session-copies-preserved" | "adopted-memory-and-skills-preserved")[];
363
+ blockedReason?: "notification-copy-unknown" | "result-copy-unknown" | "group-copy-unknown" | undefined;
364
+ }>;
365
+ activityPage(input: ActivityRequest): Promise<{
366
+ collection: "work";
367
+ rows: {
368
+ assignmentId: string;
369
+ sourceId: string;
370
+ generation: number;
371
+ state: "unknown" | "claimed" | "failed" | "cancelled" | "pending" | "accepted" | "denied" | "sent" | "delivered" | "superseded";
372
+ ticketId: string;
373
+ expiresAt: string;
374
+ revision: number;
375
+ title: string;
376
+ target: {
377
+ bot: {
378
+ botId: string;
379
+ botCreatedAt: number;
380
+ };
381
+ botUpdatedAt: number;
382
+ provider: string;
383
+ model: string;
384
+ };
385
+ policyVersion: string;
386
+ decisionId: string;
387
+ triggerId: string;
388
+ evidenceDigest?: string | undefined;
389
+ sessionId?: string | undefined;
390
+ usage?: {
391
+ inputTokens: number;
392
+ outputTokens: number;
393
+ } | undefined;
394
+ admission?: "proactive" | "manual" | undefined;
395
+ taskKind?: "document-analysis" | "ci-analysis" | undefined;
396
+ groupReview?: {
397
+ group: {
398
+ groupId: string;
399
+ groupCreatedAt: number;
400
+ };
401
+ digest: string;
402
+ state: "unknown" | "claimed" | "linked";
403
+ turnId?: string | undefined;
404
+ evidenceDigest?: string | undefined;
405
+ followUp?: {
406
+ memberId: string;
407
+ bot: {
408
+ botId: string;
409
+ botCreatedAt: number;
410
+ };
411
+ botRevision: number;
412
+ membershipRevision: number;
413
+ thread: string;
414
+ sourceGeneration: number;
415
+ baselineAttempt: number;
416
+ baselineAt: string;
417
+ state: "unknown" | "claimed" | "armed" | "linked" | "denied";
418
+ modelSelection?: {
419
+ provider: string;
420
+ model: string;
421
+ reasoningEffort?: string | undefined;
422
+ } | undefined;
423
+ modelRevision?: number | undefined;
424
+ fact?: {
425
+ id: string;
426
+ attempt: number;
427
+ conclusion: "success" | "cancelled" | "failure";
428
+ text: string;
429
+ } | undefined;
430
+ turnId?: string | undefined;
431
+ budget?: {
432
+ reservationId: string;
433
+ totalTokens: number;
434
+ perCallTokens: number;
435
+ requestCount: 1 | 2;
436
+ deadlineAt: string;
437
+ } | undefined;
438
+ } | undefined;
439
+ budget?: {
440
+ reservationId: string;
441
+ totalTokens: number;
442
+ perCallTokens: number;
443
+ requestCount: 1 | 2;
444
+ deadlineAt: string;
445
+ } | undefined;
446
+ } | undefined;
447
+ reviewedAt?: string | undefined;
448
+ notice?: {
449
+ operationId: string;
450
+ state: "unknown" | "intent" | "recorded" | "suppressed" | "claim";
451
+ notBefore?: string | undefined;
452
+ expiresAt?: string | undefined;
453
+ batchId?: string | undefined;
454
+ policyId?: string | undefined;
455
+ policyRevision?: number | undefined;
456
+ } | undefined;
457
+ }[];
458
+ next?: string | undefined;
459
+ } | {
460
+ collection: "suggestions";
461
+ rows: {
462
+ id: string;
463
+ sourceId: string;
464
+ title: string;
465
+ observedAt: string;
466
+ expiresAt: string;
467
+ revision: number;
468
+ state: "open" | "observing";
469
+ policyVersion: string;
470
+ triggerId: string;
471
+ attempt: number;
472
+ scope: "inspect-ci-result";
473
+ adjusted?: boolean | undefined;
474
+ matchedResponsibilities?: {
475
+ id: string;
476
+ revision: number;
477
+ name: string;
478
+ action: "inspect-ci-result" | "repair-fixture" | "repair-external" | "repair-workspace";
479
+ actionScopeDigest?: string | undefined;
480
+ }[] | undefined;
481
+ sourceGeneration?: number | undefined;
482
+ context?: {
483
+ repository: string;
484
+ branch: string;
485
+ runId: string;
486
+ commit: string;
487
+ url: string;
488
+ } | undefined;
489
+ job?: string | undefined;
490
+ observeUntil?: string | undefined;
491
+ }[];
492
+ next?: string | undefined;
493
+ }>;
494
+ submitDocument(input: DocumentRequest): Promise<{
495
+ kind: "receipt";
496
+ receipt: {
497
+ scope: "core";
498
+ status: "committed" | "duplicate";
499
+ commandId: string;
500
+ receiptId: string;
501
+ committedSeq: number;
502
+ stored: number;
503
+ };
504
+ } | {
505
+ kind: "unknown";
506
+ commandId: string;
507
+ } | {
508
+ kind: "rejected";
509
+ code: "unsupported" | "stale" | "forbidden" | "conflict" | "invalid";
510
+ }>;
511
+ reconcileWork(input: WorkDetailRequest): Promise<{
512
+ ticketId: string;
513
+ assignmentId: string;
514
+ decisionId: string;
515
+ triggerId: string;
516
+ sourceId: string;
517
+ title: string;
518
+ target: {
519
+ bot: {
520
+ botId: string;
521
+ botCreatedAt: number;
522
+ };
523
+ botUpdatedAt: number;
524
+ provider: string;
525
+ model: string;
526
+ };
527
+ expiresAt: string;
528
+ policyVersion: string;
529
+ revision: number;
530
+ generation: number;
531
+ state: "unknown" | "claimed" | "failed" | "cancelled" | "pending" | "accepted" | "denied" | "sent" | "delivered" | "superseded";
532
+ wait?: {
533
+ reason: string;
534
+ request: string;
535
+ operationId: string;
536
+ recordedAt: string;
537
+ } | undefined;
538
+ continuation?: {
539
+ previousAssignmentId: string;
540
+ operationId: string;
541
+ requestedAt: string;
542
+ kind: "retry";
543
+ } | {
544
+ previousAssignmentId: string;
545
+ operationId: string;
546
+ requestedAt: string;
547
+ kind: "supplement";
548
+ wait: {
549
+ reason: string;
550
+ request: string;
551
+ operationId: string;
552
+ recordedAt: string;
553
+ };
554
+ text: string;
555
+ } | undefined;
556
+ methodTrial?: {
557
+ planDigest: string;
558
+ caseId: string;
559
+ arm: "parent" | "candidate" | "noop" | "negative";
560
+ name: string;
561
+ content: string;
562
+ methodHash: string;
563
+ inputHash: string;
564
+ } | undefined;
565
+ methodEvidence?: {
566
+ planDigest: string;
567
+ caseId: string;
568
+ arm: "parent" | "candidate" | "noop" | "negative";
569
+ name: string;
570
+ methodHash: string;
571
+ inputHash: string;
572
+ loadedBodyHash: string;
573
+ requestHash: string;
574
+ contextHash: string;
575
+ tools: "none";
576
+ permission: "read-only-no-egress";
577
+ } | undefined;
578
+ admission?: "proactive" | "manual" | undefined;
579
+ taskKind?: "document-analysis" | "ci-analysis" | undefined;
580
+ document?: {
581
+ kind: "document-analysis";
582
+ version: 1;
583
+ name: string;
584
+ sourceVersion: number;
585
+ content: string;
586
+ question: string;
587
+ acceptance: string;
588
+ } | undefined;
589
+ sourceDigest?: string | undefined;
590
+ taskCost?: {
591
+ attempts: number;
592
+ knownNativeTokens: number;
593
+ unknownMeasurements: number;
594
+ externalUnits: number;
595
+ truncated?: boolean | undefined;
596
+ } | undefined;
597
+ acceptance?: {
598
+ goal: string;
599
+ deliverables: string[];
600
+ checks: {
601
+ id: string;
602
+ title: string;
603
+ kind: "tool" | "human" | "both";
604
+ }[];
605
+ } | undefined;
606
+ autoRuleId?: string | undefined;
607
+ repair?: {
608
+ fixtureId: string;
609
+ specDigest: string;
610
+ executor: "native" | "external";
611
+ } | undefined;
612
+ workspaceRepair?: {
613
+ workspaceId: string;
614
+ specDigest: string;
615
+ baselineDigest: string;
616
+ executor: "command" | "native";
617
+ } | undefined;
618
+ groupRepair?: {
619
+ group: {
620
+ groupId: string;
621
+ groupCreatedAt: number;
622
+ };
623
+ rootSessionId: string;
624
+ membershipRevision: number;
625
+ supervisor: {
626
+ memberId: string;
627
+ bot: {
628
+ botId: string;
629
+ botCreatedAt: number;
630
+ };
631
+ botUpdatedAt: number;
632
+ modelSelection?: {
633
+ provider: string;
634
+ model: string;
635
+ reasoningEffort?: string | undefined;
636
+ } | undefined;
637
+ };
638
+ implementer: {
639
+ memberId: string;
640
+ bot: {
641
+ botId: string;
642
+ botCreatedAt: number;
643
+ };
644
+ botUpdatedAt: number;
645
+ modelSelection?: {
646
+ provider: string;
647
+ model: string;
648
+ reasoningEffort?: string | undefined;
649
+ } | undefined;
650
+ };
651
+ maxCalls: 3;
652
+ modelRevision?: number | undefined;
653
+ } | undefined;
654
+ taskLimits?: {
655
+ maxAttempts: number;
656
+ maxTokens: number;
657
+ deadlineAt: string;
658
+ } | undefined;
659
+ responsibility?: {
660
+ id: string;
661
+ revision: number;
662
+ grantId: string;
663
+ binding: {
664
+ bot: {
665
+ botId: string;
666
+ botCreatedAt: number;
667
+ };
668
+ source: {
669
+ id: string;
670
+ generation: number;
671
+ repository: string;
672
+ branch: string;
673
+ };
674
+ action: "inspect-ci-result" | "repair-fixture" | "repair-external" | "repair-workspace";
675
+ job: string;
676
+ attempt: number;
677
+ conclusion: "success" | "cancelled" | "failure";
678
+ observedAt: string;
679
+ target: {
680
+ bot: {
681
+ botId: string;
682
+ botCreatedAt: number;
683
+ };
684
+ botUpdatedAt: number;
685
+ provider: string;
686
+ model: string;
687
+ };
688
+ actionScopeDigest?: string | undefined;
689
+ };
690
+ } | undefined;
691
+ repairEvidence?: {
692
+ specDigest: string;
693
+ edit: {
694
+ field: string;
695
+ value: string | number | boolean;
696
+ };
697
+ baseline: {
698
+ tool: "dsh-bot/verify-json-fixture@1";
699
+ inputDigest: string;
700
+ exitCode: 1;
701
+ };
702
+ verification: {
703
+ tool: "dsh-bot/verify-json-fixture@1";
704
+ exitCode: 0 | 1;
705
+ inputDigest: string;
706
+ };
707
+ artifactDigest: string;
708
+ } | undefined;
709
+ workspaceEvidence?: {
710
+ version: 1;
711
+ specDigest: string;
712
+ baselineDigest: string;
713
+ artifactDigest: string;
714
+ manifestDigest: string;
715
+ diffDigest: string;
716
+ changedPaths: string[];
717
+ baseline: {
718
+ tool: "dsh-bot/verify-workspace@1";
719
+ verifierId: string;
720
+ commandDigest: string;
721
+ inputDigest: string;
722
+ exitCode: number | null;
723
+ timedOut: boolean;
724
+ stdoutDigest: string;
725
+ stderrDigest: string;
726
+ stdoutPreview: string;
727
+ stderrPreview: string;
728
+ outputTruncated: boolean;
729
+ };
730
+ verification: {
731
+ tool: "dsh-bot/verify-workspace@1";
732
+ verifierId: string;
733
+ commandDigest: string;
734
+ inputDigest: string;
735
+ exitCode: number | null;
736
+ timedOut: boolean;
737
+ stdoutDigest: string;
738
+ stderrDigest: string;
739
+ stdoutPreview: string;
740
+ stderrPreview: string;
741
+ outputTruncated: boolean;
742
+ };
743
+ } | undefined;
744
+ groupRepairEvidence?: {
745
+ version: 1;
746
+ grantDigest: string;
747
+ state: "unknown" | "completed" | "failed";
748
+ stages: {
749
+ phase: "plan" | "implement" | "review";
750
+ memberId: string;
751
+ turnId: string;
752
+ state: "unknown" | "running" | "completed" | "failed" | "cancelled";
753
+ deliveryId?: string | undefined;
754
+ sessionId?: string | undefined;
755
+ inputId?: string | undefined;
756
+ inputDigest?: string | undefined;
757
+ outputId?: string | undefined;
758
+ assistantId?: string | undefined;
759
+ outputDigest?: string | undefined;
760
+ }[];
761
+ plan?: {
762
+ goal: string;
763
+ collaborationReason: string;
764
+ implementation: string;
765
+ files: string[];
766
+ checks: string[];
767
+ } | undefined;
768
+ review?: {
769
+ verdict: "pass" | "fail";
770
+ summary: string;
771
+ checks: {
772
+ criterion: string;
773
+ status: "PASS" | "FAIL";
774
+ evidence: string;
775
+ }[];
776
+ } | undefined;
777
+ } | undefined;
778
+ commandEvidence?: {
779
+ version: 1;
780
+ executorId: string;
781
+ adapterVersion: string;
782
+ runId: string;
783
+ inputDigest: string;
784
+ artifactDigest: string;
785
+ cost: {
786
+ kind: "unknown";
787
+ } | {
788
+ kind: "reported";
789
+ units: number;
790
+ unit: string;
791
+ source: "executor";
792
+ };
793
+ events: {
794
+ seq: number;
795
+ state: "unknown" | "queued" | "running" | "completed" | "failed" | "cancelled";
796
+ at: string;
797
+ }[];
798
+ } | undefined;
799
+ recoveryRevision?: number | undefined;
800
+ usage?: {
801
+ inputTokens: number;
802
+ outputTokens: number;
803
+ } | undefined;
804
+ groupReview?: {
805
+ group: {
806
+ groupId: string;
807
+ groupCreatedAt: number;
808
+ };
809
+ digest: string;
810
+ state: "unknown" | "claimed" | "linked";
811
+ turnId?: string | undefined;
812
+ evidenceDigest?: string | undefined;
813
+ followUp?: {
814
+ memberId: string;
815
+ bot: {
816
+ botId: string;
817
+ botCreatedAt: number;
818
+ };
819
+ botRevision: number;
820
+ membershipRevision: number;
821
+ thread: string;
822
+ sourceGeneration: number;
823
+ baselineAttempt: number;
824
+ baselineAt: string;
825
+ state: "unknown" | "claimed" | "armed" | "linked" | "denied";
826
+ modelSelection?: {
827
+ provider: string;
828
+ model: string;
829
+ reasoningEffort?: string | undefined;
830
+ } | undefined;
831
+ modelRevision?: number | undefined;
832
+ fact?: {
833
+ id: string;
834
+ attempt: number;
835
+ conclusion: "success" | "cancelled" | "failure";
836
+ text: string;
837
+ } | undefined;
838
+ turnId?: string | undefined;
839
+ budget?: {
840
+ reservationId: string;
841
+ totalTokens: number;
842
+ perCallTokens: number;
843
+ requestCount: 1 | 2;
844
+ deadlineAt: string;
845
+ } | undefined;
846
+ } | undefined;
847
+ budget?: {
848
+ reservationId: string;
849
+ totalTokens: number;
850
+ perCallTokens: number;
851
+ requestCount: 1 | 2;
852
+ deadlineAt: string;
853
+ } | undefined;
854
+ } | undefined;
855
+ externalEvidence?: {
856
+ runId: string;
857
+ inputId: string;
858
+ outputDigest: string;
859
+ units: number;
860
+ unit: "fixture-operation";
861
+ } | undefined;
862
+ externalRunId?: string | undefined;
863
+ supersededBy?: string | undefined;
864
+ sessionId?: string | undefined;
865
+ inputId?: string | undefined;
866
+ evidence?: {
867
+ inputId: string;
868
+ assistantId: string;
869
+ turn: number;
870
+ outputDigest: string;
871
+ checks: ["source-match", "turn-completed", "transcript-flushed"];
872
+ } | undefined;
873
+ evidenceDigest?: string | undefined;
874
+ reviewer?: "owner" | undefined;
875
+ reviewedAt?: string | undefined;
876
+ reviewFeedback?: {
877
+ failures: {
878
+ criterion: string;
879
+ actual: string;
880
+ expected: string;
881
+ }[];
882
+ notes?: string | undefined;
883
+ } | undefined;
884
+ rework?: {
885
+ previousAssignmentId: string;
886
+ previousEvidenceDigest: string;
887
+ feedback: {
888
+ failures: {
889
+ criterion: string;
890
+ actual: string;
891
+ expected: string;
892
+ }[];
893
+ notes?: string | undefined;
894
+ };
895
+ requestedAt: string;
896
+ requestedBy: "owner";
897
+ previousRepairEvidence?: {
898
+ specDigest: string;
899
+ edit: {
900
+ field: string;
901
+ value: string | number | boolean;
902
+ };
903
+ baseline: {
904
+ tool: "dsh-bot/verify-json-fixture@1";
905
+ inputDigest: string;
906
+ exitCode: 1;
907
+ };
908
+ verification: {
909
+ tool: "dsh-bot/verify-json-fixture@1";
910
+ exitCode: 0 | 1;
911
+ inputDigest: string;
912
+ };
913
+ artifactDigest: string;
914
+ } | undefined;
915
+ previousWorkspaceEvidence?: {
916
+ version: 1;
917
+ specDigest: string;
918
+ baselineDigest: string;
919
+ artifactDigest: string;
920
+ manifestDigest: string;
921
+ diffDigest: string;
922
+ changedPaths: string[];
923
+ baseline: {
924
+ tool: "dsh-bot/verify-workspace@1";
925
+ verifierId: string;
926
+ commandDigest: string;
927
+ inputDigest: string;
928
+ exitCode: number | null;
929
+ timedOut: boolean;
930
+ stdoutDigest: string;
931
+ stderrDigest: string;
932
+ stdoutPreview: string;
933
+ stderrPreview: string;
934
+ outputTruncated: boolean;
935
+ };
936
+ verification: {
937
+ tool: "dsh-bot/verify-workspace@1";
938
+ verifierId: string;
939
+ commandDigest: string;
940
+ inputDigest: string;
941
+ exitCode: number | null;
942
+ timedOut: boolean;
943
+ stdoutDigest: string;
944
+ stderrDigest: string;
945
+ stdoutPreview: string;
946
+ stderrPreview: string;
947
+ outputTruncated: boolean;
948
+ };
949
+ } | undefined;
950
+ previousGroupRepairEvidence?: {
951
+ version: 1;
952
+ grantDigest: string;
953
+ state: "unknown" | "completed" | "failed";
954
+ stages: {
955
+ phase: "plan" | "implement" | "review";
956
+ memberId: string;
957
+ turnId: string;
958
+ state: "unknown" | "running" | "completed" | "failed" | "cancelled";
959
+ deliveryId?: string | undefined;
960
+ sessionId?: string | undefined;
961
+ inputId?: string | undefined;
962
+ inputDigest?: string | undefined;
963
+ outputId?: string | undefined;
964
+ assistantId?: string | undefined;
965
+ outputDigest?: string | undefined;
966
+ }[];
967
+ plan?: {
968
+ goal: string;
969
+ collaborationReason: string;
970
+ implementation: string;
971
+ files: string[];
972
+ checks: string[];
973
+ } | undefined;
974
+ review?: {
975
+ verdict: "pass" | "fail";
976
+ summary: string;
977
+ checks: {
978
+ criterion: string;
979
+ status: "PASS" | "FAIL";
980
+ evidence: string;
981
+ }[];
982
+ } | undefined;
983
+ } | undefined;
984
+ } | undefined;
985
+ notice?: {
986
+ operationId: string;
987
+ state: "unknown" | "intent" | "recorded" | "suppressed" | "claim";
988
+ notBefore?: string | undefined;
989
+ expiresAt?: string | undefined;
990
+ batchId?: string | undefined;
991
+ policyId?: string | undefined;
992
+ policyRevision?: number | undefined;
993
+ } | undefined;
994
+ }>;
995
+ workDetail(input: WorkDetailRequest): Promise<{
996
+ taskCost: {
997
+ truncated: boolean;
998
+ attempts: number;
999
+ knownNativeTokens: number;
1000
+ unknownMeasurements: number;
1001
+ externalUnits: number;
1002
+ };
1003
+ ticketId: string;
1004
+ assignmentId: string;
1005
+ decisionId: string;
1006
+ triggerId: string;
1007
+ sourceId: string;
1008
+ title: string;
1009
+ target: {
1010
+ bot: {
1011
+ botId: string;
1012
+ botCreatedAt: number;
1013
+ };
1014
+ botUpdatedAt: number;
1015
+ provider: string;
1016
+ model: string;
1017
+ };
1018
+ expiresAt: string;
1019
+ policyVersion: string;
1020
+ revision: number;
1021
+ generation: number;
1022
+ state: "unknown" | "claimed" | "failed" | "cancelled" | "pending" | "accepted" | "denied" | "sent" | "delivered" | "superseded";
1023
+ wait?: {
1024
+ reason: string;
1025
+ request: string;
1026
+ operationId: string;
1027
+ recordedAt: string;
1028
+ } | undefined;
1029
+ continuation?: {
1030
+ previousAssignmentId: string;
1031
+ operationId: string;
1032
+ requestedAt: string;
1033
+ kind: "retry";
1034
+ } | {
1035
+ previousAssignmentId: string;
1036
+ operationId: string;
1037
+ requestedAt: string;
1038
+ kind: "supplement";
1039
+ wait: {
1040
+ reason: string;
1041
+ request: string;
1042
+ operationId: string;
1043
+ recordedAt: string;
1044
+ };
1045
+ text: string;
1046
+ } | undefined;
1047
+ methodTrial?: {
1048
+ planDigest: string;
1049
+ caseId: string;
1050
+ arm: "parent" | "candidate" | "noop" | "negative";
1051
+ name: string;
1052
+ content: string;
1053
+ methodHash: string;
1054
+ inputHash: string;
1055
+ } | undefined;
1056
+ methodEvidence?: {
1057
+ planDigest: string;
1058
+ caseId: string;
1059
+ arm: "parent" | "candidate" | "noop" | "negative";
1060
+ name: string;
1061
+ methodHash: string;
1062
+ inputHash: string;
1063
+ loadedBodyHash: string;
1064
+ requestHash: string;
1065
+ contextHash: string;
1066
+ tools: "none";
1067
+ permission: "read-only-no-egress";
1068
+ } | undefined;
1069
+ admission?: "proactive" | "manual" | undefined;
1070
+ taskKind?: "document-analysis" | "ci-analysis" | undefined;
1071
+ document?: {
1072
+ kind: "document-analysis";
1073
+ version: 1;
1074
+ name: string;
1075
+ sourceVersion: number;
1076
+ content: string;
1077
+ question: string;
1078
+ acceptance: string;
1079
+ } | undefined;
1080
+ sourceDigest?: string | undefined;
1081
+ acceptance?: {
1082
+ goal: string;
1083
+ deliverables: string[];
1084
+ checks: {
1085
+ id: string;
1086
+ title: string;
1087
+ kind: "tool" | "human" | "both";
1088
+ }[];
1089
+ } | undefined;
1090
+ autoRuleId?: string | undefined;
1091
+ repair?: {
1092
+ fixtureId: string;
1093
+ specDigest: string;
1094
+ executor: "native" | "external";
1095
+ } | undefined;
1096
+ workspaceRepair?: {
1097
+ workspaceId: string;
1098
+ specDigest: string;
1099
+ baselineDigest: string;
1100
+ executor: "command" | "native";
1101
+ } | undefined;
1102
+ groupRepair?: {
1103
+ group: {
1104
+ groupId: string;
1105
+ groupCreatedAt: number;
1106
+ };
1107
+ rootSessionId: string;
1108
+ membershipRevision: number;
1109
+ supervisor: {
1110
+ memberId: string;
1111
+ bot: {
1112
+ botId: string;
1113
+ botCreatedAt: number;
1114
+ };
1115
+ botUpdatedAt: number;
1116
+ modelSelection?: {
1117
+ provider: string;
1118
+ model: string;
1119
+ reasoningEffort?: string | undefined;
1120
+ } | undefined;
1121
+ };
1122
+ implementer: {
1123
+ memberId: string;
1124
+ bot: {
1125
+ botId: string;
1126
+ botCreatedAt: number;
1127
+ };
1128
+ botUpdatedAt: number;
1129
+ modelSelection?: {
1130
+ provider: string;
1131
+ model: string;
1132
+ reasoningEffort?: string | undefined;
1133
+ } | undefined;
1134
+ };
1135
+ maxCalls: 3;
1136
+ modelRevision?: number | undefined;
1137
+ } | undefined;
1138
+ taskLimits?: {
1139
+ maxAttempts: number;
1140
+ maxTokens: number;
1141
+ deadlineAt: string;
1142
+ } | undefined;
1143
+ responsibility?: {
1144
+ id: string;
1145
+ revision: number;
1146
+ grantId: string;
1147
+ binding: {
1148
+ bot: {
1149
+ botId: string;
1150
+ botCreatedAt: number;
1151
+ };
1152
+ source: {
1153
+ id: string;
1154
+ generation: number;
1155
+ repository: string;
1156
+ branch: string;
1157
+ };
1158
+ action: "inspect-ci-result" | "repair-fixture" | "repair-external" | "repair-workspace";
1159
+ job: string;
1160
+ attempt: number;
1161
+ conclusion: "success" | "cancelled" | "failure";
1162
+ observedAt: string;
1163
+ target: {
1164
+ bot: {
1165
+ botId: string;
1166
+ botCreatedAt: number;
1167
+ };
1168
+ botUpdatedAt: number;
1169
+ provider: string;
1170
+ model: string;
1171
+ };
1172
+ actionScopeDigest?: string | undefined;
1173
+ };
1174
+ } | undefined;
1175
+ repairEvidence?: {
1176
+ specDigest: string;
1177
+ edit: {
1178
+ field: string;
1179
+ value: string | number | boolean;
1180
+ };
1181
+ baseline: {
1182
+ tool: "dsh-bot/verify-json-fixture@1";
1183
+ inputDigest: string;
1184
+ exitCode: 1;
1185
+ };
1186
+ verification: {
1187
+ tool: "dsh-bot/verify-json-fixture@1";
1188
+ exitCode: 0 | 1;
1189
+ inputDigest: string;
1190
+ };
1191
+ artifactDigest: string;
1192
+ } | undefined;
1193
+ workspaceEvidence?: {
1194
+ version: 1;
1195
+ specDigest: string;
1196
+ baselineDigest: string;
1197
+ artifactDigest: string;
1198
+ manifestDigest: string;
1199
+ diffDigest: string;
1200
+ changedPaths: string[];
1201
+ baseline: {
1202
+ tool: "dsh-bot/verify-workspace@1";
1203
+ verifierId: string;
1204
+ commandDigest: string;
1205
+ inputDigest: string;
1206
+ exitCode: number | null;
1207
+ timedOut: boolean;
1208
+ stdoutDigest: string;
1209
+ stderrDigest: string;
1210
+ stdoutPreview: string;
1211
+ stderrPreview: string;
1212
+ outputTruncated: boolean;
1213
+ };
1214
+ verification: {
1215
+ tool: "dsh-bot/verify-workspace@1";
1216
+ verifierId: string;
1217
+ commandDigest: string;
1218
+ inputDigest: string;
1219
+ exitCode: number | null;
1220
+ timedOut: boolean;
1221
+ stdoutDigest: string;
1222
+ stderrDigest: string;
1223
+ stdoutPreview: string;
1224
+ stderrPreview: string;
1225
+ outputTruncated: boolean;
1226
+ };
1227
+ } | undefined;
1228
+ groupRepairEvidence?: {
1229
+ version: 1;
1230
+ grantDigest: string;
1231
+ state: "unknown" | "completed" | "failed";
1232
+ stages: {
1233
+ phase: "plan" | "implement" | "review";
1234
+ memberId: string;
1235
+ turnId: string;
1236
+ state: "unknown" | "running" | "completed" | "failed" | "cancelled";
1237
+ deliveryId?: string | undefined;
1238
+ sessionId?: string | undefined;
1239
+ inputId?: string | undefined;
1240
+ inputDigest?: string | undefined;
1241
+ outputId?: string | undefined;
1242
+ assistantId?: string | undefined;
1243
+ outputDigest?: string | undefined;
1244
+ }[];
1245
+ plan?: {
1246
+ goal: string;
1247
+ collaborationReason: string;
1248
+ implementation: string;
1249
+ files: string[];
1250
+ checks: string[];
1251
+ } | undefined;
1252
+ review?: {
1253
+ verdict: "pass" | "fail";
1254
+ summary: string;
1255
+ checks: {
1256
+ criterion: string;
1257
+ status: "PASS" | "FAIL";
1258
+ evidence: string;
1259
+ }[];
1260
+ } | undefined;
1261
+ } | undefined;
1262
+ commandEvidence?: {
1263
+ version: 1;
1264
+ executorId: string;
1265
+ adapterVersion: string;
1266
+ runId: string;
1267
+ inputDigest: string;
1268
+ artifactDigest: string;
1269
+ cost: {
1270
+ kind: "unknown";
1271
+ } | {
1272
+ kind: "reported";
1273
+ units: number;
1274
+ unit: string;
1275
+ source: "executor";
1276
+ };
1277
+ events: {
1278
+ seq: number;
1279
+ state: "unknown" | "queued" | "running" | "completed" | "failed" | "cancelled";
1280
+ at: string;
1281
+ }[];
1282
+ } | undefined;
1283
+ recoveryRevision?: number | undefined;
1284
+ usage?: {
1285
+ inputTokens: number;
1286
+ outputTokens: number;
1287
+ } | undefined;
1288
+ groupReview?: {
1289
+ group: {
1290
+ groupId: string;
1291
+ groupCreatedAt: number;
1292
+ };
1293
+ digest: string;
1294
+ state: "unknown" | "claimed" | "linked";
1295
+ turnId?: string | undefined;
1296
+ evidenceDigest?: string | undefined;
1297
+ followUp?: {
1298
+ memberId: string;
1299
+ bot: {
1300
+ botId: string;
1301
+ botCreatedAt: number;
1302
+ };
1303
+ botRevision: number;
1304
+ membershipRevision: number;
1305
+ thread: string;
1306
+ sourceGeneration: number;
1307
+ baselineAttempt: number;
1308
+ baselineAt: string;
1309
+ state: "unknown" | "claimed" | "armed" | "linked" | "denied";
1310
+ modelSelection?: {
1311
+ provider: string;
1312
+ model: string;
1313
+ reasoningEffort?: string | undefined;
1314
+ } | undefined;
1315
+ modelRevision?: number | undefined;
1316
+ fact?: {
1317
+ id: string;
1318
+ attempt: number;
1319
+ conclusion: "success" | "cancelled" | "failure";
1320
+ text: string;
1321
+ } | undefined;
1322
+ turnId?: string | undefined;
1323
+ budget?: {
1324
+ reservationId: string;
1325
+ totalTokens: number;
1326
+ perCallTokens: number;
1327
+ requestCount: 1 | 2;
1328
+ deadlineAt: string;
1329
+ } | undefined;
1330
+ } | undefined;
1331
+ budget?: {
1332
+ reservationId: string;
1333
+ totalTokens: number;
1334
+ perCallTokens: number;
1335
+ requestCount: 1 | 2;
1336
+ deadlineAt: string;
1337
+ } | undefined;
1338
+ } | undefined;
1339
+ externalEvidence?: {
1340
+ runId: string;
1341
+ inputId: string;
1342
+ outputDigest: string;
1343
+ units: number;
1344
+ unit: "fixture-operation";
1345
+ } | undefined;
1346
+ externalRunId?: string | undefined;
1347
+ supersededBy?: string | undefined;
1348
+ sessionId?: string | undefined;
1349
+ inputId?: string | undefined;
1350
+ evidence?: {
1351
+ inputId: string;
1352
+ assistantId: string;
1353
+ turn: number;
1354
+ outputDigest: string;
1355
+ checks: ["source-match", "turn-completed", "transcript-flushed"];
1356
+ } | undefined;
1357
+ evidenceDigest?: string | undefined;
1358
+ reviewer?: "owner" | undefined;
1359
+ reviewedAt?: string | undefined;
1360
+ reviewFeedback?: {
1361
+ failures: {
1362
+ criterion: string;
1363
+ actual: string;
1364
+ expected: string;
1365
+ }[];
1366
+ notes?: string | undefined;
1367
+ } | undefined;
1368
+ rework?: {
1369
+ previousAssignmentId: string;
1370
+ previousEvidenceDigest: string;
1371
+ feedback: {
1372
+ failures: {
1373
+ criterion: string;
1374
+ actual: string;
1375
+ expected: string;
1376
+ }[];
1377
+ notes?: string | undefined;
1378
+ };
1379
+ requestedAt: string;
1380
+ requestedBy: "owner";
1381
+ previousRepairEvidence?: {
1382
+ specDigest: string;
1383
+ edit: {
1384
+ field: string;
1385
+ value: string | number | boolean;
1386
+ };
1387
+ baseline: {
1388
+ tool: "dsh-bot/verify-json-fixture@1";
1389
+ inputDigest: string;
1390
+ exitCode: 1;
1391
+ };
1392
+ verification: {
1393
+ tool: "dsh-bot/verify-json-fixture@1";
1394
+ exitCode: 0 | 1;
1395
+ inputDigest: string;
1396
+ };
1397
+ artifactDigest: string;
1398
+ } | undefined;
1399
+ previousWorkspaceEvidence?: {
1400
+ version: 1;
1401
+ specDigest: string;
1402
+ baselineDigest: string;
1403
+ artifactDigest: string;
1404
+ manifestDigest: string;
1405
+ diffDigest: string;
1406
+ changedPaths: string[];
1407
+ baseline: {
1408
+ tool: "dsh-bot/verify-workspace@1";
1409
+ verifierId: string;
1410
+ commandDigest: string;
1411
+ inputDigest: string;
1412
+ exitCode: number | null;
1413
+ timedOut: boolean;
1414
+ stdoutDigest: string;
1415
+ stderrDigest: string;
1416
+ stdoutPreview: string;
1417
+ stderrPreview: string;
1418
+ outputTruncated: boolean;
1419
+ };
1420
+ verification: {
1421
+ tool: "dsh-bot/verify-workspace@1";
1422
+ verifierId: string;
1423
+ commandDigest: string;
1424
+ inputDigest: string;
1425
+ exitCode: number | null;
1426
+ timedOut: boolean;
1427
+ stdoutDigest: string;
1428
+ stderrDigest: string;
1429
+ stdoutPreview: string;
1430
+ stderrPreview: string;
1431
+ outputTruncated: boolean;
1432
+ };
1433
+ } | undefined;
1434
+ previousGroupRepairEvidence?: {
1435
+ version: 1;
1436
+ grantDigest: string;
1437
+ state: "unknown" | "completed" | "failed";
1438
+ stages: {
1439
+ phase: "plan" | "implement" | "review";
1440
+ memberId: string;
1441
+ turnId: string;
1442
+ state: "unknown" | "running" | "completed" | "failed" | "cancelled";
1443
+ deliveryId?: string | undefined;
1444
+ sessionId?: string | undefined;
1445
+ inputId?: string | undefined;
1446
+ inputDigest?: string | undefined;
1447
+ outputId?: string | undefined;
1448
+ assistantId?: string | undefined;
1449
+ outputDigest?: string | undefined;
1450
+ }[];
1451
+ plan?: {
1452
+ goal: string;
1453
+ collaborationReason: string;
1454
+ implementation: string;
1455
+ files: string[];
1456
+ checks: string[];
1457
+ } | undefined;
1458
+ review?: {
1459
+ verdict: "pass" | "fail";
1460
+ summary: string;
1461
+ checks: {
1462
+ criterion: string;
1463
+ status: "PASS" | "FAIL";
1464
+ evidence: string;
1465
+ }[];
1466
+ } | undefined;
1467
+ } | undefined;
1468
+ } | undefined;
1469
+ notice?: {
1470
+ operationId: string;
1471
+ state: "unknown" | "intent" | "recorded" | "suppressed" | "claim";
1472
+ notBefore?: string | undefined;
1473
+ expiresAt?: string | undefined;
1474
+ batchId?: string | undefined;
1475
+ policyId?: string | undefined;
1476
+ policyRevision?: number | undefined;
1477
+ } | undefined;
1478
+ }>;
1479
+ responsibilities(owner: BotKey): Promise<{
1480
+ responsibility: {
1481
+ name: string;
1482
+ mode: "auto" | "off" | "suggest";
1483
+ source: {
1484
+ id: string;
1485
+ generation: number;
1486
+ repository: string;
1487
+ branch: string;
1488
+ };
1489
+ conditions: {
1490
+ jobs: string[];
1491
+ excludedJobs: string[];
1492
+ conclusions: ("success" | "cancelled" | "failure")[];
1493
+ minAttempt: number;
1494
+ maxAgeSeconds: number;
1495
+ };
1496
+ action: "inspect-ci-result" | "repair-fixture" | "repair-external" | "repair-workspace";
1497
+ target: {
1498
+ bot: {
1499
+ botId: string;
1500
+ botCreatedAt: number;
1501
+ };
1502
+ botUpdatedAt: number;
1503
+ } | {
1504
+ bot: {
1505
+ botId: string;
1506
+ botCreatedAt: number;
1507
+ };
1508
+ botUpdatedAt: number;
1509
+ provider: string;
1510
+ model: string;
1511
+ };
1512
+ acceptance: {
1513
+ goal: string;
1514
+ deliverables: string[];
1515
+ checks: {
1516
+ id: string;
1517
+ title: string;
1518
+ kind: "tool" | "human" | "both";
1519
+ }[];
1520
+ };
1521
+ limits: {
1522
+ dailyRequests: number;
1523
+ dailyTokens: number;
1524
+ taskTokens: number;
1525
+ taskAttempts: number;
1526
+ taskWallTimeMs: number;
1527
+ concurrency: number;
1528
+ };
1529
+ expiresAt: string;
1530
+ id: string;
1531
+ owner: {
1532
+ botId: string;
1533
+ botCreatedAt: number;
1534
+ };
1535
+ revision: number;
1536
+ denyEpoch: number;
1537
+ deleted: boolean;
1538
+ createdAt: number;
1539
+ updatedAt: number;
1540
+ actionScopeDigest?: string | undefined;
1541
+ };
1542
+ usage: {
1543
+ utcDay: string;
1544
+ resetsAt: string;
1545
+ requestsUsed: number;
1546
+ requestsAvailable: number;
1547
+ knownTokens: number;
1548
+ reservedTokens: number;
1549
+ unknownTokens: number;
1550
+ tokensAvailable: number;
1551
+ activeTasks: number;
1552
+ measurementComplete: boolean;
1553
+ clockSkew: boolean;
1554
+ };
1555
+ }[]>;
1556
+ changeResponsibility(input: ResponsibilityMutationRequest): Promise<{
1557
+ kind: "applied";
1558
+ responsibility: {
1559
+ name: string;
1560
+ mode: "auto" | "off" | "suggest";
1561
+ source: {
1562
+ id: string;
1563
+ generation: number;
1564
+ repository: string;
1565
+ branch: string;
1566
+ };
1567
+ conditions: {
1568
+ jobs: string[];
1569
+ excludedJobs: string[];
1570
+ conclusions: ("success" | "cancelled" | "failure")[];
1571
+ minAttempt: number;
1572
+ maxAgeSeconds: number;
1573
+ };
1574
+ action: "inspect-ci-result" | "repair-fixture" | "repair-external" | "repair-workspace";
1575
+ target: {
1576
+ bot: {
1577
+ botId: string;
1578
+ botCreatedAt: number;
1579
+ };
1580
+ botUpdatedAt: number;
1581
+ } | {
1582
+ bot: {
1583
+ botId: string;
1584
+ botCreatedAt: number;
1585
+ };
1586
+ botUpdatedAt: number;
1587
+ provider: string;
1588
+ model: string;
1589
+ };
1590
+ acceptance: {
1591
+ goal: string;
1592
+ deliverables: string[];
1593
+ checks: {
1594
+ id: string;
1595
+ title: string;
1596
+ kind: "tool" | "human" | "both";
1597
+ }[];
1598
+ };
1599
+ limits: {
1600
+ dailyRequests: number;
1601
+ dailyTokens: number;
1602
+ taskTokens: number;
1603
+ taskAttempts: number;
1604
+ taskWallTimeMs: number;
1605
+ concurrency: number;
1606
+ };
1607
+ expiresAt: string;
1608
+ id: string;
1609
+ owner: {
1610
+ botId: string;
1611
+ botCreatedAt: number;
1612
+ };
1613
+ revision: number;
1614
+ denyEpoch: number;
1615
+ deleted: boolean;
1616
+ createdAt: number;
1617
+ updatedAt: number;
1618
+ actionScopeDigest?: string | undefined;
1619
+ };
1620
+ } | {
1621
+ kind: "rejected";
1622
+ code: string;
1623
+ } | {
1624
+ kind: "unknown";
1625
+ }>;
1626
+ workHistory(input: WorkHistoryRequest): Promise<{
1627
+ versions: {
1628
+ ticketId: string;
1629
+ assignmentId: string;
1630
+ decisionId: string;
1631
+ triggerId: string;
1632
+ sourceId: string;
1633
+ title: string;
1634
+ target: {
1635
+ bot: {
1636
+ botId: string;
1637
+ botCreatedAt: number;
1638
+ };
1639
+ botUpdatedAt: number;
1640
+ provider: string;
1641
+ model: string;
1642
+ };
1643
+ expiresAt: string;
1644
+ policyVersion: string;
1645
+ revision: number;
1646
+ generation: number;
1647
+ state: "unknown" | "claimed" | "failed" | "cancelled" | "pending" | "accepted" | "denied" | "sent" | "delivered" | "superseded";
1648
+ wait?: {
1649
+ reason: string;
1650
+ request: string;
1651
+ operationId: string;
1652
+ recordedAt: string;
1653
+ } | undefined;
1654
+ continuation?: {
1655
+ previousAssignmentId: string;
1656
+ operationId: string;
1657
+ requestedAt: string;
1658
+ kind: "retry";
1659
+ } | {
1660
+ previousAssignmentId: string;
1661
+ operationId: string;
1662
+ requestedAt: string;
1663
+ kind: "supplement";
1664
+ wait: {
1665
+ reason: string;
1666
+ request: string;
1667
+ operationId: string;
1668
+ recordedAt: string;
1669
+ };
1670
+ text: string;
1671
+ } | undefined;
1672
+ methodTrial?: {
1673
+ planDigest: string;
1674
+ caseId: string;
1675
+ arm: "parent" | "candidate" | "noop" | "negative";
1676
+ name: string;
1677
+ content: string;
1678
+ methodHash: string;
1679
+ inputHash: string;
1680
+ } | undefined;
1681
+ methodEvidence?: {
1682
+ planDigest: string;
1683
+ caseId: string;
1684
+ arm: "parent" | "candidate" | "noop" | "negative";
1685
+ name: string;
1686
+ methodHash: string;
1687
+ inputHash: string;
1688
+ loadedBodyHash: string;
1689
+ requestHash: string;
1690
+ contextHash: string;
1691
+ tools: "none";
1692
+ permission: "read-only-no-egress";
1693
+ } | undefined;
1694
+ admission?: "proactive" | "manual" | undefined;
1695
+ taskKind?: "document-analysis" | "ci-analysis" | undefined;
1696
+ document?: {
1697
+ kind: "document-analysis";
1698
+ version: 1;
1699
+ name: string;
1700
+ sourceVersion: number;
1701
+ content: string;
1702
+ question: string;
1703
+ acceptance: string;
1704
+ } | undefined;
1705
+ sourceDigest?: string | undefined;
1706
+ taskCost?: {
1707
+ attempts: number;
1708
+ knownNativeTokens: number;
1709
+ unknownMeasurements: number;
1710
+ externalUnits: number;
1711
+ truncated?: boolean | undefined;
1712
+ } | undefined;
1713
+ acceptance?: {
1714
+ goal: string;
1715
+ deliverables: string[];
1716
+ checks: {
1717
+ id: string;
1718
+ title: string;
1719
+ kind: "tool" | "human" | "both";
1720
+ }[];
1721
+ } | undefined;
1722
+ autoRuleId?: string | undefined;
1723
+ repair?: {
1724
+ fixtureId: string;
1725
+ specDigest: string;
1726
+ executor: "native" | "external";
1727
+ } | undefined;
1728
+ workspaceRepair?: {
1729
+ workspaceId: string;
1730
+ specDigest: string;
1731
+ baselineDigest: string;
1732
+ executor: "command" | "native";
1733
+ } | undefined;
1734
+ groupRepair?: {
1735
+ group: {
1736
+ groupId: string;
1737
+ groupCreatedAt: number;
1738
+ };
1739
+ rootSessionId: string;
1740
+ membershipRevision: number;
1741
+ supervisor: {
1742
+ memberId: string;
1743
+ bot: {
1744
+ botId: string;
1745
+ botCreatedAt: number;
1746
+ };
1747
+ botUpdatedAt: number;
1748
+ modelSelection?: {
1749
+ provider: string;
1750
+ model: string;
1751
+ reasoningEffort?: string | undefined;
1752
+ } | undefined;
1753
+ };
1754
+ implementer: {
1755
+ memberId: string;
1756
+ bot: {
1757
+ botId: string;
1758
+ botCreatedAt: number;
1759
+ };
1760
+ botUpdatedAt: number;
1761
+ modelSelection?: {
1762
+ provider: string;
1763
+ model: string;
1764
+ reasoningEffort?: string | undefined;
1765
+ } | undefined;
1766
+ };
1767
+ maxCalls: 3;
1768
+ modelRevision?: number | undefined;
1769
+ } | undefined;
1770
+ taskLimits?: {
1771
+ maxAttempts: number;
1772
+ maxTokens: number;
1773
+ deadlineAt: string;
1774
+ } | undefined;
1775
+ responsibility?: {
1776
+ id: string;
1777
+ revision: number;
1778
+ grantId: string;
1779
+ binding: {
1780
+ bot: {
1781
+ botId: string;
1782
+ botCreatedAt: number;
1783
+ };
1784
+ source: {
1785
+ id: string;
1786
+ generation: number;
1787
+ repository: string;
1788
+ branch: string;
1789
+ };
1790
+ action: "inspect-ci-result" | "repair-fixture" | "repair-external" | "repair-workspace";
1791
+ job: string;
1792
+ attempt: number;
1793
+ conclusion: "success" | "cancelled" | "failure";
1794
+ observedAt: string;
1795
+ target: {
1796
+ bot: {
1797
+ botId: string;
1798
+ botCreatedAt: number;
1799
+ };
1800
+ botUpdatedAt: number;
1801
+ provider: string;
1802
+ model: string;
1803
+ };
1804
+ actionScopeDigest?: string | undefined;
1805
+ };
1806
+ } | undefined;
1807
+ repairEvidence?: {
1808
+ specDigest: string;
1809
+ edit: {
1810
+ field: string;
1811
+ value: string | number | boolean;
1812
+ };
1813
+ baseline: {
1814
+ tool: "dsh-bot/verify-json-fixture@1";
1815
+ inputDigest: string;
1816
+ exitCode: 1;
1817
+ };
1818
+ verification: {
1819
+ tool: "dsh-bot/verify-json-fixture@1";
1820
+ exitCode: 0 | 1;
1821
+ inputDigest: string;
1822
+ };
1823
+ artifactDigest: string;
1824
+ } | undefined;
1825
+ workspaceEvidence?: {
1826
+ version: 1;
1827
+ specDigest: string;
1828
+ baselineDigest: string;
1829
+ artifactDigest: string;
1830
+ manifestDigest: string;
1831
+ diffDigest: string;
1832
+ changedPaths: string[];
1833
+ baseline: {
1834
+ tool: "dsh-bot/verify-workspace@1";
1835
+ verifierId: string;
1836
+ commandDigest: string;
1837
+ inputDigest: string;
1838
+ exitCode: number | null;
1839
+ timedOut: boolean;
1840
+ stdoutDigest: string;
1841
+ stderrDigest: string;
1842
+ stdoutPreview: string;
1843
+ stderrPreview: string;
1844
+ outputTruncated: boolean;
1845
+ };
1846
+ verification: {
1847
+ tool: "dsh-bot/verify-workspace@1";
1848
+ verifierId: string;
1849
+ commandDigest: string;
1850
+ inputDigest: string;
1851
+ exitCode: number | null;
1852
+ timedOut: boolean;
1853
+ stdoutDigest: string;
1854
+ stderrDigest: string;
1855
+ stdoutPreview: string;
1856
+ stderrPreview: string;
1857
+ outputTruncated: boolean;
1858
+ };
1859
+ } | undefined;
1860
+ groupRepairEvidence?: {
1861
+ version: 1;
1862
+ grantDigest: string;
1863
+ state: "unknown" | "completed" | "failed";
1864
+ stages: {
1865
+ phase: "plan" | "implement" | "review";
1866
+ memberId: string;
1867
+ turnId: string;
1868
+ state: "unknown" | "running" | "completed" | "failed" | "cancelled";
1869
+ deliveryId?: string | undefined;
1870
+ sessionId?: string | undefined;
1871
+ inputId?: string | undefined;
1872
+ inputDigest?: string | undefined;
1873
+ outputId?: string | undefined;
1874
+ assistantId?: string | undefined;
1875
+ outputDigest?: string | undefined;
1876
+ }[];
1877
+ plan?: {
1878
+ goal: string;
1879
+ collaborationReason: string;
1880
+ implementation: string;
1881
+ files: string[];
1882
+ checks: string[];
1883
+ } | undefined;
1884
+ review?: {
1885
+ verdict: "pass" | "fail";
1886
+ summary: string;
1887
+ checks: {
1888
+ criterion: string;
1889
+ status: "PASS" | "FAIL";
1890
+ evidence: string;
1891
+ }[];
1892
+ } | undefined;
1893
+ } | undefined;
1894
+ commandEvidence?: {
1895
+ version: 1;
1896
+ executorId: string;
1897
+ adapterVersion: string;
1898
+ runId: string;
1899
+ inputDigest: string;
1900
+ artifactDigest: string;
1901
+ cost: {
1902
+ kind: "unknown";
1903
+ } | {
1904
+ kind: "reported";
1905
+ units: number;
1906
+ unit: string;
1907
+ source: "executor";
1908
+ };
1909
+ events: {
1910
+ seq: number;
1911
+ state: "unknown" | "queued" | "running" | "completed" | "failed" | "cancelled";
1912
+ at: string;
1913
+ }[];
1914
+ } | undefined;
1915
+ recoveryRevision?: number | undefined;
1916
+ usage?: {
1917
+ inputTokens: number;
1918
+ outputTokens: number;
1919
+ } | undefined;
1920
+ groupReview?: {
1921
+ group: {
1922
+ groupId: string;
1923
+ groupCreatedAt: number;
1924
+ };
1925
+ digest: string;
1926
+ state: "unknown" | "claimed" | "linked";
1927
+ turnId?: string | undefined;
1928
+ evidenceDigest?: string | undefined;
1929
+ followUp?: {
1930
+ memberId: string;
1931
+ bot: {
1932
+ botId: string;
1933
+ botCreatedAt: number;
1934
+ };
1935
+ botRevision: number;
1936
+ membershipRevision: number;
1937
+ thread: string;
1938
+ sourceGeneration: number;
1939
+ baselineAttempt: number;
1940
+ baselineAt: string;
1941
+ state: "unknown" | "claimed" | "armed" | "linked" | "denied";
1942
+ modelSelection?: {
1943
+ provider: string;
1944
+ model: string;
1945
+ reasoningEffort?: string | undefined;
1946
+ } | undefined;
1947
+ modelRevision?: number | undefined;
1948
+ fact?: {
1949
+ id: string;
1950
+ attempt: number;
1951
+ conclusion: "success" | "cancelled" | "failure";
1952
+ text: string;
1953
+ } | undefined;
1954
+ turnId?: string | undefined;
1955
+ budget?: {
1956
+ reservationId: string;
1957
+ totalTokens: number;
1958
+ perCallTokens: number;
1959
+ requestCount: 1 | 2;
1960
+ deadlineAt: string;
1961
+ } | undefined;
1962
+ } | undefined;
1963
+ budget?: {
1964
+ reservationId: string;
1965
+ totalTokens: number;
1966
+ perCallTokens: number;
1967
+ requestCount: 1 | 2;
1968
+ deadlineAt: string;
1969
+ } | undefined;
1970
+ } | undefined;
1971
+ externalEvidence?: {
1972
+ runId: string;
1973
+ inputId: string;
1974
+ outputDigest: string;
1975
+ units: number;
1976
+ unit: "fixture-operation";
1977
+ } | undefined;
1978
+ externalRunId?: string | undefined;
1979
+ supersededBy?: string | undefined;
1980
+ sessionId?: string | undefined;
1981
+ inputId?: string | undefined;
1982
+ evidence?: {
1983
+ inputId: string;
1984
+ assistantId: string;
1985
+ turn: number;
1986
+ outputDigest: string;
1987
+ checks: ["source-match", "turn-completed", "transcript-flushed"];
1988
+ } | undefined;
1989
+ evidenceDigest?: string | undefined;
1990
+ reviewer?: "owner" | undefined;
1991
+ reviewedAt?: string | undefined;
1992
+ reviewFeedback?: {
1993
+ failures: {
1994
+ criterion: string;
1995
+ actual: string;
1996
+ expected: string;
1997
+ }[];
1998
+ notes?: string | undefined;
1999
+ } | undefined;
2000
+ rework?: {
2001
+ previousAssignmentId: string;
2002
+ previousEvidenceDigest: string;
2003
+ feedback: {
2004
+ failures: {
2005
+ criterion: string;
2006
+ actual: string;
2007
+ expected: string;
2008
+ }[];
2009
+ notes?: string | undefined;
2010
+ };
2011
+ requestedAt: string;
2012
+ requestedBy: "owner";
2013
+ previousRepairEvidence?: {
2014
+ specDigest: string;
2015
+ edit: {
2016
+ field: string;
2017
+ value: string | number | boolean;
2018
+ };
2019
+ baseline: {
2020
+ tool: "dsh-bot/verify-json-fixture@1";
2021
+ inputDigest: string;
2022
+ exitCode: 1;
2023
+ };
2024
+ verification: {
2025
+ tool: "dsh-bot/verify-json-fixture@1";
2026
+ exitCode: 0 | 1;
2027
+ inputDigest: string;
2028
+ };
2029
+ artifactDigest: string;
2030
+ } | undefined;
2031
+ previousWorkspaceEvidence?: {
2032
+ version: 1;
2033
+ specDigest: string;
2034
+ baselineDigest: string;
2035
+ artifactDigest: string;
2036
+ manifestDigest: string;
2037
+ diffDigest: string;
2038
+ changedPaths: string[];
2039
+ baseline: {
2040
+ tool: "dsh-bot/verify-workspace@1";
2041
+ verifierId: string;
2042
+ commandDigest: string;
2043
+ inputDigest: string;
2044
+ exitCode: number | null;
2045
+ timedOut: boolean;
2046
+ stdoutDigest: string;
2047
+ stderrDigest: string;
2048
+ stdoutPreview: string;
2049
+ stderrPreview: string;
2050
+ outputTruncated: boolean;
2051
+ };
2052
+ verification: {
2053
+ tool: "dsh-bot/verify-workspace@1";
2054
+ verifierId: string;
2055
+ commandDigest: string;
2056
+ inputDigest: string;
2057
+ exitCode: number | null;
2058
+ timedOut: boolean;
2059
+ stdoutDigest: string;
2060
+ stderrDigest: string;
2061
+ stdoutPreview: string;
2062
+ stderrPreview: string;
2063
+ outputTruncated: boolean;
2064
+ };
2065
+ } | undefined;
2066
+ previousGroupRepairEvidence?: {
2067
+ version: 1;
2068
+ grantDigest: string;
2069
+ state: "unknown" | "completed" | "failed";
2070
+ stages: {
2071
+ phase: "plan" | "implement" | "review";
2072
+ memberId: string;
2073
+ turnId: string;
2074
+ state: "unknown" | "running" | "completed" | "failed" | "cancelled";
2075
+ deliveryId?: string | undefined;
2076
+ sessionId?: string | undefined;
2077
+ inputId?: string | undefined;
2078
+ inputDigest?: string | undefined;
2079
+ outputId?: string | undefined;
2080
+ assistantId?: string | undefined;
2081
+ outputDigest?: string | undefined;
2082
+ }[];
2083
+ plan?: {
2084
+ goal: string;
2085
+ collaborationReason: string;
2086
+ implementation: string;
2087
+ files: string[];
2088
+ checks: string[];
2089
+ } | undefined;
2090
+ review?: {
2091
+ verdict: "pass" | "fail";
2092
+ summary: string;
2093
+ checks: {
2094
+ criterion: string;
2095
+ status: "PASS" | "FAIL";
2096
+ evidence: string;
2097
+ }[];
2098
+ } | undefined;
2099
+ } | undefined;
2100
+ } | undefined;
2101
+ notice?: {
2102
+ operationId: string;
2103
+ state: "unknown" | "intent" | "recorded" | "suppressed" | "claim";
2104
+ notBefore?: string | undefined;
2105
+ expiresAt?: string | undefined;
2106
+ batchId?: string | undefined;
2107
+ policyId?: string | undefined;
2108
+ policyRevision?: number | undefined;
2109
+ } | undefined;
2110
+ }[];
2111
+ nextBeforeGeneration?: number | undefined;
2112
+ }>;
2113
+ workspaceReview(input: WorkspaceReviewRequest): Promise<{
2114
+ assignmentId: string;
2115
+ evidenceDigest: string;
2116
+ manifests: {
2117
+ before: {
2118
+ path: string;
2119
+ digest: string;
2120
+ bytes: number;
2121
+ editable: boolean;
2122
+ }[];
2123
+ after: {
2124
+ path: string;
2125
+ digest: string;
2126
+ bytes: number;
2127
+ editable: boolean;
2128
+ }[];
2129
+ };
2130
+ files: {
2131
+ path: string;
2132
+ editable: boolean;
2133
+ before: string;
2134
+ after: string;
2135
+ }[];
2136
+ diff: {
2137
+ path: string;
2138
+ before: string;
2139
+ after: string;
2140
+ }[];
2141
+ checks: {
2142
+ baseline: {
2143
+ tool: "dsh-bot/verify-workspace@1";
2144
+ verifierId: string;
2145
+ commandDigest: string;
2146
+ inputDigest: string;
2147
+ exitCode: number | null;
2148
+ timedOut: boolean;
2149
+ stdoutDigest: string;
2150
+ stderrDigest: string;
2151
+ stdoutPreview: string;
2152
+ stderrPreview: string;
2153
+ outputTruncated: boolean;
2154
+ };
2155
+ verification: {
2156
+ tool: "dsh-bot/verify-workspace@1";
2157
+ verifierId: string;
2158
+ commandDigest: string;
2159
+ inputDigest: string;
2160
+ exitCode: number | null;
2161
+ timedOut: boolean;
2162
+ stdoutDigest: string;
2163
+ stderrDigest: string;
2164
+ stdoutPreview: string;
2165
+ stderrPreview: string;
2166
+ outputTruncated: boolean;
2167
+ };
2168
+ };
2169
+ logs: {
2170
+ baseline: {
2171
+ stdout: string;
2172
+ stderr: string;
2173
+ };
2174
+ verification: {
2175
+ stdout: string;
2176
+ stderr: string;
2177
+ };
2178
+ };
2179
+ }>;
2180
+ botSuggestions(owner: BotKey): Promise<{
2181
+ id: string;
2182
+ sourceId: string;
2183
+ title: string;
2184
+ observedAt: string;
2185
+ expiresAt: string;
2186
+ revision: number;
2187
+ state: "open" | "observing";
2188
+ policyVersion: string;
2189
+ triggerId: string;
2190
+ attempt: number;
2191
+ scope: "inspect-ci-result";
2192
+ adjusted?: boolean | undefined;
2193
+ matchedResponsibilities?: {
2194
+ id: string;
2195
+ revision: number;
2196
+ name: string;
2197
+ action: "inspect-ci-result" | "repair-fixture" | "repair-external" | "repair-workspace";
2198
+ actionScopeDigest?: string | undefined;
2199
+ }[] | undefined;
2200
+ sourceGeneration?: number | undefined;
2201
+ context?: {
2202
+ repository: string;
2203
+ branch: string;
2204
+ runId: string;
2205
+ commit: string;
2206
+ url: string;
2207
+ } | undefined;
2208
+ job?: string | undefined;
2209
+ observeUntil?: string | undefined;
2210
+ }[]>;
2211
+ adjustSuggestion({ commandId, ...input }: {
2212
+ commandId: string;
2213
+ decisionId: string;
2214
+ expectedRevision: number;
2215
+ title: string;
2216
+ }): Promise<{
2217
+ kind: "receipt";
2218
+ receipt: {
2219
+ scope: "core";
2220
+ status: "committed" | "duplicate";
2221
+ commandId: string;
2222
+ receiptId: string;
2223
+ committedSeq: number;
2224
+ stored: number;
2225
+ };
2226
+ } | {
2227
+ kind: "unknown";
2228
+ commandId: string;
2229
+ } | {
2230
+ kind: "rejected";
2231
+ code: "unsupported" | "stale" | "forbidden" | "conflict" | "invalid";
2232
+ }>;
2233
+ listSuggestions(): Promise<{
2234
+ id: string;
2235
+ sourceId: string;
2236
+ title: string;
2237
+ observedAt: string;
2238
+ expiresAt: string;
2239
+ revision: number;
2240
+ state: "open" | "observing";
2241
+ policyVersion: string;
2242
+ triggerId: string;
2243
+ attempt: number;
2244
+ scope: "inspect-ci-result";
2245
+ adjusted?: boolean | undefined;
2246
+ matchedResponsibilities?: {
2247
+ id: string;
2248
+ revision: number;
2249
+ name: string;
2250
+ action: "inspect-ci-result" | "repair-fixture" | "repair-external" | "repair-workspace";
2251
+ actionScopeDigest?: string | undefined;
2252
+ }[] | undefined;
2253
+ sourceGeneration?: number | undefined;
2254
+ context?: {
2255
+ repository: string;
2256
+ branch: string;
2257
+ runId: string;
2258
+ commit: string;
2259
+ url: string;
2260
+ } | undefined;
2261
+ job?: string | undefined;
2262
+ observeUntil?: string | undefined;
2263
+ }[]>;
2264
+ changeSuggestion({ commandId, ...input }: SuggestionRequest): Promise<{
2265
+ kind: "receipt";
2266
+ receipt: {
2267
+ scope: "core";
2268
+ status: "committed" | "duplicate";
2269
+ commandId: string;
2270
+ receiptId: string;
2271
+ committedSeq: number;
2272
+ stored: number;
2273
+ };
2274
+ } | {
2275
+ kind: "unknown";
2276
+ commandId: string;
2277
+ } | {
2278
+ kind: "rejected";
2279
+ code: "unsupported" | "stale" | "forbidden" | "conflict" | "invalid";
2280
+ }>;
2281
+ accept({ commandId, ...input }: AcceptRequest): Promise<{
2282
+ kind: "receipt";
2283
+ receipt: {
2284
+ scope: "core";
2285
+ status: "committed" | "duplicate";
2286
+ commandId: string;
2287
+ receiptId: string;
2288
+ committedSeq: number;
2289
+ stored: number;
2290
+ };
2291
+ } | {
2292
+ kind: "unknown";
2293
+ commandId: string;
2294
+ } | {
2295
+ kind: "rejected";
2296
+ code: "unsupported" | "stale" | "forbidden" | "conflict" | "invalid";
2297
+ }>;
2298
+ cancel({ commandId, ...input }: CancelRequest): Promise<{
2299
+ kind: "receipt";
2300
+ receipt: {
2301
+ scope: "core";
2302
+ status: "committed" | "duplicate";
2303
+ commandId: string;
2304
+ receiptId: string;
2305
+ committedSeq: number;
2306
+ stored: number;
2307
+ };
2308
+ } | {
2309
+ kind: "unknown";
2310
+ commandId: string;
2311
+ } | {
2312
+ kind: "rejected";
2313
+ code: "unsupported" | "stale" | "forbidden" | "conflict" | "invalid";
2314
+ }>;
2315
+ pause({ commandId, ...input }: PauseRequest): Promise<{
2316
+ kind: "receipt";
2317
+ receipt: {
2318
+ scope: "core";
2319
+ status: "committed" | "duplicate";
2320
+ commandId: string;
2321
+ receiptId: string;
2322
+ committedSeq: number;
2323
+ stored: number;
2324
+ };
2325
+ } | {
2326
+ kind: "unknown";
2327
+ commandId: string;
2328
+ } | {
2329
+ kind: "rejected";
2330
+ code: "unsupported" | "stale" | "forbidden" | "conflict" | "invalid";
2331
+ }>;
2332
+ revokeSource(input: RevokeSourceRequest): Promise<{
2333
+ kind: "receipt";
2334
+ receipt: {
2335
+ scope: "core";
2336
+ status: "committed" | "duplicate";
2337
+ commandId: string;
2338
+ receiptId: string;
2339
+ committedSeq: number;
2340
+ stored: number;
2341
+ };
2342
+ } | {
2343
+ kind: "unknown";
2344
+ commandId: string;
2345
+ } | {
2346
+ kind: "rejected";
2347
+ code: "unsupported" | "stale" | "forbidden" | "conflict" | "invalid";
2348
+ }>;
2349
+ feedback({ commandId, input }: FeedbackRequest): Promise<{
2350
+ kind: "receipt";
2351
+ receipt: {
2352
+ scope: "core";
2353
+ status: "committed" | "duplicate";
2354
+ commandId: string;
2355
+ receiptId: string;
2356
+ committedSeq: number;
2357
+ stored: number;
2358
+ };
2359
+ } | {
2360
+ kind: "unknown";
2361
+ commandId: string;
2362
+ } | {
2363
+ kind: "rejected";
2364
+ code: "unsupported" | "stale" | "forbidden" | "conflict" | "invalid";
2365
+ }>;
2366
+ exportMethod(input: ExportMethodRequest): Promise<{
2367
+ manifest: {
2368
+ format: "dsh-bot-method/v1";
2369
+ name: string;
2370
+ content: string;
2371
+ parentHash: string | null;
2372
+ contract: {
2373
+ input: string;
2374
+ output: string;
2375
+ scope: string;
2376
+ forbidden: string;
2377
+ };
2378
+ dependencies: [{
2379
+ name: "dsh";
2380
+ version: "0.2.1-rc.2";
2381
+ }];
2382
+ examples: {
2383
+ input: string;
2384
+ expected: string;
2385
+ }[];
2386
+ evaluation: "unverified";
2387
+ publicContentConfirmed: true;
2388
+ reportedEvidence?: {
2389
+ judge: "exact-json-v1";
2390
+ planDigest: string;
2391
+ outcome: "inconclusive" | "improved" | "no-benefit";
2392
+ model: string;
2393
+ runDigests: string[];
2394
+ } | undefined;
2395
+ };
2396
+ digest: string;
2397
+ }>;
2398
+ importMethod(input: ImportMethodRequest): Promise<{
2399
+ kind: "receipt";
2400
+ receipt: {
2401
+ scope: "core";
2402
+ status: "committed" | "duplicate";
2403
+ commandId: string;
2404
+ receiptId: string;
2405
+ committedSeq: number;
2406
+ stored: number;
2407
+ };
2408
+ } | {
2409
+ kind: "unknown";
2410
+ commandId: string;
2411
+ } | {
2412
+ kind: "rejected";
2413
+ code: "unsupported" | "stale" | "forbidden" | "conflict" | "invalid";
2414
+ }>;
2415
+ feedbackOverview(input: {
2416
+ cursor?: string;
2417
+ }): Promise<{
2418
+ candidates: {
2419
+ id: string;
2420
+ revision: number;
2421
+ createdAt: number;
2422
+ datasetDigests: string[];
2423
+ proposal: {
2424
+ kind: "rework";
2425
+ reason: string;
2426
+ ticketId: string;
2427
+ expectedWorkRevision: number;
2428
+ origin: {
2429
+ bot: {
2430
+ botId: string;
2431
+ botCreatedAt: number;
2432
+ };
2433
+ taskId: string;
2434
+ evidenceDigest: string;
2435
+ trace?: {
2436
+ assignmentId: string;
2437
+ generation: number;
2438
+ provider: string;
2439
+ model: string;
2440
+ turnIds: string[];
2441
+ deliveryIds: string[];
2442
+ sessionId?: string | undefined;
2443
+ groupDigest?: string | undefined;
2444
+ membershipRevision?: number | undefined;
2445
+ modelRevision?: number | undefined;
2446
+ artifactDigest?: string | undefined;
2447
+ } | undefined;
2448
+ source?: {
2449
+ id: string;
2450
+ generation: number;
2451
+ } | undefined;
2452
+ };
2453
+ attribution?: {
2454
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
2455
+ basis: "owner-hypothesis";
2456
+ problem: string;
2457
+ reproducer: string;
2458
+ scope: string;
2459
+ counterexample: string;
2460
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
2461
+ } | undefined;
2462
+ } | {
2463
+ kind: "false-positive";
2464
+ change: {
2465
+ sourceId: string;
2466
+ sourceGeneration: number;
2467
+ job: string;
2468
+ attempt: number;
2469
+ mode: "suppress";
2470
+ };
2471
+ origin: {
2472
+ bot: {
2473
+ botId: string;
2474
+ botCreatedAt: number;
2475
+ };
2476
+ taskId: string;
2477
+ evidenceDigest: string;
2478
+ trace?: {
2479
+ assignmentId: string;
2480
+ generation: number;
2481
+ provider: string;
2482
+ model: string;
2483
+ turnIds: string[];
2484
+ deliveryIds: string[];
2485
+ sessionId?: string | undefined;
2486
+ groupDigest?: string | undefined;
2487
+ membershipRevision?: number | undefined;
2488
+ modelRevision?: number | undefined;
2489
+ artifactDigest?: string | undefined;
2490
+ } | undefined;
2491
+ source?: {
2492
+ id: string;
2493
+ generation: number;
2494
+ } | undefined;
2495
+ };
2496
+ reason: string;
2497
+ attribution?: {
2498
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
2499
+ basis: "owner-hypothesis";
2500
+ problem: string;
2501
+ reproducer: string;
2502
+ scope: string;
2503
+ counterexample: string;
2504
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
2505
+ } | undefined;
2506
+ } | {
2507
+ kind: "false-negative";
2508
+ change: {
2509
+ sourceId: string;
2510
+ sourceGeneration: number;
2511
+ job: string;
2512
+ attempt: number;
2513
+ mode: "include";
2514
+ };
2515
+ origin: {
2516
+ bot: {
2517
+ botId: string;
2518
+ botCreatedAt: number;
2519
+ };
2520
+ taskId: string;
2521
+ evidenceDigest: string;
2522
+ trace?: {
2523
+ assignmentId: string;
2524
+ generation: number;
2525
+ provider: string;
2526
+ model: string;
2527
+ turnIds: string[];
2528
+ deliveryIds: string[];
2529
+ sessionId?: string | undefined;
2530
+ groupDigest?: string | undefined;
2531
+ membershipRevision?: number | undefined;
2532
+ modelRevision?: number | undefined;
2533
+ artifactDigest?: string | undefined;
2534
+ } | undefined;
2535
+ source?: {
2536
+ id: string;
2537
+ generation: number;
2538
+ } | undefined;
2539
+ };
2540
+ reason: string;
2541
+ attribution?: {
2542
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
2543
+ basis: "owner-hypothesis";
2544
+ problem: string;
2545
+ reproducer: string;
2546
+ scope: string;
2547
+ counterexample: string;
2548
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
2549
+ } | undefined;
2550
+ } | {
2551
+ kind: "attention";
2552
+ change: {
2553
+ sourceId: string;
2554
+ sourceGeneration: number;
2555
+ job: string;
2556
+ attempt: number;
2557
+ mode: "mute";
2558
+ };
2559
+ origin: {
2560
+ bot: {
2561
+ botId: string;
2562
+ botCreatedAt: number;
2563
+ };
2564
+ taskId: string;
2565
+ evidenceDigest: string;
2566
+ trace?: {
2567
+ assignmentId: string;
2568
+ generation: number;
2569
+ provider: string;
2570
+ model: string;
2571
+ turnIds: string[];
2572
+ deliveryIds: string[];
2573
+ sessionId?: string | undefined;
2574
+ groupDigest?: string | undefined;
2575
+ membershipRevision?: number | undefined;
2576
+ modelRevision?: number | undefined;
2577
+ artifactDigest?: string | undefined;
2578
+ } | undefined;
2579
+ source?: {
2580
+ id: string;
2581
+ generation: number;
2582
+ } | undefined;
2583
+ };
2584
+ reason: string;
2585
+ attribution?: {
2586
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
2587
+ basis: "owner-hypothesis";
2588
+ problem: string;
2589
+ reproducer: string;
2590
+ scope: string;
2591
+ counterexample: string;
2592
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
2593
+ } | undefined;
2594
+ } | {
2595
+ kind: "preference";
2596
+ content: string;
2597
+ origin: {
2598
+ bot: {
2599
+ botId: string;
2600
+ botCreatedAt: number;
2601
+ };
2602
+ taskId: string;
2603
+ evidenceDigest: string;
2604
+ trace?: {
2605
+ assignmentId: string;
2606
+ generation: number;
2607
+ provider: string;
2608
+ model: string;
2609
+ turnIds: string[];
2610
+ deliveryIds: string[];
2611
+ sessionId?: string | undefined;
2612
+ groupDigest?: string | undefined;
2613
+ membershipRevision?: number | undefined;
2614
+ modelRevision?: number | undefined;
2615
+ artifactDigest?: string | undefined;
2616
+ } | undefined;
2617
+ source?: {
2618
+ id: string;
2619
+ generation: number;
2620
+ } | undefined;
2621
+ };
2622
+ reason: string;
2623
+ attribution?: {
2624
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
2625
+ basis: "owner-hypothesis";
2626
+ problem: string;
2627
+ reproducer: string;
2628
+ scope: string;
2629
+ counterexample: string;
2630
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
2631
+ } | undefined;
2632
+ } | {
2633
+ kind: "skill";
2634
+ name: string;
2635
+ before: string | null;
2636
+ beforeHash: string | null;
2637
+ content: string;
2638
+ origin: {
2639
+ bot: {
2640
+ botId: string;
2641
+ botCreatedAt: number;
2642
+ };
2643
+ taskId: string;
2644
+ evidenceDigest: string;
2645
+ trace?: {
2646
+ assignmentId: string;
2647
+ generation: number;
2648
+ provider: string;
2649
+ model: string;
2650
+ turnIds: string[];
2651
+ deliveryIds: string[];
2652
+ sessionId?: string | undefined;
2653
+ groupDigest?: string | undefined;
2654
+ membershipRevision?: number | undefined;
2655
+ modelRevision?: number | undefined;
2656
+ artifactDigest?: string | undefined;
2657
+ } | undefined;
2658
+ source?: {
2659
+ id: string;
2660
+ generation: number;
2661
+ } | undefined;
2662
+ };
2663
+ reason: string;
2664
+ importedMethod?: {
2665
+ format: "dsh-bot-method/v1";
2666
+ contract: {
2667
+ input: string;
2668
+ output: string;
2669
+ scope: string;
2670
+ forbidden: string;
2671
+ };
2672
+ dependencies: [{
2673
+ name: "dsh";
2674
+ version: "0.2.1-rc.2";
2675
+ }];
2676
+ examples: {
2677
+ input: string;
2678
+ expected: string;
2679
+ }[];
2680
+ evaluation: "unverified";
2681
+ publicContentConfirmed: true;
2682
+ packageDigest: string;
2683
+ reportedEvidence?: {
2684
+ judge: "exact-json-v1";
2685
+ planDigest: string;
2686
+ outcome: "inconclusive" | "improved" | "no-benefit";
2687
+ model: string;
2688
+ runDigests: string[];
2689
+ } | undefined;
2690
+ } | undefined;
2691
+ attribution?: {
2692
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
2693
+ basis: "owner-hypothesis";
2694
+ problem: string;
2695
+ reproducer: string;
2696
+ scope: string;
2697
+ counterexample: string;
2698
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
2699
+ } | undefined;
2700
+ } | {
2701
+ kind: "permission";
2702
+ setting: "model" | "tools" | "proactive" | "notifications" | "workspace";
2703
+ origin: {
2704
+ bot: {
2705
+ botId: string;
2706
+ botCreatedAt: number;
2707
+ };
2708
+ taskId: string;
2709
+ evidenceDigest: string;
2710
+ trace?: {
2711
+ assignmentId: string;
2712
+ generation: number;
2713
+ provider: string;
2714
+ model: string;
2715
+ turnIds: string[];
2716
+ deliveryIds: string[];
2717
+ sessionId?: string | undefined;
2718
+ groupDigest?: string | undefined;
2719
+ membershipRevision?: number | undefined;
2720
+ modelRevision?: number | undefined;
2721
+ artifactDigest?: string | undefined;
2722
+ } | undefined;
2723
+ source?: {
2724
+ id: string;
2725
+ generation: number;
2726
+ } | undefined;
2727
+ };
2728
+ reason: string;
2729
+ attribution?: {
2730
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
2731
+ basis: "owner-hypothesis";
2732
+ problem: string;
2733
+ reproducer: string;
2734
+ scope: string;
2735
+ counterexample: string;
2736
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
2737
+ } | undefined;
2738
+ };
2739
+ proposalDigest: string;
2740
+ state: "unknown" | "candidate" | "revoked" | "rejected" | "eligible" | "adopted" | "applying" | "revoking";
2741
+ methodEvaluation?: {
2742
+ plan: {
2743
+ version: 1;
2744
+ judge: "exact-json-v1";
2745
+ provider: string;
2746
+ model: string;
2747
+ maxCalls: number;
2748
+ maxTokensPerCall: number;
2749
+ cases: {
2750
+ id: string;
2751
+ split: "development" | "validation" | "final";
2752
+ scenario: "personal" | "background" | "handoff";
2753
+ input: string;
2754
+ expected: Record<string, string | number | boolean | null>;
2755
+ }[];
2756
+ };
2757
+ digest: string;
2758
+ candidateHash: string;
2759
+ parentHash: string | null;
2760
+ registeredAt: number;
2761
+ state: "unknown" | "running" | "completed" | "registered";
2762
+ receipts: {
2763
+ caseId: string;
2764
+ arm: "parent" | "candidate" | "noop" | "negative";
2765
+ ticketId: string;
2766
+ assignmentId: string;
2767
+ state: "completed" | "inconclusive";
2768
+ passed?: boolean | undefined;
2769
+ evidenceDigest?: string | undefined;
2770
+ method?: {
2771
+ planDigest: string;
2772
+ caseId: string;
2773
+ arm: "parent" | "candidate" | "noop" | "negative";
2774
+ name: string;
2775
+ methodHash: string;
2776
+ inputHash: string;
2777
+ loadedBodyHash: string;
2778
+ requestHash: string;
2779
+ contextHash: string;
2780
+ tools: "none";
2781
+ permission: "read-only-no-egress";
2782
+ } | undefined;
2783
+ }[];
2784
+ operationId?: string | undefined;
2785
+ outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
2786
+ } | undefined;
2787
+ failureKey?: string | undefined;
2788
+ evaluation?: {
2789
+ datasetId: string;
2790
+ datasetVersion: number;
2791
+ digest: string;
2792
+ maxAddedMisses: number;
2793
+ evaluatedAt: number;
2794
+ batches: {
2795
+ id: string;
2796
+ samples: number;
2797
+ disputed: number;
2798
+ beforeFalsePositives: number;
2799
+ afterFalsePositives: number;
2800
+ beforeMissed: number;
2801
+ afterMissed: number;
2802
+ beforeUnwantedNotices: number;
2803
+ afterUnwantedNotices: number;
2804
+ beforeMissedNotices: number;
2805
+ afterMissedNotices: number;
2806
+ }[];
2807
+ passed: boolean;
2808
+ } | undefined;
2809
+ application?: {
2810
+ kind: "memory";
2811
+ memoryId: string;
2812
+ versionId: string;
2813
+ } | {
2814
+ kind: "skill";
2815
+ hash: string | null;
2816
+ } | {
2817
+ kind: "rework";
2818
+ ticketId: string;
2819
+ assignmentId: string;
2820
+ } | undefined;
2821
+ operationId?: string | undefined;
2822
+ unknownAction?: "revoke" | "adopt" | undefined;
2823
+ bodyPurgedAt?: number | undefined;
2824
+ }[];
2825
+ datasets: {
2826
+ id: string;
2827
+ version: number;
2828
+ owner: {
2829
+ botId: string;
2830
+ botCreatedAt: number;
2831
+ };
2832
+ digest: string;
2833
+ frozenAt: number;
2834
+ samples: number;
2835
+ disputed: number;
2836
+ exceptions: number;
2837
+ }[];
2838
+ nextCursor?: string | undefined;
2839
+ }>;
2840
+ feedbackCandidate(input: {
2841
+ id: string;
2842
+ }): Promise<{
2843
+ id: string;
2844
+ revision: number;
2845
+ createdAt: number;
2846
+ datasetDigests: string[];
2847
+ proposal: {
2848
+ kind: "rework";
2849
+ reason: string;
2850
+ ticketId: string;
2851
+ expectedWorkRevision: number;
2852
+ origin: {
2853
+ bot: {
2854
+ botId: string;
2855
+ botCreatedAt: number;
2856
+ };
2857
+ taskId: string;
2858
+ evidenceDigest: string;
2859
+ trace?: {
2860
+ assignmentId: string;
2861
+ generation: number;
2862
+ provider: string;
2863
+ model: string;
2864
+ turnIds: string[];
2865
+ deliveryIds: string[];
2866
+ sessionId?: string | undefined;
2867
+ groupDigest?: string | undefined;
2868
+ membershipRevision?: number | undefined;
2869
+ modelRevision?: number | undefined;
2870
+ artifactDigest?: string | undefined;
2871
+ } | undefined;
2872
+ source?: {
2873
+ id: string;
2874
+ generation: number;
2875
+ } | undefined;
2876
+ };
2877
+ attribution?: {
2878
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
2879
+ basis: "owner-hypothesis";
2880
+ problem: string;
2881
+ reproducer: string;
2882
+ scope: string;
2883
+ counterexample: string;
2884
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
2885
+ } | undefined;
2886
+ } | {
2887
+ kind: "false-positive";
2888
+ change: {
2889
+ sourceId: string;
2890
+ sourceGeneration: number;
2891
+ job: string;
2892
+ attempt: number;
2893
+ mode: "suppress";
2894
+ };
2895
+ origin: {
2896
+ bot: {
2897
+ botId: string;
2898
+ botCreatedAt: number;
2899
+ };
2900
+ taskId: string;
2901
+ evidenceDigest: string;
2902
+ trace?: {
2903
+ assignmentId: string;
2904
+ generation: number;
2905
+ provider: string;
2906
+ model: string;
2907
+ turnIds: string[];
2908
+ deliveryIds: string[];
2909
+ sessionId?: string | undefined;
2910
+ groupDigest?: string | undefined;
2911
+ membershipRevision?: number | undefined;
2912
+ modelRevision?: number | undefined;
2913
+ artifactDigest?: string | undefined;
2914
+ } | undefined;
2915
+ source?: {
2916
+ id: string;
2917
+ generation: number;
2918
+ } | undefined;
2919
+ };
2920
+ reason: string;
2921
+ attribution?: {
2922
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
2923
+ basis: "owner-hypothesis";
2924
+ problem: string;
2925
+ reproducer: string;
2926
+ scope: string;
2927
+ counterexample: string;
2928
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
2929
+ } | undefined;
2930
+ } | {
2931
+ kind: "false-negative";
2932
+ change: {
2933
+ sourceId: string;
2934
+ sourceGeneration: number;
2935
+ job: string;
2936
+ attempt: number;
2937
+ mode: "include";
2938
+ };
2939
+ origin: {
2940
+ bot: {
2941
+ botId: string;
2942
+ botCreatedAt: number;
2943
+ };
2944
+ taskId: string;
2945
+ evidenceDigest: string;
2946
+ trace?: {
2947
+ assignmentId: string;
2948
+ generation: number;
2949
+ provider: string;
2950
+ model: string;
2951
+ turnIds: string[];
2952
+ deliveryIds: string[];
2953
+ sessionId?: string | undefined;
2954
+ groupDigest?: string | undefined;
2955
+ membershipRevision?: number | undefined;
2956
+ modelRevision?: number | undefined;
2957
+ artifactDigest?: string | undefined;
2958
+ } | undefined;
2959
+ source?: {
2960
+ id: string;
2961
+ generation: number;
2962
+ } | undefined;
2963
+ };
2964
+ reason: string;
2965
+ attribution?: {
2966
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
2967
+ basis: "owner-hypothesis";
2968
+ problem: string;
2969
+ reproducer: string;
2970
+ scope: string;
2971
+ counterexample: string;
2972
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
2973
+ } | undefined;
2974
+ } | {
2975
+ kind: "attention";
2976
+ change: {
2977
+ sourceId: string;
2978
+ sourceGeneration: number;
2979
+ job: string;
2980
+ attempt: number;
2981
+ mode: "mute";
2982
+ };
2983
+ origin: {
2984
+ bot: {
2985
+ botId: string;
2986
+ botCreatedAt: number;
2987
+ };
2988
+ taskId: string;
2989
+ evidenceDigest: string;
2990
+ trace?: {
2991
+ assignmentId: string;
2992
+ generation: number;
2993
+ provider: string;
2994
+ model: string;
2995
+ turnIds: string[];
2996
+ deliveryIds: string[];
2997
+ sessionId?: string | undefined;
2998
+ groupDigest?: string | undefined;
2999
+ membershipRevision?: number | undefined;
3000
+ modelRevision?: number | undefined;
3001
+ artifactDigest?: string | undefined;
3002
+ } | undefined;
3003
+ source?: {
3004
+ id: string;
3005
+ generation: number;
3006
+ } | undefined;
3007
+ };
3008
+ reason: string;
3009
+ attribution?: {
3010
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
3011
+ basis: "owner-hypothesis";
3012
+ problem: string;
3013
+ reproducer: string;
3014
+ scope: string;
3015
+ counterexample: string;
3016
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
3017
+ } | undefined;
3018
+ } | {
3019
+ kind: "preference";
3020
+ content: string;
3021
+ origin: {
3022
+ bot: {
3023
+ botId: string;
3024
+ botCreatedAt: number;
3025
+ };
3026
+ taskId: string;
3027
+ evidenceDigest: string;
3028
+ trace?: {
3029
+ assignmentId: string;
3030
+ generation: number;
3031
+ provider: string;
3032
+ model: string;
3033
+ turnIds: string[];
3034
+ deliveryIds: string[];
3035
+ sessionId?: string | undefined;
3036
+ groupDigest?: string | undefined;
3037
+ membershipRevision?: number | undefined;
3038
+ modelRevision?: number | undefined;
3039
+ artifactDigest?: string | undefined;
3040
+ } | undefined;
3041
+ source?: {
3042
+ id: string;
3043
+ generation: number;
3044
+ } | undefined;
3045
+ };
3046
+ reason: string;
3047
+ attribution?: {
3048
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
3049
+ basis: "owner-hypothesis";
3050
+ problem: string;
3051
+ reproducer: string;
3052
+ scope: string;
3053
+ counterexample: string;
3054
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
3055
+ } | undefined;
3056
+ } | {
3057
+ kind: "skill";
3058
+ name: string;
3059
+ before: string | null;
3060
+ beforeHash: string | null;
3061
+ content: string;
3062
+ origin: {
3063
+ bot: {
3064
+ botId: string;
3065
+ botCreatedAt: number;
3066
+ };
3067
+ taskId: string;
3068
+ evidenceDigest: string;
3069
+ trace?: {
3070
+ assignmentId: string;
3071
+ generation: number;
3072
+ provider: string;
3073
+ model: string;
3074
+ turnIds: string[];
3075
+ deliveryIds: string[];
3076
+ sessionId?: string | undefined;
3077
+ groupDigest?: string | undefined;
3078
+ membershipRevision?: number | undefined;
3079
+ modelRevision?: number | undefined;
3080
+ artifactDigest?: string | undefined;
3081
+ } | undefined;
3082
+ source?: {
3083
+ id: string;
3084
+ generation: number;
3085
+ } | undefined;
3086
+ };
3087
+ reason: string;
3088
+ importedMethod?: {
3089
+ format: "dsh-bot-method/v1";
3090
+ contract: {
3091
+ input: string;
3092
+ output: string;
3093
+ scope: string;
3094
+ forbidden: string;
3095
+ };
3096
+ dependencies: [{
3097
+ name: "dsh";
3098
+ version: "0.2.1-rc.2";
3099
+ }];
3100
+ examples: {
3101
+ input: string;
3102
+ expected: string;
3103
+ }[];
3104
+ evaluation: "unverified";
3105
+ publicContentConfirmed: true;
3106
+ packageDigest: string;
3107
+ reportedEvidence?: {
3108
+ judge: "exact-json-v1";
3109
+ planDigest: string;
3110
+ outcome: "inconclusive" | "improved" | "no-benefit";
3111
+ model: string;
3112
+ runDigests: string[];
3113
+ } | undefined;
3114
+ } | undefined;
3115
+ attribution?: {
3116
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
3117
+ basis: "owner-hypothesis";
3118
+ problem: string;
3119
+ reproducer: string;
3120
+ scope: string;
3121
+ counterexample: string;
3122
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
3123
+ } | undefined;
3124
+ } | {
3125
+ kind: "permission";
3126
+ setting: "model" | "tools" | "proactive" | "notifications" | "workspace";
3127
+ origin: {
3128
+ bot: {
3129
+ botId: string;
3130
+ botCreatedAt: number;
3131
+ };
3132
+ taskId: string;
3133
+ evidenceDigest: string;
3134
+ trace?: {
3135
+ assignmentId: string;
3136
+ generation: number;
3137
+ provider: string;
3138
+ model: string;
3139
+ turnIds: string[];
3140
+ deliveryIds: string[];
3141
+ sessionId?: string | undefined;
3142
+ groupDigest?: string | undefined;
3143
+ membershipRevision?: number | undefined;
3144
+ modelRevision?: number | undefined;
3145
+ artifactDigest?: string | undefined;
3146
+ } | undefined;
3147
+ source?: {
3148
+ id: string;
3149
+ generation: number;
3150
+ } | undefined;
3151
+ };
3152
+ reason: string;
3153
+ attribution?: {
3154
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
3155
+ basis: "owner-hypothesis";
3156
+ problem: string;
3157
+ reproducer: string;
3158
+ scope: string;
3159
+ counterexample: string;
3160
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
3161
+ } | undefined;
3162
+ };
3163
+ proposalDigest: string;
3164
+ state: "unknown" | "candidate" | "revoked" | "rejected" | "eligible" | "adopted" | "applying" | "revoking";
3165
+ methodEvaluation?: {
3166
+ plan: {
3167
+ version: 1;
3168
+ judge: "exact-json-v1";
3169
+ provider: string;
3170
+ model: string;
3171
+ maxCalls: number;
3172
+ maxTokensPerCall: number;
3173
+ cases: {
3174
+ id: string;
3175
+ split: "development" | "validation" | "final";
3176
+ scenario: "personal" | "background" | "handoff";
3177
+ input: string;
3178
+ expected: Record<string, string | number | boolean | null>;
3179
+ }[];
3180
+ };
3181
+ digest: string;
3182
+ candidateHash: string;
3183
+ parentHash: string | null;
3184
+ registeredAt: number;
3185
+ state: "unknown" | "running" | "completed" | "registered";
3186
+ receipts: {
3187
+ caseId: string;
3188
+ arm: "parent" | "candidate" | "noop" | "negative";
3189
+ ticketId: string;
3190
+ assignmentId: string;
3191
+ state: "completed" | "inconclusive";
3192
+ passed?: boolean | undefined;
3193
+ evidenceDigest?: string | undefined;
3194
+ method?: {
3195
+ planDigest: string;
3196
+ caseId: string;
3197
+ arm: "parent" | "candidate" | "noop" | "negative";
3198
+ name: string;
3199
+ methodHash: string;
3200
+ inputHash: string;
3201
+ loadedBodyHash: string;
3202
+ requestHash: string;
3203
+ contextHash: string;
3204
+ tools: "none";
3205
+ permission: "read-only-no-egress";
3206
+ } | undefined;
3207
+ }[];
3208
+ operationId?: string | undefined;
3209
+ outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
3210
+ } | undefined;
3211
+ failureKey?: string | undefined;
3212
+ evaluation?: {
3213
+ datasetId: string;
3214
+ datasetVersion: number;
3215
+ digest: string;
3216
+ maxAddedMisses: number;
3217
+ evaluatedAt: number;
3218
+ batches: {
3219
+ id: string;
3220
+ samples: number;
3221
+ disputed: number;
3222
+ beforeFalsePositives: number;
3223
+ afterFalsePositives: number;
3224
+ beforeMissed: number;
3225
+ afterMissed: number;
3226
+ beforeUnwantedNotices: number;
3227
+ afterUnwantedNotices: number;
3228
+ beforeMissedNotices: number;
3229
+ afterMissedNotices: number;
3230
+ }[];
3231
+ passed: boolean;
3232
+ } | undefined;
3233
+ application?: {
3234
+ kind: "memory";
3235
+ memoryId: string;
3236
+ versionId: string;
3237
+ } | {
3238
+ kind: "skill";
3239
+ hash: string | null;
3240
+ } | {
3241
+ kind: "rework";
3242
+ ticketId: string;
3243
+ assignmentId: string;
3244
+ } | undefined;
3245
+ operationId?: string | undefined;
3246
+ unknownAction?: "revoke" | "adopt" | undefined;
3247
+ bodyPurgedAt?: number | undefined;
3248
+ } | null>;
3249
+ feedbackHistory(input: {
3250
+ id: string;
3251
+ afterRevision?: number;
3252
+ }): Promise<{
3253
+ rows: {
3254
+ id: string;
3255
+ revision: number;
3256
+ createdAt: number;
3257
+ datasetDigests: string[];
3258
+ proposal: {
3259
+ kind: "rework";
3260
+ reason: string;
3261
+ ticketId: string;
3262
+ expectedWorkRevision: number;
3263
+ origin: {
3264
+ bot: {
3265
+ botId: string;
3266
+ botCreatedAt: number;
3267
+ };
3268
+ taskId: string;
3269
+ evidenceDigest: string;
3270
+ trace?: {
3271
+ assignmentId: string;
3272
+ generation: number;
3273
+ provider: string;
3274
+ model: string;
3275
+ turnIds: string[];
3276
+ deliveryIds: string[];
3277
+ sessionId?: string | undefined;
3278
+ groupDigest?: string | undefined;
3279
+ membershipRevision?: number | undefined;
3280
+ modelRevision?: number | undefined;
3281
+ artifactDigest?: string | undefined;
3282
+ } | undefined;
3283
+ source?: {
3284
+ id: string;
3285
+ generation: number;
3286
+ } | undefined;
3287
+ };
3288
+ attribution?: {
3289
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
3290
+ basis: "owner-hypothesis";
3291
+ problem: string;
3292
+ reproducer: string;
3293
+ scope: string;
3294
+ counterexample: string;
3295
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
3296
+ } | undefined;
3297
+ } | {
3298
+ kind: "false-positive";
3299
+ change: {
3300
+ sourceId: string;
3301
+ sourceGeneration: number;
3302
+ job: string;
3303
+ attempt: number;
3304
+ mode: "suppress";
3305
+ };
3306
+ origin: {
3307
+ bot: {
3308
+ botId: string;
3309
+ botCreatedAt: number;
3310
+ };
3311
+ taskId: string;
3312
+ evidenceDigest: string;
3313
+ trace?: {
3314
+ assignmentId: string;
3315
+ generation: number;
3316
+ provider: string;
3317
+ model: string;
3318
+ turnIds: string[];
3319
+ deliveryIds: string[];
3320
+ sessionId?: string | undefined;
3321
+ groupDigest?: string | undefined;
3322
+ membershipRevision?: number | undefined;
3323
+ modelRevision?: number | undefined;
3324
+ artifactDigest?: string | undefined;
3325
+ } | undefined;
3326
+ source?: {
3327
+ id: string;
3328
+ generation: number;
3329
+ } | undefined;
3330
+ };
3331
+ reason: string;
3332
+ attribution?: {
3333
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
3334
+ basis: "owner-hypothesis";
3335
+ problem: string;
3336
+ reproducer: string;
3337
+ scope: string;
3338
+ counterexample: string;
3339
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
3340
+ } | undefined;
3341
+ } | {
3342
+ kind: "false-negative";
3343
+ change: {
3344
+ sourceId: string;
3345
+ sourceGeneration: number;
3346
+ job: string;
3347
+ attempt: number;
3348
+ mode: "include";
3349
+ };
3350
+ origin: {
3351
+ bot: {
3352
+ botId: string;
3353
+ botCreatedAt: number;
3354
+ };
3355
+ taskId: string;
3356
+ evidenceDigest: string;
3357
+ trace?: {
3358
+ assignmentId: string;
3359
+ generation: number;
3360
+ provider: string;
3361
+ model: string;
3362
+ turnIds: string[];
3363
+ deliveryIds: string[];
3364
+ sessionId?: string | undefined;
3365
+ groupDigest?: string | undefined;
3366
+ membershipRevision?: number | undefined;
3367
+ modelRevision?: number | undefined;
3368
+ artifactDigest?: string | undefined;
3369
+ } | undefined;
3370
+ source?: {
3371
+ id: string;
3372
+ generation: number;
3373
+ } | undefined;
3374
+ };
3375
+ reason: string;
3376
+ attribution?: {
3377
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
3378
+ basis: "owner-hypothesis";
3379
+ problem: string;
3380
+ reproducer: string;
3381
+ scope: string;
3382
+ counterexample: string;
3383
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
3384
+ } | undefined;
3385
+ } | {
3386
+ kind: "attention";
3387
+ change: {
3388
+ sourceId: string;
3389
+ sourceGeneration: number;
3390
+ job: string;
3391
+ attempt: number;
3392
+ mode: "mute";
3393
+ };
3394
+ origin: {
3395
+ bot: {
3396
+ botId: string;
3397
+ botCreatedAt: number;
3398
+ };
3399
+ taskId: string;
3400
+ evidenceDigest: string;
3401
+ trace?: {
3402
+ assignmentId: string;
3403
+ generation: number;
3404
+ provider: string;
3405
+ model: string;
3406
+ turnIds: string[];
3407
+ deliveryIds: string[];
3408
+ sessionId?: string | undefined;
3409
+ groupDigest?: string | undefined;
3410
+ membershipRevision?: number | undefined;
3411
+ modelRevision?: number | undefined;
3412
+ artifactDigest?: string | undefined;
3413
+ } | undefined;
3414
+ source?: {
3415
+ id: string;
3416
+ generation: number;
3417
+ } | undefined;
3418
+ };
3419
+ reason: string;
3420
+ attribution?: {
3421
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
3422
+ basis: "owner-hypothesis";
3423
+ problem: string;
3424
+ reproducer: string;
3425
+ scope: string;
3426
+ counterexample: string;
3427
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
3428
+ } | undefined;
3429
+ } | {
3430
+ kind: "preference";
3431
+ content: string;
3432
+ origin: {
3433
+ bot: {
3434
+ botId: string;
3435
+ botCreatedAt: number;
3436
+ };
3437
+ taskId: string;
3438
+ evidenceDigest: string;
3439
+ trace?: {
3440
+ assignmentId: string;
3441
+ generation: number;
3442
+ provider: string;
3443
+ model: string;
3444
+ turnIds: string[];
3445
+ deliveryIds: string[];
3446
+ sessionId?: string | undefined;
3447
+ groupDigest?: string | undefined;
3448
+ membershipRevision?: number | undefined;
3449
+ modelRevision?: number | undefined;
3450
+ artifactDigest?: string | undefined;
3451
+ } | undefined;
3452
+ source?: {
3453
+ id: string;
3454
+ generation: number;
3455
+ } | undefined;
3456
+ };
3457
+ reason: string;
3458
+ attribution?: {
3459
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
3460
+ basis: "owner-hypothesis";
3461
+ problem: string;
3462
+ reproducer: string;
3463
+ scope: string;
3464
+ counterexample: string;
3465
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
3466
+ } | undefined;
3467
+ } | {
3468
+ kind: "skill";
3469
+ name: string;
3470
+ before: string | null;
3471
+ beforeHash: string | null;
3472
+ content: string;
3473
+ origin: {
3474
+ bot: {
3475
+ botId: string;
3476
+ botCreatedAt: number;
3477
+ };
3478
+ taskId: string;
3479
+ evidenceDigest: string;
3480
+ trace?: {
3481
+ assignmentId: string;
3482
+ generation: number;
3483
+ provider: string;
3484
+ model: string;
3485
+ turnIds: string[];
3486
+ deliveryIds: string[];
3487
+ sessionId?: string | undefined;
3488
+ groupDigest?: string | undefined;
3489
+ membershipRevision?: number | undefined;
3490
+ modelRevision?: number | undefined;
3491
+ artifactDigest?: string | undefined;
3492
+ } | undefined;
3493
+ source?: {
3494
+ id: string;
3495
+ generation: number;
3496
+ } | undefined;
3497
+ };
3498
+ reason: string;
3499
+ importedMethod?: {
3500
+ format: "dsh-bot-method/v1";
3501
+ contract: {
3502
+ input: string;
3503
+ output: string;
3504
+ scope: string;
3505
+ forbidden: string;
3506
+ };
3507
+ dependencies: [{
3508
+ name: "dsh";
3509
+ version: "0.2.1-rc.2";
3510
+ }];
3511
+ examples: {
3512
+ input: string;
3513
+ expected: string;
3514
+ }[];
3515
+ evaluation: "unverified";
3516
+ publicContentConfirmed: true;
3517
+ packageDigest: string;
3518
+ reportedEvidence?: {
3519
+ judge: "exact-json-v1";
3520
+ planDigest: string;
3521
+ outcome: "inconclusive" | "improved" | "no-benefit";
3522
+ model: string;
3523
+ runDigests: string[];
3524
+ } | undefined;
3525
+ } | undefined;
3526
+ attribution?: {
3527
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
3528
+ basis: "owner-hypothesis";
3529
+ problem: string;
3530
+ reproducer: string;
3531
+ scope: string;
3532
+ counterexample: string;
3533
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
3534
+ } | undefined;
3535
+ } | {
3536
+ kind: "permission";
3537
+ setting: "model" | "tools" | "proactive" | "notifications" | "workspace";
3538
+ origin: {
3539
+ bot: {
3540
+ botId: string;
3541
+ botCreatedAt: number;
3542
+ };
3543
+ taskId: string;
3544
+ evidenceDigest: string;
3545
+ trace?: {
3546
+ assignmentId: string;
3547
+ generation: number;
3548
+ provider: string;
3549
+ model: string;
3550
+ turnIds: string[];
3551
+ deliveryIds: string[];
3552
+ sessionId?: string | undefined;
3553
+ groupDigest?: string | undefined;
3554
+ membershipRevision?: number | undefined;
3555
+ modelRevision?: number | undefined;
3556
+ artifactDigest?: string | undefined;
3557
+ } | undefined;
3558
+ source?: {
3559
+ id: string;
3560
+ generation: number;
3561
+ } | undefined;
3562
+ };
3563
+ reason: string;
3564
+ attribution?: {
3565
+ category: "unknown" | "handoff" | "method" | "preference" | "environment";
3566
+ basis: "owner-hypothesis";
3567
+ problem: string;
3568
+ reproducer: string;
3569
+ scope: string;
3570
+ counterexample: string;
3571
+ confounds: ("human-fix" | "model-change" | "environment-change" | "tool-change")[];
3572
+ } | undefined;
3573
+ };
3574
+ proposalDigest: string;
3575
+ state: "unknown" | "candidate" | "revoked" | "rejected" | "eligible" | "adopted" | "applying" | "revoking";
3576
+ methodEvaluation?: {
3577
+ plan: {
3578
+ version: 1;
3579
+ judge: "exact-json-v1";
3580
+ provider: string;
3581
+ model: string;
3582
+ maxCalls: number;
3583
+ maxTokensPerCall: number;
3584
+ cases: {
3585
+ id: string;
3586
+ split: "development" | "validation" | "final";
3587
+ scenario: "personal" | "background" | "handoff";
3588
+ input: string;
3589
+ expected: Record<string, string | number | boolean | null>;
3590
+ }[];
3591
+ };
3592
+ digest: string;
3593
+ candidateHash: string;
3594
+ parentHash: string | null;
3595
+ registeredAt: number;
3596
+ state: "unknown" | "running" | "completed" | "registered";
3597
+ receipts: {
3598
+ caseId: string;
3599
+ arm: "parent" | "candidate" | "noop" | "negative";
3600
+ ticketId: string;
3601
+ assignmentId: string;
3602
+ state: "completed" | "inconclusive";
3603
+ passed?: boolean | undefined;
3604
+ evidenceDigest?: string | undefined;
3605
+ method?: {
3606
+ planDigest: string;
3607
+ caseId: string;
3608
+ arm: "parent" | "candidate" | "noop" | "negative";
3609
+ name: string;
3610
+ methodHash: string;
3611
+ inputHash: string;
3612
+ loadedBodyHash: string;
3613
+ requestHash: string;
3614
+ contextHash: string;
3615
+ tools: "none";
3616
+ permission: "read-only-no-egress";
3617
+ } | undefined;
3618
+ }[];
3619
+ operationId?: string | undefined;
3620
+ outcome?: "inconclusive" | "improved" | "no-benefit" | undefined;
3621
+ } | undefined;
3622
+ failureKey?: string | undefined;
3623
+ evaluation?: {
3624
+ datasetId: string;
3625
+ datasetVersion: number;
3626
+ digest: string;
3627
+ maxAddedMisses: number;
3628
+ evaluatedAt: number;
3629
+ batches: {
3630
+ id: string;
3631
+ samples: number;
3632
+ disputed: number;
3633
+ beforeFalsePositives: number;
3634
+ afterFalsePositives: number;
3635
+ beforeMissed: number;
3636
+ afterMissed: number;
3637
+ beforeUnwantedNotices: number;
3638
+ afterUnwantedNotices: number;
3639
+ beforeMissedNotices: number;
3640
+ afterMissedNotices: number;
3641
+ }[];
3642
+ passed: boolean;
3643
+ } | undefined;
3644
+ application?: {
3645
+ kind: "memory";
3646
+ memoryId: string;
3647
+ versionId: string;
3648
+ } | {
3649
+ kind: "skill";
3650
+ hash: string | null;
3651
+ } | {
3652
+ kind: "rework";
3653
+ ticketId: string;
3654
+ assignmentId: string;
3655
+ } | undefined;
3656
+ operationId?: string | undefined;
3657
+ unknownAction?: "revoke" | "adopt" | undefined;
3658
+ bodyPurgedAt?: number | undefined;
3659
+ }[];
3660
+ nextRevision?: number | undefined;
3661
+ }>;
3662
+ feedbackContexts(owner: BotKey): Promise<{
3663
+ label: string;
3664
+ origin: {
3665
+ bot: {
3666
+ botId: string;
3667
+ botCreatedAt: number;
3668
+ };
3669
+ taskId: string;
3670
+ evidenceDigest: string;
3671
+ trace?: {
3672
+ assignmentId: string;
3673
+ generation: number;
3674
+ provider: string;
3675
+ model: string;
3676
+ turnIds: string[];
3677
+ deliveryIds: string[];
3678
+ sessionId?: string | undefined;
3679
+ groupDigest?: string | undefined;
3680
+ membershipRevision?: number | undefined;
3681
+ modelRevision?: number | undefined;
3682
+ artifactDigest?: string | undefined;
3683
+ } | undefined;
3684
+ source?: {
3685
+ id: string;
3686
+ generation: number;
3687
+ } | undefined;
3688
+ };
3689
+ ticket?: {
3690
+ id: string;
3691
+ revision: number;
3692
+ } | undefined;
3693
+ change?: {
3694
+ sourceId: string;
3695
+ sourceGeneration: number;
3696
+ job: string;
3697
+ attempt: number;
3698
+ } | undefined;
3699
+ }[]>;
3700
+ feedbackWorkflow({ commandId, input, }: FeedbackWorkflowRequest): Promise<{
3701
+ kind: "receipt";
3702
+ receipt: {
3703
+ scope: "core";
3704
+ status: "committed" | "duplicate";
3705
+ commandId: string;
3706
+ receiptId: string;
3707
+ committedSeq: number;
3708
+ stored: number;
3709
+ };
3710
+ } | {
3711
+ kind: "unknown";
3712
+ commandId: string;
3713
+ } | {
3714
+ kind: "rejected";
3715
+ code: "unsupported" | "stale" | "forbidden" | "conflict" | "invalid";
3716
+ }>;
3717
+ groupReview(input: GroupReviewRequest): Promise<{
3718
+ kind: "choices";
3719
+ groups: {
3720
+ group: {
3721
+ groupId: string;
3722
+ groupCreatedAt: number;
3723
+ };
3724
+ title: string;
3725
+ rootSessionId: string;
3726
+ memberIds: [string, string];
3727
+ memberBotIds: [string, string];
3728
+ memberModels?: {
3729
+ memberId: string;
3730
+ modelSelection: {
3731
+ provider: string;
3732
+ model: string;
3733
+ reasoningEffort?: string | undefined;
3734
+ };
3735
+ }[] | undefined;
3736
+ audienceBotIds?: string[] | undefined;
3737
+ }[];
3738
+ } | {
3739
+ kind: "preview";
3740
+ choice: {
3741
+ group: {
3742
+ groupId: string;
3743
+ groupCreatedAt: number;
3744
+ };
3745
+ title: string;
3746
+ rootSessionId: string;
3747
+ memberIds: [string, string];
3748
+ memberBotIds: [string, string];
3749
+ memberModels?: {
3750
+ memberId: string;
3751
+ modelSelection: {
3752
+ provider: string;
3753
+ model: string;
3754
+ reasoningEffort?: string | undefined;
3755
+ };
3756
+ }[] | undefined;
3757
+ audienceBotIds?: string[] | undefined;
3758
+ };
3759
+ text: string;
3760
+ digest: string;
3761
+ followUpAvailable: boolean;
3762
+ followUpMemberId?: string | undefined;
3763
+ } | {
3764
+ kind: "linked";
3765
+ rootSessionId: string;
3766
+ turnId: string;
3767
+ followUpState?: "unknown" | "claimed" | "armed" | "linked" | "denied" | undefined;
3768
+ } | {
3769
+ kind: "unknown";
3770
+ }>;
3771
+ externalNotice(input: ExternalNoticeRequest): Promise<{
3772
+ id: string;
3773
+ state: "unknown" | "recorded" | "suppressed" | "failed" | "cancelled" | "waiting_approval" | "sending" | "accepted";
3774
+ text: string;
3775
+ targetRef: string;
3776
+ label: string;
3777
+ digest: string;
3778
+ }>;
3779
+ review({ commandId, ...input }: ReviewRequest): Promise<{
3780
+ kind: "receipt";
3781
+ receipt: {
3782
+ scope: "core";
3783
+ status: "committed" | "duplicate";
3784
+ commandId: string;
3785
+ receiptId: string;
3786
+ committedSeq: number;
3787
+ stored: number;
3788
+ };
3789
+ } | {
3790
+ kind: "unknown";
3791
+ commandId: string;
3792
+ } | {
3793
+ kind: "rejected";
3794
+ code: "unsupported" | "stale" | "forbidden" | "conflict" | "invalid";
3795
+ }>;
3796
+ workContinuation({ commandId, ...input }: WorkContinuationRequest): Promise<{
3797
+ kind: "receipt";
3798
+ receipt: {
3799
+ scope: "core";
3800
+ status: "committed" | "duplicate";
3801
+ commandId: string;
3802
+ receiptId: string;
3803
+ committedSeq: number;
3804
+ stored: number;
3805
+ };
3806
+ } | {
3807
+ kind: "unknown";
3808
+ commandId: string;
3809
+ } | {
3810
+ kind: "rejected";
3811
+ code: "unsupported" | "stale" | "forbidden" | "conflict" | "invalid";
3812
+ }>;
3813
+ listWork(): Promise<{
3814
+ ticketId: string;
3815
+ assignmentId: string;
3816
+ decisionId: string;
3817
+ triggerId: string;
3818
+ sourceId: string;
3819
+ title: string;
3820
+ target: {
3821
+ bot: {
3822
+ botId: string;
3823
+ botCreatedAt: number;
3824
+ };
3825
+ botUpdatedAt: number;
3826
+ provider: string;
3827
+ model: string;
3828
+ };
3829
+ expiresAt: string;
3830
+ policyVersion: string;
3831
+ revision: number;
3832
+ generation: number;
3833
+ state: "unknown" | "claimed" | "failed" | "cancelled" | "pending" | "accepted" | "denied" | "sent" | "delivered" | "superseded";
3834
+ wait?: {
3835
+ reason: string;
3836
+ request: string;
3837
+ operationId: string;
3838
+ recordedAt: string;
3839
+ } | undefined;
3840
+ continuation?: {
3841
+ previousAssignmentId: string;
3842
+ operationId: string;
3843
+ requestedAt: string;
3844
+ kind: "retry";
3845
+ } | {
3846
+ previousAssignmentId: string;
3847
+ operationId: string;
3848
+ requestedAt: string;
3849
+ kind: "supplement";
3850
+ wait: {
3851
+ reason: string;
3852
+ request: string;
3853
+ operationId: string;
3854
+ recordedAt: string;
3855
+ };
3856
+ text: string;
3857
+ } | undefined;
3858
+ methodTrial?: {
3859
+ planDigest: string;
3860
+ caseId: string;
3861
+ arm: "parent" | "candidate" | "noop" | "negative";
3862
+ name: string;
3863
+ content: string;
3864
+ methodHash: string;
3865
+ inputHash: string;
3866
+ } | undefined;
3867
+ methodEvidence?: {
3868
+ planDigest: string;
3869
+ caseId: string;
3870
+ arm: "parent" | "candidate" | "noop" | "negative";
3871
+ name: string;
3872
+ methodHash: string;
3873
+ inputHash: string;
3874
+ loadedBodyHash: string;
3875
+ requestHash: string;
3876
+ contextHash: string;
3877
+ tools: "none";
3878
+ permission: "read-only-no-egress";
3879
+ } | undefined;
3880
+ admission?: "proactive" | "manual" | undefined;
3881
+ taskKind?: "document-analysis" | "ci-analysis" | undefined;
3882
+ document?: {
3883
+ kind: "document-analysis";
3884
+ version: 1;
3885
+ name: string;
3886
+ sourceVersion: number;
3887
+ content: string;
3888
+ question: string;
3889
+ acceptance: string;
3890
+ } | undefined;
3891
+ sourceDigest?: string | undefined;
3892
+ taskCost?: {
3893
+ attempts: number;
3894
+ knownNativeTokens: number;
3895
+ unknownMeasurements: number;
3896
+ externalUnits: number;
3897
+ truncated?: boolean | undefined;
3898
+ } | undefined;
3899
+ acceptance?: {
3900
+ goal: string;
3901
+ deliverables: string[];
3902
+ checks: {
3903
+ id: string;
3904
+ title: string;
3905
+ kind: "tool" | "human" | "both";
3906
+ }[];
3907
+ } | undefined;
3908
+ autoRuleId?: string | undefined;
3909
+ repair?: {
3910
+ fixtureId: string;
3911
+ specDigest: string;
3912
+ executor: "native" | "external";
3913
+ } | undefined;
3914
+ workspaceRepair?: {
3915
+ workspaceId: string;
3916
+ specDigest: string;
3917
+ baselineDigest: string;
3918
+ executor: "command" | "native";
3919
+ } | undefined;
3920
+ groupRepair?: {
3921
+ group: {
3922
+ groupId: string;
3923
+ groupCreatedAt: number;
3924
+ };
3925
+ rootSessionId: string;
3926
+ membershipRevision: number;
3927
+ supervisor: {
3928
+ memberId: string;
3929
+ bot: {
3930
+ botId: string;
3931
+ botCreatedAt: number;
3932
+ };
3933
+ botUpdatedAt: number;
3934
+ modelSelection?: {
3935
+ provider: string;
3936
+ model: string;
3937
+ reasoningEffort?: string | undefined;
3938
+ } | undefined;
3939
+ };
3940
+ implementer: {
3941
+ memberId: string;
3942
+ bot: {
3943
+ botId: string;
3944
+ botCreatedAt: number;
3945
+ };
3946
+ botUpdatedAt: number;
3947
+ modelSelection?: {
3948
+ provider: string;
3949
+ model: string;
3950
+ reasoningEffort?: string | undefined;
3951
+ } | undefined;
3952
+ };
3953
+ maxCalls: 3;
3954
+ modelRevision?: number | undefined;
3955
+ } | undefined;
3956
+ taskLimits?: {
3957
+ maxAttempts: number;
3958
+ maxTokens: number;
3959
+ deadlineAt: string;
3960
+ } | undefined;
3961
+ responsibility?: {
3962
+ id: string;
3963
+ revision: number;
3964
+ grantId: string;
3965
+ binding: {
3966
+ bot: {
3967
+ botId: string;
3968
+ botCreatedAt: number;
3969
+ };
3970
+ source: {
3971
+ id: string;
3972
+ generation: number;
3973
+ repository: string;
3974
+ branch: string;
3975
+ };
3976
+ action: "inspect-ci-result" | "repair-fixture" | "repair-external" | "repair-workspace";
3977
+ job: string;
3978
+ attempt: number;
3979
+ conclusion: "success" | "cancelled" | "failure";
3980
+ observedAt: string;
3981
+ target: {
3982
+ bot: {
3983
+ botId: string;
3984
+ botCreatedAt: number;
3985
+ };
3986
+ botUpdatedAt: number;
3987
+ provider: string;
3988
+ model: string;
3989
+ };
3990
+ actionScopeDigest?: string | undefined;
3991
+ };
3992
+ } | undefined;
3993
+ repairEvidence?: {
3994
+ specDigest: string;
3995
+ edit: {
3996
+ field: string;
3997
+ value: string | number | boolean;
3998
+ };
3999
+ baseline: {
4000
+ tool: "dsh-bot/verify-json-fixture@1";
4001
+ inputDigest: string;
4002
+ exitCode: 1;
4003
+ };
4004
+ verification: {
4005
+ tool: "dsh-bot/verify-json-fixture@1";
4006
+ exitCode: 0 | 1;
4007
+ inputDigest: string;
4008
+ };
4009
+ artifactDigest: string;
4010
+ } | undefined;
4011
+ workspaceEvidence?: {
4012
+ version: 1;
4013
+ specDigest: string;
4014
+ baselineDigest: string;
4015
+ artifactDigest: string;
4016
+ manifestDigest: string;
4017
+ diffDigest: string;
4018
+ changedPaths: string[];
4019
+ baseline: {
4020
+ tool: "dsh-bot/verify-workspace@1";
4021
+ verifierId: string;
4022
+ commandDigest: string;
4023
+ inputDigest: string;
4024
+ exitCode: number | null;
4025
+ timedOut: boolean;
4026
+ stdoutDigest: string;
4027
+ stderrDigest: string;
4028
+ stdoutPreview: string;
4029
+ stderrPreview: string;
4030
+ outputTruncated: boolean;
4031
+ };
4032
+ verification: {
4033
+ tool: "dsh-bot/verify-workspace@1";
4034
+ verifierId: string;
4035
+ commandDigest: string;
4036
+ inputDigest: string;
4037
+ exitCode: number | null;
4038
+ timedOut: boolean;
4039
+ stdoutDigest: string;
4040
+ stderrDigest: string;
4041
+ stdoutPreview: string;
4042
+ stderrPreview: string;
4043
+ outputTruncated: boolean;
4044
+ };
4045
+ } | undefined;
4046
+ groupRepairEvidence?: {
4047
+ version: 1;
4048
+ grantDigest: string;
4049
+ state: "unknown" | "completed" | "failed";
4050
+ stages: {
4051
+ phase: "plan" | "implement" | "review";
4052
+ memberId: string;
4053
+ turnId: string;
4054
+ state: "unknown" | "running" | "completed" | "failed" | "cancelled";
4055
+ deliveryId?: string | undefined;
4056
+ sessionId?: string | undefined;
4057
+ inputId?: string | undefined;
4058
+ inputDigest?: string | undefined;
4059
+ outputId?: string | undefined;
4060
+ assistantId?: string | undefined;
4061
+ outputDigest?: string | undefined;
4062
+ }[];
4063
+ plan?: {
4064
+ goal: string;
4065
+ collaborationReason: string;
4066
+ implementation: string;
4067
+ files: string[];
4068
+ checks: string[];
4069
+ } | undefined;
4070
+ review?: {
4071
+ verdict: "pass" | "fail";
4072
+ summary: string;
4073
+ checks: {
4074
+ criterion: string;
4075
+ status: "PASS" | "FAIL";
4076
+ evidence: string;
4077
+ }[];
4078
+ } | undefined;
4079
+ } | undefined;
4080
+ commandEvidence?: {
4081
+ version: 1;
4082
+ executorId: string;
4083
+ adapterVersion: string;
4084
+ runId: string;
4085
+ inputDigest: string;
4086
+ artifactDigest: string;
4087
+ cost: {
4088
+ kind: "unknown";
4089
+ } | {
4090
+ kind: "reported";
4091
+ units: number;
4092
+ unit: string;
4093
+ source: "executor";
4094
+ };
4095
+ events: {
4096
+ seq: number;
4097
+ state: "unknown" | "queued" | "running" | "completed" | "failed" | "cancelled";
4098
+ at: string;
4099
+ }[];
4100
+ } | undefined;
4101
+ recoveryRevision?: number | undefined;
4102
+ usage?: {
4103
+ inputTokens: number;
4104
+ outputTokens: number;
4105
+ } | undefined;
4106
+ groupReview?: {
4107
+ group: {
4108
+ groupId: string;
4109
+ groupCreatedAt: number;
4110
+ };
4111
+ digest: string;
4112
+ state: "unknown" | "claimed" | "linked";
4113
+ turnId?: string | undefined;
4114
+ evidenceDigest?: string | undefined;
4115
+ followUp?: {
4116
+ memberId: string;
4117
+ bot: {
4118
+ botId: string;
4119
+ botCreatedAt: number;
4120
+ };
4121
+ botRevision: number;
4122
+ membershipRevision: number;
4123
+ thread: string;
4124
+ sourceGeneration: number;
4125
+ baselineAttempt: number;
4126
+ baselineAt: string;
4127
+ state: "unknown" | "claimed" | "armed" | "linked" | "denied";
4128
+ modelSelection?: {
4129
+ provider: string;
4130
+ model: string;
4131
+ reasoningEffort?: string | undefined;
4132
+ } | undefined;
4133
+ modelRevision?: number | undefined;
4134
+ fact?: {
4135
+ id: string;
4136
+ attempt: number;
4137
+ conclusion: "success" | "cancelled" | "failure";
4138
+ text: string;
4139
+ } | undefined;
4140
+ turnId?: string | undefined;
4141
+ budget?: {
4142
+ reservationId: string;
4143
+ totalTokens: number;
4144
+ perCallTokens: number;
4145
+ requestCount: 1 | 2;
4146
+ deadlineAt: string;
4147
+ } | undefined;
4148
+ } | undefined;
4149
+ budget?: {
4150
+ reservationId: string;
4151
+ totalTokens: number;
4152
+ perCallTokens: number;
4153
+ requestCount: 1 | 2;
4154
+ deadlineAt: string;
4155
+ } | undefined;
4156
+ } | undefined;
4157
+ externalEvidence?: {
4158
+ runId: string;
4159
+ inputId: string;
4160
+ outputDigest: string;
4161
+ units: number;
4162
+ unit: "fixture-operation";
4163
+ } | undefined;
4164
+ externalRunId?: string | undefined;
4165
+ supersededBy?: string | undefined;
4166
+ sessionId?: string | undefined;
4167
+ inputId?: string | undefined;
4168
+ evidence?: {
4169
+ inputId: string;
4170
+ assistantId: string;
4171
+ turn: number;
4172
+ outputDigest: string;
4173
+ checks: ["source-match", "turn-completed", "transcript-flushed"];
4174
+ } | undefined;
4175
+ evidenceDigest?: string | undefined;
4176
+ reviewer?: "owner" | undefined;
4177
+ reviewedAt?: string | undefined;
4178
+ reviewFeedback?: {
4179
+ failures: {
4180
+ criterion: string;
4181
+ actual: string;
4182
+ expected: string;
4183
+ }[];
4184
+ notes?: string | undefined;
4185
+ } | undefined;
4186
+ rework?: {
4187
+ previousAssignmentId: string;
4188
+ previousEvidenceDigest: string;
4189
+ feedback: {
4190
+ failures: {
4191
+ criterion: string;
4192
+ actual: string;
4193
+ expected: string;
4194
+ }[];
4195
+ notes?: string | undefined;
4196
+ };
4197
+ requestedAt: string;
4198
+ requestedBy: "owner";
4199
+ previousRepairEvidence?: {
4200
+ specDigest: string;
4201
+ edit: {
4202
+ field: string;
4203
+ value: string | number | boolean;
4204
+ };
4205
+ baseline: {
4206
+ tool: "dsh-bot/verify-json-fixture@1";
4207
+ inputDigest: string;
4208
+ exitCode: 1;
4209
+ };
4210
+ verification: {
4211
+ tool: "dsh-bot/verify-json-fixture@1";
4212
+ exitCode: 0 | 1;
4213
+ inputDigest: string;
4214
+ };
4215
+ artifactDigest: string;
4216
+ } | undefined;
4217
+ previousWorkspaceEvidence?: {
4218
+ version: 1;
4219
+ specDigest: string;
4220
+ baselineDigest: string;
4221
+ artifactDigest: string;
4222
+ manifestDigest: string;
4223
+ diffDigest: string;
4224
+ changedPaths: string[];
4225
+ baseline: {
4226
+ tool: "dsh-bot/verify-workspace@1";
4227
+ verifierId: string;
4228
+ commandDigest: string;
4229
+ inputDigest: string;
4230
+ exitCode: number | null;
4231
+ timedOut: boolean;
4232
+ stdoutDigest: string;
4233
+ stderrDigest: string;
4234
+ stdoutPreview: string;
4235
+ stderrPreview: string;
4236
+ outputTruncated: boolean;
4237
+ };
4238
+ verification: {
4239
+ tool: "dsh-bot/verify-workspace@1";
4240
+ verifierId: string;
4241
+ commandDigest: string;
4242
+ inputDigest: string;
4243
+ exitCode: number | null;
4244
+ timedOut: boolean;
4245
+ stdoutDigest: string;
4246
+ stderrDigest: string;
4247
+ stdoutPreview: string;
4248
+ stderrPreview: string;
4249
+ outputTruncated: boolean;
4250
+ };
4251
+ } | undefined;
4252
+ previousGroupRepairEvidence?: {
4253
+ version: 1;
4254
+ grantDigest: string;
4255
+ state: "unknown" | "completed" | "failed";
4256
+ stages: {
4257
+ phase: "plan" | "implement" | "review";
4258
+ memberId: string;
4259
+ turnId: string;
4260
+ state: "unknown" | "running" | "completed" | "failed" | "cancelled";
4261
+ deliveryId?: string | undefined;
4262
+ sessionId?: string | undefined;
4263
+ inputId?: string | undefined;
4264
+ inputDigest?: string | undefined;
4265
+ outputId?: string | undefined;
4266
+ assistantId?: string | undefined;
4267
+ outputDigest?: string | undefined;
4268
+ }[];
4269
+ plan?: {
4270
+ goal: string;
4271
+ collaborationReason: string;
4272
+ implementation: string;
4273
+ files: string[];
4274
+ checks: string[];
4275
+ } | undefined;
4276
+ review?: {
4277
+ verdict: "pass" | "fail";
4278
+ summary: string;
4279
+ checks: {
4280
+ criterion: string;
4281
+ status: "PASS" | "FAIL";
4282
+ evidence: string;
4283
+ }[];
4284
+ } | undefined;
4285
+ } | undefined;
4286
+ } | undefined;
4287
+ notice?: {
4288
+ operationId: string;
4289
+ state: "unknown" | "intent" | "recorded" | "suppressed" | "claim";
4290
+ notBefore?: string | undefined;
4291
+ expiresAt?: string | undefined;
4292
+ batchId?: string | undefined;
4293
+ policyId?: string | undefined;
4294
+ policyRevision?: number | undefined;
4295
+ } | undefined;
4296
+ }[]>;
4297
+ botWork(owner: BotKey): Promise<{
4298
+ ticketId: string;
4299
+ assignmentId: string;
4300
+ decisionId: string;
4301
+ triggerId: string;
4302
+ sourceId: string;
4303
+ title: string;
4304
+ target: {
4305
+ bot: {
4306
+ botId: string;
4307
+ botCreatedAt: number;
4308
+ };
4309
+ botUpdatedAt: number;
4310
+ provider: string;
4311
+ model: string;
4312
+ };
4313
+ expiresAt: string;
4314
+ policyVersion: string;
4315
+ revision: number;
4316
+ generation: number;
4317
+ state: "unknown" | "claimed" | "failed" | "cancelled" | "pending" | "accepted" | "denied" | "sent" | "delivered" | "superseded";
4318
+ wait?: {
4319
+ reason: string;
4320
+ request: string;
4321
+ operationId: string;
4322
+ recordedAt: string;
4323
+ } | undefined;
4324
+ continuation?: {
4325
+ previousAssignmentId: string;
4326
+ operationId: string;
4327
+ requestedAt: string;
4328
+ kind: "retry";
4329
+ } | {
4330
+ previousAssignmentId: string;
4331
+ operationId: string;
4332
+ requestedAt: string;
4333
+ kind: "supplement";
4334
+ wait: {
4335
+ reason: string;
4336
+ request: string;
4337
+ operationId: string;
4338
+ recordedAt: string;
4339
+ };
4340
+ text: string;
4341
+ } | undefined;
4342
+ methodTrial?: {
4343
+ planDigest: string;
4344
+ caseId: string;
4345
+ arm: "parent" | "candidate" | "noop" | "negative";
4346
+ name: string;
4347
+ content: string;
4348
+ methodHash: string;
4349
+ inputHash: string;
4350
+ } | undefined;
4351
+ methodEvidence?: {
4352
+ planDigest: string;
4353
+ caseId: string;
4354
+ arm: "parent" | "candidate" | "noop" | "negative";
4355
+ name: string;
4356
+ methodHash: string;
4357
+ inputHash: string;
4358
+ loadedBodyHash: string;
4359
+ requestHash: string;
4360
+ contextHash: string;
4361
+ tools: "none";
4362
+ permission: "read-only-no-egress";
4363
+ } | undefined;
4364
+ admission?: "proactive" | "manual" | undefined;
4365
+ taskKind?: "document-analysis" | "ci-analysis" | undefined;
4366
+ document?: {
4367
+ kind: "document-analysis";
4368
+ version: 1;
4369
+ name: string;
4370
+ sourceVersion: number;
4371
+ content: string;
4372
+ question: string;
4373
+ acceptance: string;
4374
+ } | undefined;
4375
+ sourceDigest?: string | undefined;
4376
+ taskCost?: {
4377
+ attempts: number;
4378
+ knownNativeTokens: number;
4379
+ unknownMeasurements: number;
4380
+ externalUnits: number;
4381
+ truncated?: boolean | undefined;
4382
+ } | undefined;
4383
+ acceptance?: {
4384
+ goal: string;
4385
+ deliverables: string[];
4386
+ checks: {
4387
+ id: string;
4388
+ title: string;
4389
+ kind: "tool" | "human" | "both";
4390
+ }[];
4391
+ } | undefined;
4392
+ autoRuleId?: string | undefined;
4393
+ repair?: {
4394
+ fixtureId: string;
4395
+ specDigest: string;
4396
+ executor: "native" | "external";
4397
+ } | undefined;
4398
+ workspaceRepair?: {
4399
+ workspaceId: string;
4400
+ specDigest: string;
4401
+ baselineDigest: string;
4402
+ executor: "command" | "native";
4403
+ } | undefined;
4404
+ groupRepair?: {
4405
+ group: {
4406
+ groupId: string;
4407
+ groupCreatedAt: number;
4408
+ };
4409
+ rootSessionId: string;
4410
+ membershipRevision: number;
4411
+ supervisor: {
4412
+ memberId: string;
4413
+ bot: {
4414
+ botId: string;
4415
+ botCreatedAt: number;
4416
+ };
4417
+ botUpdatedAt: number;
4418
+ modelSelection?: {
4419
+ provider: string;
4420
+ model: string;
4421
+ reasoningEffort?: string | undefined;
4422
+ } | undefined;
4423
+ };
4424
+ implementer: {
4425
+ memberId: string;
4426
+ bot: {
4427
+ botId: string;
4428
+ botCreatedAt: number;
4429
+ };
4430
+ botUpdatedAt: number;
4431
+ modelSelection?: {
4432
+ provider: string;
4433
+ model: string;
4434
+ reasoningEffort?: string | undefined;
4435
+ } | undefined;
4436
+ };
4437
+ maxCalls: 3;
4438
+ modelRevision?: number | undefined;
4439
+ } | undefined;
4440
+ taskLimits?: {
4441
+ maxAttempts: number;
4442
+ maxTokens: number;
4443
+ deadlineAt: string;
4444
+ } | undefined;
4445
+ responsibility?: {
4446
+ id: string;
4447
+ revision: number;
4448
+ grantId: string;
4449
+ binding: {
4450
+ bot: {
4451
+ botId: string;
4452
+ botCreatedAt: number;
4453
+ };
4454
+ source: {
4455
+ id: string;
4456
+ generation: number;
4457
+ repository: string;
4458
+ branch: string;
4459
+ };
4460
+ action: "inspect-ci-result" | "repair-fixture" | "repair-external" | "repair-workspace";
4461
+ job: string;
4462
+ attempt: number;
4463
+ conclusion: "success" | "cancelled" | "failure";
4464
+ observedAt: string;
4465
+ target: {
4466
+ bot: {
4467
+ botId: string;
4468
+ botCreatedAt: number;
4469
+ };
4470
+ botUpdatedAt: number;
4471
+ provider: string;
4472
+ model: string;
4473
+ };
4474
+ actionScopeDigest?: string | undefined;
4475
+ };
4476
+ } | undefined;
4477
+ repairEvidence?: {
4478
+ specDigest: string;
4479
+ edit: {
4480
+ field: string;
4481
+ value: string | number | boolean;
4482
+ };
4483
+ baseline: {
4484
+ tool: "dsh-bot/verify-json-fixture@1";
4485
+ inputDigest: string;
4486
+ exitCode: 1;
4487
+ };
4488
+ verification: {
4489
+ tool: "dsh-bot/verify-json-fixture@1";
4490
+ exitCode: 0 | 1;
4491
+ inputDigest: string;
4492
+ };
4493
+ artifactDigest: string;
4494
+ } | undefined;
4495
+ workspaceEvidence?: {
4496
+ version: 1;
4497
+ specDigest: string;
4498
+ baselineDigest: string;
4499
+ artifactDigest: string;
4500
+ manifestDigest: string;
4501
+ diffDigest: string;
4502
+ changedPaths: string[];
4503
+ baseline: {
4504
+ tool: "dsh-bot/verify-workspace@1";
4505
+ verifierId: string;
4506
+ commandDigest: string;
4507
+ inputDigest: string;
4508
+ exitCode: number | null;
4509
+ timedOut: boolean;
4510
+ stdoutDigest: string;
4511
+ stderrDigest: string;
4512
+ stdoutPreview: string;
4513
+ stderrPreview: string;
4514
+ outputTruncated: boolean;
4515
+ };
4516
+ verification: {
4517
+ tool: "dsh-bot/verify-workspace@1";
4518
+ verifierId: string;
4519
+ commandDigest: string;
4520
+ inputDigest: string;
4521
+ exitCode: number | null;
4522
+ timedOut: boolean;
4523
+ stdoutDigest: string;
4524
+ stderrDigest: string;
4525
+ stdoutPreview: string;
4526
+ stderrPreview: string;
4527
+ outputTruncated: boolean;
4528
+ };
4529
+ } | undefined;
4530
+ groupRepairEvidence?: {
4531
+ version: 1;
4532
+ grantDigest: string;
4533
+ state: "unknown" | "completed" | "failed";
4534
+ stages: {
4535
+ phase: "plan" | "implement" | "review";
4536
+ memberId: string;
4537
+ turnId: string;
4538
+ state: "unknown" | "running" | "completed" | "failed" | "cancelled";
4539
+ deliveryId?: string | undefined;
4540
+ sessionId?: string | undefined;
4541
+ inputId?: string | undefined;
4542
+ inputDigest?: string | undefined;
4543
+ outputId?: string | undefined;
4544
+ assistantId?: string | undefined;
4545
+ outputDigest?: string | undefined;
4546
+ }[];
4547
+ plan?: {
4548
+ goal: string;
4549
+ collaborationReason: string;
4550
+ implementation: string;
4551
+ files: string[];
4552
+ checks: string[];
4553
+ } | undefined;
4554
+ review?: {
4555
+ verdict: "pass" | "fail";
4556
+ summary: string;
4557
+ checks: {
4558
+ criterion: string;
4559
+ status: "PASS" | "FAIL";
4560
+ evidence: string;
4561
+ }[];
4562
+ } | undefined;
4563
+ } | undefined;
4564
+ commandEvidence?: {
4565
+ version: 1;
4566
+ executorId: string;
4567
+ adapterVersion: string;
4568
+ runId: string;
4569
+ inputDigest: string;
4570
+ artifactDigest: string;
4571
+ cost: {
4572
+ kind: "unknown";
4573
+ } | {
4574
+ kind: "reported";
4575
+ units: number;
4576
+ unit: string;
4577
+ source: "executor";
4578
+ };
4579
+ events: {
4580
+ seq: number;
4581
+ state: "unknown" | "queued" | "running" | "completed" | "failed" | "cancelled";
4582
+ at: string;
4583
+ }[];
4584
+ } | undefined;
4585
+ recoveryRevision?: number | undefined;
4586
+ usage?: {
4587
+ inputTokens: number;
4588
+ outputTokens: number;
4589
+ } | undefined;
4590
+ groupReview?: {
4591
+ group: {
4592
+ groupId: string;
4593
+ groupCreatedAt: number;
4594
+ };
4595
+ digest: string;
4596
+ state: "unknown" | "claimed" | "linked";
4597
+ turnId?: string | undefined;
4598
+ evidenceDigest?: string | undefined;
4599
+ followUp?: {
4600
+ memberId: string;
4601
+ bot: {
4602
+ botId: string;
4603
+ botCreatedAt: number;
4604
+ };
4605
+ botRevision: number;
4606
+ membershipRevision: number;
4607
+ thread: string;
4608
+ sourceGeneration: number;
4609
+ baselineAttempt: number;
4610
+ baselineAt: string;
4611
+ state: "unknown" | "claimed" | "armed" | "linked" | "denied";
4612
+ modelSelection?: {
4613
+ provider: string;
4614
+ model: string;
4615
+ reasoningEffort?: string | undefined;
4616
+ } | undefined;
4617
+ modelRevision?: number | undefined;
4618
+ fact?: {
4619
+ id: string;
4620
+ attempt: number;
4621
+ conclusion: "success" | "cancelled" | "failure";
4622
+ text: string;
4623
+ } | undefined;
4624
+ turnId?: string | undefined;
4625
+ budget?: {
4626
+ reservationId: string;
4627
+ totalTokens: number;
4628
+ perCallTokens: number;
4629
+ requestCount: 1 | 2;
4630
+ deadlineAt: string;
4631
+ } | undefined;
4632
+ } | undefined;
4633
+ budget?: {
4634
+ reservationId: string;
4635
+ totalTokens: number;
4636
+ perCallTokens: number;
4637
+ requestCount: 1 | 2;
4638
+ deadlineAt: string;
4639
+ } | undefined;
4640
+ } | undefined;
4641
+ externalEvidence?: {
4642
+ runId: string;
4643
+ inputId: string;
4644
+ outputDigest: string;
4645
+ units: number;
4646
+ unit: "fixture-operation";
4647
+ } | undefined;
4648
+ externalRunId?: string | undefined;
4649
+ supersededBy?: string | undefined;
4650
+ sessionId?: string | undefined;
4651
+ inputId?: string | undefined;
4652
+ evidence?: {
4653
+ inputId: string;
4654
+ assistantId: string;
4655
+ turn: number;
4656
+ outputDigest: string;
4657
+ checks: ["source-match", "turn-completed", "transcript-flushed"];
4658
+ } | undefined;
4659
+ evidenceDigest?: string | undefined;
4660
+ reviewer?: "owner" | undefined;
4661
+ reviewedAt?: string | undefined;
4662
+ reviewFeedback?: {
4663
+ failures: {
4664
+ criterion: string;
4665
+ actual: string;
4666
+ expected: string;
4667
+ }[];
4668
+ notes?: string | undefined;
4669
+ } | undefined;
4670
+ rework?: {
4671
+ previousAssignmentId: string;
4672
+ previousEvidenceDigest: string;
4673
+ feedback: {
4674
+ failures: {
4675
+ criterion: string;
4676
+ actual: string;
4677
+ expected: string;
4678
+ }[];
4679
+ notes?: string | undefined;
4680
+ };
4681
+ requestedAt: string;
4682
+ requestedBy: "owner";
4683
+ previousRepairEvidence?: {
4684
+ specDigest: string;
4685
+ edit: {
4686
+ field: string;
4687
+ value: string | number | boolean;
4688
+ };
4689
+ baseline: {
4690
+ tool: "dsh-bot/verify-json-fixture@1";
4691
+ inputDigest: string;
4692
+ exitCode: 1;
4693
+ };
4694
+ verification: {
4695
+ tool: "dsh-bot/verify-json-fixture@1";
4696
+ exitCode: 0 | 1;
4697
+ inputDigest: string;
4698
+ };
4699
+ artifactDigest: string;
4700
+ } | undefined;
4701
+ previousWorkspaceEvidence?: {
4702
+ version: 1;
4703
+ specDigest: string;
4704
+ baselineDigest: string;
4705
+ artifactDigest: string;
4706
+ manifestDigest: string;
4707
+ diffDigest: string;
4708
+ changedPaths: string[];
4709
+ baseline: {
4710
+ tool: "dsh-bot/verify-workspace@1";
4711
+ verifierId: string;
4712
+ commandDigest: string;
4713
+ inputDigest: string;
4714
+ exitCode: number | null;
4715
+ timedOut: boolean;
4716
+ stdoutDigest: string;
4717
+ stderrDigest: string;
4718
+ stdoutPreview: string;
4719
+ stderrPreview: string;
4720
+ outputTruncated: boolean;
4721
+ };
4722
+ verification: {
4723
+ tool: "dsh-bot/verify-workspace@1";
4724
+ verifierId: string;
4725
+ commandDigest: string;
4726
+ inputDigest: string;
4727
+ exitCode: number | null;
4728
+ timedOut: boolean;
4729
+ stdoutDigest: string;
4730
+ stderrDigest: string;
4731
+ stdoutPreview: string;
4732
+ stderrPreview: string;
4733
+ outputTruncated: boolean;
4734
+ };
4735
+ } | undefined;
4736
+ previousGroupRepairEvidence?: {
4737
+ version: 1;
4738
+ grantDigest: string;
4739
+ state: "unknown" | "completed" | "failed";
4740
+ stages: {
4741
+ phase: "plan" | "implement" | "review";
4742
+ memberId: string;
4743
+ turnId: string;
4744
+ state: "unknown" | "running" | "completed" | "failed" | "cancelled";
4745
+ deliveryId?: string | undefined;
4746
+ sessionId?: string | undefined;
4747
+ inputId?: string | undefined;
4748
+ inputDigest?: string | undefined;
4749
+ outputId?: string | undefined;
4750
+ assistantId?: string | undefined;
4751
+ outputDigest?: string | undefined;
4752
+ }[];
4753
+ plan?: {
4754
+ goal: string;
4755
+ collaborationReason: string;
4756
+ implementation: string;
4757
+ files: string[];
4758
+ checks: string[];
4759
+ } | undefined;
4760
+ review?: {
4761
+ verdict: "pass" | "fail";
4762
+ summary: string;
4763
+ checks: {
4764
+ criterion: string;
4765
+ status: "PASS" | "FAIL";
4766
+ evidence: string;
4767
+ }[];
4768
+ } | undefined;
4769
+ } | undefined;
4770
+ } | undefined;
4771
+ notice?: {
4772
+ operationId: string;
4773
+ state: "unknown" | "intent" | "recorded" | "suppressed" | "claim";
4774
+ notBefore?: string | undefined;
4775
+ expiresAt?: string | undefined;
4776
+ batchId?: string | undefined;
4777
+ policyId?: string | undefined;
4778
+ policyRevision?: number | undefined;
4779
+ } | undefined;
4780
+ }[]>;
4781
+ status(): Promise<{
4782
+ state: "ready" | "unavailable" | "disabled" | "starting";
4783
+ capabilities: {
4784
+ ingest: boolean;
4785
+ snapshot: boolean;
4786
+ scheduledSource: boolean;
4787
+ automaticSubagent: boolean;
4788
+ automaticGroup: boolean;
4789
+ externalNotification: boolean;
4790
+ directExecution: boolean;
4791
+ };
4792
+ snapshot?: {
4793
+ storeId: string;
4794
+ committedSeq: number;
4795
+ triggerCount: number;
4796
+ ticketCount: number;
4797
+ suggestionCount: number;
4798
+ executionControl: {
4799
+ paused: boolean;
4800
+ revision: number;
4801
+ };
4802
+ feedbackSource?: string | undefined;
4803
+ feedbackRules?: {
4804
+ id: string;
4805
+ sourceId: string;
4806
+ job: string;
4807
+ attempt: number;
4808
+ revision: number;
4809
+ state: "candidate" | "revoked" | "rejected" | "eligible" | "adopted";
4810
+ evaluation?: {
4811
+ dataset: "synthetic-ci-v2";
4812
+ digest: string;
4813
+ batches: {
4814
+ id: "retry" | "build" | "publication";
4815
+ beforeFalsePositives: number;
4816
+ afterFalsePositives: number;
4817
+ beforeMissed: number;
4818
+ afterMissed: number;
4819
+ }[];
4820
+ passed: boolean;
4821
+ } | undefined;
4822
+ }[] | undefined;
4823
+ } | undefined;
4824
+ repairOffers?: {
4825
+ fixtureId: string;
4826
+ specDigest: string;
4827
+ executor: "native" | "external";
4828
+ title: string;
4829
+ sourceId: string;
4830
+ }[] | undefined;
4831
+ workspaceOffers?: {
4832
+ workspaceId: string;
4833
+ specDigest: string;
4834
+ baselineDigest: string;
4835
+ executor: "command" | "native";
4836
+ title: string;
4837
+ sourceId: string;
4838
+ files: {
4839
+ path: string;
4840
+ digest: string;
4841
+ bytes: number;
4842
+ editable: boolean;
4843
+ }[];
4844
+ verifier: {
4845
+ id: string;
4846
+ command: string;
4847
+ args: string[];
4848
+ timeoutMs: number;
4849
+ maxOutputBytes: number;
4850
+ };
4851
+ executorLabel: string;
4852
+ }[] | undefined;
4853
+ groupRepairOffers?: {
4854
+ title: string;
4855
+ grant: {
4856
+ group: {
4857
+ groupId: string;
4858
+ groupCreatedAt: number;
4859
+ };
4860
+ rootSessionId: string;
4861
+ membershipRevision: number;
4862
+ supervisor: {
4863
+ memberId: string;
4864
+ bot: {
4865
+ botId: string;
4866
+ botCreatedAt: number;
4867
+ };
4868
+ botUpdatedAt: number;
4869
+ modelSelection?: {
4870
+ provider: string;
4871
+ model: string;
4872
+ reasoningEffort?: string | undefined;
4873
+ } | undefined;
4874
+ };
4875
+ implementer: {
4876
+ memberId: string;
4877
+ bot: {
4878
+ botId: string;
4879
+ botCreatedAt: number;
4880
+ };
4881
+ botUpdatedAt: number;
4882
+ modelSelection?: {
4883
+ provider: string;
4884
+ model: string;
4885
+ reasoningEffort?: string | undefined;
4886
+ } | undefined;
4887
+ };
4888
+ maxCalls: 3;
4889
+ modelRevision?: number | undefined;
4890
+ };
4891
+ }[] | undefined;
4892
+ actionScopes?: {
4893
+ action: "inspect-ci-result" | "repair-fixture" | "repair-external" | "repair-workspace";
4894
+ digest: string;
4895
+ title: string;
4896
+ }[] | undefined;
4897
+ localFeedLastSuccessAt?: string | undefined;
4898
+ localFeed?: "ready" | "unavailable" | "revoked" | "invalid" | "waiting" | undefined;
4899
+ localFeedScope?: {
4900
+ id: string;
4901
+ generation: number;
4902
+ repository: string;
4903
+ branch: string;
4904
+ } | undefined;
4905
+ directRoute?: {
4906
+ provider: string;
4907
+ model: string;
4908
+ } | undefined;
4909
+ }>;
4910
+ }