@skrr-ai/cli 0.1.149 → 0.1.151

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 (399) hide show
  1. package/README.md +20 -20
  2. package/dist/base-command.d.ts +6 -6
  3. package/dist/base-command.js +26 -26
  4. package/dist/commands/agenda/trigger/list.d.ts +1 -1
  5. package/dist/commands/agenda/trigger/list.js +6 -6
  6. package/dist/commands/agents/always-on/disable.js +10 -3
  7. package/dist/commands/agents/always-on/enable.js +1 -1
  8. package/dist/commands/agents/always-on/reconcile.js +1 -1
  9. package/dist/commands/agents/always-on/status.js +31 -8
  10. package/dist/commands/agents/create.d.ts +2 -2
  11. package/dist/commands/agents/create.js +12 -12
  12. package/dist/commands/agents/delete.d.ts +17 -1
  13. package/dist/commands/agents/delete.js +37 -1
  14. package/dist/commands/agents/egress.js +1 -1
  15. package/dist/commands/agents/list.d.ts +1 -1
  16. package/dist/commands/agents/list.js +1 -1
  17. package/dist/commands/agents/roles/capture.d.ts +1 -1
  18. package/dist/commands/agents/roles/capture.js +2 -2
  19. package/dist/commands/agents/roles/install.js +1 -1
  20. package/dist/commands/agents/spawn.js +47 -38
  21. package/dist/commands/agents/update.d.ts +1 -1
  22. package/dist/commands/agents/update.js +3 -3
  23. package/dist/commands/code/jobs/show.js +1 -1
  24. package/dist/commands/compass/archive.d.ts +1 -1
  25. package/dist/commands/compass/archive.js +1 -1
  26. package/dist/commands/compass/create.js +1 -1
  27. package/dist/commands/compass/{commitments.d.ts → duties.d.ts} +5 -5
  28. package/dist/commands/compass/{commitments.js → duties.js} +14 -14
  29. package/dist/commands/compass/trace.d.ts +1 -1
  30. package/dist/commands/compass/trace.js +2 -2
  31. package/dist/commands/convos/messages.js +2 -1
  32. package/dist/commands/doctor.d.ts +1 -1
  33. package/dist/commands/doctor.js +1 -1
  34. package/dist/commands/{commitments → duties}/accounting.d.ts +7 -7
  35. package/dist/commands/{commitments → duties}/accounting.js +13 -13
  36. package/dist/commands/{commitments → duties}/action-history.d.ts +3 -3
  37. package/dist/commands/{commitments → duties}/action-history.js +12 -12
  38. package/dist/commands/{commitments → duties}/action-proposal.d.ts +2 -2
  39. package/dist/commands/{commitments → duties}/action-proposal.js +6 -6
  40. package/dist/commands/{commitments → duties}/action-proposals/decide.d.ts +2 -2
  41. package/dist/commands/{commitments → duties}/action-proposals/decide.js +8 -8
  42. package/dist/commands/{commitments → duties}/action-proposals/execute.d.ts +2 -2
  43. package/dist/commands/{commitments → duties}/action-proposals/execute.js +7 -7
  44. package/dist/commands/{commitments → duties}/action-proposals/propose.d.ts +4 -4
  45. package/dist/commands/{commitments → duties}/action-proposals/propose.js +15 -15
  46. package/dist/commands/{commitments → duties}/action-proposals.d.ts +1 -1
  47. package/dist/commands/{commitments → duties}/action-proposals.js +6 -6
  48. package/dist/commands/{commitments → duties}/analytics/detail.d.ts +5 -5
  49. package/dist/commands/{commitments → duties}/analytics/detail.js +13 -13
  50. package/dist/commands/{commitments → duties}/analytics/index.d.ts +5 -5
  51. package/dist/commands/{commitments → duties}/analytics/index.js +30 -30
  52. package/dist/commands/{commitments → duties}/analytics/replay.d.ts +3 -3
  53. package/dist/commands/{commitments → duties}/analytics/replay.js +11 -11
  54. package/dist/commands/{commitments → duties}/attach.d.ts +3 -3
  55. package/dist/commands/{commitments → duties}/attach.js +21 -21
  56. package/dist/commands/{commitments → duties}/bundle.d.ts +1 -1
  57. package/dist/commands/{commitments → duties}/bundle.js +7 -7
  58. package/dist/commands/{commitments → duties}/cadence-decisions.d.ts +3 -3
  59. package/dist/commands/duties/cadence-decisions.js +41 -0
  60. package/dist/commands/{commitments → duties}/cadence-requests/decide.d.ts +4 -4
  61. package/dist/commands/{commitments → duties}/cadence-requests/decide.js +11 -11
  62. package/dist/commands/{commitments → duties}/case.d.ts +2 -2
  63. package/dist/commands/{commitments → duties}/case.js +8 -8
  64. package/dist/commands/{commitments → duties}/cases.d.ts +2 -2
  65. package/dist/commands/{commitments → duties}/cases.js +9 -9
  66. package/dist/commands/{commitments → duties}/check-now.d.ts +6 -6
  67. package/dist/commands/{commitments → duties}/check-now.js +29 -29
  68. package/dist/commands/{commitments → duties}/checks.d.ts +3 -3
  69. package/dist/commands/{commitments → duties}/checks.js +13 -13
  70. package/dist/commands/{commitments → duties}/complete.d.ts +2 -2
  71. package/dist/commands/duties/complete.js +40 -0
  72. package/dist/commands/{commitments → duties}/control/apply.d.ts +1 -1
  73. package/dist/commands/{commitments → duties}/control/apply.js +7 -7
  74. package/dist/commands/{commitments → duties}/control/preview.d.ts +1 -1
  75. package/dist/commands/{commitments → duties}/control/preview.js +8 -8
  76. package/dist/commands/{commitments → duties}/control/show.d.ts +1 -1
  77. package/dist/commands/{commitments → duties}/control/show.js +6 -6
  78. package/dist/commands/{commitments → duties}/cost.d.ts +6 -6
  79. package/dist/commands/{commitments → duties}/cost.js +14 -14
  80. package/dist/commands/{commitments → duties}/create.d.ts +8 -8
  81. package/dist/commands/{commitments → duties}/create.js +92 -92
  82. package/dist/commands/{commitments → duties}/cycles.d.ts +2 -2
  83. package/dist/commands/{commitments → duties}/cycles.js +11 -11
  84. package/dist/commands/{commitments → duties}/decide-remediation.d.ts +2 -2
  85. package/dist/commands/{commitments → duties}/decide-remediation.js +6 -6
  86. package/dist/commands/{commitments → duties}/delete.d.ts +4 -4
  87. package/dist/commands/{commitments → duties}/delete.js +24 -24
  88. package/dist/commands/{commitments → duties}/delivery.d.ts +1 -1
  89. package/dist/commands/{commitments → duties}/delivery.js +15 -15
  90. package/dist/commands/{commitments → duties}/detach.d.ts +3 -3
  91. package/dist/commands/{commitments → duties}/detach.js +20 -20
  92. package/dist/commands/{commitments → duties}/doctor.d.ts +4 -4
  93. package/dist/commands/{commitments → duties}/doctor.js +21 -21
  94. package/dist/commands/{commitments → duties}/effective-policy.d.ts +3 -3
  95. package/dist/commands/{commitments → duties}/effective-policy.js +24 -24
  96. package/dist/commands/{commitments → duties}/endpoints/connect.d.ts +2 -2
  97. package/dist/commands/{commitments → duties}/endpoints/connect.js +10 -10
  98. package/dist/commands/{commitments → duties}/endpoints/create.d.ts +3 -3
  99. package/dist/commands/{commitments → duties}/endpoints/create.js +16 -16
  100. package/dist/commands/{commitments → duties}/endpoints/delete.d.ts +3 -3
  101. package/dist/commands/{commitments → duties}/endpoints/delete.js +11 -11
  102. package/dist/commands/{commitments → duties}/endpoints/health.d.ts +2 -2
  103. package/dist/commands/{commitments → duties}/endpoints/health.js +10 -10
  104. package/dist/commands/{commitments → duties}/endpoints/list.d.ts +3 -3
  105. package/dist/commands/{commitments → duties}/endpoints/list.js +11 -11
  106. package/dist/commands/{commitments → duties}/endpoints/revoke.d.ts +4 -4
  107. package/dist/commands/{commitments → duties}/endpoints/revoke.js +13 -13
  108. package/dist/commands/{commitments → duties}/evaluations.d.ts +2 -2
  109. package/dist/commands/{commitments → duties}/evaluations.js +8 -8
  110. package/dist/commands/{commitments → duties}/execute-remediation.d.ts +2 -2
  111. package/dist/commands/{commitments → duties}/execute-remediation.js +7 -7
  112. package/dist/commands/{commitments → duties}/explain.d.ts +2 -2
  113. package/dist/commands/{commitments → duties}/explain.js +13 -13
  114. package/dist/commands/{commitments → duties}/export.d.ts +3 -3
  115. package/dist/commands/{commitments → duties}/export.js +15 -15
  116. package/dist/commands/{commitments → duties}/feedback.d.ts +4 -4
  117. package/dist/commands/{commitments → duties}/feedback.js +13 -13
  118. package/dist/commands/{commitments → duties}/fork.d.ts +3 -3
  119. package/dist/commands/{commitments → duties}/fork.js +11 -11
  120. package/dist/commands/{commitments → duties}/goals/link.d.ts +6 -6
  121. package/dist/commands/duties/goals/link.js +41 -0
  122. package/dist/commands/{commitments → duties}/goals/unlink.d.ts +4 -4
  123. package/dist/commands/duties/goals/unlink.js +37 -0
  124. package/dist/commands/{commitments → duties}/handover.d.ts +5 -5
  125. package/dist/commands/{commitments → duties}/handover.js +21 -21
  126. package/dist/commands/{commitments → duties}/hypotheses.d.ts +3 -3
  127. package/dist/commands/{commitments → duties}/hypotheses.js +13 -13
  128. package/dist/commands/{commitments → duties}/import.d.ts +2 -2
  129. package/dist/commands/{commitments → duties}/import.js +10 -10
  130. package/dist/commands/{commitments → duties}/ledger.d.ts +4 -4
  131. package/dist/commands/{commitments → duties}/ledger.js +12 -12
  132. package/dist/commands/{commitments → duties}/lineage.d.ts +5 -5
  133. package/dist/commands/duties/lineage.js +43 -0
  134. package/dist/commands/{commitments → duties}/links/create.d.ts +2 -2
  135. package/dist/commands/{commitments → duties}/links/create.js +9 -9
  136. package/dist/commands/{commitments → duties}/links/detach.d.ts +2 -2
  137. package/dist/commands/{commitments → duties}/links/detach.js +7 -7
  138. package/dist/commands/{commitments → duties}/links/list.d.ts +2 -2
  139. package/dist/commands/{commitments → duties}/links/list.js +9 -9
  140. package/dist/commands/{commitments → duties}/links/update.d.ts +2 -2
  141. package/dist/commands/{commitments → duties}/links/update.js +7 -7
  142. package/dist/commands/{commitments → duties}/list.d.ts +3 -3
  143. package/dist/commands/{commitments → duties}/list.js +17 -17
  144. package/dist/commands/{commitments → duties}/liveness.d.ts +6 -6
  145. package/dist/commands/{commitments → duties}/liveness.js +13 -13
  146. package/dist/commands/{commitments → duties}/metrics.d.ts +3 -3
  147. package/dist/commands/{commitments → duties}/metrics.js +12 -12
  148. package/dist/commands/{commitments → duties}/next-tick.d.ts +7 -7
  149. package/dist/commands/{commitments → duties}/next-tick.js +14 -14
  150. package/dist/commands/{commitments → duties}/observation/probe.d.ts +1 -1
  151. package/dist/commands/{commitments → duties}/observation/probe.js +12 -12
  152. package/dist/commands/{commitments → duties}/observation/summary.d.ts +1 -1
  153. package/dist/commands/{commitments → duties}/observation/summary.js +5 -5
  154. package/dist/commands/{commitments → duties}/observations.d.ts +4 -4
  155. package/dist/commands/{commitments → duties}/observations.js +18 -18
  156. package/dist/commands/{commitments → duties}/open.d.ts +1 -1
  157. package/dist/commands/{commitments → duties}/open.js +13 -13
  158. package/dist/commands/{commitments → duties}/operating-review.d.ts +5 -5
  159. package/dist/commands/{commitments → duties}/operating-review.js +21 -21
  160. package/dist/commands/{commitments → duties}/pack/activate.d.ts +1 -1
  161. package/dist/commands/{commitments → duties}/pack/activate.js +6 -6
  162. package/dist/commands/{commitments → duties}/pack/bind.d.ts +4 -4
  163. package/dist/commands/{commitments → duties}/pack/bind.js +19 -19
  164. package/dist/commands/{commitments → duties}/pack/list.d.ts +2 -2
  165. package/dist/commands/{commitments → duties}/pack/list.js +10 -10
  166. package/dist/commands/{commitments → duties}/pack/plan.d.ts +3 -3
  167. package/dist/commands/{commitments → duties}/pack/plan.js +12 -12
  168. package/dist/commands/{commitments → duties}/pack/preflight.d.ts +3 -3
  169. package/dist/commands/{commitments → duties}/pack/preflight.js +10 -10
  170. package/dist/commands/{commitments → duties}/patch.d.ts +1 -1
  171. package/dist/commands/{commitments → duties}/patch.js +7 -7
  172. package/dist/commands/{commitments → duties}/pause.d.ts +2 -2
  173. package/dist/commands/{commitments → duties}/pause.js +16 -16
  174. package/dist/commands/{commitments → duties}/plan.d.ts +4 -4
  175. package/dist/commands/{commitments → duties}/plan.js +20 -20
  176. package/dist/commands/{commitments → duties}/preflight.d.ts +8 -8
  177. package/dist/commands/{commitments → duties}/preflight.js +32 -32
  178. package/dist/commands/{commitments → duties}/propose-remediation.d.ts +2 -2
  179. package/dist/commands/{commitments → duties}/propose-remediation.js +6 -6
  180. package/dist/commands/{commitments → duties}/readiness/show.d.ts +1 -1
  181. package/dist/commands/{commitments → duties}/readiness/show.js +6 -6
  182. package/dist/commands/{commitments → duties}/readiness/verify.d.ts +1 -1
  183. package/dist/commands/{commitments → duties}/readiness/verify.js +7 -7
  184. package/dist/commands/{commitments → duties}/receipt-metrics.d.ts +4 -4
  185. package/dist/commands/{commitments → duties}/receipt-metrics.js +16 -16
  186. package/dist/commands/{commitments → duties}/receipt.d.ts +1 -1
  187. package/dist/commands/{commitments → duties}/receipt.js +10 -10
  188. package/dist/commands/{commitments → duties}/reflect.d.ts +4 -4
  189. package/dist/commands/{commitments → duties}/reflect.js +12 -12
  190. package/dist/commands/{commitments → duties}/reflection-decision.d.ts +2 -2
  191. package/dist/commands/{commitments → duties}/reflection-decision.js +7 -7
  192. package/dist/commands/{commitments → duties}/reflection.d.ts +2 -2
  193. package/dist/commands/{commitments → duties}/reflection.js +9 -9
  194. package/dist/commands/{commitments → duties}/remediate.d.ts +5 -5
  195. package/dist/commands/{commitments → duties}/remediate.js +14 -14
  196. package/dist/commands/{commitments → duties}/remediation-proposal.d.ts +2 -2
  197. package/dist/commands/{commitments → duties}/remediation-proposal.js +7 -7
  198. package/dist/commands/{commitments → duties}/remediation-proposals.d.ts +2 -2
  199. package/dist/commands/{commitments → duties}/remediation-proposals.js +8 -8
  200. package/dist/commands/{commitments → duties}/reports.d.ts +5 -5
  201. package/dist/commands/{commitments → duties}/reports.js +35 -35
  202. package/dist/commands/{commitments → duties}/restore.d.ts +2 -2
  203. package/dist/commands/duties/restore.js +46 -0
  204. package/dist/commands/{commitments → duties}/resume.d.ts +2 -2
  205. package/dist/commands/duties/resume.js +37 -0
  206. package/dist/commands/{commitments → duties}/roster.d.ts +2 -2
  207. package/dist/commands/duties/roster.js +39 -0
  208. package/dist/commands/{commitments → duties}/show.d.ts +7 -7
  209. package/dist/commands/{commitments → duties}/show.js +40 -40
  210. package/dist/commands/{commitments → duties}/status.d.ts +3 -3
  211. package/dist/commands/duties/status.js +41 -0
  212. package/dist/commands/{commitments → duties}/subject.d.ts +4 -4
  213. package/dist/commands/{commitments → duties}/subject.js +29 -29
  214. package/dist/commands/{commitments → duties}/trace.d.ts +3 -3
  215. package/dist/commands/{commitments → duties}/trace.js +12 -12
  216. package/dist/commands/{commitments → duties}/trigger-status.d.ts +6 -6
  217. package/dist/commands/{commitments → duties}/trigger-status.js +19 -19
  218. package/dist/commands/{commitments → duties}/update.d.ts +5 -5
  219. package/dist/commands/{commitments → duties}/update.js +64 -64
  220. package/dist/commands/{commitments → duties}/wake-capabilities.d.ts +6 -6
  221. package/dist/commands/{commitments → duties}/wake-capabilities.js +22 -22
  222. package/dist/commands/{commitments → duties}/work-plan.d.ts +1 -1
  223. package/dist/commands/{commitments → duties}/work-plan.js +6 -6
  224. package/dist/commands/goals/key-results/show.js +2 -1
  225. package/dist/commands/goals/plan-now.js +2 -2
  226. package/dist/commands/goals/planner-compare.d.ts +1 -1
  227. package/dist/commands/goals/planner-compare.js +2 -2
  228. package/dist/commands/grants/create.d.ts +1 -1
  229. package/dist/commands/grants/create.js +9 -9
  230. package/dist/commands/grants/list.d.ts +1 -1
  231. package/dist/commands/grants/list.js +2 -2
  232. package/dist/commands/initiatives/list.d.ts +1 -1
  233. package/dist/commands/initiatives/list.js +1 -1
  234. package/dist/commands/measures/create.d.ts +2 -2
  235. package/dist/commands/measures/create.js +4 -4
  236. package/dist/commands/measures/list.d.ts +1 -1
  237. package/dist/commands/measures/list.js +2 -2
  238. package/dist/commands/northstars/create.js +4 -4
  239. package/dist/commands/northstars/delete.d.ts +3 -3
  240. package/dist/commands/northstars/delete.js +8 -8
  241. package/dist/commands/northstars/governance/configure.js +15 -15
  242. package/dist/commands/northstars/intents/decide.d.ts +1 -1
  243. package/dist/commands/northstars/intents/decide.js +1 -1
  244. package/dist/commands/northstars/link.d.ts +4 -4
  245. package/dist/commands/northstars/link.js +8 -8
  246. package/dist/commands/northstars/list.d.ts +2 -2
  247. package/dist/commands/northstars/list.js +3 -3
  248. package/dist/commands/northstars/recommendations/apply.d.ts +1 -1
  249. package/dist/commands/northstars/recommendations/apply.js +2 -2
  250. package/dist/commands/northstars/review-now.js +2 -2
  251. package/dist/commands/northstars/show.d.ts +3 -3
  252. package/dist/commands/northstars/show.js +5 -5
  253. package/dist/commands/northstars/unlink.d.ts +3 -3
  254. package/dist/commands/northstars/unlink.js +6 -6
  255. package/dist/commands/northstars/update.js +3 -3
  256. package/dist/commands/proposals/list.d.ts +3 -3
  257. package/dist/commands/proposals/list.js +7 -7
  258. package/dist/commands/search/agents.d.ts +4 -1
  259. package/dist/commands/search/agents.js +6 -3
  260. package/dist/commands/search/all.d.ts +4 -1
  261. package/dist/commands/search/all.js +11 -7
  262. package/dist/commands/search/teams.d.ts +4 -1
  263. package/dist/commands/search/teams.js +6 -3
  264. package/dist/commands/spaces/auto-executor/compare.js +1 -1
  265. package/dist/commands/spaces/auto-executor/runs.js +1 -1
  266. package/dist/commands/spaces/heartbeats/list.js +2 -2
  267. package/dist/commands/spaces/index.js +2 -2
  268. package/dist/commands/spaces/list.d.ts +1 -1
  269. package/dist/commands/spaces/list.js +1 -1
  270. package/dist/commands/spaces/loops/migrate.d.ts +1 -1
  271. package/dist/commands/spaces/loops/migrate.js +1 -1
  272. package/dist/commands/spaces/loops/release.d.ts +1 -1
  273. package/dist/commands/spaces/loops/release.js +10 -10
  274. package/dist/commands/spaces/notebook.d.ts +2 -2
  275. package/dist/commands/spaces/notebook.js +2 -2
  276. package/dist/commands/spaces/proposals/discard.js +1 -1
  277. package/dist/commands/spaces/proposals/keep.js +1 -1
  278. package/dist/commands/spaces/triggers/show.js +3 -3
  279. package/dist/commands/spaces/write-policy/set.js +1 -1
  280. package/dist/commands/store/uninstall.js +2 -2
  281. package/dist/commands/subscriptions/health.d.ts +2 -2
  282. package/dist/commands/subscriptions/health.js +2 -2
  283. package/dist/commands/subscriptions/status.js +2 -2
  284. package/dist/commands/subscriptions/subscribe.js +4 -4
  285. package/dist/commands/tasks/create.d.ts +20 -1
  286. package/dist/commands/tasks/create.js +44 -3
  287. package/dist/commands/tasks/list.d.ts +7 -1
  288. package/dist/commands/tasks/list.js +2 -1
  289. package/dist/generated/agent-guides.json +496 -496
  290. package/dist/generated/managed-instruction-guides.json +2 -2
  291. package/dist/hooks/command-not-found.d.ts +1 -1
  292. package/dist/hooks/command-not-found.js +1 -1
  293. package/dist/lib/agent-chat-start.js +2 -1
  294. package/dist/lib/agent-trigger-listing.d.ts +4 -4
  295. package/dist/lib/agent-trigger-listing.js +7 -7
  296. package/dist/lib/agentic-stream.d.ts +16 -0
  297. package/dist/lib/agentic-stream.js +78 -21
  298. package/dist/lib/always-on-command-result.d.ts +8 -1
  299. package/dist/lib/always-on-command-result.js +11 -2
  300. package/dist/lib/auth-failure.js +1 -1
  301. package/dist/lib/capability-matrix.d.ts +3 -3
  302. package/dist/lib/capability-matrix.js +9 -9
  303. package/dist/lib/command-hygiene.js +6 -6
  304. package/dist/lib/command-miss.js +1 -1
  305. package/dist/lib/compass-refusals.d.ts +1 -1
  306. package/dist/lib/compass-refusals.js +1 -1
  307. package/dist/lib/compasses.d.ts +5 -5
  308. package/dist/lib/compasses.js +15 -15
  309. package/dist/lib/dedicated-machines.js +2 -1
  310. package/dist/lib/dedicated-power.js +2 -0
  311. package/dist/lib/{commitments.d.ts → duties.d.ts} +198 -198
  312. package/dist/lib/{commitments.js → duties.js} +282 -282
  313. package/dist/lib/{commitment-analytics.d.ts → duty-analytics.d.ts} +18 -18
  314. package/dist/lib/{commitment-analytics.js → duty-analytics.js} +12 -12
  315. package/dist/lib/{commitment-attention-copy.d.ts → duty-attention-copy.d.ts} +6 -6
  316. package/dist/lib/{commitment-attention-copy.js → duty-attention-copy.js} +8 -8
  317. package/dist/lib/{commitment-endpoints.d.ts → duty-endpoints.d.ts} +6 -6
  318. package/dist/lib/{commitment-endpoints.js → duty-endpoints.js} +10 -10
  319. package/dist/lib/{commitment-event-wakes.d.ts → duty-event-wakes.d.ts} +2 -2
  320. package/dist/lib/{commitment-event-wakes.js → duty-event-wakes.js} +2 -2
  321. package/dist/lib/{commitment-ledgers.js → duty-ledgers.js} +3 -3
  322. package/dist/lib/{commitment-loop-status.d.ts → duty-loop-status.d.ts} +11 -11
  323. package/dist/lib/{commitment-loop-status.js → duty-loop-status.js} +22 -22
  324. package/dist/lib/{commitment-product.d.ts → duty-product.d.ts} +6 -6
  325. package/dist/lib/{commitment-product.js → duty-product.js} +5 -5
  326. package/dist/lib/{commitment-terms.d.ts → duty-terms.d.ts} +9 -9
  327. package/dist/lib/{commitment-terms.js → duty-terms.js} +21 -21
  328. package/dist/lib/entity-open.d.ts +1 -1
  329. package/dist/lib/entity-open.js +1 -1
  330. package/dist/lib/format.d.ts +1 -1
  331. package/dist/lib/grants.d.ts +3 -3
  332. package/dist/lib/grants.js +2 -2
  333. package/dist/lib/initiatives.js +4 -4
  334. package/dist/lib/node-adapter.js +1 -1
  335. package/dist/lib/northstars.d.ts +13 -13
  336. package/dist/lib/northstars.js +56 -56
  337. package/dist/lib/open-target.js +1 -1
  338. package/dist/lib/preflight-copy.js +5 -5
  339. package/dist/lib/proactiveApi.d.ts +15 -4
  340. package/dist/lib/proposals.js +16 -16
  341. package/dist/lib/responsibility-controls.d.ts +1 -1
  342. package/dist/lib/responsibility-controls.js +6 -6
  343. package/dist/lib/roles.d.ts +1 -1
  344. package/dist/lib/schedule.d.ts +5 -5
  345. package/dist/lib/schedule.js +1 -1
  346. package/dist/lib/session-task-write.d.ts +1 -1
  347. package/dist/lib/session-task-write.js +2 -2
  348. package/dist/lib/space-loop-migration.js +6 -6
  349. package/dist/lib/space-notebook.js +2 -2
  350. package/dist/lib/space-write-policy.js +2 -2
  351. package/dist/lib/stewardship-output.js +2 -2
  352. package/dist/lib/task-spec-verification.js +1 -1
  353. package/dist/lib/tasks.d.ts +1 -1
  354. package/dist/lib/tasks.js +8 -8
  355. package/dist/lib/triggers.d.ts +3 -3
  356. package/dist/lib/triggers.js +11 -10
  357. package/dist/lib/usage-discovery.js +2 -4
  358. package/dist/lib/web-url.d.ts +6 -6
  359. package/dist/lib/web-url.js +13 -13
  360. package/dist/lib/workspaces.d.ts +4 -4
  361. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
  362. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.js → dutyExecutionContract.js} +22 -22
  363. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceipt.js +1 -1
  364. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceiptV2.js +1 -1
  365. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.d.ts +9 -9
  366. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.js +5 -5
  367. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.d.ts +2 -2
  368. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +4 -4
  369. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.d.ts +1 -1
  370. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +1 -1
  371. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.d.ts +1 -1
  372. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
  373. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.js → dutyExecutionContract.js} +16 -16
  374. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceipt.js +1 -1
  375. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceiptV2.js +1 -1
  376. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/profilePorts.js +1 -1
  377. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.d.ts +9 -9
  378. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.js +8 -8
  379. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.d.ts +2 -2
  380. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.js +6 -6
  381. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.d.ts +1 -1
  382. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.js +1 -1
  383. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.d.ts +1 -1
  384. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.js +1 -1
  385. package/dist/node_modules/@skrr-ai/auth-core/package.json +6 -6
  386. package/dist/node_modules/@skrr-ai/data-provider/index.js +8150 -8140
  387. package/docs/v1/lookback-plans.md +1 -1
  388. package/oclif.manifest.json +5365 -5350
  389. package/package.json +16 -16
  390. package/dist/commands/commitments/cadence-decisions.js +0 -41
  391. package/dist/commands/commitments/complete.js +0 -40
  392. package/dist/commands/commitments/goals/link.js +0 -41
  393. package/dist/commands/commitments/goals/unlink.js +0 -37
  394. package/dist/commands/commitments/lineage.js +0 -43
  395. package/dist/commands/commitments/restore.js +0 -46
  396. package/dist/commands/commitments/resume.js +0 -37
  397. package/dist/commands/commitments/roster.js +0 -39
  398. package/dist/commands/commitments/status.js +0 -41
  399. /package/dist/lib/{commitment-ledgers.d.ts → duty-ledgers.d.ts} +0 -0
@@ -27,7 +27,7 @@ exports.spaceUrlFrom = spaceUrlFrom;
27
27
  exports.conversationUrlFrom = conversationUrlFrom;
28
28
  exports.groupChatUrlFrom = groupChatUrlFrom;
29
29
  exports.goalUrlFrom = goalUrlFrom;
30
- exports.commitmentUrlFrom = commitmentUrlFrom;
30
+ exports.dutyUrlFrom = dutyUrlFrom;
31
31
  exports.northstarUrlFrom = northstarUrlFrom;
32
32
  exports.agentUrlFrom = agentUrlFrom;
33
33
  exports.compassUrlFrom = compassUrlFrom;
@@ -39,7 +39,7 @@ exports.projectUrlFrom = projectUrlFrom;
39
39
  exports.withProjectUrl = withProjectUrl;
40
40
  exports.wikiPageUrlFrom = wikiPageUrlFrom;
41
41
  exports.withWikiPageUrl = withWikiPageUrl;
42
- exports.withCommitmentUrl = withCommitmentUrl;
42
+ exports.withDutyUrl = withDutyUrl;
43
43
  exports.withNorthstarUrl = withNorthstarUrl;
44
44
  exports.withAgentUrl = withAgentUrl;
45
45
  exports.withDataUrls = withDataUrls;
@@ -85,9 +85,9 @@ function webPath(ref) {
85
85
  const spaceId = encodeId(ref.spaceId);
86
86
  return spaceId ? `/spaces/${spaceId}/goals/${goalId}` : `/goals/${goalId}`;
87
87
  }
88
- case 'commitment': {
89
- const commitmentId = encodeId(ref.commitmentId);
90
- return commitmentId ? `/commitments/${commitmentId}` : null;
88
+ case 'duty': {
89
+ const dutyId = encodeId(ref.dutyId);
90
+ return dutyId ? `/duties/${dutyId}` : null;
91
91
  }
92
92
  case 'northstar': {
93
93
  const northstarId = encodeId(ref.northstarId);
@@ -259,12 +259,12 @@ function goalUrlFrom(baseURL, goal) {
259
259
  return null;
260
260
  return webUrl(baseURL, { kind: 'goal', goalId, spaceId: idOf(goal, 'spaceId') ?? null });
261
261
  }
262
- /** Build a commitment URL from a raw server commitment record. */
263
- function commitmentUrlFrom(baseURL, commitment) {
264
- const commitmentId = idOf(commitment, 'id', '_id');
265
- if (!commitmentId)
262
+ /** Build a duty URL from a raw server duty record. */
263
+ function dutyUrlFrom(baseURL, duty) {
264
+ const dutyId = idOf(duty, 'id', '_id');
265
+ if (!dutyId)
266
266
  return null;
267
- return webUrl(baseURL, { kind: 'commitment', commitmentId });
267
+ return webUrl(baseURL, { kind: 'duty', dutyId });
268
268
  }
269
269
  /** Build a Northstar detail URL from a raw server Northstar record. */
270
270
  function northstarUrlFrom(baseURL, northstar) {
@@ -348,9 +348,9 @@ function wikiPageUrlFrom(baseURL, page) {
348
348
  function withWikiPageUrl(baseURL, page) {
349
349
  return { ...page, url: wikiPageUrlFrom(baseURL, page) };
350
350
  }
351
- /** Return a shallow copy of a commitment record with a `url` field attached. */
352
- function withCommitmentUrl(baseURL, commitment) {
353
- return { ...commitment, url: commitmentUrlFrom(baseURL, commitment) };
351
+ /** Return a shallow copy of a duty record with a `url` field attached. */
352
+ function withDutyUrl(baseURL, duty) {
353
+ return { ...duty, url: dutyUrlFrom(baseURL, duty) };
354
354
  }
355
355
  /** Return a shallow copy of a Northstar record with a canonical web URL. */
356
356
  function withNorthstarUrl(baseURL, northstar) {
@@ -4,7 +4,7 @@ export interface StewardshipSource {
4
4
  status: 'available' | 'unavailable';
5
5
  truncated: boolean;
6
6
  code?: string;
7
- /** `unattributedGrants` only: Grants in this workspace by Agent or Commitment that carry no workspace stamp and so are not listed. */
7
+ /** `unattributedGrants` only: Grants in this workspace by Agent or Duty that carry no workspace stamp and so are not listed. */
8
8
  unlisted?: number;
9
9
  }
10
10
  export interface StewardshipCoverage {
@@ -24,7 +24,7 @@ export interface WorkspaceGrantReport {
24
24
  grants: WorkspaceGrantMetadata[] | null;
25
25
  coverage: StewardshipCoverage;
26
26
  }
27
- export interface StewardshipCommitmentMetadata {
27
+ export interface StewardshipDutyMetadata {
28
28
  id: string;
29
29
  title?: string;
30
30
  status?: string;
@@ -38,8 +38,8 @@ export interface WorkspaceStewardshipReport extends WorkspaceGrantReport {
38
38
  /** `false` on `absent`: a removed member and an id that never existed read alike. */
39
39
  canDistinguishRemoved?: boolean;
40
40
  };
41
- commitments: StewardshipCommitmentMetadata[] | null;
42
- approverSeats: StewardshipCommitmentMetadata[] | null;
41
+ duties: StewardshipDutyMetadata[] | null;
42
+ approverSeats: StewardshipDutyMetadata[] | null;
43
43
  agents: Array<{
44
44
  id: string;
45
45
  name?: string;
@@ -1,11 +1,11 @@
1
1
  /** Mode-free responsibility context. Tool permissions belong to the Agent runtime. */
2
- export declare const COMMITMENT_EXECUTION_CONTRACT_VERSION: 3;
3
- export declare const COMMITMENT_EXECUTION_CONTRACT_CAPABILITY = "commitment_execution_contract_v3";
4
- export interface CommitmentExecutionContract {
2
+ export declare const DUTY_EXECUTION_CONTRACT_VERSION: 3;
3
+ export declare const DUTY_EXECUTION_CONTRACT_CAPABILITY = "duty_execution_contract_v3";
4
+ export interface DutyExecutionContract {
5
5
  version: 3;
6
- kind: 'commitment' | 'task_delivery';
6
+ kind: 'duty' | 'task_delivery';
7
7
  responsibilityRef: {
8
- kind: 'commitment' | 'task';
8
+ kind: 'duty' | 'task';
9
9
  id: string;
10
10
  version: number;
11
11
  };
@@ -38,8 +38,8 @@ export interface CommitmentExecutionContract {
38
38
  };
39
39
  };
40
40
  mustNot: string[];
41
- return: 'commitment_result_v1' | 'task_output';
41
+ return: 'duty_result_v1' | 'task_output';
42
42
  }
43
43
  export declare function eventRepository(event: Record<string, unknown> | null | undefined): string;
44
44
  /** One strict parser used at storage admission and at runtime admission. */
45
- export declare function normalizeCommitmentExecutionContract(value: unknown): CommitmentExecutionContract | null;
45
+ export declare function normalizeDutyExecutionContract(value: unknown): DutyExecutionContract | null;
@@ -16,14 +16,14 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var commitmentExecutionContract_exports = {};
20
- __export(commitmentExecutionContract_exports, {
21
- COMMITMENT_EXECUTION_CONTRACT_CAPABILITY: () => COMMITMENT_EXECUTION_CONTRACT_CAPABILITY,
22
- COMMITMENT_EXECUTION_CONTRACT_VERSION: () => COMMITMENT_EXECUTION_CONTRACT_VERSION,
19
+ var dutyExecutionContract_exports = {};
20
+ __export(dutyExecutionContract_exports, {
21
+ DUTY_EXECUTION_CONTRACT_CAPABILITY: () => DUTY_EXECUTION_CONTRACT_CAPABILITY,
22
+ DUTY_EXECUTION_CONTRACT_VERSION: () => DUTY_EXECUTION_CONTRACT_VERSION,
23
23
  eventRepository: () => eventRepository,
24
- normalizeCommitmentExecutionContract: () => normalizeCommitmentExecutionContract
24
+ normalizeDutyExecutionContract: () => normalizeDutyExecutionContract
25
25
  });
26
- module.exports = __toCommonJS(commitmentExecutionContract_exports);
26
+ module.exports = __toCommonJS(dutyExecutionContract_exports);
27
27
  var import_node_util = require("node:util");
28
28
  const VALID_CI_LOG_EVIDENCE_RE = /^[\w.-]+\/[\w.-]+$/;
29
29
  const VALID_CI_LOG_EVIDENCE_RE_2 = /^\d{1,20}$/;
@@ -36,8 +36,8 @@ const VALID_BRANCH_RE = /[\s~^:?*[\\\x00-\x1f\x7f]/;
36
36
  const VALID_DELIVERY_RE = /^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/;
37
37
  const VALID_DELIVERY_SOURCE_RE = /^[A-Za-z0-9][A-Za-z0-9_./-]{0,239}$/;
38
38
  const VALID_DELIVERY_SOURCE_RE_2 = /^[a-f0-9]{40,64}$/i;
39
- const COMMITMENT_EXECUTION_CONTRACT_VERSION = 3;
40
- const COMMITMENT_EXECUTION_CONTRACT_CAPABILITY = "commitment_execution_contract_v3";
39
+ const DUTY_EXECUTION_CONTRACT_VERSION = 3;
40
+ const DUTY_EXECUTION_CONTRACT_CAPABILITY = "duty_execution_contract_v3";
41
41
  const DELIVERY_MODES = /* @__PURE__ */ new Set([
42
42
  "report_only",
43
43
  "local_patch",
@@ -120,14 +120,14 @@ const CAPABILITY_SOURCE_KEYS = /* @__PURE__ */ new Set([
120
120
  "reason"
121
121
  ]);
122
122
  const WORKSPACE_CONSTRAINT_KEYS = /* @__PURE__ */ new Set([
123
- "allowedCommitmentDeliveryModes",
123
+ "allowedDutyDeliveryModes",
124
124
  "requireAttestedAccessForDeliveryModes",
125
125
  "maxInitiativesPerDay",
126
126
  "maxAutoRunsPerDay",
127
- "maxCommitmentActionRunsPerDay",
128
- "maxCommitmentObservationRunsPerDay",
129
- "maxCommitmentConcurrentRuns",
130
- "maxCommitmentCostUsdPerDay",
127
+ "maxDutyActionRunsPerDay",
128
+ "maxDutyObservationRunsPerDay",
129
+ "maxDutyConcurrentRuns",
130
+ "maxDutyCostUsdPerDay",
131
131
  "requireApprovalRiskLevels",
132
132
  "requireApprovalActionClasses",
133
133
  "blockedSourceKinds"
@@ -309,10 +309,10 @@ function validWorkspacePolicy(value) {
309
309
  for (const [key, item] of Object.entries(value.hardConstraints)) {
310
310
  if (item === null)
311
311
  continue;
312
- if (key === "allowedCommitmentDeliveryModes" || key === "requireAttestedAccessForDeliveryModes") {
312
+ if (key === "allowedDutyDeliveryModes" || key === "requireAttestedAccessForDeliveryModes") {
313
313
  if (!validStringArray(item, 5, DELIVERY_MODES))
314
314
  return false;
315
- } else if (key === "maxCommitmentCostUsdPerDay") {
315
+ } else if (key === "maxDutyCostUsdPerDay") {
316
316
  if (typeof item !== "number" || !Number.isFinite(item) || item < 0)
317
317
  return false;
318
318
  } else if (key.startsWith("max")) {
@@ -360,7 +360,7 @@ function validDelivery(value) {
360
360
  if (!hasOnlyKeys(expectation, allowed) || !["code", "page", "url", "file", "message", "dataset"].includes(String(expectation.kind)))
361
361
  return false;
362
362
  if (expectation.id !== void 0) {
363
- if (!boundedString(expectation.id, 64) || expectation.id === "commitment-delivery" || ids.has(expectation.id))
363
+ if (!boundedString(expectation.id, 64) || expectation.id === "duty-delivery" || ids.has(expectation.id))
364
364
  return false;
365
365
  ids.add(expectation.id);
366
366
  }
@@ -405,7 +405,7 @@ function failedGitHubCheck(event) {
405
405
  const eventType = String(event?.eventType || event?.type || "").toLowerCase();
406
406
  return eventType === "github.check_run_failed" || eventType === "check_run_failed";
407
407
  }
408
- function normalizeCommitmentExecutionContract(value) {
408
+ function normalizeDutyExecutionContract(value) {
409
409
  if (!hasOnlyKeys(value, /* @__PURE__ */ new Set([
410
410
  "version",
411
411
  "kind",
@@ -427,18 +427,18 @@ function normalizeCommitmentExecutionContract(value) {
427
427
  const eventSha = eventSourceRevision(event);
428
428
  const eventRepo = eventRepository(event);
429
429
  const taskDelivery = contract.kind === "task_delivery";
430
- if (contract.version !== COMMITMENT_EXECUTION_CONTRACT_VERSION || !["commitment", "task_delivery"].includes(contract.kind) || !hasOnlyKeys(contract.responsibilityRef, /* @__PURE__ */ new Set(["kind", "id", "version"])) || contract.responsibilityRef.kind !== (taskDelivery ? "task" : "commitment") || !boundedString(contract.responsibilityRef.id, 240) || !Number.isSafeInteger(contract.responsibilityRef.version) || contract.responsibilityRef.version < 1 || !boundedString(contract.responsibility, 2e3) || !hasOnlyKeys(contract.workspace, /* @__PURE__ */ new Set(["kind", "base", "fetchBase"])) || contract.workspace.kind !== "ephemeral" || !boundedString(contract.workspace.base, 255) || contract.workspace.fetchBase !== void 0 && (contract.workspace.fetchBase !== true || contract.workspace.kind !== "ephemeral") || !validDelivery(contract.delivery) || !Array.isArray(contract.capabilitySources) || contract.capabilitySources.length > 32 || !contract.capabilitySources.every(validCapabilitySource) || !validWorkspacePolicy(contract.workspacePolicy ?? {}) || !(0, import_node_util.isDeepStrictEqual)(contract.mustNot, [
430
+ if (contract.version !== DUTY_EXECUTION_CONTRACT_VERSION || !["duty", "task_delivery"].includes(contract.kind) || !hasOnlyKeys(contract.responsibilityRef, /* @__PURE__ */ new Set(["kind", "id", "version"])) || contract.responsibilityRef.kind !== (taskDelivery ? "task" : "duty") || !boundedString(contract.responsibilityRef.id, 240) || !Number.isSafeInteger(contract.responsibilityRef.version) || contract.responsibilityRef.version < 1 || !boundedString(contract.responsibility, 2e3) || !hasOnlyKeys(contract.workspace, /* @__PURE__ */ new Set(["kind", "base", "fetchBase"])) || contract.workspace.kind !== "ephemeral" || !boundedString(contract.workspace.base, 255) || contract.workspace.fetchBase !== void 0 && (contract.workspace.fetchBase !== true || contract.workspace.kind !== "ephemeral") || !validDelivery(contract.delivery) || !Array.isArray(contract.capabilitySources) || contract.capabilitySources.length > 32 || !contract.capabilitySources.every(validCapabilitySource) || !validWorkspacePolicy(contract.workspacePolicy ?? {}) || !(0, import_node_util.isDeepStrictEqual)(contract.mustNot, [
431
431
  "change_workspace_administration",
432
432
  "broaden_credentials",
433
433
  ...taskDelivery ? ["reimplement_source_work"] : []
434
- ]) || (taskDelivery ? contract.return !== "task_output" : contract.return !== "commitment_result_v1") || event !== null && (!plainObject(event) || !(0, import_node_util.isDeepStrictEqual)(event, normalizedEventFacts(event))) || eventSha && contract.workspace.base.toLowerCase() !== eventSha || eventRepo && contract.delivery.repo && String(contract.delivery.repo).toLowerCase() !== eventRepo || failedGitHubCheck(event) && (!eventSha || !eventRepo) || contract.evidence !== void 0 && (taskDelivery || !validEvidence(contract.evidence) || !contract.evidence.ci.every((row) => evidenceMatchesEvent(row, event))) || taskDelivery && (event !== null || !["draft_pr", "push_branch", "direct_branch"].includes(contract.delivery.mode) || contract.workspace.kind !== "ephemeral" || !validDeliverySource(contract.deliverySource) || contract.responsibilityRef.id !== contract.deliverySource?.parentTaskId || contract.workspace.base.toLowerCase() !== String(contract.deliverySource?.baseCommit).toLowerCase()) || !taskDelivery && contract.deliverySource !== void 0)
434
+ ]) || (taskDelivery ? contract.return !== "task_output" : contract.return !== "duty_result_v1") || event !== null && (!plainObject(event) || !(0, import_node_util.isDeepStrictEqual)(event, normalizedEventFacts(event))) || eventSha && contract.workspace.base.toLowerCase() !== eventSha || eventRepo && contract.delivery.repo && String(contract.delivery.repo).toLowerCase() !== eventRepo || failedGitHubCheck(event) && (!eventSha || !eventRepo) || contract.evidence !== void 0 && (taskDelivery || !validEvidence(contract.evidence) || !contract.evidence.ci.every((row) => evidenceMatchesEvent(row, event))) || taskDelivery && (event !== null || !["draft_pr", "push_branch", "direct_branch"].includes(contract.delivery.mode) || contract.workspace.kind !== "ephemeral" || !validDeliverySource(contract.deliverySource) || contract.responsibilityRef.id !== contract.deliverySource?.parentTaskId || contract.workspace.base.toLowerCase() !== String(contract.deliverySource?.baseCommit).toLowerCase()) || !taskDelivery && contract.deliverySource !== void 0)
435
435
  return null;
436
436
  return JSON.parse(JSON.stringify(contract));
437
437
  }
438
438
  // Annotate the CommonJS export names for ESM import in node:
439
439
  0 && (module.exports = {
440
- COMMITMENT_EXECUTION_CONTRACT_CAPABILITY,
441
- COMMITMENT_EXECUTION_CONTRACT_VERSION,
440
+ DUTY_EXECUTION_CONTRACT_CAPABILITY,
441
+ DUTY_EXECUTION_CONTRACT_VERSION,
442
442
  eventRepository,
443
- normalizeCommitmentExecutionContract
443
+ normalizeDutyExecutionContract
444
444
  });
@@ -102,7 +102,7 @@ async function signExecutorStopReceipt(signer, body, options = {}) {
102
102
  const proof = await (0, import_deviceKey.signProofWith)(signer, {
103
103
  method: "POST",
104
104
  url: executorStopReceiptHtu(parsed.dispatchId),
105
- // `accessToken` is hashed inline into the `ath` claim: the commitment to the body.
105
+ // `accessToken` is hashed inline into the `ath` claim: the duty to the body.
106
106
  accessToken: canonicalReceiptJson(parsed),
107
107
  ...options.iat !== void 0 ? { iat: options.iat } : {},
108
108
  ...options.jti !== void 0 ? { jti: options.jti } : {}
@@ -121,7 +121,7 @@ async function signExecutorStopReceiptV2(signer, body, options = {}) {
121
121
  const proof = await (0, import_deviceKey.signProofWith)(signer, {
122
122
  method: "POST",
123
123
  url: executorStopReceiptV2Htu(parsed.dispatchId),
124
- // `accessToken` is hashed inline into the `ath` claim: the commitment to the body.
124
+ // `accessToken` is hashed inline into the `ath` claim: the duty to the body.
125
125
  accessToken: (0, import_executorStopReceipt.canonicalReceiptJson)(parsed),
126
126
  ...options.iat !== void 0 ? { iat: options.iat } : {},
127
127
  ...options.jti !== void 0 ? { jti: options.jti } : {}
@@ -1,21 +1,21 @@
1
- /** Commitment context never overrides Agent permissions. Version 3 admission
1
+ /** Duty context never overrides Agent permissions. Version 3 admission
2
2
  * rejects old contracts; typed Task delivery is a separate frozen operation. */
3
3
  /** The wire vocabulary for `permissionSource`. Top-level session field. */
4
4
  export declare const SESSION_PERMISSION_SOURCES: readonly ["agent"];
5
5
  export type SessionPermissionSource = (typeof SESSION_PERMISSION_SOURCES)[number];
6
6
  /**
7
7
  * The daemon capability that proves a build honours `permissionSource`. The
8
- * server announces it in preflight and refuses to dispatch a Commitment Run to
9
- * a daemon without it (`COMMITMENT_AGENT_PERMISSIONS_RUNTIME_UNSUPPORTED`), so
8
+ * server announces it in preflight and refuses to dispatch a Duty Run to
9
+ * a daemon without it (`DUTY_AGENT_PERMISSIONS_RUNTIME_UNSUPPORTED`), so
10
10
  * the marker never reaches a daemon that would ignore it.
11
11
  */
12
- export declare const COMMITMENT_AGENT_PERMISSIONS_CAPABILITY = "commitment_execution_contract_v3";
12
+ export declare const DUTY_AGENT_PERMISSIONS_CAPABILITY = "duty_execution_contract_v3";
13
13
  /**
14
14
  * The minimal contract shape this rule reads. The predicate only ever needs
15
15
  * `kind` — keeping the input structural means this module never imports the
16
- * full `CommitmentExecutionContract` type, which lives daemon-side
17
- * (`daemon/src/commitment-execution-contract.ts`) and server-side in the
18
- * commitment services.
16
+ * full `DutyExecutionContract` type, which lives daemon-side
17
+ * (`daemon/src/duty-execution-contract.ts`) and server-side in the
18
+ * duty services.
19
19
  */
20
20
  export type PermissionContractKind = {
21
21
  kind?: unknown;
@@ -26,13 +26,13 @@ export type PermissionContractKind = {
26
26
  */
27
27
  export declare function normalizeSessionPermissionSource(value: unknown): SessionPermissionSource | undefined;
28
28
  /**
29
- * What the server stamps on the wire for this contract. A `commitment`
29
+ * What the server stamps on the wire for this contract. A `duty`
30
30
  * contract no longer carries permissions (OSK-11975); every other contract
31
31
  * kind keeps its own authority and stamps nothing.
32
32
  */
33
33
  export declare function permissionSourceForContract(contract: PermissionContractKind): SessionPermissionSource | undefined;
34
34
  /** Only typed Task delivery owns an effect-specific permission boundary.
35
- * A Commitment is context for the Agent and cannot grant or restrict tools.
35
+ * A Duty is context for the Agent and cannot grant or restrict tools.
36
36
  */
37
37
  export declare function contractGovernsPermissions(contract: PermissionContractKind, _permissionSource?: unknown): boolean;
38
38
  /**
@@ -18,7 +18,7 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var sessionPermissionAuthority_exports = {};
20
20
  __export(sessionPermissionAuthority_exports, {
21
- COMMITMENT_AGENT_PERMISSIONS_CAPABILITY: () => COMMITMENT_AGENT_PERMISSIONS_CAPABILITY,
21
+ DUTY_AGENT_PERMISSIONS_CAPABILITY: () => DUTY_AGENT_PERMISSIONS_CAPABILITY,
22
22
  SESSION_PERMISSION_SOURCES: () => SESSION_PERMISSION_SOURCES,
23
23
  contractGovernsPermissions: () => contractGovernsPermissions,
24
24
  normalizeSessionPermissionSource: () => normalizeSessionPermissionSource,
@@ -27,22 +27,22 @@ __export(sessionPermissionAuthority_exports, {
27
27
  });
28
28
  module.exports = __toCommonJS(sessionPermissionAuthority_exports);
29
29
  const SESSION_PERMISSION_SOURCES = ["agent"];
30
- const COMMITMENT_AGENT_PERMISSIONS_CAPABILITY = "commitment_execution_contract_v3";
30
+ const DUTY_AGENT_PERMISSIONS_CAPABILITY = "duty_execution_contract_v3";
31
31
  function normalizeSessionPermissionSource(value) {
32
32
  return SESSION_PERMISSION_SOURCES.includes(value) ? value : void 0;
33
33
  }
34
34
  function permissionSourceForContract(contract) {
35
- return contract?.kind === "commitment" ? "agent" : void 0;
35
+ return contract?.kind === "duty" ? "agent" : void 0;
36
36
  }
37
37
  function contractGovernsPermissions(contract, _permissionSource) {
38
- return Boolean(contract && contract.kind !== "commitment");
38
+ return Boolean(contract && contract.kind !== "duty");
39
39
  }
40
40
  function permissionGoverningContract(contract, permissionSource) {
41
41
  return contract && contractGovernsPermissions(contract, permissionSource) ? contract : void 0;
42
42
  }
43
43
  // Annotate the CommonJS export names for ESM import in node:
44
44
  0 && (module.exports = {
45
- COMMITMENT_AGENT_PERMISSIONS_CAPABILITY,
45
+ DUTY_AGENT_PERMISSIONS_CAPABILITY,
46
46
  SESSION_PERMISSION_SOURCES,
47
47
  contractGovernsPermissions,
48
48
  normalizeSessionPermissionSource,
@@ -43,7 +43,7 @@
43
43
  * ## Unknown is a member, and it is never hidden
44
44
  *
45
45
  * Each list carries an explicit `unknown`. A missing, empty or unrecognised
46
- * value normalizes to it, and its copy says plainly that we could not tell why.
46
+ * value normalizes to it, and its copy gives a simple sign-in prompt.
47
47
  * It is never folded into the nearest reassuring reading: "Everything reads
48
48
  * healthy and the thing is unusable" (root CLAUDE.md) is exactly what an
49
49
  * optimistic default here would produce.
@@ -128,7 +128,7 @@ export interface SessionRevocationDescription {
128
128
  /**
129
129
  * THE copy for a revoked session. Never throws, whatever it is given: the server
130
130
  * can ship a reason before a client knows it, and that case must still say
131
- * something true ("we could not tell why"), not nothing.
131
+ * that the person was signed out, without speculating about the cause.
132
132
  */
133
133
  export declare function describeSessionRevocation(value: unknown, { surface, bin, }?: {
134
134
  surface?: SessionRevocationSurface;
@@ -159,9 +159,9 @@ const REASON_COPY = Object.freeze({
159
159
  nextStep: "cancel_deletion"
160
160
  },
161
161
  unknown: {
162
- title: "You were signed out, and we could not tell why.",
163
- detail: "The server ended this session without saying why. That can happen with an older server or an unexpected error.",
164
- nextStep: "sign_in_and_review"
162
+ title: "You were signed out.",
163
+ detail: "",
164
+ nextStep: "sign_in"
165
165
  }
166
166
  });
167
167
  function nextStepCopy(step, surface, bin) {
@@ -201,7 +201,7 @@ function describeSessionRevocation(value, { surface = "app", bin = SESSION_REVOC
201
201
  function formatSessionRevocation(value, options = {}) {
202
202
  const d = describeSessionRevocation(value, options);
203
203
  const code = d.unrecognized ? ` (reason code: ${d.unrecognized})` : "";
204
- return `${d.title}${code} ${d.detail} ${d.nextStepText}`;
204
+ return [`${d.title}${code}`, d.detail, d.nextStepText].filter(Boolean).join(" ");
205
205
  }
206
206
  const SESSION_REVOCATION_TRIGGERS = [
207
207
  "account_owner",
@@ -93,7 +93,7 @@ export declare class PermanentAuthFailure extends Error {
93
93
  * `SESSION_REVOCATION_REASONS` value, `./sessionRevocation.ts`) exactly as
94
94
  * received, or undefined when the server sent none. Deliberately not
95
95
  * normalized here: a surface rendering it with `describeSessionRevocation`
96
- * turns a missing or unknown value into the "we could not tell why" copy,
96
+ * turns a missing or unknown value into the generic signed-out copy,
97
97
  * and keeps an unrecognised code visible rather than losing it.
98
98
  */
99
99
  readonly revocationReason?: string;
@@ -29,7 +29,7 @@ class PermanentAuthFailure extends Error {
29
29
  * `SESSION_REVOCATION_REASONS` value, `./sessionRevocation.ts`) exactly as
30
30
  * received, or undefined when the server sent none. Deliberately not
31
31
  * normalized here: a surface rendering it with `describeSessionRevocation`
32
- * turns a missing or unknown value into the "we could not tell why" copy,
32
+ * turns a missing or unknown value into the generic signed-out copy,
33
33
  * and keeps an unrecognised code visible rather than losing it.
34
34
  */
35
35
  revocationReason;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The workspace-isolation probe wire contract (OSK-15099).
3
3
  *
4
- * A Commitment Run is always isolated: the daemon cuts it a private git
4
+ * A Duty Run is always isolated: the daemon cuts it a private git
5
5
  * worktree from the directory the Run is rooted in, and refuses the Run with
6
6
  * `EXECUTION_ISOLATION_UNAVAILABLE` before any tool when it cannot. Preflight
7
7
  * had no way to read that machine's filesystem, so it reported `ready`,
@@ -1,11 +1,11 @@
1
1
  /** Mode-free responsibility context. Tool permissions belong to the Agent runtime. */
2
- export declare const COMMITMENT_EXECUTION_CONTRACT_VERSION: 3;
3
- export declare const COMMITMENT_EXECUTION_CONTRACT_CAPABILITY = "commitment_execution_contract_v3";
4
- export interface CommitmentExecutionContract {
2
+ export declare const DUTY_EXECUTION_CONTRACT_VERSION: 3;
3
+ export declare const DUTY_EXECUTION_CONTRACT_CAPABILITY = "duty_execution_contract_v3";
4
+ export interface DutyExecutionContract {
5
5
  version: 3;
6
- kind: 'commitment' | 'task_delivery';
6
+ kind: 'duty' | 'task_delivery';
7
7
  responsibilityRef: {
8
- kind: 'commitment' | 'task';
8
+ kind: 'duty' | 'task';
9
9
  id: string;
10
10
  version: number;
11
11
  };
@@ -38,8 +38,8 @@ export interface CommitmentExecutionContract {
38
38
  };
39
39
  };
40
40
  mustNot: string[];
41
- return: 'commitment_result_v1' | 'task_output';
41
+ return: 'duty_result_v1' | 'task_output';
42
42
  }
43
43
  export declare function eventRepository(event: Record<string, unknown> | null | undefined): string;
44
44
  /** One strict parser used at storage admission and at runtime admission. */
45
- export declare function normalizeCommitmentExecutionContract(value: unknown): CommitmentExecutionContract | null;
45
+ export declare function normalizeDutyExecutionContract(value: unknown): DutyExecutionContract | null;
@@ -12,8 +12,8 @@ const VALID_DELIVERY_RE = /^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/;
12
12
  const VALID_DELIVERY_SOURCE_RE = /^[A-Za-z0-9][A-Za-z0-9_./-]{0,239}$/;
13
13
  const VALID_DELIVERY_SOURCE_RE_2 = /^[a-f0-9]{40,64}$/i;
14
14
  /** Mode-free responsibility context. Tool permissions belong to the Agent runtime. */
15
- export const COMMITMENT_EXECUTION_CONTRACT_VERSION = 3;
16
- export const COMMITMENT_EXECUTION_CONTRACT_CAPABILITY = 'commitment_execution_contract_v3';
15
+ export const DUTY_EXECUTION_CONTRACT_VERSION = 3;
16
+ export const DUTY_EXECUTION_CONTRACT_CAPABILITY = 'duty_execution_contract_v3';
17
17
  const DELIVERY_MODES = new Set([
18
18
  'report_only',
19
19
  'local_patch',
@@ -96,14 +96,14 @@ const CAPABILITY_SOURCE_KEYS = new Set([
96
96
  'reason',
97
97
  ]);
98
98
  const WORKSPACE_CONSTRAINT_KEYS = new Set([
99
- 'allowedCommitmentDeliveryModes',
99
+ 'allowedDutyDeliveryModes',
100
100
  'requireAttestedAccessForDeliveryModes',
101
101
  'maxInitiativesPerDay',
102
102
  'maxAutoRunsPerDay',
103
- 'maxCommitmentActionRunsPerDay',
104
- 'maxCommitmentObservationRunsPerDay',
105
- 'maxCommitmentConcurrentRuns',
106
- 'maxCommitmentCostUsdPerDay',
103
+ 'maxDutyActionRunsPerDay',
104
+ 'maxDutyObservationRunsPerDay',
105
+ 'maxDutyConcurrentRuns',
106
+ 'maxDutyCostUsdPerDay',
107
107
  'requireApprovalRiskLevels',
108
108
  'requireApprovalActionClasses',
109
109
  'blockedSourceKinds',
@@ -242,7 +242,7 @@ function validEvidence(value) {
242
242
  value.ci.every(validCiLogEvidence));
243
243
  }
244
244
  // Mirror of `validObserve` in
245
- // api/server/services/Commitments/CommitmentExecutionContract.js. The daemon
245
+ // api/server/services/Duties/DutyExecutionContract.js. The daemon
246
246
  // has no projector, so canonical form is part of validity on both sides:
247
247
  // `egress` must be strictly ascending (sorted AND unique). The shared parity
248
248
  // fixture holds the two to one verdict.
@@ -341,12 +341,12 @@ function validWorkspacePolicy(value) {
341
341
  for (const [key, item] of Object.entries(value.hardConstraints)) {
342
342
  if (item === null)
343
343
  continue;
344
- if (key === 'allowedCommitmentDeliveryModes' ||
344
+ if (key === 'allowedDutyDeliveryModes' ||
345
345
  key === 'requireAttestedAccessForDeliveryModes') {
346
346
  if (!validStringArray(item, 5, DELIVERY_MODES))
347
347
  return false;
348
348
  }
349
- else if (key === 'maxCommitmentCostUsdPerDay') {
349
+ else if (key === 'maxDutyCostUsdPerDay') {
350
350
  if (typeof item !== 'number' || !Number.isFinite(item) || item < 0)
351
351
  return false;
352
352
  }
@@ -415,7 +415,7 @@ function validDelivery(value) {
415
415
  return false;
416
416
  if (expectation.id !== undefined) {
417
417
  if (!boundedString(expectation.id, 64) ||
418
- expectation.id === 'commitment-delivery' ||
418
+ expectation.id === 'duty-delivery' ||
419
419
  ids.has(expectation.id))
420
420
  return false;
421
421
  ids.add(expectation.id);
@@ -481,7 +481,7 @@ function failedGitHubCheck(event) {
481
481
  return eventType === 'github.check_run_failed' || eventType === 'check_run_failed';
482
482
  }
483
483
  /** One strict parser used at storage admission and at runtime admission. */
484
- export function normalizeCommitmentExecutionContract(value) {
484
+ export function normalizeDutyExecutionContract(value) {
485
485
  if (!hasOnlyKeys(value, new Set([
486
486
  'version',
487
487
  'kind',
@@ -503,10 +503,10 @@ export function normalizeCommitmentExecutionContract(value) {
503
503
  const eventSha = eventSourceRevision(event);
504
504
  const eventRepo = eventRepository(event);
505
505
  const taskDelivery = contract.kind === 'task_delivery';
506
- if (contract.version !== COMMITMENT_EXECUTION_CONTRACT_VERSION ||
507
- !['commitment', 'task_delivery'].includes(contract.kind) ||
506
+ if (contract.version !== DUTY_EXECUTION_CONTRACT_VERSION ||
507
+ !['duty', 'task_delivery'].includes(contract.kind) ||
508
508
  !hasOnlyKeys(contract.responsibilityRef, new Set(['kind', 'id', 'version'])) ||
509
- contract.responsibilityRef.kind !== (taskDelivery ? 'task' : 'commitment') ||
509
+ contract.responsibilityRef.kind !== (taskDelivery ? 'task' : 'duty') ||
510
510
  !boundedString(contract.responsibilityRef.id, 240) ||
511
511
  !Number.isSafeInteger(contract.responsibilityRef.version) ||
512
512
  contract.responsibilityRef.version < 1 ||
@@ -528,7 +528,7 @@ export function normalizeCommitmentExecutionContract(value) {
528
528
  ]) ||
529
529
  (taskDelivery
530
530
  ? contract.return !== 'task_output'
531
- : contract.return !== 'commitment_result_v1') ||
531
+ : contract.return !== 'duty_result_v1') ||
532
532
  (event !== null &&
533
533
  (!plainObject(event) || !isDeepStrictEqual(event, normalizedEventFacts(event)))) ||
534
534
  (eventSha && contract.workspace.base.toLowerCase() !== eventSha) ||
@@ -119,7 +119,7 @@ export async function signExecutorStopReceipt(signer, body, options = {}) {
119
119
  const proof = await signProofWith(signer, {
120
120
  method: 'POST',
121
121
  url: executorStopReceiptHtu(parsed.dispatchId),
122
- // `accessToken` is hashed inline into the `ath` claim: the commitment to the body.
122
+ // `accessToken` is hashed inline into the `ath` claim: the duty to the body.
123
123
  accessToken: canonicalReceiptJson(parsed),
124
124
  ...(options.iat !== undefined ? { iat: options.iat } : {}),
125
125
  ...(options.jti !== undefined ? { jti: options.jti } : {}),
@@ -129,7 +129,7 @@ export async function signExecutorStopReceiptV2(signer, body, options = {}) {
129
129
  const proof = await signProofWith(signer, {
130
130
  method: 'POST',
131
131
  url: executorStopReceiptV2Htu(parsed.dispatchId),
132
- // `accessToken` is hashed inline into the `ath` claim: the commitment to the body.
132
+ // `accessToken` is hashed inline into the `ath` claim: the duty to the body.
133
133
  accessToken: canonicalReceiptJson(parsed),
134
134
  ...(options.iat !== undefined ? { iat: options.iat } : {}),
135
135
  ...(options.jti !== undefined ? { jti: options.jti } : {}),
@@ -5,7 +5,7 @@
5
5
  * loopback. Their default ports used to be DERIVED: `base + fnv1a32(profile) % 100`.
6
6
  * A hundred slots is a birthday problem (an even chance of some collision at
7
7
  * about twelve profiles), and a colliding pair of names collides every time.
8
- * Measured on one machine: `default`, `commitment-local` and
8
+ * Measured on one machine: `default`, `duty-local` and
9
9
  * `df-261101-gateway-v139` all derive health 19674 and relay 18886 (OSK-22134,
10
10
  * OSK-22128). The second profile could not start its relay, and its `status`
11
11
  * read the first profile's health server as its own.
@@ -1,21 +1,21 @@
1
- /** Commitment context never overrides Agent permissions. Version 3 admission
1
+ /** Duty context never overrides Agent permissions. Version 3 admission
2
2
  * rejects old contracts; typed Task delivery is a separate frozen operation. */
3
3
  /** The wire vocabulary for `permissionSource`. Top-level session field. */
4
4
  export declare const SESSION_PERMISSION_SOURCES: readonly ["agent"];
5
5
  export type SessionPermissionSource = (typeof SESSION_PERMISSION_SOURCES)[number];
6
6
  /**
7
7
  * The daemon capability that proves a build honours `permissionSource`. The
8
- * server announces it in preflight and refuses to dispatch a Commitment Run to
9
- * a daemon without it (`COMMITMENT_AGENT_PERMISSIONS_RUNTIME_UNSUPPORTED`), so
8
+ * server announces it in preflight and refuses to dispatch a Duty Run to
9
+ * a daemon without it (`DUTY_AGENT_PERMISSIONS_RUNTIME_UNSUPPORTED`), so
10
10
  * the marker never reaches a daemon that would ignore it.
11
11
  */
12
- export declare const COMMITMENT_AGENT_PERMISSIONS_CAPABILITY = "commitment_execution_contract_v3";
12
+ export declare const DUTY_AGENT_PERMISSIONS_CAPABILITY = "duty_execution_contract_v3";
13
13
  /**
14
14
  * The minimal contract shape this rule reads. The predicate only ever needs
15
15
  * `kind` — keeping the input structural means this module never imports the
16
- * full `CommitmentExecutionContract` type, which lives daemon-side
17
- * (`daemon/src/commitment-execution-contract.ts`) and server-side in the
18
- * commitment services.
16
+ * full `DutyExecutionContract` type, which lives daemon-side
17
+ * (`daemon/src/duty-execution-contract.ts`) and server-side in the
18
+ * duty services.
19
19
  */
20
20
  export type PermissionContractKind = {
21
21
  kind?: unknown;
@@ -26,13 +26,13 @@ export type PermissionContractKind = {
26
26
  */
27
27
  export declare function normalizeSessionPermissionSource(value: unknown): SessionPermissionSource | undefined;
28
28
  /**
29
- * What the server stamps on the wire for this contract. A `commitment`
29
+ * What the server stamps on the wire for this contract. A `duty`
30
30
  * contract no longer carries permissions (OSK-11975); every other contract
31
31
  * kind keeps its own authority and stamps nothing.
32
32
  */
33
33
  export declare function permissionSourceForContract(contract: PermissionContractKind): SessionPermissionSource | undefined;
34
34
  /** Only typed Task delivery owns an effect-specific permission boundary.
35
- * A Commitment is context for the Agent and cannot grant or restrict tools.
35
+ * A Duty is context for the Agent and cannot grant or restrict tools.
36
36
  */
37
37
  export declare function contractGovernsPermissions(contract: PermissionContractKind, _permissionSource?: unknown): boolean;
38
38
  /**