@openrig/cli 0.7.22 → 0.7.23

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 (821) hide show
  1. package/README.md +7 -7
  2. package/daemon/assets/onboarding/01-world-and-purpose.md +2 -1
  3. package/daemon/assets/onboarding/02-self-and-competent-action.md +6 -0
  4. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
  5. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
  6. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
  7. package/daemon/assets/plugins/openrig/plugin.json +1 -1
  8. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  9. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  10. package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +13 -0
  11. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/precompact-hook.mjs +4 -0
  12. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +31 -5
  13. package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +1 -1
  14. package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +32 -6
  15. package/daemon/assets/skills/rigs/SKILL.md +14 -5
  16. package/daemon/context-packs/help/manifest.yaml +1 -1
  17. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  18. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +15 -6
  19. package/daemon/context-packs/reference/acp-agents.md +2 -1
  20. package/daemon/context-packs/reference/getting-started.md +119 -12
  21. package/daemon/context-packs/reference/manifest.yaml +1 -1
  22. package/daemon/context-packs/reference/rig-spec.md +193 -3
  23. package/daemon/context-packs/reference/tmux-servers.md +27 -2
  24. package/daemon/context-packs/reference/whats-new.md +92 -12
  25. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  27. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/claude-compaction-restore/scripts/precompact-hook.mjs +4 -0
  30. package/daemon/context-packs/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +31 -5
  31. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +1 -1
  36. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +3 -3
  37. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  77. package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +32 -6
  78. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  79. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  80. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  81. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  82. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  83. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  84. package/daemon/dist/adapters/claude-code-adapter.d.ts +14 -1
  85. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  86. package/daemon/dist/adapters/claude-code-adapter.js +86 -17
  87. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  88. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  89. package/daemon/dist/adapters/claude-resume.js +8 -4
  90. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  91. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
  92. package/daemon/dist/adapters/community-harness-runtime-adapter.js +19 -4
  93. package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
  94. package/daemon/dist/adapters/seat-slice.d.ts +19 -0
  95. package/daemon/dist/adapters/seat-slice.d.ts.map +1 -0
  96. package/daemon/dist/adapters/seat-slice.js +29 -0
  97. package/daemon/dist/adapters/seat-slice.js.map +1 -0
  98. package/daemon/dist/adapters/shell-quote.d.ts +1 -0
  99. package/daemon/dist/adapters/shell-quote.d.ts.map +1 -1
  100. package/daemon/dist/adapters/shell-quote.js +6 -0
  101. package/daemon/dist/adapters/shell-quote.js.map +1 -1
  102. package/daemon/dist/adapters/tmux.d.ts +32 -8
  103. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  104. package/daemon/dist/adapters/tmux.js +253 -59
  105. package/daemon/dist/adapters/tmux.js.map +1 -1
  106. package/daemon/dist/build-info.js +3 -3
  107. package/daemon/dist/daemon-shutdown.d.ts +5 -0
  108. package/daemon/dist/daemon-shutdown.d.ts.map +1 -1
  109. package/daemon/dist/daemon-shutdown.js +10 -2
  110. package/daemon/dist/daemon-shutdown.js.map +1 -1
  111. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  112. package/daemon/dist/db/all-migrations.js +24 -0
  113. package/daemon/dist/db/all-migrations.js.map +1 -1
  114. package/daemon/dist/db/migrate.d.ts +15 -1
  115. package/daemon/dist/db/migrate.d.ts.map +1 -1
  116. package/daemon/dist/db/migrate.js +41 -6
  117. package/daemon/dist/db/migrate.js.map +1 -1
  118. package/daemon/dist/db/migrations/179_remote_control_observations.d.ts +10 -0
  119. package/daemon/dist/db/migrations/179_remote_control_observations.d.ts.map +1 -0
  120. package/daemon/dist/db/migrations/179_remote_control_observations.js +20 -0
  121. package/daemon/dist/db/migrations/179_remote_control_observations.js.map +1 -0
  122. package/daemon/dist/db/migrations/180_session_stop_attempt.d.ts +5 -0
  123. package/daemon/dist/db/migrations/180_session_stop_attempt.d.ts.map +1 -0
  124. package/daemon/dist/db/migrations/180_session_stop_attempt.js +7 -0
  125. package/daemon/dist/db/migrations/180_session_stop_attempt.js.map +1 -0
  126. package/daemon/dist/db/migrations/181_node_keep_alive.d.ts +8 -0
  127. package/daemon/dist/db/migrations/181_node_keep_alive.d.ts.map +1 -0
  128. package/daemon/dist/db/migrations/181_node_keep_alive.js +26 -0
  129. package/daemon/dist/db/migrations/181_node_keep_alive.js.map +1 -0
  130. package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.d.ts +7 -0
  131. package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.d.ts.map +1 -0
  132. package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.js +11 -0
  133. package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.js.map +1 -0
  134. package/daemon/dist/db/migrations/183_queue_items_scan_indexes.d.ts +8 -0
  135. package/daemon/dist/db/migrations/183_queue_items_scan_indexes.d.ts.map +1 -0
  136. package/daemon/dist/db/migrations/183_queue_items_scan_indexes.js +13 -0
  137. package/daemon/dist/db/migrations/183_queue_items_scan_indexes.js.map +1 -0
  138. package/daemon/dist/db/migrations/184_network_requests.d.ts +11 -0
  139. package/daemon/dist/db/migrations/184_network_requests.d.ts.map +1 -0
  140. package/daemon/dist/db/migrations/184_network_requests.js +32 -0
  141. package/daemon/dist/db/migrations/184_network_requests.js.map +1 -0
  142. package/daemon/dist/db/migrations/185_seat_cold_starts.d.ts +9 -0
  143. package/daemon/dist/db/migrations/185_seat_cold_starts.d.ts.map +1 -0
  144. package/daemon/dist/db/migrations/185_seat_cold_starts.js +19 -0
  145. package/daemon/dist/db/migrations/185_seat_cold_starts.js.map +1 -0
  146. package/daemon/dist/db/migrations/186_queue_relayed_answers.d.ts +3 -0
  147. package/daemon/dist/db/migrations/186_queue_relayed_answers.d.ts.map +1 -0
  148. package/daemon/dist/db/migrations/186_queue_relayed_answers.js +5 -0
  149. package/daemon/dist/db/migrations/186_queue_relayed_answers.js.map +1 -0
  150. package/daemon/dist/db/migrations/189_rig_seat_slice.d.ts +5 -0
  151. package/daemon/dist/db/migrations/189_rig_seat_slice.d.ts.map +1 -0
  152. package/daemon/dist/db/migrations/189_rig_seat_slice.js +7 -0
  153. package/daemon/dist/db/migrations/189_rig_seat_slice.js.map +1 -0
  154. package/daemon/dist/db/migrations/190_queue_transfer_staging.d.ts +3 -0
  155. package/daemon/dist/db/migrations/190_queue_transfer_staging.d.ts.map +1 -0
  156. package/daemon/dist/db/migrations/190_queue_transfer_staging.js +20 -0
  157. package/daemon/dist/db/migrations/190_queue_transfer_staging.js.map +1 -0
  158. package/daemon/dist/db/migrations/191_network_binding_providers.d.ts +3 -0
  159. package/daemon/dist/db/migrations/191_network_binding_providers.d.ts.map +1 -0
  160. package/daemon/dist/db/migrations/191_network_binding_providers.js +27 -0
  161. package/daemon/dist/db/migrations/191_network_binding_providers.js.map +1 -0
  162. package/daemon/dist/db/migrations/194_workflow_run_title.d.ts +4 -0
  163. package/daemon/dist/db/migrations/194_workflow_run_title.d.ts.map +1 -0
  164. package/daemon/dist/db/migrations/194_workflow_run_title.js +6 -0
  165. package/daemon/dist/db/migrations/194_workflow_run_title.js.map +1 -0
  166. package/daemon/dist/domain/activity-taxonomy.d.ts +3 -0
  167. package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
  168. package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
  169. package/daemon/dist/domain/agent-activity-store.d.ts +17 -0
  170. package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
  171. package/daemon/dist/domain/agent-activity-store.js +101 -45
  172. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  173. package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
  174. package/daemon/dist/domain/agent-manifest.js +6 -0
  175. package/daemon/dist/domain/agent-manifest.js.map +1 -1
  176. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +30 -2
  177. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  178. package/daemon/dist/domain/claude-compaction-enforcer.js +53 -12
  179. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  180. package/daemon/dist/domain/compaction-restore-notice.d.ts +12 -1
  181. package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
  182. package/daemon/dist/domain/compaction-restore-notice.js +130 -2
  183. package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
  184. package/daemon/dist/domain/continuity-policy-materializer.d.ts.map +1 -1
  185. package/daemon/dist/domain/continuity-policy-materializer.js +11 -3
  186. package/daemon/dist/domain/continuity-policy-materializer.js.map +1 -1
  187. package/daemon/dist/domain/core-app-job.d.ts +4 -4
  188. package/daemon/dist/domain/core-app-job.d.ts.map +1 -1
  189. package/daemon/dist/domain/core-app-job.js +4 -59
  190. package/daemon/dist/domain/core-app-job.js.map +1 -1
  191. package/daemon/dist/domain/current-work.d.ts +12 -0
  192. package/daemon/dist/domain/current-work.d.ts.map +1 -1
  193. package/daemon/dist/domain/current-work.js +4 -0
  194. package/daemon/dist/domain/current-work.js.map +1 -1
  195. package/daemon/dist/domain/escalation-owner.d.ts +3 -0
  196. package/daemon/dist/domain/escalation-owner.d.ts.map +1 -1
  197. package/daemon/dist/domain/escalation-owner.js +9 -3
  198. package/daemon/dist/domain/escalation-owner.js.map +1 -1
  199. package/daemon/dist/domain/execution-candidate-reader.d.ts +3 -0
  200. package/daemon/dist/domain/execution-candidate-reader.d.ts.map +1 -1
  201. package/daemon/dist/domain/execution-candidate-reader.js +8 -2
  202. package/daemon/dist/domain/execution-candidate-reader.js.map +1 -1
  203. package/daemon/dist/domain/existing-rig-restore.d.ts +2 -0
  204. package/daemon/dist/domain/existing-rig-restore.d.ts.map +1 -1
  205. package/daemon/dist/domain/existing-rig-restore.js +11 -1
  206. package/daemon/dist/domain/existing-rig-restore.js.map +1 -1
  207. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  208. package/daemon/dist/domain/gateway/slack/inbound.js +49 -8
  209. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  210. package/daemon/dist/domain/gateway/slack/message.d.ts +1 -4
  211. package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
  212. package/daemon/dist/domain/gateway/slack/message.js +17 -5
  213. package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
  214. package/daemon/dist/domain/gateway/slack/queue-access.d.ts +7 -1
  215. package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
  216. package/daemon/dist/domain/gateway/slack/queue-access.js +1 -0
  217. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  218. package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -1
  219. package/daemon/dist/domain/gateway/slack/settled-asks.js +15 -2
  220. package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
  221. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +0 -17
  222. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
  223. package/daemon/dist/domain/gateway/slack/slack-delivery.js +10 -40
  224. package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
  225. package/daemon/dist/domain/harness-not-started-notice.d.ts +5 -2
  226. package/daemon/dist/domain/harness-not-started-notice.d.ts.map +1 -1
  227. package/daemon/dist/domain/harness-not-started-notice.js +46 -15
  228. package/daemon/dist/domain/harness-not-started-notice.js.map +1 -1
  229. package/daemon/dist/domain/hosts/read-through.d.ts +1 -1
  230. package/daemon/dist/domain/hosts/read-through.d.ts.map +1 -1
  231. package/daemon/dist/domain/hosts/read-through.js +3 -2
  232. package/daemon/dist/domain/hosts/read-through.js.map +1 -1
  233. package/daemon/dist/domain/hot-potato-enforcer.d.ts +3 -3
  234. package/daemon/dist/domain/hot-potato-enforcer.d.ts.map +1 -1
  235. package/daemon/dist/domain/hot-potato-enforcer.js +2 -2
  236. package/daemon/dist/domain/hot-potato-enforcer.js.map +1 -1
  237. package/daemon/dist/domain/human-questions.d.ts +1 -1
  238. package/daemon/dist/domain/human-questions.d.ts.map +1 -1
  239. package/daemon/dist/domain/human-questions.js +2 -0
  240. package/daemon/dist/domain/human-questions.js.map +1 -1
  241. package/daemon/dist/domain/input-read-diagnostic.js +1 -1
  242. package/daemon/dist/domain/input-read-diagnostic.js.map +1 -1
  243. package/daemon/dist/domain/keep-alive-supervisor.d.ts +178 -0
  244. package/daemon/dist/domain/keep-alive-supervisor.d.ts.map +1 -0
  245. package/daemon/dist/domain/keep-alive-supervisor.js +523 -0
  246. package/daemon/dist/domain/keep-alive-supervisor.js.map +1 -0
  247. package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.d.ts +6 -0
  248. package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.d.ts.map +1 -1
  249. package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.js +38 -9
  250. package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.js.map +1 -1
  251. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  252. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +29 -1
  253. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  254. package/daemon/dist/domain/mutation-trace.d.ts +28 -0
  255. package/daemon/dist/domain/mutation-trace.d.ts.map +1 -0
  256. package/daemon/dist/domain/mutation-trace.js +38 -0
  257. package/daemon/dist/domain/mutation-trace.js.map +1 -0
  258. package/daemon/dist/domain/native-resume-probe.d.ts +13 -3
  259. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  260. package/daemon/dist/domain/native-resume-probe.js +54 -17
  261. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  262. package/daemon/dist/domain/network/hub-client.d.ts +30 -1
  263. package/daemon/dist/domain/network/hub-client.d.ts.map +1 -1
  264. package/daemon/dist/domain/network/hub-client.js +62 -9
  265. package/daemon/dist/domain/network/hub-client.js.map +1 -1
  266. package/daemon/dist/domain/network/network-bindings.d.ts +52 -2
  267. package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -1
  268. package/daemon/dist/domain/network/network-bindings.js +217 -23
  269. package/daemon/dist/domain/network/network-bindings.js.map +1 -1
  270. package/daemon/dist/domain/network/network-connector.d.ts +9 -1
  271. package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
  272. package/daemon/dist/domain/network/network-connector.js +95 -7
  273. package/daemon/dist/domain/network/network-connector.js.map +1 -1
  274. package/daemon/dist/domain/network/network-installations.d.ts.map +1 -1
  275. package/daemon/dist/domain/network/network-installations.js +22 -7
  276. package/daemon/dist/domain/network/network-installations.js.map +1 -1
  277. package/daemon/dist/domain/network/network-provider-removal.d.ts +9 -0
  278. package/daemon/dist/domain/network/network-provider-removal.d.ts.map +1 -0
  279. package/daemon/dist/domain/network/network-provider-removal.js +75 -0
  280. package/daemon/dist/domain/network/network-provider-removal.js.map +1 -0
  281. package/daemon/dist/domain/network/network-requests.d.ts +59 -0
  282. package/daemon/dist/domain/network/network-requests.d.ts.map +1 -0
  283. package/daemon/dist/domain/network/network-requests.js +476 -0
  284. package/daemon/dist/domain/network/network-requests.js.map +1 -0
  285. package/daemon/dist/domain/node-inventory.d.ts +26 -0
  286. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  287. package/daemon/dist/domain/node-inventory.js +87 -7
  288. package/daemon/dist/domain/node-inventory.js.map +1 -1
  289. package/daemon/dist/domain/occupant-invalidator.d.ts +1 -1
  290. package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
  291. package/daemon/dist/domain/occupant-invalidator.js +1 -1
  292. package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
  293. package/daemon/dist/domain/outbox-handler.d.ts +11 -0
  294. package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
  295. package/daemon/dist/domain/outbox-handler.js +20 -0
  296. package/daemon/dist/domain/outbox-handler.js.map +1 -1
  297. package/daemon/dist/domain/parked-query.d.ts +6 -0
  298. package/daemon/dist/domain/parked-query.d.ts.map +1 -1
  299. package/daemon/dist/domain/parked-query.js +14 -4
  300. package/daemon/dist/domain/parked-query.js.map +1 -1
  301. package/daemon/dist/domain/policies/seat-pool.d.ts +13 -0
  302. package/daemon/dist/domain/policies/seat-pool.d.ts.map +1 -1
  303. package/daemon/dist/domain/policies/seat-pool.js +18 -3
  304. package/daemon/dist/domain/policies/seat-pool.js.map +1 -1
  305. package/daemon/dist/domain/profile-resolver.d.ts +7 -1
  306. package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
  307. package/daemon/dist/domain/profile-resolver.js +7 -0
  308. package/daemon/dist/domain/profile-resolver.js.map +1 -1
  309. package/daemon/dist/domain/progress/progress-indexer.d.ts.map +1 -1
  310. package/daemon/dist/domain/progress/progress-indexer.js +11 -0
  311. package/daemon/dist/domain/progress/progress-indexer.js.map +1 -1
  312. package/daemon/dist/domain/project-lifecycle-compiler.d.ts.map +1 -1
  313. package/daemon/dist/domain/project-lifecycle-compiler.js +4 -1
  314. package/daemon/dist/domain/project-lifecycle-compiler.js.map +1 -1
  315. package/daemon/dist/domain/proof/judgments.d.ts +3 -0
  316. package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
  317. package/daemon/dist/domain/proof/judgments.js +13 -3
  318. package/daemon/dist/domain/proof/judgments.js.map +1 -1
  319. package/daemon/dist/domain/proof/source-watch.js +4 -4
  320. package/daemon/dist/domain/proof/source-watch.js.map +1 -1
  321. package/daemon/dist/domain/provider/claude-interruption.d.ts +6 -0
  322. package/daemon/dist/domain/provider/claude-interruption.d.ts.map +1 -1
  323. package/daemon/dist/domain/provider/claude-interruption.js +18 -0
  324. package/daemon/dist/domain/provider/claude-interruption.js.map +1 -1
  325. package/daemon/dist/domain/ps-projection.d.ts +8 -1
  326. package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
  327. package/daemon/dist/domain/ps-projection.js +11 -3
  328. package/daemon/dist/domain/ps-projection.js.map +1 -1
  329. package/daemon/dist/domain/queue-erasure.d.ts +3 -0
  330. package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
  331. package/daemon/dist/domain/queue-erasure.js +2 -2
  332. package/daemon/dist/domain/queue-erasure.js.map +1 -1
  333. package/daemon/dist/domain/queue-owner.d.ts +5 -0
  334. package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
  335. package/daemon/dist/domain/queue-owner.js +16 -8
  336. package/daemon/dist/domain/queue-owner.js.map +1 -1
  337. package/daemon/dist/domain/queue-recorded-graph.d.ts +32 -0
  338. package/daemon/dist/domain/queue-recorded-graph.d.ts.map +1 -0
  339. package/daemon/dist/domain/queue-recorded-graph.js +84 -0
  340. package/daemon/dist/domain/queue-recorded-graph.js.map +1 -0
  341. package/daemon/dist/domain/queue-repository.d.ts +74 -4
  342. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  343. package/daemon/dist/domain/queue-repository.js +398 -25
  344. package/daemon/dist/domain/queue-repository.js.map +1 -1
  345. package/daemon/dist/domain/queue-retention.d.ts +1 -1
  346. package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
  347. package/daemon/dist/domain/queue-retention.js +4 -0
  348. package/daemon/dist/domain/queue-retention.js.map +1 -1
  349. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  350. package/daemon/dist/domain/queue-stuck-sweep.js +43 -9
  351. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  352. package/daemon/dist/domain/queue-transfer-export.d.ts +75 -0
  353. package/daemon/dist/domain/queue-transfer-export.d.ts.map +1 -0
  354. package/daemon/dist/domain/queue-transfer-export.js +156 -0
  355. package/daemon/dist/domain/queue-transfer-export.js.map +1 -0
  356. package/daemon/dist/domain/queue-transfer-format.d.ts +15 -0
  357. package/daemon/dist/domain/queue-transfer-format.d.ts.map +1 -0
  358. package/daemon/dist/domain/queue-transfer-format.js +32 -0
  359. package/daemon/dist/domain/queue-transfer-format.js.map +1 -0
  360. package/daemon/dist/domain/queue-transfer-parse.d.ts +40 -0
  361. package/daemon/dist/domain/queue-transfer-parse.d.ts.map +1 -0
  362. package/daemon/dist/domain/queue-transfer-parse.js +131 -0
  363. package/daemon/dist/domain/queue-transfer-parse.js.map +1 -0
  364. package/daemon/dist/domain/queue-transfer-review.d.ts +22 -0
  365. package/daemon/dist/domain/queue-transfer-review.d.ts.map +1 -0
  366. package/daemon/dist/domain/queue-transfer-review.js +81 -0
  367. package/daemon/dist/domain/queue-transfer-review.js.map +1 -0
  368. package/daemon/dist/domain/queue-transfer-staging.d.ts +79 -0
  369. package/daemon/dist/domain/queue-transfer-staging.d.ts.map +1 -0
  370. package/daemon/dist/domain/queue-transfer-staging.js +67 -0
  371. package/daemon/dist/domain/queue-transfer-staging.js.map +1 -0
  372. package/daemon/dist/domain/queue-wake-ladder.d.ts +4 -0
  373. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  374. package/daemon/dist/domain/queue-wake-ladder.js +161 -20
  375. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  376. package/daemon/dist/domain/reconciler.d.ts +27 -2
  377. package/daemon/dist/domain/reconciler.d.ts.map +1 -1
  378. package/daemon/dist/domain/reconciler.js +184 -16
  379. package/daemon/dist/domain/reconciler.js.map +1 -1
  380. package/daemon/dist/domain/refusal-trace.d.ts +15 -0
  381. package/daemon/dist/domain/refusal-trace.d.ts.map +1 -0
  382. package/daemon/dist/domain/refusal-trace.js +23 -0
  383. package/daemon/dist/domain/refusal-trace.js.map +1 -0
  384. package/daemon/dist/domain/relayed-answers.d.ts +80 -0
  385. package/daemon/dist/domain/relayed-answers.d.ts.map +1 -0
  386. package/daemon/dist/domain/relayed-answers.js +8 -0
  387. package/daemon/dist/domain/relayed-answers.js.map +1 -0
  388. package/daemon/dist/domain/remote-control-observations.d.ts +50 -0
  389. package/daemon/dist/domain/remote-control-observations.d.ts.map +1 -0
  390. package/daemon/dist/domain/remote-control-observations.js +72 -0
  391. package/daemon/dist/domain/remote-control-observations.js.map +1 -0
  392. package/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -1
  393. package/daemon/dist/domain/restore-attempt-receipt.js +8 -2
  394. package/daemon/dist/domain/restore-attempt-receipt.js.map +1 -1
  395. package/daemon/dist/domain/restore-orchestrator.d.ts +67 -6
  396. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  397. package/daemon/dist/domain/restore-orchestrator.js +345 -51
  398. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  399. package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
  400. package/daemon/dist/domain/rig-lifecycle-service.js +4 -1
  401. package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
  402. package/daemon/dist/domain/rig-repository.d.ts +21 -3
  403. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  404. package/daemon/dist/domain/rig-repository.js +67 -2
  405. package/daemon/dist/domain/rig-repository.js.map +1 -1
  406. package/daemon/dist/domain/rig-teardown.d.ts +22 -7
  407. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  408. package/daemon/dist/domain/rig-teardown.js +108 -24
  409. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  410. package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
  411. package/daemon/dist/domain/rigspec-codec.js +12 -0
  412. package/daemon/dist/domain/rigspec-codec.js.map +1 -1
  413. package/daemon/dist/domain/rigspec-exporter.d.ts +14 -0
  414. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  415. package/daemon/dist/domain/rigspec-exporter.js +56 -14
  416. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  417. package/daemon/dist/domain/rigspec-instantiator.d.ts +32 -3
  418. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  419. package/daemon/dist/domain/rigspec-instantiator.js +121 -23
  420. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  421. package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  422. package/daemon/dist/domain/rigspec-schema.js +30 -4
  423. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  424. package/daemon/dist/domain/rosters.d.ts +1 -0
  425. package/daemon/dist/domain/rosters.d.ts.map +1 -1
  426. package/daemon/dist/domain/rosters.js +5 -4
  427. package/daemon/dist/domain/rosters.js.map +1 -1
  428. package/daemon/dist/domain/seat-activity-service.d.ts +4 -0
  429. package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
  430. package/daemon/dist/domain/seat-activity-service.js +24 -5
  431. package/daemon/dist/domain/seat-activity-service.js.map +1 -1
  432. package/daemon/dist/domain/seat-attention-reconciler.d.ts +7 -0
  433. package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
  434. package/daemon/dist/domain/seat-attention-reconciler.js +149 -65
  435. package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
  436. package/daemon/dist/domain/seat-cold-start.d.ts +150 -0
  437. package/daemon/dist/domain/seat-cold-start.d.ts.map +1 -0
  438. package/daemon/dist/domain/seat-cold-start.js +371 -0
  439. package/daemon/dist/domain/seat-cold-start.js.map +1 -0
  440. package/daemon/dist/domain/seat-delivery-guard.d.ts +11 -2
  441. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  442. package/daemon/dist/domain/seat-delivery-guard.js +34 -6
  443. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  444. package/daemon/dist/domain/seat-identity-reconciler.d.ts +13 -0
  445. package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
  446. package/daemon/dist/domain/seat-identity-reconciler.js +63 -23
  447. package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
  448. package/daemon/dist/domain/seat-identity-store.d.ts +5 -3
  449. package/daemon/dist/domain/seat-identity-store.d.ts.map +1 -1
  450. package/daemon/dist/domain/seat-identity-store.js +7 -3
  451. package/daemon/dist/domain/seat-identity-store.js.map +1 -1
  452. package/daemon/dist/domain/seat-launch-environment.d.ts +2 -0
  453. package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
  454. package/daemon/dist/domain/seat-launch-environment.js +9 -1
  455. package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
  456. package/daemon/dist/domain/seat-lifecycle-service.d.ts +17 -0
  457. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  458. package/daemon/dist/domain/seat-lifecycle-service.js +176 -22
  459. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  460. package/daemon/dist/domain/seat-pool-executor.d.ts +116 -0
  461. package/daemon/dist/domain/seat-pool-executor.d.ts.map +1 -0
  462. package/daemon/dist/domain/seat-pool-executor.js +565 -0
  463. package/daemon/dist/domain/seat-pool-executor.js.map +1 -0
  464. package/daemon/dist/domain/seat-pool-registration.d.ts +93 -0
  465. package/daemon/dist/domain/seat-pool-registration.d.ts.map +1 -0
  466. package/daemon/dist/domain/seat-pool-registration.js +149 -0
  467. package/daemon/dist/domain/seat-pool-registration.js.map +1 -0
  468. package/daemon/dist/domain/seat-pool-slots.d.ts +42 -0
  469. package/daemon/dist/domain/seat-pool-slots.d.ts.map +1 -1
  470. package/daemon/dist/domain/seat-pool-slots.js +51 -0
  471. package/daemon/dist/domain/seat-pool-slots.js.map +1 -1
  472. package/daemon/dist/domain/seat-restart-in-place.d.ts +15 -0
  473. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  474. package/daemon/dist/domain/seat-restart-in-place.js +54 -2
  475. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  476. package/daemon/dist/domain/seat-runtime-home-record.d.ts +8 -0
  477. package/daemon/dist/domain/seat-runtime-home-record.d.ts.map +1 -1
  478. package/daemon/dist/domain/seat-runtime-home-record.js +1 -1
  479. package/daemon/dist/domain/seat-runtime-home-record.js.map +1 -1
  480. package/daemon/dist/domain/session-registry.d.ts +22 -3
  481. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  482. package/daemon/dist/domain/session-registry.js +38 -6
  483. package/daemon/dist/domain/session-registry.js.map +1 -1
  484. package/daemon/dist/domain/session-transport.d.ts +18 -2
  485. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  486. package/daemon/dist/domain/session-transport.js +65 -38
  487. package/daemon/dist/domain/session-transport.js.map +1 -1
  488. package/daemon/dist/domain/slices/slice-indexer.d.ts +55 -0
  489. package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
  490. package/daemon/dist/domain/slices/slice-indexer.js +259 -50
  491. package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
  492. package/daemon/dist/domain/startup-orchestrator.d.ts +1 -1
  493. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  494. package/daemon/dist/domain/startup-orchestrator.js +75 -23
  495. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  496. package/daemon/dist/domain/startup-proof.d.ts +6 -0
  497. package/daemon/dist/domain/startup-proof.d.ts.map +1 -1
  498. package/daemon/dist/domain/startup-proof.js +11 -0
  499. package/daemon/dist/domain/startup-proof.js.map +1 -1
  500. package/daemon/dist/domain/startup-submission-evidence.d.ts +2 -0
  501. package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
  502. package/daemon/dist/domain/startup-submission-evidence.js +31 -3
  503. package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
  504. package/daemon/dist/domain/terminal/herdr-adapter.d.ts +2 -0
  505. package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
  506. package/daemon/dist/domain/terminal/herdr-adapter.js +2 -0
  507. package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
  508. package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts +2 -1
  509. package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts.map +1 -1
  510. package/daemon/dist/domain/terminal/scope-task-terminal-view.js +80 -38
  511. package/daemon/dist/domain/terminal/scope-task-terminal-view.js.map +1 -1
  512. package/daemon/dist/domain/terminal/terminal-provider.d.ts +2 -0
  513. package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
  514. package/daemon/dist/domain/terminal/terminal-service.d.ts +3 -0
  515. package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
  516. package/daemon/dist/domain/terminal/terminal-service.js +30 -26
  517. package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
  518. package/daemon/dist/domain/terminal/tile-attach.d.ts +22 -0
  519. package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
  520. package/daemon/dist/domain/terminal/tile-attach.js +71 -0
  521. package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
  522. package/daemon/dist/domain/terminal/view-composer.d.ts +2 -0
  523. package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
  524. package/daemon/dist/domain/terminal/view-composer.js +4 -2
  525. package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
  526. package/daemon/dist/domain/topology-trace.d.ts +40 -0
  527. package/daemon/dist/domain/topology-trace.d.ts.map +1 -0
  528. package/daemon/dist/domain/topology-trace.js +106 -0
  529. package/daemon/dist/domain/topology-trace.js.map +1 -0
  530. package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
  531. package/daemon/dist/domain/transcript-store.js +12 -1
  532. package/daemon/dist/domain/transcript-store.js.map +1 -1
  533. package/daemon/dist/domain/types.d.ts +104 -8
  534. package/daemon/dist/domain/types.d.ts.map +1 -1
  535. package/daemon/dist/domain/types.js +3 -2
  536. package/daemon/dist/domain/types.js.map +1 -1
  537. package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
  538. package/daemon/dist/domain/user-settings/settings-browser.js +2 -0
  539. package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
  540. package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
  541. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  542. package/daemon/dist/domain/user-settings/settings-store.js +13 -0
  543. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  544. package/daemon/dist/domain/watchdog-jobs-repository.d.ts +5 -3
  545. package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
  546. package/daemon/dist/domain/watchdog-jobs-repository.js +6 -1
  547. package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
  548. package/daemon/dist/domain/watchdog-policy-engine.d.ts +8 -1
  549. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  550. package/daemon/dist/domain/watchdog-policy-engine.js +6 -2
  551. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  552. package/daemon/dist/domain/workflow-instance-store.d.ts +2 -0
  553. package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
  554. package/daemon/dist/domain/workflow-instance-store.js +11 -2
  555. package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
  556. package/daemon/dist/domain/workflow-projector.d.ts +3 -1
  557. package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
  558. package/daemon/dist/domain/workflow-projector.js +58 -10
  559. package/daemon/dist/domain/workflow-projector.js.map +1 -1
  560. package/daemon/dist/domain/workflow-run-title.d.ts +4 -0
  561. package/daemon/dist/domain/workflow-run-title.d.ts.map +1 -0
  562. package/daemon/dist/domain/workflow-run-title.js +5 -0
  563. package/daemon/dist/domain/workflow-run-title.js.map +1 -0
  564. package/daemon/dist/domain/workflow-runtime.d.ts +1 -0
  565. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  566. package/daemon/dist/domain/workflow-runtime.js +3 -1
  567. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  568. package/daemon/dist/domain/workflow-spec-cache.d.ts +2 -2
  569. package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
  570. package/daemon/dist/domain/workflow-spec-cache.js +20 -1
  571. package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
  572. package/daemon/dist/domain/workflow-types.d.ts +15 -0
  573. package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
  574. package/daemon/dist/domain/workflow-types.js +4 -0
  575. package/daemon/dist/domain/workflow-types.js.map +1 -1
  576. package/daemon/dist/domain/workspace/project-read.d.ts +10 -0
  577. package/daemon/dist/domain/workspace/project-read.d.ts.map +1 -1
  578. package/daemon/dist/domain/workspace/project-read.js +34 -2
  579. package/daemon/dist/domain/workspace/project-read.js.map +1 -1
  580. package/daemon/dist/index.d.ts.map +1 -1
  581. package/daemon/dist/index.js +7 -1
  582. package/daemon/dist/index.js.map +1 -1
  583. package/daemon/dist/queue-transfer-export-surface.d.ts +33 -0
  584. package/daemon/dist/queue-transfer-export-surface.d.ts.map +1 -0
  585. package/daemon/dist/queue-transfer-export-surface.js +13 -0
  586. package/daemon/dist/queue-transfer-export-surface.js.map +1 -0
  587. package/daemon/dist/queue-transfer-staging-surface.d.ts +86 -0
  588. package/daemon/dist/queue-transfer-staging-surface.d.ts.map +1 -0
  589. package/daemon/dist/queue-transfer-staging-surface.js +91 -0
  590. package/daemon/dist/queue-transfer-staging-surface.js.map +1 -0
  591. package/daemon/dist/routes/activity.d.ts.map +1 -1
  592. package/daemon/dist/routes/activity.js +46 -0
  593. package/daemon/dist/routes/activity.js.map +1 -1
  594. package/daemon/dist/routes/compaction.d.ts.map +1 -1
  595. package/daemon/dist/routes/compaction.js +7 -2
  596. package/daemon/dist/routes/compaction.js.map +1 -1
  597. package/daemon/dist/routes/context-packs.d.ts.map +1 -1
  598. package/daemon/dist/routes/context-packs.js +23 -1
  599. package/daemon/dist/routes/context-packs.js.map +1 -1
  600. package/daemon/dist/routes/events.js +7 -4
  601. package/daemon/dist/routes/events.js.map +1 -1
  602. package/daemon/dist/routes/network.d.ts +2 -0
  603. package/daemon/dist/routes/network.d.ts.map +1 -1
  604. package/daemon/dist/routes/network.js +62 -1
  605. package/daemon/dist/routes/network.js.map +1 -1
  606. package/daemon/dist/routes/ps.js +12 -1
  607. package/daemon/dist/routes/ps.js.map +1 -1
  608. package/daemon/dist/routes/queue.d.ts.map +1 -1
  609. package/daemon/dist/routes/queue.js +155 -52
  610. package/daemon/dist/routes/queue.js.map +1 -1
  611. package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
  612. package/daemon/dist/routes/require-sender-identity.js +6 -3
  613. package/daemon/dist/routes/require-sender-identity.js.map +1 -1
  614. package/daemon/dist/routes/rigs.js +2 -0
  615. package/daemon/dist/routes/rigs.js.map +1 -1
  616. package/daemon/dist/routes/seat.d.ts.map +1 -1
  617. package/daemon/dist/routes/seat.js +12 -5
  618. package/daemon/dist/routes/seat.js.map +1 -1
  619. package/daemon/dist/routes/sessions.d.ts.map +1 -1
  620. package/daemon/dist/routes/sessions.js +14 -0
  621. package/daemon/dist/routes/sessions.js.map +1 -1
  622. package/daemon/dist/routes/slices.d.ts.map +1 -1
  623. package/daemon/dist/routes/slices.js +16 -7
  624. package/daemon/dist/routes/slices.js.map +1 -1
  625. package/daemon/dist/routes/startup.d.ts.map +1 -1
  626. package/daemon/dist/routes/startup.js +49 -4
  627. package/daemon/dist/routes/startup.js.map +1 -1
  628. package/daemon/dist/routes/terminal-ws.js +28 -2
  629. package/daemon/dist/routes/terminal-ws.js.map +1 -1
  630. package/daemon/dist/routes/terminal.d.ts.map +1 -1
  631. package/daemon/dist/routes/terminal.js +3 -2
  632. package/daemon/dist/routes/terminal.js.map +1 -1
  633. package/daemon/dist/routes/transport.d.ts.map +1 -1
  634. package/daemon/dist/routes/transport.js +14 -2
  635. package/daemon/dist/routes/transport.js.map +1 -1
  636. package/daemon/dist/routes/up.js +2 -0
  637. package/daemon/dist/routes/up.js.map +1 -1
  638. package/daemon/dist/routes/workflow.d.ts.map +1 -1
  639. package/daemon/dist/routes/workflow.js +9 -3
  640. package/daemon/dist/routes/workflow.js.map +1 -1
  641. package/daemon/dist/server.d.ts +7 -0
  642. package/daemon/dist/server.d.ts.map +1 -1
  643. package/daemon/dist/server.js +8 -0
  644. package/daemon/dist/server.js.map +1 -1
  645. package/daemon/dist/startup.d.ts +3 -0
  646. package/daemon/dist/startup.d.ts.map +1 -1
  647. package/daemon/dist/startup.js +133 -7
  648. package/daemon/dist/startup.js.map +1 -1
  649. package/daemon/dist/terminal/TerminalSessionBroker.d.ts +10 -0
  650. package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
  651. package/daemon/dist/terminal/TerminalSessionBroker.js +63 -4
  652. package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
  653. package/daemon/dist/topology-trace-surface.d.ts +2 -0
  654. package/daemon/dist/topology-trace-surface.d.ts.map +1 -0
  655. package/daemon/dist/topology-trace-surface.js +2 -0
  656. package/daemon/dist/topology-trace-surface.js.map +1 -0
  657. package/daemon/docs/reference/acp-agents.md +2 -1
  658. package/daemon/docs/reference/agent-spec.md +3 -1
  659. package/daemon/docs/reference/agent-startup-guide.md +3 -1
  660. package/daemon/docs/reference/agent-state-taxonomy.md +35 -1
  661. package/daemon/docs/reference/checked-seat-stop.md +11 -1
  662. package/daemon/docs/reference/claude-status-line.md +7 -0
  663. package/daemon/docs/reference/daemon-http-clients.md +120 -18
  664. package/daemon/docs/reference/gateway-participants.md +6 -0
  665. package/daemon/docs/reference/getting-started.md +119 -12
  666. package/daemon/docs/reference/hosted-members.md +114 -0
  667. package/daemon/docs/reference/inventory-request-diagnostics.md +22 -0
  668. package/daemon/docs/reference/network-connector.md +112 -4
  669. package/daemon/docs/reference/project-workspace.md +11 -2
  670. package/daemon/docs/reference/queue-erasure.md +1 -1
  671. package/daemon/docs/reference/queue-transfer-export.md +38 -0
  672. package/daemon/docs/reference/queue-transfer-staging.md +39 -0
  673. package/daemon/docs/reference/quickstart.md +4 -4
  674. package/daemon/docs/reference/refocus-channel.md +5 -2
  675. package/daemon/docs/reference/rig-spec.md +193 -3
  676. package/daemon/docs/reference/rosters.md +18 -3
  677. package/daemon/docs/reference/sdlc-conventions.md +1 -1
  678. package/daemon/docs/reference/seat-delivery.md +21 -4
  679. package/daemon/docs/reference/seat-pools.md +116 -0
  680. package/daemon/docs/reference/terminal-sessions.md +57 -11
  681. package/daemon/docs/reference/tmux-servers.md +27 -2
  682. package/daemon/docs/reference/whats-new.md +92 -12
  683. package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +1 -1
  684. package/dist/build-info.js +3 -3
  685. package/dist/client.d.ts +2 -1
  686. package/dist/client.d.ts.map +1 -1
  687. package/dist/commands/broadcast.d.ts.map +1 -1
  688. package/dist/commands/broadcast.js +87 -8
  689. package/dist/commands/broadcast.js.map +1 -1
  690. package/dist/commands/chatroom.d.ts +3 -0
  691. package/dist/commands/chatroom.d.ts.map +1 -1
  692. package/dist/commands/chatroom.js +7 -1
  693. package/dist/commands/chatroom.js.map +1 -1
  694. package/dist/commands/config.d.ts.map +1 -1
  695. package/dist/commands/config.js +2 -1
  696. package/dist/commands/config.js.map +1 -1
  697. package/dist/commands/daemon.d.ts.map +1 -1
  698. package/dist/commands/daemon.js +18 -15
  699. package/dist/commands/daemon.js.map +1 -1
  700. package/dist/commands/exec.d.ts.map +1 -1
  701. package/dist/commands/exec.js +22 -13
  702. package/dist/commands/exec.js.map +1 -1
  703. package/dist/commands/export.d.ts.map +1 -1
  704. package/dist/commands/export.js +5 -1
  705. package/dist/commands/export.js.map +1 -1
  706. package/dist/commands/gateway.d.ts +4 -0
  707. package/dist/commands/gateway.d.ts.map +1 -1
  708. package/dist/commands/gateway.js +37 -0
  709. package/dist/commands/gateway.js.map +1 -1
  710. package/dist/commands/network.d.ts.map +1 -1
  711. package/dist/commands/network.js +54 -1
  712. package/dist/commands/network.js.map +1 -1
  713. package/dist/commands/parked.d.ts.map +1 -1
  714. package/dist/commands/parked.js +12 -6
  715. package/dist/commands/parked.js.map +1 -1
  716. package/dist/commands/provider.d.ts.map +1 -1
  717. package/dist/commands/provider.js +3 -2
  718. package/dist/commands/provider.js.map +1 -1
  719. package/dist/commands/ps.d.ts +12 -1
  720. package/dist/commands/ps.d.ts.map +1 -1
  721. package/dist/commands/ps.js +43 -10
  722. package/dist/commands/ps.js.map +1 -1
  723. package/dist/commands/queue-export.d.ts +3 -0
  724. package/dist/commands/queue-export.d.ts.map +1 -0
  725. package/dist/commands/queue-export.js +67 -0
  726. package/dist/commands/queue-export.js.map +1 -0
  727. package/dist/commands/queue-import.d.ts +4 -0
  728. package/dist/commands/queue-import.d.ts.map +1 -0
  729. package/dist/commands/queue-import.js +47 -0
  730. package/dist/commands/queue-import.js.map +1 -0
  731. package/dist/commands/queue.d.ts +1 -1
  732. package/dist/commands/queue.d.ts.map +1 -1
  733. package/dist/commands/queue.js +50 -1
  734. package/dist/commands/queue.js.map +1 -1
  735. package/dist/commands/roster.js +1 -1
  736. package/dist/commands/roster.js.map +1 -1
  737. package/dist/commands/scope.d.ts.map +1 -1
  738. package/dist/commands/scope.js +30 -18
  739. package/dist/commands/scope.js.map +1 -1
  740. package/dist/commands/seat.d.ts.map +1 -1
  741. package/dist/commands/seat.js +20 -2
  742. package/dist/commands/seat.js.map +1 -1
  743. package/dist/commands/send.d.ts.map +1 -1
  744. package/dist/commands/send.js +15 -3
  745. package/dist/commands/send.js.map +1 -1
  746. package/dist/commands/start.d.ts +14 -0
  747. package/dist/commands/start.d.ts.map +1 -1
  748. package/dist/commands/start.js +54 -5
  749. package/dist/commands/start.js.map +1 -1
  750. package/dist/commands/workflow.d.ts.map +1 -1
  751. package/dist/commands/workflow.js +4 -0
  752. package/dist/commands/workflow.js.map +1 -1
  753. package/dist/config-store.d.ts +2 -1
  754. package/dist/config-store.d.ts.map +1 -1
  755. package/dist/config-store.js +14 -1
  756. package/dist/config-store.js.map +1 -1
  757. package/dist/cross-host-executor.d.ts +3 -0
  758. package/dist/cross-host-executor.d.ts.map +1 -1
  759. package/dist/cross-host-executor.js +5 -0
  760. package/dist/cross-host-executor.js.map +1 -1
  761. package/dist/daemon-auto-start.d.ts.map +1 -1
  762. package/dist/daemon-auto-start.js +1 -0
  763. package/dist/daemon-auto-start.js.map +1 -1
  764. package/dist/daemon-lifecycle.d.ts +6 -1
  765. package/dist/daemon-lifecycle.d.ts.map +1 -1
  766. package/dist/daemon-lifecycle.js +90 -30
  767. package/dist/daemon-lifecycle.js.map +1 -1
  768. package/dist/daemon-start-lock.d.ts +38 -3
  769. package/dist/daemon-start-lock.d.ts.map +1 -1
  770. package/dist/daemon-start-lock.js +201 -48
  771. package/dist/daemon-start-lock.js.map +1 -1
  772. package/dist/lib/scope/progress-edit.d.ts.map +1 -1
  773. package/dist/lib/scope/progress-edit.js +10 -0
  774. package/dist/lib/scope/progress-edit.js.map +1 -1
  775. package/dist/lib/topology-trace.d.ts +3 -34
  776. package/dist/lib/topology-trace.d.ts.map +1 -1
  777. package/dist/lib/topology-trace.js +3 -97
  778. package/dist/lib/topology-trace.js.map +1 -1
  779. package/dist/local-db.d.ts +2 -0
  780. package/dist/local-db.d.ts.map +1 -1
  781. package/dist/local-db.js +14 -11
  782. package/dist/local-db.js.map +1 -1
  783. package/dist/mcp-caller-resolver.d.ts +36 -0
  784. package/dist/mcp-caller-resolver.d.ts.map +1 -0
  785. package/dist/mcp-caller-resolver.js +82 -0
  786. package/dist/mcp-caller-resolver.js.map +1 -0
  787. package/dist/mcp-http.d.ts +43 -2
  788. package/dist/mcp-http.d.ts.map +1 -1
  789. package/dist/mcp-http.js +223 -46
  790. package/dist/mcp-http.js.map +1 -1
  791. package/dist/mcp-server.d.ts +23 -0
  792. package/dist/mcp-server.d.ts.map +1 -1
  793. package/dist/mcp-server.js +108 -39
  794. package/dist/mcp-server.js.map +1 -1
  795. package/dist/mcp-surface.d.ts +3 -2
  796. package/dist/mcp-surface.d.ts.map +1 -1
  797. package/dist/node-support.d.ts.map +1 -1
  798. package/dist/node-support.js +10 -0
  799. package/dist/node-support.js.map +1 -1
  800. package/dist/remote-host-ops.d.ts +3 -0
  801. package/dist/remote-host-ops.d.ts.map +1 -1
  802. package/dist/remote-host-ops.js +15 -1
  803. package/dist/remote-host-ops.js.map +1 -1
  804. package/package.json +3 -3
  805. package/scripts/check-abi.mjs +15 -0
  806. package/tui/dist/attention/attention-model.d.ts.map +1 -1
  807. package/tui/dist/attention/attention-model.js +8 -4
  808. package/tui/dist/attention/attention-model.js.map +1 -1
  809. package/tui/dist/crash-cart/start-daemon.d.ts +20 -0
  810. package/tui/dist/crash-cart/start-daemon.d.ts.map +1 -1
  811. package/tui/dist/crash-cart/start-daemon.js +56 -0
  812. package/tui/dist/crash-cart/start-daemon.js.map +1 -1
  813. package/tui/dist/hydrate.d.ts.map +1 -1
  814. package/tui/dist/hydrate.js +4 -2
  815. package/tui/dist/hydrate.js.map +1 -1
  816. package/tui/dist/main.js +24 -8
  817. package/tui/dist/main.js.map +1 -1
  818. package/tui/dist/render.d.ts +2 -0
  819. package/tui/dist/render.d.ts.map +1 -1
  820. package/tui/dist/render.js +41 -9
  821. package/tui/dist/render.js.map +1 -1
@@ -43,7 +43,10 @@ Setup and launch are separate: declining `rig setup` avoids its `~/.tmux.conf` c
43
43
  still write workspace trust and selected MCP/config fragments. `runtime.codex.hooks_enabled=false` controls hooks;
44
44
  it isn't a no-global-config option. Setup has no project-only mode. Trusted project `.codex/config.toml` settings
45
45
  don't redirect OpenRig's home-config writes. A separate selected `CODEX_HOME` keeps Codex config, login and sessions
46
- together in that home; it needs its own working sign-in and doesn't relocate `~/.tmux.conf`.
46
+ together in that home; it needs its own working sign-in and doesn't relocate `~/.tmux.conf`. A new home, such as one
47
+ made inside a project to avoid these writes, has no login, so a team can't start on it until it's signed in. To keep
48
+ your existing login, keep your home (`~/.codex`, or `~/.claude` for Claude Code) and accept these few writes there.
49
+ Don't copy credentials into a project to get around them.
47
50
 
48
51
  > **What OpenRig changes on your machine**
49
52
  > - **Install:** `@openrig/cli` goes in globally with npm.
@@ -153,8 +156,7 @@ before-install view explain that access before you choose it.
153
156
 
154
157
  WSL2 is the Windows route OpenRig supports. OpenRig's automated tests don't run on
155
158
  it yet; this is one user's working setup.
156
- [dajiaohuang](https://github.com/dajiaohuang)
157
- [ran OpenRig 0.6.6 under WSL2](https://github.com/mvschwarz/openrig/issues/88#issuecomment-6043925546)
159
+ Wu Shuwen ran OpenRig 0.6.6 under WSL2
158
160
  on Ubuntu 24.04, with Node.js 24.14.1, tmux 3.4, Codex CLI 0.161.0 and Pi
159
161
  (`@earendil-works/pi-coding-agent`) 1.0.4, headless, as the distribution's root
160
162
  user.
@@ -189,15 +191,15 @@ agent doing the setup. These use this release's tag:
189
191
 
190
192
  ```sh
191
193
  # Claude Code
192
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.22/skills/rigs" --skill rigs --agent claude-code
194
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.23/skills/rigs" --skill rigs --agent claude-code
193
195
 
194
196
  # Codex
195
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.22/skills/rigs" --skill rigs --agent codex
197
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.23/skills/rigs" --skill rigs --agent codex
196
198
  # OMP (Oh My Pi): the pi target installs to .agents/skills, which OMP reads
197
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.22/skills/rigs" --skill rigs --agent pi
199
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.23/skills/rigs" --skill rigs --agent pi
198
200
  ```
199
201
 
200
- **OMP:** this pin installs the shared skill only. The `v0.7.22` skill includes OMP attachment guidance (`rig attach --self … --runtime omp`),
202
+ **OMP:** this pin installs the shared skill only. The `v0.7.23` skill includes OMP attachment guidance (`rig attach --self … --runtime omp`),
201
203
  but complete setup from OMP has not been verified. OMP isn't a kernel provider; Claude Code or Codex must still be
202
204
  signed in. To invoke the skill in OMP, type `/skill:rigs`; if OMP was already open when you installed it, type
203
205
  `/reload-plugins` first.
@@ -218,11 +220,11 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
218
220
  script will do and changes nothing:
219
221
 
220
222
  ```sh
221
- curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.22/scripts/install.sh | sh -s -- --dry-run
223
+ curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.23/scripts/install.sh | sh -s -- --dry-run
222
224
  ```
223
225
 
224
226
  The same command without `--dry-run`,
225
- `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.22/scripts/install.sh | sh`, installs the
227
+ `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.23/scripts/install.sh | sh`, installs the
226
228
  latest published `@openrig/cli` with `npm install -g`, runs the Node.js and SQLite check if the installed checker is
227
229
  present (otherwise it reports the check skipped), then runs `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
228
230
  Codex and may install a missing one, as described below. A failed step prints
@@ -362,6 +364,9 @@ reboot. It does not detect a reboot as such. It uses the same restore as
362
364
  until the seats are ready. A kernel stopped with `rig down kernel`, including
363
365
  one whose seats were already detached, stays down on later starts; start it again
364
366
  with `rig up kernel --existing`. A seat you stopped or unclaimed also stays down.
367
+ Other rigs aren't restored at daemon start; only their seats that declare
368
+ `keep_alive` and are gone come back, one seat at a time, once the daemon runs
369
+ ([Keep a seat running](rig-spec.md#keep-a-seat-running-keep_alive)).
365
370
  While the kernel's other seats are running, `rig up kernel --existing` refuses
366
371
  (it restores only a kernel with no live session), so start one stopped seat with
367
372
  `rig launch kernel <logical id>` (`--plan` first). It restores that seat from the
@@ -376,10 +381,12 @@ waiting for a decision, not as started.
376
381
  with no continuity source: use it only when you want a fresh occupant, since the
377
382
  seat's earlier conversation isn't carried.
378
383
  When the tmux server is gone, an explicit `rig down` of any rig can start an
379
- empty server and probe again. It records the stop and clears eligible bindings
384
+ empty server and probe again. It records the stop request on each selected seat
385
+ before it stops anything, and confirms the stop and clears eligible bindings
380
386
  only after confirming the sessions are absent. This can leave an empty tmux
381
387
  server running; it never launches an agent or provider session. Unreadable or
382
- permission results and changed occupants leave the stop bookkeeping unchanged.
388
+ permission results and changed occupants leave the stop unconfirmed; the
389
+ request recorded on the session `rig down` selected stays.
383
390
 
384
391
  While that automatic restore runs, `rig start` continues to your other rigs and
385
392
  says the kernel is still restoring (`kernelRestore.state: "restoring"` with
@@ -404,6 +411,13 @@ leaves the rig down. `--last` never selects the kernel. Under `--no-kernel`
404
411
  (`OPENRIG_NO_KERNEL=1`) the daemon skips the kernel's automatic restore too;
405
412
  bring it back with `rig up kernel --existing`.
406
413
 
414
+ A rig the daemon has nothing to restore from is left out and named with the
415
+ daemon's reason and, when it sends them, the blockers that kept its saved state
416
+ from standing in. With `--json` these rigs are listed under `leftOut`, each with
417
+ its `code`, `message` and `blockers`; `neverLaunched` marks a rig none of whose
418
+ seats has ever run. A preview that failed outright stays under `previewErrors`.
419
+ Left-out rigs don't change the exit code.
420
+
407
421
  Restore requests run one at a time by default. To keep up to two requests
408
422
  outstanding, for example, use `rig start --last --concurrency 2`. A request that
409
423
  times out can keep running in the daemon, so more than two restores can still be
@@ -929,6 +943,12 @@ after its own session ends. Check each result before calling the shutdown done.
929
943
 
930
944
  `rig daemon stop` stops only the background service and preserves agent tmux
931
945
  sessions. If you also want that service stopped, run it after stopping the rigs.
946
+ A daemon stop isn't a stop of the seats: it changes no seat's desired state, so a
947
+ seat that declares `keep_alive` and is gone when the daemon starts again is
948
+ relaunched. To keep a seat or rig down, stop it with `rig seat stop` or
949
+ `rig down`; each records the stop before it stops anything, so the seat stays
950
+ down even if the daemon dies midway
951
+ ([Keep a seat running](rig-spec.md#keep-a-seat-running-keep_alive)).
932
952
  If the operator is handling this full shutdown and kernel is included, it gives you this
933
953
  last step before running `rig down kernel`: once kernel is down, run
934
954
  `rig daemon stop` in your own shell and check the result. The operator's session
@@ -945,6 +965,7 @@ the lifecycle API without booting a new kernel, then stop the remaining rigs.
945
965
  | A restored seat still counts as needing attention after its prompt was answered | After a full restore of a Claude or Codex seat, the daemon clears this by itself once the seat reads running or idle and passes its check. If it still counts, check its `restoreOutcome` in `rig ps --nodes --json` (the RESTORE column): when it is `attention_required`, run `rig seat clear-attention <seat>`, which says which check failed; answering the prompt again or running `rig seat continue` doesn't change it. For a partial restore, submit any startup text left in the input box without sending it again, and wait for the agent to respond before clearing attention. See [After a restored seat's prompt](agent-startup-guide.md#after-a-restored-seats-prompt). |
946
966
  | "Readiness timeout after 30s — harness did not become interactive" | The harness took longer than the readiness window. Raise it for the next launch with `rig config set runtime.readiness_timeout_seconds <1-600>`, then relaunch that seat. |
947
967
  | "Claude resume did not finish within Ns; Claude may still be starting, so the launch was kept" | A restored Claude seat was not interactive when the wait ended. Its pane and resume token are kept. Look at the pane; once Claude is up, run `rig seat clear-attention <seat>`. The wait is about `runtime.readiness_timeout_seconds` in total for each seat (default 30 s), counting the first 3.2 s, and the time adds up seat by seat in a restore. Raising the setting for slow fresh launches lengthens it. For a long restore, choose a caller budget for the whole operation, for example `rig up <rig> --existing --timeout 900` (positive whole seconds; default 120). This also works with `--host` and `--plan`, and changes neither per-seat readiness nor retry behavior. If the caller's wait expires, that is not a rollback: check `rig ps` before running it again. `rig launch` still uses a 120 s caller wait. |
968
+ | The daemon exits with code 69 after one `OPENRIG_LISTEN_FAILED <errno> <host:port> <guidance>` line | Its listener couldn't bind that address, so the daemon didn't start; it writes no shutdown receipt and records no stop. For `EADDRINUSE`, inspect what holds the port before stopping it, or run `rig daemon start --port <unused-port>`. A supervisor should treat exit 69 as needing a look before another start, not as a crash to restart. |
948
969
  | Daemon is healthy, kernel is still starting | Read `rig status` and `rig ps --nodes --rig kernel`; kernel readiness is separate. |
949
970
  | `rig status`, `rig terminal open` or `rig daemon start --wait-for-kernel` says a seat "needs attention" or "is waiting on a person" | The daemon flags that seat, and the line gives its recorded reason: a startup that failed or stopped at a sign-in, trust or other gate, a held message, a missing required file, or a question. "Is waiting on a person" means the daemon sees a live question you can answer in that seat's terminal. Look at it with `rig capture <seat>` or in its tile, then follow the row above that matches its message. "Couldn't check" means the check itself failed; it says nothing either way. |
950
971
  | A Codex seat, including the kernel's operator, answers every turn with a model error such as "… not supported when using Codex with a ChatGPT account" | Its Codex sign-in works, but that account can't run the model; the kernel picks its runtimes from the providers chosen at setup and their sign-ins, not from which models an account can run. If Claude Code is signed in, move just that seat: `rig seat set-runtime <seat> --runtime claude-code --reason "<model> isn't available to this Codex account"` (`--dry-run` first). Otherwise give it a model the account can run with `rig seat set-model <seat> --model <id> --reason "…"`, then start it again with `rig seat launch <seat> --fresh --stop --reason "…"` and check the model it reports. |
@@ -952,7 +973,7 @@ the lifecycle API without booting a new kernel, then stop the remaining rigs.
952
973
  | Shared terminal is absent | Check the kernel's `operator.human` terminal separately from its agents; recover only that seat as described below. Standalone `rig tui` remains available while resolving it. |
953
974
  | Viewing terminal was closed | Open the conversations again with `rig terminal open saved:kernel --window`; `rig tui --shared` is only the dashboard fallback if that window cannot open. Do not relaunch the team. |
954
975
  | Daemon restarted but tmux survived | Re-read `rig status` and the existing queue; a daemon restart is not a fresh project. |
955
- | Host reboot lost tmux sessions | Starting the daemon restores the kernel by itself when that start finds all of its seats lost; a kernel that was already down before the reboot stays down, and `rig start` names `rig up kernel --existing`. Check `rig status`, and if it reports the restore failed, run `rig up kernel --existing`. For other rigs, open `rig`, start the daemon if needed (press **S** if it opens on the work views), and select the existing rig and seats. Resume is the default; a fresh conversation needs a separate decision. |
976
+ | Host reboot lost tmux sessions | Starting the daemon restores the kernel by itself when that start finds all of its seats lost; a kernel that was already down before the reboot stays down, and `rig start` names `rig up kernel --existing`. Check `rig status`, and if it reports the restore failed, run `rig up kernel --existing`. For other rigs, open `rig`, start the daemon if needed (press **S** if it opens on the work views), and select the existing rig and seats. Resume is the default; a fresh conversation needs a separate decision. Seats that declare `keep_alive` and weren't stopped on purpose come back by themselves once the daemon runs; one whose attempts ran out reads `attention_required`. |
956
977
  | OpenRig's home moved (a new `HOME`, account or machine), and restoring an existing rig reports that no rig was found | A shell that exports `OPENRIG_HOME` (legacy `RIGGED_HOME`) or `OPENRIG_DB` still points `rig` and any daemon it starts at the old home, and a daemon started there makes an empty home at that path. Run `rig daemon stop` from that shell first. Then point `OPENRIG_HOME` at the new home folder and `OPENRIG_DB` at the database file in it, or unset them (an unset `OPENRIG_HOME` follows `HOME`), and start the daemon again. A seat whose saved folder isn't on this machine starts in another folder, which the restore names when it can read the seat's terminal; to choose the folder, run `rig up <rig> --existing --cwd <dir>`. |
957
978
  | Launch reports no usable snapshot | Inspect the existing rig and retained project files, then follow the same-seat recovery below. |
958
979
  | Work is waiting on a prompt or decision | Read the row, transition and named prompt; preserve the obligation until the missing decision arrives. |
@@ -1092,6 +1113,50 @@ there. If a fresh start paused before context delivery, **c** finishes that
1092
1113
  delivery to the same occupant (from a shell, `rig seat continue <seat>` does the
1093
1114
  same). **r** reads actual state again; **d** expands details.
1094
1115
 
1116
+ ## Run the daemon under a supervisor
1117
+
1118
+ A supervisor such as launchd or systemd keeps the daemon running. These are the
1119
+ facts it needs.
1120
+
1121
+ - **Start it through the CLI** (`rig daemon start`), not by running the daemon
1122
+ entry directly: the start reservation, the port checks and the readiness check
1123
+ of the child run only in the CLI's start. `rig daemon start` returns once the
1124
+ daemon is ready and leaves it running detached, so watch the daemon's PID or
1125
+ `rig status --json`, not the exit of that command.
1126
+ - **Give the start time.** `rig daemon start` waits up to
1127
+ `daemon.start_readiness_wait_seconds` (default 180) for its child. Allow the
1128
+ supervisor's own timeout for that command at least that wait plus 19 seconds.
1129
+ When the wait runs out and the child is still alive, the start ends pending: the
1130
+ child keeps running and the reservation is kept. Don't start again; check the
1131
+ state first.
1132
+ - **Check liveness with `rig status --json`.** Its exit code doesn't say whether the
1133
+ daemon is up (it is 1 only when the rig summary can't be read), so read its
1134
+ `daemon` object. `state: "running"` is up, also with `healthy: false`, which means
1135
+ busy. `reachable: null` isn't proof that it is down. `stopped` and `stale` mean
1136
+ no daemon answers for `daemon.json`, but a start that is still pending can read
1137
+ `stale` too, since it doesn't write `daemon.json` until it's ready: a new
1138
+ `rig daemon start` then refuses with `Daemon startup is already reserved`, which
1139
+ is that start, not a failure to retry. Don't use a short `/healthz` timeout of
1140
+ your own as a death check: a busy daemon can take longer to answer.
1141
+ - **Restart after the process has exited.** After `rig daemon stop` or a SIGTERM,
1142
+ wait until the PID is gone and the port refuses connections, not for a fixed
1143
+ delay. The shutdown budget is 10 seconds, and `rig daemon stop` waits 12.
1144
+ - **Don't relaunch on a held port.** A start that finds the port in use stops with
1145
+ the `EADDRINUSE` guidance before it spawns a child. A daemon whose listener can't
1146
+ bind writes one `OPENRIG_LISTEN_FAILED <errno> <host:port> <guidance>` line and
1147
+ exits with status 69, and `rig daemon start` puts that line in its error. Either
1148
+ way `rig daemon start` exits non-zero with the port named: have the wrapper stop
1149
+ relaunching on that error and find what holds the port first, rather than retrying
1150
+ in a loop. `rig daemon start` exits 1 on every failure, so its exit code doesn't
1151
+ tell failures apart; only the daemon's own bind failure has a status of its own,
1152
+ 69, and only a supervisor that runs the daemon process itself sees it (for
1153
+ example, `RestartPreventExitStatus=69` in a systemd unit).
1154
+ - **Don't let the supervisor clear `daemon-start.lock`.** A reservation from an
1155
+ earlier boot is archived by the next start, and so is one whose recorded launcher
1156
+ and child are both gone in the same pid namespace, unless `rig daemon stop`
1157
+ retained it. Any other reservation stays; a person reads the start error, which
1158
+ says what to inspect and when the reservation can be archived.
1159
+
1095
1160
  ## Kernel framing (what `rig setup` does and does not do)
1096
1161
 
1097
1162
  Explicit CLI daemon startup retains its automatic kernel behavior. The TUI
@@ -1129,6 +1194,31 @@ with `rig workflow instantiate-lifecycle`. Compilation alone does not start work
1129
1194
  [OpenRig Software Factory](../../packages/daemon/specs/agents/shared/skills/core/openrig-software-factory/SKILL.md)
1130
1195
  shows a small reviewed example and how to retain custody through a genuine wait.
1131
1196
 
1197
+ ### Check a workflow start after a lost response
1198
+
1199
+ If the connection drops after you request a workflow start, the daemon may have
1200
+ already created the instance and its entry packet. Repeating an ordinary
1201
+ `rig workflow instantiate` can create another run.
1202
+
1203
+ For ordinary starts, choose and save a unique tag for each intended run before
1204
+ calling `instantiate`. For example, add `--tags request:review-20261123-01` and
1205
+ look for that tag on the same daemon before deciding whether to retry.
1206
+
1207
+ ```bash
1208
+ rig workflow list --name review-flow --tag request:review-20261123-01 --json
1209
+ rig queue list --all --all-rigs --tag instance:INSTANCE_ID --json
1210
+ ```
1211
+
1212
+ Use the `instanceId` from the matching run in the second command to list its
1213
+ queue packets. The first packet is tagged `entry`, or `gate` if the run starts
1214
+ with a gate. Its queue and pickup state tell you what happened after creation.
1215
+ A tag helps you find the request's effects. It can match multiple runs if reused, and an
1216
+ empty result can still mean a request is in flight, so recheck before retrying.
1217
+
1218
+ For `rig workflow instantiate-lifecycle`, keep the original `--operation-key`.
1219
+ Run `rig workflow operation <key>` on the same daemon to look up the committed
1220
+ instance and entry packet. If you retry the original command, reuse that key.
1221
+
1132
1222
  ## Have your agent configure permissions
1133
1223
 
1134
1224
  For a team with no permission policy, your agent recommends keeping the
@@ -1426,6 +1516,23 @@ Separate instances should use separate databases; the check is a startup observa
1426
1516
  not a lock against later concurrent starts. Changing the setting applies on the next
1427
1517
  daemon start.
1428
1518
 
1519
+ ## Daemon start wait
1520
+
1521
+ `rig daemon start` waits up to 180 seconds for the child it started to answer on its
1522
+ listeners. `rig config set daemon.start_readiness_wait_seconds <seconds>` (an integer from
1523
+ 1 up to 2147464, the longest a Node timer can hold for the TUI's call) or
1524
+ `OPENRIG_DAEMON_START_READINESS_WAIT_SECONDS` sets that wait for later starts:
1525
+ `rig daemon start`, `rig start`, the auto-start of `rig up` and `rig context add`, and the
1526
+ TUI's start, which allows its own call that wait plus the probe, cleanup and a margin
1527
+ (when it can't read the setting, it allows the longest accepted wait).
1528
+ A running daemon isn't affected.
1529
+ When the wait runs out and the child is still alive, the start ends pending as before:
1530
+ the child is left running and the start reservation is kept, so inspect before retrying.
1531
+ A wait shorter than the host needs only makes the start end pending sooner; it doesn't
1532
+ stop the child.
1533
+ Set the wait to what the host and its supervisor expect. A longer wait doesn't make a slow
1534
+ start faster.
1535
+
1429
1536
  ## Custom settings and precedence
1430
1537
 
1431
1538
  - **OpenRig:** member `permission_policy` overrides rig `permission_policy`.
@@ -1,7 +1,7 @@
1
1
  # Reference guides the help pack and command help link to, loaded one file or section at a time by address
2
2
  # (rig context get reference/<file>#<section>). Each file is a symlink to docs/reference/.
3
3
  name: reference
4
- version: "0.7.22"
4
+ version: "0.7.23"
5
5
  taxonomy: world
6
6
  purpose: "Version-matched reference guides the help guide and command help link to. Load a single file or section by address; don't load the whole pack."
7
7
  files:
@@ -178,9 +178,11 @@ edges:
178
178
  | `summary` | string | no | — | Human-readable description. Shown in the spec library, review surfaces and `rig specs preview` (in `rig specs show` only with `--json`). |
179
179
  | `culture_file` | string | no | — | Relative path to a rig-wide culture/constitution file. Must be a safe relative path (no `..`, no absolute). |
180
180
  | `non_interruptive` | boolean | no | — | Pod-aware rig launch-warning default. With full-bypass Claude/Codex seats, true accepts or hides supported harness warnings using launch flags. Explicit CLI choices override this field; this field overrides the machine default. It does not grant permissions, change native settings files, or bypass login. |
181
+ | `seat_slice` | string | no | — | Linux/systemd hosts only, opt-in. `rig` starts every seat the rig launches, with or without `process_limits`, in a systemd user scope beneath the rig's own slice, `openrigseats-<rig>.slice` under `openrigseats.slice`, so a weight you set on that slice in your user manager covers the whole rig. `rig` is the only value; omit the key to keep today's launch paths. OpenRig sets no CPU weight. See "Seat grouping by rig" below. |
181
182
  | `permission_policy` | string | no | — | Permission policy attached to the rig. Either a built-in (`builtin:locked`, `builtin:standard`, `builtin:open`, `builtin:yolo`, `builtin:auto`) or a safe relative path to a custom policy file (resolved from this spec's directory; no `..`, no absolute, no empty segments, each segment `[A-Za-z0-9][A-Za-z0-9._-]*`), or `none`, a recorded choice of the floor. Absent uses the default floor with the scoped team launch allowances described below. A bare built-in name such as `yolo` is refused ("use 'builtin:yolo'"), and so is an explicit `null`. A custom file that is missing, unreadable or invalid isn't a validation error: it resolves to the floor, and preflight warns. A member may set its own `permission_policy` (not on a terminal member), which takes precedence over the rig-level one; there is no pod level. See "Attaching a permission policy" below. |
182
183
  | `env` | map | no | — | Launch environment for every seat in the rig: `NAME: value` pairs. A member's own `env` overrides it name by name. Names match `^[A-Z_][A-Z0-9_]*$`, names starting `OPENRIG_` are reserved, and values must be non-empty strings (quote numbers and booleans). Values are not secret. See "Launch environment" below. |
183
184
  | `managed_blocks` | map | no | `CLAUDE.md` | File that receives OpenRig's managed instruction blocks for Claude Code members. Only the `claude-code` key is accepted, with `CLAUDE.md` or `CLAUDE.local.md`. Codex, Pi and OMP members use `AGENTS.md`, except that a fresh Pi seat normally uses its own agent folder's `AGENTS.md` and a fresh Codex 0.164.0+ seat normally gets launch developer instructions; a link, a conflicting or unreadable Codex config layer, or a resume keeps the repository file. See [Codex guidance at launch](agent-startup-guide.md#codex-guidance-at-launch) and [Runtime Differences](agent-startup-guide.md#runtime-differences). See "Choosing the Claude instruction file" below. |
185
+ | `default_onboarding_pack` | boolean | no | Inherit `onboarding.default_pack.enabled` | `true` includes the two built-in onboarding pages for this rig and `false` omits them. The identity and context-entry guidance still applies. OpenRig records the choice with the rig, and restores keep the saved guidance selection. |
184
186
  | `workspace` | object | no | — | The rig's workspace: `workspace_root` (required), `repos[]` of `{name, path, kind}` with `kind` one of `user`, `project`, `knowledge`, `lab` or `delivery` and unique names, an optional `default_repo` naming one of them, and an optional `knowledge_root`. Relative repo paths resolve against `workspace_root`. |
185
187
  | `docs` | Doc[] | no | — | Documentation files that should travel with the rig. Included in rig bundles. Each entry has a `path` field (safe relative path). The engine does not consume these — they are for humans and agents setting up the environment before launch. |
186
188
  | `startup` | StartupBlock | no | — | Rig-level startup files and actions. Applied to all members via the startup layering model. |
@@ -915,6 +917,7 @@ directory's `CLAUDE.md`, including blocks written by other rigs.
915
917
  | `summary` | string | no | — | Pod description. |
916
918
  | `continuity_policy` | ContinuityPolicy | no | — | Pod-level continuity/restore policy, validated and stored with the pod (see "Continuity Policy"). |
917
919
  | `startup` | StartupBlock | no | — | Pod-level startup files and actions. Applied to all members in this pod via the startup layering model. |
920
+ | `cold_start` | boolean | no | `false` | Pod-level default for member `cold_start` (queue-driven cold start). A member's own value, including an explicit `false`, wins. See [Queue-driven cold start](#queue-driven-cold-start). |
918
921
  | `members` | Member[] | yes | — | The pod's members. It must be an array; validation doesn't refuse an empty one. |
919
922
  | `edges` | PodLocalEdge[] | no | `[]` | Edges between members within this pod. Must use unqualified member IDs (not `pod.member`). |
920
923
 
@@ -957,12 +960,63 @@ directory's `CLAUDE.md`, including blocks written by other rigs.
957
960
  | `plugin_channels` | list | no | — | Claude members only. Plugin channels this agent registers for, as `plugin:<name>@<marketplace>` entries, passed as one `--channels` on every launch; see [Claude plugin channels](#claude-plugin-channels-runtime-claude-code). |
958
961
  | `role` | string | no | — | The seat's role, letters, digits, `_`, `.` and `-`. Not valid on terminal members. |
959
962
  | `restore_policy` | string | no | the AgentSpec's | Restore behavior. One of: `resume_if_possible`, `relaunch_fresh`, `checkpoint_only`. The default comes from the AgentSpec's `defaults.lifecycle` (else `resume_if_possible`) as narrowed by its profile; a member value may only narrow it further, in that order. |
963
+ | `cold_start` | boolean | no | `false` | Opt in to queue-driven cold start for this seat: when queued work targets the seat, its rig is running, and the seat's runner is not live, the daemon launches just this seat through the existing single-seat launch path (resuming its conversation when a resume token exists). Never fires for a seat stopped intentionally (a human `rig seat stop`, `rig down`, a removal), a seat removed from the spec, or a rig with no other live seat. A resource-reclaiming daemon stop (the idle reaper's `daemon:seat-reaper`/`idle_reap`) is revivable. A member's explicit value wins over the pod's `cold_start`. See [Queue-driven cold start](#queue-driven-cold-start). |
964
+ | `keep_alive` | boolean | no | the AgentSpec's, else `false` | When `true`, the daemon relaunches the seat if it falls while the daemon is running, and leaves it down if it was stopped on purpose. Overrides the AgentSpec's `lifecycle.keep_alive` in either direction. See [Keep a seat running](#keep-a-seat-running-keep_alive). |
960
965
  | `compaction_strategy` | string | no | — | `default-compaction`, `managed-compaction`, `handover` or `apprentice-handover`; `harness_native` and `pod_continuity` are accepted as deprecated aliases, and `custom_prompt` is refused. `managed-compaction` and `apprentice-handover` create their jobs only for `claude-code` seats; see [Codex compaction and sizing](agent-startup-guide.md#codex-compaction-and-sizing). |
961
966
  | `mechanic` | string | no | — | A canonical `seat@rig` session address, for `apprentice-handover`. |
962
967
  | `session_source` | object | no | — | Start the seat from an existing session: `fork` with `native_id`, `rebuild` with `artifact_set`, or `agent_image` with `image_name`. A Claude Code `fork` needs Claude Code 2.0.73 or later. Not valid on terminal members. Rebuild `artifact_set` paths are read as given, relative to the daemon's working directory, so an absolute path is the reliable form. |
963
968
  | `starter_ref` | object | no | — | `{ name }` of an agent starter (`^[a-zA-Z0-9][a-zA-Z0-9_-]*$`) whose files lead the seat's startup. Not valid on terminal members or with a fork. |
964
969
  | `startup` | StartupBlock | no | — | Member-level startup files and actions. Applied only to this member. |
965
970
 
971
+
972
+ ### Queue-driven cold start
973
+
974
+ A seat with `cold_start: true` (member, or pod-level default) does not keep a
975
+ runner alive for nothing: when queued work targets the seat and the queue cannot
976
+ deliver — the seat has no live runner — the daemon launches just that seat through
977
+ the existing single-seat launch path, resuming its saved conversation when a resume
978
+ token exists and never silently replacing a live conversation with a fresh one.
979
+
980
+ The daemon cold-starts a seat only when all of these hold:
981
+
982
+ - the seat opted in and is still in the rig's current spec (a removed seat never starts);
983
+ - the seat's rig is running — some other seat of the rig is live (a down rig keeps
984
+ whole-rig restore as the operator's choice);
985
+ - the seat's latest stop was **not** an intentional stop. Eligibility is keyed on who
986
+ stopped the seat, not merely that it is stopped:
987
+ - a human `rig seat stop`, `rig down`, or a seat removal records a deliberate end
988
+ state, and cold start never revives it;
989
+ - the only revivable stop is a resource-reclaiming daemon stop — the idle reaper (a
990
+ separate feature) stops a seat as operator `daemon:seat-reaper` with reason
991
+ `idle_reap` precisely so new work can wake it again;
992
+ - a seat that was never stopped intentionally (a crash, a lost session) is dormant;
993
+ - a rolled-back launch (`superseded` row, a failed start) is refused like an intentional
994
+ stop — a failed start is never auto-revived;
995
+ - the seat's tmux session is gone (a probe that throws is not evidence of absence — the
996
+ seat is left alone, fail-closed).
997
+
998
+ Stop attribution is tied to the exact session id, not its reusable tmux name. An old
999
+ reaper stop cannot authorize reviving a later generation stopped by a person or `rig down`.
1000
+ A rig whose **only seat is dormant never cold-starts**: the running-rig gate requires
1001
+ a live peer. Start that seat explicitly with `rig launch`; this flag does not start down rigs.
1002
+
1003
+ The launch is the ordinary single-seat door (`rig launch`), so it takes the
1004
+ delivery-guard lifecycle lease, rechecks stop intent, opt-in and seat identity under that
1005
+ lease, and applies the normal restore decision: a
1006
+ `resume_if_possible` seat with a usable token resumes its conversation, and a seat
1007
+ whose conversation cannot be resumed parks as `awaiting-decision` with no session
1008
+ started rather than being silently replaced by a fresh one.
1009
+ A cold start also parks as `awaiting-decision` when the snapshot's occupant is no longer
1010
+ the seat's current session: a stale snapshot never silently replaces a newer conversation.
1011
+
1012
+ Simultaneous arrivals are coalesced into one launch, attempts are at least a minute
1013
+ apart, and a seat that fails to start three times in a row stops cold-starting
1014
+ until liveness is observed or a launch succeeds — the cap never expires by time. Refusal
1015
+ evaluations coalesce per seat within each queue drain pass, with a one-second TTL;
1016
+ the next pass checks liveness again. Once the seat is running, the queue's existing
1017
+ unroutable-wake retry delivers the waiting rows; no new scheduler is involved.
1018
+ Idle stopping and reaping are a separate feature and not part of this opt-in.
1019
+
966
1020
  ### Claude MCP loading (`runtime: claude-code`)
967
1021
 
968
1022
  Set `claude_mcp: none` on an individual member to launch it without MCP servers:
@@ -1105,7 +1159,7 @@ members:
1105
1159
  - **Scope and literal argv:** Local `pi`, `codex`, `claude-code` and supported community-harness members support `launch_wrapper`; legacy flat nodes support it only on `pi`, `codex` and `claude-code`. Other runtimes, including the maintained `openshell-claude` environment path, reject it, including `[]`. Community preset capability and execution requirements are defined in the [runner contract](harness-runner-contract.md#2-declare-it-what-the-preset-says-fixed-at-launch). Each fork uses its target member's own selection. Arguments are literal strings without NUL, CR or LF; spaces, quotes, metacharacters and empty non-executable arguments are preserved.
1106
1160
  - **Executable resolution:** `launch_wrapper[0]` must be an absolute path or bare command name. Preflight and launch resolve it using the daemon's launch `PATH` and working directory, before adding the seat's `rig` bin directory. Relative paths containing `/`, aliases and functions are unsupported for the wrapper itself.
1107
1161
  - **Native child and `exec` contract:** The wrapper prefixes the resolved Codex entry, prefixes the resolved Pi child executable inside the host runner, or prefixes the real Claude executable and native arguments. Managed Claude applies it after rebuilding the environment; pinned continuations retain their executable. The wrapper must `exec` its child in place, preserving working directory, environment, signals, exit status and TTY stdio (Claude/Codex) or RPC pipes (Pi). Supervising wrappers are unsupported.
1108
- - **Classic Claude lookup:** Wrapped classic launch supports bash, zsh, sh and dash and requires `command -v claude` to resolve to an executable file; aliases and functions refuse with `launch_wrapper unavailable; no agent started.` To keep custom flags or environment, put them in a `#!` script named `claude` on `PATH`; the wrapper runs that script ([#1477](https://github.com/mvschwarz/openrig/issues/1477)).
1162
+ - **Classic Claude lookup:** Wrapped classic launch supports bash, zsh, sh and dash and requires `command -v claude` to resolve to an executable file. OpenRig doesn't look past an alias or function named `claude`, which may carry your settings: the pane prints `OpenRig: claude is a shell function here, and a launch_wrapper needs claude to be an executable file; no agent started.` (or `shell alias`), and the seat's ready check reports that reason with the remedy. Any other lookup failure prints `launch_wrapper unavailable; no agent started.` To keep custom flags or environment, put them in a `#!` script named `claude` on `PATH`; the wrapper runs that script ([#1477](https://github.com/mvschwarz/openrig/issues/1477)).
1109
1163
  - **Fail-closed (never unwraps):** The selected wrapper applies across fresh launch, relaunch, rebuild, resume, fork, restore, handover and supported runtime switches. Invalid stored metadata, non-POSIX panes, unavailable wrapper support, missing session identity or an unusable wrapper refuses launch. Failures after dispatch remain visible in the pane or Pi runner's markers; OpenRig never runs unwrapped, including Pi's long-command (`launch_path_too_long`) host-runner retry.
1110
1164
  - **Persistence and clear:** On new seats, absent or `launch_wrapper: []` stores no wrapper. Applying an authored spec to an existing seat retains the stored selection when absent, clears it with `launch_wrapper: []`, and replaces it with a non-empty array. Recreation/import uses the incoming spec; older snapshots preserve the current selection. First-start retry refuses wrapper changes. Runtime switches carry it to supported successors; validation occurs at execution. There is no live edit verb: change the spec and use the supported create/recreate/apply flow. Export and node inventory include the configured value.
1111
1165
  - **Boundary:** An argv prefix is not proof of sandbox isolation, tooling availability, memory wiring or governance enforcement. Verify the wrapper and runtime independently.
@@ -1133,7 +1187,7 @@ members:
1133
1187
  before. `tasks_max` and `memory_max` are the only supported keys; any other key, such as a CPU limit, is refused by
1134
1188
  name rather than accepted and ignored.
1135
1189
  - **The boundary:** The seat's pane command starts in a transient `systemd-run --user --scope` of its own, in
1136
- `openrigseats.slice`, with `TasksMax=N` and/or `MemoryMax=<bytes>` as its only limits (one scope for both). The
1190
+ `openrigseats.slice` (beneath its rig's slice there when the rig sets `seat_slice: rig`), with `TasksMax=N` and/or `MemoryMax=<bytes>` as its only limits (one scope for both). The
1137
1191
  seat's processes leave the terminal server's scope:
1138
1192
  a limit an operator put on that scope no longer covers this seat. The other seats, the daemon and the terminal server
1139
1193
  stay where they were, outside this seat's limit. Processes the seat itself starts through `systemd-run --user` land
@@ -1244,6 +1298,141 @@ members:
1244
1298
  `rig export` prints) with how to fix or clear it, and the `X-OpenRig-Export-Warnings` header on YAML and JSON (which
1245
1299
  `rig spec show --json` prints as a warning).
1246
1300
 
1301
+ ### Keep a seat running (`keep_alive`)
1302
+
1303
+ Set `keep_alive: true` on a member when that seat should come back by itself if it falls:
1304
+
1305
+ ```yaml
1306
+ members:
1307
+ - id: worker
1308
+ agent_ref: local:agents/worker
1309
+ profile: default
1310
+ runtime: claude-code
1311
+ cwd: .
1312
+ keep_alive: true
1313
+ ```
1314
+
1315
+ It's off by default. Without it, nothing relaunches a fallen seat, as before: you bring it back with `rig launch`,
1316
+ `rig up --existing` or `rig start`.
1317
+
1318
+ - **Where it's declared:** on the member, or in an AgentSpec's `defaults.lifecycle.keep_alive` or a profile's
1319
+ `lifecycle.keep_alive` ([AgentSpec](agent-spec.md#lifecycle-defaults)). The most specific declaration wins: the
1320
+ member, then the profile, then the agent's defaults, and absent everywhere is off. A member can turn off what its
1321
+ agent turns on. It's a flat key on the member, beside `restore_policy`, not a `lifecycle` block. Terminal members can
1322
+ declare it too. The resolved value is stored with the seat when it's created and again when the spec launches it;
1323
+ `rig export` writes `keep_alive: true` for a seat that has it, `keep_alive: false` for a member that turned off what
1324
+ its agent turns on (in the spec last applied to the seat, a re-applied one included), and nothing for a seat that
1325
+ declares nothing. A first-start retry keeps the seat's stored value.
1326
+ - **A fall versus a stop on purpose.** A fall is a seat whose session is gone without a stop request: its process
1327
+ exited, crashed or was killed from outside, or the host or the daemon went down unplanned. `rig seat stop` and
1328
+ `rig down` are stops on purpose and the seat stays down. Each records its stop request before the first step that
1329
+ stops anything (see [Checked seat stop](checked-seat-stop.md)), so a seat a `rig down` selected but hadn't reached
1330
+ yet, or a stop the daemon died in the middle of, also stays down. A keep_alive seat that has already fallen, or whose
1331
+ relaunch attempt failed, is covered too: `rig down` records the request on it, and `rig seat stop` records the stop
1332
+ instead of refusing a seat with nothing left to kill, and says the seat is now held down (unless an older session of
1333
+ the seat is still live, which it refuses as before, pointing at `rig seat clean`). An unplanned daemon or host loss never erases a stop
1334
+ recorded before it. A clean `rig daemon stop` isn't a stop of the seats: it changes no seat's desired state, leaves
1335
+ running sessions running and starts no recovery. To leave a keep_alive seat down, stop it with `rig seat stop` or
1336
+ `rig down`, not with a daemon stop.
1337
+ - **How it comes back.** The daemon checks its keep_alive seats every 30 seconds while it runs. It first reconciles the
1338
+ seat against tmux and acts only when the session is proven gone (tmux reports it absent, or no tmux server is running):
1339
+ an unreachable socket or another unreadable probe, or a process still running, is not a fall, and a session that ended cleanly (`exited` without a stop request) is left as it is.
1340
+ A retry of a failed relaunch needs the same proof, whatever status that launch left. Anything the check can't settle
1341
+ on any of the seat's sessions (a probe that proves nothing, a session tmux still shows, a recorded process still
1342
+ running, or one it can't check because the process table can't be read) leaves the seat as it is until a later check
1343
+ can. Only the sessions that decide the fall count: the seat's latest session, its other sessions under the same tmux
1344
+ name and the incident's own; a session you claimed and released is its owner's and never holds the seat back. A tmux
1345
+ socket removed by a reboot's `/tmp` cleanup is not left undecided when the process recorded for the seat's latest
1346
+ session, observed since that session began, is no longer running: as `rig down` does, the daemon starts an empty tmux
1347
+ server and probes again, so a seat that is really gone is proven gone. Without that proof (no such record, or one for
1348
+ another session) the seat waits. It relaunches through the
1349
+ same one-seat launch as `rig launch <rig> <seat>`, under the seat's `restore_policy`: it resumes the conversation when
1350
+ it can and never asks for a fresh start of its own (only a declared `restore_policy` starts one fresh), so a seat
1351
+ whose conversation can't be resumed waits for a person instead of silently starting blank. A live session that
1352
+ survived is never launched a second time. Right before it starts, under the seat's lifecycle lease, the launch checks
1353
+ again: a `rig seat stop` or `rig down` that got there first wins, and nothing is launched. A seat lost while the
1354
+ daemon was down is recovered on the daemon's first checks after it starts, once its startup reconcile has run; a rig
1355
+ being restored is left to its restore. Once a daemon shutdown begins, a relaunch still waiting for the seat's lease,
1356
+ or still preparing its launch, starts nothing, and its attempt isn't counted.
1357
+ - **Not covered:** a seat attached from outside, joined as an external CLI or through a tmux session OpenRig claimed
1358
+ rather than started (`rig attach`), is its owner's, and the daemon never relaunches it. Seats of an archived rig
1359
+ aren't watched.
1360
+ - **Attempts, durably counted.** Each fall opens an incident with 2 attempts, the first as soon as the fall is proven
1361
+ and the second at least 30 seconds after the first (each later wait would double). Each attempt is counted, with its
1362
+ `seat.keep_alive.attempted` event, before its launch starts, so a daemon restart in the middle of a launch still
1363
+ counts it; neither a daemon restart nor a launch that merely returned gives the attempts back. Any session a
1364
+ relaunch leaves behind belongs to its incident, whatever the launch's outcome; a session a launch created just
1365
+ before the daemon stopped, with its outcome not yet written, is taken as that launch's when the daemon is back. The
1366
+ incident ends, and the next fall starts a new one, when a check has seen the relaunched seat run for 10 minutes,
1367
+ when your stop of the seat is confirmed (a stop still pending keeps it, so a stop that turns out to have had no
1368
+ effect leaves the budget as it was), or when you start it yourself, at any point of the incident. Daemon start's
1369
+ automatic restore of a kernel isn't a start of yours: the session it brings back belongs to the incident, which goes
1370
+ on with the attempts it has left (or, exhausted, keeps waiting for you), and the 10 minutes count again from when a
1371
+ check sees that session running. An exhausted incident whose restored session a check has seen run for 10 minutes
1372
+ ends too, so the next fall is recovered again. Only what a check saw counts:
1373
+ a relaunched seat that falls while the daemon is down, before a check saw it run for 10 minutes, stays in its
1374
+ incident. The attempts, the wait and the 10 minutes are fixed in this version; there is no setting for them yet.
1375
+ - **When the attempts run out,** or a launch ends in a way a retry can't change (`awaiting-decision`,
1376
+ `attention_required`, `left_attached`, a refusal such as a changed selection or no usable snapshot, a failed launch
1377
+ that left its new session running without the agent, or an older session of the seat still running behind the
1378
+ latest one that fell), the daemon stops trying. It emits `seat.keep_alive.exhausted` once, with the last status and error, and the seat reads
1379
+ `attention_required` in `rig ps --nodes` while it isn't running. Look at why with
1380
+ `rig ps --nodes --rig <rig> --json --full` (`keepAliveIncident`) and the seat's terminal, then start it yourself with
1381
+ `rig launch <rig> <seat>` (`--plan` first). A start you make opens a fresh budget for the next fall.
1382
+ - **What you can see:** node inventory (`rig ps --nodes --json --full`) shows `keepAlive: true` on a seat that declares
1383
+ it and, while it has an incident and no stop request, `keepAliveIncident` with `attempts`, `exhausted`, `lastError`
1384
+ and `lastAttemptAt`. A stop, pending or confirmed, clears the incident's `attention_required` at once. A
1385
+ stop that was asked for and isn't confirmed yet shows `stopRequested: true`. Each field is absent where it doesn't
1386
+ apply, so a seat without keep_alive or a pending stop reads as before. The events are `seat.keep_alive.attempted`,
1387
+ `seat.keep_alive.recovered` (with the launch status) and `seat.keep_alive.exhausted` (with the last status and error);
1388
+ each carries the rig, the seat's node and logical id, the incident id and the attempts spent.
1389
+
1390
+ ### Seat grouping by rig (`seat_slice`, Linux/systemd)
1391
+
1392
+ Set `seat_slice: rig` at the top of a rig spec to start every seat that rig launches in a scope beneath a slice of the
1393
+ rig's own, so the systemd user manager can share the machine between rigs rather than between seats:
1394
+
1395
+ ```yaml
1396
+ version: "0.2"
1397
+ name: alpha
1398
+ seat_slice: rig
1399
+ pods: [...]
1400
+ ```
1401
+
1402
+ - **The slice names:** a grouped seat's scope goes in `openrigseats-<rig>.slice`. A dash in a slice name is nesting to
1403
+ systemd, so that slice sits directly beneath `openrigseats.slice`, the slice the scopes of seats with
1404
+ `process_limits` already use. The rig's name is escaped as `systemd-escape` escapes a string (systemd.unit(5),
1405
+ "String escaping"): every byte other than an ASCII letter, digit, `:`, `_` or `.` becomes `\xNN`, and so does a
1406
+ leading `.`. Unlike `systemd-escape`, a `/` is escaped too (`\x2f`), so a rig name never adds a level. Rig `alpha`
1407
+ uses `openrigseats-alpha.slice`; rig `lab-b` uses `openrigseats-lab\x2db.slice` (`systemd-escape lab-b` prints the
1408
+ escaped part). Its cgroup is `<user manager>/openrigseats.slice/openrigseats-<escaped rig>.slice/`.
1409
+ - **Every seat, with or without limits:** a seat with `process_limits` gets its scope, with the same limits, checked the
1410
+ same way, beneath the rig's slice instead of directly in `openrigseats.slice`. A seat without limits, which otherwise
1411
+ starts in the terminal server's process tree, gets a scope with no limit beneath the rig's slice. Fresh launches,
1412
+ restores, relaunches, respawns and a restart in place's respawn all start the seat there. A grouped seat without limits
1413
+ also leaves the terminal server's scope, so any limit on that scope no longer covers it.
1414
+ - **Weights are yours:** OpenRig sets no CPU weight, quota or other property on any slice; it only names the slice
1415
+ when it starts a scope. Give the rigs their shares in your systemd user manager, at run time or in a drop-in, for
1416
+ example `systemctl --user set-property openrigseats-alpha.slice CPUWeight=200`, or
1417
+ `~/.config/systemd/user/openrigseats-alpha.slice.d/weight.conf` with `[Slice]` and `CPUWeight=200`. A weight takes
1418
+ effect only where the cpu controller is delegated to the user manager (see
1419
+ `cat /sys/fs/cgroup/user.slice/user-$(id -u).slice/user@$(id -u).service/cgroup.controllers`).
1420
+ - **When it takes effect:** the rig stores the setting when it is created from its spec, as it does its other top-level
1421
+ keys, and each seat launch reads it. A seat starts beneath the rig's slice at its next launch. OpenRig never moves or
1422
+ restarts a running seat for it. A rig created from a spec without the key keeps its seats ungrouped; to group them,
1423
+ add the key and create the rig from the spec again (`rig up <spec>` replaces a stopped rig of that name with a new
1424
+ one).
1425
+ - **Where grouping can't be applied:** the seat starts on today's path (the ungrouped scope in `openrigseats.slice` for a
1426
+ seat with `process_limits`, with every limit checked and applied as without grouping; the terminal server's process
1427
+ tree for a seat without), and the launch returns the warning `seat_slice requested, grouping not applied: <reason>`.
1428
+ Grouping never refuses a launch. That covers a host without systemd or cgroup v2, a user manager that won't start
1429
+ the scope (a masked slice, for example), a rig name whose slice name would exceed 255 characters, and a grouped scope
1430
+ that fails after its check passed. The seat starts again on the ungrouped path only when its command is confirmed not
1431
+ to have started; an unconfirmed start warns and stands, without another start. The next launch tries the rig's slice again.
1432
+ - **Status:** `rig seat status` reports `process_limits` as before; the scope it names sits beneath the rig's slice when
1433
+ the seat is grouped. To see a seat's placement, read its pane process's cgroup (`cat /proc/<pid>/cgroup`) or
1434
+ `systemctl --user status openrigseats-<rig>.slice`.
1435
+
1247
1436
  ### Status line throttle (`runtime: claude-code`)
1248
1437
 
1249
1438
  Claude Code runs a seat's status line on each update of its conversation, and each run starts Node for OpenRig's
@@ -1754,7 +1943,8 @@ spec can pass `rig spec validate` and then fail at preflight or import. Run
1754
1943
  7. Terminal nodes require the exact triple: `runtime: terminal`, `agent_ref: builtin:terminal`, `profile: none`.
1755
1944
  8. `agent_ref` must start with `local:` (relative) or `path:` (absolute), except `builtin:terminal`.
1756
1945
  9. `local:` refs must be relative paths. `path:` refs must be absolute paths.
1757
- 10. `restore_policy` must be one of: `resume_if_possible`, `relaunch_fresh`, `checkpoint_only`.
1946
+ 10. `restore_policy` must be one of: `resume_if_possible`, `relaunch_fresh`, `checkpoint_only`. `keep_alive`, when
1947
+ present, must be `true` or `false`.
1758
1948
  11. Pod-local edges use unqualified member IDs. Cross-pod edges use `pod.member` format.
1759
1949
  12. Cross-pod edges must reference different pods.
1760
1950
  13. Edge kinds must be one of: `delegates_to`, `spawned_by`, `can_observe`, `collaborates_with`, `escalates_to`.
@@ -11,8 +11,17 @@ new instance, or before a deliberate restart of an existing daemon:
11
11
  rig config set terminal.tmux_server isolated
12
12
  ```
13
13
 
14
- The setting is read once at daemon startup. Changing it does not move a running
15
- seat. Inspect the effective choice with:
14
+ Isolation separates the seats from your own tmux server, so a server-wide command
15
+ on yours, such as `tmux kill-server`, doesn't end them. It doesn't protect the
16
+ seats' server from the agents running on it: each seat's pane carries tmux's `TMUX`
17
+ value for that server, so a tmux command an agent runs there without `-L` or `-S`,
18
+ `tmux kill-server` included, acts on the seats' own server and can end every seat
19
+ on it.
20
+
21
+ The setting is read once at daemon startup, and a restart keeps the previous server
22
+ while registered sessions remain on it (see
23
+ [Existing teams and deferred migration](#existing-teams-and-deferred-migration)).
24
+ Changing it does not move a running seat. Inspect the effective choice with:
16
25
 
17
26
  ```sh
18
27
  rig terminal status --json
@@ -209,6 +218,22 @@ run: a daemon restarted during a loss records it again. In between:
209
218
  healthz carries the state in `terminals` while `status` stays `ok`, because the
210
219
  daemon itself is up.
211
220
 
221
+ To bring the seats back after the server has died, including when it left its
222
+ socket file behind (as after `tmux kill-server`), run `rig up <rig> --existing`
223
+ for each rig that ran on it. The restore finds the seats' sessions gone, starts the
224
+ tmux server again, and resumes each seat's conversation where its provider history
225
+ allows; a seat without usable history waits for an explicit fresh-start choice, as
226
+ in the restoration rules above. The command talks to the daemon, not to tmux, so
227
+ run it from any terminal that wasn't on the lost server.
228
+
229
+ `rig seat launch <seat> --fresh --reason "<why>"` can also reopen a dead server
230
+ whose socket file remains, one seat at a time, unless the seat's recorded process
231
+ is still running: then it refuses, launches nothing and asks you to end that process
232
+ first, because the server may only have lost its socket. That is a deliberate blank
233
+ replacement, not a resume: the seat starts a new conversation and none of its
234
+ earlier ones is resumed. `--reason` is required. Use it when you want that seat to
235
+ start over, not to get its conversation back.
236
+
212
237
  ## Two instances on one machine
213
238
 
214
239
  Isolation selects only a tmux server. Give each daemon its own OpenRig home,