@stigmer/server 3.41.0 → 3.41.1-dev.20261003133619.g58ac1f23a411

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 (1436) hide show
  1. package/README.md +6 -6
  2. package/dist/archive/content-store.js +2 -2
  3. package/dist/archive/prefilter.d.ts +3 -3
  4. package/dist/archive/write.js +1 -1
  5. package/dist/artifactstorage/artifact-storage.d.ts +11 -11
  6. package/dist/artifactstorage/artifact-storage.d.ts.map +1 -1
  7. package/dist/artifactstorage/artifact-storage.js +12 -16
  8. package/dist/artifactstorage/artifact-storage.js.map +1 -1
  9. package/dist/artifactstorage/r2-storage.d.ts +3 -5
  10. package/dist/artifactstorage/r2-storage.d.ts.map +1 -1
  11. package/dist/artifactstorage/r2-storage.js +4 -6
  12. package/dist/artifactstorage/r2-storage.js.map +1 -1
  13. package/dist/authorization/authorizer.d.ts +1 -1
  14. package/dist/authorization/authorizer.js +1 -1
  15. package/dist/authorization/model/data/authorization-model.json +0 -120
  16. package/dist/authorization/model/execution-viewer.d.ts.map +1 -1
  17. package/dist/authorization/model/execution-viewer.js +1 -2
  18. package/dist/authorization/model/execution-viewer.js.map +1 -1
  19. package/dist/authorization/organization-directory.d.ts +1 -1
  20. package/dist/authorization/organization-directory.js +1 -1
  21. package/dist/authorization/stored-resources.d.ts +4 -0
  22. package/dist/authorization/stored-resources.d.ts.map +1 -0
  23. package/dist/authorization/stored-resources.js +39 -0
  24. package/dist/authorization/stored-resources.js.map +1 -0
  25. package/dist/authorization/trusted-local-authorizer.js +2 -2
  26. package/dist/boot/compose.d.ts +30 -14
  27. package/dist/boot/compose.d.ts.map +1 -1
  28. package/dist/boot/compose.js +132 -99
  29. package/dist/boot/compose.js.map +1 -1
  30. package/dist/boot/config.d.ts +46 -20
  31. package/dist/boot/config.d.ts.map +1 -1
  32. package/dist/boot/config.js +61 -8
  33. package/dist/boot/config.js.map +1 -1
  34. package/dist/boot/inprocess.d.ts +13 -5
  35. package/dist/boot/inprocess.d.ts.map +1 -1
  36. package/dist/boot/inprocess.js +29 -22
  37. package/dist/boot/inprocess.js.map +1 -1
  38. package/dist/boot/logger.d.ts +1 -1
  39. package/dist/boot/logger.js +1 -1
  40. package/dist/boot/ready-line.d.ts +36 -0
  41. package/dist/boot/ready-line.d.ts.map +1 -0
  42. package/dist/boot/ready-line.js +23 -0
  43. package/dist/boot/ready-line.js.map +1 -0
  44. package/dist/domain/agent/controller.d.ts +5 -5
  45. package/dist/domain/agent/controller.d.ts.map +1 -1
  46. package/dist/domain/agent/controller.js +7 -6
  47. package/dist/domain/agent/controller.js.map +1 -1
  48. package/dist/domain/agent/steps.d.ts +13 -12
  49. package/dist/domain/agent/steps.d.ts.map +1 -1
  50. package/dist/domain/agent/steps.js +29 -11
  51. package/dist/domain/agent/steps.js.map +1 -1
  52. package/dist/domain/agentchannel/channel-runtime.d.ts +6 -7
  53. package/dist/domain/agentchannel/channel-runtime.d.ts.map +1 -1
  54. package/dist/domain/agentchannel/constants.d.ts +10 -10
  55. package/dist/domain/agentchannel/constants.js +10 -10
  56. package/dist/domain/agentchannel/controller.d.ts +10 -10
  57. package/dist/domain/agentchannel/controller.d.ts.map +1 -1
  58. package/dist/domain/agentchannel/controller.js +17 -20
  59. package/dist/domain/agentchannel/controller.js.map +1 -1
  60. package/dist/domain/agentchannel/conversation.d.ts +4 -4
  61. package/dist/domain/agentchannel/message.d.ts +4 -4
  62. package/dist/domain/agentchannel/steps.d.ts +4 -4
  63. package/dist/domain/agentchannel/steps.d.ts.map +1 -1
  64. package/dist/domain/agentchannel/steps.js +10 -11
  65. package/dist/domain/agentchannel/steps.js.map +1 -1
  66. package/dist/domain/agentexecution/artifacts.d.ts +2 -2
  67. package/dist/domain/agentexecution/artifacts.d.ts.map +1 -1
  68. package/dist/domain/agentexecution/artifacts.js +7 -12
  69. package/dist/domain/agentexecution/artifacts.js.map +1 -1
  70. package/dist/domain/agentexecution/constants.d.ts +23 -3
  71. package/dist/domain/agentexecution/constants.d.ts.map +1 -1
  72. package/dist/domain/agentexecution/constants.js +30 -3
  73. package/dist/domain/agentexecution/constants.js.map +1 -1
  74. package/dist/domain/agentexecution/controller.d.ts +20 -13
  75. package/dist/domain/agentexecution/controller.d.ts.map +1 -1
  76. package/dist/domain/agentexecution/controller.js +24 -14
  77. package/dist/domain/agentexecution/controller.js.map +1 -1
  78. package/dist/domain/agentexecution/create-execution-context-step.d.ts +11 -12
  79. package/dist/domain/agentexecution/create-execution-context-step.d.ts.map +1 -1
  80. package/dist/domain/agentexecution/create-execution-context-step.js +67 -84
  81. package/dist/domain/agentexecution/create-execution-context-step.js.map +1 -1
  82. package/dist/domain/agentexecution/create-steps.d.ts +5 -6
  83. package/dist/domain/agentexecution/create-steps.d.ts.map +1 -1
  84. package/dist/domain/agentexecution/create-steps.js +7 -7
  85. package/dist/domain/agentexecution/create-steps.js.map +1 -1
  86. package/dist/domain/agentexecution/engine.d.ts +7 -8
  87. package/dist/domain/agentexecution/engine.d.ts.map +1 -1
  88. package/dist/domain/agentexecution/engine.js +2 -2
  89. package/dist/domain/agentexecution/engine.js.map +1 -1
  90. package/dist/domain/agentexecution/filereview/author.d.ts +3 -3
  91. package/dist/domain/agentexecution/filereview/author.js +4 -4
  92. package/dist/domain/agentexecution/filereview/author.js.map +1 -1
  93. package/dist/domain/agentexecution/filereview/autokeep.js +2 -2
  94. package/dist/domain/agentexecution/filereview/autokeep.js.map +1 -1
  95. package/dist/domain/agentexecution/filereview/gate.d.ts +1 -1
  96. package/dist/domain/agentexecution/filereview/gate.js +1 -1
  97. package/dist/domain/agentexecution/filereview/progress.d.ts.map +1 -1
  98. package/dist/domain/agentexecution/filereview/progress.js +1 -2
  99. package/dist/domain/agentexecution/filereview/progress.js.map +1 -1
  100. package/dist/domain/agentexecution/lifecycle.d.ts +18 -4
  101. package/dist/domain/agentexecution/lifecycle.d.ts.map +1 -1
  102. package/dist/domain/agentexecution/lifecycle.js +33 -36
  103. package/dist/domain/agentexecution/lifecycle.js.map +1 -1
  104. package/dist/domain/agentexecution/phases.d.ts +12 -0
  105. package/dist/domain/agentexecution/phases.d.ts.map +1 -1
  106. package/dist/domain/agentexecution/phases.js +22 -0
  107. package/dist/domain/agentexecution/phases.js.map +1 -1
  108. package/dist/domain/agentexecution/record-runner-lineage-labels.d.ts +1 -2
  109. package/dist/domain/agentexecution/record-runner-lineage-labels.d.ts.map +1 -1
  110. package/dist/domain/agentexecution/record-runner-lineage-labels.js.map +1 -1
  111. package/dist/domain/agentexecution/run-person.d.ts +45 -0
  112. package/dist/domain/agentexecution/run-person.d.ts.map +1 -0
  113. package/dist/domain/agentexecution/run-person.js +17 -0
  114. package/dist/domain/agentexecution/run-person.js.map +1 -0
  115. package/dist/domain/agentexecution/run-target.d.ts +1 -1
  116. package/dist/domain/agentexecution/session-binding.d.ts +6 -0
  117. package/dist/domain/agentexecution/session-binding.d.ts.map +1 -0
  118. package/dist/domain/agentexecution/session-binding.js +126 -0
  119. package/dist/domain/agentexecution/session-binding.js.map +1 -0
  120. package/dist/domain/agentexecution/status-observers.d.ts +2 -2
  121. package/dist/domain/agentexecution/status-observers.d.ts.map +1 -1
  122. package/dist/domain/agentexecution/status-observers.js +8 -9
  123. package/dist/domain/agentexecution/status-observers.js.map +1 -1
  124. package/dist/domain/agentexecution/steps.d.ts +2 -2
  125. package/dist/domain/agentexecution/steps.js +2 -2
  126. package/dist/domain/agentexecution/stream-broker.d.ts +1 -1
  127. package/dist/domain/agentexecution/submit-approval.d.ts +3 -3
  128. package/dist/domain/agentexecution/submit-approval.d.ts.map +1 -1
  129. package/dist/domain/agentexecution/submit-approval.js +4 -4
  130. package/dist/domain/agentexecution/submit-approval.js.map +1 -1
  131. package/dist/domain/agentexecution/submit-file-decision.d.ts +2 -2
  132. package/dist/domain/agentexecution/submit-file-decision.d.ts.map +1 -1
  133. package/dist/domain/agentexecution/submit-file-decision.js +1 -1
  134. package/dist/domain/agentexecution/submit-file-decision.js.map +1 -1
  135. package/dist/domain/agentexecution/subscribe.d.ts +1 -1
  136. package/dist/domain/agentexecution/subscribe.d.ts.map +1 -1
  137. package/dist/domain/agentexecution/subscribe.js +4 -5
  138. package/dist/domain/agentexecution/subscribe.js.map +1 -1
  139. package/dist/domain/agentexecution/temporal/config.d.ts +4 -5
  140. package/dist/domain/agentexecution/temporal/config.d.ts.map +1 -1
  141. package/dist/domain/agentexecution/temporal/config.js +4 -5
  142. package/dist/domain/agentexecution/temporal/config.js.map +1 -1
  143. package/dist/domain/agentexecution/update-status.d.ts +3 -3
  144. package/dist/domain/agentexecution/update-status.d.ts.map +1 -1
  145. package/dist/domain/agentexecution/update-status.js +10 -10
  146. package/dist/domain/agentexecution/update-status.js.map +1 -1
  147. package/dist/domain/agentexecution/usage.d.ts +4 -4
  148. package/dist/domain/agentexecution/usage.d.ts.map +1 -1
  149. package/dist/domain/agentexecution/usage.js +11 -11
  150. package/dist/domain/agentexecution/usage.js.map +1 -1
  151. package/dist/domain/agentinstance/controller.d.ts +6 -6
  152. package/dist/domain/agentinstance/controller.d.ts.map +1 -1
  153. package/dist/domain/agentinstance/controller.js +2 -2
  154. package/dist/domain/agentinstance/controller.js.map +1 -1
  155. package/dist/domain/agentinstance/steps.d.ts +2 -2
  156. package/dist/domain/agentinstance/steps.js +5 -5
  157. package/dist/domain/agentinstance/steps.js.map +1 -1
  158. package/dist/domain/agentshare/constants.d.ts +1 -1
  159. package/dist/domain/agentshare/constants.js +1 -1
  160. package/dist/domain/agentshare/controller.d.ts +5 -5
  161. package/dist/domain/agentshare/controller.d.ts.map +1 -1
  162. package/dist/domain/agentshare/controller.js +11 -13
  163. package/dist/domain/agentshare/controller.js.map +1 -1
  164. package/dist/domain/agentshare/steps.d.ts +1 -1
  165. package/dist/domain/agentshare/steps.d.ts.map +1 -1
  166. package/dist/domain/agentshare/steps.js +5 -6
  167. package/dist/domain/agentshare/steps.js.map +1 -1
  168. package/dist/domain/apikey/controller.d.ts +13 -16
  169. package/dist/domain/apikey/controller.d.ts.map +1 -1
  170. package/dist/domain/apikey/controller.js +8 -8
  171. package/dist/domain/apikey/controller.js.map +1 -1
  172. package/dist/domain/apikey/keymaterial.js +2 -2
  173. package/dist/domain/apikey/lookup.d.ts +1 -1
  174. package/dist/domain/apikey/lookup.d.ts.map +1 -1
  175. package/dist/domain/apikey/lookup.js +5 -6
  176. package/dist/domain/apikey/lookup.js.map +1 -1
  177. package/dist/domain/apikey/steps.d.ts +1 -2
  178. package/dist/domain/apikey/steps.d.ts.map +1 -1
  179. package/dist/domain/apikey/steps.js +9 -12
  180. package/dist/domain/apikey/steps.js.map +1 -1
  181. package/dist/domain/apikey/verifier.d.ts +3 -3
  182. package/dist/domain/apikey/verifier.d.ts.map +1 -1
  183. package/dist/domain/apikey/verifier.js +59 -21
  184. package/dist/domain/apikey/verifier.js.map +1 -1
  185. package/dist/domain/artifact/constants.d.ts +2 -2
  186. package/dist/domain/artifact/constants.js +2 -2
  187. package/dist/domain/artifact/controller.d.ts +1 -1
  188. package/dist/domain/artifact/controller.d.ts.map +1 -1
  189. package/dist/domain/artifact/controller.js +7 -10
  190. package/dist/domain/artifact/controller.js.map +1 -1
  191. package/dist/domain/artifact/file-server.d.ts +2 -2
  192. package/dist/domain/artifact/file-server.js +4 -4
  193. package/dist/domain/artifact/file-server.js.map +1 -1
  194. package/dist/domain/channelapp/constants.d.ts +1 -1
  195. package/dist/domain/channelapp/constants.js +1 -1
  196. package/dist/domain/channelapp/controller.d.ts +2 -2
  197. package/dist/domain/channelapp/controller.d.ts.map +1 -1
  198. package/dist/domain/channelapp/steps.js +3 -3
  199. package/dist/domain/environment/constants.d.ts +3 -3
  200. package/dist/domain/environment/constants.js +3 -3
  201. package/dist/domain/environment/controller.d.ts +3 -3
  202. package/dist/domain/environment/controller.d.ts.map +1 -1
  203. package/dist/domain/environment/controller.js +31 -3
  204. package/dist/domain/environment/controller.js.map +1 -1
  205. package/dist/domain/environment/personal.d.ts +18 -13
  206. package/dist/domain/environment/personal.d.ts.map +1 -1
  207. package/dist/domain/environment/personal.js +82 -32
  208. package/dist/domain/environment/personal.js.map +1 -1
  209. package/dist/domain/environment/resolution/resolution.js +2 -2
  210. package/dist/domain/environment/steps.d.ts +12 -10
  211. package/dist/domain/environment/steps.d.ts.map +1 -1
  212. package/dist/domain/environment/steps.js +14 -12
  213. package/dist/domain/environment/steps.js.map +1 -1
  214. package/dist/domain/executioncontext/constants.d.ts +2 -2
  215. package/dist/domain/executioncontext/constants.js +2 -2
  216. package/dist/domain/executioncontext/contexts-for-execution.d.ts +10 -0
  217. package/dist/domain/executioncontext/contexts-for-execution.d.ts.map +1 -0
  218. package/dist/domain/executioncontext/contexts-for-execution.js +31 -0
  219. package/dist/domain/executioncontext/contexts-for-execution.js.map +1 -0
  220. package/dist/domain/executioncontext/controller.d.ts +10 -3
  221. package/dist/domain/executioncontext/controller.d.ts.map +1 -1
  222. package/dist/domain/executioncontext/controller.js +8 -5
  223. package/dist/domain/executioncontext/controller.js.map +1 -1
  224. package/dist/domain/executioncontext/internal-delete.d.ts +27 -0
  225. package/dist/domain/executioncontext/internal-delete.d.ts.map +1 -0
  226. package/dist/domain/executioncontext/internal-delete.js +125 -0
  227. package/dist/domain/executioncontext/internal-delete.js.map +1 -0
  228. package/dist/domain/executioncontext/resolve-values-for-caller.d.ts +8 -6
  229. package/dist/domain/executioncontext/resolve-values-for-caller.d.ts.map +1 -1
  230. package/dist/domain/executioncontext/resolve-values-for-caller.js +3 -3
  231. package/dist/domain/executioncontext/resolve-values-for-caller.js.map +1 -1
  232. package/dist/domain/executioncontext/steps.d.ts +34 -11
  233. package/dist/domain/executioncontext/steps.d.ts.map +1 -1
  234. package/dist/domain/executioncontext/steps.js +63 -39
  235. package/dist/domain/executioncontext/steps.js.map +1 -1
  236. package/dist/domain/executioncontext/temporal/delete-execution-context.d.ts +15 -8
  237. package/dist/domain/executioncontext/temporal/delete-execution-context.d.ts.map +1 -1
  238. package/dist/domain/executioncontext/temporal/delete-execution-context.js +10 -63
  239. package/dist/domain/executioncontext/temporal/delete-execution-context.js.map +1 -1
  240. package/dist/domain/iampolicy/access-lists.js +1 -1
  241. package/dist/domain/iampolicy/constants.d.ts +13 -14
  242. package/dist/domain/iampolicy/constants.d.ts.map +1 -1
  243. package/dist/domain/iampolicy/constants.js +13 -14
  244. package/dist/domain/iampolicy/constants.js.map +1 -1
  245. package/dist/domain/iampolicy/controller.js +28 -28
  246. package/dist/domain/iampolicy/controller.js.map +1 -1
  247. package/dist/domain/iampolicy/display-resolver.d.ts.map +1 -1
  248. package/dist/domain/iampolicy/display-resolver.js +10 -29
  249. package/dist/domain/iampolicy/display-resolver.js.map +1 -1
  250. package/dist/domain/iampolicy/grant-path.d.ts +12 -4
  251. package/dist/domain/iampolicy/grant-path.d.ts.map +1 -1
  252. package/dist/domain/iampolicy/grant-path.js +37 -22
  253. package/dist/domain/iampolicy/grant-path.js.map +1 -1
  254. package/dist/domain/iampolicy/grant-scope.js +2 -2
  255. package/dist/domain/iampolicy/membership.d.ts +22 -24
  256. package/dist/domain/iampolicy/membership.d.ts.map +1 -1
  257. package/dist/domain/iampolicy/membership.js.map +1 -1
  258. package/dist/domain/iampolicy/permissions.d.ts +3 -3
  259. package/dist/domain/iampolicy/permissions.js +3 -3
  260. package/dist/domain/iampolicy/resource-store.js +5 -5
  261. package/dist/domain/iampolicy/role-lifecycle.js +10 -10
  262. package/dist/domain/iampolicy/roles.js +3 -3
  263. package/dist/domain/iampolicy/roles.js.map +1 -1
  264. package/dist/domain/iampolicy/specs.js +4 -4
  265. package/dist/domain/iampolicy/steps.d.ts +5 -6
  266. package/dist/domain/iampolicy/steps.d.ts.map +1 -1
  267. package/dist/domain/iampolicy/steps.js +7 -8
  268. package/dist/domain/iampolicy/steps.js.map +1 -1
  269. package/dist/domain/iampolicy/store-contract.d.ts.map +1 -1
  270. package/dist/domain/iampolicy/store-contract.js +5 -6
  271. package/dist/domain/iampolicy/store-contract.js.map +1 -1
  272. package/dist/domain/iampolicy/store.d.ts +3 -3
  273. package/dist/domain/iampolicy/wire-refusals.d.ts +1 -1
  274. package/dist/domain/iampolicy/wire-refusals.d.ts.map +1 -1
  275. package/dist/domain/iampolicy/wire-refusals.js +4 -5
  276. package/dist/domain/iampolicy/wire-refusals.js.map +1 -1
  277. package/dist/domain/identityaccount/actor.d.ts +45 -0
  278. package/dist/domain/identityaccount/actor.d.ts.map +1 -1
  279. package/dist/domain/identityaccount/actor.js +24 -4
  280. package/dist/domain/identityaccount/actor.js.map +1 -1
  281. package/dist/domain/identityaccount/constants.d.ts +15 -12
  282. package/dist/domain/identityaccount/constants.d.ts.map +1 -1
  283. package/dist/domain/identityaccount/constants.js +8 -5
  284. package/dist/domain/identityaccount/constants.js.map +1 -1
  285. package/dist/domain/identityaccount/controller.d.ts +3 -4
  286. package/dist/domain/identityaccount/controller.d.ts.map +1 -1
  287. package/dist/domain/identityaccount/controller.js +25 -21
  288. package/dist/domain/identityaccount/controller.js.map +1 -1
  289. package/dist/domain/identityaccount/operator.js +3 -3
  290. package/dist/domain/identityaccount/provisioning.js +5 -5
  291. package/dist/domain/identityaccount/resolve.d.ts +51 -22
  292. package/dist/domain/identityaccount/resolve.d.ts.map +1 -1
  293. package/dist/domain/identityaccount/resolve.js +38 -7
  294. package/dist/domain/identityaccount/resolve.js.map +1 -1
  295. package/dist/domain/identityaccount/resource-store.d.ts.map +1 -1
  296. package/dist/domain/identityaccount/resource-store.js +35 -13
  297. package/dist/domain/identityaccount/resource-store.js.map +1 -1
  298. package/dist/domain/identityaccount/steps.d.ts +5 -5
  299. package/dist/domain/identityaccount/steps.d.ts.map +1 -1
  300. package/dist/domain/identityaccount/steps.js +5 -5
  301. package/dist/domain/identityaccount/steps.js.map +1 -1
  302. package/dist/domain/identityaccount/store-contract.d.ts.map +1 -1
  303. package/dist/domain/identityaccount/store-contract.js +69 -5
  304. package/dist/domain/identityaccount/store-contract.js.map +1 -1
  305. package/dist/domain/identityaccount/store.d.ts +15 -5
  306. package/dist/domain/identityaccount/store.d.ts.map +1 -1
  307. package/dist/domain/identityaccount/store.js.map +1 -1
  308. package/dist/domain/mcpserver/complete-oauth-connect.d.ts.map +1 -1
  309. package/dist/domain/mcpserver/complete-oauth-connect.js +7 -8
  310. package/dist/domain/mcpserver/complete-oauth-connect.js.map +1 -1
  311. package/dist/domain/mcpserver/connect-sandbox.d.ts +1 -1
  312. package/dist/domain/mcpserver/connect-status.d.ts +2 -2
  313. package/dist/domain/mcpserver/connect-status.js +2 -2
  314. package/dist/domain/mcpserver/connect.d.ts +6 -7
  315. package/dist/domain/mcpserver/connect.d.ts.map +1 -1
  316. package/dist/domain/mcpserver/connect.js +10 -7
  317. package/dist/domain/mcpserver/connect.js.map +1 -1
  318. package/dist/domain/mcpserver/controller.d.ts +3 -3
  319. package/dist/domain/mcpserver/controller.d.ts.map +1 -1
  320. package/dist/domain/mcpserver/controller.js +8 -9
  321. package/dist/domain/mcpserver/controller.js.map +1 -1
  322. package/dist/domain/mcpserver/disconnect-oauth.js +1 -1
  323. package/dist/domain/mcpserver/disconnect-oauth.js.map +1 -1
  324. package/dist/domain/mcpserver/enabledtools/enabledtools.d.ts +2 -2
  325. package/dist/domain/mcpserver/engine.d.ts +2 -3
  326. package/dist/domain/mcpserver/engine.d.ts.map +1 -1
  327. package/dist/domain/mcpserver/engine.js +1 -2
  328. package/dist/domain/mcpserver/engine.js.map +1 -1
  329. package/dist/domain/mcpserver/get-oauth-grant-status.js +1 -1
  330. package/dist/domain/mcpserver/get-oauth-grant-status.js.map +1 -1
  331. package/dist/domain/mcpserver/initiate-oauth-connect.d.ts +1 -1
  332. package/dist/domain/mcpserver/initiate-oauth-connect.js +2 -2
  333. package/dist/domain/mcpserver/initiate-oauth-connect.js.map +1 -1
  334. package/dist/domain/mcpserver/oauth/managed-env.d.ts +5 -5
  335. package/dist/domain/mcpserver/oauth/managed-env.js +5 -5
  336. package/dist/domain/mcpserver/oauth/refresh.d.ts +2 -2
  337. package/dist/domain/mcpserver/oauth/token.d.ts +2 -2
  338. package/dist/domain/memory/constants.d.ts +5 -5
  339. package/dist/domain/memory/constants.js +5 -5
  340. package/dist/domain/memory/controller.d.ts +13 -15
  341. package/dist/domain/memory/controller.d.ts.map +1 -1
  342. package/dist/domain/memory/controller.js +12 -14
  343. package/dist/domain/memory/controller.js.map +1 -1
  344. package/dist/domain/memory/steps.d.ts +15 -15
  345. package/dist/domain/memory/steps.d.ts.map +1 -1
  346. package/dist/domain/memory/steps.js +19 -21
  347. package/dist/domain/memory/steps.js.map +1 -1
  348. package/dist/domain/oauthapp/controller.d.ts +2 -2
  349. package/dist/domain/oauthapp/controller.d.ts.map +1 -1
  350. package/dist/domain/oauthapp/refresolution.js +4 -4
  351. package/dist/domain/organization/controller.d.ts +7 -8
  352. package/dist/domain/organization/controller.d.ts.map +1 -1
  353. package/dist/domain/organization/controller.js +8 -8
  354. package/dist/domain/organization/controller.js.map +1 -1
  355. package/dist/domain/platform/controller.d.ts +4 -4
  356. package/dist/domain/platform/version.d.ts +1 -1
  357. package/dist/domain/platform/version.js +1 -1
  358. package/dist/domain/platformclient/constants.js +1 -1
  359. package/dist/domain/platformclient/constants.js.map +1 -1
  360. package/dist/domain/platformclient/controller.js +2 -2
  361. package/dist/domain/platformclient/controller.js.map +1 -1
  362. package/dist/domain/platformclient/mint.js +2 -2
  363. package/dist/domain/platformclient/mint.js.map +1 -1
  364. package/dist/domain/platformclient/resource-store.js +1 -1
  365. package/dist/domain/platformclient/store-contract.js +1 -1
  366. package/dist/domain/platformclient/store.d.ts +2 -2
  367. package/dist/domain/plugin/constants.d.ts +1 -1
  368. package/dist/domain/plugin/constants.js +1 -1
  369. package/dist/domain/schedule/clock.d.ts +2 -2
  370. package/dist/domain/schedule/clock.js +6 -6
  371. package/dist/domain/schedule/controller.d.ts +6 -6
  372. package/dist/domain/schedule/controller.d.ts.map +1 -1
  373. package/dist/domain/schedule/controller.js +7 -9
  374. package/dist/domain/schedule/controller.js.map +1 -1
  375. package/dist/domain/schedule/cron.d.ts +2 -2
  376. package/dist/domain/schedule/cron.js +4 -4
  377. package/dist/domain/schedule/list-runs.js +1 -1
  378. package/dist/domain/schedule/persist-update.js +1 -1
  379. package/dist/domain/schedule/resume.d.ts +3 -3
  380. package/dist/domain/schedule/resume.js +1 -1
  381. package/dist/domain/schedule/steps.d.ts +5 -5
  382. package/dist/domain/schedule/steps.js +6 -6
  383. package/dist/domain/schedule/steps.js.map +1 -1
  384. package/dist/domain/schedule/trigger.d.ts +5 -5
  385. package/dist/domain/schedule/trigger.d.ts.map +1 -1
  386. package/dist/domain/schedule/trigger.js +6 -7
  387. package/dist/domain/schedule/trigger.js.map +1 -1
  388. package/dist/domain/session/constants.d.ts +2 -2
  389. package/dist/domain/session/constants.js +2 -2
  390. package/dist/domain/session/controller.d.ts +5 -5
  391. package/dist/domain/session/controller.d.ts.map +1 -1
  392. package/dist/domain/session/controller.js +9 -9
  393. package/dist/domain/session/controller.js.map +1 -1
  394. package/dist/domain/session/run-target.d.ts +1 -1
  395. package/dist/domain/session/steps.d.ts +5 -2
  396. package/dist/domain/session/steps.d.ts.map +1 -1
  397. package/dist/domain/session/steps.js +15 -24
  398. package/dist/domain/session/steps.js.map +1 -1
  399. package/dist/domain/skill/controller.d.ts +2 -2
  400. package/dist/domain/skill/controller.d.ts.map +1 -1
  401. package/dist/domain/skill/controller.js +1 -1
  402. package/dist/domain/skill/push.d.ts +1 -1
  403. package/dist/domain/skill/push.js +1 -1
  404. package/dist/domain/skill/storage/artifact-storage.d.ts +4 -4
  405. package/dist/domain/skill/storage/frontmatter.d.ts.map +1 -1
  406. package/dist/domain/skill/storage/frontmatter.js +2 -3
  407. package/dist/domain/skill/storage/frontmatter.js.map +1 -1
  408. package/dist/domain/workflow/agent-call-references.d.ts +19 -5
  409. package/dist/domain/workflow/agent-call-references.d.ts.map +1 -1
  410. package/dist/domain/workflow/agent-call-references.js +28 -4
  411. package/dist/domain/workflow/agent-call-references.js.map +1 -1
  412. package/dist/domain/workflow/controller.d.ts +4 -4
  413. package/dist/domain/workflow/controller.d.ts.map +1 -1
  414. package/dist/domain/workflow/controller.js +12 -15
  415. package/dist/domain/workflow/controller.js.map +1 -1
  416. package/dist/domain/workflow/converter/converter.js +2 -2
  417. package/dist/domain/workflow/converter/converter.js.map +1 -1
  418. package/dist/domain/workflow/converter/task-converters.d.ts +1 -1
  419. package/dist/domain/workflow/converter/task-converters.js +3 -3
  420. package/dist/domain/workflow/converter/task-converters.js.map +1 -1
  421. package/dist/domain/workflow/registry/data/task-kind-registry.json +11 -11
  422. package/dist/domain/workflow/registry/document-catalog.d.ts +4 -5
  423. package/dist/domain/workflow/registry/document-catalog.d.ts.map +1 -1
  424. package/dist/domain/workflow/registry/document-catalog.js +1 -1
  425. package/dist/domain/workflow/registry/document-catalog.js.map +1 -1
  426. package/dist/domain/workflow/registry/model-catalog-provider.d.ts +4 -5
  427. package/dist/domain/workflow/registry/model-catalog-provider.d.ts.map +1 -1
  428. package/dist/domain/workflow/registry/model-catalog-provider.js +4 -5
  429. package/dist/domain/workflow/registry/model-catalog-provider.js.map +1 -1
  430. package/dist/domain/workflow/registry/model-registry-store.d.ts +6 -6
  431. package/dist/domain/workflow/registry/pin-validation.d.ts +4 -5
  432. package/dist/domain/workflow/registry/pin-validation.d.ts.map +1 -1
  433. package/dist/domain/workflow/registry/pin-validation.js +4 -5
  434. package/dist/domain/workflow/registry/pin-validation.js.map +1 -1
  435. package/dist/domain/workflow/steps.d.ts +5 -5
  436. package/dist/domain/workflow/steps.d.ts.map +1 -1
  437. package/dist/domain/workflow/steps.js +14 -6
  438. package/dist/domain/workflow/steps.js.map +1 -1
  439. package/dist/domain/workflow/validation/budget-warnings.js +1 -1
  440. package/dist/domain/workflow/validation/format-violation.d.ts +1 -1
  441. package/dist/domain/workflowexecution/constants.d.ts +6 -6
  442. package/dist/domain/workflowexecution/constants.js +6 -6
  443. package/dist/domain/workflowexecution/controller.d.ts +19 -12
  444. package/dist/domain/workflowexecution/controller.d.ts.map +1 -1
  445. package/dist/domain/workflowexecution/controller.js +10 -9
  446. package/dist/domain/workflowexecution/controller.js.map +1 -1
  447. package/dist/domain/workflowexecution/create-execution-context-step.d.ts +7 -0
  448. package/dist/domain/workflowexecution/create-execution-context-step.d.ts.map +1 -1
  449. package/dist/domain/workflowexecution/create-execution-context-step.js.map +1 -1
  450. package/dist/domain/workflowexecution/create-steps.d.ts +3 -3
  451. package/dist/domain/workflowexecution/create-steps.js +5 -5
  452. package/dist/domain/workflowexecution/create-steps.js.map +1 -1
  453. package/dist/domain/workflowexecution/engine.d.ts +13 -14
  454. package/dist/domain/workflowexecution/engine.d.ts.map +1 -1
  455. package/dist/domain/workflowexecution/engine.js +2 -2
  456. package/dist/domain/workflowexecution/engine.js.map +1 -1
  457. package/dist/domain/workflowexecution/get-event-log.d.ts +1 -1
  458. package/dist/domain/workflowexecution/get-event-log.d.ts.map +1 -1
  459. package/dist/domain/workflowexecution/get-event-log.js +1 -1
  460. package/dist/domain/workflowexecution/get-event-log.js.map +1 -1
  461. package/dist/domain/workflowexecution/get-execution-summary.d.ts +1 -1
  462. package/dist/domain/workflowexecution/get-execution-summary.d.ts.map +1 -1
  463. package/dist/domain/workflowexecution/get-execution-summary.js +3 -3
  464. package/dist/domain/workflowexecution/lifecycle.d.ts +20 -6
  465. package/dist/domain/workflowexecution/lifecycle.d.ts.map +1 -1
  466. package/dist/domain/workflowexecution/lifecycle.js +32 -41
  467. package/dist/domain/workflowexecution/lifecycle.js.map +1 -1
  468. package/dist/domain/workflowexecution/list-pending-approvals.js +1 -1
  469. package/dist/domain/workflowexecution/run-target.d.ts +1 -1
  470. package/dist/domain/workflowexecution/send-signal.d.ts +1 -1
  471. package/dist/domain/workflowexecution/send-signal.d.ts.map +1 -1
  472. package/dist/domain/workflowexecution/stream-broker.d.ts +7 -8
  473. package/dist/domain/workflowexecution/stream-broker.d.ts.map +1 -1
  474. package/dist/domain/workflowexecution/stream-broker.js.map +1 -1
  475. package/dist/domain/workflowexecution/submit-approval.d.ts +3 -3
  476. package/dist/domain/workflowexecution/submit-approval.d.ts.map +1 -1
  477. package/dist/domain/workflowexecution/submit-file-decision.d.ts +1 -1
  478. package/dist/domain/workflowexecution/submit-file-decision.d.ts.map +1 -1
  479. package/dist/domain/workflowexecution/submit-workflow-task-approval.d.ts +1 -1
  480. package/dist/domain/workflowexecution/submit-workflow-task-approval.d.ts.map +1 -1
  481. package/dist/domain/workflowexecution/subscribe-events.d.ts +1 -1
  482. package/dist/domain/workflowexecution/subscribe-events.d.ts.map +1 -1
  483. package/dist/domain/workflowexecution/subscribe-events.js +1 -1
  484. package/dist/domain/workflowexecution/subscribe-events.js.map +1 -1
  485. package/dist/domain/workflowexecution/subscribe.d.ts +1 -1
  486. package/dist/domain/workflowexecution/subscribe.d.ts.map +1 -1
  487. package/dist/domain/workflowexecution/subscribe.js +4 -5
  488. package/dist/domain/workflowexecution/subscribe.js.map +1 -1
  489. package/dist/domain/workflowexecution/temporal/config.d.ts +1 -1
  490. package/dist/domain/workflowexecution/temporal/config.js +1 -1
  491. package/dist/domain/workflowexecution/update-status.d.ts +2 -2
  492. package/dist/domain/workflowexecution/update-status.d.ts.map +1 -1
  493. package/dist/domain/workflowexecution/update-status.js +6 -6
  494. package/dist/domain/workflowexecution/update-status.js.map +1 -1
  495. package/dist/domain/workflowinstance/controller.d.ts +6 -6
  496. package/dist/domain/workflowinstance/controller.d.ts.map +1 -1
  497. package/dist/domain/workflowinstance/controller.js +7 -8
  498. package/dist/domain/workflowinstance/controller.js.map +1 -1
  499. package/dist/domain/workflowinstance/steps.d.ts +1 -1
  500. package/dist/domain/workflowinstance/steps.d.ts.map +1 -1
  501. package/dist/domain/workflowinstance/steps.js +1 -2
  502. package/dist/domain/workflowinstance/steps.js.map +1 -1
  503. package/dist/encryption/codec.d.ts +4 -4
  504. package/dist/encryption/encryption.d.ts +4 -4
  505. package/dist/encryption/encryption.d.ts.map +1 -1
  506. package/dist/encryption/encryption.js +6 -7
  507. package/dist/encryption/encryption.js.map +1 -1
  508. package/dist/encryption/errors.d.ts +1 -1
  509. package/dist/encryption/errors.js +1 -1
  510. package/dist/encryption/key-manager.js +1 -1
  511. package/dist/encryption/scope.d.ts +2 -3
  512. package/dist/encryption/scope.d.ts.map +1 -1
  513. package/dist/encryption/scope.js +2 -3
  514. package/dist/encryption/scope.js.map +1 -1
  515. package/dist/encryption/v1-codec.js +4 -4
  516. package/dist/envmerge/envmerge.d.ts +3 -3
  517. package/dist/extensions/authorization-queries.d.ts +9 -9
  518. package/dist/extensions/authorizer.d.ts +10 -12
  519. package/dist/extensions/authorizer.d.ts.map +1 -1
  520. package/dist/extensions/caller-guards.d.ts +4 -5
  521. package/dist/extensions/caller-guards.d.ts.map +1 -1
  522. package/dist/extensions/drivers.d.ts +47 -58
  523. package/dist/extensions/drivers.d.ts.map +1 -1
  524. package/dist/extensions/gate-slots.d.ts +13 -15
  525. package/dist/extensions/gate-slots.d.ts.map +1 -1
  526. package/dist/extensions/gate-slots.js +2 -2
  527. package/dist/extensions/gate-slots.js.map +1 -1
  528. package/dist/extensions/identity-federation.d.ts +1 -1
  529. package/dist/extensions/identity.d.ts +19 -16
  530. package/dist/extensions/identity.d.ts.map +1 -1
  531. package/dist/extensions/identity.js +9 -10
  532. package/dist/extensions/identity.js.map +1 -1
  533. package/dist/extensions/list-read-scope.d.ts +15 -15
  534. package/dist/extensions/list-read-scope.d.ts.map +1 -1
  535. package/dist/extensions/list-read-scope.js +3 -2
  536. package/dist/extensions/list-read-scope.js.map +1 -1
  537. package/dist/extensions/organization-directory.d.ts +2 -3
  538. package/dist/extensions/organization-directory.d.ts.map +1 -1
  539. package/dist/extensions/organization-directory.js.map +1 -1
  540. package/dist/extensions/policy-grant-scope.d.ts +5 -6
  541. package/dist/extensions/policy-grant-scope.d.ts.map +1 -1
  542. package/dist/extensions/registry.d.ts +39 -41
  543. package/dist/extensions/registry.d.ts.map +1 -1
  544. package/dist/extensions/registry.js +1 -1
  545. package/dist/extensions/registry.js.map +1 -1
  546. package/dist/extensions/resource-authorization.d.ts +24 -15
  547. package/dist/extensions/resource-authorization.d.ts.map +1 -1
  548. package/dist/extensions/schedule-fire-caller.d.ts +2 -2
  549. package/dist/extensions/status-hooks.d.ts +7 -8
  550. package/dist/extensions/status-hooks.d.ts.map +1 -1
  551. package/dist/gocompat/query-escape.d.ts +2 -2
  552. package/dist/gocompat/query-escape.js +2 -2
  553. package/dist/gocompat/trim.js +1 -1
  554. package/dist/identity/oidc-discovery.d.ts +1 -1
  555. package/dist/identity/oidc-discovery.js +1 -1
  556. package/dist/identity/oidc-userinfo.d.ts +1 -1
  557. package/dist/identity/oidc-verifier.d.ts +1 -1
  558. package/dist/identity/oidc-verifier.d.ts.map +1 -1
  559. package/dist/identity/oidc-verifier.js +29 -23
  560. package/dist/identity/oidc-verifier.js.map +1 -1
  561. package/dist/index.d.ts +30 -22
  562. package/dist/index.d.ts.map +1 -1
  563. package/dist/index.js +42 -36
  564. package/dist/index.js.map +1 -1
  565. package/dist/main.js +6 -1
  566. package/dist/main.js.map +1 -1
  567. package/dist/observability/rpc-metrics.d.ts +2 -2
  568. package/dist/observability/rpc-metrics.js +2 -2
  569. package/dist/pipeline/apiresource-meta.d.ts +2 -2
  570. package/dist/pipeline/apiresource-meta.js +7 -7
  571. package/dist/pipeline/chain.d.ts +5 -7
  572. package/dist/pipeline/chain.d.ts.map +1 -1
  573. package/dist/pipeline/chain.js.map +1 -1
  574. package/dist/pipeline/errors.d.ts +7 -0
  575. package/dist/pipeline/errors.d.ts.map +1 -1
  576. package/dist/pipeline/errors.js +9 -0
  577. package/dist/pipeline/errors.js.map +1 -1
  578. package/dist/pipeline/interceptors/auth.d.ts +16 -15
  579. package/dist/pipeline/interceptors/auth.d.ts.map +1 -1
  580. package/dist/pipeline/interceptors/auth.js +33 -34
  581. package/dist/pipeline/interceptors/auth.js.map +1 -1
  582. package/dist/pipeline/interceptors/error-boundary.d.ts +1 -1
  583. package/dist/pipeline/interceptors/error-boundary.d.ts.map +1 -1
  584. package/dist/pipeline/interceptors/error-boundary.js +7 -10
  585. package/dist/pipeline/interceptors/error-boundary.js.map +1 -1
  586. package/dist/pipeline/interceptors/protovalidate.d.ts.map +1 -1
  587. package/dist/pipeline/interceptors/protovalidate.js +4 -3
  588. package/dist/pipeline/interceptors/protovalidate.js.map +1 -1
  589. package/dist/pipeline/interceptors/request-metrics.d.ts.map +1 -1
  590. package/dist/pipeline/interceptors/request-metrics.js +2 -3
  591. package/dist/pipeline/interceptors/request-metrics.js.map +1 -1
  592. package/dist/pipeline/keyed-serializer.d.ts +48 -0
  593. package/dist/pipeline/keyed-serializer.d.ts.map +1 -0
  594. package/dist/pipeline/keyed-serializer.js +60 -0
  595. package/dist/pipeline/keyed-serializer.js.map +1 -0
  596. package/dist/pipeline/request-context.d.ts +2 -2
  597. package/dist/pipeline/request-context.d.ts.map +1 -1
  598. package/dist/pipeline/request-context.js +4 -4
  599. package/dist/pipeline/request-context.js.map +1 -1
  600. package/dist/pipeline/steps/authorization-tuples.d.ts +34 -16
  601. package/dist/pipeline/steps/authorization-tuples.d.ts.map +1 -1
  602. package/dist/pipeline/steps/authorization-tuples.js +46 -29
  603. package/dist/pipeline/steps/authorization-tuples.js.map +1 -1
  604. package/dist/pipeline/steps/authorize-run-target.d.ts +4 -4
  605. package/dist/pipeline/steps/authorize.d.ts +6 -7
  606. package/dist/pipeline/steps/authorize.d.ts.map +1 -1
  607. package/dist/pipeline/steps/authorize.js +21 -22
  608. package/dist/pipeline/steps/authorize.js.map +1 -1
  609. package/dist/pipeline/steps/defaults.d.ts +7 -7
  610. package/dist/pipeline/steps/defaults.js +9 -9
  611. package/dist/pipeline/steps/defaults.js.map +1 -1
  612. package/dist/pipeline/steps/delete.d.ts +1 -1
  613. package/dist/pipeline/steps/guard-memory-capture.d.ts +3 -4
  614. package/dist/pipeline/steps/guard-memory-capture.d.ts.map +1 -1
  615. package/dist/pipeline/steps/guard-memory-capture.js.map +1 -1
  616. package/dist/pipeline/steps/guard-reserved-labels.d.ts.map +1 -1
  617. package/dist/pipeline/steps/guard-reserved-labels.js +7 -8
  618. package/dist/pipeline/steps/guard-reserved-labels.js.map +1 -1
  619. package/dist/pipeline/steps/helpers.d.ts +0 -10
  620. package/dist/pipeline/steps/helpers.d.ts.map +1 -1
  621. package/dist/pipeline/steps/helpers.js +1 -30
  622. package/dist/pipeline/steps/helpers.js.map +1 -1
  623. package/dist/pipeline/steps/load-existing.d.ts +1 -1
  624. package/dist/pipeline/steps/load-for-apply.d.ts +1 -1
  625. package/dist/pipeline/steps/load-for-apply.js +1 -1
  626. package/dist/pipeline/steps/load-target.d.ts +1 -1
  627. package/dist/pipeline/steps/references.d.ts +87 -16
  628. package/dist/pipeline/steps/references.d.ts.map +1 -1
  629. package/dist/pipeline/steps/references.js +115 -12
  630. package/dist/pipeline/steps/references.js.map +1 -1
  631. package/dist/pipeline/steps/secret-cleanup.d.ts +2 -3
  632. package/dist/pipeline/steps/secret-cleanup.d.ts.map +1 -1
  633. package/dist/pipeline/steps/secret-cleanup.js.map +1 -1
  634. package/dist/pipeline/steps/server-stamped-reserved-labels.d.ts +1 -2
  635. package/dist/pipeline/steps/server-stamped-reserved-labels.d.ts.map +1 -1
  636. package/dist/pipeline/steps/server-stamped-reserved-labels.js.map +1 -1
  637. package/dist/pipeline/steps/shapes.d.ts +1 -1
  638. package/dist/pipeline/steps/shapes.js +1 -1
  639. package/dist/query/activity/handler.d.ts +1 -1
  640. package/dist/query/activity/handler.js +3 -3
  641. package/dist/query/activity/handler.js.map +1 -1
  642. package/dist/query/search/controller.d.ts +1 -2
  643. package/dist/query/search/controller.d.ts.map +1 -1
  644. package/dist/query/search/controller.js.map +1 -1
  645. package/dist/query/search/criteria.d.ts +4 -4
  646. package/dist/query/search/criteria.js +4 -4
  647. package/dist/query/search/extractor.d.ts +2 -2
  648. package/dist/query/search/extractor.js +2 -2
  649. package/dist/query/search/handler.d.ts +1 -1
  650. package/dist/query/search/handler.js +1 -1
  651. package/dist/query/search/query-store.d.ts +2 -2
  652. package/dist/query/search/query-store.js +3 -3
  653. package/dist/query/search/query-store.js.map +1 -1
  654. package/dist/runnerauth/bound-execution.d.ts +2 -1
  655. package/dist/runnerauth/bound-execution.d.ts.map +1 -1
  656. package/dist/runnerauth/bound-execution.js +9 -9
  657. package/dist/runnerauth/bound-execution.js.map +1 -1
  658. package/dist/runnerauth/runner-credential-provider.d.ts +14 -20
  659. package/dist/runnerauth/runner-credential-provider.d.ts.map +1 -1
  660. package/dist/runnerauth/runner-credential-provider.js +1 -2
  661. package/dist/runnerauth/runner-credential-provider.js.map +1 -1
  662. package/dist/runnerauth/runnerauth.d.ts.map +1 -1
  663. package/dist/runnerauth/runnerauth.js +3 -4
  664. package/dist/runnerauth/runnerauth.js.map +1 -1
  665. package/dist/sandbox/builtins.d.ts.map +1 -1
  666. package/dist/sandbox/builtins.js +6 -3
  667. package/dist/sandbox/builtins.js.map +1 -1
  668. package/dist/sandbox/docker.d.ts +14 -1
  669. package/dist/sandbox/docker.d.ts.map +1 -1
  670. package/dist/sandbox/docker.js +63 -50
  671. package/dist/sandbox/docker.js.map +1 -1
  672. package/dist/sandbox/kubernetes.d.ts +1 -1
  673. package/dist/sandbox/kubernetes.d.ts.map +1 -1
  674. package/dist/sandbox/kubernetes.js +24 -13
  675. package/dist/sandbox/kubernetes.js.map +1 -1
  676. package/dist/sandbox/lane.d.ts +5 -5
  677. package/dist/sandbox/local-process.d.ts.map +1 -1
  678. package/dist/sandbox/local-process.js +8 -4
  679. package/dist/sandbox/local-process.js.map +1 -1
  680. package/dist/sandbox/naming.d.ts +20 -1
  681. package/dist/sandbox/naming.d.ts.map +1 -1
  682. package/dist/sandbox/naming.js +31 -3
  683. package/dist/sandbox/naming.js.map +1 -1
  684. package/dist/sandbox/provisioner.d.ts +77 -12
  685. package/dist/sandbox/provisioner.d.ts.map +1 -1
  686. package/dist/sandbox/provisioner.js +25 -1
  687. package/dist/sandbox/provisioner.js.map +1 -1
  688. package/dist/sandbox/runner-secret-names.d.ts +20 -0
  689. package/dist/sandbox/runner-secret-names.d.ts.map +1 -0
  690. package/dist/sandbox/runner-secret-names.js +33 -0
  691. package/dist/sandbox/runner-secret-names.js.map +1 -0
  692. package/dist/sandbox/session-activity.d.ts +10 -0
  693. package/dist/sandbox/session-activity.d.ts.map +1 -0
  694. package/dist/sandbox/session-activity.js +103 -0
  695. package/dist/sandbox/session-activity.js.map +1 -0
  696. package/dist/sandbox/steps.d.ts +1 -1
  697. package/dist/sandbox/steps.d.ts.map +1 -1
  698. package/dist/sandbox/steps.js +8 -10
  699. package/dist/sandbox/steps.js.map +1 -1
  700. package/dist/sandbox/substrate/__test-utils__/fake-gateway.d.ts +83 -0
  701. package/dist/sandbox/substrate/__test-utils__/fake-gateway.d.ts.map +1 -0
  702. package/dist/sandbox/substrate/__test-utils__/fake-gateway.js +240 -0
  703. package/dist/sandbox/substrate/__test-utils__/fake-gateway.js.map +1 -0
  704. package/dist/sandbox/substrate/builtin.d.ts +34 -0
  705. package/dist/sandbox/substrate/builtin.d.ts.map +1 -0
  706. package/dist/sandbox/substrate/builtin.js +33 -0
  707. package/dist/sandbox/substrate/builtin.js.map +1 -0
  708. package/dist/sandbox/substrate/config.d.ts +44 -0
  709. package/dist/sandbox/substrate/config.d.ts.map +1 -0
  710. package/dist/sandbox/substrate/config.js +133 -0
  711. package/dist/sandbox/substrate/config.js.map +1 -0
  712. package/dist/sandbox/substrate/delay.d.ts +7 -0
  713. package/dist/sandbox/substrate/delay.d.ts.map +1 -0
  714. package/dist/sandbox/substrate/delay.js +9 -0
  715. package/dist/sandbox/substrate/delay.js.map +1 -0
  716. package/dist/sandbox/substrate/driver.d.ts +233 -0
  717. package/dist/sandbox/substrate/driver.d.ts.map +1 -0
  718. package/dist/sandbox/substrate/driver.js +534 -0
  719. package/dist/sandbox/substrate/driver.js.map +1 -0
  720. package/dist/sandbox/substrate/egress.d.ts +6 -0
  721. package/dist/sandbox/substrate/egress.d.ts.map +1 -0
  722. package/dist/sandbox/substrate/egress.js +139 -0
  723. package/dist/sandbox/substrate/egress.js.map +1 -0
  724. package/dist/sandbox/substrate/gateway.d.ts +64 -0
  725. package/dist/sandbox/substrate/gateway.d.ts.map +1 -0
  726. package/dist/sandbox/substrate/gateway.js +310 -0
  727. package/dist/sandbox/substrate/gateway.js.map +1 -0
  728. package/dist/sandbox/substrate/gen/ateapipb/ateapi_pb.d.ts +4301 -0
  729. package/dist/sandbox/substrate/gen/ateapipb/ateapi_pb.d.ts.map +1 -0
  730. package/dist/sandbox/substrate/gen/ateapipb/ateapi_pb.js +818 -0
  731. package/dist/sandbox/substrate/gen/ateapipb/ateapi_pb.js.map +1 -0
  732. package/dist/sandbox/substrate/idle-decision.d.ts +30 -0
  733. package/dist/sandbox/substrate/idle-decision.d.ts.map +1 -0
  734. package/dist/sandbox/substrate/idle-decision.js +15 -0
  735. package/dist/sandbox/substrate/idle-decision.js.map +1 -0
  736. package/dist/sandbox/substrate/limits.d.ts +27 -0
  737. package/dist/sandbox/substrate/limits.d.ts.map +1 -0
  738. package/dist/sandbox/substrate/limits.js +27 -0
  739. package/dist/sandbox/substrate/limits.js.map +1 -0
  740. package/dist/sandbox/substrate/push.d.ts +43 -0
  741. package/dist/sandbox/substrate/push.d.ts.map +1 -0
  742. package/dist/sandbox/substrate/push.js +87 -0
  743. package/dist/sandbox/substrate/push.js.map +1 -0
  744. package/dist/sandbox/substrate/sweep.d.ts +70 -0
  745. package/dist/sandbox/substrate/sweep.d.ts.map +1 -0
  746. package/dist/sandbox/substrate/sweep.js +166 -0
  747. package/dist/sandbox/substrate/sweep.js.map +1 -0
  748. package/dist/sandbox/substrate/template.d.ts +49 -0
  749. package/dist/sandbox/substrate/template.d.ts.map +1 -0
  750. package/dist/sandbox/substrate/template.js +224 -0
  751. package/dist/sandbox/substrate/template.js.map +1 -0
  752. package/dist/store/interface.d.ts +28 -29
  753. package/dist/store/interface.d.ts.map +1 -1
  754. package/dist/store/interface.js +1 -1
  755. package/dist/store/interface.js.map +1 -1
  756. package/dist/store/logger.d.ts +2 -2
  757. package/dist/store/port-contract.d.ts +3 -3
  758. package/dist/store/port-contract.js +3 -3
  759. package/dist/store/postgres/migrations.d.ts +5 -6
  760. package/dist/store/postgres/migrations.d.ts.map +1 -1
  761. package/dist/store/postgres/migrations.js +9 -8
  762. package/dist/store/postgres/migrations.js.map +1 -1
  763. package/dist/store/postgres/store.d.ts +1 -1
  764. package/dist/store/postgres/store.d.ts.map +1 -1
  765. package/dist/store/postgres/store.js +18 -22
  766. package/dist/store/postgres/store.js.map +1 -1
  767. package/dist/store/postgres/tsquery.d.ts +3 -3
  768. package/dist/store/postgres/tsquery.js +3 -3
  769. package/dist/store/proto-fields.d.ts +7 -0
  770. package/dist/store/proto-fields.d.ts.map +1 -1
  771. package/dist/store/proto-fields.js +24 -1
  772. package/dist/store/proto-fields.js.map +1 -1
  773. package/dist/store/rfc3339.d.ts +2 -2
  774. package/dist/store/rfc3339.js +2 -2
  775. package/dist/store/sqlite/fts5.d.ts +5 -5
  776. package/dist/store/sqlite/fts5.js +5 -5
  777. package/dist/store/sqlite/migrations.d.ts +6 -6
  778. package/dist/store/sqlite/migrations.d.ts.map +1 -1
  779. package/dist/store/sqlite/migrations.js +6 -6
  780. package/dist/store/sqlite/migrations.js.map +1 -1
  781. package/dist/store/sqlite/store.d.ts +1 -1
  782. package/dist/store/sqlite/store.d.ts.map +1 -1
  783. package/dist/store/sqlite/store.js +20 -21
  784. package/dist/store/sqlite/store.js.map +1 -1
  785. package/dist/temporal/agentexecution/activities.d.ts +9 -1
  786. package/dist/temporal/agentexecution/activities.d.ts.map +1 -1
  787. package/dist/temporal/agentexecution/activities.js +21 -16
  788. package/dist/temporal/agentexecution/activities.js.map +1 -1
  789. package/dist/temporal/agentexecution/dispatch.js +1 -1
  790. package/dist/temporal/agentexecution/engine-client.d.ts +4 -4
  791. package/dist/temporal/agentexecution/engine-client.js +1 -1
  792. package/dist/temporal/agentexecution/names.d.ts +11 -12
  793. package/dist/temporal/agentexecution/names.d.ts.map +1 -1
  794. package/dist/temporal/agentexecution/names.js +11 -12
  795. package/dist/temporal/agentexecution/names.js.map +1 -1
  796. package/dist/temporal/agentexecution/worker.d.ts +10 -3
  797. package/dist/temporal/agentexecution/worker.d.ts.map +1 -1
  798. package/dist/temporal/agentexecution/worker.js +1 -0
  799. package/dist/temporal/agentexecution/worker.js.map +1 -1
  800. package/dist/temporal/agentexecution/workflows/invoke-agent-execution.d.ts.map +1 -1
  801. package/dist/temporal/agentexecution/workflows/invoke-agent-execution.js +26 -27
  802. package/dist/temporal/agentexecution/workflows/invoke-agent-execution.js.map +1 -1
  803. package/dist/temporal/manager.d.ts +8 -8
  804. package/dist/temporal/manager.js +9 -9
  805. package/dist/temporal/manager.js.map +1 -1
  806. package/dist/temporal/mcpserver/engine-client.d.ts +1 -1
  807. package/dist/temporal/mcpserver/names.d.ts +1 -2
  808. package/dist/temporal/mcpserver/names.d.ts.map +1 -1
  809. package/dist/temporal/mcpserver/names.js +1 -2
  810. package/dist/temporal/mcpserver/names.js.map +1 -1
  811. package/dist/temporal/payload-codec.d.ts +4 -5
  812. package/dist/temporal/payload-codec.d.ts.map +1 -1
  813. package/dist/temporal/payload-codec.js +1 -1
  814. package/dist/temporal/payload-codec.js.map +1 -1
  815. package/dist/temporal/runner-failure.js +2 -2
  816. package/dist/temporal/schedule/activities.js +4 -4
  817. package/dist/temporal/schedule/activities.js.map +1 -1
  818. package/dist/temporal/schedule/config.d.ts +7 -7
  819. package/dist/temporal/schedule/config.d.ts.map +1 -1
  820. package/dist/temporal/schedule/config.js +5 -5
  821. package/dist/temporal/schedule/config.js.map +1 -1
  822. package/dist/temporal/schedule/model-pinning.d.ts +1 -1
  823. package/dist/temporal/schedule/names.d.ts +1 -1
  824. package/dist/temporal/schedule/names.js +1 -1
  825. package/dist/temporal/schedule/reconciler.d.ts +5 -5
  826. package/dist/temporal/schedule/reconciler.js +2 -2
  827. package/dist/temporal/schedule/reconciler.js.map +1 -1
  828. package/dist/temporal/schedule/run-ledger.d.ts +2 -2
  829. package/dist/temporal/schedule/run-starter.d.ts +4 -4
  830. package/dist/temporal/schedule/run-starter.js +16 -16
  831. package/dist/temporal/schedule/run-starter.js.map +1 -1
  832. package/dist/temporal/schedule/syncer.d.ts +6 -7
  833. package/dist/temporal/schedule/syncer.d.ts.map +1 -1
  834. package/dist/temporal/schedule/syncer.js +1 -1
  835. package/dist/temporal/schedule/syncer.js.map +1 -1
  836. package/dist/temporal/schedule/workflows/tick.js +4 -4
  837. package/dist/temporal/workflow-source.d.ts +1 -1
  838. package/dist/temporal/workflow-source.d.ts.map +1 -1
  839. package/dist/temporal/workflow-source.js +3 -4
  840. package/dist/temporal/workflow-source.js.map +1 -1
  841. package/dist/temporal/workflowexecution/activities.d.ts +11 -4
  842. package/dist/temporal/workflowexecution/activities.d.ts.map +1 -1
  843. package/dist/temporal/workflowexecution/activities.js +12 -9
  844. package/dist/temporal/workflowexecution/activities.js.map +1 -1
  845. package/dist/temporal/workflowexecution/engine-client.d.ts +4 -5
  846. package/dist/temporal/workflowexecution/engine-client.d.ts.map +1 -1
  847. package/dist/temporal/workflowexecution/engine-client.js +2 -3
  848. package/dist/temporal/workflowexecution/engine-client.js.map +1 -1
  849. package/dist/temporal/workflowexecution/names.d.ts +8 -9
  850. package/dist/temporal/workflowexecution/names.d.ts.map +1 -1
  851. package/dist/temporal/workflowexecution/names.js +8 -9
  852. package/dist/temporal/workflowexecution/names.js.map +1 -1
  853. package/dist/temporal/workflowexecution/worker.d.ts +11 -4
  854. package/dist/temporal/workflowexecution/worker.d.ts.map +1 -1
  855. package/dist/temporal/workflowexecution/worker.js +1 -0
  856. package/dist/temporal/workflowexecution/worker.js.map +1 -1
  857. package/dist/temporal/workflowexecution/workflow-input.d.ts +4 -4
  858. package/dist/temporal/workflowexecution/workflows/invoke-workflow-execution.js +10 -10
  859. package/dist/temporal/workflowexecution/workflows/invoke-workflow-execution.js.map +1 -1
  860. package/dist/transport/console/assets.js +2 -2
  861. package/dist/transport/console/handler.d.ts +4 -4
  862. package/dist/transport/console/handler.js +6 -6
  863. package/dist/transport/console/resolver.d.ts +3 -4
  864. package/dist/transport/console/resolver.d.ts.map +1 -1
  865. package/dist/transport/console/resolver.js +15 -5
  866. package/dist/transport/console/resolver.js.map +1 -1
  867. package/dist/transport/constants.d.ts +3 -3
  868. package/dist/transport/constants.js +3 -3
  869. package/dist/transport/cors.d.ts +1 -1
  870. package/dist/transport/demux.d.ts +3 -3
  871. package/dist/transport/demux.js +1 -1
  872. package/dist/transport/registry/lanes.d.ts +2 -2
  873. package/dist/transport/registry/lanes.d.ts.map +1 -1
  874. package/dist/transport/server.d.ts +9 -10
  875. package/dist/transport/server.d.ts.map +1 -1
  876. package/dist/transport/server.js.map +1 -1
  877. package/package.json +12 -7
  878. package/src/archive/__tests__/prefilter.test.ts +1 -1
  879. package/src/archive/content-store.ts +2 -2
  880. package/src/archive/prefilter.ts +3 -3
  881. package/src/archive/write.ts +1 -1
  882. package/src/artifactstorage/__tests__/artifact-storage.test.ts +5 -5
  883. package/src/artifactstorage/__tests__/r2-storage.test.ts +2 -2
  884. package/src/artifactstorage/artifact-storage.ts +17 -21
  885. package/src/artifactstorage/r2-storage.ts +4 -6
  886. package/src/authorization/README.md +3 -3
  887. package/src/authorization/__tests__/{authorizer.test.ts → authorizer.postgres.test.ts} +1 -1
  888. package/src/authorization/__tests__/contract-support.ts +49 -0
  889. package/src/authorization/__tests__/{derived-tuples.test.ts → derived-tuples.postgres.test.ts} +2 -2
  890. package/src/authorization/__tests__/drivers.ts +1 -1
  891. package/src/authorization/__tests__/{list-read-scope.measure.test.ts → list-read-scope.load.test.ts} +14 -18
  892. package/src/authorization/__tests__/{list-read-scope.test.ts → list-read-scope.postgres.test.ts} +1 -2
  893. package/src/authorization/__tests__/stored-resources.postgres.test.ts +136 -0
  894. package/src/authorization/__tests__/wire-permissions.test.ts +111 -40
  895. package/src/authorization/authorizer.ts +1 -1
  896. package/src/authorization/derived-tuples.ts +1 -1
  897. package/src/authorization/model/__tests__/registry.test.ts +24 -0
  898. package/src/authorization/model/data/authorization-model.json +0 -120
  899. package/src/authorization/model/execution-viewer.ts +1 -2
  900. package/src/authorization/organization-directory.ts +1 -1
  901. package/src/authorization/stored-resources.ts +75 -0
  902. package/src/authorization/trusted-local-authorizer.ts +2 -2
  903. package/src/boot/__tests__/__fixtures__/verify-boot-entry.mjs +26 -0
  904. package/src/boot/__tests__/auth-enabled-composition.test.ts +113 -18
  905. package/src/boot/__tests__/compose.test.ts +78 -6
  906. package/src/boot/__tests__/config.test.ts +62 -5
  907. package/src/boot/__tests__/ready-line.test.ts +57 -0
  908. package/src/boot/__tests__/verify-boot.test.ts +52 -0
  909. package/src/boot/compose.ts +170 -114
  910. package/src/boot/config.ts +132 -28
  911. package/src/boot/inprocess.ts +42 -27
  912. package/src/boot/logger.ts +1 -1
  913. package/src/boot/ready-line.ts +55 -0
  914. package/src/domain/agent/__tests__/agent.test.ts +5 -5
  915. package/src/domain/agent/controller.ts +24 -11
  916. package/src/domain/agent/search-extractor.ts +1 -1
  917. package/src/domain/agent/steps.ts +39 -16
  918. package/src/domain/agentchannel/__tests__/agentchannel.test.ts +10 -10
  919. package/src/domain/agentchannel/__tests__/channel-runtime.test.ts +3 -3
  920. package/src/domain/agentchannel/channel-runtime.ts +6 -7
  921. package/src/domain/agentchannel/constants.ts +10 -10
  922. package/src/domain/agentchannel/controller.ts +27 -30
  923. package/src/domain/agentchannel/conversation.ts +4 -4
  924. package/src/domain/agentchannel/message.ts +4 -4
  925. package/src/domain/agentchannel/steps.ts +10 -11
  926. package/src/domain/agentexecution/__tests__/agentexecution.test.ts +17 -17
  927. package/src/domain/agentexecution/__tests__/artifacts.test.ts +2 -2
  928. package/src/domain/agentexecution/__tests__/create-execution-context-step.test.ts +63 -33
  929. package/src/domain/agentexecution/__tests__/create-steps.test.ts +6 -5
  930. package/src/domain/agentexecution/__tests__/engine-stub.ts +2 -1
  931. package/src/domain/agentexecution/__tests__/lifecycle.test.ts +319 -11
  932. package/src/domain/agentexecution/__tests__/personal-environment-reach.test.ts +336 -0
  933. package/src/domain/agentexecution/__tests__/read-authorization.test.ts +2 -2
  934. package/src/domain/agentexecution/__tests__/record-runner-lineage-labels.test.ts +2 -2
  935. package/src/domain/agentexecution/__tests__/run-gate.test.ts +2 -2
  936. package/src/domain/agentexecution/__tests__/run-target.test.ts +2 -2
  937. package/src/domain/agentexecution/__tests__/session-binding.test.ts +307 -0
  938. package/src/domain/agentexecution/__tests__/status-observers.test.ts +3 -3
  939. package/src/domain/agentexecution/__tests__/store-faults.test.ts +2 -0
  940. package/src/domain/agentexecution/__tests__/usage-scope.test.ts +68 -0
  941. package/src/domain/agentexecution/artifacts.ts +9 -14
  942. package/src/domain/agentexecution/constants.ts +32 -3
  943. package/src/domain/agentexecution/controller.ts +47 -27
  944. package/src/domain/agentexecution/create-execution-context-step.ts +91 -102
  945. package/src/domain/agentexecution/create-steps.ts +13 -15
  946. package/src/domain/agentexecution/engine.ts +16 -17
  947. package/src/domain/agentexecution/filereview/__tests__/autokeep.test.ts +147 -0
  948. package/src/domain/agentexecution/filereview/author.ts +4 -4
  949. package/src/domain/agentexecution/filereview/autokeep.ts +2 -2
  950. package/src/domain/agentexecution/filereview/gate.ts +1 -1
  951. package/src/domain/agentexecution/filereview/progress.ts +1 -2
  952. package/src/domain/agentexecution/lifecycle.ts +56 -51
  953. package/src/domain/agentexecution/phases.ts +23 -0
  954. package/src/domain/agentexecution/record-runner-lineage-labels.ts +1 -2
  955. package/src/domain/agentexecution/run-person.ts +54 -0
  956. package/src/domain/agentexecution/run-target.ts +1 -1
  957. package/src/domain/agentexecution/search-extractor.ts +1 -1
  958. package/src/domain/agentexecution/session-binding.ts +163 -0
  959. package/src/domain/agentexecution/status-observers.ts +8 -9
  960. package/src/domain/agentexecution/steps.ts +2 -2
  961. package/src/domain/agentexecution/stream-broker.ts +1 -1
  962. package/src/domain/agentexecution/submit-approval.ts +7 -7
  963. package/src/domain/agentexecution/submit-file-decision.ts +3 -3
  964. package/src/domain/agentexecution/subscribe.ts +5 -6
  965. package/src/domain/agentexecution/temporal/config.ts +4 -5
  966. package/src/domain/agentexecution/update-status.ts +13 -13
  967. package/src/domain/agentexecution/usage.ts +13 -13
  968. package/src/domain/agentinstance/__tests__/agentinstance.test.ts +40 -3
  969. package/src/domain/agentinstance/controller.ts +8 -8
  970. package/src/domain/agentinstance/search-extractor.ts +1 -1
  971. package/src/domain/agentinstance/steps.ts +7 -7
  972. package/src/domain/agentshare/__tests__/agentshare.test.ts +6 -6
  973. package/src/domain/agentshare/constants.ts +1 -1
  974. package/src/domain/agentshare/controller.ts +16 -18
  975. package/src/domain/agentshare/steps.ts +5 -6
  976. package/src/domain/apikey/__tests__/apikey.test.ts +5 -4
  977. package/src/domain/apikey/__tests__/verifier.test.ts +153 -29
  978. package/src/domain/apikey/controller.ts +21 -24
  979. package/src/domain/apikey/keymaterial.ts +2 -2
  980. package/src/domain/apikey/lookup.ts +5 -6
  981. package/src/domain/apikey/steps.ts +9 -12
  982. package/src/domain/apikey/verifier.ts +68 -29
  983. package/src/domain/artifact/__tests__/artifact.test.ts +4 -5
  984. package/src/domain/artifact/__tests__/file-server-host.test.ts +1 -1
  985. package/src/domain/artifact/constants.ts +2 -2
  986. package/src/domain/artifact/controller.ts +8 -11
  987. package/src/domain/artifact/file-server.ts +6 -6
  988. package/src/domain/channelapp/constants.ts +1 -1
  989. package/src/domain/channelapp/controller.ts +2 -2
  990. package/src/domain/channelapp/steps.ts +3 -3
  991. package/src/domain/environment/__tests__/environment.test.ts +48 -2
  992. package/src/domain/environment/__tests__/personal-uniqueness.test.ts +89 -0
  993. package/src/domain/environment/__tests__/personal.test.ts +271 -74
  994. package/src/domain/environment/constants.ts +3 -3
  995. package/src/domain/environment/controller.ts +37 -6
  996. package/src/domain/environment/personal.ts +103 -44
  997. package/src/domain/environment/resolution/resolution.ts +2 -2
  998. package/src/domain/environment/search-extractor.ts +1 -1
  999. package/src/domain/environment/steps.ts +15 -16
  1000. package/src/domain/executioncontext/__tests__/executioncontext.test.ts +394 -76
  1001. package/src/domain/executioncontext/__tests__/resolve-values-capability.test.ts +4 -4
  1002. package/src/domain/executioncontext/constants.ts +2 -2
  1003. package/src/domain/executioncontext/contexts-for-execution.ts +46 -0
  1004. package/src/domain/executioncontext/controller.ts +18 -7
  1005. package/src/domain/executioncontext/internal-delete.ts +174 -0
  1006. package/src/domain/executioncontext/resolve-values-for-caller.ts +9 -7
  1007. package/src/domain/executioncontext/search-extractor.ts +1 -1
  1008. package/src/domain/executioncontext/steps.ts +81 -23
  1009. package/src/domain/executioncontext/temporal/delete-execution-context.ts +10 -88
  1010. package/src/domain/iampolicy/__tests__/access-lists.test.ts +1 -1
  1011. package/src/domain/iampolicy/__tests__/constants.test.ts +8 -10
  1012. package/src/domain/iampolicy/__tests__/controller.test.ts +23 -23
  1013. package/src/domain/iampolicy/__tests__/display-resolver.test.ts +2 -2
  1014. package/src/domain/iampolicy/__tests__/grant-path.test.ts +134 -15
  1015. package/src/domain/iampolicy/__tests__/grant-scope.test.ts +2 -2
  1016. package/src/domain/iampolicy/__tests__/iampolicy.test.ts +12 -13
  1017. package/src/domain/iampolicy/__tests__/membership.test.ts +10 -11
  1018. package/src/domain/iampolicy/__tests__/permissions.test.ts +1 -1
  1019. package/src/domain/iampolicy/__tests__/{resource-store.test.ts → resource-store.postgres.test.ts} +3 -3
  1020. package/src/domain/iampolicy/__tests__/role-lifecycle.test.ts +6 -7
  1021. package/src/domain/iampolicy/__tests__/roles.test.ts +2 -2
  1022. package/src/domain/iampolicy/__tests__/specs.test.ts +2 -2
  1023. package/src/domain/iampolicy/__tests__/steps.test.ts +9 -9
  1024. package/src/domain/iampolicy/__tests__/support.ts +29 -14
  1025. package/src/domain/iampolicy/__tests__/wire-refusals.test.ts +3 -3
  1026. package/src/domain/iampolicy/access-lists.ts +1 -1
  1027. package/src/domain/iampolicy/constants.ts +13 -14
  1028. package/src/domain/iampolicy/controller.ts +28 -28
  1029. package/src/domain/iampolicy/display-resolver.ts +10 -40
  1030. package/src/domain/iampolicy/grant-path.ts +50 -29
  1031. package/src/domain/iampolicy/grant-scope.ts +2 -2
  1032. package/src/domain/iampolicy/membership.ts +22 -24
  1033. package/src/domain/iampolicy/permissions.ts +3 -3
  1034. package/src/domain/iampolicy/resource-store.ts +5 -5
  1035. package/src/domain/iampolicy/role-lifecycle.ts +10 -10
  1036. package/src/domain/iampolicy/roles.ts +3 -3
  1037. package/src/domain/iampolicy/specs.ts +4 -4
  1038. package/src/domain/iampolicy/steps.ts +7 -8
  1039. package/src/domain/iampolicy/store-contract.ts +5 -6
  1040. package/src/domain/iampolicy/store.ts +3 -3
  1041. package/src/domain/iampolicy/wire-refusals.ts +4 -5
  1042. package/src/domain/identityaccount/__tests__/account-for-stamp.test.ts +22 -1
  1043. package/src/domain/identityaccount/__tests__/actor.test.ts +193 -0
  1044. package/src/domain/identityaccount/__tests__/constants.test.ts +1 -2
  1045. package/src/domain/identityaccount/__tests__/identityaccount.test.ts +40 -16
  1046. package/src/domain/identityaccount/__tests__/operator.test.ts +2 -2
  1047. package/src/domain/identityaccount/__tests__/provisioning.test.ts +4 -4
  1048. package/src/domain/identityaccount/__tests__/resolve.test.ts +113 -3
  1049. package/src/domain/identityaccount/__tests__/{resource-store.test.ts → resource-store.postgres.test.ts} +4 -3
  1050. package/src/domain/identityaccount/actor.ts +75 -4
  1051. package/src/domain/identityaccount/constants.ts +15 -12
  1052. package/src/domain/identityaccount/controller.ts +28 -25
  1053. package/src/domain/identityaccount/operator.ts +3 -3
  1054. package/src/domain/identityaccount/provisioning.ts +5 -5
  1055. package/src/domain/identityaccount/resolve.ts +85 -32
  1056. package/src/domain/identityaccount/resource-store.ts +40 -14
  1057. package/src/domain/identityaccount/steps.ts +5 -5
  1058. package/src/domain/identityaccount/store-contract.ts +97 -5
  1059. package/src/domain/identityaccount/store.ts +15 -5
  1060. package/src/domain/mcpserver/__tests__/connect-authorization.test.ts +2 -2
  1061. package/src/domain/mcpserver/__tests__/connect.test.ts +71 -6
  1062. package/src/domain/mcpserver/__tests__/mcpserver.test.ts +5 -5
  1063. package/src/domain/mcpserver/__tests__/oauth-handshake.test.ts +6 -5
  1064. package/src/domain/mcpserver/complete-oauth-connect.ts +7 -8
  1065. package/src/domain/mcpserver/connect-sandbox.ts +1 -1
  1066. package/src/domain/mcpserver/connect-status.ts +2 -2
  1067. package/src/domain/mcpserver/connect.ts +17 -15
  1068. package/src/domain/mcpserver/controller.ts +11 -12
  1069. package/src/domain/mcpserver/disconnect-oauth.ts +1 -1
  1070. package/src/domain/mcpserver/enabledtools/enabledtools.ts +2 -2
  1071. package/src/domain/mcpserver/engine.ts +2 -3
  1072. package/src/domain/mcpserver/get-oauth-grant-status.ts +1 -1
  1073. package/src/domain/mcpserver/initiate-oauth-connect.ts +2 -2
  1074. package/src/domain/mcpserver/oauth/__tests__/token-exchange.test.ts +1 -1
  1075. package/src/domain/mcpserver/oauth/__tests__/token-refresh.test.ts +1 -1
  1076. package/src/domain/mcpserver/oauth/managed-env.ts +9 -9
  1077. package/src/domain/mcpserver/oauth/refresh.ts +2 -2
  1078. package/src/domain/mcpserver/oauth/token.ts +2 -2
  1079. package/src/domain/mcpserver/search-extractor.ts +1 -1
  1080. package/src/domain/memory/__tests__/capture-credential.test.ts +2 -2
  1081. package/src/domain/memory/__tests__/memory.test.ts +3 -3
  1082. package/src/domain/memory/constants.ts +5 -5
  1083. package/src/domain/memory/controller.ts +25 -29
  1084. package/src/domain/memory/steps.ts +19 -21
  1085. package/src/domain/oauthapp/__tests__/oauthapp.test.ts +1 -1
  1086. package/src/domain/oauthapp/controller.ts +2 -2
  1087. package/src/domain/oauthapp/refresolution.ts +4 -4
  1088. package/src/domain/organization/__tests__/organization.test.ts +1 -1
  1089. package/src/domain/organization/controller.ts +15 -16
  1090. package/src/domain/organization/search-extractor.ts +1 -1
  1091. package/src/domain/platform/__tests__/platform.test.ts +3 -3
  1092. package/src/domain/platform/controller.ts +4 -4
  1093. package/src/domain/platform/version.ts +1 -1
  1094. package/src/domain/platformclient/__tests__/mint.test.ts +3 -3
  1095. package/src/domain/platformclient/constants.ts +1 -1
  1096. package/src/domain/platformclient/controller.ts +2 -2
  1097. package/src/domain/platformclient/mint.ts +2 -2
  1098. package/src/domain/platformclient/resource-store.ts +1 -1
  1099. package/src/domain/platformclient/store-contract.ts +1 -1
  1100. package/src/domain/platformclient/store.ts +2 -2
  1101. package/src/domain/plugin/constants.ts +1 -1
  1102. package/src/domain/schedule/__tests__/cron.test.ts +1 -1
  1103. package/src/domain/schedule/__tests__/schedule.composed.test.ts +6 -6
  1104. package/src/domain/schedule/clock.ts +6 -6
  1105. package/src/domain/schedule/controller.ts +13 -15
  1106. package/src/domain/schedule/cron.ts +4 -4
  1107. package/src/domain/schedule/list-runs.ts +1 -1
  1108. package/src/domain/schedule/persist-update.ts +1 -1
  1109. package/src/domain/schedule/resume.ts +3 -3
  1110. package/src/domain/schedule/steps.ts +6 -6
  1111. package/src/domain/schedule/trigger.ts +8 -9
  1112. package/src/domain/session/__tests__/run-gate.test.ts +2 -2
  1113. package/src/domain/session/__tests__/run-target.test.ts +1 -1
  1114. package/src/domain/session/__tests__/session.test.ts +1 -1
  1115. package/src/domain/session/constants.ts +2 -2
  1116. package/src/domain/session/controller.ts +20 -14
  1117. package/src/domain/session/run-target.ts +1 -1
  1118. package/src/domain/session/search-extractor.ts +1 -1
  1119. package/src/domain/session/steps.ts +16 -24
  1120. package/src/domain/skill/__tests__/artifact-storage.test.ts +1 -1
  1121. package/src/domain/skill/__tests__/frontmatter.test.ts +1 -1
  1122. package/src/domain/skill/__tests__/skill.test.ts +1 -1
  1123. package/src/domain/skill/__tests__/zip-gate.test.ts +2 -2
  1124. package/src/domain/skill/controller.ts +3 -3
  1125. package/src/domain/skill/push.ts +1 -1
  1126. package/src/domain/skill/search-extractor.ts +1 -1
  1127. package/src/domain/skill/storage/artifact-storage.ts +4 -4
  1128. package/src/domain/skill/storage/frontmatter.ts +2 -3
  1129. package/src/domain/workflow/__tests__/agent-call-references.test.ts +168 -1
  1130. package/src/domain/workflow/__tests__/workflow.test.ts +2 -2
  1131. package/src/domain/workflow/agent-call-references.ts +49 -5
  1132. package/src/domain/workflow/controller.ts +22 -19
  1133. package/src/domain/workflow/converter/__tests__/converter.test.ts +6 -6
  1134. package/src/domain/workflow/converter/converter.ts +2 -2
  1135. package/src/domain/workflow/converter/task-converters.ts +4 -4
  1136. package/src/domain/workflow/registry/__tests__/document-catalog.test.ts +2 -2
  1137. package/src/domain/workflow/registry/__tests__/pin-validation.test.ts +2 -2
  1138. package/src/domain/workflow/registry/data/task-kind-registry.json +11 -11
  1139. package/src/domain/workflow/registry/document-catalog.ts +4 -5
  1140. package/src/domain/workflow/registry/model-catalog-provider.ts +4 -5
  1141. package/src/domain/workflow/registry/model-registry-store.ts +6 -6
  1142. package/src/domain/workflow/registry/pin-validation.ts +4 -5
  1143. package/src/domain/workflow/search-extractor.ts +1 -1
  1144. package/src/domain/workflow/steps.ts +22 -10
  1145. package/src/domain/workflow/validation/__tests__/budget-warnings.test.ts +1 -1
  1146. package/src/domain/workflow/validation/__tests__/task-config-constraints.test.ts +1 -1
  1147. package/src/domain/workflow/validation/budget-warnings.ts +1 -1
  1148. package/src/domain/workflow/validation/format-violation.ts +1 -1
  1149. package/src/domain/workflow/validation/model-validation.ts +2 -2
  1150. package/src/domain/workflowexecution/__tests__/engine-stub.ts +1 -1
  1151. package/src/domain/workflowexecution/__tests__/lifecycle.test.ts +236 -9
  1152. package/src/domain/workflowexecution/__tests__/read-authorization.test.ts +2 -2
  1153. package/src/domain/workflowexecution/__tests__/run-gate.test.ts +1 -1
  1154. package/src/domain/workflowexecution/__tests__/run-target.test.ts +1 -1
  1155. package/src/domain/workflowexecution/__tests__/store-faults.test.ts +2 -0
  1156. package/src/domain/workflowexecution/__tests__/update-status.test.ts +3 -3
  1157. package/src/domain/workflowexecution/__tests__/workflowexecution.test.ts +7 -6
  1158. package/src/domain/workflowexecution/constants.ts +6 -6
  1159. package/src/domain/workflowexecution/controller.ts +29 -21
  1160. package/src/domain/workflowexecution/create-execution-context-step.ts +7 -0
  1161. package/src/domain/workflowexecution/create-steps.ts +7 -7
  1162. package/src/domain/workflowexecution/engine.ts +13 -14
  1163. package/src/domain/workflowexecution/execution-filter.ts +1 -1
  1164. package/src/domain/workflowexecution/get-event-log.ts +2 -2
  1165. package/src/domain/workflowexecution/get-execution-summary.ts +4 -4
  1166. package/src/domain/workflowexecution/lifecycle.ts +56 -60
  1167. package/src/domain/workflowexecution/list-pending-approvals.ts +1 -1
  1168. package/src/domain/workflowexecution/run-target.ts +1 -1
  1169. package/src/domain/workflowexecution/search-extractor.ts +1 -1
  1170. package/src/domain/workflowexecution/send-signal.ts +1 -1
  1171. package/src/domain/workflowexecution/stream-broker.ts +7 -8
  1172. package/src/domain/workflowexecution/submit-approval.ts +3 -3
  1173. package/src/domain/workflowexecution/submit-file-decision.ts +1 -1
  1174. package/src/domain/workflowexecution/submit-workflow-task-approval.ts +3 -3
  1175. package/src/domain/workflowexecution/subscribe-events.ts +2 -2
  1176. package/src/domain/workflowexecution/subscribe.ts +5 -6
  1177. package/src/domain/workflowexecution/temporal/config.ts +1 -1
  1178. package/src/domain/workflowexecution/update-status.ts +8 -8
  1179. package/src/domain/workflowinstance/controller.ts +13 -14
  1180. package/src/domain/workflowinstance/search-extractor.ts +1 -1
  1181. package/src/domain/workflowinstance/steps.ts +3 -4
  1182. package/src/encryption/__tests__/codec-seam.test.ts +2 -2
  1183. package/src/encryption/__tests__/encryption.test.ts +7 -7
  1184. package/src/encryption/__tests__/key-manager.test.ts +1 -1
  1185. package/src/encryption/codec.ts +4 -4
  1186. package/src/encryption/encryption.ts +6 -7
  1187. package/src/encryption/errors.ts +1 -1
  1188. package/src/encryption/key-manager.ts +1 -1
  1189. package/src/encryption/scope.ts +2 -3
  1190. package/src/encryption/v1-codec.ts +4 -4
  1191. package/src/envmerge/envmerge.ts +3 -3
  1192. package/src/extensions/__tests__/built-in-authorization-composed.test.ts +16 -17
  1193. package/src/extensions/__tests__/composed-support.ts +2 -2
  1194. package/src/extensions/__tests__/direct-handler-authorization.test.ts +9 -9
  1195. package/src/extensions/__tests__/extension-composition.test.ts +344 -67
  1196. package/src/extensions/__tests__/iam-policy-composed.test.ts +8 -8
  1197. package/src/extensions/__tests__/iam-policy-points.test.ts +5 -5
  1198. package/src/extensions/__tests__/identity-account-composed.test.ts +5 -5
  1199. package/src/extensions/__tests__/identity-account-points.test.ts +1 -1
  1200. package/src/extensions/__tests__/identity.test.ts +4 -4
  1201. package/src/extensions/__tests__/list-read-scope-composed.test.ts +7 -7
  1202. package/src/extensions/__tests__/list-read-scope.test.ts +5 -5
  1203. package/src/extensions/__tests__/registry.test.ts +15 -15
  1204. package/src/extensions/__tests__/role-reconciliation-composed.test.ts +2 -2
  1205. package/src/extensions/__tests__/secret-cleanup-composed.test.ts +4 -4
  1206. package/src/extensions/__tests__/tier-truthfulness.test.ts +13 -15
  1207. package/src/extensions/authorization-queries.ts +9 -9
  1208. package/src/extensions/authorizer.ts +10 -12
  1209. package/src/extensions/caller-guards.ts +4 -5
  1210. package/src/extensions/drivers.ts +47 -58
  1211. package/src/extensions/gate-slots.ts +13 -15
  1212. package/src/extensions/identity-federation.ts +1 -1
  1213. package/src/extensions/identity.ts +25 -23
  1214. package/src/extensions/list-read-scope.ts +15 -15
  1215. package/src/extensions/organization-directory.ts +2 -3
  1216. package/src/extensions/policy-grant-scope.ts +5 -6
  1217. package/src/extensions/registry.ts +39 -41
  1218. package/src/extensions/resource-authorization.ts +24 -15
  1219. package/src/extensions/schedule-fire-caller.ts +2 -2
  1220. package/src/extensions/status-hooks.ts +7 -8
  1221. package/src/gocompat/__tests__/trim.test.ts +1 -1
  1222. package/src/gocompat/query-escape.ts +2 -2
  1223. package/src/gocompat/trim.ts +1 -1
  1224. package/src/identity/__tests__/oidc-discovery.test.ts +2 -2
  1225. package/src/identity/__tests__/oidc-userinfo.test.ts +1 -1
  1226. package/src/identity/__tests__/oidc-verifier.test.ts +59 -12
  1227. package/src/identity/oidc-discovery.ts +1 -1
  1228. package/src/identity/oidc-userinfo.ts +1 -1
  1229. package/src/identity/oidc-verifier.ts +31 -24
  1230. package/src/index.ts +109 -62
  1231. package/src/main.ts +8 -1
  1232. package/src/observability/rpc-metrics.ts +2 -2
  1233. package/src/pipeline/__tests__/billing-contract-rules.test.ts +1 -1
  1234. package/src/pipeline/__tests__/chain.test.ts +4 -4
  1235. package/src/pipeline/__tests__/errors.test.ts +4 -4
  1236. package/src/pipeline/__tests__/grantable-roles-for.test.ts +7 -7
  1237. package/src/pipeline/__tests__/inherited-authorization-parent.test.ts +1 -1
  1238. package/src/pipeline/__tests__/keyed-serializer.test.ts +122 -0
  1239. package/src/pipeline/__tests__/kind-by-enum-name.test.ts +2 -2
  1240. package/src/pipeline/__tests__/kind-served-by-edition.test.ts +3 -4
  1241. package/src/pipeline/__tests__/pipeline.test.ts +1 -1
  1242. package/src/pipeline/__tests__/race-support.ts +37 -0
  1243. package/src/pipeline/__tests__/router-transport.test.ts +4 -4
  1244. package/src/pipeline/__tests__/steps.test.ts +8 -4
  1245. package/src/pipeline/apiresource-meta.ts +7 -7
  1246. package/src/pipeline/chain.ts +5 -7
  1247. package/src/pipeline/errors.ts +10 -0
  1248. package/src/pipeline/interceptors/__tests__/auth.test.ts +16 -16
  1249. package/src/pipeline/interceptors/__tests__/error-boundary.test.ts +3 -3
  1250. package/src/pipeline/interceptors/__tests__/request-metrics.test.ts +5 -5
  1251. package/src/pipeline/interceptors/auth.ts +33 -34
  1252. package/src/pipeline/interceptors/error-boundary.ts +7 -10
  1253. package/src/pipeline/interceptors/protovalidate.ts +4 -3
  1254. package/src/pipeline/interceptors/request-metrics.ts +2 -3
  1255. package/src/pipeline/keyed-serializer.ts +64 -0
  1256. package/src/pipeline/request-context.ts +4 -4
  1257. package/src/pipeline/steps/__tests__/authorization-tuples.test.ts +80 -5
  1258. package/src/pipeline/steps/__tests__/authorize-annotation-completeness.test.ts +10 -10
  1259. package/src/pipeline/steps/__tests__/authorize-annotation-paths.test.ts +171 -0
  1260. package/src/pipeline/steps/__tests__/authorize-run-target.test.ts +1 -1
  1261. package/src/pipeline/steps/__tests__/authorize.test.ts +11 -11
  1262. package/src/pipeline/steps/__tests__/derived-id.test.ts +1 -1
  1263. package/src/pipeline/steps/__tests__/guard-memory-capture.test.ts +2 -2
  1264. package/src/pipeline/steps/__tests__/guard-reserved-labels.test.ts +2 -2
  1265. package/src/pipeline/steps/__tests__/references.test.ts +260 -8
  1266. package/src/pipeline/steps/__tests__/secret-cleanup.test.ts +2 -2
  1267. package/src/pipeline/steps/__tests__/server-stamped-reserved-labels.test.ts +2 -2
  1268. package/src/pipeline/steps/authorization-tuples.ts +62 -36
  1269. package/src/pipeline/steps/authorize-run-target.ts +4 -4
  1270. package/src/pipeline/steps/authorize.ts +21 -22
  1271. package/src/pipeline/steps/defaults.ts +9 -9
  1272. package/src/pipeline/steps/delete.ts +1 -1
  1273. package/src/pipeline/steps/guard-memory-capture.ts +3 -4
  1274. package/src/pipeline/steps/guard-reserved-labels.ts +7 -8
  1275. package/src/pipeline/steps/helpers.ts +1 -37
  1276. package/src/pipeline/steps/load-existing.ts +1 -1
  1277. package/src/pipeline/steps/load-for-apply.ts +1 -1
  1278. package/src/pipeline/steps/load-target.ts +1 -1
  1279. package/src/pipeline/steps/references.ts +198 -24
  1280. package/src/pipeline/steps/secret-cleanup.ts +2 -3
  1281. package/src/pipeline/steps/server-stamped-reserved-labels.ts +1 -2
  1282. package/src/pipeline/steps/shapes.ts +1 -1
  1283. package/src/query/README.md +1 -1
  1284. package/src/query/__tests__/query-services.test.ts +4 -4
  1285. package/src/query/activity/handler.ts +3 -3
  1286. package/src/query/search/__tests__/criteria.test.ts +1 -1
  1287. package/src/query/search/__tests__/query-store.test.ts +3 -3
  1288. package/src/query/search/controller.ts +1 -2
  1289. package/src/query/search/criteria.ts +4 -4
  1290. package/src/query/search/extractor.ts +4 -4
  1291. package/src/query/search/handler.ts +1 -1
  1292. package/src/query/search/query-store.ts +5 -5
  1293. package/src/runnerauth/__tests__/bound-execution.test.ts +36 -16
  1294. package/src/runnerauth/__tests__/built-in-runner-credential-provider.test.ts +9 -8
  1295. package/src/runnerauth/__tests__/runner-credential-provider.test.ts +1 -1
  1296. package/src/runnerauth/__tests__/runner-subject-composed.test.ts +4 -4
  1297. package/src/runnerauth/__tests__/runnerauth.test.ts +1 -1
  1298. package/src/runnerauth/bound-execution.ts +16 -17
  1299. package/src/runnerauth/runner-credential-provider.ts +14 -20
  1300. package/src/runnerauth/runnerauth.ts +3 -4
  1301. package/src/sandbox/__tests__/docker-ensure.test.ts +140 -0
  1302. package/src/sandbox/__tests__/docker-run.test.ts +86 -0
  1303. package/src/sandbox/__tests__/{docker.integration.test.ts → docker.test.ts} +13 -2
  1304. package/src/sandbox/__tests__/kubernetes.test.ts +44 -4
  1305. package/src/sandbox/__tests__/{local-process.integration.test.ts → local-process.test.ts} +7 -1
  1306. package/src/sandbox/__tests__/provisioner.test.ts +60 -6
  1307. package/src/sandbox/__tests__/session-activity.test.ts +289 -0
  1308. package/src/sandbox/__tests__/steps.test.ts +5 -6
  1309. package/src/sandbox/builtins.ts +6 -3
  1310. package/src/sandbox/docker.ts +71 -48
  1311. package/src/sandbox/kubernetes.ts +30 -12
  1312. package/src/sandbox/lane.ts +5 -5
  1313. package/src/sandbox/local-process.ts +8 -4
  1314. package/src/sandbox/naming.ts +37 -3
  1315. package/src/sandbox/provisioner.ts +93 -11
  1316. package/src/sandbox/runner-secret-names.ts +32 -0
  1317. package/src/sandbox/session-activity.ts +125 -0
  1318. package/src/sandbox/steps.ts +8 -10
  1319. package/src/sandbox/substrate/__test-utils__/fake-gateway.ts +348 -0
  1320. package/src/sandbox/substrate/__tests__/builtin.test.ts +105 -0
  1321. package/src/sandbox/substrate/__tests__/config.test.ts +149 -0
  1322. package/src/sandbox/substrate/__tests__/delay.test.ts +15 -0
  1323. package/src/sandbox/substrate/__tests__/driver.test.ts +1129 -0
  1324. package/src/sandbox/substrate/__tests__/egress.test.ts +191 -0
  1325. package/src/sandbox/substrate/__tests__/gateway.test.ts +451 -0
  1326. package/src/sandbox/substrate/__tests__/idle-decision.test.ts +43 -0
  1327. package/src/sandbox/substrate/__tests__/push.test.ts +109 -0
  1328. package/src/sandbox/substrate/__tests__/sweep.test.ts +542 -0
  1329. package/src/sandbox/substrate/__tests__/template.test.ts +291 -0
  1330. package/src/sandbox/substrate/builtin.ts +81 -0
  1331. package/src/sandbox/substrate/config.ts +199 -0
  1332. package/src/sandbox/substrate/delay.ts +8 -0
  1333. package/src/sandbox/substrate/driver.ts +917 -0
  1334. package/src/sandbox/substrate/egress.ts +173 -0
  1335. package/src/sandbox/substrate/gateway.ts +451 -0
  1336. package/src/sandbox/substrate/gen/ateapipb/ateapi_pb.ts +4821 -0
  1337. package/src/sandbox/substrate/idle-decision.ts +45 -0
  1338. package/src/sandbox/substrate/limits.ts +27 -0
  1339. package/src/sandbox/substrate/push.ts +118 -0
  1340. package/src/sandbox/substrate/sweep.ts +290 -0
  1341. package/src/sandbox/substrate/template.ts +290 -0
  1342. package/src/store/README.md +9 -10
  1343. package/src/store/__tests__/{list-index.measure.test.ts → list-index.load.test.ts} +4 -6
  1344. package/src/store/__tests__/port-contract.test.ts +3 -3
  1345. package/src/store/__tests__/store-contract.ts +26 -16
  1346. package/src/store/interface.ts +34 -34
  1347. package/src/store/logger.ts +2 -2
  1348. package/src/store/port-contract.ts +3 -3
  1349. package/src/store/postgres/__tests__/{migrations.test.ts → migrations.postgres.test.ts} +5 -1
  1350. package/src/store/postgres/__tests__/{store-contract.test.ts → store-contract.postgres.test.ts} +3 -3
  1351. package/src/store/postgres/__tests__/support.ts +2 -2
  1352. package/src/store/postgres/__tests__/tsquery.test.ts +1 -1
  1353. package/src/store/postgres/migrations.ts +14 -14
  1354. package/src/store/postgres/store.ts +19 -21
  1355. package/src/store/postgres/tsquery.ts +3 -3
  1356. package/src/store/proto-fields.ts +29 -1
  1357. package/src/store/rfc3339.ts +2 -2
  1358. package/src/store/sqlite/__tests__/fixtures/go-v6-database.sql +1 -1
  1359. package/src/store/sqlite/__tests__/fts5.test.ts +2 -2
  1360. package/src/store/sqlite/__tests__/migrations.test.ts +13 -8
  1361. package/src/store/sqlite/__tests__/store-contract.test.ts +2 -2
  1362. package/src/store/sqlite/__tests__/store.test.ts +4 -4
  1363. package/src/store/sqlite/__tests__/support.ts +3 -3
  1364. package/src/store/sqlite/fts5.ts +5 -5
  1365. package/src/store/sqlite/migrations.ts +10 -10
  1366. package/src/store/sqlite/store.ts +27 -21
  1367. package/src/temporal/README.md +3 -3
  1368. package/src/temporal/__tests__/manager.test.ts +6 -5
  1369. package/src/temporal/__tests__/payload-codec.test.ts +1 -1
  1370. package/src/temporal/__tests__/sdk-log-workflows.ts +1 -1
  1371. package/src/temporal/__tests__/sdk-logger.test.ts +1 -1
  1372. package/src/temporal/agentexecution/__tests__/activities.test.ts +21 -5
  1373. package/src/temporal/agentexecution/__tests__/{invoke-workflow.test.ts → invoke-workflow.temporal.test.ts} +12 -12
  1374. package/src/temporal/agentexecution/__tests__/own-behalf-status-writes.test.ts +6 -3
  1375. package/src/temporal/agentexecution/__tests__/replay.test.ts +4 -4
  1376. package/src/temporal/agentexecution/activities.ts +34 -20
  1377. package/src/temporal/agentexecution/dispatch.ts +1 -1
  1378. package/src/temporal/agentexecution/engine-client.ts +4 -4
  1379. package/src/temporal/agentexecution/names.ts +11 -12
  1380. package/src/temporal/agentexecution/worker.ts +11 -3
  1381. package/src/temporal/agentexecution/workflows/invoke-agent-execution.ts +28 -30
  1382. package/src/temporal/manager.ts +12 -12
  1383. package/src/temporal/mcpserver/engine-client.ts +1 -1
  1384. package/src/temporal/mcpserver/names.ts +1 -2
  1385. package/src/temporal/payload-codec.ts +4 -5
  1386. package/src/temporal/runner-failure.ts +2 -2
  1387. package/src/temporal/schedule/__tests__/reconciler.test.ts +4 -4
  1388. package/src/temporal/schedule/__tests__/replay.test.ts +2 -2
  1389. package/src/temporal/schedule/__tests__/run-starter.test.ts +2 -2
  1390. package/src/temporal/schedule/__tests__/syncer.test.ts +1 -2
  1391. package/src/temporal/schedule/__tests__/{tick-workflow.test.ts → tick-workflow.temporal.test.ts} +1 -2
  1392. package/src/temporal/schedule/activities.ts +4 -4
  1393. package/src/temporal/schedule/config.ts +5 -5
  1394. package/src/temporal/schedule/model-pinning.ts +1 -1
  1395. package/src/temporal/schedule/names.ts +1 -1
  1396. package/src/temporal/schedule/reconciler.ts +6 -6
  1397. package/src/temporal/schedule/run-ledger.ts +2 -2
  1398. package/src/temporal/schedule/run-starter.ts +17 -17
  1399. package/src/temporal/schedule/syncer.ts +6 -7
  1400. package/src/temporal/schedule/workflows/tick.ts +4 -4
  1401. package/src/temporal/workflow-source.ts +4 -5
  1402. package/src/temporal/workflowexecution/__tests__/activities.test.ts +61 -2
  1403. package/src/temporal/workflowexecution/__tests__/{invoke-workflow.test.ts → invoke-workflow.temporal.test.ts} +5 -4
  1404. package/src/temporal/workflowexecution/__tests__/replay-histories/child-failed.json +3 -3
  1405. package/src/temporal/workflowexecution/__tests__/replay.test.ts +1 -1
  1406. package/src/temporal/workflowexecution/activities.ts +27 -16
  1407. package/src/temporal/workflowexecution/engine-client.ts +4 -5
  1408. package/src/temporal/workflowexecution/names.ts +8 -9
  1409. package/src/temporal/workflowexecution/worker.ts +12 -4
  1410. package/src/temporal/workflowexecution/workflow-input.ts +4 -4
  1411. package/src/temporal/workflowexecution/workflows/invoke-workflow-execution.ts +10 -10
  1412. package/src/transport/__tests__/demux.test.ts +10 -10
  1413. package/src/transport/console/__tests__/handler.test.ts +11 -3
  1414. package/src/transport/console/__tests__/resolver.test.ts +15 -2
  1415. package/src/transport/console/assets.ts +2 -2
  1416. package/src/transport/console/handler.ts +10 -10
  1417. package/src/transport/console/resolver.ts +16 -5
  1418. package/src/transport/constants.ts +3 -3
  1419. package/src/transport/cors.ts +1 -1
  1420. package/src/transport/demux.ts +4 -4
  1421. package/src/transport/registry/__tests__/lanes.test.ts +4 -5
  1422. package/src/transport/registry/lanes.ts +2 -2
  1423. package/src/transport/server.ts +9 -10
  1424. package/dist/authorization/resource-creators.d.ts +0 -4
  1425. package/dist/authorization/resource-creators.d.ts.map +0 -1
  1426. package/dist/authorization/resource-creators.js +0 -44
  1427. package/dist/authorization/resource-creators.js.map +0 -1
  1428. package/src/authorization/resource-creators.ts +0 -48
  1429. /package/src/authorization/__tests__/{organization-directory.test.ts → organization-directory.postgres.test.ts} +0 -0
  1430. /package/src/authorization/__tests__/{schedule-fire-caller.test.ts → schedule-fire-caller.postgres.test.ts} +0 -0
  1431. /package/src/authorization/__tests__/{trusted-local-authorizer.test.ts → trusted-local-authorizer.postgres.test.ts} +0 -0
  1432. /package/src/authorization/__tests__/{unit-owned-kinds.test.ts → unit-owned-kinds.postgres.test.ts} +0 -0
  1433. /package/src/domain/platformclient/__tests__/{resource-store.test.ts → resource-store.postgres.test.ts} +0 -0
  1434. /package/src/runnerauth/__tests__/{runner-subject-verifier.test.ts → runner-subject-verifier.postgres.test.ts} +0 -0
  1435. /package/src/store/postgres/__tests__/{list-index-repair.test.ts → list-index-repair.postgres.test.ts} +0 -0
  1436. /package/src/temporal/__tests__/{sdk-logger.e2e.test.ts → sdk-logger.temporal.test.ts} +0 -0
@@ -4,14 +4,14 @@
4
4
  * client, so the FULL create pipeline runs (session auto-create, execution
5
5
  * context, persist, workflow start). Where the cloud starter mints a
6
6
  * schedule token and re-enters the pipeline behind FGA gates, OSS has no
7
- * caller identity by design (DD-015 D-G): the org is stamped from the
8
- * schedule's own metadata. A composition restores the Java posture through
9
- * the scheduleFireCaller driver point (stigmer-cloud#572): when composed,
10
- * every fire mints its caller and the create propagates it via the R5
11
- * in-process header; a mint failure propagates like any infrastructure
7
+ * caller identity by design: the org is stamped from the schedule's own
8
+ * metadata. A composition gives fires an identity through the
9
+ * scheduleFireCaller driver point: when composed, every fire mints its
10
+ * caller and the create propagates it via the in-process caller header; a mint
11
+ * failure propagates like any infrastructure
12
12
  * fault (the tick activity retries, the trigger surfaces it).
13
13
  *
14
- * Idempotency is the CLOCK's job here (DD-015 D-F): the OSS create
14
+ * Idempotency is the CLOCK's job here: the OSS create
15
15
  * pipeline deliberately has no duplicate check (it would tax every
16
16
  * execution create in the product), so the starter looks up its own
17
17
  * deterministic execution name before creating. Within one tick activity
@@ -19,7 +19,7 @@
19
19
  * one reminder per fire, by construction.
20
20
  *
21
21
  * Serves BOTH fire paths: the tick's start-run activity (origin=cron) and
22
- * the trigger RPC's direct-run step (origin=manual, DD-017 D-5).
22
+ * the trigger RPC's direct-run step (origin=manual).
23
23
  */
24
24
  import { Code, ConnectError } from "@connectrpc/connect";
25
25
  import { create } from "@bufbuild/protobuf";
@@ -69,11 +69,11 @@ export const SESSION_SUBJECT_PREFIX = "Scheduled run: ";
69
69
  * key the cloud edition's scope step writes (Go ScheduleIDLabelKey).
70
70
  *
71
71
  * In OSS the label is also the environment-resolution key: the execution
72
- * context step reads it to merge the schedule's environment_refs (DD-017
73
- * D-4). Cloud deliberately resolves through the validated token claim
72
+ * context step reads it to merge the schedule's environment_refs. Cloud
73
+ * deliberately resolves through the validated token claim
74
74
  * instead — a client-suppliable label must not widen what a cloud sandbox
75
75
  * reads — but OSS is single-user with no trust boundary, and it has no
76
- * tokens to carry a claim (the DD-015 divergence posture).
76
+ * tokens to carry a claim.
77
77
  */
78
78
  export const SCHEDULE_ID_LABEL_KEY = "stigmer.ai/schedule-id";
79
79
 
@@ -91,7 +91,7 @@ export type RunOutcomeResult =
91
91
  * starter needs (Go ExecutionCreator; satisfied through
92
92
  * src/boot/inprocess.ts). `fireCaller`, when present, is the composed
93
93
  * edition identity the fire acts as — the implementation propagates it
94
- * through the R5 in-process header; absent, the create enters as the
94
+ * through the in-process caller header; absent, the create enters as the
95
95
  * `internal` class (the OSS default, byte-identical).
96
96
  */
97
97
  export interface ScheduleExecutionCreator {
@@ -295,7 +295,7 @@ export class RunStarter {
295
295
  return { kind: "started", executionId, alreadyExisted: true };
296
296
  }
297
297
 
298
- // The composed fire-caller mint (stigmer-cloud#572): minted per fire,
298
+ // The composed fire-caller mint: minted per fire,
299
299
  // after the idempotency lookup (a found winner needs no credential)
300
300
  // and before the create it authenticates. Failure is an
301
301
  // infrastructure fault — thrown, so the tick activity retries under
@@ -457,7 +457,7 @@ export class RunStarter {
457
457
  const executionConfig = create(ExecutionConfigSchema, {
458
458
  approvalMode: ApprovalMode.UNATTENDED,
459
459
  // The platform profile, then the schedule's own run_config CLAMPED
460
- // by it (DD-017 D-3): per field, min(owner, platform) when the
460
+ // by it: per field, min(owner, platform) when the
461
461
  // platform cap is set; the owner value stands when the platform cap
462
462
  // is unset. The owner can lower spend, never raise it past the
463
463
  // platform.
@@ -494,12 +494,12 @@ export class RunStarter {
494
494
  executionConfig.thinkingMode = runConfig.thinkingMode;
495
495
  }
496
496
 
497
- // The fresh per-fire session speaks the invocation's session half
498
- // (DD-018 D-3): harness and workspace come from the owner's spec. An
497
+ // The fresh per-fire session speaks the invocation's session half:
498
+ // harness and workspace come from the owner's spec. An
499
499
  // unspecified harness stays unset — the platform default applies (OSS:
500
500
  // native). Workspace entries are git-only by write-time validation;
501
501
  // credentials, when a repo is private, ride an org-shared environment
502
- // holding GITHUB_TOKEN (DD-018 D-4).
502
+ // holding GITHUB_TOKEN.
503
503
  const sessionSpec = create(SessionSpecSchema, {
504
504
  subject: SESSION_SUBJECT_PREFIX + (schedule.metadata?.slug ?? ""),
505
505
  workspaceEntries: invocation?.workspaceEntries ?? [],
@@ -521,7 +521,7 @@ export class RunStarter {
521
521
  // own org is stamped directly — it is load-bearing for the session
522
522
  // and execution context.
523
523
  org: schedule.metadata?.org ?? "",
524
- // The audit link (DD-008 D4) AND this edition's
524
+ // The audit link AND this edition's
525
525
  // environment-resolution key — see SCHEDULE_ID_LABEL_KEY.
526
526
  labels: { [SCHEDULE_ID_LABEL_KEY]: schedule.metadata?.id ?? "" },
527
527
  }),
@@ -12,18 +12,17 @@
12
12
  * unrepresentable here.
13
13
  *
14
14
  * Status writes go through store.updateResource — the OSS equivalent of
15
- * the cloud's targeted leaf patches (DD-015 D-C): SQLite stores one
15
+ * the cloud's targeted leaf patches: SQLite stores one
16
16
  * protobuf blob, so the atomic read-modify-write under the store's write
17
17
  * lock is what keeps a concurrent `stigmer apply` from clobbering the
18
18
  * stamp (and vice versa). status.next_fire_at is the contract's arming
19
19
  * witness: stamped from Temporal's own answer when armed, cleared when the
20
20
  * artifact is paused, absent while nothing has converged.
21
21
  *
22
- * Go's Clock/Syncer also carries a Trigger method (the DD-014
23
- * artifact-trigger lane); DD-017 D-5 rewired the trigger RPC to the
24
- * direct-run path and left it with zero production callers, so this port
25
- * deliberately omits it (sub-project decision 2, owner-ratified at the
26
- * plan gate; disclosed in the PR register).
22
+ * Go's Clock/Syncer also carries a Trigger method (the artifact-trigger
23
+ * lane); the trigger RPC runs through the direct-run path instead, which
24
+ * left it with zero production callers, so this port deliberately omits
25
+ * it.
27
26
  */
28
27
  import type { Client, ScheduleDescription } from "@temporalio/client";
29
28
  import { ScheduleAlreadyRunning, ScheduleNotFoundError } from "@temporalio/client";
@@ -45,7 +44,7 @@ import { ensureStatus } from "./status-writes.js";
45
44
  /**
46
45
  * The syncer's answer when no Temporal client exists right now (Go
47
46
  * ErrTemporalUnavailable). Callers on the write path treat it as "converge
48
- * later" (arming is best-effort — DD-015 D-A).
47
+ * later" (arming is best-effort).
49
48
  */
50
49
  export class TemporalUnavailableError extends Error {
51
50
  constructor() {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * The tick workflow — ports pkg/domain/schedule/temporal/tick_workflow.go:
3
- * one schedule fire, spanning its run (DD-013 via DD-015): record the
3
+ * one schedule fire, spanning its run: record the
4
4
  * fire, start the run, poll it to a terminal phase, record the verdict.
5
5
  * Spanning is what makes the artifact's overlap SKIP genuinely mean "never
6
6
  * start a run while the last is active", and the verdict is what feeds the
@@ -9,7 +9,7 @@
9
9
  * WHY A TIMER-DRIVEN POLL AND NOT THE CALLBACK TOKEN — read before
10
10
  * "fixing" this. The platform already uses async activity completion for
11
11
  * call:agent, so the token is the tempting shape here too. It loses on
12
- * grounds that are edition-neutral (DD-015 D-E): the token cannot be
12
+ * grounds that are edition-neutral: the token cannot be
13
13
  * re-armed after a create-then-crash, and its completion fire is
14
14
  * best-effort — two silent-hang modes on a surface where a hang is a
15
15
  * silenced reminder. The poll holds no worker thread (the workflow is
@@ -20,11 +20,11 @@
20
20
  * FORWARD CONSTRAINT: ticks live for minutes-to-an-hour once tracking is
21
21
  * real, and OSS releases cut every 1-3 days — an in-flight tick WILL
22
22
  * straddle a binary upgrade. Any behavioral change to this workflow body
23
- * must be gated with patched()/deprecatePatch() (OD-6 discipline), and the
23
+ * must be gated with patched()/deprecatePatch(), and the
24
24
  * replay gate (__tests__/replay.test.ts) must stay green against the
25
25
  * committed histories.
26
26
  *
27
- * ERROR POSTURE (the #18 panel lesson, applied from day one): Go's
27
+ * ERROR POSTURE: Go's
28
28
  * `return err` fails the WORKFLOW EXECUTION; a plain thrown Error in the
29
29
  * TS sandbox fails only the workflow TASK and retries forever. Every Go
30
30
  * error return is therefore an ApplicationFailure here. Cancellation
@@ -7,12 +7,11 @@
7
7
  * Workflow code runs inside Temporal's deterministic sandbox and must be
8
8
  * bundled separately from host code. Two production modes:
9
9
  *
10
- * 1. **Runtime** (this sub-project's operative mode, ratified brief #7 of
11
- * sub-project 20260824.03): the worker bundles the compiled dist entry
10
+ * 1. **Runtime** (the operative mode): the worker bundles the compiled dist entry
12
11
  * on boot via the SDK's built-in webpack. This is how conformance and
13
12
  * the CLI-launched dev server boot — node_modules present, no native
14
13
  * packaging needed.
15
- * 2. **Prebuilt** (the hook #24 cli-cutover fills): the slim artifact
14
+ * 2. **Prebuilt** (slim artifacts): the slim artifact
16
15
  * cannot bundle at runtime (no webpack/@swc shipped), so the build
17
16
  * emits the bundle next to main.js and this resolver finds it as a
18
17
  * sibling — exactly the runner's discovery rule.
@@ -20,14 +19,14 @@
20
19
  * Callers pass URLs relative to their own module (import.meta.url): in the
21
20
  * tsc dist the sibling bundle never exists so dev builds always take the
22
21
  * runtime path; in a slim artifact every module collapses into main.js and
23
- * the sibling resolves next to it, where #24's build will emit it.
22
+ * the sibling resolves next to it, where scripts/bundle-slim.mjs emits it.
24
23
  */
25
24
  import { existsSync } from "node:fs";
26
25
  import { fileURLToPath } from "node:url";
27
26
 
28
27
  export type WorkflowSource =
29
28
  | {
30
- /** Pre-built bundle on disk (slim artifacts; #24). */
29
+ /** Pre-built bundle on disk (slim artifacts). */
31
30
  readonly kind: "prebuilt";
32
31
  readonly codePath: string;
33
32
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Pins the worker's UpdateWorkflowExecutionStatus activity against Go's
3
3
  * update_status_impl.go — the ACTIVITY merge, deliberately distinct from
4
- * the RPC's applyUpdateStatusMerge (sub-project DD-001 brief):
4
+ * the RPC's applyUpdateStatusMerge:
5
5
  *
6
6
  * - the statusAudit bump is UNCONDITIONAL (the RPC bumps only on phase
7
7
  * transitions) — the pin that would catch a "consolidate the merges"
@@ -11,7 +11,9 @@
11
11
  * - a missing execution is a wrapped ordinary error with Go's
12
12
  * "workflow execution not found:" text, not a NotFound RPC error;
13
13
  * - the persist rides the atomic updateResource and broadcasts through
14
- * the domain broker after commit.
14
+ * the domain broker after commit;
15
+ * - DeleteExecutionContext hands the run's context to the server's own
16
+ * delete edge (stigmer#1647), idempotently.
15
17
  */
16
18
  import { mkdtempSync, rmSync } from "node:fs";
17
19
  import { tmpdir } from "node:os";
@@ -29,6 +31,7 @@ import {
29
31
  } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/api_pb";
30
32
  import type { WorkflowExecutionStatus } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/api_pb";
31
33
  import { ExecutionPhase } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/enum_pb";
34
+ import { ExecutionContextSchema } from "@stigmer/protos/ai/stigmer/agentic/executioncontext/v1/api_pb";
32
35
  import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
33
36
 
34
37
  import { createLogger } from "../../../boot/logger.js";
@@ -40,6 +43,7 @@ import {
40
43
  createWorkflowExecutionActivities,
41
44
  } from "../activities.js";
42
45
  import { UPDATE_WORKFLOW_EXECUTION_STATUS_ACTIVITY_NAME } from "../names.js";
46
+ import { DELETE_EXECUTION_CONTEXT_ACTIVITY_NAME } from "../../../domain/executioncontext/temporal/delete-execution-context.js";
43
47
 
44
48
  const silentLogger = createLogger({
45
49
  level: "error",
@@ -165,6 +169,9 @@ describe("UpdateWorkflowExecutionStatus activity (real store)", () => {
165
169
  logger: silentLogger,
166
170
  broker,
167
171
  sandboxTerminalObserver: () => {},
172
+ executionContextDeleter: () => ({
173
+ delete: () => Promise.reject(new Error("unused in this suite")),
174
+ }),
168
175
  });
169
176
  return activities[UPDATE_WORKFLOW_EXECUTION_STATUS_ACTIVITY_NAME] as (
170
177
  executionId: string,
@@ -260,3 +267,55 @@ describe("UpdateWorkflowExecutionStatus activity (real store)", () => {
260
267
  ).rejects.toThrowError(/^workflow execution not found: /);
261
268
  });
262
269
  });
270
+
271
+ describe("DeleteExecutionContext activity (real store)", () => {
272
+ let dir: string;
273
+ let store: Store;
274
+
275
+ beforeAll(() => {
276
+ dir = mkdtempSync(path.join(tmpdir(), "wfexec-ec-activity-"));
277
+ store = SqliteStore.open(path.join(dir, "test.db"));
278
+ });
279
+
280
+ afterAll(async () => {
281
+ await store.close();
282
+ rmSync(dir, { recursive: true, force: true });
283
+ });
284
+
285
+ it("hands the execution's ExecutionContext to the server's delete edge, idempotently", async () => {
286
+ await store.saveResource(
287
+ ApiResourceKind.execution_context,
288
+ "ectx_wf_1",
289
+ ExecutionContextSchema,
290
+ create(ExecutionContextSchema, {
291
+ apiVersion: "agentic.stigmer.ai/v1",
292
+ kind: "ExecutionContext",
293
+ metadata: { id: "ectx_wf_1", name: "ec", org: "o" },
294
+ spec: { executionId: "wfe_del_1" },
295
+ }),
296
+ );
297
+ // The edge as a recording fake that removes the row the way the delete
298
+ // chain does (the chain itself: extension-composition.test.ts).
299
+ const deleted: string[] = [];
300
+ const activities = createWorkflowExecutionActivities({
301
+ store,
302
+ logger: silentLogger,
303
+ broker: new StreamBroker(silentLogger),
304
+ sandboxTerminalObserver: () => {},
305
+ executionContextDeleter: () => ({
306
+ delete: async (contextId) => {
307
+ deleted.push(contextId);
308
+ await store.deleteResource(ApiResourceKind.execution_context, contextId);
309
+ },
310
+ }),
311
+ });
312
+ const remove = activities[DELETE_EXECUTION_CONTEXT_ACTIVITY_NAME] as (
313
+ executionId: string,
314
+ ) => Promise<void>;
315
+
316
+ await remove("wfe_del_1");
317
+ await expect(remove("wfe_del_1")).resolves.toBeUndefined();
318
+
319
+ expect(deleted, "one delete, through the edge").toEqual(["ectx_wf_1"]);
320
+ });
321
+ });
@@ -18,9 +18,10 @@
18
18
  * task-specific channel with its payload; a malformed envelope is
19
19
  * ignored without burning a relay.
20
20
  *
21
- * Follows #18's discipline: TestWorkflowEnvironment.createLocal (needs
22
- * the `temporal` CLI); every test skips VISIBLY when the local test
23
- * server cannot start — never a vacuous green (panel finding B3).
21
+ * Follows the other Temporal suites' discipline:
22
+ * TestWorkflowEnvironment.createLocal (needs the `temporal` CLI); every
23
+ * test skips VISIBLY when the local test server cannot start — never a
24
+ * vacuous green.
24
25
  * Delete-recorder pins are at-least-once-honest (oss#892): Temporal
25
26
  * activities re-execute when a completion fails to commit, so the pin is
26
27
  * identity + at-least-once, never an exact count.
@@ -171,7 +172,7 @@ function expectExecutionContextDeleted(executionId: string): void {
171
172
  * Releases a holding stub child THROUGH the orchestrator's relay lane —
172
173
  * the orchestrator has no test-release handler of its own; the envelope
173
174
  * is exactly how any task-specific signal reaches the child in
174
- * production (June DD-013).
175
+ * production.
175
176
  */
176
177
  async function releaseChild(
177
178
  handle: import("@temporalio/client").WorkflowHandle,
@@ -253,7 +253,7 @@
253
253
  "failure": {
254
254
  "message": "child engine boom",
255
255
  "source": "TypeScriptSDK",
256
- "stackTrace": "ApplicationFailure: child engine boom\n at Function.create (/Users/suresh/scm/github.com/stigmer/.worktrees/stigmer/feat-20260825.04.sp.workflowexecution-orchestration/backend/services/stigmer-server-ts/node_modules/@temporalio/common/src/failure.ts:227:11)\n at create (/Users/suresh/scm/github.com/stigmer/.worktrees/stigmer/feat-20260825.04.sp.workflowexecution-orchestration/backend/services/stigmer-server-ts/src/temporal/workflowexecution/__tests__/test-workflows.ts:57:29)",
256
+ "stackTrace": "ApplicationFailure: child engine boom\n at Function.create (/repo/backend/services/stigmer-server-ts/node_modules/@temporalio/common/src/failure.ts:227:11)\n at create (/repo/backend/services/stigmer-server-ts/src/temporal/workflowexecution/__tests__/test-workflows.ts:57:29)",
257
257
  "applicationFailureInfo": {}
258
258
  },
259
259
  "namespace": "default",
@@ -645,13 +645,13 @@
645
645
  "failure": {
646
646
  "message": "Workflow execution failed",
647
647
  "source": "TypeScriptSDK",
648
- "stackTrace": "ApplicationFailure: Workflow execution failed\n at Function.create (/Users/suresh/scm/github.com/stigmer/.worktrees/stigmer/feat-20260825.04.sp.workflowexecution-orchestration/backend/services/stigmer-server-ts/node_modules/@temporalio/common/src/failure.ts:227:11)\n at create (/Users/suresh/scm/github.com/stigmer/.worktrees/stigmer/feat-20260825.04.sp.workflowexecution-orchestration/backend/services/stigmer-server-ts/src/temporal/workflowexecution/workflows/invoke-workflow-execution.ts:205:29)",
648
+ "stackTrace": "ApplicationFailure: Workflow execution failed\n at Function.create (/repo/backend/services/stigmer-server-ts/node_modules/@temporalio/common/src/failure.ts:227:11)\n at create (/repo/backend/services/stigmer-server-ts/src/temporal/workflowexecution/workflows/invoke-workflow-execution.ts:205:29)",
649
649
  "cause": {
650
650
  "message": "Child Workflow execution failed",
651
651
  "cause": {
652
652
  "message": "child engine boom",
653
653
  "source": "TypeScriptSDK",
654
- "stackTrace": "ApplicationFailure: child engine boom\n at Function.create (/Users/suresh/scm/github.com/stigmer/.worktrees/stigmer/feat-20260825.04.sp.workflowexecution-orchestration/backend/services/stigmer-server-ts/node_modules/@temporalio/common/src/failure.ts:227:11)\n at create (/Users/suresh/scm/github.com/stigmer/.worktrees/stigmer/feat-20260825.04.sp.workflowexecution-orchestration/backend/services/stigmer-server-ts/src/temporal/workflowexecution/__tests__/test-workflows.ts:57:29)",
654
+ "stackTrace": "ApplicationFailure: child engine boom\n at Function.create (/repo/backend/services/stigmer-server-ts/node_modules/@temporalio/common/src/failure.ts:227:11)\n at create (/repo/backend/services/stigmer-server-ts/src/temporal/workflowexecution/__tests__/test-workflows.ts:57:29)",
655
655
  "applicationFailureInfo": {}
656
656
  },
657
657
  "childWorkflowExecutionFailureInfo": {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Replay determinism gate for the workflow-execution orchestrator — the
3
- * twin of the agentexecution gate (see its header for the OD-6
3
+ * twin of the agentexecution gate (see its header for the
4
4
  * discipline): committed histories from released workflow code must
5
5
  * replay green on the CURRENT code; a red run means a change is not
6
6
  * replay-safe for in-flight executions and needs patched(), never a
@@ -1,13 +1,15 @@
1
1
  /**
2
2
  * Server-side activity implementations for the workflow-execution worker —
3
3
  * ports pkg/domain/workflowexecution/temporal/activities
4
- * (update_status_impl.go) and registers #15's DeleteExecutionContext seam.
4
+ * (update_status_impl.go) and registers DeleteExecutionContext, the
5
+ * server's own delete of the run's context through the context's delete
6
+ * chain (domain/executioncontext/internal-delete.ts, stigmer#1647).
5
7
  *
6
8
  * UpdateWorkflowExecutionStatus deliberately does NOT reuse the domain's
7
9
  * updateStatus RPC merge (the choice agentexecution's port made): in Go
8
10
  * the two merges are DIFFERENT code with different semantics, and the
9
11
  * differences are wire-visible for exactly the payloads this workflow
10
- * sends (sub-project DD-001 brief, owner-ratified):
12
+ * sends:
11
13
  *
12
14
  * - The activity bumps statusAudit.updatedAt on EVERY call; the RPC
13
15
  * bumps only on phase TRANSITIONS (the recents-sidebar rule). A
@@ -18,12 +20,12 @@
18
20
  * ("workflow execution not found: …"), not the RPC's NotFound.
19
21
  *
20
22
  * What IS adopted from the domain: the atomic `updateResource` persist
21
- * (the #20 DD-001 posture — Go's activity is a load-then-save with the
23
+ * (Go's activity is a load-then-save with the
22
24
  * same lost-update window its RPC has; not ported) and the post-persist
23
25
  * broadcast through the domain's StreamBroker (Go wires the same broker
24
26
  * into both).
25
27
  *
26
- * Payload boundary (sub-project 20260824.03 design rule): statuses cross
28
+ * Payload boundary: statuses cross
27
29
  * as proto-JSON — the TS default payload converter cannot serialize the
28
30
  * bigint int64 fields of typed messages. Server-internal payloads; only
29
31
  * the activity NAMES are byte-pinned.
@@ -47,10 +49,9 @@ import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/
47
49
 
48
50
  import type { Logger } from "../../boot/logger.js";
49
51
  import type { StreamBroker } from "../../domain/workflowexecution/stream-broker.js";
50
- import {
51
- DELETE_EXECUTION_CONTEXT_ACTIVITY_NAME,
52
- deleteExecutionContextForExecution,
53
- } from "../../domain/executioncontext/temporal/delete-execution-context.js";
52
+ import { deleteExecutionContextForExecution } from "../../domain/executioncontext/internal-delete.js";
53
+ import type { ExecutionContextDeleter } from "../../domain/executioncontext/internal-delete.js";
54
+ import { DELETE_EXECUTION_CONTEXT_ACTIVITY_NAME } from "../../domain/executioncontext/temporal/delete-execution-context.js";
54
55
  import type { WorkflowSandboxTerminalObserver } from "../../sandbox/steps.js";
55
56
  import type { Store } from "../../store/interface.js";
56
57
  import { UPDATE_WORKFLOW_EXECUTION_STATUS_ACTIVITY_NAME } from "./names.js";
@@ -60,12 +61,18 @@ export interface WorkflowExecutionActivityDeps {
60
61
  readonly logger: Logger;
61
62
  readonly broker: StreamBroker;
62
63
  /**
63
- * Fires the workflow-sandbox teardown on terminal transitions (§6d,
64
- * O6) — this activity is the orchestrator's failure/cancellation
65
- * persist site, one of the three status write sites the Q3b ruling
66
- * wires.
64
+ * Fires the workflow-sandbox teardown on terminal transitions — this
65
+ * activity is the orchestrator's failure/cancellation persist site, one
66
+ * of the three status write sites that fire it.
67
67
  */
68
68
  readonly sandboxTerminalObserver: WorkflowSandboxTerminalObserver;
69
+ /**
70
+ * The server's own delete of a run's ExecutionContext, read per call:
71
+ * the context's delete chain over the in-process transport, which exists
72
+ * only once the routes do (the composition root's requireInProcess
73
+ * idiom).
74
+ */
75
+ readonly executionContextDeleter: () => ExecutionContextDeleter;
69
76
  }
70
77
 
71
78
  /**
@@ -84,7 +91,7 @@ export function createWorkflowExecutionActivities(
84
91
  * The orchestrator's status persist, invoked as a LOCAL activity
85
92
  * (pause/resume handlers) AND a REGULAR activity (failure/
86
93
  * cancellation paths) — one implementation serves both modes,
87
- * exactly one named registration (see names.ts's DD-002 note on why
94
+ * exactly one named registration (see names.ts's note on why
88
95
  * the NAME is load-bearing).
89
96
  */
90
97
  [UPDATE_WORKFLOW_EXECUTION_STATUS_ACTIVITY_NAME]: async (
@@ -95,7 +102,7 @@ export function createWorkflowExecutionActivities(
95
102
 
96
103
  let updated: WorkflowExecution;
97
104
  // The phase BEFORE this merge, read under the write lock — the
98
- // sandbox observer below keys on the transition (§6d, O6).
105
+ // sandbox observer below keys on the transition.
99
106
  let previousPhase = ExecutionPhase.EXECUTION_PHASE_UNSPECIFIED;
100
107
  try {
101
108
  updated = await store.updateResource(
@@ -141,11 +148,15 @@ export function createWorkflowExecutionActivities(
141
148
  );
142
149
  },
143
150
 
144
- /** #15's seam, shared with the agent-execution worker exactly as in Go. */
151
+ /** The server's own delete of the run's context, shared with the agent-execution worker exactly as in Go. */
145
152
  [DELETE_EXECUTION_CONTEXT_ACTIVITY_NAME]: async (
146
153
  executionId: string,
147
154
  ): Promise<void> => {
148
- await deleteExecutionContextForExecution(store, logger, executionId);
155
+ await deleteExecutionContextForExecution(
156
+ { store, deleter: deps.executionContextDeleter, logger },
157
+ executionId,
158
+ "run-end",
159
+ );
149
160
  },
150
161
  };
151
162
  }
@@ -5,10 +5,10 @@
5
5
  * operations the lifecycle steps consume (lifecycle_steps.go: raw
6
6
  * signal, cancel, terminate).
7
7
  *
8
- * #20 modeled the engine as the ConnectedWorkflowExecutionEngine seam
8
+ * The domain models the engine as the ConnectedWorkflowExecutionEngine seam
9
9
  * (src/domain/workflowexecution/engine.ts); this module fills it.
10
10
  * Dispatch-queue resolution lives INSIDE startInvokeWorkflow/
11
- * signalWithStart (the seam's ratified boundary — Go's controller calls
11
+ * signalWithStart (the seam's boundary — Go's controller calls
12
12
  * ResolveWorkflowTaskQueue immediately before Create/SignalWithStart).
13
13
  * Unlike agentexecution's dispatch it is PURE (no store read), so there
14
14
  * is no EngineDispatchError lane — Go's Create has no dispatch failure
@@ -185,7 +185,7 @@ export class TemporalWorkflowExecutionEngine
185
185
  * The slim input with Go's omitempty shape (workflow-input.ts): zero
186
186
  * values are omitted so TS-authored histories carry the same keys a
187
187
  * Go-authored one would. The cloud-only fields are unmodeled (the
188
- * seam's ratified boundary). The run credential is the one key minted
188
+ * seam's boundary). The run credential is the one key minted
189
189
  * here rather than copied from the caller (module header).
190
190
  */
191
191
  private buildWorkflowInput(
@@ -231,8 +231,7 @@ export interface WorkflowExecutionEngineStateProviderDeps {
231
231
 
232
232
  /**
233
233
  * Builds the provider compose hands the workflowexecution registration —
234
- * replacing the pre-#21 `() => WORKFLOW_EXECUTION_ENGINE_DISCONNECTED`
235
- * lambda.
234
+ * in place of a fixed `() => WORKFLOW_EXECUTION_ENGINE_DISCONNECTED`.
236
235
  *
237
236
  * Availability parity with Go (manager.ts module header): disconnected
238
237
  * ONLY until the first successful connect; afterwards the engine wraps
@@ -4,19 +4,18 @@
4
4
  * workflows/invoke_workflow.go, workflows/workflow_creator.go,
5
5
  * activities/update_status.go, dispatch.go).
6
6
  *
7
- * Every value here is a byte-pinned cross-edition wire constant (D2 §4).
7
+ * Every value here is a byte-pinned cross-edition wire constant.
8
8
  * The orchestrator workflow NAME, its ID format, the child workflow ID,
9
9
  * and the pause/resume/relaySignal channel names are canonically owned by
10
10
  * the DOMAIN's constants module (src/domain/workflowexecution/
11
- * constants.ts — #20 shipped them for the lifecycle steps) and re-exported
11
+ * constants.ts, where the lifecycle steps read them) and re-exported
12
12
  * here so the temporal slice has one import surface and the program has
13
13
  * one definition.
14
14
  *
15
15
  * This module is imported by BOTH the workflow bundle and host code, so it
16
16
  * must stay free of node built-ins and framework imports (the Temporal
17
- * workflow sandbox bundler hard-fails on node imports — sub-project
18
- * 20260824.03 workflow-bundle import discipline; the domain constants
19
- * module it re-exports from is import-free).
17
+ * workflow sandbox bundler hard-fails on node imports; the domain
18
+ * constants module it re-exports from is import-free).
20
19
  */
21
20
  export {
22
21
  INVOKE_WORKFLOW_EXECUTION_WORKFLOW_NAME,
@@ -40,8 +39,8 @@ export const CHILD_WORKFLOW_TYPE = "stigmer/workflow/execute-from-execution";
40
39
  * The ONLY memo key this domain writes (workflow_creator.go); the
41
40
  * workflow reads it back to place the child. Go also falls back to the
42
41
  * legacy "activityTaskQueue" key for pre-migration in-flight histories —
43
- * NOT ported: no Go-era history can replay on this server (OD-6
44
- * start-clean), so the legacy read would be dead code.
42
+ * NOT ported: no Go-era history can replay on this server (it started
43
+ * clean), so the legacy read would be dead code.
45
44
  */
46
45
  export const MEMO_RUNNER_TASK_QUEUE = "runnerTaskQueue";
47
46
 
@@ -59,12 +58,12 @@ export const DEFAULT_RUNNER_TASK_QUEUE = "stigmer_runner";
59
58
  * the Go-SDK RECORD_MARKER replay bug; the history shape is contract).
60
59
  *
61
60
  * The name is Go's UpdateWorkflowExecutionStatusActivityName constant.
62
- * NOTE (sub-project DD-002): Go's production worker registers this
61
+ * NOTE: Go's production worker registers this
63
62
  * activity WITHOUT an explicit name, deriving "UpdateExecutionStatus"
64
63
  * from the method — so Go's own orchestrator persists never resolve the
65
64
  * activity and fail silently behind their best-effort call sites. This
66
65
  * server registers AND invokes under the one constant name, making the
67
- * lane work (the #18 DD-001 broken-Go-lane precedent; Go issue filed).
66
+ * lane work.
68
67
  */
69
68
  export const UPDATE_WORKFLOW_EXECUTION_STATUS_ACTIVITY_NAME =
70
69
  "UpdateWorkflowExecutionStatus";
@@ -18,11 +18,12 @@
18
18
  * workflow types from export names, so no explicit registration option
19
19
  * exists or is needed.
20
20
  *
21
- * Workflow source: runtime bundling from the compiled entry (ratified
22
- * brief #7 of sub-project 20260824.03 — the operative mode until #24
23
- * ships prebuilt bundles; the prebuilt sibling is the hook it fills).
21
+ * Workflow source: runtime bundling from the compiled entry in a tsc
22
+ * build, and the prebuilt sibling bundle in a slim artifact (see
23
+ * workflow-source.ts).
24
24
  */
25
25
  import type { Logger } from "../../boot/logger.js";
26
+ import type { ExecutionContextDeleter } from "../../domain/executioncontext/internal-delete.js";
26
27
  import type { WorkflowExecutionTemporalConfig } from "../../domain/workflowexecution/temporal/config.js";
27
28
  import type { StreamBroker } from "../../domain/workflowexecution/stream-broker.js";
28
29
  import type { WorkflowSandboxTerminalObserver } from "../../sandbox/steps.js";
@@ -36,8 +37,14 @@ export interface WorkflowExecutionWorkerDeps {
36
37
  readonly logger: Logger;
37
38
  readonly broker: StreamBroker;
38
39
  readonly temporalConfig: WorkflowExecutionTemporalConfig;
39
- /** The activity persist site's sandbox teardown observer (§6d, O6). */
40
+ /** The activity persist site's sandbox teardown observer. */
40
41
  readonly sandboxTerminalObserver: WorkflowSandboxTerminalObserver;
42
+ /**
43
+ * The server's own delete of a run's ExecutionContext (the run-end
44
+ * activity): the context's delete chain over the in-process transport,
45
+ * resolved lazily because the worker is built before the routes exist.
46
+ */
47
+ readonly executionContextDeleter: () => ExecutionContextDeleter;
41
48
  }
42
49
 
43
50
  export function newWorkflowExecutionWorkerFactory(
@@ -49,6 +56,7 @@ export function newWorkflowExecutionWorkerFactory(
49
56
  logger: deps.logger,
50
57
  broker: deps.broker,
51
58
  sandboxTerminalObserver: deps.sandboxTerminalObserver,
59
+ executionContextDeleter: deps.executionContextDeleter,
52
60
  });
53
61
 
54
62
  const workflowSource = resolveWorkflowSource({
@@ -12,8 +12,8 @@
12
12
  * cross-component contract with the runner's execute-from-execution.
13
13
  *
14
14
  * Go's callback_token / invoker_identity_account_id fields have no OSS
15
- * producer (cloud-only lanes) and are not modeled — the seam's ratified
16
- * boundary (src/domain/workflowexecution/engine.ts).
15
+ * producer (cloud-only lanes) and are not modeled — the seam's boundary
16
+ * (src/domain/workflowexecution/engine.ts).
17
17
  *
18
18
  * Sandbox-shared module: type-only, no imports.
19
19
  */
@@ -45,8 +45,8 @@ export interface InvokeWorkflowExecutionWorkflowInput {
45
45
  }
46
46
 
47
47
  /**
48
- * The relaySignal envelope (invoke_workflow_impl.go RelaySignalPayload,
49
- * June DD-013): an arbitrary signal to forward to the child, sent by the
48
+ * The relaySignal envelope (invoke_workflow_impl.go RelaySignalPayload):
49
+ * an arbitrary signal to forward to the child, sent by the
50
50
  * controller's sendSignal / submitWorkflowTaskApproval through
51
51
  * SignalWithStart. JSON keys are the Go struct tags.
52
52
  */