@openrig/cli 0.7.16 → 0.7.18

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 (817) hide show
  1. package/README.md +9 -9
  2. package/daemon/assets/onboarding/02-self-and-competent-action.md +5 -41
  3. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
  4. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
  5. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
  6. package/daemon/assets/plugins/openrig/plugin.json +1 -1
  7. package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +22 -6
  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/refocus.cjs +5 -0
  11. package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +23 -0
  12. package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +11 -0
  13. package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +25 -5
  14. package/daemon/assets/skills/rigs/SKILL.md +95 -42
  15. package/daemon/assets/skills/rigs/references/installing-for-someone.md +47 -0
  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 +123 -35
  19. package/daemon/context-packs/reference/getting-started.md +8 -8
  20. package/daemon/context-packs/reference/manifest.yaml +1 -1
  21. package/daemon/context-packs/reference/rig-spec.md +166 -0
  22. package/daemon/context-packs/reference/whats-new.md +294 -6
  23. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  27. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +23 -0
  32. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/openrig-software-factory/references/worked-example.md +1 -1
  39. package/daemon/context-packs/skills/core/openrig-upgrade/SKILL.md +2 -0
  40. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +22 -6
  48. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/openrig-user/SKILL.md +11 -0
  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 +25 -5
  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.map +1 -1
  85. package/daemon/dist/adapters/claude-code-adapter.js +52 -8
  86. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  87. package/daemon/dist/adapters/claude-resume.d.ts +2 -1
  88. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  89. package/daemon/dist/adapters/claude-resume.js +17 -7
  90. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  91. package/daemon/dist/adapters/kernel-authority.d.ts +1 -1
  92. package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
  93. package/daemon/dist/adapters/kernel-authority.js +22 -10
  94. package/daemon/dist/adapters/kernel-authority.js.map +1 -1
  95. package/daemon/dist/adapters/openshell-driver.d.ts +1 -0
  96. package/daemon/dist/adapters/openshell-driver.d.ts.map +1 -1
  97. package/daemon/dist/adapters/openshell-driver.js +3 -0
  98. package/daemon/dist/adapters/openshell-driver.js.map +1 -1
  99. package/daemon/dist/adapters/openshell-podman-observer.d.ts +9 -7
  100. package/daemon/dist/adapters/openshell-podman-observer.d.ts.map +1 -1
  101. package/daemon/dist/adapters/openshell-podman-observer.js +20 -3
  102. package/daemon/dist/adapters/openshell-podman-observer.js.map +1 -1
  103. package/daemon/dist/adapters/pi-runner-protocol.d.ts +43 -0
  104. package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
  105. package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
  106. package/daemon/dist/adapters/pi-runner.d.ts +88 -5
  107. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  108. package/daemon/dist/adapters/pi-runner.js +707 -43
  109. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  110. package/daemon/dist/adapters/tmux-credential-env.d.ts +4 -0
  111. package/daemon/dist/adapters/tmux-credential-env.d.ts.map +1 -0
  112. package/daemon/dist/adapters/tmux-credential-env.js +14 -0
  113. package/daemon/dist/adapters/tmux-credential-env.js.map +1 -0
  114. package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
  115. package/daemon/dist/adapters/tmux-exec.js +4 -3
  116. package/daemon/dist/adapters/tmux-exec.js.map +1 -1
  117. package/daemon/dist/adapters/tmux-server.d.ts +2 -2
  118. package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
  119. package/daemon/dist/adapters/tmux-server.js +12 -4
  120. package/daemon/dist/adapters/tmux-server.js.map +1 -1
  121. package/daemon/dist/adapters/tmux.d.ts +223 -12
  122. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  123. package/daemon/dist/adapters/tmux.js +836 -30
  124. package/daemon/dist/adapters/tmux.js.map +1 -1
  125. package/daemon/dist/attention-surface.d.ts +4 -1
  126. package/daemon/dist/attention-surface.d.ts.map +1 -1
  127. package/daemon/dist/attention-surface.js.map +1 -1
  128. package/daemon/dist/build-info.js +3 -3
  129. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  130. package/daemon/dist/db/all-migrations.js +12 -0
  131. package/daemon/dist/db/all-migrations.js.map +1 -1
  132. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.d.ts +6 -0
  133. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.d.ts.map +1 -0
  134. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.js +10 -0
  135. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.js.map +1 -0
  136. package/daemon/dist/db/migrations/170_rig_delivery_drains.d.ts +3 -0
  137. package/daemon/dist/db/migrations/170_rig_delivery_drains.d.ts.map +1 -0
  138. package/daemon/dist/db/migrations/170_rig_delivery_drains.js +21 -0
  139. package/daemon/dist/db/migrations/170_rig_delivery_drains.js.map +1 -0
  140. package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts +4 -0
  141. package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts.map +1 -0
  142. package/daemon/dist/db/migrations/171_claude_auto_mode.js +9 -0
  143. package/daemon/dist/db/migrations/171_claude_auto_mode.js.map +1 -0
  144. package/daemon/dist/db/migrations/171_node_input_route.d.ts +4 -0
  145. package/daemon/dist/db/migrations/171_node_input_route.d.ts.map +1 -0
  146. package/daemon/dist/db/migrations/171_node_input_route.js +6 -0
  147. package/daemon/dist/db/migrations/171_node_input_route.js.map +1 -0
  148. package/daemon/dist/db/migrations/172_queue_return_route.d.ts +3 -0
  149. package/daemon/dist/db/migrations/172_queue_return_route.d.ts.map +1 -0
  150. package/daemon/dist/db/migrations/172_queue_return_route.js +13 -0
  151. package/daemon/dist/db/migrations/172_queue_return_route.js.map +1 -0
  152. package/daemon/dist/db/migrations/173_node_process_limits.d.ts +4 -0
  153. package/daemon/dist/db/migrations/173_node_process_limits.d.ts.map +1 -0
  154. package/daemon/dist/db/migrations/173_node_process_limits.js +6 -0
  155. package/daemon/dist/db/migrations/173_node_process_limits.js.map +1 -0
  156. package/daemon/dist/domain/activity-grants.d.ts.map +1 -1
  157. package/daemon/dist/domain/activity-grants.js +2 -0
  158. package/daemon/dist/domain/activity-grants.js.map +1 -1
  159. package/daemon/dist/domain/agent-activity-store.d.ts +36 -1
  160. package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
  161. package/daemon/dist/domain/agent-activity-store.js +192 -3
  162. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  163. package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts +10 -0
  164. package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts.map +1 -1
  165. package/daemon/dist/domain/agent-images/resume-token-discovery.js +21 -0
  166. package/daemon/dist/domain/agent-images/resume-token-discovery.js.map +1 -1
  167. package/daemon/dist/domain/applied-launch-observation-store.d.ts +5 -0
  168. package/daemon/dist/domain/applied-launch-observation-store.d.ts.map +1 -1
  169. package/daemon/dist/domain/applied-launch-observation-store.js +57 -21
  170. package/daemon/dist/domain/applied-launch-observation-store.js.map +1 -1
  171. package/daemon/dist/domain/builtin-startup-files.d.ts +26 -12
  172. package/daemon/dist/domain/builtin-startup-files.d.ts.map +1 -1
  173. package/daemon/dist/domain/builtin-startup-files.js +73 -34
  174. package/daemon/dist/domain/builtin-startup-files.js.map +1 -1
  175. package/daemon/dist/domain/claude-auto-mode.d.ts +64 -0
  176. package/daemon/dist/domain/claude-auto-mode.d.ts.map +1 -0
  177. package/daemon/dist/domain/claude-auto-mode.js +114 -0
  178. package/daemon/dist/domain/claude-auto-mode.js.map +1 -0
  179. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +2 -0
  180. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  181. package/daemon/dist/domain/claude-compaction-enforcer.js +11 -4
  182. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  183. package/daemon/dist/domain/claude-continuation-launch.d.ts +5 -1
  184. package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -1
  185. package/daemon/dist/domain/claude-continuation-launch.js +51 -2
  186. package/daemon/dist/domain/claude-continuation-launch.js.map +1 -1
  187. package/daemon/dist/domain/claude-core-plugin-env.d.ts +7 -3
  188. package/daemon/dist/domain/claude-core-plugin-env.d.ts.map +1 -1
  189. package/daemon/dist/domain/claude-core-plugin-env.js +11 -8
  190. package/daemon/dist/domain/claude-core-plugin-env.js.map +1 -1
  191. package/daemon/dist/domain/codex-daemon-support.d.ts.map +1 -1
  192. package/daemon/dist/domain/codex-daemon-support.js +6 -1
  193. package/daemon/dist/domain/codex-daemon-support.js.map +1 -1
  194. package/daemon/dist/domain/codex-thread-id.d.ts +13 -0
  195. package/daemon/dist/domain/codex-thread-id.d.ts.map +1 -1
  196. package/daemon/dist/domain/codex-thread-id.js +132 -9
  197. package/daemon/dist/domain/codex-thread-id.js.map +1 -1
  198. package/daemon/dist/domain/community-harness-launch-result.d.ts +2 -0
  199. package/daemon/dist/domain/community-harness-launch-result.d.ts.map +1 -1
  200. package/daemon/dist/domain/community-harness-launch-result.js +5 -1
  201. package/daemon/dist/domain/community-harness-launch-result.js.map +1 -1
  202. package/daemon/dist/domain/connection-contract.d.ts +91 -0
  203. package/daemon/dist/domain/connection-contract.d.ts.map +1 -1
  204. package/daemon/dist/domain/connection-contract.js +75 -1
  205. package/daemon/dist/domain/connection-contract.js.map +1 -1
  206. package/daemon/dist/domain/context-usage-store.d.ts +16 -2
  207. package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
  208. package/daemon/dist/domain/context-usage-store.js +70 -15
  209. package/daemon/dist/domain/context-usage-store.js.map +1 -1
  210. package/daemon/dist/domain/current-work.d.ts +11 -1
  211. package/daemon/dist/domain/current-work.d.ts.map +1 -1
  212. package/daemon/dist/domain/current-work.js +107 -12
  213. package/daemon/dist/domain/current-work.js.map +1 -1
  214. package/daemon/dist/domain/cwd-resolution.d.ts +2 -0
  215. package/daemon/dist/domain/cwd-resolution.d.ts.map +1 -1
  216. package/daemon/dist/domain/cwd-resolution.js +7 -2
  217. package/daemon/dist/domain/cwd-resolution.js.map +1 -1
  218. package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
  219. package/daemon/dist/domain/draft-aware-delivery.js +5 -1
  220. package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
  221. package/daemon/dist/domain/environment-lifecycle.d.ts +15 -0
  222. package/daemon/dist/domain/environment-lifecycle.d.ts.map +1 -1
  223. package/daemon/dist/domain/environment-lifecycle.js +22 -4
  224. package/daemon/dist/domain/environment-lifecycle.js.map +1 -1
  225. package/daemon/dist/domain/errors.d.ts +4 -0
  226. package/daemon/dist/domain/errors.d.ts.map +1 -1
  227. package/daemon/dist/domain/errors.js +7 -0
  228. package/daemon/dist/domain/errors.js.map +1 -1
  229. package/daemon/dist/domain/execution-view.d.ts.map +1 -1
  230. package/daemon/dist/domain/execution-view.js +8 -1
  231. package/daemon/dist/domain/execution-view.js.map +1 -1
  232. package/daemon/dist/domain/existing-rig-restore.d.ts +2 -0
  233. package/daemon/dist/domain/existing-rig-restore.d.ts.map +1 -1
  234. package/daemon/dist/domain/existing-rig-restore.js +1 -0
  235. package/daemon/dist/domain/existing-rig-restore.js.map +1 -1
  236. package/daemon/dist/domain/expected-conversation.d.ts.map +1 -1
  237. package/daemon/dist/domain/expected-conversation.js +26 -11
  238. package/daemon/dist/domain/expected-conversation.js.map +1 -1
  239. package/daemon/dist/domain/gateway/destination-resolver.d.ts +4 -0
  240. package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
  241. package/daemon/dist/domain/gateway/destination-resolver.js +10 -3
  242. package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
  243. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts +3 -1
  244. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
  245. package/daemon/dist/domain/gateway/operator-delivery-engine.js +120 -6
  246. package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
  247. package/daemon/dist/domain/gateway/slack/capabilities.d.ts +9 -1
  248. package/daemon/dist/domain/gateway/slack/capabilities.d.ts.map +1 -1
  249. package/daemon/dist/domain/gateway/slack/capabilities.js +6 -1
  250. package/daemon/dist/domain/gateway/slack/capabilities.js.map +1 -1
  251. package/daemon/dist/domain/gateway/slack/inbound-admission.js +1 -1
  252. package/daemon/dist/domain/gateway/slack/inbound-admission.js.map +1 -1
  253. package/daemon/dist/domain/gateway/slack/inbound.d.ts +4 -0
  254. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  255. package/daemon/dist/domain/gateway/slack/inbound.js +15 -1
  256. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  257. package/daemon/dist/domain/gateway/slack/manifest.d.ts +5 -1
  258. package/daemon/dist/domain/gateway/slack/manifest.d.ts.map +1 -1
  259. package/daemon/dist/domain/gateway/slack/manifest.js +12 -3
  260. package/daemon/dist/domain/gateway/slack/manifest.js.map +1 -1
  261. package/daemon/dist/domain/gateway/slack/message.d.ts +1 -0
  262. package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
  263. package/daemon/dist/domain/gateway/slack/message.js +4 -1
  264. package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
  265. package/daemon/dist/domain/gateway/slack/queue-access.d.ts +2 -0
  266. package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
  267. package/daemon/dist/domain/gateway/slack/queue-access.js +1 -0
  268. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  269. package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -1
  270. package/daemon/dist/domain/gateway/slack/settled-asks.js +6 -5
  271. package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
  272. package/daemon/dist/domain/gateway/slack/slack-api.d.ts +1 -0
  273. package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
  274. package/daemon/dist/domain/gateway/slack/slack-api.js +7 -2
  275. package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
  276. package/daemon/dist/domain/harness-not-started-notice.d.ts +36 -0
  277. package/daemon/dist/domain/harness-not-started-notice.d.ts.map +1 -0
  278. package/daemon/dist/domain/harness-not-started-notice.js +81 -0
  279. package/daemon/dist/domain/harness-not-started-notice.js.map +1 -0
  280. package/daemon/dist/domain/health-diagnosis.d.ts.map +1 -1
  281. package/daemon/dist/domain/health-diagnosis.js +4 -0
  282. package/daemon/dist/domain/health-diagnosis.js.map +1 -1
  283. package/daemon/dist/domain/hot-potato-enforcer.d.ts +1 -1
  284. package/daemon/dist/domain/input-read-diagnostic.js +1 -1
  285. package/daemon/dist/domain/input-read-diagnostic.js.map +1 -1
  286. package/daemon/dist/domain/instance-initialization.d.ts +2 -0
  287. package/daemon/dist/domain/instance-initialization.d.ts.map +1 -1
  288. package/daemon/dist/domain/instance-initialization.js +2 -1
  289. package/daemon/dist/domain/instance-initialization.js.map +1 -1
  290. package/daemon/dist/domain/member-connection.d.ts +14 -0
  291. package/daemon/dist/domain/member-connection.d.ts.map +1 -0
  292. package/daemon/dist/domain/member-connection.js +34 -0
  293. package/daemon/dist/domain/member-connection.js.map +1 -0
  294. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  295. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +1 -1
  296. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  297. package/daemon/dist/domain/model-divergence/current-model-reader.d.ts +3 -1
  298. package/daemon/dist/domain/model-divergence/current-model-reader.d.ts.map +1 -1
  299. package/daemon/dist/domain/model-divergence/current-model-reader.js +32 -7
  300. package/daemon/dist/domain/model-divergence/current-model-reader.js.map +1 -1
  301. package/daemon/dist/domain/native-model-picker.d.ts +2 -0
  302. package/daemon/dist/domain/native-model-picker.d.ts.map +1 -1
  303. package/daemon/dist/domain/native-model-picker.js +8 -2
  304. package/daemon/dist/domain/native-model-picker.js.map +1 -1
  305. package/daemon/dist/domain/native-permission-store.d.ts +6 -2
  306. package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
  307. package/daemon/dist/domain/native-permission-store.js +12 -5
  308. package/daemon/dist/domain/native-permission-store.js.map +1 -1
  309. package/daemon/dist/domain/native-resume-probe.d.ts +5 -0
  310. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  311. package/daemon/dist/domain/native-resume-probe.js +172 -21
  312. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  313. package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
  314. package/daemon/dist/domain/network/network-connector.js +16 -5
  315. package/daemon/dist/domain/network/network-connector.js.map +1 -1
  316. package/daemon/dist/domain/network/network-installations.d.ts +5 -4
  317. package/daemon/dist/domain/network/network-installations.d.ts.map +1 -1
  318. package/daemon/dist/domain/network/network-installations.js +42 -11
  319. package/daemon/dist/domain/network/network-installations.js.map +1 -1
  320. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  321. package/daemon/dist/domain/node-inventory.js +28 -0
  322. package/daemon/dist/domain/node-inventory.js.map +1 -1
  323. package/daemon/dist/domain/node-launcher.d.ts +11 -0
  324. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  325. package/daemon/dist/domain/node-launcher.js +23 -7
  326. package/daemon/dist/domain/node-launcher.js.map +1 -1
  327. package/daemon/dist/domain/occupant-invalidator.d.ts +4 -1
  328. package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
  329. package/daemon/dist/domain/occupant-invalidator.js +10 -2
  330. package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
  331. package/daemon/dist/domain/operation-correlation.d.ts +1 -1
  332. package/daemon/dist/domain/operation-correlation.d.ts.map +1 -1
  333. package/daemon/dist/domain/operation-correlation.js +1 -1
  334. package/daemon/dist/domain/operation-correlation.js.map +1 -1
  335. package/daemon/dist/domain/outbox-handler.d.ts +50 -0
  336. package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
  337. package/daemon/dist/domain/outbox-handler.js +255 -1
  338. package/daemon/dist/domain/outbox-handler.js.map +1 -1
  339. package/daemon/dist/domain/parked-query.d.ts.map +1 -1
  340. package/daemon/dist/domain/parked-query.js +3 -1
  341. package/daemon/dist/domain/parked-query.js.map +1 -1
  342. package/daemon/dist/domain/permission-account.d.ts +28 -1
  343. package/daemon/dist/domain/permission-account.d.ts.map +1 -1
  344. package/daemon/dist/domain/permission-account.js +55 -11
  345. package/daemon/dist/domain/permission-account.js.map +1 -1
  346. package/daemon/dist/domain/permission-drift.d.ts +2 -0
  347. package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
  348. package/daemon/dist/domain/permission-drift.js.map +1 -1
  349. package/daemon/dist/domain/pi-compaction-request-store.d.ts +16 -0
  350. package/daemon/dist/domain/pi-compaction-request-store.d.ts.map +1 -0
  351. package/daemon/dist/domain/pi-compaction-request-store.js +40 -0
  352. package/daemon/dist/domain/pi-compaction-request-store.js.map +1 -0
  353. package/daemon/dist/domain/pi-compaction-service.d.ts +82 -0
  354. package/daemon/dist/domain/pi-compaction-service.d.ts.map +1 -0
  355. package/daemon/dist/domain/pi-compaction-service.js +229 -0
  356. package/daemon/dist/domain/pi-compaction-service.js.map +1 -0
  357. package/daemon/dist/domain/process-limits.d.ts +37 -0
  358. package/daemon/dist/domain/process-limits.d.ts.map +1 -0
  359. package/daemon/dist/domain/process-limits.js +69 -0
  360. package/daemon/dist/domain/process-limits.js.map +1 -0
  361. package/daemon/dist/domain/process-table.d.ts +9 -0
  362. package/daemon/dist/domain/process-table.d.ts.map +1 -1
  363. package/daemon/dist/domain/process-table.js +21 -4
  364. package/daemon/dist/domain/process-table.js.map +1 -1
  365. package/daemon/dist/domain/proof/judgments.d.ts +7 -0
  366. package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
  367. package/daemon/dist/domain/proof/judgments.js +27 -1
  368. package/daemon/dist/domain/proof/judgments.js.map +1 -1
  369. package/daemon/dist/domain/ps-projection.d.ts +2 -1
  370. package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
  371. package/daemon/dist/domain/ps-projection.js +6 -1
  372. package/daemon/dist/domain/ps-projection.js.map +1 -1
  373. package/daemon/dist/domain/queue-erasure.d.ts +18 -7
  374. package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
  375. package/daemon/dist/domain/queue-erasure.js +270 -41
  376. package/daemon/dist/domain/queue-erasure.js.map +1 -1
  377. package/daemon/dist/domain/queue-repository.d.ts +81 -16
  378. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  379. package/daemon/dist/domain/queue-repository.js +325 -76
  380. package/daemon/dist/domain/queue-repository.js.map +1 -1
  381. package/daemon/dist/domain/queue-stuck-sweep.d.ts +3 -0
  382. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  383. package/daemon/dist/domain/queue-stuck-sweep.js +90 -30
  384. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  385. package/daemon/dist/domain/queue-transition-log.d.ts +5 -3
  386. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  387. package/daemon/dist/domain/queue-transition-log.js +9 -6
  388. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  389. package/daemon/dist/domain/queue-wake-ladder.d.ts +8 -0
  390. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  391. package/daemon/dist/domain/queue-wake-ladder.js +245 -41
  392. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  393. package/daemon/dist/domain/queue-wake-repository.d.ts +2 -1
  394. package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
  395. package/daemon/dist/domain/queue-wake-repository.js +31 -4
  396. package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
  397. package/daemon/dist/domain/restore-check-service.d.ts +23 -0
  398. package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
  399. package/daemon/dist/domain/restore-check-service.js +198 -12
  400. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  401. package/daemon/dist/domain/restore-orchestrator.d.ts +64 -3
  402. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  403. package/daemon/dist/domain/restore-orchestrator.js +335 -82
  404. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  405. package/daemon/dist/domain/restore-plan-preview.d.ts +28 -1
  406. package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
  407. package/daemon/dist/domain/restore-plan-preview.js +17 -5
  408. package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
  409. package/daemon/dist/domain/restore-preconditions.d.ts +26 -0
  410. package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
  411. package/daemon/dist/domain/restore-preconditions.js +63 -1
  412. package/daemon/dist/domain/restore-preconditions.js.map +1 -1
  413. package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
  414. package/daemon/dist/domain/resume-metadata-refresher.js +4 -1
  415. package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
  416. package/daemon/dist/domain/resume-token-validation.d.ts +3 -1
  417. package/daemon/dist/domain/resume-token-validation.d.ts.map +1 -1
  418. package/daemon/dist/domain/resume-token-validation.js +6 -3
  419. package/daemon/dist/domain/resume-token-validation.js.map +1 -1
  420. package/daemon/dist/domain/return-route.d.ts +73 -0
  421. package/daemon/dist/domain/return-route.d.ts.map +1 -0
  422. package/daemon/dist/domain/return-route.js +124 -0
  423. package/daemon/dist/domain/return-route.js.map +1 -0
  424. package/daemon/dist/domain/rig-delivery-drain.d.ts +46 -0
  425. package/daemon/dist/domain/rig-delivery-drain.d.ts.map +1 -0
  426. package/daemon/dist/domain/rig-delivery-drain.js +128 -0
  427. package/daemon/dist/domain/rig-delivery-drain.js.map +1 -0
  428. package/daemon/dist/domain/rig-expansion-service.js +1 -1
  429. package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
  430. package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
  431. package/daemon/dist/domain/rig-lifecycle-service.js +4 -1
  432. package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
  433. package/daemon/dist/domain/rig-repository.d.ts +12 -0
  434. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  435. package/daemon/dist/domain/rig-repository.js +73 -0
  436. package/daemon/dist/domain/rig-repository.js.map +1 -1
  437. package/daemon/dist/domain/rig-teardown.d.ts +22 -3
  438. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  439. package/daemon/dist/domain/rig-teardown.js +99 -20
  440. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  441. package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
  442. package/daemon/dist/domain/rigspec-codec.js +9 -0
  443. package/daemon/dist/domain/rigspec-codec.js.map +1 -1
  444. package/daemon/dist/domain/rigspec-exporter.d.ts +6 -0
  445. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  446. package/daemon/dist/domain/rigspec-exporter.js +30 -0
  447. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  448. package/daemon/dist/domain/rigspec-instantiator.d.ts +22 -2
  449. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  450. package/daemon/dist/domain/rigspec-instantiator.js +82 -23
  451. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  452. package/daemon/dist/domain/rigspec-preflight.d.ts +1 -1
  453. package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
  454. package/daemon/dist/domain/rigspec-preflight.js +16 -1
  455. package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
  456. package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  457. package/daemon/dist/domain/rigspec-schema.js +44 -1
  458. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  459. package/daemon/dist/domain/rosters.d.ts +12 -0
  460. package/daemon/dist/domain/rosters.d.ts.map +1 -1
  461. package/daemon/dist/domain/rosters.js +17 -4
  462. package/daemon/dist/domain/rosters.js.map +1 -1
  463. package/daemon/dist/domain/runner-channel.d.ts +33 -0
  464. package/daemon/dist/domain/runner-channel.d.ts.map +1 -0
  465. package/daemon/dist/domain/runner-channel.js +179 -0
  466. package/daemon/dist/domain/runner-channel.js.map +1 -0
  467. package/daemon/dist/domain/runner-grant-launch.js +2 -2
  468. package/daemon/dist/domain/runtime-adapter.d.ts +2 -0
  469. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  470. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  471. package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -1
  472. package/daemon/dist/domain/runtime-switch-materials.js +4 -3
  473. package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
  474. package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
  475. package/daemon/dist/domain/scope/scope-audit.js +55 -3
  476. package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
  477. package/daemon/dist/domain/seat-attention-reconciler.d.ts +6 -4
  478. package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
  479. package/daemon/dist/domain/seat-attention-reconciler.js +17 -10
  480. package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
  481. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  482. package/daemon/dist/domain/seat-delivery-guard.js +2 -1
  483. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  484. package/daemon/dist/domain/seat-handover-service.d.ts +27 -4
  485. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  486. package/daemon/dist/domain/seat-handover-service.js +209 -64
  487. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  488. package/daemon/dist/domain/seat-identity-reconciler.d.ts +8 -1
  489. package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
  490. package/daemon/dist/domain/seat-identity-reconciler.js +52 -12
  491. package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
  492. package/daemon/dist/domain/seat-launch-environment.d.ts +3 -2
  493. package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
  494. package/daemon/dist/domain/seat-launch-environment.js +16 -4
  495. package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
  496. package/daemon/dist/domain/seat-lifecycle-service.d.ts +21 -4
  497. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  498. package/daemon/dist/domain/seat-lifecycle-service.js +68 -2
  499. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  500. package/daemon/dist/domain/seat-restart-in-place.d.ts +9 -2
  501. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  502. package/daemon/dist/domain/seat-restart-in-place.js +34 -2
  503. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  504. package/daemon/dist/domain/seat-runtime-switch-service.d.ts +4 -0
  505. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  506. package/daemon/dist/domain/seat-runtime-switch-service.js +9 -3
  507. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  508. package/daemon/dist/domain/seat-status-service.d.ts +4 -0
  509. package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
  510. package/daemon/dist/domain/seat-status-service.js +31 -6
  511. package/daemon/dist/domain/seat-status-service.js.map +1 -1
  512. package/daemon/dist/domain/session-name.d.ts +13 -0
  513. package/daemon/dist/domain/session-name.d.ts.map +1 -1
  514. package/daemon/dist/domain/session-name.js +77 -0
  515. package/daemon/dist/domain/session-name.js.map +1 -1
  516. package/daemon/dist/domain/session-registry.d.ts +7 -1
  517. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  518. package/daemon/dist/domain/session-registry.js +7 -4
  519. package/daemon/dist/domain/session-registry.js.map +1 -1
  520. package/daemon/dist/domain/session-transport.d.ts +16 -3
  521. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  522. package/daemon/dist/domain/session-transport.js +161 -16
  523. package/daemon/dist/domain/session-transport.js.map +1 -1
  524. package/daemon/dist/domain/shared-conversation.d.ts +58 -0
  525. package/daemon/dist/domain/shared-conversation.d.ts.map +1 -0
  526. package/daemon/dist/domain/shared-conversation.js +98 -0
  527. package/daemon/dist/domain/shared-conversation.js.map +1 -0
  528. package/daemon/dist/domain/shared-history-selection.d.ts +1 -0
  529. package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -1
  530. package/daemon/dist/domain/shared-history-selection.js +3 -1
  531. package/daemon/dist/domain/shared-history-selection.js.map +1 -1
  532. package/daemon/dist/domain/snapshot-capture.d.ts +4 -1
  533. package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
  534. package/daemon/dist/domain/snapshot-capture.js +19 -12
  535. package/daemon/dist/domain/snapshot-capture.js.map +1 -1
  536. package/daemon/dist/domain/startup-phase-timing.d.ts +19 -0
  537. package/daemon/dist/domain/startup-phase-timing.d.ts.map +1 -0
  538. package/daemon/dist/domain/startup-phase-timing.js +23 -0
  539. package/daemon/dist/domain/startup-phase-timing.js.map +1 -0
  540. package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
  541. package/daemon/dist/domain/startup-submission-evidence.js +3 -2
  542. package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
  543. package/daemon/dist/domain/successor-session-launcher.d.ts +9 -0
  544. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  545. package/daemon/dist/domain/successor-session-launcher.js +24 -7
  546. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  547. package/daemon/dist/domain/team-operations.d.ts +6 -6
  548. package/daemon/dist/domain/team-operations.d.ts.map +1 -1
  549. package/daemon/dist/domain/team-operations.js +2 -4
  550. package/daemon/dist/domain/team-operations.js.map +1 -1
  551. package/daemon/dist/domain/terminal/herdr-app-provider.d.ts +6 -0
  552. package/daemon/dist/domain/terminal/herdr-app-provider.d.ts.map +1 -1
  553. package/daemon/dist/domain/terminal/herdr-app-provider.js +23 -1
  554. package/daemon/dist/domain/terminal/herdr-app-provider.js.map +1 -1
  555. package/daemon/dist/domain/terminal-policy.js +1 -1
  556. package/daemon/dist/domain/terminal-policy.js.map +1 -1
  557. package/daemon/dist/domain/types.d.ts +91 -6
  558. package/daemon/dist/domain/types.d.ts.map +1 -1
  559. package/daemon/dist/domain/types.js.map +1 -1
  560. package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
  561. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  562. package/daemon/dist/domain/user-settings/settings-store.js +6 -0
  563. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  564. package/daemon/dist/domain/watchdog-delivery.d.ts +1 -1
  565. package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
  566. package/daemon/dist/domain/watchdog-delivery.js +6 -3
  567. package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
  568. package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
  569. package/daemon/dist/domain/watchdog-jobs-repository.js +1 -0
  570. package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
  571. package/daemon/dist/domain/watchdog-policy-engine.d.ts +9 -0
  572. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  573. package/daemon/dist/domain/watchdog-policy-engine.js +42 -5
  574. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  575. package/daemon/dist/domain/workflow-instance-store.d.ts +3 -2
  576. package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
  577. package/daemon/dist/domain/workflow-instance-store.js +6 -4
  578. package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
  579. package/daemon/dist/domain/workflow-projector.d.ts +48 -0
  580. package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
  581. package/daemon/dist/domain/workflow-projector.js +160 -90
  582. package/daemon/dist/domain/workflow-projector.js.map +1 -1
  583. package/daemon/dist/domain/workflow-reconciliation.d.ts +7 -1
  584. package/daemon/dist/domain/workflow-reconciliation.d.ts.map +1 -1
  585. package/daemon/dist/domain/workflow-reconciliation.js +51 -13
  586. package/daemon/dist/domain/workflow-reconciliation.js.map +1 -1
  587. package/daemon/dist/domain/workflow-runtime.d.ts +5 -3
  588. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  589. package/daemon/dist/domain/workflow-runtime.js +48 -22
  590. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  591. package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts +7 -1
  592. package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
  593. package/daemon/dist/domain/workspace/default-workspace-scaffold.js +35 -7
  594. package/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
  595. package/daemon/dist/gateway-slack-surface.d.ts +2 -2
  596. package/daemon/dist/gateway-slack-surface.d.ts.map +1 -1
  597. package/daemon/dist/gateway-slack-surface.js +1 -1
  598. package/daemon/dist/gateway-slack-surface.js.map +1 -1
  599. package/daemon/dist/index.d.ts.map +1 -1
  600. package/daemon/dist/index.js +13 -2
  601. package/daemon/dist/index.js.map +1 -1
  602. package/daemon/dist/routes/activity.d.ts.map +1 -1
  603. package/daemon/dist/routes/activity.js +105 -2
  604. package/daemon/dist/routes/activity.js.map +1 -1
  605. package/daemon/dist/routes/agent-images.d.ts.map +1 -1
  606. package/daemon/dist/routes/agent-images.js +6 -1
  607. package/daemon/dist/routes/agent-images.js.map +1 -1
  608. package/daemon/dist/routes/attention.d.ts.map +1 -1
  609. package/daemon/dist/routes/attention.js +2 -1
  610. package/daemon/dist/routes/attention.js.map +1 -1
  611. package/daemon/dist/routes/compaction.d.ts.map +1 -1
  612. package/daemon/dist/routes/compaction.js +46 -7
  613. package/daemon/dist/routes/compaction.js.map +1 -1
  614. package/daemon/dist/routes/queue.d.ts +4 -1
  615. package/daemon/dist/routes/queue.d.ts.map +1 -1
  616. package/daemon/dist/routes/queue.js +266 -38
  617. package/daemon/dist/routes/queue.js.map +1 -1
  618. package/daemon/dist/routes/require-sender-identity.d.ts +4 -3
  619. package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
  620. package/daemon/dist/routes/require-sender-identity.js.map +1 -1
  621. package/daemon/dist/routes/restore-check.d.ts.map +1 -1
  622. package/daemon/dist/routes/restore-check.js +18 -0
  623. package/daemon/dist/routes/restore-check.js.map +1 -1
  624. package/daemon/dist/routes/rig-delivery-drain.d.ts +3 -0
  625. package/daemon/dist/routes/rig-delivery-drain.d.ts.map +1 -0
  626. package/daemon/dist/routes/rig-delivery-drain.js +46 -0
  627. package/daemon/dist/routes/rig-delivery-drain.js.map +1 -0
  628. package/daemon/dist/routes/rigspec.d.ts.map +1 -1
  629. package/daemon/dist/routes/rigspec.js +24 -4
  630. package/daemon/dist/routes/rigspec.js.map +1 -1
  631. package/daemon/dist/routes/seat.d.ts.map +1 -1
  632. package/daemon/dist/routes/seat.js +107 -6
  633. package/daemon/dist/routes/seat.js.map +1 -1
  634. package/daemon/dist/routes/sessions.js +14 -3
  635. package/daemon/dist/routes/sessions.js.map +1 -1
  636. package/daemon/dist/routes/startup.d.ts.map +1 -1
  637. package/daemon/dist/routes/startup.js +127 -29
  638. package/daemon/dist/routes/startup.js.map +1 -1
  639. package/daemon/dist/routes/up.d.ts.map +1 -1
  640. package/daemon/dist/routes/up.js +16 -4
  641. package/daemon/dist/routes/up.js.map +1 -1
  642. package/daemon/dist/routes/watchdog.d.ts.map +1 -1
  643. package/daemon/dist/routes/watchdog.js +18 -1
  644. package/daemon/dist/routes/watchdog.js.map +1 -1
  645. package/daemon/dist/routes/workflow.js +1 -1
  646. package/daemon/dist/routes/workflow.js.map +1 -1
  647. package/daemon/dist/server.d.ts +3 -0
  648. package/daemon/dist/server.d.ts.map +1 -1
  649. package/daemon/dist/server.js +13 -0
  650. package/daemon/dist/server.js.map +1 -1
  651. package/daemon/dist/startup.d.ts.map +1 -1
  652. package/daemon/dist/startup.js +57 -16
  653. package/daemon/dist/startup.js.map +1 -1
  654. package/daemon/docs/reference/agent-startup-guide.md +5 -3
  655. package/daemon/docs/reference/community-harness-examples/dsh/README.md +8 -0
  656. package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +139 -5
  657. package/daemon/docs/reference/community-harness-presets.md +2 -0
  658. package/daemon/docs/reference/daemon-http-clients.md +123 -6
  659. package/daemon/docs/reference/getting-started.md +8 -8
  660. package/daemon/docs/reference/harness-runner-contract.md +91 -1
  661. package/daemon/docs/reference/herdr-app.md +6 -0
  662. package/daemon/docs/reference/hosted-members.md +4 -2
  663. package/daemon/docs/reference/network-connector.md +4 -3
  664. package/daemon/docs/reference/queue-erasure.md +16 -1
  665. package/daemon/docs/reference/quickstart.md +2 -2
  666. package/daemon/docs/reference/rig-spec.md +166 -0
  667. package/daemon/docs/reference/rosters.md +9 -0
  668. package/daemon/docs/reference/sdlc-conventions.md +5 -1
  669. package/daemon/docs/reference/slack-app-setup.md +39 -21
  670. package/daemon/docs/reference/whats-new.md +294 -6
  671. package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +23 -0
  672. package/daemon/specs/agents/shared/skills/core/openrig-software-factory/references/worked-example.md +1 -1
  673. package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +2 -0
  674. package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +22 -6
  675. package/daemon/specs/rigs/launch/factory/guidance/lead-first-move.md +26 -5
  676. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +92 -18
  677. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +9 -6
  678. package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +12 -0
  679. package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +26 -5
  680. package/dist/acp/connector.js +1 -1
  681. package/dist/acp/connector.js.map +1 -1
  682. package/dist/build-info.js +3 -3
  683. package/dist/cli-error.d.ts.map +1 -1
  684. package/dist/cli-error.js +7 -1
  685. package/dist/cli-error.js.map +1 -1
  686. package/dist/client.d.ts +2 -1
  687. package/dist/client.d.ts.map +1 -1
  688. package/dist/client.js +3 -2
  689. package/dist/client.js.map +1 -1
  690. package/dist/commands/ask.d.ts.map +1 -1
  691. package/dist/commands/ask.js +92 -11
  692. package/dist/commands/ask.js.map +1 -1
  693. package/dist/commands/broadcast.js +9 -5
  694. package/dist/commands/broadcast.js.map +1 -1
  695. package/dist/commands/compact.d.ts +3 -4
  696. package/dist/commands/compact.d.ts.map +1 -1
  697. package/dist/commands/compact.js +76 -16
  698. package/dist/commands/compact.js.map +1 -1
  699. package/dist/commands/config-init-workspace.d.ts.map +1 -1
  700. package/dist/commands/config-init-workspace.js +3 -0
  701. package/dist/commands/config-init-workspace.js.map +1 -1
  702. package/dist/commands/config.d.ts.map +1 -1
  703. package/dist/commands/config.js +2 -0
  704. package/dist/commands/config.js.map +1 -1
  705. package/dist/commands/down.d.ts.map +1 -1
  706. package/dist/commands/down.js +7 -1
  707. package/dist/commands/down.js.map +1 -1
  708. package/dist/commands/environment.js +1 -1
  709. package/dist/commands/environment.js.map +1 -1
  710. package/dist/commands/export.d.ts.map +1 -1
  711. package/dist/commands/export.js +2 -1
  712. package/dist/commands/export.js.map +1 -1
  713. package/dist/commands/fork.d.ts.map +1 -1
  714. package/dist/commands/fork.js +2 -0
  715. package/dist/commands/fork.js.map +1 -1
  716. package/dist/commands/launch.d.ts.map +1 -1
  717. package/dist/commands/launch.js +11 -3
  718. package/dist/commands/launch.js.map +1 -1
  719. package/dist/commands/network.d.ts +2 -0
  720. package/dist/commands/network.d.ts.map +1 -1
  721. package/dist/commands/network.js +14 -1
  722. package/dist/commands/network.js.map +1 -1
  723. package/dist/commands/ps.d.ts +28 -0
  724. package/dist/commands/ps.d.ts.map +1 -1
  725. package/dist/commands/ps.js +76 -2
  726. package/dist/commands/ps.js.map +1 -1
  727. package/dist/commands/queue.d.ts +1 -1
  728. package/dist/commands/queue.d.ts.map +1 -1
  729. package/dist/commands/queue.js +350 -29
  730. package/dist/commands/queue.js.map +1 -1
  731. package/dist/commands/restore.d.ts.map +1 -1
  732. package/dist/commands/restore.js +6 -1
  733. package/dist/commands/restore.js.map +1 -1
  734. package/dist/commands/rig.d.ts +2 -0
  735. package/dist/commands/rig.d.ts.map +1 -1
  736. package/dist/commands/rig.js +36 -2
  737. package/dist/commands/rig.js.map +1 -1
  738. package/dist/commands/roster.d.ts +3 -0
  739. package/dist/commands/roster.d.ts.map +1 -1
  740. package/dist/commands/seat.d.ts.map +1 -1
  741. package/dist/commands/seat.js +128 -9
  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 +47 -6
  745. package/dist/commands/send.js.map +1 -1
  746. package/dist/commands/setup.d.ts.map +1 -1
  747. package/dist/commands/setup.js +5 -3
  748. package/dist/commands/setup.js.map +1 -1
  749. package/dist/commands/slack.d.ts +2 -1
  750. package/dist/commands/slack.d.ts.map +1 -1
  751. package/dist/commands/slack.js +38 -2
  752. package/dist/commands/slack.js.map +1 -1
  753. package/dist/commands/terminal.d.ts.map +1 -1
  754. package/dist/commands/terminal.js +5 -5
  755. package/dist/commands/terminal.js.map +1 -1
  756. package/dist/commands/up.d.ts.map +1 -1
  757. package/dist/commands/up.js +10 -0
  758. package/dist/commands/up.js.map +1 -1
  759. package/dist/commands/workflow.d.ts.map +1 -1
  760. package/dist/commands/workflow.js +10 -4
  761. package/dist/commands/workflow.js.map +1 -1
  762. package/dist/config-store.d.ts +3 -1
  763. package/dist/config-store.d.ts.map +1 -1
  764. package/dist/config-store.js +5 -0
  765. package/dist/config-store.js.map +1 -1
  766. package/dist/daemon-lifecycle.d.ts.map +1 -1
  767. package/dist/daemon-lifecycle.js +1 -0
  768. package/dist/daemon-lifecycle.js.map +1 -1
  769. package/dist/lib/bundle-check.d.ts.map +1 -1
  770. package/dist/lib/bundle-check.js +33 -3
  771. package/dist/lib/bundle-check.js.map +1 -1
  772. package/dist/lib/model-observation.d.ts.map +1 -1
  773. package/dist/lib/model-observation.js +9 -3
  774. package/dist/lib/model-observation.js.map +1 -1
  775. package/dist/lib/scope/scope-audit.d.ts.map +1 -1
  776. package/dist/lib/scope/scope-audit.js +55 -3
  777. package/dist/lib/scope/scope-audit.js.map +1 -1
  778. package/dist/local-db.d.ts +5 -0
  779. package/dist/local-db.d.ts.map +1 -0
  780. package/dist/local-db.js +23 -0
  781. package/dist/local-db.js.map +1 -0
  782. package/dist/local-origin.d.ts.map +1 -1
  783. package/dist/local-origin.js +2 -17
  784. package/dist/local-origin.js.map +1 -1
  785. package/dist/mcp-server.d.ts.map +1 -1
  786. package/dist/mcp-server.js +170 -27
  787. package/dist/mcp-server.js.map +1 -1
  788. package/dist/person-registration-offer.d.ts.map +1 -1
  789. package/dist/person-registration-offer.js +2 -1
  790. package/dist/person-registration-offer.js.map +1 -1
  791. package/dist/sender-identity.d.ts +18 -6
  792. package/dist/sender-identity.d.ts.map +1 -1
  793. package/dist/sender-identity.js +67 -7
  794. package/dist/sender-identity.js.map +1 -1
  795. package/dist/terminal-window-rex.d.ts +1 -1
  796. package/dist/terminal-window-rex.d.ts.map +1 -1
  797. package/dist/terminal-window-rex.js +3 -2
  798. package/dist/terminal-window-rex.js.map +1 -1
  799. package/dist/terminal-window.js +3 -3
  800. package/dist/terminal-window.js.map +1 -1
  801. package/package.json +2 -2
  802. package/tui/dist/config/config-model.js +1 -1
  803. package/tui/dist/config/config-model.js.map +1 -1
  804. package/tui/dist/daemon-client.d.ts +3 -1
  805. package/tui/dist/daemon-client.d.ts.map +1 -1
  806. package/tui/dist/daemon-client.js +6 -3
  807. package/tui/dist/daemon-client.js.map +1 -1
  808. package/tui/dist/hydrate.d.ts.map +1 -1
  809. package/tui/dist/hydrate.js +31 -1
  810. package/tui/dist/hydrate.js.map +1 -1
  811. package/tui/dist/render.d.ts.map +1 -1
  812. package/tui/dist/render.js +106 -15
  813. package/tui/dist/render.js.map +1 -1
  814. package/tui/dist/types.d.ts +2 -0
  815. package/tui/dist/types.d.ts.map +1 -1
  816. package/ui/dist/assets/{index-BvUEh33d.js → index-1O1f3A7K.js} +55 -55
  817. package/ui/dist/index.html +1 -1
@@ -42,10 +42,11 @@ They are recognized from each harness's English prompt text.
42
42
  pre-approves N tool permissions" (from the folder's `.claude/settings.json`): OpenRig never
43
43
  answers it, not even with `recovery.auto_drive_provider_prompts`, because its default choice
44
44
  declines those permissions (or exits) and approving them is your call. With that setting on,
45
- the plain workspace trust prompt is answered only when its options are exactly "No, exit" and
45
+ when a Claude Code seat is resumed, the plain workspace trust prompt is answered only when its options are exactly "No, exit" and
46
46
  "Yes, I trust this folder": Claude Code 2.1.322 opens it on "No, exit", so OpenRig moves the
47
47
  selection down once and presses Enter only after it reads the focus on "Yes". Any other option
48
48
  set, a prompt drawn without a cursor or a focus that does not reach "Yes" gets no confirmation.
49
+ A fresh launch still stops at the trust prompt for you to answer.
49
50
 
50
51
  ## Continue a Codex fork whose child ID arrived late
51
52
 
@@ -441,7 +442,7 @@ Each startup file and action specifies when it applies:
441
442
  - `restore` — delivered when a seat is restored without its earlier conversation: a restore whose resume falls back to a fresh conversation, or a retried start
442
443
  - Default: `[fresh_start, restore]` (both)
443
444
 
444
- **An exact resume delivers neither.** When a restore reopens the seat's saved conversation (`rig up <rig> --existing` with a resume token), OpenRig types no startup actions and delivers no startup files, `restore` ones included: the conversation already has them, and typing them again would add turns to it. The one exception: the guidance file's managed blocks are brought up to date before the harness starts. A missing block is put back, and a stale one is refreshed (see below).
445
+ **An exact resume delivers neither.** When a restore reopens the seat's saved conversation (`rig up <rig> --existing` with a resume token), OpenRig types no startup actions and delivers no startup files, `restore` ones included: the conversation already has them, and typing them again would add turns to it. The one exception: the guidance file's managed blocks are brought up to date before the harness starts. A missing block is put back, except on an eligible Codex resume, where it goes with the resume instead (see [Codex guidance at launch](#codex-guidance-at-launch)), and a stale one is refreshed (see below).
445
446
 
446
447
  **A seat handover does the same put-back.** Before a fresh, fork or rebuild successor starts, the handover puts the seat's missing managed guidance blocks back in its guidance file from the saved startup context. That's the rig's Claude file (`CLAUDE.md`, or `CLAUDE.local.md` when the rig uses it) for Claude, and `AGENTS.md` for Codex, Pi and omp. So a seat rebuilt into a new working directory keeps its guidance.
447
448
 
@@ -475,6 +476,7 @@ running seat only through the action in the last column.
475
476
  | Working directory | `rig seat set-cwd`, shown by `rig seat status` as **Working directory for future launches** | The directory it started in | `rig seat launch --fresh --stop` (a blank conversation) or `rig handover --source rebuild` (durable context); [details](#change-an-existing-seats-working-directory) |
476
477
  | Runtime home (`CLAUDE_CONFIG_DIR`, `CODEX_HOME`) of an existing seat | `rig seat record-runtime-home`, shown by `rig seat runtime-home` | The home it started with; whether a running process uses the recorded one isn't checked | Its next resume, restore or launch; [details](#record-where-an-existing-seats-conversation-lives) |
477
478
  | Launch wrapper (`launch_wrapper`) | Member `launch_wrapper` in `rig.yaml` (`pi`, `codex` and `claude-code` only; `launch_wrapper: []` clears, omitting retains on existing-seat apply; surfaced as `launchWrapper` in `rig ps --nodes --json` when set; no live `rig seat` edit verb) | The literal wrapper argv that prefixes the resolved Codex entry or Claude executable (preserving TTY stdio) or the resolved Pi child executable inside OpenRig's host runner (preserving RPC pipes and runner lifecycle) when that session launched; a configured prefix is not proof of isolation, tooling, memory or governance | Supported spec create/recreate/apply flow, then the seat's next managed launch, resume, restore or handover (fails closed when wrapper support is unavailable; never falls back to bare child launch; [details](rig-spec.md#launch-wrapper-runtime-pi-and-codex)) |
479
+ | Process limits (`process_limits`) | Member `process_limits: { tasks_max: N }` in `rig.yaml` (Linux/systemd hosts only; opt-in per seat, no default; `{}` clears, omitting retains on existing-seat apply) | The task limit (`TasksMax=N`) of the systemd user scope the seat's own pane starts in, outside the terminal server's scope; other seats, the daemon and the terminal server stay outside it | The seat's next fresh launch, relaunch, restore, resume, handover or runtime switch; a running seat is never moved. A fresh launch the host can't cap is not started and says why; a restore, resume, handover, runtime switch or restart in place goes ahead without the limit, with a warning ([details](rig-spec.md#process-limits-linuxsystemd)) |
478
480
  | Startup files and skills | The spec's startup files, skills and actions | What its conversation read when it started; editing a file afterwards doesn't reach it | A fresh launch or a handover delivers them again; for the running seat, send or walk the change (`rig walk <seat> --through <files>`) |
479
481
  | Guidance blocks (`CLAUDE.md`, `AGENTS.md`) | The seat's startup selection, which OpenRig merges into its guidance file as managed blocks at each start and restore | `rig seat status` **Guidance**: when OpenRig wrote each of its blocks, before or after the session's recorded startup finish (for a claimed session, when OpenRig recorded it). That's chronology, not what the agent has: the harness reads the file earlier in startup, Claude Code reloads it after `/compact` or `/clear`, Codex reads it at session start, and the agent can read it, or be sent it, at any time. OpenRig doesn't record what an agent read | Claude: its next compaction, `/clear` or restart. Codex: its next start. Without either, [tell it](#new-guidance-for-a-running-seat) |
480
482
  | Tools (MCP servers, plugins) | Selected fragments, merged into the harness's own config (`.mcp.json` for Claude, `config.toml` for Codex) | Unknown to OpenRig: registered isn't active, Claude asks before it uses a new server, and no OpenRig command reports which tools a running harness loaded | Check in the harness itself (Claude Code's `/mcp`); a running session may need a restart to pick up newly written config ([runtime config disclosure](#runtime-config-disclosure)) |
@@ -921,7 +923,7 @@ relative to that directory.
921
923
  | `.claude/agents/`, `.claude/plugins/<id>/`, `.claude/extensions/<id>/`; `.agents/<id>.yaml`, `.codex/plugins/<id>/`, `.agents/extensions/<id>/` | When the seat's projection includes subagents, plugins or runtime resources (Claude, then Codex). | Leaves them in place. |
922
924
  | `.claude/skills/<id>/`, `.agents/skills/<id>/` | Only for a seat without seat storage. New Claude and Codex seats keep their skills under `$OPENRIG_HOME/state/seats/`, outside the project. | Leaves them in place. |
923
925
  | The managed compaction preparation folder described in [Claude compaction preparation directory](#claude-compaction-preparation-directory), with its `.gitignore` of `*` and each attempt's `RESTORE-MAP.md` | Managed Claude compaction, unless a preparation root is configured elsewhere. | Leaves it in place. |
924
- | `.rigged-checkpoint.md` | A restore that didn't resume a seat's native conversation (by choice or not) and had a checkpoint to hand it. | Leaves it in place. |
926
+ | `.rigged-checkpoint-<session>-<digest>.md`, named for the seat: its session name made safe for a file name, then the first 8 hex characters of the SHA-256 of the exact name | A restore that didn't resume a seat's native conversation (by choice or not) and had a checkpoint to hand it. Seats restored into one folder each get their own file. | Leaves it in place. |
925
927
 
926
928
  `rig down` leaves a file alone while another seat still uses it: a running seat of the same rig, or any seat of
927
929
  another rig that isn't archived. That is decided file by file. A guidance file is kept while another seat's
@@ -36,6 +36,14 @@ The runner's own defaults for dsh:
36
36
  - **Its version:** the launch record names dsh's version from `dsh --version`. If that fails or takes over 5 seconds, it
37
37
  names the version dsh's ACP handshake reports, marked as such: dsh 0.2.1-rc.2 reports 0.0.1 there.
38
38
 
39
+ ## Optional native input and dedicated wake
40
+
41
+ This copy also implements the optional version-1 [run-bound channel](../../harness-runner-contract.md#optional-run-bound-native-input-and-wake-version-1). Choose the seat's native route explicitly; `runner: true` alone does not change its typed default. The private launch grant stays in this process and is removed from the dsh child environment.
42
+
43
+ Native input uses this runner's existing ACP prompt queue. A native wake gets a dedicated prompt and returns only its actual assistant message chunks after its own terminal ACP response. Later inputs wait behind it; multiple wakes are independent prompts. HTTP receipt retries and SSE reconnects reuse the live process map and do not reissue a prompt. Caller timeout does not cancel native work. Structured native text bypasses the person's slash/Ctrl-C parser, while `/abort` and Ctrl-C typed by a person remain available. Managed native cancellation is not implemented or advertised here.
44
+
45
+ The new channel path is tested with the actual runner process and an offline ACP backend. Earlier native permission/cancel testing of older runner copies does not qualify these new wake semantics or make native a default. See the contract for custody/uncertainty, erased receipts and the separate native-program proof limits.
46
+
39
47
  ## Permissions
40
48
 
41
49
  The runner submits each request to OpenRig, which asks one person:
@@ -163,6 +163,17 @@ function openrigEndpoint() {
163
163
  return base && token ? { base: base.replace(/\/+$/, ""), token } : null;
164
164
  }
165
165
 
166
+ function runnerFrameBound(buffer) {
167
+ const overhead = 64 * 1024;
168
+ const fallback = { limit: 6 * 1024 * 1024 + overhead };
169
+ if (!buffer.startsWith(": runner-frame-chars=") || !buffer.includes("\n")) return fallback;
170
+ const header = /^: runner-frame-chars=([0-9]+)\n/.exec(buffer);
171
+ const chars = header ? Number(header[1]) : NaN;
172
+ if (!Number.isSafeInteger(chars) || chars < 1 || chars > Number.MAX_SAFE_INTEGER - overhead)
173
+ throw new Error("Invalid channel frame size");
174
+ return { limit: chars + overhead, chars };
175
+ }
176
+
166
177
  async function callOpenRig(method, path, body, timeoutMs) {
167
178
  const endpoint = openrigEndpoint();
168
179
  if (!endpoint) return { status: 0, body: null };
@@ -274,8 +285,100 @@ async function main() {
274
285
  child.stdin.on("error", () => {});
275
286
  const peer = new AgentPeer(child, (line) => say(`[dsh] ${line}`));
276
287
  const state = { sessionId: null, turn: 0, running: false, cancelRequestedAt: null, holding: false, refused: false, queue: [], asks: new Set(), lastActive: 0, asking: 0, waiting: 0, resolvedAsk: null };
288
+ const managed = new Map();
289
+ const channelStop = new AbortController();
290
+ let activeManaged = null;
291
+ let managedQuarantined = false;
292
+ const permanentRunRefusal = (status, code) => [401, 403, 404, 409, 410].includes(status)
293
+ && !["runner_hello_required", "runner_grant_pending", "runner_grant_unverified"].includes(code)
294
+ && ([401, 403].includes(status) || ["runner_grant_required", "runner_grant_revoked", "runner_grant_stale"].includes(code));
295
+ const channelPost = async (body) => {
296
+ while (!channelStop.signal.aborted) {
297
+ const result = await callOpenRig("POST", "/api/activity/runner-channel", body, POST_TIMEOUT_MS);
298
+ if (result.status >= 200 && result.status < 300) return true;
299
+ if ([401, 403, 404, 409, 410].includes(result.status) && !["runner_hello_required", "runner_grant_pending", "runner_grant_unverified"].includes(result.body?.code)) {
300
+ if (permanentRunRefusal(result.status, result.body?.code)) managedQuarantined = true;
301
+ return false;
302
+ }
303
+ await sleep(250);
304
+ }
305
+ return false;
306
+ };
307
+ const report = (entry, type, result) => {
308
+ const f = entry.frame;
309
+ if (result) entry.result = result;
310
+ entry.reports = entry.reports.then(() => channelPost({ type, runId: f.runId, requestId: f.requestId, sequence: f.sequence,
311
+ ...(entry.nativeTurnId ? { nativeTurnId: entry.nativeTurnId } : {}), ...(result ? { result } : {}) }));
312
+ };
313
+ const submitted = (entry) => {
314
+ if (!entry || entry.submitted) return;
315
+ entry.submitted = true; report(entry, "submitted");
316
+ };
317
+ const acceptFrame = async (raw) => {
318
+ if (agentExited || stopping || raw.version !== 1 || raw.runId !== env.OPENRIG_RUN_ID || !["input", "wake"].includes(raw.kind)
319
+ || !Number.isSafeInteger(raw.sequence) || raw.sequence < 1 || typeof raw.requestId !== "string"
320
+ || typeof (raw.kind === "wake" ? raw.payload?.question : raw.payload?.text) !== "string") return;
321
+ const frame = { version: 1, runId: raw.runId, requestId: raw.requestId, sequence: raw.sequence, kind: raw.kind,
322
+ payload: raw.kind === "wake" ? { question: raw.payload.question } : { text: raw.payload.text } };
323
+ if ([...managed.values()].some(entry => entry.frame.sequence === frame.sequence && entry.frame.requestId !== frame.requestId)) throw new Error("Conflicting native sequence");
324
+ const old = managed.get(frame.requestId);
325
+ if (old) { if (JSON.stringify(old.frame) !== JSON.stringify(frame)) throw new Error("Conflicting native request"); await old.acceptance; return; }
326
+ const entry = { frame, state: "accepting", reports: Promise.resolve(), answer: [] };
327
+ managed.set(frame.requestId, entry);
328
+ entry.acceptance = (async () => {
329
+ if (!await channelPost({ type: "ack", runId: frame.runId, requestId: frame.requestId, sequence: frame.sequence, state: "accepted" })) { entry.state = "unavailable"; pump(); return; }
330
+ entry.state = "queued";
331
+ const before = state.queue.findIndex(other => typeof other !== "string" && other.frame.sequence > frame.sequence);
332
+ if (before < 0) state.queue.push(entry); else state.queue.splice(before, 0, entry);
333
+ pump();
334
+ })();
335
+ await entry.acceptance;
336
+ };
337
+ const connectChannel = async () => {
338
+ let retained = false, cursor = 0;
339
+ const endpoint = openrigEndpoint();
340
+ if (!endpoint?.token.startsWith("oag_") || !env.OPENRIG_RUN_ID || !env.OPENRIG_ACTIVITY_HOOK_TOKEN) return;
341
+ while (!channelStop.signal.aborted) {
342
+ try {
343
+ const hello = await callOpenRig("POST", "/api/activity/runner-channel", { type: "hello", version: 1, runId: env.OPENRIG_RUN_ID, retained,
344
+ capabilities: { input: !managedQuarantined, wake: !managedQuarantined, cancel: false } }, POST_TIMEOUT_MS);
345
+ if (permanentRunRefusal(hello.status, hello.body?.code)) { managedQuarantined = true; return; }
346
+ if (hello.status !== 200) throw new Error("Channel handshake unavailable");
347
+ retained = true;
348
+ const response = await fetch(`${endpoint.base}/api/activity/runner-channel`, { signal: channelStop.signal,
349
+ headers: { authorization: `Bearer ${endpoint.token}`, "Last-Event-ID": String(cursor) } });
350
+ if (!response.ok) {
351
+ const failure = await response.json().catch(() => null);
352
+ if (permanentRunRefusal(response.status, failure?.code)) { managedQuarantined = true; return; }
353
+ throw new Error("Channel unavailable");
354
+ }
355
+ if (!response.body) throw new Error("Channel unavailable");
356
+ const reader = response.body.pipeThrough(new TextDecoderStream()).getReader(); let buffer = "";
357
+ try {
358
+ for (;;) {
359
+ const part = await reader.read(); if (part.done) break;
360
+ buffer += part.value.replace(/\r/g, "");
361
+ let end;
362
+ while ((end = buffer.indexOf("\n\n")) >= 0) {
363
+ const bound = runnerFrameBound(buffer);
364
+ if (end > bound.limit) throw new Error("Channel frame too large");
365
+ const block = buffer.slice(0, end); buffer = buffer.slice(end + 2);
366
+ const data = block.split("\n").filter(line => line.startsWith("data: ")).map(line => line.slice(6)).join("\n");
367
+ if (bound.chars !== undefined && data.length !== bound.chars) throw new Error("Channel frame size mismatch");
368
+ if (!data) continue;
369
+ const frame = JSON.parse(data); if (frame.runId !== env.OPENRIG_RUN_ID || !Number.isSafeInteger(frame.sequence) || frame.sequence < 1) throw new Error("Invalid channel frame");
370
+ cursor = Math.max(cursor, frame.sequence); void acceptFrame(frame).catch(() => {});
371
+ }
372
+ if (buffer.length > runnerFrameBound(buffer).limit) throw new Error("Channel frame too large");
373
+ }
374
+ } finally { await reader.cancel().catch(() => {}); }
375
+ } catch { /* Reconnect with this process's retained map; never replay native operations. */ }
376
+ if (!channelStop.signal.aborted) await sleep(250);
377
+ }
378
+ };
277
379
  const inflight = new Set();
278
380
  const track = (promise) => { inflight.add(promise); promise.finally(() => inflight.delete(promise)); return promise; };
381
+ let activeTurn = Promise.resolve();
279
382
  let agentExited = false;
280
383
  let stopping = false;
281
384
  let heartbeat;
@@ -295,7 +398,11 @@ async function main() {
295
398
  clearInterval(heartbeat);
296
399
  clearInterval(workBeat);
297
400
  restoreTty();
298
- await Promise.race([Promise.allSettled([...inflight, activity.flushed()]), sleep(2_000)]);
401
+ await Promise.race([(async () => {
402
+ await activeTurn;
403
+ await Promise.allSettled([...inflight, activity.flushed(), ...[...managed.values()].map(entry => entry.reports)]);
404
+ })(), sleep(2_000)]);
405
+ channelStop.abort();
299
406
  process.exit(code);
300
407
  };
301
408
  const fatal = async (message, code) => {
@@ -324,9 +431,13 @@ async function main() {
324
431
  peer.onNotification("session/update", (params) => {
325
432
  if (params.sessionId !== state.sessionId || !params.update) return;
326
433
  const update = params.update;
434
+ if (activeManaged) submitted(activeManaged);
327
435
  const reporting = working();
328
436
  if (update.sessionUpdate === "agent_message_chunk") {
329
- if (update.content?.type === "text") process.stdout.write(update.content.text);
437
+ if (update.content?.type === "text") {
438
+ process.stdout.write(update.content.text);
439
+ if (activeManaged?.frame.kind === "wake") activeManaged.answer.push(update.content.text);
440
+ }
330
441
  if (reporting && Date.now() - state.lastActive >= ACTIVE_EVERY_MS) { state.lastActive = Date.now(); activity.post("active", "agent_message"); }
331
442
  } else if (update.sessionUpdate === "tool_call") {
332
443
  say(`\n[tool] ${update.title ?? "tool"} (${update.kind ?? "other"})`);
@@ -476,7 +587,10 @@ async function main() {
476
587
  for (const ask of state.asks) ask.end("turn_cancelled");
477
588
  };
478
589
 
479
- const runTurn = async (text) => {
590
+ const runTurn = async (input) => {
591
+ const entry = typeof input === "string" ? null : input;
592
+ const text = entry ? (entry.frame.kind === "wake" ? entry.frame.payload.question : entry.frame.payload.text) : input;
593
+ activeManaged = entry;
480
594
  state.running = true;
481
595
  state.turn += 1;
482
596
  state.holding = false;
@@ -486,18 +600,33 @@ async function main() {
486
600
  state.cancelRequestedAt = null;
487
601
  state.lastActive = 0;
488
602
  const turnId = String(state.turn);
603
+ if (entry) { entry.state = "writing"; entry.nativeTurnId = `dsh-prompt-${state.turn}`; }
489
604
  say(`\nyou ▸ ${firstLine(text)}`);
490
605
  activity.post("UserPromptSubmit", "accepted", { turnId });
491
606
  let stopReason;
492
607
  try {
493
608
  const result = await peer.request("session/prompt", { sessionId: state.sessionId, prompt: [{ type: "text", text }] });
609
+ if (entry) submitted(entry);
494
610
  stopReason = String(result?.stopReason ?? "unreported");
495
611
  } catch (error) {
496
- if (agentExited) return;
612
+ if (entry && !entry.submitted && [-32600, -32601, -32602].includes(error.code)) {
613
+ entry.rejected = true; report(entry, "rejected", { kind: entry.frame.kind, reason: "native_prompt_rejected" });
614
+ }
615
+ if (agentExited && !entry) return;
497
616
  say(`\n[openrig-dsh] the turn failed: ${error.message}`);
498
617
  activity.post("Notification", "runtime_error", { turnId });
499
618
  stopReason = "error";
500
619
  }
620
+ if (entry && !entry.rejected) {
621
+ const completion = !entry.submitted ? "unknown" : stopReason === "cancelled" || state.cancelRequestedAt ? "interrupted"
622
+ : stopReason === "end_turn" && (entry.frame.kind !== "wake" || entry.answer.some(text => text.length > 0)) ? "completed"
623
+ : stopReason === "error" ? "failed" : "unknown";
624
+ report(entry, "result", { kind: entry.frame.kind, nativeTurnId: entry.nativeTurnId, completion,
625
+ ...(entry.frame.kind === "wake" ? { answer: completion === "completed" ? entry.answer.join("") : null } : { accepted: entry.submitted === true }),
626
+ ...(!entry.submitted ? { submissionUnknown: true } : {}) });
627
+ }
628
+ if (entry) entry.state = "terminal";
629
+ activeManaged = null;
501
630
  state.running = false;
502
631
  for (const ask of state.asks) ask.end("turn_ended");
503
632
  say(`\n── turn end (${stopReason}) ──`);
@@ -508,7 +637,11 @@ async function main() {
508
637
 
509
638
  const pump = () => {
510
639
  if (state.running || agentExited || state.queue.length === 0) return;
511
- void runTurn(state.queue.shift());
640
+ const index = managedQuarantined ? state.queue.findIndex(input => typeof input === "string") : 0;
641
+ if (index < 0) return;
642
+ const next = state.queue[index];
643
+ if (typeof next !== "string" && [...managed.values()].some(prior => prior.state === "accepting" && prior.frame.sequence < next.frame.sequence)) return;
644
+ activeTurn = runTurn(state.queue.splice(index, 1)[0]);
512
645
  };
513
646
 
514
647
  const submit = (text) => {
@@ -576,6 +709,7 @@ async function main() {
576
709
  say(`[openrig-dsh] DSH_HOME ${home} · DSH_PERMISSION_MODE ${agentEnv.DSH_PERMISSION_MODE}`);
577
710
  say("[openrig-dsh] each submitted message is one prompt; /abort or Ctrl-C cancels the running turn");
578
711
 
712
+ void connectChannel();
579
713
  heartbeat = setInterval(() => { if (!state.running && !state.holding && !agentExited) postIdle("idle_heartbeat"); }, BEAT_MS);
580
714
  // While a turn runs and nothing waits on a person: the turn is still outstanding and dsh is alive. Not progress.
581
715
  workBeat = setInterval(() => {
@@ -193,6 +193,8 @@ one at a time and in order, without making the agent wait. It finds the address
193
193
  - **A runner's full duties** (liveness, input, cancellation and permissions) are in the draft
194
194
  [harness and runner contract](harness-runner-contract.md).
195
195
 
196
+ A runner declaration is not a native-input or wake declaration. The optional [run-bound channel](harness-runner-contract.md#optional-run-bound-native-input-and-wake-version-1) advertises implemented operations through an authenticated live hello; Core supports the declared preset contract family, while hosted Pi-RPC adoption remains separate. The dsh example implements input and dedicated wake, with cancellation false. Typed remains every program's default, native selection is explicit per seat, and a Pi-compatible wrapper does not qualify or adopt another program's native operations.
197
+
196
198
  ## Pi-compatible RPC harnesses (`protocol: pi-rpc`)
197
199
 
198
200
  For a community harness that is a fork of Pi or speaks Pi's CLI and JSONL RPC protocol (such as OmO Native on senpi or Prime Agent), set `protocol: pi-rpc`.
@@ -63,8 +63,9 @@ The daemon reads two tokens from its environment at start:
63
63
  A route whose token isn't set lets every request through. Send a token as `Authorization: Bearer <token>`; the
64
64
  `GET /api/terminal/<name>` routes, the websocket included, also take `?token=<token>`. The CLI sends the terminal token from `OPENRIG_TERMINAL_BEARER_TOKEN`,
65
65
  or else from the file `$OPENRIG_HOME/terminal-token`, which the person writes; the daemon doesn't create it. `rig host
66
- approve|deny` and the TUI's answers to asks send `OPENRIG_AUTH_BEARER_TOKEN` from their environment (`rig host` also
67
- takes `--bearer`), and otherwise the terminal token; refused for want of it, they say what to set.
66
+ approve|deny`, the TUI's answers to asks and the MCP tool `rig_question_answer` (on the answer's writes only) send
67
+ `OPENRIG_AUTH_BEARER_TOKEN` from their environment (`rig host` also takes `--bearer`), and otherwise the terminal token;
68
+ refused for want of it, `rig host` and the TUI say what to set.
68
69
 
69
70
  A wrong or missing token gets HTTP 401. The routes that check `OPENRIG_AUTH_BEARER_TOKEN`, and `/api/transport`
70
71
  and `/api/compaction`, answer `{ "error": "unauthorized", "message", "what_failed", "why_it_matters", "what_to_do" }`.
@@ -180,7 +181,8 @@ With `needs-me.read` supported:
180
181
  `revision` and `about`. `revision` is the request's opaque decision revision: the same value as that row's
181
182
  `decisionRevision`, and what an answer can name as `expectedRevision` so it applies only to the version the person
182
183
  read. `about` lists the requests it concerns by id: a row parked on the person is itself the request, and an ask is
183
- about the open rows blocked on it (at most 100; empty when none are recorded).
184
+ about the open rows blocked on it (the newest 100, with `aboutTruncated: true` when there are more). An empty `about`
185
+ isn't proof that it's about nothing: a request that names it only in its text isn't counted.
184
186
  - **A snapshot watermark:** the response's `watermark` is the newest event `seq` read before the snapshot. Follow
185
187
  `GET /api/events` from it with `Last-Event-ID: <watermark>`: every event after the snapshot is replayed, some possibly
186
188
  already reflected in it. A click that records or changes an answer emits `queue.answer_recorded` even while the set
@@ -192,7 +194,49 @@ With `needs-me.read` supported:
192
194
  footer. `episode` names the park an answer belongs to, or is null. `recordedIdentity` is the identity provenance
193
195
  recorded when the answer row was created. An answer row's own read has `replyTo`, the request it answers. A partial
194
196
  set of choices stays on the request's `humanAnswers` until the whole set is returned. A runner's permission request
195
- or a host pairing request is answered in place, with no answer row.
197
+ or a host pairing request is answered in place, with no answer row. `answersFrom: "this-daemon"` says where they were
198
+ read: an answer another host holds isn't among them, so an empty list isn't proof that nobody answered.
199
+
200
+ ### What a connection supports, and what happened to a delivery (`member-connection.v1`)
201
+
202
+ `GET /api/member-connection/capabilities` lists each delivery route this daemon declares, with what it supports in four
203
+ groups: `observe` (`dialog`, `turnStart`), `control` (`submit`), `nativeIdentity` (`sessionId`, `resume`) and
204
+ `continuity` (`managedCompaction`, `restorePacketConfirmation`, `fork`). The routes are `typed` (OpenRig types into the
205
+ member's terminal; capabilities by runtime, with `*` for any other), `codex-queue` (Codex's own queue command), a hosted
206
+ member's `hosted-trigger`, and a person's `gateway`. A route with `armed: false` is declared but not used: nothing is
207
+ delivered on it until a setting arms it.
208
+
209
+ Each capability reads `supported`, `not-supported`, `unavailable` (the route has it, but this member can't use it now,
210
+ such as a seat with no session recorded as current), `not-applicable` (it means nothing on this route) or `unknown`. A
211
+ missing key means `unknown`. None of them means idle or success, and a declaration isn't readiness: whether a seat has a
212
+ current session comes from what OpenRig has recorded, not from looking at its pane or process. A daemon without the route (HTTP 404) predates the contract: treat
213
+ every capability as unknown and keep using what works today.
214
+
215
+ `?session=<address>` adds `member`: `{ member, route, runtime, capabilities, reason? }` for the member that address
216
+ names: a person the human registry resolves (or the terminal person's own `human@host`), a hosted member, or a seat. An
217
+ address shaped like a person's, such as `<id>@external`, is a person only when the registry resolves it. A person is
218
+ resolved first, so when the registry can't be read, any address it could resolve to a person (`<id>@external`, or any
219
+ `member@rig`, since a person's id can be spelled that way) comes back unknown, even if a seat or hosted member has that name. That
220
+ answer, and an address none of them has, comes back with `route: null`, every capability `unknown`, and the reason.
221
+
222
+ Each typed send also records what happened to it, in the daemon's `transport.delivery_evidence` event, as
223
+ `outcome: { fact, reporter, route }`. `fact` is `accepted` (typed and submitted, with `renderVerified: true` when
224
+ the screen showed it), `held`, `not-delivered`, `failed-effect-unknown` or `unknown`. A prompt answer typed without Enter on a send that
225
+ succeeded is `unknown`: whether the prompt took it isn't known; if the send failed after typing, it's
226
+ `failed-effect-unknown`. `reporter` says who established it.
227
+ None of them means the member read the work: picking it up is a claim on the row.
228
+
229
+ What reads these declarations:
230
+ - **A handover's packet.** Only a runtime declared with `continuity.restorePacketConfirmation` has its input box read
231
+ until the restore or priming packet leaves it. On any other runtime the handover's result carries
232
+ `restorePacket: { status: "accepted", reason }`: typed and submitted, not seen consumed. `sideEffects.startupContextDelivered`
233
+ stays `true` there for existing readers and means the same thing, accepted; read `restorePacket` for what was seen.
234
+ - **A send's dialog check.** After a fresh hook, the dialog and picker checks run before typing only on a runtime
235
+ declared with `observe.dialog`. The other screen checks before a send don't read the declaration.
236
+ - **A watchdog's history.** When a send returns, the watchdog's history records its `deliveryFact` and, when the screen
237
+ showed it, `deliveryRenderVerified: true`. Exceptions and receipt reconciliation may have no fact; absence of a fact
238
+ or render flag establishes no positive delivery or verification claim. These are outcome words, not a capability
239
+ gate: the reminder's status, receipts and retries don't change with them.
196
240
 
197
241
  ## Route details
198
242
 
@@ -208,8 +252,8 @@ With `needs-me.read` supported:
208
252
  seats, newest first; `?senderSession=<session>` still returns one sender's. One of the two is required; with
209
253
  both, `senderSession` is used and `rig` is ignored. `limit` defaults to 100. No event is sent when a message is delivered, so read this list to see delivery
210
254
  states.
211
- - **`GET /api/queue/recent-transitions`** returns at most 20 rows. A positive `limit` above 20 is capped at 20;
212
- a missing, zero, negative or unparseable `limit` means 20.
255
+ - **`GET /api/queue/recent-transitions`** returns at most 1,000 rows. A positive `limit` above 1,000 is capped at 1,000;
256
+ a missing, zero, negative or unparseable `limit` defaults to 20.
213
257
  - **`POST /api/transport/send`** takes `urgent: true`, the same as `rig send --urgent`. The daemon records who
214
258
  marked it from the sender identity, not from the body.
215
259
  - **`POST /api/scope/approve`** is what `rig scope slice approve` and `rig scope mission approve` call. The body
@@ -268,3 +312,76 @@ With `needs-me.read` supported:
268
312
  subject to the existing project filter and the newest 500 rows per slice. Counts are recomputed on every list
269
313
  request. `?refresh=1|true` invalidates the separate listing cache, not a stored queue-count snapshot. This
270
314
  resolution does not change the returned slice list or filters.
315
+
316
+
317
+ ## Resume one banked original conversation
318
+
319
+ The opt-in original-only operation reuses `startup-history.v1`. It targets one exact rig and node,
320
+ with a retained snapshot and captured history. Platform boot enrollment remains an operator step.
321
+ These routes use the existing terminal bearer token.
322
+
323
+ 1. Read `GET /api/startup/<rigId>/nodes/<nodeId>/original?snapshotId=<id>&historySessionId=<id>`.
324
+ The preview uses that explicitly retained usable snapshot, even when a newer snapshot exists.
325
+ It returns `revision`, the selected history and current model, effort, cwd and permission.
326
+ `settingsSource.accountHome` describes the seat's current effective home configuration;
327
+ `settingsSource.runtimeHome.uses` describes the home bound to this reviewed attempt, which can differ.
328
+ Neither home selection proves an authenticated account; `accountHome.authentication` remains
329
+ `"unconfirmed"`. A `daemon_environment` home is the daemon fallback, not a seat setting;
330
+ `native_default` means the runtime default.
331
+ 2. POST to the same `/original` path, without query fields, with `action: "resume"`, `snapshotId`,
332
+ `historySessionId`, that `revision`, an `operationId` UUID, and `expectedOriginal` containing the banked
333
+ `nodeId`, `sessionName`, `runtime` (`claude-code` or `codex`) and `nativeId`.
334
+ Keep native conversation IDs in the private bank and request body. They are not returned in diagnostics.
335
+
336
+ The operation keeps the current model, cwd, effort and permission choices. The reviewed
337
+ `settingsSource.runtimeHome.uses` plan can first apply the selected original's recorded home as a new
338
+ revision before launch, rather than using the current home reported by `settingsSource.accountHome`.
339
+ Its original-only native effect uses the retained history and existing selected-history ownership checks.
340
+ A positively established matching original already running returns `code: "already_running_original"`
341
+ and `nativeEffect: false`. A confirmed resume returns
342
+ `code: "resumed"`, with `sourceSessionId`, `resultSessionId` and `operationId`.
343
+
344
+ An unavailable source, changed selection, different occupant, restoring-only result or unconfirmed native
345
+ identity returns a partial result. Existing occupants stay in place. This selected operation never substitutes
346
+ a fresh conversation. Its current-original check needs the existing qualified occupant, pane and native-record
347
+ evidence; a stored resume token by itself is insufficient. A legacy named history that cannot establish the
348
+ banked native identity remains partial. For Codex, the PID/start-time log and transcript are resolved in the
349
+ current selected runtime home used for launch. With no explicit home, the existing default-home and PID-bound
350
+ process-HOME reader supplies the home; the transcript lookup uses that same positively resolved home. Another
351
+ home's copy of the same thread UUID is not selected. These checks also serve conditional sends and record reads.
352
+ If a recorded explicit home changes before its running process is relaunched, its record may be unavailable;
353
+ the check does not borrow another home's copy or change the running process's account.
354
+
355
+ Retain the operation ID after a timeout. Repeating that same request first reconciles current native identity;
356
+ it reports a matching running original or `operation_unconfirmed`, and never dispatches that operation again.
357
+ The correlation survives daemon restart. An operation ID reused with different input returns
358
+ `operation_conflict`. Inspect the recorded operation and seat before selecting any new attempt.
359
+
360
+ A source-level fixture pass establishes the tested ownership, selection and reporting paths. Actual native
361
+ conversation usefulness and authenticated-account continuity need a qualified runtime observation.
362
+
363
+ ## Per-rig delivery drain
364
+
365
+ A maintenance owner can hold automatic queue wakes, watchdog delivery and stuck-sweep findings directed to one rig:
366
+
367
+ - `GET /api/rigs/:rigId/delivery-drain` reads its current control and retained-notice counts.
368
+ - `POST /api/rigs/:rigId/delivery-drain` begins a window, or renews the same window's review deadline:
369
+
370
+ ```json
371
+ {"drainId":"maintenance-window-1","owner":"maintainer@example","reviewAt":"2026-12-01T12:30:00Z"}
372
+ ```
373
+
374
+ - `POST /api/rigs/:rigId/delivery-drain/end` with `{"drainId":"maintenance-window-1"}` explicitly ends that window.
375
+
376
+ Status includes the owner, start, review deadline and drain ID, `retainedWorkCount`, and `nativeStartsDeferred: false`.
377
+ The retained count is pending queue-wake intents plus due watchdog jobs, excluding maintenance review jobs; it is a count of notifications, not unique tasks. Work keeps its existing queue/outbox/job identities. Other destination rigs continue normally; a row's source rig and a watchdog's registering rig are provenance, not drain admission criteria.
378
+
379
+ A deadline prompts the recorded owner through the existing watchdog; it never ends a drain automatically. Review checks and repeat prompts have a five-minute minimum interval, including a past or near deadline. Its review job remains usable even if its owner's rig also has a delivery drain. Repeating BEGIN with the same ID and settings keeps the same window and job; renewal preserves the start. An active window is returned as status if a different ID is requested. A completed window's ID never starts it again.
380
+
381
+ END changes only the named current window and schedules one existing recovery pass for its pending queue notices. Repeating END does not schedule another pass. A delayed END for an earlier window cannot end a later one. `releaseScheduled` reports scheduling, not successful delivery: notices still use current queue state, recipient checks and normal receipts. The END pass adds no retry of failed, uncertain, in-flight, delivered or manually retained input. Completed work reconciles normally; existing failed or uncertain outcomes keep their ordinary recovery and visibility.
382
+
383
+ This is delivery-only maintenance. Direct sends, control/END requests and ordinary reads stay usable. Automatic native starts are **not deferred**, and input already in flight can finish. Coordinate native or daemon lifecycle work separately; this control does not promise all-activity quiet or graceful stop.
384
+
385
+ The automatic wake ladder also waits before attempt budgets, rung markers and escalation for work whose destination rig is drained, including a held escalation target. It resumes at the retained rung after END. Legacy workflow packets without outbox intents remain owed: their existing keepalive resumes after END, and the sweep reports them if they stay unclaimed. END's scoped recovery pass covers pending intents. Diagnosis re-presentations wait before spending their presentation receipt. An explicit resolve notification remains an explicit action and can pass through the delivery hold.
386
+
387
+ All watchdog evaluation for the held rig waits, including the context-usage watchdog's managed-compaction action. This does not add a native-start hold. If a drain admission read fails, automatic delivery proceeds and reports the uncertainty. Control/status failures remain errors, and failed BEGIN/END writes never report success.
@@ -186,10 +186,10 @@ agent doing the setup. Both use this release's tag:
186
186
 
187
187
  ```sh
188
188
  # Claude Code
189
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.16/skills/rigs" --skill rigs --agent claude-code
189
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.18/skills/rigs" --skill rigs --agent claude-code
190
190
 
191
191
  # Codex
192
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.16/skills/rigs" --skill rigs --agent codex
192
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.18/skills/rigs" --skill rigs --agent codex
193
193
  ```
194
194
 
195
195
  If OpenRig is already installed, use the release tag matching your installed `rig --version` instead: replace the tag
@@ -204,11 +204,11 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
204
204
  script will do and changes nothing:
205
205
 
206
206
  ```sh
207
- curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.16/scripts/install.sh | sh -s -- --dry-run
207
+ curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.18/scripts/install.sh | sh -s -- --dry-run
208
208
  ```
209
209
 
210
210
  The same command without `--dry-run`,
211
- `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.16/scripts/install.sh | sh`, installs the
211
+ `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.18/scripts/install.sh | sh`, installs the
212
212
  latest published `@openrig/cli` with `npm install -g`, runs the Node.js and SQLite check if the installed checker is
213
213
  present (otherwise it reports the check skipped), then runs `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
214
214
  Codex and may install a missing one, as described below. A failed step prints
@@ -672,7 +672,7 @@ rig ps --nodes --rig starter
672
672
  Preview the selected seats, models and resources. Plan checks resolution and
673
673
  preflight for the working directory. The kernel is already your entry point; this step starts the chosen project
674
674
  team. Read readiness for the project seats, not only daemon health. Have the person answer a named authentication, trust, hook-review or
675
- permission prompt before giving that seat work; a launch default, or their answer for another seat, isn't their answer to this one. When the person works through their own agent, the agent brings each trust, hook-review or permission prompt to them as a question and sends their choice, so they don't need to open that seat's terminal; a sign-in still needs the person. When a seat stops at such a prompt, `rig up` reports
675
+ permission prompt before giving that seat work; a launch default, or their answer for another seat, isn't their answer to this one. When the person works through their own agent, the `rigs` skill tells that agent to bring each trust, hook-review or permission prompt to them as a question and to send their choice itself, rather than have them open that seat's terminal or type into it; a sign-in still needs the person. When a seat stops at such a prompt, `rig up` reports
676
676
  `Status: partial`, prints `Startup attention (<seat>): <reason>` and exits 1;
677
677
  `rig ps --nodes` repeats it as "Startup details". The reason ends with the command
678
678
  to run once the prompt is answered: `rig seat continue <seat>`, which delivers the
@@ -758,9 +758,9 @@ Herdr, use `rig terminal open starter --provider herdr`; for the shared
758
758
  dashboard together with the kernel conversations, use the
759
759
  [saved first view](#open-the-kernel-conversations). The equivalent
760
760
  cmux provider is also available. Read the opened/absent/degraded result: a
761
- partial terminal view is not a healthy team. Each `--provider herdr` open adds
762
- a new workspace, numbered when the name is taken; return to the one already open
763
- when you want to preserve it. From inside Herdr, `rig terminal open <view> --window`
761
+ partial terminal view is not a healthy team. A `--provider herdr` open focuses a
762
+ workspace that still shows this view live instead of adding a copy; otherwise it
763
+ adds a new workspace, numbered when the name is taken. From inside Herdr, `rig terminal open <view> --window`
764
764
  focuses a matching space instead of adding one. Herdr's own status for a seat can
765
765
  read idle or unknown while OpenRig shows it waiting (`needs-input`), for example in
766
766
  a narrow tile that wraps Claude's footer, or in a tile that shows the inner tmux