@skrr-ai/cli 0.1.150 → 0.1.152

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 (429) 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/chat.d.ts +3 -0
  11. package/dist/commands/agents/chat.js +27 -0
  12. package/dist/commands/agents/create.d.ts +2 -2
  13. package/dist/commands/agents/create.js +12 -12
  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/plan-day.d.ts +3 -0
  18. package/dist/commands/agents/plan-day.js +31 -8
  19. package/dist/commands/agents/roles/capture.d.ts +1 -1
  20. package/dist/commands/agents/roles/capture.js +2 -2
  21. package/dist/commands/agents/roles/install.js +1 -1
  22. package/dist/commands/agents/show.d.ts +3 -0
  23. package/dist/commands/agents/show.js +59 -3
  24. package/dist/commands/agents/spawn.js +38 -38
  25. package/dist/commands/agents/triggers/list.js +2 -1
  26. package/dist/commands/agents/update.d.ts +1 -1
  27. package/dist/commands/agents/update.js +3 -3
  28. package/dist/commands/balance/usage/breakdown.d.ts +1 -1
  29. package/dist/commands/balance/usage/breakdown.js +22 -6
  30. package/dist/commands/balance/usage/events.d.ts +3 -2
  31. package/dist/commands/balance/usage/events.js +34 -7
  32. package/dist/commands/code/jobs/show.js +1 -1
  33. package/dist/commands/compass/archive.d.ts +1 -1
  34. package/dist/commands/compass/archive.js +1 -1
  35. package/dist/commands/compass/create.js +1 -1
  36. package/dist/commands/compass/{commitments.d.ts → duties.d.ts} +5 -5
  37. package/dist/commands/compass/{commitments.js → duties.js} +14 -14
  38. package/dist/commands/compass/trace.d.ts +1 -1
  39. package/dist/commands/compass/trace.js +2 -2
  40. package/dist/commands/convos/messages.js +2 -1
  41. package/dist/commands/doctor.d.ts +1 -1
  42. package/dist/commands/doctor.js +1 -1
  43. package/dist/commands/{commitments → duties}/accounting.d.ts +7 -7
  44. package/dist/commands/{commitments → duties}/accounting.js +13 -13
  45. package/dist/commands/{commitments → duties}/action-history.d.ts +3 -3
  46. package/dist/commands/{commitments → duties}/action-history.js +12 -12
  47. package/dist/commands/{commitments → duties}/action-proposal.d.ts +2 -2
  48. package/dist/commands/{commitments → duties}/action-proposal.js +6 -6
  49. package/dist/commands/{commitments → duties}/action-proposals/decide.d.ts +2 -2
  50. package/dist/commands/{commitments → duties}/action-proposals/decide.js +8 -8
  51. package/dist/commands/{commitments → duties}/action-proposals/execute.d.ts +2 -2
  52. package/dist/commands/{commitments → duties}/action-proposals/execute.js +7 -7
  53. package/dist/commands/{commitments → duties}/action-proposals/propose.d.ts +4 -4
  54. package/dist/commands/{commitments → duties}/action-proposals/propose.js +15 -15
  55. package/dist/commands/{commitments → duties}/action-proposals.d.ts +1 -1
  56. package/dist/commands/{commitments → duties}/action-proposals.js +6 -6
  57. package/dist/commands/{commitments → duties}/analytics/detail.d.ts +5 -5
  58. package/dist/commands/{commitments → duties}/analytics/detail.js +13 -13
  59. package/dist/commands/{commitments → duties}/analytics/index.d.ts +5 -5
  60. package/dist/commands/{commitments → duties}/analytics/index.js +30 -30
  61. package/dist/commands/{commitments → duties}/analytics/replay.d.ts +3 -3
  62. package/dist/commands/{commitments → duties}/analytics/replay.js +11 -11
  63. package/dist/commands/{commitments → duties}/attach.d.ts +3 -3
  64. package/dist/commands/{commitments → duties}/attach.js +21 -21
  65. package/dist/commands/{commitments → duties}/bundle.d.ts +1 -1
  66. package/dist/commands/{commitments → duties}/bundle.js +7 -7
  67. package/dist/commands/{commitments → duties}/cadence-decisions.d.ts +3 -3
  68. package/dist/commands/duties/cadence-decisions.js +41 -0
  69. package/dist/commands/{commitments → duties}/cadence-requests/decide.d.ts +4 -4
  70. package/dist/commands/{commitments → duties}/cadence-requests/decide.js +11 -11
  71. package/dist/commands/{commitments → duties}/case.d.ts +2 -2
  72. package/dist/commands/{commitments → duties}/case.js +8 -8
  73. package/dist/commands/{commitments → duties}/cases.d.ts +2 -2
  74. package/dist/commands/{commitments → duties}/cases.js +9 -9
  75. package/dist/commands/{commitments → duties}/check-now.d.ts +6 -6
  76. package/dist/commands/{commitments → duties}/check-now.js +29 -29
  77. package/dist/commands/{commitments → duties}/checks.d.ts +3 -3
  78. package/dist/commands/{commitments → duties}/checks.js +13 -13
  79. package/dist/commands/{commitments → duties}/complete.d.ts +2 -2
  80. package/dist/commands/duties/complete.js +40 -0
  81. package/dist/commands/{commitments → duties}/control/apply.d.ts +1 -1
  82. package/dist/commands/{commitments → duties}/control/apply.js +7 -7
  83. package/dist/commands/{commitments → duties}/control/preview.d.ts +1 -1
  84. package/dist/commands/{commitments → duties}/control/preview.js +8 -8
  85. package/dist/commands/{commitments → duties}/control/show.d.ts +1 -1
  86. package/dist/commands/{commitments → duties}/control/show.js +6 -6
  87. package/dist/commands/{commitments → duties}/cost.d.ts +6 -6
  88. package/dist/commands/{commitments → duties}/cost.js +14 -14
  89. package/dist/commands/{commitments → duties}/create.d.ts +8 -8
  90. package/dist/commands/{commitments → duties}/create.js +92 -92
  91. package/dist/commands/{commitments → duties}/cycles.d.ts +2 -2
  92. package/dist/commands/{commitments → duties}/cycles.js +11 -11
  93. package/dist/commands/{commitments → duties}/decide-remediation.d.ts +2 -2
  94. package/dist/commands/{commitments → duties}/decide-remediation.js +6 -6
  95. package/dist/commands/{commitments → duties}/delete.d.ts +4 -4
  96. package/dist/commands/{commitments → duties}/delete.js +24 -24
  97. package/dist/commands/{commitments → duties}/delivery.d.ts +1 -1
  98. package/dist/commands/{commitments → duties}/delivery.js +15 -15
  99. package/dist/commands/{commitments → duties}/detach.d.ts +3 -3
  100. package/dist/commands/{commitments → duties}/detach.js +20 -20
  101. package/dist/commands/{commitments → duties}/doctor.d.ts +4 -4
  102. package/dist/commands/{commitments → duties}/doctor.js +21 -21
  103. package/dist/commands/{commitments → duties}/effective-policy.d.ts +3 -3
  104. package/dist/commands/{commitments → duties}/effective-policy.js +24 -24
  105. package/dist/commands/{commitments → duties}/endpoints/connect.d.ts +2 -2
  106. package/dist/commands/{commitments → duties}/endpoints/connect.js +10 -10
  107. package/dist/commands/{commitments → duties}/endpoints/create.d.ts +3 -3
  108. package/dist/commands/{commitments → duties}/endpoints/create.js +16 -16
  109. package/dist/commands/{commitments → duties}/endpoints/delete.d.ts +3 -3
  110. package/dist/commands/{commitments → duties}/endpoints/delete.js +11 -11
  111. package/dist/commands/{commitments → duties}/endpoints/health.d.ts +2 -2
  112. package/dist/commands/{commitments → duties}/endpoints/health.js +10 -10
  113. package/dist/commands/{commitments → duties}/endpoints/list.d.ts +3 -3
  114. package/dist/commands/{commitments → duties}/endpoints/list.js +11 -11
  115. package/dist/commands/{commitments → duties}/endpoints/revoke.d.ts +4 -4
  116. package/dist/commands/{commitments → duties}/endpoints/revoke.js +13 -13
  117. package/dist/commands/{commitments → duties}/evaluations.d.ts +2 -2
  118. package/dist/commands/{commitments → duties}/evaluations.js +8 -8
  119. package/dist/commands/{commitments → duties}/execute-remediation.d.ts +2 -2
  120. package/dist/commands/{commitments → duties}/execute-remediation.js +7 -7
  121. package/dist/commands/{commitments → duties}/explain.d.ts +2 -2
  122. package/dist/commands/{commitments → duties}/explain.js +13 -13
  123. package/dist/commands/{commitments → duties}/export.d.ts +3 -3
  124. package/dist/commands/{commitments → duties}/export.js +15 -15
  125. package/dist/commands/{commitments → duties}/feedback.d.ts +4 -4
  126. package/dist/commands/{commitments → duties}/feedback.js +13 -13
  127. package/dist/commands/{commitments → duties}/fork.d.ts +3 -3
  128. package/dist/commands/{commitments → duties}/fork.js +11 -11
  129. package/dist/commands/{commitments → duties}/goals/link.d.ts +6 -6
  130. package/dist/commands/duties/goals/link.js +41 -0
  131. package/dist/commands/{commitments → duties}/goals/unlink.d.ts +4 -4
  132. package/dist/commands/duties/goals/unlink.js +37 -0
  133. package/dist/commands/{commitments → duties}/handover.d.ts +5 -5
  134. package/dist/commands/{commitments → duties}/handover.js +21 -21
  135. package/dist/commands/{commitments → duties}/hypotheses.d.ts +3 -3
  136. package/dist/commands/{commitments → duties}/hypotheses.js +13 -13
  137. package/dist/commands/{commitments → duties}/import.d.ts +2 -2
  138. package/dist/commands/{commitments → duties}/import.js +10 -10
  139. package/dist/commands/{commitments → duties}/ledger.d.ts +4 -4
  140. package/dist/commands/{commitments → duties}/ledger.js +12 -12
  141. package/dist/commands/{commitments → duties}/lineage.d.ts +5 -5
  142. package/dist/commands/duties/lineage.js +43 -0
  143. package/dist/commands/{commitments → duties}/links/create.d.ts +2 -2
  144. package/dist/commands/{commitments → duties}/links/create.js +9 -9
  145. package/dist/commands/{commitments → duties}/links/detach.d.ts +2 -2
  146. package/dist/commands/{commitments → duties}/links/detach.js +7 -7
  147. package/dist/commands/{commitments → duties}/links/list.d.ts +2 -2
  148. package/dist/commands/{commitments → duties}/links/list.js +9 -9
  149. package/dist/commands/{commitments → duties}/links/update.d.ts +2 -2
  150. package/dist/commands/{commitments → duties}/links/update.js +7 -7
  151. package/dist/commands/{commitments → duties}/list.d.ts +3 -3
  152. package/dist/commands/{commitments → duties}/list.js +17 -17
  153. package/dist/commands/{commitments → duties}/liveness.d.ts +6 -6
  154. package/dist/commands/{commitments → duties}/liveness.js +13 -13
  155. package/dist/commands/{commitments → duties}/metrics.d.ts +3 -3
  156. package/dist/commands/{commitments → duties}/metrics.js +12 -12
  157. package/dist/commands/{commitments → duties}/next-tick.d.ts +7 -7
  158. package/dist/commands/{commitments → duties}/next-tick.js +14 -14
  159. package/dist/commands/{commitments → duties}/observation/probe.d.ts +1 -1
  160. package/dist/commands/{commitments → duties}/observation/probe.js +12 -12
  161. package/dist/commands/{commitments → duties}/observation/summary.d.ts +1 -1
  162. package/dist/commands/duties/observation/summary.js +53 -0
  163. package/dist/commands/{commitments → duties}/observations.d.ts +4 -4
  164. package/dist/commands/{commitments → duties}/observations.js +18 -18
  165. package/dist/commands/{commitments → duties}/open.d.ts +1 -1
  166. package/dist/commands/{commitments → duties}/open.js +13 -13
  167. package/dist/commands/{commitments → duties}/operating-review.d.ts +5 -5
  168. package/dist/commands/{commitments → duties}/operating-review.js +21 -21
  169. package/dist/commands/{commitments → duties}/pack/activate.d.ts +1 -1
  170. package/dist/commands/{commitments → duties}/pack/activate.js +6 -6
  171. package/dist/commands/{commitments → duties}/pack/bind.d.ts +4 -4
  172. package/dist/commands/{commitments → duties}/pack/bind.js +19 -19
  173. package/dist/commands/{commitments → duties}/pack/list.d.ts +2 -2
  174. package/dist/commands/{commitments → duties}/pack/list.js +10 -10
  175. package/dist/commands/{commitments → duties}/pack/plan.d.ts +3 -3
  176. package/dist/commands/{commitments → duties}/pack/plan.js +12 -12
  177. package/dist/commands/{commitments → duties}/pack/preflight.d.ts +3 -3
  178. package/dist/commands/{commitments → duties}/pack/preflight.js +10 -10
  179. package/dist/commands/{commitments → duties}/patch.d.ts +1 -1
  180. package/dist/commands/{commitments → duties}/patch.js +7 -7
  181. package/dist/commands/{commitments → duties}/pause.d.ts +2 -2
  182. package/dist/commands/{commitments → duties}/pause.js +16 -16
  183. package/dist/commands/{commitments → duties}/plan.d.ts +4 -4
  184. package/dist/commands/{commitments → duties}/plan.js +20 -20
  185. package/dist/commands/{commitments → duties}/preflight.d.ts +8 -8
  186. package/dist/commands/{commitments → duties}/preflight.js +32 -32
  187. package/dist/commands/{commitments → duties}/propose-remediation.d.ts +2 -2
  188. package/dist/commands/{commitments → duties}/propose-remediation.js +6 -6
  189. package/dist/commands/{commitments → duties}/readiness/show.d.ts +1 -1
  190. package/dist/commands/{commitments → duties}/readiness/show.js +6 -6
  191. package/dist/commands/{commitments → duties}/readiness/verify.d.ts +1 -1
  192. package/dist/commands/{commitments → duties}/readiness/verify.js +7 -7
  193. package/dist/commands/{commitments → duties}/receipt-metrics.d.ts +4 -4
  194. package/dist/commands/{commitments → duties}/receipt-metrics.js +16 -16
  195. package/dist/commands/{commitments → duties}/receipt.d.ts +1 -1
  196. package/dist/commands/{commitments → duties}/receipt.js +10 -10
  197. package/dist/commands/{commitments → duties}/reflect.d.ts +4 -4
  198. package/dist/commands/{commitments → duties}/reflect.js +12 -12
  199. package/dist/commands/{commitments → duties}/reflection-decision.d.ts +2 -2
  200. package/dist/commands/{commitments → duties}/reflection-decision.js +7 -7
  201. package/dist/commands/{commitments → duties}/reflection.d.ts +2 -2
  202. package/dist/commands/{commitments → duties}/reflection.js +9 -9
  203. package/dist/commands/{commitments → duties}/remediate.d.ts +5 -5
  204. package/dist/commands/{commitments → duties}/remediate.js +14 -14
  205. package/dist/commands/{commitments → duties}/remediation-proposal.d.ts +2 -2
  206. package/dist/commands/{commitments → duties}/remediation-proposal.js +7 -7
  207. package/dist/commands/{commitments → duties}/remediation-proposals.d.ts +2 -2
  208. package/dist/commands/{commitments → duties}/remediation-proposals.js +8 -8
  209. package/dist/commands/{commitments → duties}/reports.d.ts +5 -5
  210. package/dist/commands/{commitments → duties}/reports.js +35 -35
  211. package/dist/commands/{commitments → duties}/restore.d.ts +2 -2
  212. package/dist/commands/duties/restore.js +46 -0
  213. package/dist/commands/{commitments → duties}/resume.d.ts +2 -2
  214. package/dist/commands/duties/resume.js +37 -0
  215. package/dist/commands/{commitments → duties}/roster.d.ts +2 -2
  216. package/dist/commands/duties/roster.js +39 -0
  217. package/dist/commands/{commitments → duties}/show.d.ts +7 -7
  218. package/dist/commands/{commitments → duties}/show.js +40 -40
  219. package/dist/commands/{commitments → duties}/status.d.ts +3 -3
  220. package/dist/commands/duties/status.js +41 -0
  221. package/dist/commands/{commitments → duties}/subject.d.ts +4 -4
  222. package/dist/commands/{commitments → duties}/subject.js +29 -29
  223. package/dist/commands/{commitments → duties}/trace.d.ts +3 -3
  224. package/dist/commands/{commitments → duties}/trace.js +12 -12
  225. package/dist/commands/{commitments → duties}/trigger-status.d.ts +6 -6
  226. package/dist/commands/{commitments → duties}/trigger-status.js +19 -19
  227. package/dist/commands/{commitments → duties}/update.d.ts +5 -5
  228. package/dist/commands/{commitments → duties}/update.js +64 -64
  229. package/dist/commands/{commitments → duties}/wake-capabilities.d.ts +6 -6
  230. package/dist/commands/{commitments → duties}/wake-capabilities.js +22 -22
  231. package/dist/commands/{commitments → duties}/work-plan.d.ts +1 -1
  232. package/dist/commands/{commitments → duties}/work-plan.js +6 -6
  233. package/dist/commands/goals/key-results/show.js +2 -1
  234. package/dist/commands/goals/plan-now.js +3 -2
  235. package/dist/commands/goals/planner-compare.d.ts +1 -1
  236. package/dist/commands/goals/planner-compare.js +13 -2
  237. package/dist/commands/grants/create.d.ts +1 -1
  238. package/dist/commands/grants/create.js +9 -9
  239. package/dist/commands/grants/list.d.ts +1 -1
  240. package/dist/commands/grants/list.js +2 -2
  241. package/dist/commands/harnesses/list.d.ts +2 -1
  242. package/dist/commands/harnesses/list.js +7 -5
  243. package/dist/commands/harnesses/models.js +1 -1
  244. package/dist/commands/harnesses/quota.d.ts +9 -11
  245. package/dist/commands/harnesses/quota.js +83 -18
  246. package/dist/commands/harnesses/show.js +1 -1
  247. package/dist/commands/harnesses/usage.d.ts +19 -0
  248. package/dist/commands/harnesses/usage.js +27 -7
  249. package/dist/commands/initiatives/list.d.ts +1 -1
  250. package/dist/commands/initiatives/list.js +1 -1
  251. package/dist/commands/measures/create.d.ts +2 -2
  252. package/dist/commands/measures/create.js +4 -4
  253. package/dist/commands/measures/list.d.ts +1 -1
  254. package/dist/commands/measures/list.js +2 -2
  255. package/dist/commands/memory/topics/create.js +4 -1
  256. package/dist/commands/northstars/create.js +4 -4
  257. package/dist/commands/northstars/delete.d.ts +3 -3
  258. package/dist/commands/northstars/delete.js +8 -8
  259. package/dist/commands/northstars/governance/configure.js +15 -15
  260. package/dist/commands/northstars/intents/decide.d.ts +1 -1
  261. package/dist/commands/northstars/intents/decide.js +1 -1
  262. package/dist/commands/northstars/link.d.ts +4 -4
  263. package/dist/commands/northstars/link.js +8 -8
  264. package/dist/commands/northstars/list.d.ts +2 -2
  265. package/dist/commands/northstars/list.js +3 -3
  266. package/dist/commands/northstars/recommendations/apply.d.ts +1 -1
  267. package/dist/commands/northstars/recommendations/apply.js +2 -2
  268. package/dist/commands/northstars/review-now.js +2 -2
  269. package/dist/commands/northstars/show.d.ts +3 -3
  270. package/dist/commands/northstars/show.js +5 -5
  271. package/dist/commands/northstars/unlink.d.ts +3 -3
  272. package/dist/commands/northstars/unlink.js +6 -6
  273. package/dist/commands/northstars/update.js +3 -3
  274. package/dist/commands/proposals/list.d.ts +3 -3
  275. package/dist/commands/proposals/list.js +7 -7
  276. package/dist/commands/spaces/auto-executor/compare.js +1 -1
  277. package/dist/commands/spaces/auto-executor/runs.js +1 -1
  278. package/dist/commands/spaces/heartbeats/list.js +2 -2
  279. package/dist/commands/spaces/index.js +2 -2
  280. package/dist/commands/spaces/list.d.ts +1 -1
  281. package/dist/commands/spaces/list.js +1 -1
  282. package/dist/commands/spaces/loops/migrate.d.ts +1 -1
  283. package/dist/commands/spaces/loops/migrate.js +1 -1
  284. package/dist/commands/spaces/loops/release.d.ts +1 -1
  285. package/dist/commands/spaces/loops/release.js +10 -10
  286. package/dist/commands/spaces/notebook.d.ts +2 -2
  287. package/dist/commands/spaces/notebook.js +2 -2
  288. package/dist/commands/spaces/proposals/discard.js +1 -1
  289. package/dist/commands/spaces/proposals/keep.js +1 -1
  290. package/dist/commands/spaces/triggers/show.js +3 -3
  291. package/dist/commands/spaces/write-policy/set.js +1 -1
  292. package/dist/commands/store/uninstall.js +2 -2
  293. package/dist/commands/subscriptions/health.d.ts +2 -2
  294. package/dist/commands/subscriptions/health.js +2 -2
  295. package/dist/commands/subscriptions/status.js +2 -2
  296. package/dist/commands/subscriptions/subscribe.js +4 -4
  297. package/dist/commands/tasks/create.d.ts +20 -1
  298. package/dist/commands/tasks/create.js +44 -3
  299. package/dist/commands/tasks/list.d.ts +7 -1
  300. package/dist/commands/tasks/list.js +2 -1
  301. package/dist/commands/tokens/create.d.ts +3 -4
  302. package/dist/commands/tokens/create.js +20 -7
  303. package/dist/commands/triggers/preflight.js +9 -2
  304. package/dist/generated/agent-guides.json +496 -496
  305. package/dist/generated/managed-instruction-guides.json +2 -2
  306. package/dist/hooks/command-not-found.d.ts +1 -1
  307. package/dist/hooks/command-not-found.js +1 -1
  308. package/dist/lib/agent-chat-start.js +2 -1
  309. package/dist/lib/agent-model-check.js +3 -1
  310. package/dist/lib/agent-trigger-listing.d.ts +4 -4
  311. package/dist/lib/agent-trigger-listing.js +7 -7
  312. package/dist/lib/agentic-stream.js +6 -7
  313. package/dist/lib/always-on-command-result.d.ts +8 -1
  314. package/dist/lib/always-on-command-result.js +11 -2
  315. package/dist/lib/auth-failure.js +1 -1
  316. package/dist/lib/balance.d.ts +5 -2
  317. package/dist/lib/balance.js +26 -0
  318. package/dist/lib/capability-matrix.d.ts +3 -3
  319. package/dist/lib/capability-matrix.js +9 -9
  320. package/dist/lib/command-hygiene.js +6 -6
  321. package/dist/lib/command-miss.js +1 -1
  322. package/dist/lib/compass-refusals.d.ts +1 -1
  323. package/dist/lib/compass-refusals.js +1 -1
  324. package/dist/lib/compasses.d.ts +5 -5
  325. package/dist/lib/compasses.js +15 -15
  326. package/dist/lib/config.d.ts +1 -1
  327. package/dist/lib/config.js +1 -0
  328. package/dist/lib/dedicated-machines.js +2 -1
  329. package/dist/lib/dedicated-power.js +2 -0
  330. package/dist/lib/{commitments.d.ts → duties.d.ts} +198 -198
  331. package/dist/lib/{commitments.js → duties.js} +282 -282
  332. package/dist/lib/{commitment-analytics.d.ts → duty-analytics.d.ts} +18 -18
  333. package/dist/lib/{commitment-analytics.js → duty-analytics.js} +12 -12
  334. package/dist/lib/{commitment-attention-copy.d.ts → duty-attention-copy.d.ts} +6 -6
  335. package/dist/lib/{commitment-attention-copy.js → duty-attention-copy.js} +8 -8
  336. package/dist/lib/{commitment-endpoints.d.ts → duty-endpoints.d.ts} +6 -6
  337. package/dist/lib/{commitment-endpoints.js → duty-endpoints.js} +10 -10
  338. package/dist/lib/{commitment-event-wakes.d.ts → duty-event-wakes.d.ts} +2 -2
  339. package/dist/lib/{commitment-event-wakes.js → duty-event-wakes.js} +2 -2
  340. package/dist/lib/{commitment-ledgers.js → duty-ledgers.js} +3 -3
  341. package/dist/lib/{commitment-loop-status.d.ts → duty-loop-status.d.ts} +11 -11
  342. package/dist/lib/{commitment-loop-status.js → duty-loop-status.js} +22 -22
  343. package/dist/lib/{commitment-product.d.ts → duty-product.d.ts} +6 -6
  344. package/dist/lib/{commitment-product.js → duty-product.js} +5 -5
  345. package/dist/lib/{commitment-terms.d.ts → duty-terms.d.ts} +9 -9
  346. package/dist/lib/{commitment-terms.js → duty-terms.js} +21 -21
  347. package/dist/lib/entity-open.d.ts +1 -1
  348. package/dist/lib/entity-open.js +1 -1
  349. package/dist/lib/format.d.ts +1 -1
  350. package/dist/lib/grants.d.ts +3 -3
  351. package/dist/lib/grants.js +2 -2
  352. package/dist/lib/harness-labels.d.ts +1 -0
  353. package/dist/lib/harness-labels.js +4 -0
  354. package/dist/lib/harnesses.d.ts +35 -0
  355. package/dist/lib/harnesses.js +8 -0
  356. package/dist/lib/initiatives.js +4 -4
  357. package/dist/lib/machines.d.ts +2 -1
  358. package/dist/lib/machines.js +2 -2
  359. package/dist/lib/node-adapter.js +1 -1
  360. package/dist/lib/northstars.d.ts +13 -13
  361. package/dist/lib/northstars.js +56 -56
  362. package/dist/lib/open-target.js +1 -1
  363. package/dist/lib/preflight-copy.js +5 -5
  364. package/dist/lib/proactiveApi.d.ts +4 -4
  365. package/dist/lib/proposals.js +16 -16
  366. package/dist/lib/publicEndpoints.generated.d.ts +4 -0
  367. package/dist/lib/publicEndpoints.generated.js +4 -0
  368. package/dist/lib/responsibility-controls.d.ts +1 -1
  369. package/dist/lib/responsibility-controls.js +6 -6
  370. package/dist/lib/roles.d.ts +1 -1
  371. package/dist/lib/schedule.d.ts +6 -5
  372. package/dist/lib/schedule.js +5 -5
  373. package/dist/lib/session-task-write.d.ts +1 -1
  374. package/dist/lib/session-task-write.js +2 -2
  375. package/dist/lib/space-loop-migration.js +6 -6
  376. package/dist/lib/space-notebook.js +2 -2
  377. package/dist/lib/space-write-policy.js +2 -2
  378. package/dist/lib/stewardship-output.js +2 -2
  379. package/dist/lib/task-spec-verification.js +1 -1
  380. package/dist/lib/tasks.d.ts +1 -1
  381. package/dist/lib/tasks.js +8 -8
  382. package/dist/lib/triggers.d.ts +5 -5
  383. package/dist/lib/triggers.js +25 -16
  384. package/dist/lib/update-check.d.ts +1 -1
  385. package/dist/lib/update-check.js +12 -8
  386. package/dist/lib/usage-discovery.js +2 -4
  387. package/dist/lib/web-url.d.ts +6 -6
  388. package/dist/lib/web-url.js +13 -13
  389. package/dist/lib/workspaces.d.ts +4 -4
  390. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
  391. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.js → dutyExecutionContract.js} +22 -22
  392. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceipt.js +1 -1
  393. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceiptV2.js +1 -1
  394. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.d.ts +9 -9
  395. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.js +5 -5
  396. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.d.ts +2 -2
  397. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +4 -4
  398. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.d.ts +1 -1
  399. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +1 -1
  400. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.d.ts +1 -1
  401. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
  402. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.js → dutyExecutionContract.js} +16 -16
  403. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceipt.js +1 -1
  404. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceiptV2.js +1 -1
  405. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/profilePorts.js +1 -1
  406. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.d.ts +9 -9
  407. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.js +8 -8
  408. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.d.ts +2 -2
  409. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.js +6 -6
  410. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.d.ts +1 -1
  411. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.js +1 -1
  412. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.d.ts +1 -1
  413. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.js +1 -1
  414. package/dist/node_modules/@skrr-ai/auth-core/package.json +6 -6
  415. package/dist/node_modules/@skrr-ai/data-provider/index.js +8295 -8283
  416. package/docs/v1/lookback-plans.md +1 -1
  417. package/oclif.manifest.json +5356 -5333
  418. package/package.json +16 -16
  419. package/dist/commands/commitments/cadence-decisions.js +0 -41
  420. package/dist/commands/commitments/complete.js +0 -40
  421. package/dist/commands/commitments/goals/link.js +0 -41
  422. package/dist/commands/commitments/goals/unlink.js +0 -37
  423. package/dist/commands/commitments/lineage.js +0 -43
  424. package/dist/commands/commitments/observation/summary.js +0 -31
  425. package/dist/commands/commitments/restore.js +0 -46
  426. package/dist/commands/commitments/resume.js +0 -37
  427. package/dist/commands/commitments/roster.js +0 -39
  428. package/dist/commands/commitments/status.js +0 -41
  429. /package/dist/lib/{commitment-ledgers.d.ts → duty-ledgers.d.ts} +0 -0
@@ -1,61 +1,61 @@
1
- import { type CommitmentAuthoringSnapshot, type CommitmentAuthoringWarning, type CommitmentObservationsQuery, type CommitmentObservationsResponse } from '@skrr-ai/data-provider';
1
+ import { type DutyAuthoringSnapshot, type DutyAuthoringWarning, type DutyObservationsQuery, type DutyObservationsResponse } from '@skrr-ai/data-provider';
2
2
  /**
3
- * commitments.ts — request-based client for the Commitments subsystem
4
- * (`/api/commitments/*`).
3
+ * duties.ts — request-based client for the Duties subsystem
4
+ * (`/api/duties/*`).
5
5
  *
6
6
  * Mirrors the `triggerApi` / `scheduleApi` pattern: these endpoints are not
7
7
  * exposed as `dataService.*` functions, so the CLI talks to them through the
8
8
  * shared `request` transport.
9
9
  *
10
- * Concept: a **Commitment** is a durable, agent-scoped contract —
10
+ * Concept: a **Duty** is a durable, agent-scoped contract —
11
11
  * "hold this outcome true, and watch these sources on this cadence". It is NOT a
12
12
  * unit of work. It sits ABOVE goals/tasks (which it watches as sensors) and runs
13
- * its own closed control loop: a fast `commitment_check` (sense → project open
13
+ * its own closed control loop: a fast `duty_check` (sense → project open
14
14
  * loops → decide a posture → route actions) and a slower reflection that retunes
15
- * the commitment's own cadence from realized outcomes.
15
+ * the duty's own cadence from realized outcomes.
16
16
  *
17
17
  * Two `kind`s: `achieve` (bounded, deadline-bearing) and `maintain` (perpetual
18
18
  * "hold this state", derived from a Compass invariant — not authored here).
19
19
  */
20
- import { COMMITMENT_WATCHED_SOURCES, COMMITMENT_TEMPLATE_IDS, COMMITMENT_CADENCE_MODES, COMMITMENT_CADENCE_TIME_PATTERN, COMMITMENT_CADENCE_MAX_TIMES, COMMITMENT_EXECUTION_ISOLATION_MODES, COMMITMENT_STATUSES, COMMITMENT_KIND_VALUES } from '@skrr-ai/data-provider';
21
- import type { CommitmentCheck, CommitmentChecksResponse, Commitment, CommitmentRevisionReceipt, CommitmentUpdateResponse, CommitmentActionProposal, CommitmentListResponse, CommitmentPlanResponse, CommitmentScheduleIssue, CommitmentStatusResponse, CommitmentWorkLink, CommitmentExecutionReceiptListResponse, CommitmentExecutionReceiptQuarterlyMetricsResponse, CommitmentCapabilitySource, CommitmentDeliveryPatchResponse, CommitmentDeliveryBundleResponse, CommitmentCyclesResponse, CommitmentExplanationResponse, CommitmentRunPermissions, CommitmentLoopStatus, CommitmentRoster } from '@skrr-ai/data-provider';
20
+ import { DUTY_WATCHED_SOURCES, DUTY_TEMPLATE_IDS, DUTY_CADENCE_MODES, DUTY_CADENCE_TIME_PATTERN, DUTY_CADENCE_MAX_TIMES, DUTY_EXECUTION_ISOLATION_MODES, DUTY_STATUSES, DUTY_KIND_VALUES } from '@skrr-ai/data-provider';
21
+ import type { DutyCheck, DutyChecksResponse, Duty, DutyRevisionReceipt, DutyUpdateResponse, DutyActionProposal, DutyListResponse, DutyPlanResponse, DutyScheduleIssue, DutyStatusResponse, DutyWorkLink, DutyExecutionReceiptListResponse, DutyExecutionReceiptQuarterlyMetricsResponse, DutyCapabilitySource, DutyDeliveryPatchResponse, DutyDeliveryBundleResponse, DutyCyclesResponse, DutyExplanationResponse, DutyRunPermissions, DutyLoopStatus, DutyRoster } from '@skrr-ai/data-provider';
22
22
  import { withQuery } from './triggers';
23
- export { COMMITMENT_WATCHED_SOURCES, COMMITMENT_TEMPLATE_IDS, COMMITMENT_CADENCE_MODES, COMMITMENT_CADENCE_TIME_PATTERN, COMMITMENT_CADENCE_MAX_TIMES, COMMITMENT_STATUSES, COMMITMENT_KIND_VALUES, };
24
- export type { CommitmentCheck, CommitmentChecksResponse, Commitment, CommitmentActionProposal, CommitmentListResponse, CommitmentPlanResponse, CommitmentStatusResponse, CommitmentWorkLink, };
23
+ export { DUTY_WATCHED_SOURCES, DUTY_TEMPLATE_IDS, DUTY_CADENCE_MODES, DUTY_CADENCE_TIME_PATTERN, DUTY_CADENCE_MAX_TIMES, DUTY_STATUSES, DUTY_KIND_VALUES, };
24
+ export type { DutyCheck, DutyChecksResponse, Duty, DutyActionProposal, DutyListResponse, DutyPlanResponse, DutyStatusResponse, DutyWorkLink, };
25
25
  /** Derived from the installed compatibility vocabulary so the CLI remains
26
26
  * safe even while data-provider and CLI packages roll out separately. */
27
- export declare const COMMITMENT_AUTHORABLE_CADENCE_MODES: ("manual" | "daily" | "interval" | "event_plus_interval")[];
27
+ export declare const DUTY_AUTHORABLE_CADENCE_MODES: ("manual" | "daily" | "interval" | "event_plus_interval")[];
28
28
  /**
29
- * Where a Commitment's autonomous runs do their work. Re-exported for the same
29
+ * Where a Duty's autonomous runs do their work. Re-exported for the same
30
30
  * reason as the ladder above: the vocabulary is the server's, and a picker that
31
31
  * offers a value the API rejects is a silent drift.
32
32
  */
33
- export { COMMITMENT_EXECUTION_ISOLATION_MODES };
33
+ export { DUTY_EXECUTION_ISOLATION_MODES };
34
34
  /**
35
35
  * Interval bounds for `cadence.intervalMs`.
36
36
  *
37
- * The Trigger schedule and Commitment contract now share the same one-year
37
+ * The Trigger schedule and Duty contract now share the same one-year
38
38
  * upper bound. Keep the CLI aligned so a valid long-interval contract does not
39
39
  * get rejected only at this surface.
40
40
  */
41
- export declare const MIN_COMMITMENT_INTERVAL_MS = 60000;
42
- export declare const MAX_COMMITMENT_INTERVAL_MS: number;
41
+ export declare const MIN_DUTY_INTERVAL_MS = 60000;
42
+ export declare const MAX_DUTY_INTERVAL_MS: number;
43
43
  /**
44
44
  * Loose view types for rendering. Responses are full contracts, but the render
45
45
  * helpers read only a subset and must tolerate partially-populated rows (e.g.
46
- * the status projection returned by `GET /api/commitments/:id`).
46
+ * the status projection returned by `GET /api/duties/:id`).
47
47
  */
48
- export type CommitmentView = Partial<Commitment>;
49
- export type CommitmentCheckView = Partial<CommitmentCheck>;
50
- /** The `object:'list'` envelope every per-commitment read list now answers. */
51
- export type CommitmentListPage = {
48
+ export type DutyView = Partial<Duty>;
49
+ export type DutyCheckView = Partial<DutyCheck>;
50
+ /** The `object:'list'` envelope every per-duty read list now answers. */
51
+ export type DutyListPage = {
52
52
  data: unknown[];
53
53
  has_more?: boolean;
54
54
  next_cursor?: string | null;
55
55
  };
56
- export type CommitmentPreflightReport = {
56
+ export type DutyPreflightReport = {
57
57
  verdict: 'ready' | 'needs_review' | 'blocked';
58
- capabilities?: CommitmentCapabilitySource[];
58
+ capabilities?: DutyCapabilitySource[];
59
59
  gates: Array<{
60
60
  id: string;
61
61
  label: string;
@@ -96,7 +96,7 @@ export type CommitmentPreflightReport = {
96
96
  [key: string]: unknown;
97
97
  };
98
98
  /** Whose permissions a run uses (OSK-11975). Absent from older servers. */
99
- permissions?: CommitmentRunPermissions | null;
99
+ permissions?: DutyRunPermissions | null;
100
100
  /** `retired` names the fence fields OSK-11975 made inert (OSK-12065). */
101
101
  execution?: {
102
102
  retired?: string[];
@@ -111,7 +111,7 @@ export type CommitmentPreflightReport = {
111
111
  };
112
112
  /**
113
113
  * Whether Resume / `create --activate` would be accepted, answered by the server's one activation
114
- * rule (`CommitmentActivation`). Absent from an older server. A gate can be advisory for a run and
114
+ * rule (`DutyActivation`). Absent from an older server. A gate can be advisory for a run and
115
115
  * still refuse activation, so this is the answer, not the gate list.
116
116
  */
117
117
  activation?: {
@@ -131,7 +131,7 @@ export type CommitmentPreflightReport = {
131
131
  * it. The server owns which gates refuse; this lays out its answer and never re-derives it. Nothing
132
132
  * for an allowed activation or an older server that does not send the block.
133
133
  */
134
- export declare function activationRefusalLines(activation: CommitmentPreflightReport['activation']): string[];
134
+ export declare function activationRefusalLines(activation: DutyPreflightReport['activation']): string[];
135
135
  /**
136
136
  * Whether the server's activation answer names this gate as one that refuses activation (OSK-21258).
137
137
  * A gate can be advisory for a run (`admission: 'advisory'`) and still be what `resume` refuses with a
@@ -140,40 +140,40 @@ export declare function activationRefusalLines(activation: CommitmentPreflightRe
140
140
  * both sides carry one, so a gate advisory for one reason is not promoted by another. An older server
141
141
  * that sends no answer promotes nothing.
142
142
  */
143
- export declare function gateRefusesActivation(activation: CommitmentPreflightReport['activation'], gate: {
143
+ export declare function gateRefusesActivation(activation: DutyPreflightReport['activation'], gate: {
144
144
  id?: string;
145
145
  reason?: string | null;
146
146
  }): boolean;
147
147
  /**
148
- * The lines every Commitment read surface prints for "whose permissions does a
148
+ * The lines every Duty read surface prints for "whose permissions does a
149
149
  * run use?" — `show`, `effective-policy` and `preflight` share it so the three
150
150
  * cannot phrase it three ways (OSK-12065). The sentence and the warnings are
151
151
  * the server's; this only lays them out. `null` (an older server that does not
152
152
  * report it) prints nothing rather than a guess.
153
153
  */
154
- export declare function permissionLines(permissions: CommitmentRunPermissions | null | undefined): string[];
154
+ export declare function permissionLines(permissions: DutyRunPermissions | null | undefined): string[];
155
155
  /**
156
156
  * The lines `show` prints for a stored schedule setting the engine cannot honour
157
157
  * (OSK-15452): the cadence line above them reads as honoured while the daily times
158
158
  * run on UTC. The sentence and the remedy are the server's; this only lays them out.
159
159
  * An older server reports none, which prints nothing rather than a guess.
160
160
  */
161
- export declare function scheduleIssueLines(issues: CommitmentScheduleIssue[] | null | undefined): string[];
161
+ export declare function scheduleIssueLines(issues: DutyScheduleIssue[] | null | undefined): string[];
162
162
  /**
163
163
  * One line naming fields that are still in the JSON but decide nothing any
164
164
  * more. Deprecation, not removal: `--json` keeps them for scripts.
165
165
  */
166
166
  export declare function retiredFieldsLine(retired: string[] | undefined, reason: string | undefined): string | null;
167
167
  /**
168
- * A Commitment Pack's readiness receipt.
168
+ * A Duty Pack's readiness receipt.
169
169
  *
170
- * `verdict` is what gates the lifecycle: `CommitmentPackLifecycle.activateShadow`
170
+ * `verdict` is what gates the lifecycle: `DutyPackLifecycle.activateShadow`
171
171
  * and `promote` both REFUSE unless it reads `ready`, and the receipt is stored on
172
- * the commitment (`pack.lastPreflight`) rather than recomputed per Check. A stale
172
+ * the duty (`pack.lastPreflight`) rather than recomputed per Check. A stale
173
173
  * `blocked` therefore fences promotion indefinitely, which is exactly why this
174
174
  * needs to be re-runnable from the CLI.
175
175
  */
176
- export type CommitmentPackPreflightResponse = {
176
+ export type DutyPackPreflightResponse = {
177
177
  pack: {
178
178
  id: string;
179
179
  version: string;
@@ -196,16 +196,16 @@ export type CommitmentPackPreflightResponse = {
196
196
  reason?: string;
197
197
  }>;
198
198
  };
199
- generic: CommitmentPreflightReport;
199
+ generic: DutyPreflightReport;
200
200
  };
201
201
  /**
202
- * `/api/commitment-packs` is a SEPARATE mount from `/api/commitments`, so it
202
+ * `/api/duty-packs` is a SEPARATE mount from `/api/duties`, so it
203
203
  * gets its own builder rather than borrowing `base()`. The pack surface is not
204
204
  * covered by `domain-api-parity.spec.ts`; `preflight` is exposed here because a
205
205
  * stored verdict that only the web app can refresh is a verdict a headless
206
206
  * operator cannot clear.
207
207
  */
208
- export type CommitmentPackDefinition = {
208
+ export type DutyPackDefinition = {
209
209
  id: string;
210
210
  version: string;
211
211
  /** The Pack's name as the server sends it. `title` is not a field of the catalogue (OSK-21110). */
@@ -215,7 +215,7 @@ export type CommitmentPackDefinition = {
215
215
  [key: string]: unknown;
216
216
  };
217
217
  /** `plan` is a read-only proposal; nothing is created until `bind`. */
218
- export type CommitmentPackPlanResponse = {
218
+ export type DutyPackPlanResponse = {
219
219
  pack: {
220
220
  id: string;
221
221
  version: string;
@@ -241,8 +241,8 @@ export type CommitmentPackPlanResponse = {
241
241
  }>;
242
242
  [key: string]: unknown;
243
243
  };
244
- export type CommitmentPackBindResponse = {
245
- commitment: {
244
+ export type DutyPackBindResponse = {
245
+ duty: {
246
246
  id: string;
247
247
  title?: string;
248
248
  status?: string;
@@ -261,7 +261,7 @@ export type CommitmentPackBindResponse = {
261
261
  };
262
262
  reused?: boolean;
263
263
  /**
264
- * Present when the Pack was bound into a Space: the Commitment is that
264
+ * Present when the Pack was bound into a Space: the Duty is that
265
265
  * Space's loop, held by `agentId` (`holder: 'space_lead'` when it defaulted
266
266
  * to the Space's lead). `knowledgeScope.default` is what the link service
267
267
  * did with the Space knowledge opt-in; absent when an existing loop was
@@ -290,13 +290,13 @@ export type CommitmentPackBindResponse = {
290
290
  }>;
291
291
  [key: string]: unknown;
292
292
  };
293
- export type CommitmentPackLifecycleResponse = {
294
- commitment: {
293
+ export type DutyPackLifecycleResponse = {
294
+ duty: {
295
295
  id: string;
296
296
  title?: string;
297
297
  status?: string;
298
298
  policy?: Record<string, unknown>;
299
- delivery?: Commitment['delivery'];
299
+ delivery?: Duty['delivery'];
300
300
  };
301
301
  pack: {
302
302
  id: string;
@@ -304,14 +304,14 @@ export type CommitmentPackLifecycleResponse = {
304
304
  };
305
305
  phase: string;
306
306
  };
307
- export declare const commitmentPackApi: {
307
+ export declare const dutyPackApi: {
308
308
  list: () => Promise<{
309
- data: CommitmentPackDefinition[];
309
+ data: DutyPackDefinition[];
310
310
  }>;
311
- plan: (body: Record<string, unknown>) => Promise<CommitmentPackPlanResponse>;
312
- bind: (body: Record<string, unknown>) => Promise<CommitmentPackBindResponse>;
313
- preflight: (id: string, nextRunCount?: number) => Promise<CommitmentPackPreflightResponse>;
314
- activate: (id: string) => Promise<CommitmentPackLifecycleResponse>;
311
+ plan: (body: Record<string, unknown>) => Promise<DutyPackPlanResponse>;
312
+ bind: (body: Record<string, unknown>) => Promise<DutyPackBindResponse>;
313
+ preflight: (id: string, nextRunCount?: number) => Promise<DutyPackPreflightResponse>;
314
+ activate: (id: string) => Promise<DutyPackLifecycleResponse>;
315
315
  };
316
316
  export type ObservationWindowQuery = {
317
317
  key: string;
@@ -319,26 +319,26 @@ export type ObservationWindowQuery = {
319
319
  to: string;
320
320
  limit?: number;
321
321
  };
322
- export declare const commitmentApi: {
322
+ export declare const dutyApi: {
323
323
  /**
324
324
  * The lib owns every URL in this domain, and the parity spec depends on that:
325
- * a command that builds its own `/api/commitments/...` string is invisible to
325
+ * a command that builds its own `/api/duties/...` string is invisible to
326
326
  * the coverage check, which is how an endpoint ends up unreachable without
327
327
  * anything failing.
328
328
  */
329
- list: (query?: Parameters<typeof withQuery>[1]) => Promise<CommitmentListResponse>;
329
+ list: (query?: Parameters<typeof withQuery>[1]) => Promise<DutyListResponse>;
330
330
  /**
331
331
  * Fleet-level liveness sweep health (OSK-10958): when the reconciler last
332
332
  * swept, how stale that is, and the tally it last persisted. Aggregate only.
333
333
  */
334
334
  livenessSweep: () => Promise<Record<string, unknown>>;
335
- /** One agent's Commitments, system roles included, each with its loop status. */
336
- roster: (agentId: string) => Promise<CommitmentRoster>;
337
- /** Is this Commitment's loop installed and working. */
338
- loopStatus: (id: string) => Promise<CommitmentLoopStatus>;
335
+ /** One agent's Duties, system roles included, each with its loop status. */
336
+ roster: (agentId: string) => Promise<DutyRoster>;
337
+ /** Is this Duty's loop installed and working. */
338
+ loopStatus: (id: string) => Promise<DutyLoopStatus>;
339
339
  manifest: (id: string) => Promise<Record<string, unknown>>;
340
340
  import: (body: Record<string, unknown>) => Promise<{
341
- commitment: {
341
+ duty: {
342
342
  id: string;
343
343
  title: string;
344
344
  status: string;
@@ -349,7 +349,7 @@ export declare const commitmentApi: {
349
349
  };
350
350
  }>;
351
351
  fork: (id: string, body: Record<string, unknown>) => Promise<{
352
- commitment: {
352
+ duty: {
353
353
  id: string;
354
354
  title: string;
355
355
  status: string;
@@ -359,7 +359,7 @@ export declare const commitmentApi: {
359
359
  sensors?: unknown[];
360
360
  };
361
361
  }>;
362
- get: (id: string) => Promise<CommitmentStatusResponse>;
362
+ get: (id: string) => Promise<DutyStatusResponse>;
363
363
  controlPreview: (id: string, query: Parameters<typeof withQuery>[1]) => Promise<Record<string, unknown>>;
364
364
  applyControl: (id: string, body: Record<string, unknown>) => Promise<Record<string, unknown>>;
365
365
  controlReceipt: (id: string, controlId: string) => Promise<Record<string, unknown>>;
@@ -377,41 +377,41 @@ export declare const commitmentApi: {
377
377
  timeoutMs?: number;
378
378
  }) => Promise<Record<string, unknown>>;
379
379
  readinessReceipt: (id: string, receiptId: string) => Promise<Record<string, unknown>>;
380
- create: (body: Record<string, unknown>) => Promise<Commitment>;
381
- update: (id: string, body: Record<string, unknown>) => Promise<CommitmentUpdateResponse>;
382
- draftPreflight: (body: Record<string, unknown>) => Promise<CommitmentPreflightReport>;
380
+ create: (body: Record<string, unknown>) => Promise<Duty>;
381
+ update: (id: string, body: Record<string, unknown>) => Promise<DutyUpdateResponse>;
382
+ draftPreflight: (body: Record<string, unknown>) => Promise<DutyPreflightReport>;
383
383
  workLinks: (id: string, includeInactive?: boolean) => Promise<{
384
- object: "commitment_work_link_list";
385
- data: CommitmentWorkLink[];
384
+ object: "duty_work_link_list";
385
+ data: DutyWorkLink[];
386
386
  }>;
387
387
  createWorkLink: (id: string, body: Record<string, unknown>) => Promise<{
388
- object: "commitment_work_link";
389
- link: CommitmentWorkLink;
388
+ object: "duty_work_link";
389
+ link: DutyWorkLink;
390
390
  }>;
391
391
  updateWorkLink: (id: string, linkId: string, body: Record<string, unknown>) => Promise<{
392
- object: "commitment_work_link";
393
- link: CommitmentWorkLink;
392
+ object: "duty_work_link";
393
+ link: DutyWorkLink;
394
394
  }>;
395
395
  detachWorkLink: (id: string, linkId: string) => Promise<{
396
- object: "commitment_work_link";
397
- link: CommitmentWorkLink;
396
+ object: "duty_work_link";
397
+ link: DutyWorkLink;
398
398
  }>;
399
- plan: (body: Record<string, unknown>) => Promise<CommitmentPlanResponse>;
399
+ plan: (body: Record<string, unknown>) => Promise<DutyPlanResponse>;
400
400
  checkNow: (id: string) => Promise<Record<string, unknown>>;
401
401
  checks: (id: string, query?: {
402
402
  limit?: number;
403
403
  cursor?: string;
404
- }) => Promise<CommitmentChecksResponse>;
404
+ }) => Promise<DutyChecksResponse>;
405
405
  actionHistory: (id: string, query?: {
406
406
  limit?: number;
407
407
  cursor?: string;
408
- }) => Promise<CommitmentListPage>;
408
+ }) => Promise<DutyListPage>;
409
409
  actionProposals: (id: string, query?: {
410
410
  status?: string;
411
411
  limit?: number;
412
412
  }) => Promise<{
413
- object: "commitment_action_proposal_list";
414
- data: CommitmentActionProposal[];
413
+ object: "duty_action_proposal_list";
414
+ data: DutyActionProposal[];
415
415
  }>;
416
416
  actionProposal: (id: string, proposalId: string) => Promise<Record<string, unknown>>;
417
417
  /**
@@ -421,7 +421,7 @@ export declare const commitmentApi: {
421
421
  * headless operator could only ever REACT to proposals the server made — an
422
422
  * asymmetry that leaves the domain half-usable in exactly the way the parity
423
423
  * rule exists to catch. A locally-running agent that has investigated a
424
- * commitment and knows what should be done had no way to say so.
424
+ * duty and knows what should be done had no way to say so.
425
425
  */
426
426
  proposeActionProposal: (id: string, body: Record<string, unknown>) => Promise<Record<string, unknown>>;
427
427
  decideActionProposal: (id: string, proposalId: string, decision: "approve" | "reject", snapshot?: {
@@ -431,13 +431,13 @@ export declare const commitmentApi: {
431
431
  reasonCode?: import("@skrr-ai/data-provider").ProposalDiscardReasonCode;
432
432
  }) => Promise<Record<string, unknown>>;
433
433
  executeActionProposal: (id: string, proposalId: string, body?: Record<string, unknown>) => Promise<Record<string, unknown>>;
434
- preflight: (id: string, nextRunCount?: number, eventFixture?: Record<string, unknown>) => Promise<CommitmentPreflightReport>;
434
+ preflight: (id: string, nextRunCount?: number, eventFixture?: Record<string, unknown>) => Promise<DutyPreflightReport>;
435
435
  effectivePolicy: (id: string) => Promise<Record<string, unknown>>;
436
436
  /**
437
- * Executor rebind — `POST /api/commitments/:id/executor` (impl contract B4,
437
+ * Executor rebind — `POST /api/duties/:id/executor` (impl contract B4,
438
438
  * docs/architecture/execution-handover-2026-09-17.md P4).
439
439
  *
440
- * `commitment.agentId` is single-valued by design, so moving it is an
440
+ * `duty.agentId` is single-valued by design, so moving it is an
441
441
  * explicit recorded act: the server appends an `executorHandovers` entry
442
442
  * rather than letting a bare PATCH rewrite who owns the loop without a trail.
443
443
  */
@@ -445,27 +445,27 @@ export declare const commitmentApi: {
445
445
  agentId: string;
446
446
  reason?: string;
447
447
  }) => Promise<Record<string, unknown>>;
448
- pause: (id: string) => Promise<Commitment>;
449
- resume: (id: string) => Promise<Commitment>;
450
- complete: (id: string) => Promise<Commitment>;
451
- delivery: (id: string, body: Record<string, unknown>) => Promise<Commitment>;
448
+ pause: (id: string) => Promise<Duty>;
449
+ resume: (id: string) => Promise<Duty>;
450
+ complete: (id: string) => Promise<Duty>;
451
+ delivery: (id: string, body: Record<string, unknown>) => Promise<Duty>;
452
452
  receipts: (id: string, query?: {
453
453
  limit?: number;
454
454
  checkId?: string;
455
455
  runId?: string;
456
- } | number) => Promise<CommitmentExecutionReceiptListResponse>;
457
- receiptQuarterlyMetrics: (id: string, year: number, quarter: number) => Promise<CommitmentExecutionReceiptQuarterlyMetricsResponse>;
458
- deliveryPatch: (id: string, taskId: string) => Promise<CommitmentDeliveryPatchResponse>;
459
- deliveryBundle: (id: string, taskId: string) => Promise<CommitmentDeliveryBundleResponse>;
456
+ } | number) => Promise<DutyExecutionReceiptListResponse>;
457
+ receiptQuarterlyMetrics: (id: string, year: number, quarter: number) => Promise<DutyExecutionReceiptQuarterlyMetricsResponse>;
458
+ deliveryPatch: (id: string, taskId: string) => Promise<DutyDeliveryPatchResponse>;
459
+ deliveryBundle: (id: string, taskId: string) => Promise<DutyDeliveryBundleResponse>;
460
460
  operatingReview: (agentId: string) => Promise<Record<string, unknown>>;
461
461
  reflection: (id: string) => Promise<Record<string, unknown>>;
462
462
  decideReflectionProposal: (id: string, proposalKey: string, decision: "approve" | "reject") => Promise<Record<string, unknown>>;
463
- /** Case and remediation-proposal reads make a commitment's open loop inspectable. */
463
+ /** Case and remediation-proposal reads make a duty's open loop inspectable. */
464
464
  cases: (id: string, query?: {
465
465
  limit?: number;
466
466
  status?: string;
467
467
  cursor?: string;
468
- }) => Promise<CommitmentListPage>;
468
+ }) => Promise<DutyListPage>;
469
469
  caseDetail: (id: string, caseId: string) => Promise<Record<string, unknown>>;
470
470
  remediationProposals: (id: string, query?: {
471
471
  caseId?: string;
@@ -484,19 +484,19 @@ export declare const commitmentApi: {
484
484
  }) => Promise<Record<string, unknown>>;
485
485
  triggerStatus: (id: string, limit?: number) => Promise<Record<string, unknown>>;
486
486
  workLineage: (id: string, limit?: number) => Promise<Record<string, unknown>>;
487
- /** One ordered explanation surface across the immutable commitment ledgers. */
487
+ /** One ordered explanation surface across the immutable duty ledgers. */
488
488
  /**
489
489
  * Soft delete: the contract drops out of every read while the ledgers that
490
490
  * reference it stay resolvable. Refused for an active or system-managed
491
- * commitment — see CommitmentControl.deleteCommitment.
491
+ * duty — see DutyControl.deleteDuty.
492
492
  */
493
493
  remove: (id: string, reason?: string, opts?: {
494
494
  stopOpenWork?: boolean;
495
495
  }) => Promise<Record<string, unknown>>;
496
496
  /** What a delete would leave behind. Read-only. */
497
497
  deletionPreview: (id: string) => Promise<Record<string, unknown>>;
498
- /** Un-delete. Returns the Commitment PAUSED, never active. */
499
- restore: (id: string) => Promise<Commitment>;
498
+ /** Un-delete. Returns the Duty PAUSED, never active. */
499
+ restore: (id: string) => Promise<Duty>;
500
500
  trace: (id: string, query?: {
501
501
  limit?: number;
502
502
  cursor?: string;
@@ -505,15 +505,15 @@ export declare const commitmentApi: {
505
505
  cycles: (id: string, query?: {
506
506
  limit?: number;
507
507
  cursor?: string;
508
- }) => Promise<CommitmentCyclesResponse>;
508
+ }) => Promise<DutyCyclesResponse>;
509
509
  /** The latest Cycle walked as six questions; the first "no" is where it stopped. */
510
- explain: (id: string) => Promise<CommitmentExplanationResponse>;
510
+ explain: (id: string) => Promise<DutyExplanationResponse>;
511
511
  ledger: (id: string, query?: Record<string, string | number | undefined>) => Promise<Record<string, unknown>>;
512
- wakeCapabilities: (id: string) => Promise<CommitmentWakeCapabilities>;
512
+ wakeCapabilities: (id: string) => Promise<DutyWakeCapabilities>;
513
513
  dailyMetrics: (id: string, query?: {
514
514
  limit?: number;
515
515
  cursor?: string;
516
- }) => Promise<CommitmentListPage>;
516
+ }) => Promise<DutyListPage>;
517
517
  cadenceDecisions: (id: string, limit?: number) => Promise<{
518
518
  data: unknown[];
519
519
  }>;
@@ -523,24 +523,24 @@ export declare const commitmentApi: {
523
523
  * Every other read on this object is retrospective. This one stops at the
524
524
  * DecisionEnvelope → Arbiter boundary — no Check row, no budget debit, no
525
525
  * delivery gate, no contract write — so it is the only way to answer "what is
526
- * this commitment about to do" before it does it. Worth its own command for
527
- * the same reason `trigger-status` is: when a commitment is about to nudge
526
+ * this duty about to do" before it does it. Worth its own command for
527
+ * the same reason `trigger-status` is: when a duty is about to nudge
528
528
  * somebody and nobody can say why, the posture and its policy trail are the
529
529
  * answer, and re-running a real check to find out changes the thing you are
530
530
  * trying to observe.
531
531
  */
532
- nextTick: (id: string) => Promise<CommitmentNextTickProjection>;
532
+ nextTick: (id: string) => Promise<DutyNextTickProjection>;
533
533
  /**
534
534
  * The accounting SHADOW readout behind allowance accounting.
535
535
  *
536
- * WORKSPACE-scoped despite hanging off one commitment's id: it aggregates
536
+ * WORKSPACE-scoped despite hanging off one duty's id: it aggregates
537
537
  * every closed daily metric in the workspace, because the question it answers
538
538
  * is "does this workspace have enough closed evidence to activate" rather than
539
- * "what has this commitment spent". `cost` is the per-commitment question.
539
+ * "what has this duty spent". `cost` is the per-duty question.
540
540
  */
541
- accountingReadout: (id: string) => Promise<CommitmentAccountingReadout>;
541
+ accountingReadout: (id: string) => Promise<DutyAccountingReadout>;
542
542
  /**
543
- * Closed-period spend for ONE commitment over a UTC day window.
543
+ * Closed-period spend for ONE duty over a UTC day window.
544
544
  *
545
545
  * `costStatus` is the load-bearing field, not the dollar figure: `partial` and
546
546
  * `unavailable` mean some runs carried no cost attribution at all, so the
@@ -551,9 +551,9 @@ export declare const commitmentApi: {
551
551
  cost: (id: string, window: {
552
552
  from: string;
553
553
  to: string;
554
- }) => Promise<CommitmentCostWindow>;
554
+ }) => Promise<DutyCostWindow>;
555
555
  /**
556
- * What this commitment's RUNS claim to have seen (agent-as-sensor).
556
+ * What this duty's RUNS claim to have seen (agent-as-sensor).
557
557
  *
558
558
  * Distinct from every other read on this object: it is the only one whose
559
559
  * rows the control plane did not gather itself, so each carries
@@ -574,13 +574,13 @@ export declare const commitmentApi: {
574
574
  investigationKey?: string;
575
575
  status?: string;
576
576
  cursor?: string;
577
- }) => Promise<CommitmentListPage>;
577
+ }) => Promise<DutyListPage>;
578
578
  evaluations: (id: string, query?: {
579
579
  limit?: number;
580
- }) => Promise<CommitmentListPage>;
580
+ }) => Promise<DutyListPage>;
581
581
  createEvaluation: (id: string, body: Record<string, unknown>) => Promise<Record<string, unknown>>;
582
582
  retryEvaluationLearning: (id: string, scheduleId: string) => Promise<Record<string, unknown>>;
583
- observations: (id: string, query?: CommitmentObservationsQuery) => Promise<CommitmentObservationsResponse>;
583
+ observations: (id: string, query?: DutyObservationsQuery) => Promise<DutyObservationsResponse>;
584
584
  observationSeries: (id: string, query: ObservationWindowQuery) => Promise<Record<string, unknown>>;
585
585
  observationCompare: (id: string, query: ObservationWindowQuery & {
586
586
  baselineFrom: string;
@@ -602,15 +602,15 @@ export declare const commitmentApi: {
602
602
  * under `--json` — so it stays `unknown` here rather than being half-typed into
603
603
  * something a renderer would be tempted to trust.
604
604
  */
605
- export interface CommitmentNextTickProjection {
605
+ export interface DutyNextTickProjection {
606
606
  object?: string;
607
- commitmentId?: string;
607
+ dutyId?: string;
608
608
  projectedAt?: string;
609
609
  envelope?: Record<string, unknown>;
610
610
  /**
611
611
  * OSK-11433 — the stored liveness verdict, carried alongside the projected
612
612
  * envelope because the projection reads world-model delta, not run
613
- * outcomes: a commitment whose dispatches are all refused still projects
613
+ * outcomes: a duty whose dispatches are all refused still projects
614
614
  * on_track, and without this field the two honest answers contradict
615
615
  * silently across surfaces.
616
616
  */
@@ -648,7 +648,7 @@ export interface CommitmentNextTickProjection {
648
648
  };
649
649
  }
650
650
  /** Shape of `GET /:id/accounting-readout`. */
651
- export interface CommitmentAccountingReadout {
651
+ export interface DutyAccountingReadout {
652
652
  windowDays?: number;
653
653
  evidenceDays?: number;
654
654
  source?: string;
@@ -676,8 +676,8 @@ export interface CommitmentAccountingReadout {
676
676
  requestedMode?: string;
677
677
  }
678
678
  /** Shape of `GET /:id/cost`. */
679
- export interface CommitmentCostWindow {
680
- commitmentId?: string;
679
+ export interface DutyCostWindow {
680
+ dutyId?: string;
681
681
  from?: string;
682
682
  to?: string;
683
683
  dayCount?: number;
@@ -704,7 +704,7 @@ export interface CostProjectionCensus {
704
704
  olderDayCount?: number;
705
705
  }
706
706
  /**
707
- * The event-wake block of a Commitment's trigger status (`eventCapabilities`), as the server sends
707
+ * The event-wake block of a Duty's trigger status (`eventCapabilities`), as the server sends
708
708
  * it. Rendered by `eventWakeLines` for both `trigger-status` and `wake-capabilities`.
709
709
  */
710
710
  export type EventWakeCapabilities = {
@@ -746,7 +746,7 @@ export type EventWakeCapabilities = {
746
746
  }[];
747
747
  };
748
748
  /** Shape of `GET /:id/wake-capabilities`. */
749
- export interface CommitmentWakeCapabilities {
749
+ export interface DutyWakeCapabilities {
750
750
  eligibleCapabilities: Array<{
751
751
  id: string;
752
752
  kind?: string;
@@ -768,31 +768,31 @@ export interface CommitmentWakeCapabilities {
768
768
  * statement", never "nothing is bound".
769
769
  */
770
770
  standingEventWakes?: {
771
- commitmentStatus: string;
771
+ dutyStatus: string;
772
772
  cadenceMode?: string;
773
773
  eventCapabilities: EventWakeCapabilities;
774
774
  agentChosenEventWaits: number;
775
775
  } | null;
776
776
  }
777
777
  /** One-tap check feedback. `handled` means "I dealt with it", not "good nudge". */
778
- export declare const COMMITMENT_FEEDBACK_KINDS: readonly ["useful", "noisy", "wrong", "handled"];
778
+ export declare const DUTY_FEEDBACK_KINDS: readonly ["useful", "noisy", "wrong", "handled"];
779
779
  /**
780
780
  * Bounded remediation actions. This is a CLOSED set on purpose: remediation is
781
- * the "this commitment is misbehaving, calm it down" lever, and a free-form
781
+ * the "this duty is misbehaving, calm it down" lever, and a free-form
782
782
  * contract edit would defeat the point of having one.
783
783
  */
784
- export declare const COMMITMENT_REMEDIATION_ACTIONS: readonly ["pause_commitment", "mute_user_nudges", "reduce_nudge_frequency", "mark_noop"];
784
+ export declare const DUTY_REMEDIATION_ACTIONS: readonly ["pause_duty", "mute_user_nudges", "reduce_nudge_frequency", "mark_noop"];
785
785
  /** The only keys `createBodySchema` (a `z.strictObject`) accepts. */
786
- export declare const COMMITMENT_CREATE_KEYS: readonly ["mode", "agentId", "kind", "compassId", "compassOrigin", "goalId", "title", "description", "agentDirective", "status", "target", "watchedSources", "policy", "delivery", "cadence", "subject", "sensors", "grants", "reports", "createdVia"];
786
+ export declare const DUTY_CREATE_KEYS: readonly ["mode", "agentId", "kind", "compassId", "compassOrigin", "goalId", "title", "description", "agentDirective", "status", "target", "watchedSources", "policy", "delivery", "cadence", "subject", "sensors", "grants", "reports", "createdVia"];
787
787
  /**
788
- * Read the per-Commitment domain policy from an inline flag or a text file.
788
+ * Read the per-Duty domain policy from an inline flag or a text file.
789
789
  *
790
790
  * This deliberately uses a separate pair of names from Agent-level instruction
791
- * commands: the result configures one Commitment run, not the Agent's global
791
+ * commands: the result configures one Duty run, not the Agent's global
792
792
  * prompt. The explicit error also keeps shell users from accidentally masking
793
793
  * a reviewed file with a short inline experiment.
794
794
  */
795
- export declare function readCommitmentAgentDirective({ directive, file, }: {
795
+ export declare function readDutyAgentDirective({ directive, file, }: {
796
796
  directive?: string;
797
797
  file?: string;
798
798
  }): Promise<string | undefined>;
@@ -815,7 +815,7 @@ export declare function ignoredCreateKeysWarning(keys: string[]): string | null;
815
815
  * Normalize a `--from-json` body into something the create endpoint accepts.
816
816
  *
817
817
  * Two real hazards this removes:
818
- * 1. `skrr commitments plan --json` emits the ENVELOPE `{proposal, message, …}` —
818
+ * 1. `skrr duties plan --json` emits the ENVELOPE `{proposal, message, …}` —
819
819
  * unwrap `proposal` so the documented plan → create pipe works unedited.
820
820
  * 2. `createBodySchema` is a `z.strictObject`, so any extra key is a 400. A
821
821
  * contract dumped from `list --json` carries id/version/state/ownerUserId/…
@@ -826,19 +826,19 @@ export declare function ignoredCreateKeysWarning(keys: string[]): string | null;
826
826
  * active or terminal state, but importing it must still create a draft.
827
827
  */
828
828
  export declare function normalizeCreateBody(input: Record<string, unknown>): Record<string, unknown>;
829
- export declare function parseCommitmentConcurrencyLimit(input: string | undefined): number | null | undefined;
830
- export declare function commitmentConcurrencyEnvelopePatch({ rawValue, reason, autonomous, }: {
829
+ export declare function parseDutyConcurrencyLimit(input: string | undefined): number | null | undefined;
830
+ export declare function dutyConcurrencyEnvelopePatch({ rawValue, reason, autonomous, }: {
831
831
  rawValue?: string;
832
832
  reason?: string;
833
833
  autonomous?: boolean;
834
834
  }): Record<string, unknown> | undefined;
835
835
  /**
836
- * What `policy.evidenceGate.requireMaterialEvidenceForAutonomousRun` does to this Commitment's
836
+ * What `policy.evidenceGate.requireMaterialEvidenceForAutonomousRun` does to this Duty's
837
837
  * scheduled runs, in a line `show` can print (OSK-15417). It existed only in `show --json`: nothing
838
838
  * in help, docs or any text view said whether a run on an unchanged day would be held back.
839
839
  */
840
- export declare function describeEvidenceGate(commitment: CommitmentView): string;
841
- export declare function describeCommitmentConcurrency(commitment: CommitmentView): string;
840
+ export declare function describeEvidenceGate(duty: DutyView): string;
841
+ export declare function describeDutyConcurrency(duty: DutyView): string;
842
842
  export declare function parseIntervalToMs(input: string): number;
843
843
  /**
844
844
  * Assemble the `watchedSources` array from CLI flags — one place, so `create`
@@ -890,12 +890,12 @@ export declare function describeIntervalMs(ms: number | undefined): string;
890
890
  * `source_state` belongs HERE rather than with those three: its config is one
891
891
  * string naming a watched source, which is exactly as spellable as `metric`'s
892
892
  * `--measure`. It is also the evaluator built for a source-watching Guardian,
893
- * the one shape of commitment that previously had no evaluator available to it
893
+ * the one shape of duty that previously had no evaluator available to it
894
894
  * at all — so leaving it JSON-only would mean the CLI could not express the
895
- * criterion its own `sky commitments show` tells the user to add.
895
+ * criterion its own `sky duties show` tells the user to add.
896
896
  */
897
- export declare const COMMITMENT_CLI_EVALUATORS: readonly ["manual", "metric", "source_state"];
898
- export type CommitmentCliEvaluator = (typeof COMMITMENT_CLI_EVALUATORS)[number];
897
+ export declare const DUTY_CLI_EVALUATORS: readonly ["manual", "metric", "source_state"];
898
+ export type DutyCliEvaluator = (typeof DUTY_CLI_EVALUATORS)[number];
899
899
  export type SuccessCriterionInput = {
900
900
  id: string;
901
901
  label: string;
@@ -917,20 +917,20 @@ export declare function buildSuccessCriteria(labels: string[], opts?: {
917
917
  * The cadence changes an Agent has proposed and nobody has decided. `cadence-requests decide` needs a request
918
918
  * id, and `show` listed none, so a person could not find the id to pass (OSK-15422).
919
919
  */
920
- export declare function pendingCadenceRequestLines(commitment: unknown): string[];
920
+ export declare function pendingCadenceRequestLines(duty: unknown): string[];
921
921
  /**
922
922
  * What `event+<interval>` promises, in one sentence. A watched-source event is an accelerator: it
923
923
  * makes a check happen sooner, and one that is lost on the way is not replayed. The interval is what
924
- * recovers: at each one the Commitment re-checks current state, which finds what the missed event
925
- * would have reported. It does not replay the event, and it runs only while the Commitment is running.
924
+ * recovers: at each one the Duty re-checks current state, which finds what the missed event
925
+ * would have reported. It does not replay the event, and it runs only while the Duty is running.
926
926
  */
927
927
  export declare function eventBackstopNote(intervalMs: number | undefined): string;
928
- export declare function cadenceLabel(commitment: CommitmentView): string;
929
- export declare function renderCommitmentList(commitments: CommitmentView[], log: (line: string) => void): void;
928
+ export declare function cadenceLabel(duty: DutyView): string;
929
+ export declare function renderDutyList(duties: DutyView[], log: (line: string) => void): void;
930
930
  /**
931
- * A `commitment_standstill` policyTrace entry, extracted from the latest
931
+ * A `duty_standstill` policyTrace entry, extracted from the latest
932
932
  * check's decision. The arbiter appends it whenever a quiet posture is the
933
- * ANSWER to "why nothing is happening" (`CommitmentControl/index.js` around
933
+ * ANSWER to "why nothing is happening" (`DutyControl/index.js` around
934
934
  * the `record_only`/empty-action-plan branch). Every field except `reason` is
935
935
  * optional, and old checks lack the entry entirely — so a missing entry means
936
936
  * "the loop had nothing standstill-worthy to say", not "we don't know".
@@ -952,8 +952,8 @@ export declare function extractStandstillFromCheck(check?: {
952
952
  * The fix to print beside a standstill, as `stopForRead` resolves a stop's on
953
953
  * the server. The check's own stored sentence is the answer for a reason that
954
954
  * still occurs. A reason only a pre-2026-10-09 Check carries stored a fix that
955
- * names a retired Commitment mode (OSK-18146), so its current copy is printed
956
- * instead, with `<commitment>` bound to this Commitment when its id is a plain
955
+ * names a retired Duty mode (OSK-18146), so its current copy is printed
956
+ * instead, with `<duty>` bound to this Duty when its id is a plain
957
957
  * token.
958
958
  *
959
959
  * Exported for tests.
@@ -961,10 +961,10 @@ export declare function extractStandstillFromCheck(check?: {
961
961
  export declare function standstillFixForRead(standstill: {
962
962
  reason: string;
963
963
  fix?: string;
964
- }, commitmentId?: string): string | undefined;
964
+ }, dutyId?: string): string | undefined;
965
965
  /**
966
966
  * The `Autonomy:` line — the stated mode, annotated when the latest check
967
- * actually ran at a STRICTER one (OSK-4881). Without the caveat, a commitment
967
+ * actually ran at a STRICTER one (OSK-4881). Without the caveat, a duty
968
968
  * created `auto_run_limited` whose every check the workspace clamped to
969
969
  * `suggestions_only` reads as though it were acting when it is only suggesting,
970
970
  * and only `preflight --json` reveals otherwise.
@@ -972,7 +972,7 @@ export declare function standstillFixForRead(standstill: {
972
972
  * Exported for tests.
973
973
  */
974
974
  /**
975
- * One-line rendering of `commitment.executorBlocked` — the B4/A7 signal that
975
+ * One-line rendering of `duty.executorBlocked` — the B4/A7 signal that
976
976
  * the executor's targets are all unusable: `{reason:'quota'|'offline'|'waiting_for_machine', until?,
977
977
  * provider?}`.
978
978
  *
@@ -980,7 +980,7 @@ export declare function standstillFixForRead(standstill: {
980
980
  * is the normal case and means "no information", not "not blocked". Returns
981
981
  * null rather than printing a guess.
982
982
  */
983
- export declare function describeExecutorBlocked(commitment: CommitmentView): string | null;
983
+ export declare function describeExecutorBlocked(duty: DutyView): string | null;
984
984
  export declare function operationReasonWords(reason: string | null | undefined): string | undefined;
985
985
  export declare function describeOperation(operation: string | null | undefined, reason: string | null | undefined): string;
986
986
  /**
@@ -999,35 +999,35 @@ export declare function describeOperation(operation: string | null | undefined,
999
999
  * labelled `Blocker:` instead, and no remedy is made up for it.
1000
1000
  */
1001
1001
  type OperationFixLabel = string;
1002
- export declare function describeOperationFix(commitment: CommitmentView, operation: string | null | undefined): Array<{
1002
+ export declare function describeOperationFix(duty: DutyView, operation: string | null | undefined): Array<{
1003
1003
  label: OperationFixLabel;
1004
1004
  text: string;
1005
1005
  }>;
1006
1006
  /**
1007
- * Who stopped a Commitment, and when and why, in one line. The server stores it as `stoppedBy`;
1008
- * `show` printed neither (OSK-15423), so a Commitment you paused did not say you had.
1007
+ * Who stopped a Duty, and when and why, in one line. The server stores it as `stoppedBy`;
1008
+ * `show` printed neither (OSK-15423), so a Duty you paused did not say you had.
1009
1009
  */
1010
- export declare function describeStoppedBy(commitment: CommitmentView): string | null;
1010
+ export declare function describeStoppedBy(duty: DutyView): string | null;
1011
1011
  /**
1012
- * The commitment `show` should render: its stored contract, with the
1012
+ * The duty `show` should render: its stored contract, with the
1013
1013
  * assessment replaced by the one the operating state recomputed for this read
1014
- * when the server sent one (OSK-15989). The stored `commitment.assessment` is
1014
+ * when the server sent one (OSK-15989). The stored `duty.assessment` is
1015
1015
  * what the LAST check wrote; while a run is in flight it can still say
1016
1016
  * `blocked`, and printing it above "Agent is working" made the header
1017
1017
  * contradict the rest of the page. `doctor` already reads the live one first.
1018
1018
  */
1019
- export declare function withLiveAssessment(commitment: CommitmentView, operatingState?: {
1019
+ export declare function withLiveAssessment(duty: DutyView, operatingState?: {
1020
1020
  assessment?: unknown;
1021
1021
  executorBlocked?: unknown;
1022
1022
  firstActionableBlocker?: unknown;
1023
- } | null): CommitmentView;
1023
+ } | null): DutyView;
1024
1024
  /**
1025
- * The first line of `commitments update` text output. An update that changed
1025
+ * The first line of `duties update` text output. An update that changed
1026
1026
  * nothing says so and names the version it left alone (OSK-16199); a server
1027
1027
  * that predates the receipt is reported as updated, exactly as before.
1028
1028
  */
1029
1029
  /**
1030
- * The warnings a Commitment write deserves (OSK-17003): what the replacement
1030
+ * The warnings a Duty write deserves (OSK-17003): what the replacement
1031
1031
  * removed (a watched source, its settings, daily times), what now reads
1032
1032
  * differently (daily times in a new timezone) and what stores without effect
1033
1033
  * (an `agent_run` source with no declared keys, collaborator agents).
@@ -1036,42 +1036,42 @@ export declare function withLiveAssessment(commitment: CommitmentView, operating
1036
1036
  * server sends none, so the CLI derives the same list locally from the contract
1037
1037
  * it read and the payload it sent — one derivation, `@skrr-ai/data-provider`'s.
1038
1038
  */
1039
- export declare function commitmentWriteWarnings(response: unknown, fallback: {
1040
- before?: CommitmentAuthoringSnapshot | null;
1039
+ export declare function dutyWriteWarnings(response: unknown, fallback: {
1040
+ before?: DutyAuthoringSnapshot | null;
1041
1041
  payload: Record<string, unknown>;
1042
- }): CommitmentAuthoringWarning[];
1042
+ }): DutyAuthoringWarning[];
1043
1043
  /** One `Warning:` line per authoring warning, after the write's own output. */
1044
- export declare function renderCommitmentWriteWarnings(warnings: CommitmentAuthoringWarning[], warn: (line: string) => void): void;
1045
- export declare function describeCommitmentRevision(revision: CommitmentRevisionReceipt | undefined): string;
1044
+ export declare function renderDutyWriteWarnings(warnings: DutyAuthoringWarning[], warn: (line: string) => void): void;
1045
+ export declare function describeDutyRevision(revision: DutyRevisionReceipt | undefined): string;
1046
1046
  /**
1047
- * A commitment's priority, as one line: `high · weight 70 · from northstar`.
1047
+ * A duty's priority, as one line: `high · weight 70 · from northstar`.
1048
1048
  *
1049
- * Linking a commitment to a northstar rewrites its priority (`source: northstar`) and a governor
1049
+ * Linking a duty to a northstar rewrites its priority (`source: northstar`) and a governor
1050
1050
  * reprioritization changes it again, so the place a person looks to confirm either is `show`, which
1051
1051
  * printed everything but this and sent them to `--json`. An unset priority says so rather than
1052
1052
  * printing nothing.
1053
1053
  */
1054
- export declare function describeCommitmentPriority(priority: CommitmentView['priority']): string;
1054
+ export declare function describeDutyPriority(priority: DutyView['priority']): string;
1055
1055
  /**
1056
- * The `Compass:` line of a bound commitment. A commitment names its compass (`compassId`) but the
1057
- * read does not carry that compass's STATUS, and an archived one governs nothing (the commitment
1056
+ * The `Compass:` line of a bound duty. A duty names its compass (`compassId`) but the
1057
+ * read does not carry that compass's STATUS, and an archived one governs nothing (the duty
1058
1058
  * runs on defaults), so the id alone could be read as "governed by it". Only what is known is
1059
1059
  * stated: the id, and the command that says whether it is active (OSK-21242).
1060
1060
  */
1061
- export declare function describeBoundCompass(commitment: Pick<CommitmentView, 'compassId' | 'agentId'>): string;
1061
+ export declare function describeBoundCompass(duty: Pick<DutyView, 'compassId' | 'agentId'>): string;
1062
1062
  /**
1063
1063
  * The bound Compass, as `explain` prints it (OSK-21332). `explain` is where a person asks "why does
1064
- * this Commitment behave this way", and a bound Compass (or an archived one, which runs the
1065
- * Commitment on defaults) is part of the answer. The explain payload names neither the Compass nor
1066
- * its status, so the caller reads the Commitment itself, the same read `show` renders, and hands the
1064
+ * this Duty behave this way", and a bound Compass (or an archived one, which runs the
1065
+ * Duty on defaults) is part of the answer. The explain payload names neither the Compass nor
1066
+ * its status, so the caller reads the Duty itself, the same read `show` renders, and hands the
1067
1067
  * result here: the line is `describeBoundCompass`, the one `show` prints, not a second wording.
1068
1068
  *
1069
1069
  * `null` means that read did not come back. It is said, not skipped: a silent skip is
1070
- * indistinguishable from "no Compass is bound". A Commitment bound to none prints nothing, as in
1070
+ * indistinguishable from "no Compass is bound". A Duty bound to none prints nothing, as in
1071
1071
  * `show`.
1072
1072
  */
1073
- export declare function explainCompassLines(commitmentId: string, commitment: Pick<CommitmentView, 'compassId' | 'agentId'> | null | undefined): string[];
1074
- export declare function renderCommitmentSummary(commitment: CommitmentView, log: (line: string) => void,
1073
+ export declare function explainCompassLines(dutyId: string, duty: Pick<DutyView, 'compassId' | 'agentId'> | null | undefined): string[];
1074
+ export declare function renderDutySummary(duty: DutyView, log: (line: string) => void,
1075
1075
  /**
1076
1076
  * The most recent check, when the caller has one. Optional because pause /
1077
1077
  * complete / detach / reports render this same summary and hold only the
@@ -1090,12 +1090,12 @@ latestCheck?: {
1090
1090
  * cadence they affect rather than after the free-text summary at the bottom. Optional for the
1091
1091
  * same reason as `latestCheck`: only `show` reads them from the server.
1092
1092
  */
1093
- scheduleIssues?: CommitmentScheduleIssue[] | null): void;
1093
+ scheduleIssues?: DutyScheduleIssue[] | null): void;
1094
1094
  /**
1095
1095
  * Whether a check woke the agent, in plain words (OSK-4884).
1096
1096
  *
1097
- * The commitment control loop records its wake decision as a
1098
- * `rule: 'commitment_invocation'` entry in `decision.policyTrace`, but the CLI
1097
+ * The duty control loop records its wake decision as a
1098
+ * `rule: 'duty_invocation'` entry in `decision.policyTrace`, but the CLI
1099
1099
  * never surfaced it — so `checks` could not answer the first question a reader
1100
1100
  * has: did this check start an agent run, and if not, why not? Reads the trace
1101
1101
  * entry and renders `yes` / `no — <reason>`; `-` when the check carries no
@@ -1103,27 +1103,27 @@ scheduleIssues?: CommitmentScheduleIssue[] | null): void;
1103
1103
  *
1104
1104
  * Exported for tests.
1105
1105
  */
1106
- export declare function describeWakeDecision(check: CommitmentCheckView): string;
1106
+ export declare function describeWakeDecision(check: DutyCheckView): string;
1107
1107
  /**
1108
- * Render the commitment's own decision history — one row per check. `POSTURE` is
1108
+ * Render the duty's own decision history — one row per check. `POSTURE` is
1109
1109
  * the loop's judgment (stay_quiet / act_silently / nudge_user / escalate …), so
1110
- * this is the fastest way to see what a commitment has actually been deciding.
1110
+ * this is the fastest way to see what a duty has actually been deciding.
1111
1111
  * `WOKE` says whether the check started an agent run, and why not when it did
1112
1112
  * not (OSK-4884).
1113
1113
  */
1114
- export declare function renderCheckList(checks: CommitmentCheckView[], log: (line: string) => void): void;
1114
+ export declare function renderCheckList(checks: DutyCheckView[], log: (line: string) => void): void;
1115
1115
  type ReadModelRecord = Record<string, unknown>;
1116
- /** Human view for `commitments ledger`; JSON remains the automation surface. */
1117
- export declare function renderCommitmentLedger(ledger: ReadModelRecord, log: (line: string) => void): void;
1118
- export declare function renderCommitmentTrace(trace: ReadModelRecord, log: (line: string) => void): void;
1116
+ /** Human view for `duties ledger`; JSON remains the automation surface. */
1117
+ export declare function renderDutyLedger(ledger: ReadModelRecord, log: (line: string) => void): void;
1118
+ export declare function renderDutyTrace(trace: ReadModelRecord, log: (line: string) => void): void;
1119
1119
  export declare function renderProactivenessScorecard(scorecard: ReadModelRecord, log: (line: string) => void): void;
1120
1120
  /**
1121
1121
  * One line per Cycle:
1122
- * `09-22 12:04 ● stopped act commitment_execution_budget_exhausted — Raise maxRunsPerDay…`
1122
+ * `09-22 12:04 ● stopped act duty_execution_budget_exhausted — Raise maxRunsPerDay…`
1123
1123
  * A run that failed is named under its Cycle with who has to move (machine
1124
1124
  * or model), because that is the next question every reader asks.
1125
1125
  */
1126
- export declare function formatCommitmentCycles(page: Partial<CommitmentCyclesResponse>): string[];
1126
+ export declare function formatDutyCycles(page: Partial<DutyCyclesResponse>): string[];
1127
1127
  /** One line per typed refusal reason a Run's hypotheses met; never claim text. */
1128
1128
  export declare function hypothesisRefusalLines(run: {
1129
1129
  hypothesisRefusals?: Array<{
@@ -1143,7 +1143,7 @@ export declare function wakeOutcomeLines(run: {
1143
1143
  fix?: string;
1144
1144
  };
1145
1145
  }): string[];
1146
- export declare function formatCommitmentExplanation(explanation: Partial<CommitmentExplanationResponse>): string[];
1146
+ export declare function formatDutyExplanation(explanation: Partial<DutyExplanationResponse>): string[];
1147
1147
  /**
1148
1148
  * Print the continuation hint for a paged `object:'list'` response — the line
1149
1149
  * that makes history beyond the newest page reachable instead of invisible.
@@ -1175,17 +1175,17 @@ export declare function describeObservationArtifacts(artifacts: unknown): string
1175
1175
  * terms present in THESE rows are explained, so an ordinary table adds nothing.
1176
1176
  */
1177
1177
  export declare function observationLegend(data: ReadModelRecord[]): string[];
1178
- export declare function renderCommitmentObservations(response: ReadModelRecord, log: (line: string) => void, options?: {
1178
+ export declare function renderDutyObservations(response: ReadModelRecord, log: (line: string) => void, options?: {
1179
1179
  emptyMessage?: string;
1180
1180
  }): void;
1181
1181
  /** Human view for causal hypotheses. */
1182
- export declare function renderCommitmentHypotheses(response: ReadModelRecord, log: (line: string) => void, options?: {
1182
+ export declare function renderDutyHypotheses(response: ReadModelRecord, log: (line: string) => void, options?: {
1183
1183
  emptyMessage?: string;
1184
1184
  }): void;
1185
- /** Human view for the commitment → work lineage projection. */
1186
- export declare function renderCommitmentLineage(lineage: ReadModelRecord, log: (line: string) => void): void;
1185
+ /** Human view for the duty → work lineage projection. */
1186
+ export declare function renderDutyLineage(lineage: ReadModelRecord, log: (line: string) => void): void;
1187
1187
  /** Human view for daily control-loop metrics. */
1188
- export declare function renderCommitmentMetrics(response: ReadModelRecord, log: (line: string) => void): void;
1188
+ export declare function renderDutyMetrics(response: ReadModelRecord, log: (line: string) => void): void;
1189
1189
  /**
1190
1190
  * The spend rule a closed day was derived under (OSK-15500): `open` until the day
1191
1191
  * closes, `vN` when current, `vN (older)` when a later rule exists, so a day whose
@@ -1193,7 +1193,7 @@ export declare function renderCommitmentMetrics(response: ReadModelRecord, log:
1193
1193
  */
1194
1194
  export declare function costRuleCell(projection: Record<string, unknown> | null | undefined, closed?: boolean): string;
1195
1195
  /** Human view for the case list — one row per durable problem case. */
1196
- export declare function renderCommitmentCases(response: ReadModelRecord, log: (line: string) => void): void;
1196
+ export declare function renderDutyCases(response: ReadModelRecord, log: (line: string) => void): void;
1197
1197
  /**
1198
1198
  * Human view for one case — a bounded digest, never the raw document.
1199
1199
  *
@@ -1204,10 +1204,10 @@ export declare function renderCommitmentCases(response: ReadModelRecord, log: (l
1204
1204
  * this case and what happened last" in one screen, and `--json` stays the
1205
1205
  * opt-in for the full document.
1206
1206
  */
1207
- export declare function renderCommitmentCaseDetail(response: ReadModelRecord, log: (line: string) => void, options?: {
1207
+ export declare function renderDutyCaseDetail(response: ReadModelRecord, log: (line: string) => void, options?: {
1208
1208
  maxEntries?: number;
1209
1209
  }): void;
1210
1210
  /** Human view for the remediation-proposal list. */
1211
- export declare function renderCommitmentRemediationProposals(response: ReadModelRecord, log: (line: string) => void): void;
1211
+ export declare function renderDutyRemediationProposals(response: ReadModelRecord, log: (line: string) => void): void;
1212
1212
  /** Human view for one frozen remediation proposal. */
1213
- export declare function renderCommitmentRemediationProposal(response: ReadModelRecord, log: (line: string) => void): void;
1213
+ export declare function renderDutyRemediationProposal(response: ReadModelRecord, log: (line: string) => void): void;