@openrig/cli 0.7.16 → 0.7.17

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 (363) 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/skills/rigs/SKILL.md +68 -29
  9. package/daemon/assets/skills/rigs/references/installing-for-someone.md +47 -0
  10. package/daemon/context-packs/help/manifest.yaml +1 -1
  11. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  12. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +87 -33
  13. package/daemon/context-packs/reference/getting-started.md +8 -8
  14. package/daemon/context-packs/reference/manifest.yaml +1 -1
  15. package/daemon/context-packs/reference/whats-new.md +193 -6
  16. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  17. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  18. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  19. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  20. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  21. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  22. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  23. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  27. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/openrig-software-factory/references/worked-example.md +1 -1
  31. package/daemon/context-packs/skills/core/openrig-upgrade/SKILL.md +2 -0
  32. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +22 -6
  40. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  72. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  73. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  74. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  75. package/daemon/dist/adapters/claude-code-adapter.js +36 -3
  76. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  77. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  78. package/daemon/dist/adapters/claude-resume.js +4 -2
  79. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  80. package/daemon/dist/adapters/openshell-driver.d.ts +1 -0
  81. package/daemon/dist/adapters/openshell-driver.d.ts.map +1 -1
  82. package/daemon/dist/adapters/openshell-driver.js +3 -0
  83. package/daemon/dist/adapters/openshell-driver.js.map +1 -1
  84. package/daemon/dist/adapters/openshell-podman-observer.d.ts +9 -7
  85. package/daemon/dist/adapters/openshell-podman-observer.d.ts.map +1 -1
  86. package/daemon/dist/adapters/openshell-podman-observer.js +20 -3
  87. package/daemon/dist/adapters/openshell-podman-observer.js.map +1 -1
  88. package/daemon/dist/adapters/pi-runner.d.ts +38 -4
  89. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  90. package/daemon/dist/adapters/pi-runner.js +244 -30
  91. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  92. package/daemon/dist/adapters/tmux.d.ts +3 -0
  93. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  94. package/daemon/dist/adapters/tmux.js +1 -1
  95. package/daemon/dist/adapters/tmux.js.map +1 -1
  96. package/daemon/dist/build-info.js +3 -3
  97. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  98. package/daemon/dist/db/all-migrations.js +4 -0
  99. package/daemon/dist/db/all-migrations.js.map +1 -1
  100. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.d.ts +6 -0
  101. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.d.ts.map +1 -0
  102. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.js +10 -0
  103. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.js.map +1 -0
  104. package/daemon/dist/db/migrations/170_rig_delivery_drains.d.ts +3 -0
  105. package/daemon/dist/db/migrations/170_rig_delivery_drains.d.ts.map +1 -0
  106. package/daemon/dist/db/migrations/170_rig_delivery_drains.js +21 -0
  107. package/daemon/dist/db/migrations/170_rig_delivery_drains.js.map +1 -0
  108. package/daemon/dist/domain/codex-thread-id.d.ts +13 -0
  109. package/daemon/dist/domain/codex-thread-id.d.ts.map +1 -1
  110. package/daemon/dist/domain/codex-thread-id.js +132 -9
  111. package/daemon/dist/domain/codex-thread-id.js.map +1 -1
  112. package/daemon/dist/domain/connection-contract.d.ts.map +1 -1
  113. package/daemon/dist/domain/connection-contract.js +2 -1
  114. package/daemon/dist/domain/connection-contract.js.map +1 -1
  115. package/daemon/dist/domain/context-usage-store.d.ts +11 -2
  116. package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
  117. package/daemon/dist/domain/context-usage-store.js +33 -13
  118. package/daemon/dist/domain/context-usage-store.js.map +1 -1
  119. package/daemon/dist/domain/current-work.d.ts +5 -0
  120. package/daemon/dist/domain/current-work.d.ts.map +1 -1
  121. package/daemon/dist/domain/current-work.js +66 -4
  122. package/daemon/dist/domain/current-work.js.map +1 -1
  123. package/daemon/dist/domain/environment-lifecycle.d.ts +15 -0
  124. package/daemon/dist/domain/environment-lifecycle.d.ts.map +1 -1
  125. package/daemon/dist/domain/environment-lifecycle.js +22 -4
  126. package/daemon/dist/domain/environment-lifecycle.js.map +1 -1
  127. package/daemon/dist/domain/expected-conversation.d.ts.map +1 -1
  128. package/daemon/dist/domain/expected-conversation.js +26 -11
  129. package/daemon/dist/domain/expected-conversation.js.map +1 -1
  130. package/daemon/dist/domain/gateway/destination-resolver.d.ts +4 -0
  131. package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
  132. package/daemon/dist/domain/gateway/destination-resolver.js +10 -3
  133. package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
  134. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts +3 -1
  135. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
  136. package/daemon/dist/domain/gateway/operator-delivery-engine.js +14 -4
  137. package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
  138. package/daemon/dist/domain/health-diagnosis.d.ts.map +1 -1
  139. package/daemon/dist/domain/health-diagnosis.js +4 -0
  140. package/daemon/dist/domain/health-diagnosis.js.map +1 -1
  141. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  142. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +1 -1
  143. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  144. package/daemon/dist/domain/native-model-picker.d.ts +2 -0
  145. package/daemon/dist/domain/native-model-picker.d.ts.map +1 -1
  146. package/daemon/dist/domain/native-model-picker.js +8 -2
  147. package/daemon/dist/domain/native-model-picker.js.map +1 -1
  148. package/daemon/dist/domain/native-resume-probe.js +78 -11
  149. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  150. package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
  151. package/daemon/dist/domain/network/network-connector.js +5 -3
  152. package/daemon/dist/domain/network/network-connector.js.map +1 -1
  153. package/daemon/dist/domain/network/network-installations.d.ts +5 -4
  154. package/daemon/dist/domain/network/network-installations.d.ts.map +1 -1
  155. package/daemon/dist/domain/network/network-installations.js +42 -11
  156. package/daemon/dist/domain/network/network-installations.js.map +1 -1
  157. package/daemon/dist/domain/node-launcher.d.ts +3 -0
  158. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  159. package/daemon/dist/domain/node-launcher.js +4 -3
  160. package/daemon/dist/domain/node-launcher.js.map +1 -1
  161. package/daemon/dist/domain/occupant-invalidator.d.ts +4 -1
  162. package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
  163. package/daemon/dist/domain/occupant-invalidator.js +10 -2
  164. package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
  165. package/daemon/dist/domain/operation-correlation.d.ts +1 -1
  166. package/daemon/dist/domain/operation-correlation.d.ts.map +1 -1
  167. package/daemon/dist/domain/operation-correlation.js +1 -1
  168. package/daemon/dist/domain/operation-correlation.js.map +1 -1
  169. package/daemon/dist/domain/queue-erasure.d.ts +7 -1
  170. package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
  171. package/daemon/dist/domain/queue-erasure.js +226 -20
  172. package/daemon/dist/domain/queue-erasure.js.map +1 -1
  173. package/daemon/dist/domain/queue-repository.d.ts +19 -2
  174. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  175. package/daemon/dist/domain/queue-repository.js +59 -15
  176. package/daemon/dist/domain/queue-repository.js.map +1 -1
  177. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  178. package/daemon/dist/domain/queue-stuck-sweep.js +49 -21
  179. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  180. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  181. package/daemon/dist/domain/queue-wake-ladder.js +90 -24
  182. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  183. package/daemon/dist/domain/restore-check-service.d.ts +13 -0
  184. package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
  185. package/daemon/dist/domain/restore-check-service.js +122 -9
  186. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  187. package/daemon/dist/domain/restore-orchestrator.d.ts +4 -1
  188. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  189. package/daemon/dist/domain/restore-orchestrator.js +95 -33
  190. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  191. package/daemon/dist/domain/restore-preconditions.d.ts +2 -0
  192. package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
  193. package/daemon/dist/domain/restore-preconditions.js +2 -0
  194. package/daemon/dist/domain/restore-preconditions.js.map +1 -1
  195. package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
  196. package/daemon/dist/domain/resume-metadata-refresher.js +4 -1
  197. package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
  198. package/daemon/dist/domain/rig-delivery-drain.d.ts +46 -0
  199. package/daemon/dist/domain/rig-delivery-drain.d.ts.map +1 -0
  200. package/daemon/dist/domain/rig-delivery-drain.js +128 -0
  201. package/daemon/dist/domain/rig-delivery-drain.js.map +1 -0
  202. package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
  203. package/daemon/dist/domain/rig-lifecycle-service.js +4 -1
  204. package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
  205. package/daemon/dist/domain/rig-teardown.d.ts +20 -3
  206. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  207. package/daemon/dist/domain/rig-teardown.js +71 -11
  208. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  209. package/daemon/dist/domain/rigspec-preflight.d.ts +1 -1
  210. package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
  211. package/daemon/dist/domain/rigspec-preflight.js +16 -1
  212. package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
  213. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  214. package/daemon/dist/domain/seat-handover-service.js +6 -1
  215. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  216. package/daemon/dist/domain/seat-launch-environment.d.ts +3 -2
  217. package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
  218. package/daemon/dist/domain/seat-launch-environment.js +16 -4
  219. package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
  220. package/daemon/dist/domain/session-name.d.ts +13 -0
  221. package/daemon/dist/domain/session-name.d.ts.map +1 -1
  222. package/daemon/dist/domain/session-name.js +77 -0
  223. package/daemon/dist/domain/session-name.js.map +1 -1
  224. package/daemon/dist/domain/session-registry.d.ts +7 -1
  225. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  226. package/daemon/dist/domain/session-registry.js +7 -4
  227. package/daemon/dist/domain/session-registry.js.map +1 -1
  228. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  229. package/daemon/dist/domain/session-transport.js +27 -7
  230. package/daemon/dist/domain/session-transport.js.map +1 -1
  231. package/daemon/dist/domain/shared-history-selection.d.ts +1 -0
  232. package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -1
  233. package/daemon/dist/domain/shared-history-selection.js +3 -1
  234. package/daemon/dist/domain/shared-history-selection.js.map +1 -1
  235. package/daemon/dist/domain/snapshot-capture.d.ts +4 -1
  236. package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
  237. package/daemon/dist/domain/snapshot-capture.js +19 -12
  238. package/daemon/dist/domain/snapshot-capture.js.map +1 -1
  239. package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
  240. package/daemon/dist/domain/startup-submission-evidence.js +3 -2
  241. package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
  242. package/daemon/dist/domain/types.d.ts +9 -1
  243. package/daemon/dist/domain/types.d.ts.map +1 -1
  244. package/daemon/dist/domain/types.js.map +1 -1
  245. package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
  246. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  247. package/daemon/dist/domain/user-settings/settings-store.js +6 -0
  248. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  249. package/daemon/dist/domain/watchdog-policy-engine.d.ts +4 -0
  250. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  251. package/daemon/dist/domain/watchdog-policy-engine.js +28 -1
  252. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  253. package/daemon/dist/domain/workflow-instance-store.d.ts +3 -2
  254. package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
  255. package/daemon/dist/domain/workflow-instance-store.js +6 -4
  256. package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
  257. package/daemon/dist/domain/workflow-projector.d.ts +48 -0
  258. package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
  259. package/daemon/dist/domain/workflow-projector.js +160 -90
  260. package/daemon/dist/domain/workflow-projector.js.map +1 -1
  261. package/daemon/dist/domain/workflow-reconciliation.d.ts +7 -1
  262. package/daemon/dist/domain/workflow-reconciliation.d.ts.map +1 -1
  263. package/daemon/dist/domain/workflow-reconciliation.js +51 -13
  264. package/daemon/dist/domain/workflow-reconciliation.js.map +1 -1
  265. package/daemon/dist/domain/workflow-runtime.d.ts +4 -2
  266. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  267. package/daemon/dist/domain/workflow-runtime.js +46 -22
  268. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  269. package/daemon/dist/routes/queue.d.ts.map +1 -1
  270. package/daemon/dist/routes/queue.js +34 -4
  271. package/daemon/dist/routes/queue.js.map +1 -1
  272. package/daemon/dist/routes/restore-check.d.ts.map +1 -1
  273. package/daemon/dist/routes/restore-check.js +17 -0
  274. package/daemon/dist/routes/restore-check.js.map +1 -1
  275. package/daemon/dist/routes/rig-delivery-drain.d.ts +3 -0
  276. package/daemon/dist/routes/rig-delivery-drain.d.ts.map +1 -0
  277. package/daemon/dist/routes/rig-delivery-drain.js +46 -0
  278. package/daemon/dist/routes/rig-delivery-drain.js.map +1 -0
  279. package/daemon/dist/routes/startup.d.ts.map +1 -1
  280. package/daemon/dist/routes/startup.js +120 -28
  281. package/daemon/dist/routes/startup.js.map +1 -1
  282. package/daemon/dist/routes/up.js +2 -0
  283. package/daemon/dist/routes/up.js.map +1 -1
  284. package/daemon/dist/routes/workflow.js +1 -1
  285. package/daemon/dist/routes/workflow.js.map +1 -1
  286. package/daemon/dist/server.d.ts.map +1 -1
  287. package/daemon/dist/server.js +2 -0
  288. package/daemon/dist/server.js.map +1 -1
  289. package/daemon/dist/startup.d.ts.map +1 -1
  290. package/daemon/dist/startup.js +6 -0
  291. package/daemon/dist/startup.js.map +1 -1
  292. package/daemon/docs/reference/agent-startup-guide.md +3 -2
  293. package/daemon/docs/reference/daemon-http-clients.md +68 -0
  294. package/daemon/docs/reference/getting-started.md +8 -8
  295. package/daemon/docs/reference/hosted-members.md +4 -2
  296. package/daemon/docs/reference/network-connector.md +4 -3
  297. package/daemon/docs/reference/queue-erasure.md +16 -1
  298. package/daemon/docs/reference/quickstart.md +2 -2
  299. package/daemon/docs/reference/whats-new.md +193 -6
  300. package/daemon/specs/agents/shared/skills/core/openrig-software-factory/references/worked-example.md +1 -1
  301. package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +2 -0
  302. package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +22 -6
  303. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +78 -18
  304. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +9 -6
  305. package/dist/build-info.js +3 -3
  306. package/dist/commands/config.d.ts.map +1 -1
  307. package/dist/commands/config.js +2 -0
  308. package/dist/commands/config.js.map +1 -1
  309. package/dist/commands/down.d.ts.map +1 -1
  310. package/dist/commands/down.js +5 -1
  311. package/dist/commands/down.js.map +1 -1
  312. package/dist/commands/environment.js +1 -1
  313. package/dist/commands/environment.js.map +1 -1
  314. package/dist/commands/network.d.ts +2 -0
  315. package/dist/commands/network.d.ts.map +1 -1
  316. package/dist/commands/network.js +14 -1
  317. package/dist/commands/network.js.map +1 -1
  318. package/dist/commands/queue.d.ts +1 -1
  319. package/dist/commands/queue.d.ts.map +1 -1
  320. package/dist/commands/queue.js +43 -10
  321. package/dist/commands/queue.js.map +1 -1
  322. package/dist/commands/restore.d.ts.map +1 -1
  323. package/dist/commands/restore.js +6 -1
  324. package/dist/commands/restore.js.map +1 -1
  325. package/dist/commands/seat.js +3 -3
  326. package/dist/commands/seat.js.map +1 -1
  327. package/dist/commands/setup.d.ts.map +1 -1
  328. package/dist/commands/setup.js +5 -3
  329. package/dist/commands/setup.js.map +1 -1
  330. package/dist/commands/up.d.ts.map +1 -1
  331. package/dist/commands/up.js +7 -0
  332. package/dist/commands/up.js.map +1 -1
  333. package/dist/commands/workflow.d.ts.map +1 -1
  334. package/dist/commands/workflow.js +6 -4
  335. package/dist/commands/workflow.js.map +1 -1
  336. package/dist/config-store.d.ts +3 -1
  337. package/dist/config-store.d.ts.map +1 -1
  338. package/dist/config-store.js +5 -0
  339. package/dist/config-store.js.map +1 -1
  340. package/dist/lib/bundle-check.d.ts.map +1 -1
  341. package/dist/lib/bundle-check.js +33 -3
  342. package/dist/lib/bundle-check.js.map +1 -1
  343. package/dist/mcp-server.d.ts.map +1 -1
  344. package/dist/mcp-server.js +48 -9
  345. package/dist/mcp-server.js.map +1 -1
  346. package/dist/person-registration-offer.d.ts.map +1 -1
  347. package/dist/person-registration-offer.js +2 -1
  348. package/dist/person-registration-offer.js.map +1 -1
  349. package/package.json +2 -2
  350. package/tui/dist/config/config-model.js +1 -1
  351. package/tui/dist/config/config-model.js.map +1 -1
  352. package/tui/dist/daemon-client.d.ts +3 -1
  353. package/tui/dist/daemon-client.d.ts.map +1 -1
  354. package/tui/dist/daemon-client.js +4 -2
  355. package/tui/dist/daemon-client.js.map +1 -1
  356. package/tui/dist/hydrate.d.ts.map +1 -1
  357. package/tui/dist/hydrate.js +31 -1
  358. package/tui/dist/hydrate.js.map +1 -1
  359. package/tui/dist/render.d.ts.map +1 -1
  360. package/tui/dist/render.js +106 -15
  361. package/tui/dist/render.js.map +1 -1
  362. package/tui/dist/types.d.ts +2 -0
  363. package/tui/dist/types.d.ts.map +1 -1
@@ -268,3 +268,71 @@ With `needs-me.read` supported:
268
268
  subject to the existing project filter and the newest 500 rows per slice. Counts are recomputed on every list
269
269
  request. `?refresh=1|true` invalidates the separate listing cache, not a stored queue-count snapshot. This
270
270
  resolution does not change the returned slice list or filters.
271
+
272
+
273
+ ## Resume one banked original conversation
274
+
275
+ The opt-in original-only operation reuses `startup-history.v1`. It targets one exact rig and node,
276
+ with a retained snapshot and captured history. Platform boot enrollment remains an operator step.
277
+ These routes use the existing terminal bearer token.
278
+
279
+ 1. Read `GET /api/startup/<rigId>/nodes/<nodeId>/original?snapshotId=<id>&historySessionId=<id>`.
280
+ The preview uses that explicitly retained usable snapshot, even when a newer snapshot exists.
281
+ It returns `revision`, the selected history and current model, effort, cwd, permission and runtime-home
282
+ provenance. `accountHome.authentication: "unconfirmed"` means that the home selection is configuration,
283
+ not proof of an authenticated account. A `daemon_environment` home is the daemon fallback, not a seat setting;
284
+ `native_default` means the runtime default.
285
+ 2. POST to the same `/original` path, without query fields, with `action: "resume"`, `snapshotId`,
286
+ `historySessionId`, that `revision`, an `operationId` UUID, and `expectedOriginal` containing the banked
287
+ `nodeId`, `sessionName`, `runtime` (`claude-code` or `codex`) and `nativeId`.
288
+ Keep native conversation IDs in the private bank and request body. They are not returned in diagnostics.
289
+
290
+ The operation keeps the current selected launch choices. Its original-only native effect uses the retained
291
+ history and existing selected-history ownership checks. A positively established matching original already
292
+ running returns `code: "already_running_original"` and `nativeEffect: false`. A confirmed resume returns
293
+ `code: "resumed"`, with `sourceSessionId`, `resultSessionId` and `operationId`.
294
+
295
+ An unavailable source, changed selection, different occupant, restoring-only result or unconfirmed native
296
+ identity returns a partial result. Existing occupants stay in place. This selected operation never substitutes
297
+ a fresh conversation. Its current-original check needs the existing qualified occupant, pane and native-record
298
+ evidence; a stored resume token by itself is insufficient. A legacy named history that cannot establish the
299
+ banked native identity remains partial. For Codex, the PID/start-time log and transcript are resolved in the
300
+ current selected runtime home used for launch. With no explicit home, the existing default-home and PID-bound
301
+ process-HOME reader supplies the home; the transcript lookup uses that same positively resolved home. Another
302
+ home's copy of the same thread UUID is not selected. These checks also serve conditional sends and record reads.
303
+ If a recorded explicit home changes before its running process is relaunched, its record may be unavailable;
304
+ the check does not borrow another home's copy or change the running process's account.
305
+
306
+ Retain the operation ID after a timeout. Repeating that same request first reconciles current native identity;
307
+ it reports a matching running original or `operation_unconfirmed`, and never dispatches that operation again.
308
+ The correlation survives daemon restart. An operation ID reused with different input returns
309
+ `operation_conflict`. Inspect the recorded operation and seat before selecting any new attempt.
310
+
311
+ A source-level fixture pass establishes the tested ownership, selection and reporting paths. Actual native
312
+ conversation usefulness and authenticated-account continuity need a qualified runtime observation.
313
+
314
+ ## Per-rig delivery drain
315
+
316
+ A maintenance owner can hold automatic queue wakes, watchdog delivery and stuck-sweep findings directed to one rig:
317
+
318
+ - `GET /api/rigs/:rigId/delivery-drain` reads its current control and retained-notice counts.
319
+ - `POST /api/rigs/:rigId/delivery-drain` begins a window, or renews the same window's review deadline:
320
+
321
+ ```json
322
+ {"drainId":"maintenance-window-1","owner":"maintainer@example","reviewAt":"2026-12-01T12:30:00Z"}
323
+ ```
324
+
325
+ - `POST /api/rigs/:rigId/delivery-drain/end` with `{"drainId":"maintenance-window-1"}` explicitly ends that window.
326
+
327
+ Status includes the owner, start, review deadline and drain ID, `retainedWorkCount`, and `nativeStartsDeferred: false`.
328
+ 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.
329
+
330
+ 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.
331
+
332
+ 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.
333
+
334
+ 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.
335
+
336
+ 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.
337
+
338
+ 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.17/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.17/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.17/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.17/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
@@ -89,7 +89,8 @@ These facts stay separate on the row:
89
89
  - **Wake:** with a trigger, the row's wake result is `wake-accepted:webhook (<url_ref>) answered <status>` when the trigger took the
90
90
  ring, `indeterminate:webhook …` when it didn't answer in time, or `failed:webhook …`. Accepted means the tool's trigger
91
91
  answered, not that the member read the row.
92
- - With no trigger, the result is `unroutable`. The member finds work by reading its own inbox and picks a row up by claiming
92
+ - With no trigger, the result is `awaiting-pickup: …`: no wake is sent, and the work waits until the member reads its queue (rows
93
+ recorded before this wording read `unroutable: …`, and both are read the same way). The member finds work by reading its own inbox and picks a row up by claiming
93
94
  it, so a row gets no finding of its own. Work it leaves unclaimed past the stuck sweep's unclaimed age
94
95
  (`queue.stuck_sweep_unclaimed_age_minutes`, 60 by default) is listed in one standing notice per member. The notice goes to
95
96
  the operator seat when it's a person, else the rows' creator when they all share one, else the operator agent, else the
@@ -182,7 +183,8 @@ and nothing else is offered:
182
183
  can address count, and the first of these that any of them matches decides, so another seat's slug never makes an exact
183
184
  name ambiguous and a seat the grant can't address never shadows one it can. The item is stored under that
184
185
  seat's actual session. A slug two seats match returns `destination_ambiguous` with the candidates, and a name that no
185
- seat the grant can reach has returns `destination_not_found`. A name the grant can't address as written (its own seat,
186
+ seat the grant can reach has returns `destination_not_found`. If the team couldn't be read to check, it returns
187
+ `destination_unchecked` and nothing was written; try again. A name the grant can't address as written (its own seat,
186
188
  or another assistant's without `team`/`list`) stays `out_of_scope`, whether or not that seat exists.
187
189
  - **Two assistants together:** a grant with `team`/`list` sees its rigs' seats with `rig_team`, and may address and hear from
188
190
  another connected assistant's seat. A grant without it never reaches a seat in the service's caller form
@@ -83,7 +83,7 @@ rig network connect <seat> --hub <url> --as <participant> --token-file <path>
83
83
  - `<participant>` is the participant's address in the hub (`member@rig`), and the token file holds its bearer.
84
84
  - The binding follows the seat's node, so a relaunched or renamed seat keeps it.
85
85
  - The token is stored at `<OpenRig home>/network-secrets/<binding>/credential.json` (a 0700 folder and a 0600 file). It
86
- is never returned by the API or shown in status. A token in the hub URL is refused.
86
+ is never returned by the API or shown in status. A user name or password in the hub URL is refused: put the token in its token file, not in the URL.
87
87
  - A plain-http hub URL needs `--allow-http` (see Limits).
88
88
  - One active binding per local seat, and one per hub participant.
89
89
  - On a daemon with an operator bearer configured, `connect` and `disconnect` send `OPENRIG_AUTH_BEARER_TOKEN`, as the
@@ -92,7 +92,7 @@ rig network connect <seat> --hub <url> --as <participant> --token-file <path>
92
92
  ## What the connector does
93
93
 
94
94
  The daemon runs the connector for every active binding. It normally polls every 30 seconds
95
- (`OPENRIG_NETWORK_POLL_SECONDS`, at least 5); a failing hub, backoff or a backlog can delay it. Each binding's pass has
95
+ (`OPENRIG_NETWORK_POLL_SECONDS`; a value under 5 is ignored); a failing hub, backoff or a backlog can delay it. Each binding's pass has
96
96
  a deadline of 60 seconds, so one slow hub doesn't hold the others. With no active binding it makes no network call.
97
97
 
98
98
  1. It lists the participant's own items on the hub, claims each pending one, and creates a local queue item for the
@@ -144,7 +144,8 @@ a replaced installation. `--json` adds the connector's view: each binding's next
144
144
  - **The seat has no session:** its hub items stay pending and unclaimed, and the last error says why. They're taken
145
145
  once the seat has a session again. A stopped seat still has its session, so it still takes items; they wait for it.
146
146
  - **The hub can't be reached, or a pass runs past its deadline:** the binding stays active, the error is recorded, and
147
- retries back off, doubling up to 5 minutes. A failure on this machine is recorded as local, not as the hub's.
147
+ retries back off, doubling to 5 minutes by default, or to the poll interval when that is longer, with up to 20%
148
+ jitter either way. A failure on this machine is recorded as local, not as the hub's.
148
149
  - **The hub refuses the credential** (HTTP 401): the binding is marked revoked and its credential removed. No new work
149
150
  comes in; local items and results stay.
150
151
 
@@ -63,6 +63,19 @@ Records that name the account but also belong elsewhere are counted under `rig.l
63
63
  - **When nothing of the rig is left,** the record becomes a completion receipt: the rig's name is cleared, and its id, the membership digest and the time stay. An identical rerun, after a lost response say, still verifies and reports the same clean result, with `rig.completedAt`. The receipt is kept for good. It holds no content.
64
64
  - **A removed rig's id that was never verified** with this membership erases nothing keyed by it. Those records are counted under `rig.left`, the name-bound tables are listed under `rig.unknown`, and the run isn't clean.
65
65
 
66
+ **An account rig that never had a member** (no assistant ever connected) has no members to name. Give an empty members file (or `[]`) with `--rig`. It's accepted only when this daemon can show the rig never had a session:
67
+ - no session on any of its nodes;
68
+ - no event of the rig, or of its nodes, that names a session;
69
+ - no node removed from it, since a node's sessions are deleted with it;
70
+ - no record under an address at the rig in queue rows and their transitions, inbox and outbox entries, stream items, inbox check-ins, stream reader actions and subscriptions, or chatroom posts. A grant-service caller or a hosted member works with no session row, and this is where it shows. Name those seats instead. These are the tables the check reads; it reads no others;
71
+ - an address at the rig is `<name>@<rig>`, or `<name>@<rig>@<host>` where the host is this one. One whose host is shown to be another host names that host's rig, so it doesn't count and isn't erased. Shown means a registered entry whose host id is declared, or learned at its current URL, and differs from this daemon's own id. Anything else counts, including an entry known only by its name, or a daemon whose own id isn't known;
72
+ - no earlier erasure that recorded members for it.
73
+
74
+ Otherwise it's refused (`erase_rig_mismatch`, `erase_rig_had_sessions` or `erase_rig_history_unknown`), and nothing is erased. The run then erases the rig's records as a members run does and records the rig with no members. So once the rig is removed, the same command completes as above.
75
+ - **A removed rig is accepted with no members only on that record,** and only if nothing since shows a member came later. That means no node, seat or session event of the rig, no event naming a session, and no queue work at the rig's name. Otherwise it's refused with `erase_rig_had_sessions`.
76
+ - **The proof is checked again in each transaction that deletes or records.** If anything new for the rig appears while the run yields (an event of the rig or its nodes, a session, a record at its address, or an existing row moved to its address), the run stops with `error.stage` `rig`. It erases nothing more, writes no record, and can be rerun. The check in the transaction that writes the record reads every record at the rig's address, not only those added since the proof, because a table can give a new record a deleted record's position.
77
+ - **A grant-service connection that never listed its inbox or did any work** leaves nothing in this database: its presence is kept in the MCP server's own file. The check can't see it. One that listed its inbox left a check-in, which counts.
78
+
66
79
  **Retention windows** (`rig config set …`, read at the daily sweep and at daemon start):
67
80
 
68
81
  | Setting | Default | Effect |
@@ -127,9 +140,11 @@ The command prints one JSON report (`--json` makes it a single line):
127
140
  |---|---|
128
141
  | `erase_scope_required` | no scope named |
129
142
  | `erase_scope_conflict` | more than one scope |
130
- | `erase_members_invalid` | an empty list, or names with surrounding spaces |
143
+ | `erase_members_invalid` | an empty list without `--rig`, or names with surrounding spaces |
131
144
  | `erase_rig_invalid` | a rig without `--members`, or an empty rig id |
132
145
  | `erase_rig_mismatch` | the rig exists, and its sessions and the members don't match both ways |
146
+ | `erase_rig_had_sessions` | an empty members list, and the rig's events name a session, or an earlier erasure recorded members for it |
147
+ | `erase_rig_history_unknown` | an empty members list, and a node was removed from the rig, or the rig is removed and no earlier run recorded it with no members |
133
148
  | `erase_ids_invalid` | an empty ids list, or ids with surrounding spaces |
134
149
  | `erase_action_invalid` | an action other than `delete` or `scrub` |
135
150
  | `erase_routine_off` | both windows are `0` |
@@ -12,9 +12,9 @@ In your project folder, add OpenRig's `rigs` skill to the agent you use:
12
12
 
13
13
  ```sh
14
14
  # Claude Code
15
- npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.16/skills/rigs --skill rigs --agent claude-code
15
+ npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.17/skills/rigs --skill rigs --agent claude-code
16
16
  # Codex
17
- npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.16/skills/rigs --skill rigs --agent codex
17
+ npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.17/skills/rigs --skill rigs --agent codex
18
18
  ```
19
19
 
20
20
  These use this release's tag, for a new install. If OpenRig is already installed, replace the tag after `tree/` with
@@ -1,4 +1,191 @@
1
- # What changed in OpenRig 0.7.16
1
+ # What changed in OpenRig 0.7.17
2
+
3
+ This note is for an agent on an install that was just upgraded to 0.7.17.
4
+ OpenRig 0.7.17 teaches the installer, the kernel operator and the `rigs` skill
5
+ to bring a team's questions to the conversation your person started it from:
6
+ when they stay in their own Claude Code conversation, a seat's prompt is to go
7
+ there as a task, and only their recorded words back to the seat. In this
8
+ release's first trial, that guidance didn't complete the journey (see "Limits
9
+ to keep in view"). Restore and
10
+ `rig down` report more of what they did, a rig's automatic delivery can be held
11
+ during maintenance, and three daemon read paths changed. It adds two database
12
+ migrations. If you upgraded from 0.7.15 or
13
+ earlier, also read "What changed in OpenRig 0.7.16" below, and so on back. For
14
+ the full capability map, read
15
+ `rig context get onboarding-width/public-what-you-can-do.md`. After the upgraded
16
+ daemon starts, `rig context get reference/whats-new.md` describes this version.
17
+ Without a running daemon, read the packaged `daemon/docs/reference/whats-new.md`.
18
+
19
+ ## After the upgrade
20
+
21
+ - **Restart the daemon** (`rig daemon stop`, then `rig daemon start`), with a
22
+ database backup first. Your agents keep running through it; don't use
23
+ `rig down`. Migration 168 records the occupant generation with each Claude
24
+ context sample, and migration 170 adds `rig_delivery_drains`. Going back to
25
+ 0.7.16 after them isn't established.
26
+ - **The `openrig` plugin carries 0.7.17,** because its
27
+ `working-with-an-openrig-team` skill changed. openrig-core stays 0.1.31.
28
+ - **One new setting:** `ui.topology_remote_seats` (off by default) lets the TUI's
29
+ topology TABLE read a remote rig's seats, read-only.
30
+
31
+ ## Your person's own conversation
32
+
33
+ - **If your person installed OpenRig from their own Claude Code conversation and
34
+ stays there,** the installer is instructed to hand their goal to the team as a
35
+ task from that conversation's address, and no longer says they'll answer in
36
+ the operator's pane. Ask where they'll answer only when that's genuinely unclear.
37
+ - **The kernel operator is instructed to bring a seat's prompt to that address
38
+ as a task,** with the prompt and its choices verbatim, the seat, what it was
39
+ doing and the escalation's id, and to relay only the person's recorded words:
40
+ the key from a fresh capture, the reason starting `task <id>:`, and the effect
41
+ checked. It is to tell the person the lead has their goal, that the team is
42
+ instructed to bring its questions and the result to that conversation but a
43
+ seat's prompt may still wait without reaching it, and to offer the team's
44
+ space or a seat's terminal only if they choose to watch or answer in the pane.
45
+ A person who chose the panes gets the earlier instructions unchanged.
46
+ - **If you're the person's agent,** check your address while work is open, show
47
+ a forwarded prompt whole, and read the newest review before saying the work is
48
+ done (the `rigs` skill and `working-with-an-openrig-team`).
49
+ - **The launch plan** now says a team seat with no permission policy gets the
50
+ team default. An empty person registry reads
51
+ `undeliverable:no-registered-human`; a registry that failed to load still
52
+ reads `unavailable:human-registry`.
53
+ - **The installing-for-someone procedure** is no longer in every seat's
54
+ startup text; read it from the `rigs` skill's
55
+ `references/installing-for-someone.md` when you need it.
56
+
57
+ ## Recovery
58
+
59
+ - **Restore** reads `partially_restored`, and names the seat, when it skipped a
60
+ seat that isn't in the snapshot's roster or left one attached. Which seats
61
+ launch is unchanged. An adopted seat keeps its recorded session name when tmux
62
+ and OpenRig's addressing keep it as given; otherwise restore names the old and
63
+ new address.
64
+ - **Resume one banked original conversation** (opt-in): read
65
+ `GET /api/startup/<rigId>/nodes/<nodeId>/original?snapshotId=<id>&historySessionId=<id>`,
66
+ then POST `action: "resume"` with that `revision`, an `operationId` and the
67
+ exact `expectedOriginal`. Keep the operation id after a timeout: repeating the
68
+ same request reconciles instead of dispatching again. A result that can't be
69
+ proven stays partial. Details: `docs/reference/daemon-http-clients.md`.
70
+ - **Hold one rig's automatic delivery during maintenance:**
71
+ `POST /api/rigs/<rigId>/delivery-drain` with a `drainId`, `owner` and
72
+ `reviewAt` holds its queue wakes, watchdog delivery and stuck-sweep findings;
73
+ `POST /api/rigs/<rigId>/delivery-drain/end` ends it. A review deadline prompts
74
+ the owner and never ends the drain. Direct sends and native starts aren't
75
+ held, and unknown delivery isn't replayed.
76
+ - **A restore that can't confirm it stopped a blank session** keeps that
77
+ session's record and binding: the seat reads `attention_required` and says the
78
+ session may still be running. Check with `rig capture`, stop it with
79
+ `rig seat stop`, then retry.
80
+ - **`rig down` releases a claimed tmux session** (self-attached inside tmux,
81
+ adopted, bound or reconciled), prints `Released, not stopped: <session>`, and
82
+ exits 0; the session keeps running. An external CLI attachment is unchanged on
83
+ `down`. Separately, `rig remove` or `shrink` of a member that joined with
84
+ `rig attach --self` outside tmux no longer fails with `409 kill_failed`.
85
+ - **Claude resume and handover:** a pane that moves during resume-token capture
86
+ leaves the token unknown; discovered handover resolves a relative
87
+ `CLAUDE_CONFIG_DIR` against the seat's directory.
88
+
89
+ ## Delivery, workflows and tools
90
+
91
+ - **Three daemon read paths changed:** the stuck sweep reads undelivered ids in
92
+ windows and yields between them (a window and one row's derivation are still
93
+ synchronous); Codex thread lookup reads only new log rows after its first full
94
+ read per process and Codex home (a cold or fallback read is still full); a work
95
+ node's `SPEC.md` is reread when its file metadata changed, within a two-second
96
+ settle window, or when that metadata can't be read. No speed claim is made for
97
+ this release.
98
+ - **Draft-aware delivery** reads an empty input box under Claude Code 2.1.322 or
99
+ 2.1.323's wide paste hint and auto-update failure as empty and sends once
100
+ (checked with Claude Code 2.1.322 and 2.1.323 in a test run), and
101
+ `rig send --dangerously-interact` without `--type-without-checking` now stops
102
+ on a person's text there (shown by its tests; not yet checked with Claude
103
+ Code itself).
104
+ - **Claude's question dialog,** in the several-question, editor-shortcut and
105
+ preview layouts OpenRig recognizes, refuses an ordinary send with
106
+ `target_needs_input` (shown by its tests; not yet checked with Claude Code
107
+ itself).
108
+ - **A send at a model picker** says to close it with Esc; don't use
109
+ `--dangerously-interact` there. A Claude seat that won't start under managed
110
+ `disableSideloadFlags` names the setting.
111
+ - **A resumed Codex conversation** isn't told to sign in again because of an old
112
+ token-refresh failure that newer output follows. A refusal that is still the
113
+ latest thing Codex printed, or a marked quote in an unfinished code block with
114
+ nothing newer above the composer, can still read current.
115
+ - **`rig provider switch --token-file`:** the Claude token step is now kept for
116
+ pane readings it used to drop (Claude itself, nothing, another POSIX shell);
117
+ after a failed environment correction it's kept only for a session proven to
118
+ be this seat's, and never for fish or Nushell. An account-home or wrapped
119
+ launch in a non-POSIX pane still refuses. A command carrying the step doesn't
120
+ prove the token was applied; check the seat's account.
121
+ - **A hosted member with no wake trigger** gets an `awaiting-pickup:` record: its
122
+ work waits in its queue until it reads it. Don't read that as a failure.
123
+ - **A `rig queue handoff` whose answer was lost** names the source row to read
124
+ (`rig queue show '<id>' --full --json`) before any retry.
125
+ - **`rig workflow revise`** can remove an obsolete required order from unstarted
126
+ work and projects the newly ready work once. Replaying a `rig workflow route`
127
+ that adopted a queue handoff's sole successor, without `--packet`, selects that
128
+ successor and writes nothing.
129
+ - **An external connection's `rig_queue_show`** adds `viewer`, `item.createdBy`
130
+ and actor labels, with `you` true only for this connection.
131
+ - **Also:** `rig bundle check` reports schema-invalid configuration names;
132
+ `rig queue erase --members <empty file> --rig <id>` erases an account rig that
133
+ never had a member; a Pi or OMP runner pane names its model and state;
134
+ `rig environment recreate` handles a replaced Podman socket (not run against a
135
+ live engine); the text output of `rig network status` and the connect
136
+ confirmation hide a hub URL's query string (`--json` keeps the full URL);
137
+ `rig setup` prints the harness login line.
138
+
139
+ ## Limits to keep in view
140
+
141
+ - **Your person's conversation isn't woken.** A seat's question waits until
142
+ they return to it, and a prompt that changes between the capture and the key
143
+ can take the key. In this release's first trial, with Claude Code and a
144
+ simulated person, a reviewer's permission question never reached the person,
145
+ the person's agent twice offered a bare terminal attachment as a way to
146
+ answer a seat's prompt, and the work didn't reach a reviewed commit. No
147
+ return address for the person's conversation had been established, and no
148
+ escalation for the reviewer's question was recorded. This route doesn't
149
+ reliably complete that journey, and a second trial wasn't run.
150
+ - **Restore's overall result:** `restore-check`'s recovery plan still counts
151
+ seats restore leaves alone, and says restore tries the conversation for an
152
+ in-roster external CLI seat. A seat left as a bare shell after "Harness not
153
+ started" still counts as running in `rig ps`.
154
+ - **A second `rig down`** while a released session runs reports that seat's
155
+ kept skills as an error and exits 2. After `rig down --delete`, a later
156
+ `rig down` of another rig in the same working directory may remove OpenRig's
157
+ shared guidance and Claude additions there while the released session runs.
158
+ - **A Codex seat resumed on 0.167.1 or 0.167.2** can read `unknown`
159
+ (`unrecognized_client_version`).
160
+ - **Draft-aware delivery beside the wide footer** accepts only Claude Code's two
161
+ known failure wordings; a new one reads unknown and holds.
162
+ - **Claude's preview question dialog** in a pane too narrow for its 30-column
163
+ option column plus 4-column gap can render differently and read unknown, so
164
+ an ordinary send isn't refused there.
165
+ - **`rig scope` and `rig proof` can't be limited to a rig's own project.**
166
+ - **Reading queue state with `rig queue list`:** the median time was about 22%
167
+ (about 90 ms) slower than 0.7.16 in a matched test on a pre-release build. The
168
+ cause wasn't found, and the final build wasn't re-measured.
169
+ - **Linked Codex config files:** when a Codex seat's `config.toml` or
170
+ `hooks.json` is a symbolic link, OpenRig records its hook trust under the
171
+ link's target, as in 0.7.14. A change to key it by the file's own name isn't
172
+ in this release, and such a seat may be asked to review hooks again. With a
173
+ linked `config.toml`, OpenRig can also miss a setting stored for it that
174
+ turns OpenRig's hooks off, and set those hooks up anyway when it moves them
175
+ into `hooks.json`. ([#3078](https://github.com/mvschwarz/openrig/issues/3078))
176
+ - **"Person approved" entries** an agent recorded for its own approvals don't
177
+ establish the person's approval; check the conversation.
178
+ - **Slack buttons:** in 0.7.16's tests, an answer given by button wasn't seen to
179
+ reach OpenRig, and the cause isn't known. Type the reply instead.
180
+ - **Managed compaction with Claude Code 2.1.322:** typed text in the input box
181
+ can carry `/compact` along as text while `rig compact --state` reports it
182
+ sent, and the draft-aware guard can leave the preparation prompt unsent.
183
+ Empty the box first and check the seat compacted.
184
+ - **No memory claim** is made for this release.
185
+ - **0.7.16's limits** below still apply unless this release changes them (the
186
+ wide-footer case and restore's overall result).
187
+
188
+ ## What changed in OpenRig 0.7.16
2
189
 
3
190
  This note is for an agent on an install that was just upgraded to 0.7.16.
4
191
  OpenRig 0.7.16 keeps the team's launch default for a seat whose policy is the
@@ -15,7 +202,7 @@ the full capability map, read
15
202
  daemon starts, `rig context get reference/whats-new.md` describes this version.
16
203
  Without a running daemon, read the packaged `daemon/docs/reference/whats-new.md`.
17
204
 
18
- ## After the upgrade
205
+ ### After the upgrade
19
206
 
20
207
  - **Stop, back up, install, then start.** `rig daemon stop` (seats keep running,
21
208
  so don't use `rig down`), copy the database file (`rig config get db.path`
@@ -27,7 +214,7 @@ Without a running daemon, read the packaged `daemon/docs/reference/whats-new.md`
27
214
  - **The plugins:** the `openrig` plugin's manifests carry the CLI's version,
28
215
  0.7.16. openrig-core moves to 0.1.31, because its skills changed.
29
216
 
30
- ## A person's first team
217
+ ### A person's first team
31
218
 
32
219
  - **`standard` and `open` keep the team default.** A seat whose effective policy
33
220
  is the built-in `standard` or `open` launches with the team default's
@@ -60,7 +247,7 @@ Without a running daemon, read the packaged `daemon/docs/reference/whats-new.md`
60
247
  stays with to keep its own return address, so the team's questions come back
61
248
  to it. ([#3134](https://github.com/mvschwarz/openrig/pull/3134))
62
249
 
63
- ## Recovery
250
+ ### Recovery
64
251
 
65
252
  - **After an upgrade, a seat's packaged recovery skills come back current:**
66
253
  on `rig up --existing`, a seat's own unedited copies of OpenRig's packaged
@@ -104,7 +291,7 @@ Without a running daemon, read the packaged `daemon/docs/reference/whats-new.md`
104
291
  its default loopback-plus-Tailscale bind when none is configured. It doesn't
105
292
  promise a kernel that isn't listed. ([#3181](https://github.com/mvschwarz/openrig/pull/3181), [#3227](https://github.com/mvschwarz/openrig/pull/3227))
106
293
 
107
- ## Delivery, workflows and tools
294
+ ### Delivery, workflows and tools
108
295
 
109
296
  - **A send to a missing seat prints "Recorded, not delivered"**: the message is
110
297
  in the sender's outbox, `--verify` exits nonzero, and a queue row keeps its
@@ -136,7 +323,7 @@ Without a running daemon, read the packaged `daemon/docs/reference/whats-new.md`
136
323
  works with `--nodes --json`. The TUI's Projects view can span registered
137
324
  hosts. ([#3107](https://github.com/mvschwarz/openrig/pull/3107), [#3240](https://github.com/mvschwarz/openrig/pull/3240), [#3191](https://github.com/mvschwarz/openrig/pull/3191))
138
325
 
139
- ## Limits to keep in view
326
+ ### Limits to keep in view
140
327
 
141
328
  - **Restore's overall result:** a rig can still read `fully_restored` while a
142
329
  seat restore didn't start, or a seat kept in its external CLI attachment,
@@ -542,6 +542,6 @@ resume as failed; do not silently replace the original sessions.
542
542
 
543
543
  ## Optional growth, with the same two seats
544
544
 
545
- When the same coordination obligations recur, move the reusable workflow to `project.yaml` under `lifecycle.profiles.small-change-v1`, with `required_steps: [check, finish]` and a `workflow` mapping; keep `lifecycle.profile: small-change-v1`. Remove mission-specific paths/objectives from the reusable base and supply them through each mission's context/arrangement. Missions can inherit it unchanged, explicitly `mode: extend` to add uniquely named steps, or `mode: override` with a complete arrangement that preserves required obligations. `required_steps` names real stable step IDs, not prose headings. This optional design is not a second validated manifest in this example.
545
+ When the same coordination obligations recur, move the reusable workflow to `project.yaml` under `lifecycle.profiles.small-change-v1`, with `required_steps: [check, finish]` and a `workflow` mapping; keep `lifecycle.profile: small-change-v1`. Remove mission-specific paths/objectives from the reusable base and supply them through each mission's context/arrangement. Missions can inherit it unchanged, explicitly `mode: extend` to add uniquely named steps, or `mode: override` with a complete arrangement that preserves required obligations. A mission that leaves out one of the profile's pods still keeps that pod's required step IDs, and their required order, in its `mode: override` arrangement. Give each such step to the workflow's `orchestrator_role` and keep its `depends_on`. Its objective says the step doesn't apply to this mission, and asks the orchestrator to record who decided that, and why, when it closes the step. That's a recorded judgment, never a pass for the missing pod's work, and the steps that depend on it wait for it to close. Leaving the step out instead fails compilation with `lifecycle_required_step_missing`. A running instance can't drop one either: reconciliation asks to preserve the obligation and record an attributed disposition. `required_steps` names real stable step IDs, not prose headings. This optional design is not a second validated manifest in this example.
546
546
 
547
547
  Slices remain the work/spec/progress/proof home. If a project instead chooses per-slice execution, the native compiler supports `execution.actor_role`, `preferred_targets`, `depends_on` and `allowed_exits`, but do not imply those independently add steps beneath an already selected mission/profile graph. Compile the chosen single graph, inspect the result, and instantiate or explicitly revise the existing instance. Retained running inputs do not silently follow disk edits. Add more roles, SDLC advice, typed gates or release obligations only when the user's work requires them. No mandatory wave, release graph, private lifecycle helper or seven-seat factory is part of this first example.
@@ -43,6 +43,8 @@ host, use the host's normal operator ceremony. On a recovery-friendly build VM,
43
43
  the orchestrator may adopt a tested runtime directly, but still observes each
44
44
  step and stops on unexplained drift.
45
45
 
46
+ For opt-in **delivery-only** maintenance, read `rig context get reference/daemon-http-clients.md#per-rig-delivery-drain`: `/api/rigs/:rigId/delivery-drain` requires an explicit END; **automatic native starts are NOT deferred**.
47
+
46
48
  ## When recovery crosses an instance boundary
47
49
 
48
50
  Before either lane changes runtime state, record one host-qualified executor and
@@ -33,9 +33,19 @@ behave; this skill is the loop around them.
33
33
 
34
34
  > To ask me anything, create a queue item to `<your seat>` (`rig queue create --destination <your seat> ...`), then
35
35
  > block this item on that new item's id (`rig queue block <this id> --on <question id>`), so my answer wakes you. I
36
- > check it when the person asks. Don't ask in your own terminal: the person isn't there. If you hand this item on,
37
- > copy this paragraph into the new item. When you finish, put the outcome in this item's resolution and any file in
38
- > its evidence ref.
36
+ > check it whenever the person talks to me. Don't ask in your own terminal: the person isn't there. A seat's
37
+ > permission prompt in this work is their question too: send me its own text and choices, the seat, what it was
38
+ > doing and any escalation's id, unless a question about that prompt is already open at my seat. Whoever sent the
39
+ > question passes on the answer, and no one else does. Capture that seat again first (a changed prompt needs a new
40
+ > answer), then `rig send <seat> "<key>" --dangerously-interact --reason 'task <question id>: <their answer>'` with
41
+ > the key the prompt shows for their choice (for Escape, `$'\e'` in place of `"<key>"`, never the word). Keep the
42
+ > reason in single quotes so the shell runs nothing in their words, and write each `'` in them as `'\''`. A no
43
+ > stays a no. If they gave no answer, or their words don't clearly
44
+ > pick one choice (a condition the action doesn't plainly meet, say), ask me again before sending anything, and
45
+ > never pick a "don't ask again" choice they didn't pick. Check the effect, and never send again while it's
46
+ > unknown. If you hand this item on or give this work to another seat, copy this paragraph into the new item. When
47
+ > you finish, put the outcome in this item's resolution, with what the latest review found, and any file in its
48
+ > evidence ref.
39
49
  - Tell the person the `qitemId` it returns. It's how both of you find this work again.
40
50
  - If the call times out, check `rig_queue_show` with that same `qitemId` before trying again. If you retry, pass the same id
41
51
  as `qitemId`. Never retry with a new one: that creates the work twice.
@@ -46,7 +56,10 @@ behave; this skill is the loop around them.
46
56
  - When a seat hands the work on, the item names the next one. Follow the chain to the newest item before you report.
47
57
  - Report what the record says. An accepted or claimed item isn't finished work, and a quiet one isn't stuck: say what you
48
58
  saw and when it last changed.
49
- - Nothing wakes this chat when the team finishes. Check again when the person asks, or when they come back.
59
+ - Before you say the work is done, find the newest review of it on the chain and tell the person its outcome. Work a
60
+ review sent back with something to fix isn't done, even if a commit exists: say what the review asked for.
61
+ - Nothing wakes this chat when the team asks or finishes. While its work is open, check each time the person talks to
62
+ you, and when they come back.
50
63
 
51
64
  ## The team's questions
52
65
 
@@ -56,8 +69,11 @@ behave; this skill is the loop around them.
56
69
  `rig_queue_update`: `state` `done`, `closureReason` `no-follow-on`, and exactly what the person typed in `resolution`,
57
70
  nothing else: no label such as "The person's answer:", no quotation marks, and no notes, paths or summaries of your own.
58
71
  If the person isn't there to answer, leave the item open and tell them it's waiting. Never choose an answer for them.
59
- - Some questions go to the person directly, outside your seat. Those wait for them where they already answer the team,
60
- such as the OpenRig TUI or Slack. You can mention that they're waiting; answering them isn't yours.
72
+ - A question can be a seat's permission prompt that the operator or a team seat sent you: show it with the seat, the
73
+ exact action and the choices it offers, and record the person's words the same way. The agent that sent it passes
74
+ their answer to the seat.
75
+ - Some questions go to a registered person directly, outside your seat. Those wait for them where they already answer
76
+ the team, such as the OpenRig TUI or Slack. You can mention that they're waiting; answering them isn't yours.
61
77
 
62
78
  ## Read the result
63
79