@openrig/cli 0.7.15 → 0.7.16

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 (402) hide show
  1. package/README.md +5 -5
  2. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
  3. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
  4. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
  5. package/daemon/assets/plugins/openrig/README.md +26 -7
  6. package/daemon/assets/plugins/openrig/plugin.json +1 -1
  7. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  8. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  9. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +4 -1
  10. package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/SKILL.md +1 -1
  11. package/daemon/assets/skills/rigs/SKILL.md +105 -30
  12. package/daemon/context-packs/help/manifest.yaml +1 -1
  13. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  14. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +92 -17
  15. package/daemon/context-packs/reference/getting-started.md +9 -8
  16. package/daemon/context-packs/reference/manifest.yaml +4 -1
  17. package/daemon/context-packs/reference/product-journey-sdlc.md +348 -0
  18. package/daemon/context-packs/reference/rig-spec.md +92 -4
  19. package/daemon/context-packs/reference/whats-new.md +210 -5
  20. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  21. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  22. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  23. package/daemon/context-packs/skills/claude-compaction-restore/SKILL.md +4 -1
  24. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  27. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/seat-continuity-and-handover/SKILL.md +1 -1
  72. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  75. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  76. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  77. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  78. package/daemon/dist/adapters/claude-code-adapter.js +6 -3
  79. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  80. package/daemon/dist/adapters/codex-resume.d.ts +2 -0
  81. package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
  82. package/daemon/dist/adapters/codex-resume.js +28 -11
  83. package/daemon/dist/adapters/codex-resume.js.map +1 -1
  84. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +15 -0
  85. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  86. package/daemon/dist/adapters/codex-runtime-adapter.js +75 -28
  87. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  88. package/daemon/dist/adapters/tmux.d.ts +3 -0
  89. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  90. package/daemon/dist/adapters/tmux.js +16 -2
  91. package/daemon/dist/adapters/tmux.js.map +1 -1
  92. package/daemon/dist/build-info.js +3 -3
  93. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  94. package/daemon/dist/db/all-migrations.js +4 -0
  95. package/daemon/dist/db/all-migrations.js.map +1 -1
  96. package/daemon/dist/db/migrations/167_seat_handover_attempts.d.ts +14 -0
  97. package/daemon/dist/db/migrations/167_seat_handover_attempts.d.ts.map +1 -0
  98. package/daemon/dist/db/migrations/167_seat_handover_attempts.js +54 -0
  99. package/daemon/dist/db/migrations/167_seat_handover_attempts.js.map +1 -0
  100. package/daemon/dist/db/migrations/169_seat_runtime_home_records.d.ts +5 -0
  101. package/daemon/dist/db/migrations/169_seat_runtime_home_records.d.ts.map +1 -0
  102. package/daemon/dist/db/migrations/169_seat_runtime_home_records.js +25 -0
  103. package/daemon/dist/db/migrations/169_seat_runtime_home_records.js.map +1 -0
  104. package/daemon/dist/domain/claim-service.d.ts +1 -3
  105. package/daemon/dist/domain/claim-service.d.ts.map +1 -1
  106. package/daemon/dist/domain/claim-service.js +3 -1
  107. package/daemon/dist/domain/claim-service.js.map +1 -1
  108. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +11 -0
  109. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  110. package/daemon/dist/domain/claude-compaction-enforcer.js +83 -36
  111. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  112. package/daemon/dist/domain/codex-filesystem-preflight.d.ts +33 -0
  113. package/daemon/dist/domain/codex-filesystem-preflight.d.ts.map +1 -0
  114. package/daemon/dist/domain/codex-filesystem-preflight.js +255 -0
  115. package/daemon/dist/domain/codex-filesystem-preflight.js.map +1 -0
  116. package/daemon/dist/domain/codex-member-permissions.d.ts +23 -2
  117. package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -1
  118. package/daemon/dist/domain/codex-member-permissions.js +55 -9
  119. package/daemon/dist/domain/codex-member-permissions.js.map +1 -1
  120. package/daemon/dist/domain/codex-network-default.d.ts +13 -0
  121. package/daemon/dist/domain/codex-network-default.d.ts.map +1 -1
  122. package/daemon/dist/domain/codex-network-default.js +37 -30
  123. package/daemon/dist/domain/codex-network-default.js.map +1 -1
  124. package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
  125. package/daemon/dist/domain/compaction-restore-notice.js +59 -13
  126. package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
  127. package/daemon/dist/domain/destination-successor.d.ts +3 -0
  128. package/daemon/dist/domain/destination-successor.d.ts.map +1 -0
  129. package/daemon/dist/domain/destination-successor.js +49 -0
  130. package/daemon/dist/domain/destination-successor.js.map +1 -0
  131. package/daemon/dist/domain/health-passive-ceremony.d.ts +3 -0
  132. package/daemon/dist/domain/health-passive-ceremony.d.ts.map +1 -1
  133. package/daemon/dist/domain/health-passive-ceremony.js +45 -4
  134. package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
  135. package/daemon/dist/domain/hosts/fleet-scopes.d.ts +111 -0
  136. package/daemon/dist/domain/hosts/fleet-scopes.d.ts.map +1 -0
  137. package/daemon/dist/domain/hosts/fleet-scopes.js +231 -0
  138. package/daemon/dist/domain/hosts/fleet-scopes.js.map +1 -0
  139. package/daemon/dist/domain/hosts/read-through.d.ts +1 -1
  140. package/daemon/dist/domain/hosts/read-through.d.ts.map +1 -1
  141. package/daemon/dist/domain/hosts/read-through.js +4 -0
  142. package/daemon/dist/domain/hosts/read-through.js.map +1 -1
  143. package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
  144. package/daemon/dist/domain/native-permission-store.js +12 -5
  145. package/daemon/dist/domain/native-permission-store.js.map +1 -1
  146. package/daemon/dist/domain/native-process-lineage.d.ts +11 -1
  147. package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
  148. package/daemon/dist/domain/native-process-lineage.js +25 -4
  149. package/daemon/dist/domain/native-process-lineage.js.map +1 -1
  150. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  151. package/daemon/dist/domain/native-resume-probe.js +31 -15
  152. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  153. package/daemon/dist/domain/node-launcher.d.ts +3 -0
  154. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  155. package/daemon/dist/domain/node-launcher.js +6 -0
  156. package/daemon/dist/domain/node-launcher.js.map +1 -1
  157. package/daemon/dist/domain/permission-account.d.ts.map +1 -1
  158. package/daemon/dist/domain/permission-account.js +8 -6
  159. package/daemon/dist/domain/permission-account.js.map +1 -1
  160. package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
  161. package/daemon/dist/domain/permission-drift.js +1 -1
  162. package/daemon/dist/domain/permission-drift.js.map +1 -1
  163. package/daemon/dist/domain/queue-destination-check.d.ts +2 -0
  164. package/daemon/dist/domain/queue-destination-check.d.ts.map +1 -1
  165. package/daemon/dist/domain/queue-destination-check.js +8 -11
  166. package/daemon/dist/domain/queue-destination-check.js.map +1 -1
  167. package/daemon/dist/domain/queue-repository.d.ts +20 -15
  168. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  169. package/daemon/dist/domain/queue-repository.js +37 -49
  170. package/daemon/dist/domain/queue-repository.js.map +1 -1
  171. package/daemon/dist/domain/queue-transition-log.d.ts +6 -0
  172. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  173. package/daemon/dist/domain/queue-transition-log.js +9 -0
  174. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  175. package/daemon/dist/domain/queue-waiting.d.ts +4 -4
  176. package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
  177. package/daemon/dist/domain/queue-waiting.js +30 -16
  178. package/daemon/dist/domain/queue-waiting.js.map +1 -1
  179. package/daemon/dist/domain/receiver-context.js +1 -1
  180. package/daemon/dist/domain/receiver-context.js.map +1 -1
  181. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  182. package/daemon/dist/domain/restore-orchestrator.js +40 -18
  183. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  184. package/daemon/dist/domain/resume-metadata-refresher.d.ts +17 -4
  185. package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
  186. package/daemon/dist/domain/resume-metadata-refresher.js +60 -14
  187. package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
  188. package/daemon/dist/domain/resume-token-capture.d.ts +6 -0
  189. package/daemon/dist/domain/resume-token-capture.d.ts.map +1 -1
  190. package/daemon/dist/domain/resume-token-capture.js +14 -8
  191. package/daemon/dist/domain/resume-token-capture.js.map +1 -1
  192. package/daemon/dist/domain/rig-edge-ops.js +1 -1
  193. package/daemon/dist/domain/rig-edge-ops.js.map +1 -1
  194. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  195. package/daemon/dist/domain/rigspec-instantiator.js +6 -2
  196. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  197. package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
  198. package/daemon/dist/domain/rigspec-preflight.js +21 -1
  199. package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
  200. package/daemon/dist/domain/rosters.d.ts +19 -0
  201. package/daemon/dist/domain/rosters.d.ts.map +1 -1
  202. package/daemon/dist/domain/rosters.js +69 -12
  203. package/daemon/dist/domain/rosters.js.map +1 -1
  204. package/daemon/dist/domain/runtime-adapter.d.ts +15 -0
  205. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  206. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  207. package/daemon/dist/domain/seat-delivery-guard.d.ts +8 -2
  208. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  209. package/daemon/dist/domain/seat-delivery-guard.js +38 -3
  210. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  211. package/daemon/dist/domain/seat-handover-attempts.d.ts +50 -0
  212. package/daemon/dist/domain/seat-handover-attempts.d.ts.map +1 -0
  213. package/daemon/dist/domain/seat-handover-attempts.js +75 -0
  214. package/daemon/dist/domain/seat-handover-attempts.js.map +1 -0
  215. package/daemon/dist/domain/seat-handover-service.d.ts +64 -1
  216. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  217. package/daemon/dist/domain/seat-handover-service.js +437 -28
  218. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  219. package/daemon/dist/domain/seat-lifecycle-service.d.ts +47 -2
  220. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  221. package/daemon/dist/domain/seat-lifecycle-service.js +48 -2
  222. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  223. package/daemon/dist/domain/seat-runtime-home-record-types.d.ts +16 -0
  224. package/daemon/dist/domain/seat-runtime-home-record-types.d.ts.map +1 -0
  225. package/daemon/dist/domain/seat-runtime-home-record-types.js +2 -0
  226. package/daemon/dist/domain/seat-runtime-home-record-types.js.map +1 -0
  227. package/daemon/dist/domain/seat-runtime-home-record.d.ts +173 -0
  228. package/daemon/dist/domain/seat-runtime-home-record.d.ts.map +1 -0
  229. package/daemon/dist/domain/seat-runtime-home-record.js +317 -0
  230. package/daemon/dist/domain/seat-runtime-home-record.js.map +1 -0
  231. package/daemon/dist/domain/seat-runtime-switch-service.d.ts +7 -0
  232. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  233. package/daemon/dist/domain/seat-runtime-switch-service.js +47 -2
  234. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  235. package/daemon/dist/domain/seat-skill-storage.d.ts +16 -1
  236. package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -1
  237. package/daemon/dist/domain/seat-skill-storage.js +178 -1
  238. package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
  239. package/daemon/dist/domain/session-transport.d.ts +1 -0
  240. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  241. package/daemon/dist/domain/session-transport.js +6 -2
  242. package/daemon/dist/domain/session-transport.js.map +1 -1
  243. package/daemon/dist/domain/skill-catalog.d.ts +3 -0
  244. package/daemon/dist/domain/skill-catalog.d.ts.map +1 -1
  245. package/daemon/dist/domain/skill-catalog.js +7 -3
  246. package/daemon/dist/domain/skill-catalog.js.map +1 -1
  247. package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
  248. package/daemon/dist/domain/snapshot-capture.js +5 -0
  249. package/daemon/dist/domain/snapshot-capture.js.map +1 -1
  250. package/daemon/dist/domain/successor-session-launcher.d.ts +16 -0
  251. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  252. package/daemon/dist/domain/successor-session-launcher.js +70 -38
  253. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  254. package/daemon/dist/domain/types.d.ts +34 -1
  255. package/daemon/dist/domain/types.d.ts.map +1 -1
  256. package/daemon/dist/domain/types.js.map +1 -1
  257. package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
  258. package/daemon/dist/domain/user-settings/settings-browser.js +3 -1
  259. package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
  260. package/daemon/dist/domain/workflow-exception-escalation.d.ts.map +1 -1
  261. package/daemon/dist/domain/workflow-exception-escalation.js +13 -8
  262. package/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
  263. package/daemon/dist/domain/workflow-instance-store.d.ts +11 -0
  264. package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
  265. package/daemon/dist/domain/workflow-instance-store.js +35 -0
  266. package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
  267. package/daemon/dist/domain/workflow-projector.d.ts +7 -0
  268. package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
  269. package/daemon/dist/domain/workflow-projector.js +202 -91
  270. package/daemon/dist/domain/workflow-projector.js.map +1 -1
  271. package/daemon/dist/domain/workflow-runtime.d.ts +7 -1
  272. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  273. package/daemon/dist/domain/workflow-runtime.js +116 -26
  274. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  275. package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
  276. package/daemon/dist/lib/pane-envelope.js +12 -7
  277. package/daemon/dist/lib/pane-envelope.js.map +1 -1
  278. package/daemon/dist/routes/compaction.d.ts.map +1 -1
  279. package/daemon/dist/routes/compaction.js +6 -3
  280. package/daemon/dist/routes/compaction.js.map +1 -1
  281. package/daemon/dist/routes/queue.d.ts.map +1 -1
  282. package/daemon/dist/routes/queue.js +44 -27
  283. package/daemon/dist/routes/queue.js.map +1 -1
  284. package/daemon/dist/routes/scopes.d.ts.map +1 -1
  285. package/daemon/dist/routes/scopes.js +102 -19
  286. package/daemon/dist/routes/scopes.js.map +1 -1
  287. package/daemon/dist/routes/seat.d.ts.map +1 -1
  288. package/daemon/dist/routes/seat.js +50 -2
  289. package/daemon/dist/routes/seat.js.map +1 -1
  290. package/daemon/dist/routes/sessions.d.ts.map +1 -1
  291. package/daemon/dist/routes/sessions.js +54 -10
  292. package/daemon/dist/routes/sessions.js.map +1 -1
  293. package/daemon/dist/routes/startup.d.ts.map +1 -1
  294. package/daemon/dist/routes/startup.js +116 -18
  295. package/daemon/dist/routes/startup.js.map +1 -1
  296. package/daemon/dist/routes/transport.d.ts.map +1 -1
  297. package/daemon/dist/routes/transport.js +36 -2
  298. package/daemon/dist/routes/transport.js.map +1 -1
  299. package/daemon/dist/routes/watchdog.d.ts.map +1 -1
  300. package/daemon/dist/routes/watchdog.js +7 -1
  301. package/daemon/dist/routes/watchdog.js.map +1 -1
  302. package/daemon/dist/routes/workflow.d.ts.map +1 -1
  303. package/daemon/dist/routes/workflow.js +22 -4
  304. package/daemon/dist/routes/workflow.js.map +1 -1
  305. package/daemon/dist/startup.d.ts.map +1 -1
  306. package/daemon/dist/startup.js +105 -37
  307. package/daemon/dist/startup.js.map +1 -1
  308. package/daemon/docs/reference/agent-startup-guide.md +87 -0
  309. package/daemon/docs/reference/daemon-http-clients.md +1 -0
  310. package/daemon/docs/reference/developing.md +1 -1
  311. package/daemon/docs/reference/gateway-participants.md +5 -3
  312. package/daemon/docs/reference/getting-started.md +9 -8
  313. package/daemon/docs/reference/quickstart.md +2 -2
  314. package/daemon/docs/reference/rig-spec.md +92 -4
  315. package/daemon/docs/reference/rosters.md +26 -0
  316. package/daemon/docs/reference/seat-delivery.md +7 -1
  317. package/daemon/docs/reference/whats-new.md +210 -5
  318. package/dist/build-info.js +3 -3
  319. package/dist/client.d.ts +7 -3
  320. package/dist/client.d.ts.map +1 -1
  321. package/dist/client.js +11 -2
  322. package/dist/client.js.map +1 -1
  323. package/dist/commands/launch.d.ts.map +1 -1
  324. package/dist/commands/launch.js +8 -0
  325. package/dist/commands/launch.js.map +1 -1
  326. package/dist/commands/mcp.d.ts.map +1 -1
  327. package/dist/commands/mcp.js +18 -1
  328. package/dist/commands/mcp.js.map +1 -1
  329. package/dist/commands/ps.d.ts.map +1 -1
  330. package/dist/commands/ps.js +11 -5
  331. package/dist/commands/ps.js.map +1 -1
  332. package/dist/commands/queue.d.ts.map +1 -1
  333. package/dist/commands/queue.js +6 -2
  334. package/dist/commands/queue.js.map +1 -1
  335. package/dist/commands/roster.d.ts +4 -2
  336. package/dist/commands/roster.d.ts.map +1 -1
  337. package/dist/commands/roster.js +2 -2
  338. package/dist/commands/roster.js.map +1 -1
  339. package/dist/commands/seat.d.ts +2 -0
  340. package/dist/commands/seat.d.ts.map +1 -1
  341. package/dist/commands/seat.js +198 -11
  342. package/dist/commands/seat.js.map +1 -1
  343. package/dist/commands/send.d.ts.map +1 -1
  344. package/dist/commands/send.js +31 -6
  345. package/dist/commands/send.js.map +1 -1
  346. package/dist/commands/walk.d.ts.map +1 -1
  347. package/dist/commands/walk.js +4 -0
  348. package/dist/commands/walk.js.map +1 -1
  349. package/dist/commands/workflow.d.ts.map +1 -1
  350. package/dist/commands/workflow.js +25 -1
  351. package/dist/commands/workflow.js.map +1 -1
  352. package/dist/mcp-http.d.ts +3 -0
  353. package/dist/mcp-http.d.ts.map +1 -1
  354. package/dist/mcp-http.js +13 -0
  355. package/dist/mcp-http.js.map +1 -1
  356. package/dist/mcp-server.d.ts +9 -2
  357. package/dist/mcp-server.d.ts.map +1 -1
  358. package/dist/mcp-server.js +243 -64
  359. package/dist/mcp-server.js.map +1 -1
  360. package/package.json +1 -1
  361. package/tui/dist/commands/registry.d.ts.map +1 -1
  362. package/tui/dist/commands/registry.js +1 -0
  363. package/tui/dist/commands/registry.js.map +1 -1
  364. package/tui/dist/crash-cart/start-daemon.d.ts.map +1 -1
  365. package/tui/dist/crash-cart/start-daemon.js +4 -2
  366. package/tui/dist/crash-cart/start-daemon.js.map +1 -1
  367. package/tui/dist/daemon-client.d.ts +9 -0
  368. package/tui/dist/daemon-client.d.ts.map +1 -1
  369. package/tui/dist/daemon-client.js +40 -0
  370. package/tui/dist/daemon-client.js.map +1 -1
  371. package/tui/dist/hydrate.d.ts +1 -1
  372. package/tui/dist/hydrate.d.ts.map +1 -1
  373. package/tui/dist/hydrate.js +12 -0
  374. package/tui/dist/hydrate.js.map +1 -1
  375. package/tui/dist/main.js +3 -0
  376. package/tui/dist/main.js.map +1 -1
  377. package/tui/dist/page-read.d.ts.map +1 -1
  378. package/tui/dist/page-read.js +2 -1
  379. package/tui/dist/page-read.js.map +1 -1
  380. package/tui/dist/render.d.ts.map +1 -1
  381. package/tui/dist/render.js +4 -1
  382. package/tui/dist/render.js.map +1 -1
  383. package/tui/dist/scopes/fleet-scopes-model.d.ts +73 -0
  384. package/tui/dist/scopes/fleet-scopes-model.d.ts.map +1 -0
  385. package/tui/dist/scopes/fleet-scopes-model.js +102 -0
  386. package/tui/dist/scopes/fleet-scopes-model.js.map +1 -0
  387. package/tui/dist/scopes/scopes-model.d.ts +2 -0
  388. package/tui/dist/scopes/scopes-model.d.ts.map +1 -1
  389. package/tui/dist/scopes/scopes-model.js +7 -4
  390. package/tui/dist/scopes/scopes-model.js.map +1 -1
  391. package/tui/dist/sections.d.ts.map +1 -1
  392. package/tui/dist/sections.js +5 -0
  393. package/tui/dist/sections.js.map +1 -1
  394. package/tui/dist/startup.d.ts +5 -0
  395. package/tui/dist/startup.d.ts.map +1 -1
  396. package/tui/dist/startup.js +12 -0
  397. package/tui/dist/startup.js.map +1 -1
  398. package/tui/dist/state.d.ts.map +1 -1
  399. package/tui/dist/state.js +12 -5
  400. package/tui/dist/state.js.map +1 -1
  401. package/tui/dist/types.d.ts +16 -1
  402. package/tui/dist/types.d.ts.map +1 -1
@@ -543,6 +543,7 @@ export class QueueRepository {
543
543
  eventBus;
544
544
  destinationAdvisory;
545
545
  validateRig;
546
+ canRecordDestination;
546
547
  transport;
547
548
  /** W1 (transactional closure): the durable wake-intent store. A terminal act
548
549
  * (handoff / handoff-and-complete) stages an outbox intent row INSIDE its
@@ -610,6 +611,7 @@ export class QueueRepository {
610
611
  this.transitionLog = new QueueTransitionLog(db);
611
612
  this.wakeRepo = new QueueWakeRepository(db);
612
613
  this.validateRig = opts?.validateRig ?? (() => true);
614
+ this.canRecordDestination = opts?.canRecordDestination ?? this.validateRig;
613
615
  this.destinationAdvisory = opts?.destinationAdvisory ?? (() => null);
614
616
  if (opts?.transport)
615
617
  this.attachTransport(opts.transport);
@@ -1663,7 +1665,7 @@ export class QueueRepository {
1663
1665
  // instance. Host identity is added only at the cross-host forwarding boundary
1664
1666
  // (routes/queue.ts stamp-at-FORWARD), and a genuine origin triple arriving from a
1665
1667
  // forward is stored verbatim (never re-stamped, never stripped).
1666
- if (!this.validateRig(input.destinationSession)) {
1668
+ if (!this.canRecordDestination(input.destinationSession)) {
1667
1669
  throw destinationValidationError("destination_session", input.destinationSession, this.loadHumanRegistryFn);
1668
1670
  }
1669
1671
  let wakeStaged = false;
@@ -1765,7 +1767,7 @@ export class QueueRepository {
1765
1767
  * compose with an outer transaction, use create() instead.
1766
1768
  */
1767
1769
  createWithinTransaction(input) {
1768
- if (!this.validateRig(input.destinationSession)) {
1770
+ if (!this.canRecordDestination(input.destinationSession)) {
1769
1771
  throw destinationValidationError("destination_session", input.destinationSession, this.loadHumanRegistryFn);
1770
1772
  }
1771
1773
  const result = this.createInTransactionalContext(input);
@@ -1950,7 +1952,7 @@ export class QueueRepository {
1950
1952
  return registry.ok && resolveRegisteredHumanAddress(destination, registry.entities) !== null;
1951
1953
  }
1952
1954
  /** The registered person an address names, so an ask back reaches them; null for anyone else, the unattributed
1953
- * terminal actor included (it's a person address, but nothing is delivered there). */
1955
+ * terminal actor included (a person address, but a row there asks no one; it waits on Steering and in the Feed, and OpenRig reports it as undeliverable). */
1954
1956
  reachablePerson(address) {
1955
1957
  if (!address || address === UNATTRIBUTED_ACTOR)
1956
1958
  return null;
@@ -2018,7 +2020,7 @@ export class QueueRepository {
2018
2020
  if (isTerminalState(source.state)) {
2019
2021
  throw new QueueRepositoryError("qitem_already_terminal", `qitem ${input.qitemId} is already in terminal state ${source.state}`);
2020
2022
  }
2021
- if (!this.validateRig(input.toSession)) {
2023
+ if (!this.canRecordDestination(input.toSession)) {
2022
2024
  throw destinationValidationError("to_session", input.toSession, this.loadHumanRegistryFn);
2023
2025
  }
2024
2026
  this.assertHumanAlert(input.humanAlert, input.toSession);
@@ -2177,7 +2179,7 @@ export class QueueRepository {
2177
2179
  if (isTerminalState(source.state)) {
2178
2180
  throw new QueueRepositoryError("qitem_already_terminal", `qitem ${input.qitemId} is already in terminal state ${source.state}`);
2179
2181
  }
2180
- if (!this.validateRig(input.toSession)) {
2182
+ if (!this.canRecordDestination(input.toSession)) {
2181
2183
  throw destinationValidationError("to_session", input.toSession, this.loadHumanRegistryFn);
2182
2184
  }
2183
2185
  this.assertHumanAlert(input.humanAlert, input.toSession);
@@ -2683,6 +2685,7 @@ export class QueueRepository {
2683
2685
  }
2684
2686
  const hasNote = typeof input.transitionNote === "string" && input.transitionNote.trim().length > 0;
2685
2687
  const hasValidSummary = typeof input.summary === "string" && input.summary.trim().length > 0;
2688
+ const hasValidEvidenceRef = typeof input.evidenceRef === "string" && input.evidenceRef.trim().length > 0;
2686
2689
  const isGuardedTerminal = ["done", "canceled", "handed-off"].includes(qitem.state);
2687
2690
  const isStatePreservingAppend = input.state === undefined || (isGuardedTerminal && input.state === qitem.state)
2688
2691
  || (hasReestimate && input.state === qitem.state);
@@ -2837,31 +2840,14 @@ export class QueueRepository {
2837
2840
  throw new QueueRepositoryError("invalid_human_notification", "An informational delivery cannot become a human approval park; author a separate decision request.");
2838
2841
  }
2839
2842
  // A park on a person by any address (a legacy human seat, or a registered person's own address or alias) keeps the
2840
- // summary and evidence it names. validateHumanPark still requires them only for the legacy human-seat form.
2843
+ // summary and evidence it names, or the row's own where it names a blank one. validateHumanPark still requires them
2844
+ // only for the legacy human-seat form.
2841
2845
  const isHumanPark = input.state === "blocked" && !!effectiveBlockedOn && this.isPersonAddress(effectiveBlockedOn);
2842
- // A done close can also store the artifact the work produced, so the finished row carries its link.
2843
- const isDoneClose = input.state === "done";
2844
- // OPR.0.5.1 slice-51-06 D2 — summary/evidence_ref are persist-able ONLY at a human-seat park
2845
- // (see the FR-6 note below). Silently ignoring them on any other transition is a data-loss trap
2846
- // (the operator believes the metadata was saved). HARD-REJECT before ANY UPDATE/log/event so the
2847
- // caller learns immediately and nothing is half-applied. null/undefined = absent (allowed);
2848
- // empty string = present (a deliberate value → rejected on a non-park transition).
2849
- if (!isHumanPark) {
2850
- const invalidFields = [];
2851
- if (input.summary != null)
2852
- invalidFields.push("summary");
2853
- if (input.evidenceRef != null && !isDoneClose)
2854
- invalidFields.push("evidenceRef");
2855
- if (invalidFields.length > 0) {
2856
- const flags = invalidFields.map((f) => (f === "summary" ? "--summary" : "--evidence-ref")).join(" / ");
2857
- const where = invalidFields.map((f) => f === "summary"
2858
- ? "summary persists on a human-seat park, or on its own (rig queue update <id> --summary … with no --state)"
2859
- : "evidenceRef persists on a human-seat park or a done close").join("; ");
2860
- throw new QueueRepositoryError("summary_evidence_not_persistable", `${where}; the '${input.state}' transition cannot store ${invalidFields.length > 1 ? "them" : "it"}. Remove ${flags}, or use one of those.`, { invalidFields });
2861
- }
2862
- }
2863
- // SWEEP-a (shape f2576102) — closure/blocked-field COHERENCE, beside the reference
2864
- // reject above: an incoherent field must never silently persist (worse than a drop —
2846
+ // OPR.0.5.1 slice-51-06 D2 refused the whole transition when summary/evidence_ref came with a state it
2847
+ // didn't store them for, so finished work could stay pending over optional metadata. A state change now
2848
+ // stores them (below), except a blank value; the route reports what wasn't stored.
2849
+ // SWEEP-a (shape f2576102) — closure/blocked-field COHERENCE: an incoherent
2850
+ // field must never silently persist (worse than a drop —
2865
2851
  // the COALESCE below would write it). Admits-map, derived from LIVE schema use:
2866
2852
  // closure_reason/closure_target → state "done", OR the PARK-RECORD form
2867
2853
  // (state "blocked" with closureReason "blocked_on" — the workflow gate/park
@@ -2915,8 +2901,8 @@ export class QueueRepository {
2915
2901
  let effectiveSummary = qitem.summary;
2916
2902
  let effectiveEvidenceRef = qitem.evidenceRef;
2917
2903
  if (isHumanPark) {
2918
- effectiveSummary = input.summary ?? qitem.summary;
2919
- effectiveEvidenceRef = input.evidenceRef ?? qitem.evidenceRef;
2904
+ effectiveSummary = hasValidSummary ? input.summary : qitem.summary;
2905
+ effectiveEvidenceRef = hasValidEvidenceRef ? input.evidenceRef : qitem.evidenceRef;
2920
2906
  const park = validateHumanPark({
2921
2907
  blockedOn: effectiveBlockedOn,
2922
2908
  summary: effectiveSummary,
@@ -3023,16 +3009,15 @@ export class QueueRepository {
3023
3009
  resolution = ?
3024
3010
  WHERE qitem_id = ?`)
3025
3011
  .run(input.state, ts, validation.closureReason, validation.closureTarget, input.handedOffTo ?? null, nextBlockedOn, nextResolution, input.qitemId);
3026
- // FR-6: park-time summary/evidence_ref are PERSISTED onto the existing
3027
- // item (not merely validated-then-dropped) — visible to the attention
3028
- // query and to Packet 2. A done close writes evidence_ref the same way.
3029
- if (isHumanPark) {
3030
- this.persistSummary(input.qitemId, input.summary ?? null);
3031
- this.persistEvidenceRef(input.qitemId, input.evidenceRef ?? null);
3032
- }
3033
- else if (isDoneClose) {
3034
- this.persistEvidenceRef(input.qitemId, input.evidenceRef ?? null);
3035
- }
3012
+ // FR-6: summary/evidence_ref are PERSISTED onto the existing item (not
3013
+ // merely validated-then-dropped) — visible to the attention query, to
3014
+ // Packet 2 and to every reader of the row. Only non-blank values are
3015
+ // stored, on a park on a person too: a blank one would erase the row's
3016
+ // subject or evidence link, and the route reports it as not stored.
3017
+ if (hasValidSummary)
3018
+ this.persistSummary(input.qitemId, input.summary);
3019
+ if (hasValidEvidenceRef)
3020
+ this.persistEvidenceRef(input.qitemId, input.evidenceRef);
3036
3021
  const transition = this.transitionLog.append({
3037
3022
  qitemId: input.qitemId,
3038
3023
  state: input.state,
@@ -3114,9 +3099,9 @@ export class QueueRepository {
3114
3099
  closureReason: validation.closureReason ?? null,
3115
3100
  closureTarget: validation.closureTarget ?? null,
3116
3101
  actorSession: input.actorSession,
3117
- // FR-1 × FR-6: the event carries the summary as of THIS mutation
3102
+ // FR-1 × FR-6: the event carries the summary as stored by THIS mutation
3118
3103
  // (park-time summary included) so surfaces refresh without a fetch.
3119
- summary: effectiveSummary ?? null,
3104
+ summary: this.getById(input.qitemId)?.summary ?? null,
3120
3105
  });
3121
3106
  return { persistedEvent, persistedEvents: [...dependentEvents, persistedEvent] };
3122
3107
  }
@@ -3687,9 +3672,11 @@ export class QueueRepository {
3687
3672
  return posted !== null && answered !== null && answered > posted;
3688
3673
  }
3689
3674
  /** A park's current question: its latest human-required transition, and that notification's final post receipt, if any. */
3690
- /** The opaque revision of what a person decides on (#2446): the question (body, intent, questions) and its decision state
3691
- * (open, blocked or terminal; who it's addressed to or parked on; its answers, a decision made for them, the current park,
3692
- * and the replies returned). A label, a wake, a claim or a note on a park doesn't change it; a new park does, on any blocker. */
3675
+ /** The opaque revision of what a person decides on (#2446): the question (body, intent, questions, and the evidence it
3676
+ * points to, when it has any) and its decision state (open, blocked or terminal; who it's addressed to or parked on; its
3677
+ * answers, a decision made for them, the current park, and the replies returned). A label, a wake, a claim or a note on a
3678
+ * park doesn't change it; a new park does, on any blocker, and so does a new evidence pointer. A row with no evidence
3679
+ * keeps the revision it had before evidence counted. */
3693
3680
  decisionRevision(item, opts) {
3694
3681
  const phase = item.state === "blocked" ? "blocked" : item.state === "pending" || item.state === "in-progress" ? "open" : item.state;
3695
3682
  const excludeOp = typeof opts?.excludeOperationReply === "string" && opts.excludeOperationReply.length > 0
@@ -3713,7 +3700,8 @@ export class QueueRepository {
3713
3700
  parkEntry = transitions[i].transitionId;
3714
3701
  }
3715
3702
  const decision = [item.body, item.humanIntent ?? null, item.humanQuestions ?? null, phase, item.destinationSession, item.blockedOn,
3716
- item.humanAnswers ?? null, item.delegatedDecision ?? null, this.currentHumanRequiredEpisode(item.qitemId)?.key ?? null, parkEntry, replies];
3703
+ item.humanAnswers ?? null, item.delegatedDecision ?? null, this.currentHumanRequiredEpisode(item.qitemId)?.key ?? null, parkEntry, replies,
3704
+ ...(item.evidenceRef ? [item.evidenceRef] : [])];
3717
3705
  return `dr1-${createHash("sha256").update(JSON.stringify(decision)).digest("hex").slice(0, 24)}`;
3718
3706
  }
3719
3707
  listRelayOwnerNotificationReceipts(qitemId) {
@@ -4357,8 +4345,8 @@ export class QueueRepository {
4357
4345
  }
4358
4346
  return opts?.compact ? out.map(compactRow) : out;
4359
4347
  }
4360
- /** Read the same address-admission predicate used by queue writes before choosing
4361
- * a recovery owner. Admission does not require a live seat or terminal binding. */
4348
+ /** Existing address preflight for choosing a receiver or recovery owner.
4349
+ * Recordability is separate and does not establish that somebody can receive the work. */
4362
4350
  acceptsDestination(destinationSession) {
4363
4351
  return this.validateRig(destinationSession);
4364
4352
  }