@sema-agent/core 7.72.0 → 7.74.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/CHANGELOG.md +565 -0
  2. package/dist/agents/inherited-tool-pool.d.ts +26 -1
  3. package/dist/agents/inherited-tool-pool.js +46 -2
  4. package/dist/agents/list-agents-tool.js +1 -1
  5. package/dist/agents/parked-resume-drive.d.ts +10 -0
  6. package/dist/agents/parked-resume-drive.js +9 -0
  7. package/dist/agents/retain-ledger.d.ts +3 -0
  8. package/dist/agents/retain-ledger.js +3 -3
  9. package/dist/agents/send-message-tool.js +5 -4
  10. package/dist/agents/send-user-message-tool.d.ts +12 -0
  11. package/dist/agents/send-user-message-tool.js +67 -0
  12. package/dist/agents/subagent-steps.d.ts +9 -0
  13. package/dist/agents/subagent-steps.js +38 -0
  14. package/dist/agents/subagent.d.ts +2 -0
  15. package/dist/agents/subagent.js +43 -12
  16. package/dist/agents/verify.js +23 -8
  17. package/dist/agents/yield-adoption.js +3 -1
  18. package/dist/brain/anthropic.d.ts +42 -1
  19. package/dist/brain/anthropic.js +68 -13
  20. package/dist/brain/failover.d.ts +5 -0
  21. package/dist/brain/failover.js +51 -22
  22. package/dist/brain/model-lane.d.ts +12 -3
  23. package/dist/brain/model-lane.js +5 -5
  24. package/dist/brain/open-responses.js +7 -8
  25. package/dist/brain/openai.js +31 -24
  26. package/dist/brain/route-adjudicator.d.ts +33 -4
  27. package/dist/brain/route-adjudicator.js +49 -12
  28. package/dist/brain/stream-engine.js +166 -156
  29. package/dist/brain/stream-shared.d.ts +4 -3
  30. package/dist/brain/stream-shared.js +2 -2
  31. package/dist/core/actions-digest.d.ts +43 -0
  32. package/dist/core/actions-digest.js +22 -0
  33. package/dist/core/allow-entry.js +4 -4
  34. package/dist/core/ask-class.d.ts +2 -2
  35. package/dist/core/ask-headline.d.ts +1 -1
  36. package/dist/core/ask-origin.d.ts +44 -4
  37. package/dist/core/ask-origin.js +29 -10
  38. package/dist/core/auto-mode.d.ts +7 -9
  39. package/dist/core/auto-mode.js +114 -8
  40. package/dist/core/background-agent-store.d.ts +1 -0
  41. package/dist/core/background-agent-store.js +49 -8
  42. package/dist/core/checkpoint-features.d.ts +3 -2
  43. package/dist/core/checkpoint-features.js +1 -1
  44. package/dist/core/checkpoint-rekey.d.ts +1 -1
  45. package/dist/core/checkpoint-rekey.js +6 -1
  46. package/dist/core/checkpoint-requirements.d.ts +23 -3
  47. package/dist/core/checkpoint-requirements.js +5 -1
  48. package/dist/core/checkpoint-row-verdict.d.ts +1 -1
  49. package/dist/core/checkpoint-row-verdict.js +9 -3
  50. package/dist/core/checkpoint-store.d.ts +26 -2
  51. package/dist/core/checkpoint-store.js +9 -2
  52. package/dist/core/child-clamp-seats.d.ts +15 -0
  53. package/dist/core/child-clamp-seats.js +15 -0
  54. package/dist/core/config-refusal-codes.d.ts +1 -1
  55. package/dist/core/config-refusal-codes.js +1 -0
  56. package/dist/core/cron.js +9 -1
  57. package/dist/core/delegation-frames.d.ts +1 -0
  58. package/dist/core/delegation-frames.js +1 -1
  59. package/dist/core/deployment-shape.d.ts +7 -0
  60. package/dist/core/deployment-shape.js +19 -0
  61. package/dist/core/engine-capabilities.d.ts +13 -1
  62. package/dist/core/engine-capabilities.js +1 -1
  63. package/dist/core/engine-notice.d.ts +41 -28
  64. package/dist/core/engine-version.js +1 -1
  65. package/dist/core/entries-not-applied.d.ts +19 -7
  66. package/dist/core/entries-not-applied.js +33 -1
  67. package/dist/core/gate-fold.js +5 -4
  68. package/dist/core/gate-lanes.js +8 -12
  69. package/dist/core/gate-outcome.d.ts +8 -2
  70. package/dist/core/gate-outcome.js +10 -3
  71. package/dist/core/governance-codes.d.ts +14 -2
  72. package/dist/core/governance-codes.js +22 -6
  73. package/dist/core/hook-condition.d.ts +37 -0
  74. package/dist/core/hook-condition.js +567 -0
  75. package/dist/core/hooks.d.ts +5 -0
  76. package/dist/core/hooks.js +1 -0
  77. package/dist/core/host-instance.d.ts +23 -0
  78. package/dist/core/host-instance.js +69 -0
  79. package/dist/core/instruction-preview.d.ts +63 -0
  80. package/dist/core/instruction-preview.js +406 -0
  81. package/dist/core/leg-budget.d.ts +26 -0
  82. package/dist/core/leg-budget.js +9 -0
  83. package/dist/core/leg-identity.d.ts +51 -1
  84. package/dist/core/leg-identity.js +45 -2
  85. package/dist/core/manager-launch-check.d.ts +48 -0
  86. package/dist/core/manager-launch-check.js +64 -0
  87. package/dist/core/mcp-call-meta.d.ts +2 -2
  88. package/dist/core/mcp-injection-drop.d.ts +20 -10
  89. package/dist/core/mcp-injection-drop.js +9 -3
  90. package/dist/core/mcp-server-spec.d.ts +2 -1
  91. package/dist/core/member-outcome.d.ts +3 -2
  92. package/dist/core/member-outcome.js +1 -1
  93. package/dist/core/memory-engine/deletion-record.d.ts +46 -0
  94. package/dist/core/memory-engine/deletion-record.js +96 -0
  95. package/dist/core/memory-engine/engine.js +24 -16
  96. package/dist/core/memory-engine/file-backend.js +7 -5
  97. package/dist/core/memory-engine/projection-ledger.d.ts +1 -1
  98. package/dist/core/memory-engine/projection-ledger.js +1 -1
  99. package/dist/core/memory-engine/scope-contract.d.ts +18 -13
  100. package/dist/core/memory-engine/scope-contract.js +18 -18
  101. package/dist/core/memory-engine/sync-client.js +26 -6
  102. package/dist/core/memory-engine/sync.d.ts +20 -2
  103. package/dist/core/memory-engine/sync.js +18 -17
  104. package/dist/core/mode-policy.d.ts +25 -6
  105. package/dist/core/mode-policy.js +33 -8
  106. package/dist/core/model-seat.d.ts +8 -5
  107. package/dist/core/model-shell.d.ts +129 -0
  108. package/dist/core/model-shell.js +249 -0
  109. package/dist/core/mods/kernel/digest.d.ts +4 -0
  110. package/dist/core/mods/kernel/digest.js +5 -0
  111. package/dist/core/mods/kernel/dispatch.d.ts +3 -0
  112. package/dist/core/mods/kernel/dispatch.js +15 -6
  113. package/dist/core/mods/kernel/events.d.ts +21 -5
  114. package/dist/core/mods/kernel/events.js +19 -10
  115. package/dist/core/mods/kernel/hash-mirror.d.ts +1 -0
  116. package/dist/core/mods/kernel/hash-mirror.js +55 -0
  117. package/dist/core/mods/kernel/index.d.ts +1 -0
  118. package/dist/core/mods/kernel/index.js +1 -0
  119. package/dist/core/mods/kernel/package-reader.d.ts +48 -0
  120. package/dist/core/mods/kernel/package-reader.js +149 -0
  121. package/dist/core/mods/kernel/site-rules.d.ts +4 -0
  122. package/dist/core/mods/kernel/site-rules.js +13 -0
  123. package/dist/core/mods/package.d.ts +7 -3
  124. package/dist/core/mods/package.js +47 -80
  125. package/dist/core/own-property-receipt.js +11 -4
  126. package/dist/core/parent-spec-seat.d.ts +13 -11
  127. package/dist/core/parent-spec-seat.js +13 -9
  128. package/dist/core/peer-seat.js +3 -3
  129. package/dist/core/peer-task-store.d.ts +365 -0
  130. package/dist/core/peer-task-store.js +682 -0
  131. package/dist/core/permission-rule-consent.js +6 -11
  132. package/dist/core/permission-rule-model.d.ts +27 -0
  133. package/dist/core/permission-rule-model.js +33 -5
  134. package/dist/core/permission-rule-org.js +13 -3
  135. package/dist/core/permission-rule-provider.d.ts +35 -33
  136. package/dist/core/permission-rule-provider.js +38 -295
  137. package/dist/core/permission-rule-store.d.ts +181 -8
  138. package/dist/core/permission-rule-store.js +420 -17
  139. package/dist/core/permission-rule-sync.js +15 -1
  140. package/dist/core/permission-rules.js +4 -1
  141. package/dist/core/project-seat.d.ts +55 -0
  142. package/dist/core/project-seat.js +96 -0
  143. package/dist/core/protocol-http-auth.d.ts +3 -2
  144. package/dist/core/protocol-http-auth.js +26 -18
  145. package/dist/core/remote-env.d.ts +4 -4
  146. package/dist/core/retain-seat.d.ts +42 -0
  147. package/dist/core/retain-seat.js +76 -0
  148. package/dist/core/retired-keys.js +1 -0
  149. package/dist/core/rewind-refusal-codes.d.ts +8 -0
  150. package/dist/core/rewind-refusal-codes.js +12 -0
  151. package/dist/core/roles.d.ts +2 -2
  152. package/dist/core/roles.js +15 -1
  153. package/dist/core/rule-offer-read.d.ts +1 -1
  154. package/dist/core/rule-offer-read.js +32 -4
  155. package/dist/core/rule-store-fault.d.ts +9 -7
  156. package/dist/core/rule-store-fault.js +8 -3
  157. package/dist/core/run-ledger-seat.d.ts +66 -0
  158. package/dist/core/run-ledger-seat.js +70 -0
  159. package/dist/core/run-ledger.d.ts +332 -0
  160. package/dist/core/run-ledger.js +550 -0
  161. package/dist/core/runner/checkpoint-scope.d.ts +14 -3
  162. package/dist/core/runner/checkpoint-scope.js +16 -6
  163. package/dist/core/runner/compact-session.js +1 -1
  164. package/dist/core/runner/construction-doors.js +8 -0
  165. package/dist/core/runner/contracts.d.ts +21 -5
  166. package/dist/core/runner/cross-boundary-lane.d.ts +8 -1
  167. package/dist/core/runner/cross-boundary-lane.js +4 -0
  168. package/dist/core/runner/delegation-owner.d.ts +30 -0
  169. package/dist/core/runner/delegation-owner.js +20 -4
  170. package/dist/core/runner/finish-reason-seat.js +4 -2
  171. package/dist/core/runner/gate-exit.d.ts +7 -0
  172. package/dist/core/runner/gate-exit.js +2 -1
  173. package/dist/core/runner/leg-frame.js +3 -0
  174. package/dist/core/runner/model-lane-seat.d.ts +3 -0
  175. package/dist/core/runner/model-lane-seat.js +4 -0
  176. package/dist/core/runner/nested-memory-lane.d.ts +22 -5
  177. package/dist/core/runner/nested-memory-lane.js +91 -30
  178. package/dist/core/runner/person-path-rows.d.ts +27 -16
  179. package/dist/core/runner/person-path-rows.js +93 -15
  180. package/dist/core/runner/prepare-caps-and-workflow.js +98 -88
  181. package/dist/core/runner/prepare-config-doors.d.ts +1 -0
  182. package/dist/core/runner/prepare-config-doors.js +13 -7
  183. package/dist/core/runner/prepare-context-lane.js +1 -0
  184. package/dist/core/runner/prepare-delegation-surface.d.ts +3 -0
  185. package/dist/core/runner/prepare-delegation-surface.js +6 -0
  186. package/dist/core/runner/prepare-execution-env.d.ts +3 -3
  187. package/dist/core/runner/prepare-gate-stations.d.ts +6 -0
  188. package/dist/core/runner/prepare-gate-stations.js +3 -1
  189. package/dist/core/runner/prepare-hands-readface.d.ts +5 -2
  190. package/dist/core/runner/prepare-hands-readface.js +15 -3
  191. package/dist/core/runner/prepare-inherited-gate.d.ts +6 -3
  192. package/dist/core/runner/prepare-inherited-gate.js +13 -5
  193. package/dist/core/runner/prepare-offload-wrappers.js +1 -1
  194. package/dist/core/runner/prepare-run-refs.d.ts +1 -1
  195. package/dist/core/runner/prepare-run-refs.js +3 -2
  196. package/dist/core/runner/prepare-suspend-saga.d.ts +6 -2
  197. package/dist/core/runner/prepare-suspend-saga.js +4 -2
  198. package/dist/core/runner/prepare-task.js +42 -30
  199. package/dist/core/runner/prepare-turn-wiring.d.ts +4 -3
  200. package/dist/core/runner/prepare-turn-wiring.js +2 -1
  201. package/dist/core/runner/prepare-wiring-manifest.d.ts +3 -1
  202. package/dist/core/runner/prepare-wiring-manifest.js +8 -6
  203. package/dist/core/runner/resume-apply.js +11 -5
  204. package/dist/core/runner/resume-policy-outcome.js +5 -2
  205. package/dist/core/runner/resume-review-outcome.d.ts +3 -0
  206. package/dist/core/runner/resume-review-outcome.js +24 -1
  207. package/dist/core/runner/role-seat-defaulted.d.ts +3 -3
  208. package/dist/core/runner/role-seat-defaulted.js +1 -1
  209. package/dist/core/runner/rule-store-unreadable-notice.d.ts +1 -1
  210. package/dist/core/runner/rule-store-unreadable-notice.js +3 -3
  211. package/dist/core/runner/run-harness-handlers.js +4 -1
  212. package/dist/core/runner/run-identity-wiring.js +3 -2
  213. package/dist/core/runner/run-leg.js +5 -2
  214. package/dist/core/runner/run-notification-lane.js +20 -1
  215. package/dist/core/runner/run-settle-and-teardown.js +21 -12
  216. package/dist/core/runner/run-stop-and-final-verify.js +6 -0
  217. package/dist/core/runner/run-telemetry-and-budget-seats.js +1 -1
  218. package/dist/core/runner/runtask.d.ts +6 -2
  219. package/dist/core/runner/runtask.js +21 -9
  220. package/dist/core/runner/shell-env-withheld.d.ts +6 -4
  221. package/dist/core/runner/shell-env-withheld.js +25 -3
  222. package/dist/core/runner/stop-tail-notice.d.ts +10 -2
  223. package/dist/core/runner/stop-tail-notice.js +9 -2
  224. package/dist/core/runner/stream-settle-backstop.d.ts +1 -0
  225. package/dist/core/runner/stream-settle-backstop.js +1 -0
  226. package/dist/core/runner/sub-agent-deny-lists.js +9 -5
  227. package/dist/core/runner/task-start-doors.js +6 -3
  228. package/dist/core/runner/terminal-account.d.ts +6 -1
  229. package/dist/core/runner/terminal-account.js +16 -1
  230. package/dist/core/runner/tool-end-body.d.ts +1 -1
  231. package/dist/core/runner/tool-not-executed.d.ts +27 -8
  232. package/dist/core/runner/tool-not-executed.js +22 -11
  233. package/dist/core/runner/unreadable-person-rows.d.ts +2 -1
  234. package/dist/core/runner/write-protection-station.d.ts +1 -1
  235. package/dist/core/runner/write-protection-station.js +1 -1
  236. package/dist/core/runner-deps.d.ts +17 -10
  237. package/dist/core/secret-env.d.ts +61 -37
  238. package/dist/core/secret-env.js +49 -49
  239. package/dist/core/session-checkout.d.ts +3 -0
  240. package/dist/core/session-checkout.js +1 -0
  241. package/dist/core/session-store.d.ts +12 -6
  242. package/dist/core/session-store.js +26 -6
  243. package/dist/core/session.d.ts +31 -8
  244. package/dist/core/shell-read-silence.d.ts +40 -2
  245. package/dist/core/shell-read-silence.js +23 -4
  246. package/dist/core/store-contracts/checkpoint-store-contract.js +10 -0
  247. package/dist/core/store-contracts/peer-task-store-contract.d.ts +21 -0
  248. package/dist/core/store-contracts/peer-task-store-contract.js +516 -0
  249. package/dist/core/store-contracts/session-store-contract.d.ts +15 -2
  250. package/dist/core/store-contracts/session-store-contract.js +87 -3
  251. package/dist/core/store-contracts/workflow-journal-store-contract.d.ts +19 -1
  252. package/dist/core/store-contracts/workflow-journal-store-contract.js +89 -1
  253. package/dist/core/task-event.d.ts +14 -7
  254. package/dist/core/task-notification.d.ts +96 -10
  255. package/dist/core/task-notification.js +135 -6
  256. package/dist/core/task-registry-agent.d.ts +1 -0
  257. package/dist/core/task-registry-agent.js +1 -1
  258. package/dist/core/task-registry-shared.d.ts +12 -1
  259. package/dist/core/task-registry-shared.js +3 -1
  260. package/dist/core/task-registry-workflow.d.ts +1 -1
  261. package/dist/core/task-registry-workflow.js +9 -1
  262. package/dist/core/task-registry.d.ts +40 -2
  263. package/dist/core/task-registry.js +80 -15
  264. package/dist/core/task-result.d.ts +18 -3
  265. package/dist/core/task-spec-members.d.ts +3 -1
  266. package/dist/core/task-spec-members.js +19 -3
  267. package/dist/core/task-spec.d.ts +48 -22
  268. package/dist/core/tool-catalog-entries.js +2 -0
  269. package/dist/core/tool-gate-phase.d.ts +6 -3
  270. package/dist/core/tool-gate-phase.js +1 -0
  271. package/dist/core/tool-mount-facts.d.ts +8 -4
  272. package/dist/core/tool-mount-facts.js +7 -2
  273. package/dist/core/tool-mount-plan.d.ts +3 -1
  274. package/dist/core/tool-mount-plan.js +10 -3
  275. package/dist/core/tool-mount-static.d.ts +1 -1
  276. package/dist/core/tool-mount-static.js +4 -2
  277. package/dist/core/tool-result-store.d.ts +56 -3
  278. package/dist/core/tool-result-store.js +219 -25
  279. package/dist/core/tool-spec.d.ts +9 -2
  280. package/dist/core/trace.d.ts +3 -3
  281. package/dist/core/user-attachment.d.ts +5 -1
  282. package/dist/core/user-attachment.js +14 -7
  283. package/dist/core/wiring-manifest.d.ts +26 -20
  284. package/dist/core/wiring-manifest.js +7 -3
  285. package/dist/core/workflow-journal-store.d.ts +53 -10
  286. package/dist/core/workflow-journal-store.js +27 -4
  287. package/dist/core/workflow-run-store-contract.js +16 -0
  288. package/dist/core/workflow-run-store.d.ts +9 -7
  289. package/dist/core/workflow-run-store.js +4 -1
  290. package/dist/engine/execution-env/node-execution-env.d.ts +75 -1
  291. package/dist/engine/execution-env/node-execution-env.js +227 -13
  292. package/dist/engine/harness/types.d.ts +49 -1
  293. package/dist/engine/harness/types.js +10 -0
  294. package/dist/engine/llm/types.d.ts +13 -7
  295. package/dist/engine/llm/validation.d.ts +8 -1
  296. package/dist/engine/llm/validation.js +31 -2
  297. package/dist/engine/lsp/node-lsp-manager.js +2 -1
  298. package/dist/engine/session/import-validate.js +6 -1
  299. package/dist/engine/session/session.d.ts +15 -2
  300. package/dist/engine/session/session.js +34 -4
  301. package/dist/host-env.d.ts +10 -0
  302. package/dist/host-env.js +1 -0
  303. package/dist/index.d.ts +28 -9
  304. package/dist/index.js +22 -6
  305. package/dist/internal/harness-types.d.ts +1 -1
  306. package/dist/orchestration/goal.js +1 -1
  307. package/dist/orchestration/run-workflow-tool.js +40 -32
  308. package/dist/orchestration/workflow-park-adoption.d.ts +51 -12
  309. package/dist/orchestration/workflow-park-adoption.js +47 -12
  310. package/dist/orchestration/workflow-primitives.js +10 -1
  311. package/dist/orchestration/workflow-script-runner.d.ts +2 -2
  312. package/dist/orchestration/workflow-stop.d.ts +128 -0
  313. package/dist/orchestration/workflow-stop.js +156 -0
  314. package/dist/orchestration/workflow.d.ts +31 -7
  315. package/dist/orchestration/workflow.js +119 -57
  316. package/dist/prompts/manager-recipe.d.ts +18 -0
  317. package/dist/prompts/manager-recipe.js +24 -0
  318. package/dist/shell/lex.d.ts +2 -2
  319. package/dist/shell/lex.js +1 -1
  320. package/dist/stores/file/permission-rule-store.d.ts +3 -1
  321. package/dist/stores/file/permission-rule-store.js +0 -1
  322. package/dist/stores/file/workflow-journal-store.d.ts +16 -3
  323. package/dist/stores/file/workflow-journal-store.js +93 -5
  324. package/dist/stores/file/workflow-run-store.d.ts +1 -1
  325. package/dist/tools/fs/bash-model-shell.d.ts +23 -0
  326. package/dist/tools/fs/bash-model-shell.js +25 -0
  327. package/dist/tools/fs/bash-readonly-classifier.d.ts +6 -0
  328. package/dist/tools/fs/bash-readonly-classifier.js +3 -0
  329. package/dist/tools/fs/file-write-check.js +9 -3
  330. package/dist/tools/fs/fs-bash.js +13 -11
  331. package/dist/tools/fs/index.d.ts +8 -7
  332. package/dist/tools/fs/index.js +4 -4
  333. package/dist/tools/fs/read-deny-home.d.ts +1 -1
  334. package/dist/tools/fs/read-deny-home.js +5 -5
  335. package/dist/tools/fs/read-deny.d.ts +33 -8
  336. package/dist/tools/fs/read-deny.js +114 -25
  337. package/dist/tools/fs/safety.d.ts +4 -1
  338. package/dist/tools/fs/safety.js +4 -2
  339. package/dist/tools/fs/shell-read-argv.js +1 -0
  340. package/dist/tools/fs/shell-read-check.d.ts +9 -2
  341. package/dist/tools/fs/shell-read-check.js +134 -22
  342. package/dist/tools/fs/shell-read-establish.d.ts +9 -0
  343. package/dist/tools/fs/shell-read-establish.js +21 -11
  344. package/dist/tools/fs/shell-read-judge.d.ts +13 -1
  345. package/dist/tools/fs/shell-read-judge.js +26 -7
  346. package/dist/tools/fs/shell-read-plan.d.ts +7 -3
  347. package/dist/tools/fs/shell-read-plan.js +8 -5
  348. package/dist/tools/fs/shell-read-word.d.ts +8 -0
  349. package/dist/tools/fs/shell-read-word.js +13 -4
  350. package/dist/tools/fs/shell-read-write-targets.js +17 -9
  351. package/dist/tools/monitor.js +12 -8
  352. package/dist/tools/scheduler-tools.d.ts +1 -0
  353. package/dist/tools/scheduler-tools.js +5 -2
  354. package/package.json +3 -2
  355. package/test/export-surface.snapshot.json +192 -3
  356. package/wire-changes/answers/core-stores-sql@7.73.0.json +28 -0
  357. package/wire-changes/answers/core-stores-sql@7.74.0.json +7 -0
  358. package/wire-changes/answers/core@7.73.0.json +216 -0
  359. package/wire-changes/answers/core@7.74.0.json +68 -0
  360. package/wire-changes/answers/mods-kernel@7.73.0.json +7 -0
  361. package/wire-changes/answers/mods-kernel@7.74.0.json +21 -0
  362. package/wire-changes/answers/primitives@7.73.0.json +12 -0
  363. package/wire-changes/answers/primitives@7.74.0.json +7 -0
  364. package/wire-changes/answers/wiki-gate@7.73.0.json +7 -0
  365. package/wire-changes/answers/wiki-gate@7.74.0.json +8 -0
  366. package/wire-changes/core-stores-sql@7.73.0.json +326 -0
  367. package/wire-changes/core-stores-sql@7.74.0.json +143 -0
  368. package/wire-changes/core@7.73.0.json +6480 -0
  369. package/wire-changes/core@7.74.0.json +2210 -0
  370. package/wire-changes/mods-kernel@7.73.0.json +147 -0
  371. package/wire-changes/mods-kernel@7.74.0.json +421 -0
  372. package/wire-changes/primitives@7.73.0.json +227 -0
  373. package/wire-changes/primitives@7.74.0.json +174 -0
  374. package/wire-changes/wiki-gate@7.73.0.json +145 -0
  375. package/wire-changes/wiki-gate@7.74.0.json +145 -0
@@ -0,0 +1,326 @@
1
+ {
2
+ "repo": "core",
3
+ "package": "@sema-agent/core-stores-sql",
4
+ "schema": 2,
5
+ "version": "7.73.0",
6
+ "from": "9ef3bb54f3d11c5e0001a3b4c6a27d05abe1e880",
7
+ "to": "v7.73.0",
8
+ "added": [],
9
+ "removed": [],
10
+ "changed": [],
11
+ "subpaths": [],
12
+ "subpathsUnread": [
13
+ "from",
14
+ "to"
15
+ ],
16
+ "narrowed": [],
17
+ "faces": {
18
+ "open": [],
19
+ "source": null
20
+ },
21
+ "closedSetMembers": [],
22
+ "closedSetsUnreadable": [],
23
+ "typeKeys": [
24
+ {
25
+ "type": "SqlStorageBackend",
26
+ "at": [
27
+ "src/backend.ts"
28
+ ],
29
+ "added": [],
30
+ "addedDetail": [],
31
+ "addedRequired": [],
32
+ "removed": [],
33
+ "madeRequired": [],
34
+ "madeOptional": [],
35
+ "retyped": [
36
+ {
37
+ "key": "sessionStore.acquire(...).session.getStorage().getEntry(...)",
38
+ "from": "Property 'mark' is missing in type 'RunLedgerEntry' but required in type 'ReminderMarkEntry'.",
39
+ "to": "(read by the compiler)",
40
+ "direction": "changed",
41
+ "judged": true
42
+ },
43
+ {
44
+ "key": "sessionStore.acquire(...).session.getStorage().getEntry(...)",
45
+ "from": "Type '\"run_ledger\"' is not assignable to type '\"session_checkout\" | \"message\" | \"thinking_level_change\" | \"model_change\" | \"compaction\" | \"custom\" | \"custom_message\" | \"label\" | \"session_info\" | \"leaf\" | \"prompt_epoch\" | \"announced_listing…",
46
+ "to": "(read by the compiler)",
47
+ "direction": "changed",
48
+ "judged": true
49
+ },
50
+ {
51
+ "key": "sessionStore.acquire(...).session.getStorage().getEntry(...)",
52
+ "from": "Property 'owner' is missing in type '{ readonly row: { readonly owner: string | null, readonly incarnation?: string | undefined, }, }' but required in type '{ owner: string | null, }'.",
53
+ "to": "(read by the compiler)",
54
+ "direction": "changed",
55
+ "judged": true
56
+ },
57
+ {
58
+ "key": "sessionStore.acquire(...).session.getStorage().getEntry(...)",
59
+ "from": "Type '\"config.project_id_invalid\"' is not assignable to type '\"config.spec_retired_key\" | \"config.output_style_invalid\" | \"config.language_invalid\" | \"config.permission_mode_invalid\" | \"config.shell_gate_value_retired\" | \"config.approval_r…",
60
+ "to": "(read by the compiler)",
61
+ "direction": "changed",
62
+ "judged": true
63
+ },
64
+ {
65
+ "key": "sessionStore.acquire(...).session.getStorage().getEntry(...)",
66
+ "from": "Type '\"workflow\"' is not assignable to type '\"subagent\" | \"workflow_member\" | \"background_agent\"'.",
67
+ "to": "(read by the compiler)",
68
+ "direction": "changed",
69
+ "judged": true
70
+ }
71
+ ],
72
+ "breaking": true,
73
+ "criteriaCovered": false,
74
+ "judge": {
75
+ "verdict": "breaking",
76
+ "postures": [
77
+ "R",
78
+ "V",
79
+ "Vo"
80
+ ],
81
+ "leaves": [
82
+ "L-f544552e14e2",
83
+ "L-0d0a39205718",
84
+ "L-e26a48133049",
85
+ "L-6d53ef239ac5",
86
+ "L-89dc1bd1221b"
87
+ ],
88
+ "subject": "SqlStorageBackend",
89
+ "judged": true,
90
+ "home": [
91
+ "L-f544552e14e2",
92
+ "L-0d0a39205718",
93
+ "L-e26a48133049",
94
+ "L-6d53ef239ac5",
95
+ "L-89dc1bd1221b"
96
+ ]
97
+ }
98
+ }
99
+ ],
100
+ "typeKeysUnreadableArms": [],
101
+ "typeKeysFlattenedCount": 4,
102
+ "signatures": [],
103
+ "versionLiterals": [],
104
+ "declarationMoves": [],
105
+ "mintMoves": [],
106
+ "noticeLineage": [],
107
+ "criteriaObserves": [],
108
+ "consumersHint": {
109
+ "cli": [],
110
+ "server": [
111
+ "SqlStorageBackend"
112
+ ],
113
+ "sdk": [],
114
+ "note": "scanned cli@c97d39fea server@a9070a7a5 sdk@93fdd82 — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it"
115
+ },
116
+ "judge": {
117
+ "judgeVersion": "2",
118
+ "typescript": "5.7.2",
119
+ "counts": {
120
+ "same": 184,
121
+ "breaking": 5
122
+ },
123
+ "probes": 1015,
124
+ "leaves": [
125
+ {
126
+ "id": "L-f544552e14e2",
127
+ "verdict": "breaking",
128
+ "message": "Property 'mark' is missing in type 'RunLedgerEntry' but required in type 'ReminderMarkEntry'.",
129
+ "count": 3,
130
+ "representative": [
131
+ "SqlStorageBackend",
132
+ "SqlStorageBackend.sessionStore",
133
+ "createSqlStorageBackend"
134
+ ],
135
+ "culprits": [
136
+ "backend.d.ts#SqlStorageBackend"
137
+ ],
138
+ "postures": [
139
+ "R",
140
+ "V",
141
+ "Vo"
142
+ ],
143
+ "home": "typeKeys:SqlStorageBackend",
144
+ "answer": {
145
+ "answer": "breaking",
146
+ "why": "This package's own emitted declarations are byte-identical to 7.72.0 (diff of the judge's two cached trees: only the timing sidecar differs), but SqlStorageBackend extends @sema-agent/core's EngineStorageBackend, whose sessionStore hands out sessions whose entries now include core's RunLedgerEntry (no mark, so the checker's elaboration stops at reminder_mark): a host that holds a SqlStorageBackend, its sessionStore or createSqlStorageBackend's result as its 7.72.0 type, or reads entries exhaustively by type, fails to compile; answered in core's manifest as L-f544552e14e2 / L-2b77b74a868a."
147
+ }
148
+ },
149
+ {
150
+ "id": "L-0d0a39205718",
151
+ "verdict": "breaking",
152
+ "message": "Type '\"run_ledger\"' is not assignable to type '\"session_checkout\" | \"message\" | \"thinking_level_change\" | \"model_change\" | \"compaction\" | \"custom\" | \"custom_message\" | \"label\" | \"session_info\" | \"leaf\" | \"prompt_epoch\" | \"announced_listing\" | \"git_announcement\" | \"workspace_state\" | \"reminder_mark\"'.",
153
+ "count": 2,
154
+ "representative": [
155
+ "SqlStorageBackend",
156
+ "SqlStorageBackend.sessionStore"
157
+ ],
158
+ "culprits": [
159
+ "backend.d.ts#SqlStorageBackend"
160
+ ],
161
+ "postures": [
162
+ "W"
163
+ ],
164
+ "home": "typeKeys:SqlStorageBackend",
165
+ "answer": {
166
+ "answer": "breaking",
167
+ "why": "The writer side of the same core change: a session store value built to the 7.72.0 entry union, handed where SqlStorageBackend.sessionStore is expected, meets core's new run_ledger entry type (\"run_ledger\" is not one of the 7.72.0 entry types) and fails to compile; the package's own declarations are byte-identical to 7.72.0, the change is core's SessionTreeEntry (L-2b77b74a868a in core's manifest)."
168
+ }
169
+ },
170
+ {
171
+ "id": "L-e26a48133049",
172
+ "verdict": "breaking",
173
+ "message": "Property 'owner' is missing in type '{ readonly row: { readonly owner: string | null; readonly incarnation?: string | undefined; }; }' but required in type '{ owner: string | null; }'.",
174
+ "count": 2,
175
+ "representative": [
176
+ "SqlStorageBackend",
177
+ "SqlStorageBackend.sessionStore"
178
+ ],
179
+ "culprits": [],
180
+ "postures": [
181
+ "Ws"
182
+ ],
183
+ "home": "typeKeys:SqlStorageBackend",
184
+ "answer": {
185
+ "answer": "breaking",
186
+ "why": "SqlStorageBackend.sessionStore is core's SessionStore, whose delete guard widens to { owner } | { row } (core's L-e26a48133049 / L-0f38ff17ef27): a sessionStore whose delete was written as a function value against the 7.72.0 guard { owner }, handed where SqlStorageBackend's is expected, fails under strictFunctionTypes, and an implementation that reads guard.owner off the contextual type fails to compile; this package's own declarations are byte-identical to 7.72.0."
187
+ }
188
+ },
189
+ {
190
+ "id": "L-6d53ef239ac5",
191
+ "verdict": "breaking",
192
+ "message": "Type '\"config.project_id_invalid\"' is not assignable to type '\"config.spec_retired_key\" | \"config.output_style_invalid\" | \"config.language_invalid\" | \"config.permission_mode_invalid\" | \"config.shell_gate_value_retired\" | \"config.approval_reach_invalid\" | ... 51 more ... | undefined'.",
193
+ "count": 1,
194
+ "representative": [
195
+ "SqlStorageBackend.checkpointStore"
196
+ ],
197
+ "culprits": [],
198
+ "postures": [
199
+ "R"
200
+ ],
201
+ "home": "typeKeys:SqlStorageBackend",
202
+ "answer": {
203
+ "answer": "breaking",
204
+ "why": "SqlStorageBackend.checkpointStore is core's CheckpointStore, whose listings carry CheckpointConfigRefusalCode, which gains config.project_id_invalid (core's L-6d53ef239ac5): a reader exhaustive over a listed row's detail.code, or holding the store or a row as its 7.72.0 type, fails to compile; this package's own declarations are byte-identical to 7.72.0."
205
+ }
206
+ },
207
+ {
208
+ "id": "L-89dc1bd1221b",
209
+ "verdict": "breaking",
210
+ "message": "Type '\"workflow\"' is not assignable to type '\"subagent\" | \"workflow_member\" | \"background_agent\"'.",
211
+ "count": 1,
212
+ "representative": [
213
+ "SqlStorageBackend.backgroundAgentStore"
214
+ ],
215
+ "culprits": [],
216
+ "postures": [
217
+ "R",
218
+ "Ws"
219
+ ],
220
+ "home": "typeKeys:SqlStorageBackend",
221
+ "answer": {
222
+ "answer": "breaking",
223
+ "why": "SqlStorageBackend.backgroundAgentStore hands out core's background agent rows, whose member outcome kind widens with MEMBER_KINDS (+workflow, +peer_task; core's L-89dc1bd1221b): a reader exhaustive over the kind, or holding a row as its 7.72.0 type, fails to compile; this package's own declarations are byte-identical to 7.72.0."
224
+ }
225
+ }
226
+ ],
227
+ "mustCheck": [
228
+ {
229
+ "id": "deep-nesting",
230
+ "form": "a method or callback nested deeper than 10 levels of anonymous object types under an export: the strict postures stop there (a method there is compared bivariantly)",
231
+ "measured": {
232
+ "count": 0,
233
+ "examples": [],
234
+ "note": "not measured: the depth a consumer reaches is not bounded by the declarations"
235
+ },
236
+ "owed": true,
237
+ "answer": "Not measurable by the run, so the hole was checked: the package's own emitted declarations are byte-identical at both ends (diff -r of the judge's two cached trees, 11 .d.ts files: only the timing sidecar differs), and its only outside import is @sema-agent/core (EngineStorageBackend, SessionStore and the store types reached through them), whose declaration diff is answered in core's manifest (deep-nesting there: read, not re-scanned member by member) — every change this package reaches through core is one of the leaves above, each answered breaking."
238
+ },
239
+ {
240
+ "id": "strict-generic",
241
+ "form": "a method-syntax member (compared bivariantly) inside a parameter or result of a GENERIC or OVERLOADED exported function: the strict posture is not written for those functions",
242
+ "measured": {
243
+ "count": 0,
244
+ "examples": []
245
+ },
246
+ "owed": false,
247
+ "answer": null
248
+ },
249
+ {
250
+ "id": "ambient-modules",
251
+ "form": "an ambient module (`declare module \"x\"`) both ends declare: in the one program the judge builds, the two declarations merge, so a change between them is not compared",
252
+ "measured": {
253
+ "count": 0,
254
+ "examples": []
255
+ },
256
+ "owed": false,
257
+ "answer": null
258
+ },
259
+ {
260
+ "id": "shared-dependency",
261
+ "form": "a type the package takes from another installed package: both ends are judged against the ONE copy installed now, so a dependency that moved between the two refs is not compared",
262
+ "measured": {
263
+ "count": 0,
264
+ "examples": []
265
+ },
266
+ "owed": false,
267
+ "answer": null
268
+ },
269
+ {
270
+ "id": "export-equals",
271
+ "form": "a module written `export =`: its members are not enumerated as named exports",
272
+ "measured": {
273
+ "count": 0,
274
+ "examples": []
275
+ },
276
+ "owed": false,
277
+ "answer": null
278
+ },
279
+ {
280
+ "id": "exact-optional",
281
+ "form": "a consumer compiled with `exactOptionalPropertyTypes`: the probes compile without it, so `k?: T` -> `k?: T | undefined` (and back) is not compared under it",
282
+ "measured": {
283
+ "count": 0,
284
+ "examples": [],
285
+ "note": "not measured: a consumer's compiler option"
286
+ },
287
+ "owed": true,
288
+ "answer": "Not measurable (a consumer's compiler option): the package's own emitted declarations are byte-identical at both ends, so no `?` or `| undefined` of its own moved, and in core's declaration diff (what it reaches through @sema-agent/core) no member both ends declare gained or lost `?` or `| undefined` (every change hunk paired by member name: 0 pairs; answered in core's manifest)."
289
+ },
290
+ {
291
+ "id": "unresolved-imports",
292
+ "form": "an import inside the emitted declarations that does not resolve: what it names reads as `any`, which every posture accepts",
293
+ "measured": {
294
+ "count": 0,
295
+ "examples": []
296
+ },
297
+ "owed": false,
298
+ "answer": null
299
+ },
300
+ {
301
+ "id": "declaration-errors",
302
+ "form": "a declaration the end could not emit cleanly (`declaration emit` errors): the emitted file may say less than the source",
303
+ "measured": {
304
+ "count": 0,
305
+ "examples": []
306
+ },
307
+ "owed": false,
308
+ "answer": null
309
+ }
310
+ ],
311
+ "policyNotes": [],
312
+ "staleAnswers": [],
313
+ "seconds": {
314
+ "emitFrom": 0,
315
+ "emitTo": 0.253,
316
+ "build": 1.45,
317
+ "check": 1.383,
318
+ "total": 3.156
319
+ }
320
+ },
321
+ "breakingCount": 1,
322
+ "breakingItems": [
323
+ "type retyped keys: SqlStorageBackend sessionStore.acquire(...).session.getStorage().getEntry(...) (changed: Property 'mark' is missing in type 'RunLedgerEntry' but required in type 'ReminderMarkEntry'.); sessionStore.acquire(...).session.getStorage().getEntry(...) (changed: Type '\"run_ledger\"' is not assignable to type '\"session_checkout\" | \"message\" | \"thinking_level_change\" | \"model_change\" | \"compaction\" | \"custom\" | \"custom_message\" | \"label\" | \"session_info\" | \"leaf\" | \"prompt_epoch\" | \"announced_listing…); sessionStore.acquire(...).session.getStorage().getEntry(...) (changed: Property 'owner' is missing in type '{ readonly row: { readonly owner: string | null, readonly incarnation?: string | undefined, }, }' but required in type '{ owner: string | null, }'.); sessionStore.acquire(...).session.getStorage().getEntry(...) (changed: Type '\"config.project_id_invalid\"' is not assignable to type '\"config.spec_retired_key\" | \"config.output_style_invalid\" | \"config.language_invalid\" | \"config.permission_mode_invalid\" | \"config.shell_gate_value_retired\" | \"config.approval_r…); sessionStore.acquire(...).session.getStorage().getEntry(...) (changed: Type '\"workflow\"' is not assignable to type '\"subagent\" | \"workflow_member\" | \"background_agent\"'.)"
324
+ ],
325
+ "toResolvedAt": "a03a2cd1e6fc6fbaf1e83d9c5a750abc8faadccb"
326
+ }
@@ -0,0 +1,143 @@
1
+ {
2
+ "repo": "core",
3
+ "package": "@sema-agent/core-stores-sql",
4
+ "schema": 2,
5
+ "version": "7.74.0",
6
+ "from": "4e7f0eab1c80cc3181103d96790caf781cf5fa39",
7
+ "to": "v7.74.0",
8
+ "added": [],
9
+ "removed": [],
10
+ "changed": [],
11
+ "subpaths": [],
12
+ "subpathsUnread": [
13
+ "from",
14
+ "to"
15
+ ],
16
+ "narrowed": [],
17
+ "faces": {
18
+ "open": [],
19
+ "source": null
20
+ },
21
+ "closedSetMembers": [],
22
+ "closedSetsUnreadable": [],
23
+ "typeKeys": [],
24
+ "typeKeysUnreadableArms": [],
25
+ "typeKeysFlattenedCount": 4,
26
+ "signatures": [],
27
+ "versionLiterals": [],
28
+ "declarationMoves": [],
29
+ "mintMoves": [],
30
+ "noticeLineage": [],
31
+ "criteriaObserves": [],
32
+ "consumersHint": {
33
+ "cli": [],
34
+ "server": [],
35
+ "sdk": [],
36
+ "note": "scanned cli@73a4991c0 server@797d4d621 sdk@93fdd82 — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it"
37
+ },
38
+ "judge": {
39
+ "judgeVersion": "2",
40
+ "typescript": "5.7.2",
41
+ "counts": {
42
+ "same": 189
43
+ },
44
+ "probes": 1015,
45
+ "leaves": [],
46
+ "mustCheck": [
47
+ {
48
+ "id": "deep-nesting",
49
+ "form": "a method or callback nested deeper than 10 levels of anonymous object types under an export: the strict postures stop there (a method there is compared bivariantly)",
50
+ "measured": {
51
+ "count": 0,
52
+ "examples": [],
53
+ "note": "not measured: the depth a consumer reaches is not bounded by the declarations"
54
+ },
55
+ "owed": true,
56
+ "answer": "Not measurable by the run, so the hole was checked: the package's emitted declarations are byte-identical at both ends (diff -r of the judge's cached trees: only the timing sidecar differs), and the @sema-agent/core types they import (GovernanceRetryClass, ManagedRetentionCapability, RetentionDeclaration, RetentionReceipt, EngineStorageBackend, SessionLogTransfer, SessionStore) are declared in core files whose emitted text is unchanged in this range except governance-codes.d.ts, where GovernanceRetryClass itself (\"transient\" | \"terminal\") did not move; nothing can hide behind a bivariant method at any depth."
57
+ },
58
+ {
59
+ "id": "strict-generic",
60
+ "form": "a method-syntax member (compared bivariantly) inside a parameter or result of a GENERIC or OVERLOADED exported function: the strict posture is not written for those functions",
61
+ "measured": {
62
+ "count": 0,
63
+ "examples": []
64
+ },
65
+ "owed": false,
66
+ "answer": null
67
+ },
68
+ {
69
+ "id": "ambient-modules",
70
+ "form": "an ambient module (`declare module \"x\"`) both ends declare: in the one program the judge builds, the two declarations merge, so a change between them is not compared",
71
+ "measured": {
72
+ "count": 0,
73
+ "examples": []
74
+ },
75
+ "owed": false,
76
+ "answer": null
77
+ },
78
+ {
79
+ "id": "shared-dependency",
80
+ "form": "a type the package takes from another installed package: both ends are judged against the ONE copy installed now, so a dependency that moved between the two refs is not compared",
81
+ "measured": {
82
+ "count": 0,
83
+ "examples": []
84
+ },
85
+ "owed": false,
86
+ "answer": null
87
+ },
88
+ {
89
+ "id": "export-equals",
90
+ "form": "a module written `export =`: its members are not enumerated as named exports",
91
+ "measured": {
92
+ "count": 0,
93
+ "examples": []
94
+ },
95
+ "owed": false,
96
+ "answer": null
97
+ },
98
+ {
99
+ "id": "exact-optional",
100
+ "form": "a consumer compiled with `exactOptionalPropertyTypes`: the probes compile without it, so `k?: T` -> `k?: T | undefined` (and back) is not compared under it",
101
+ "measured": {
102
+ "count": 0,
103
+ "examples": [],
104
+ "note": "not measured: a consumer's compiler option"
105
+ },
106
+ "owed": true,
107
+ "answer": "Not measurable (a consumer's compiler option): the emitted declarations are byte-identical at both ends and the core types they import did not change in this range, so no `?` or `| undefined` moved anywhere a consumer of this package can see."
108
+ },
109
+ {
110
+ "id": "unresolved-imports",
111
+ "form": "an import inside the emitted declarations that does not resolve: what it names reads as `any`, which every posture accepts",
112
+ "measured": {
113
+ "count": 0,
114
+ "examples": []
115
+ },
116
+ "owed": false,
117
+ "answer": null
118
+ },
119
+ {
120
+ "id": "declaration-errors",
121
+ "form": "a declaration the end could not emit cleanly (`declaration emit` errors): the emitted file may say less than the source",
122
+ "measured": {
123
+ "count": 0,
124
+ "examples": []
125
+ },
126
+ "owed": false,
127
+ "answer": null
128
+ }
129
+ ],
130
+ "policyNotes": [],
131
+ "staleAnswers": [],
132
+ "seconds": {
133
+ "emitFrom": 1.25,
134
+ "emitTo": 0.471,
135
+ "build": 6.751,
136
+ "check": 6.258,
137
+ "total": 15.045
138
+ }
139
+ },
140
+ "breakingCount": 0,
141
+ "breakingItems": [],
142
+ "toResolvedAt": "5d5c8f6de0542dc2b9e48a1c16447d7ccc2605b6"
143
+ }