@openrig/cli 0.7.15 → 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 (603) 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/README.md +26 -7
  7. package/daemon/assets/plugins/openrig/plugin.json +1 -1
  8. package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +22 -6
  9. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  10. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  11. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +4 -1
  12. package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/SKILL.md +1 -1
  13. package/daemon/assets/skills/rigs/SKILL.md +155 -41
  14. package/daemon/assets/skills/rigs/references/installing-for-someone.md +47 -0
  15. package/daemon/context-packs/help/manifest.yaml +1 -1
  16. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  17. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +169 -40
  18. package/daemon/context-packs/reference/getting-started.md +12 -11
  19. package/daemon/context-packs/reference/manifest.yaml +4 -1
  20. package/daemon/context-packs/reference/product-journey-sdlc.md +348 -0
  21. package/daemon/context-packs/reference/rig-spec.md +92 -4
  22. package/daemon/context-packs/reference/whats-new.md +397 -5
  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/SKILL.md +4 -1
  27. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  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/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  77. package/daemon/context-packs/skills/seat-continuity-and-handover/SKILL.md +1 -1
  78. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  79. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  80. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  81. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  82. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  83. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  84. package/daemon/dist/adapters/claude-code-adapter.js +42 -6
  85. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  86. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  87. package/daemon/dist/adapters/claude-resume.js +4 -2
  88. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  89. package/daemon/dist/adapters/codex-resume.d.ts +2 -0
  90. package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
  91. package/daemon/dist/adapters/codex-resume.js +28 -11
  92. package/daemon/dist/adapters/codex-resume.js.map +1 -1
  93. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +15 -0
  94. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  95. package/daemon/dist/adapters/codex-runtime-adapter.js +75 -28
  96. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  97. package/daemon/dist/adapters/openshell-driver.d.ts +1 -0
  98. package/daemon/dist/adapters/openshell-driver.d.ts.map +1 -1
  99. package/daemon/dist/adapters/openshell-driver.js +3 -0
  100. package/daemon/dist/adapters/openshell-driver.js.map +1 -1
  101. package/daemon/dist/adapters/openshell-podman-observer.d.ts +9 -7
  102. package/daemon/dist/adapters/openshell-podman-observer.d.ts.map +1 -1
  103. package/daemon/dist/adapters/openshell-podman-observer.js +20 -3
  104. package/daemon/dist/adapters/openshell-podman-observer.js.map +1 -1
  105. package/daemon/dist/adapters/pi-runner.d.ts +38 -4
  106. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  107. package/daemon/dist/adapters/pi-runner.js +244 -30
  108. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  109. package/daemon/dist/adapters/tmux.d.ts +6 -0
  110. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  111. package/daemon/dist/adapters/tmux.js +17 -3
  112. package/daemon/dist/adapters/tmux.js.map +1 -1
  113. package/daemon/dist/build-info.js +3 -3
  114. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  115. package/daemon/dist/db/all-migrations.js +8 -0
  116. package/daemon/dist/db/all-migrations.js.map +1 -1
  117. package/daemon/dist/db/migrations/167_seat_handover_attempts.d.ts +14 -0
  118. package/daemon/dist/db/migrations/167_seat_handover_attempts.d.ts.map +1 -0
  119. package/daemon/dist/db/migrations/167_seat_handover_attempts.js +54 -0
  120. package/daemon/dist/db/migrations/167_seat_handover_attempts.js.map +1 -0
  121. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.d.ts +6 -0
  122. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.d.ts.map +1 -0
  123. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.js +10 -0
  124. package/daemon/dist/db/migrations/168_context_usage_occupant_generation.js.map +1 -0
  125. package/daemon/dist/db/migrations/169_seat_runtime_home_records.d.ts +5 -0
  126. package/daemon/dist/db/migrations/169_seat_runtime_home_records.d.ts.map +1 -0
  127. package/daemon/dist/db/migrations/169_seat_runtime_home_records.js +25 -0
  128. package/daemon/dist/db/migrations/169_seat_runtime_home_records.js.map +1 -0
  129. package/daemon/dist/db/migrations/170_rig_delivery_drains.d.ts +3 -0
  130. package/daemon/dist/db/migrations/170_rig_delivery_drains.d.ts.map +1 -0
  131. package/daemon/dist/db/migrations/170_rig_delivery_drains.js +21 -0
  132. package/daemon/dist/db/migrations/170_rig_delivery_drains.js.map +1 -0
  133. package/daemon/dist/domain/claim-service.d.ts +1 -3
  134. package/daemon/dist/domain/claim-service.d.ts.map +1 -1
  135. package/daemon/dist/domain/claim-service.js +3 -1
  136. package/daemon/dist/domain/claim-service.js.map +1 -1
  137. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +11 -0
  138. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  139. package/daemon/dist/domain/claude-compaction-enforcer.js +83 -36
  140. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  141. package/daemon/dist/domain/codex-filesystem-preflight.d.ts +33 -0
  142. package/daemon/dist/domain/codex-filesystem-preflight.d.ts.map +1 -0
  143. package/daemon/dist/domain/codex-filesystem-preflight.js +255 -0
  144. package/daemon/dist/domain/codex-filesystem-preflight.js.map +1 -0
  145. package/daemon/dist/domain/codex-member-permissions.d.ts +23 -2
  146. package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -1
  147. package/daemon/dist/domain/codex-member-permissions.js +55 -9
  148. package/daemon/dist/domain/codex-member-permissions.js.map +1 -1
  149. package/daemon/dist/domain/codex-network-default.d.ts +13 -0
  150. package/daemon/dist/domain/codex-network-default.d.ts.map +1 -1
  151. package/daemon/dist/domain/codex-network-default.js +37 -30
  152. package/daemon/dist/domain/codex-network-default.js.map +1 -1
  153. package/daemon/dist/domain/codex-thread-id.d.ts +13 -0
  154. package/daemon/dist/domain/codex-thread-id.d.ts.map +1 -1
  155. package/daemon/dist/domain/codex-thread-id.js +132 -9
  156. package/daemon/dist/domain/codex-thread-id.js.map +1 -1
  157. package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
  158. package/daemon/dist/domain/compaction-restore-notice.js +59 -13
  159. package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
  160. package/daemon/dist/domain/connection-contract.d.ts.map +1 -1
  161. package/daemon/dist/domain/connection-contract.js +2 -1
  162. package/daemon/dist/domain/connection-contract.js.map +1 -1
  163. package/daemon/dist/domain/context-usage-store.d.ts +11 -2
  164. package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
  165. package/daemon/dist/domain/context-usage-store.js +33 -13
  166. package/daemon/dist/domain/context-usage-store.js.map +1 -1
  167. package/daemon/dist/domain/current-work.d.ts +5 -0
  168. package/daemon/dist/domain/current-work.d.ts.map +1 -1
  169. package/daemon/dist/domain/current-work.js +66 -4
  170. package/daemon/dist/domain/current-work.js.map +1 -1
  171. package/daemon/dist/domain/destination-successor.d.ts +3 -0
  172. package/daemon/dist/domain/destination-successor.d.ts.map +1 -0
  173. package/daemon/dist/domain/destination-successor.js +49 -0
  174. package/daemon/dist/domain/destination-successor.js.map +1 -0
  175. package/daemon/dist/domain/environment-lifecycle.d.ts +15 -0
  176. package/daemon/dist/domain/environment-lifecycle.d.ts.map +1 -1
  177. package/daemon/dist/domain/environment-lifecycle.js +22 -4
  178. package/daemon/dist/domain/environment-lifecycle.js.map +1 -1
  179. package/daemon/dist/domain/expected-conversation.d.ts.map +1 -1
  180. package/daemon/dist/domain/expected-conversation.js +26 -11
  181. package/daemon/dist/domain/expected-conversation.js.map +1 -1
  182. package/daemon/dist/domain/gateway/destination-resolver.d.ts +4 -0
  183. package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
  184. package/daemon/dist/domain/gateway/destination-resolver.js +10 -3
  185. package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
  186. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts +3 -1
  187. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
  188. package/daemon/dist/domain/gateway/operator-delivery-engine.js +14 -4
  189. package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
  190. package/daemon/dist/domain/health-diagnosis.d.ts.map +1 -1
  191. package/daemon/dist/domain/health-diagnosis.js +4 -0
  192. package/daemon/dist/domain/health-diagnosis.js.map +1 -1
  193. package/daemon/dist/domain/health-passive-ceremony.d.ts +3 -0
  194. package/daemon/dist/domain/health-passive-ceremony.d.ts.map +1 -1
  195. package/daemon/dist/domain/health-passive-ceremony.js +45 -4
  196. package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
  197. package/daemon/dist/domain/hosts/fleet-scopes.d.ts +111 -0
  198. package/daemon/dist/domain/hosts/fleet-scopes.d.ts.map +1 -0
  199. package/daemon/dist/domain/hosts/fleet-scopes.js +231 -0
  200. package/daemon/dist/domain/hosts/fleet-scopes.js.map +1 -0
  201. package/daemon/dist/domain/hosts/read-through.d.ts +1 -1
  202. package/daemon/dist/domain/hosts/read-through.d.ts.map +1 -1
  203. package/daemon/dist/domain/hosts/read-through.js +4 -0
  204. package/daemon/dist/domain/hosts/read-through.js.map +1 -1
  205. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  206. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +1 -1
  207. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  208. package/daemon/dist/domain/native-model-picker.d.ts +2 -0
  209. package/daemon/dist/domain/native-model-picker.d.ts.map +1 -1
  210. package/daemon/dist/domain/native-model-picker.js +8 -2
  211. package/daemon/dist/domain/native-model-picker.js.map +1 -1
  212. package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
  213. package/daemon/dist/domain/native-permission-store.js +12 -5
  214. package/daemon/dist/domain/native-permission-store.js.map +1 -1
  215. package/daemon/dist/domain/native-process-lineage.d.ts +11 -1
  216. package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
  217. package/daemon/dist/domain/native-process-lineage.js +25 -4
  218. package/daemon/dist/domain/native-process-lineage.js.map +1 -1
  219. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  220. package/daemon/dist/domain/native-resume-probe.js +109 -26
  221. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  222. package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
  223. package/daemon/dist/domain/network/network-connector.js +5 -3
  224. package/daemon/dist/domain/network/network-connector.js.map +1 -1
  225. package/daemon/dist/domain/network/network-installations.d.ts +5 -4
  226. package/daemon/dist/domain/network/network-installations.d.ts.map +1 -1
  227. package/daemon/dist/domain/network/network-installations.js +42 -11
  228. package/daemon/dist/domain/network/network-installations.js.map +1 -1
  229. package/daemon/dist/domain/node-launcher.d.ts +6 -0
  230. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  231. package/daemon/dist/domain/node-launcher.js +10 -3
  232. package/daemon/dist/domain/node-launcher.js.map +1 -1
  233. package/daemon/dist/domain/occupant-invalidator.d.ts +4 -1
  234. package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
  235. package/daemon/dist/domain/occupant-invalidator.js +10 -2
  236. package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
  237. package/daemon/dist/domain/operation-correlation.d.ts +1 -1
  238. package/daemon/dist/domain/operation-correlation.d.ts.map +1 -1
  239. package/daemon/dist/domain/operation-correlation.js +1 -1
  240. package/daemon/dist/domain/operation-correlation.js.map +1 -1
  241. package/daemon/dist/domain/permission-account.d.ts.map +1 -1
  242. package/daemon/dist/domain/permission-account.js +8 -6
  243. package/daemon/dist/domain/permission-account.js.map +1 -1
  244. package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
  245. package/daemon/dist/domain/permission-drift.js +1 -1
  246. package/daemon/dist/domain/permission-drift.js.map +1 -1
  247. package/daemon/dist/domain/queue-destination-check.d.ts +2 -0
  248. package/daemon/dist/domain/queue-destination-check.d.ts.map +1 -1
  249. package/daemon/dist/domain/queue-destination-check.js +8 -11
  250. package/daemon/dist/domain/queue-destination-check.js.map +1 -1
  251. package/daemon/dist/domain/queue-erasure.d.ts +7 -1
  252. package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
  253. package/daemon/dist/domain/queue-erasure.js +226 -20
  254. package/daemon/dist/domain/queue-erasure.js.map +1 -1
  255. package/daemon/dist/domain/queue-repository.d.ts +39 -17
  256. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  257. package/daemon/dist/domain/queue-repository.js +96 -64
  258. package/daemon/dist/domain/queue-repository.js.map +1 -1
  259. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  260. package/daemon/dist/domain/queue-stuck-sweep.js +49 -21
  261. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  262. package/daemon/dist/domain/queue-transition-log.d.ts +6 -0
  263. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  264. package/daemon/dist/domain/queue-transition-log.js +9 -0
  265. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  266. package/daemon/dist/domain/queue-waiting.d.ts +4 -4
  267. package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
  268. package/daemon/dist/domain/queue-waiting.js +30 -16
  269. package/daemon/dist/domain/queue-waiting.js.map +1 -1
  270. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  271. package/daemon/dist/domain/queue-wake-ladder.js +90 -24
  272. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  273. package/daemon/dist/domain/receiver-context.js +1 -1
  274. package/daemon/dist/domain/receiver-context.js.map +1 -1
  275. package/daemon/dist/domain/restore-check-service.d.ts +13 -0
  276. package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
  277. package/daemon/dist/domain/restore-check-service.js +122 -9
  278. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  279. package/daemon/dist/domain/restore-orchestrator.d.ts +4 -1
  280. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  281. package/daemon/dist/domain/restore-orchestrator.js +132 -48
  282. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  283. package/daemon/dist/domain/restore-preconditions.d.ts +2 -0
  284. package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
  285. package/daemon/dist/domain/restore-preconditions.js +2 -0
  286. package/daemon/dist/domain/restore-preconditions.js.map +1 -1
  287. package/daemon/dist/domain/resume-metadata-refresher.d.ts +17 -4
  288. package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
  289. package/daemon/dist/domain/resume-metadata-refresher.js +64 -15
  290. package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
  291. package/daemon/dist/domain/resume-token-capture.d.ts +6 -0
  292. package/daemon/dist/domain/resume-token-capture.d.ts.map +1 -1
  293. package/daemon/dist/domain/resume-token-capture.js +14 -8
  294. package/daemon/dist/domain/resume-token-capture.js.map +1 -1
  295. package/daemon/dist/domain/rig-delivery-drain.d.ts +46 -0
  296. package/daemon/dist/domain/rig-delivery-drain.d.ts.map +1 -0
  297. package/daemon/dist/domain/rig-delivery-drain.js +128 -0
  298. package/daemon/dist/domain/rig-delivery-drain.js.map +1 -0
  299. package/daemon/dist/domain/rig-edge-ops.js +1 -1
  300. package/daemon/dist/domain/rig-edge-ops.js.map +1 -1
  301. package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
  302. package/daemon/dist/domain/rig-lifecycle-service.js +4 -1
  303. package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
  304. package/daemon/dist/domain/rig-teardown.d.ts +20 -3
  305. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  306. package/daemon/dist/domain/rig-teardown.js +71 -11
  307. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  308. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  309. package/daemon/dist/domain/rigspec-instantiator.js +6 -2
  310. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  311. package/daemon/dist/domain/rigspec-preflight.d.ts +1 -1
  312. package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
  313. package/daemon/dist/domain/rigspec-preflight.js +36 -1
  314. package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
  315. package/daemon/dist/domain/rosters.d.ts +19 -0
  316. package/daemon/dist/domain/rosters.d.ts.map +1 -1
  317. package/daemon/dist/domain/rosters.js +69 -12
  318. package/daemon/dist/domain/rosters.js.map +1 -1
  319. package/daemon/dist/domain/runtime-adapter.d.ts +15 -0
  320. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  321. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  322. package/daemon/dist/domain/seat-delivery-guard.d.ts +8 -2
  323. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  324. package/daemon/dist/domain/seat-delivery-guard.js +38 -3
  325. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  326. package/daemon/dist/domain/seat-handover-attempts.d.ts +50 -0
  327. package/daemon/dist/domain/seat-handover-attempts.d.ts.map +1 -0
  328. package/daemon/dist/domain/seat-handover-attempts.js +75 -0
  329. package/daemon/dist/domain/seat-handover-attempts.js.map +1 -0
  330. package/daemon/dist/domain/seat-handover-service.d.ts +64 -1
  331. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  332. package/daemon/dist/domain/seat-handover-service.js +443 -29
  333. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  334. package/daemon/dist/domain/seat-launch-environment.d.ts +3 -2
  335. package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
  336. package/daemon/dist/domain/seat-launch-environment.js +16 -4
  337. package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
  338. package/daemon/dist/domain/seat-lifecycle-service.d.ts +47 -2
  339. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  340. package/daemon/dist/domain/seat-lifecycle-service.js +48 -2
  341. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  342. package/daemon/dist/domain/seat-runtime-home-record-types.d.ts +16 -0
  343. package/daemon/dist/domain/seat-runtime-home-record-types.d.ts.map +1 -0
  344. package/daemon/dist/domain/seat-runtime-home-record-types.js +2 -0
  345. package/daemon/dist/domain/seat-runtime-home-record-types.js.map +1 -0
  346. package/daemon/dist/domain/seat-runtime-home-record.d.ts +173 -0
  347. package/daemon/dist/domain/seat-runtime-home-record.d.ts.map +1 -0
  348. package/daemon/dist/domain/seat-runtime-home-record.js +317 -0
  349. package/daemon/dist/domain/seat-runtime-home-record.js.map +1 -0
  350. package/daemon/dist/domain/seat-runtime-switch-service.d.ts +7 -0
  351. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  352. package/daemon/dist/domain/seat-runtime-switch-service.js +47 -2
  353. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  354. package/daemon/dist/domain/seat-skill-storage.d.ts +16 -1
  355. package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -1
  356. package/daemon/dist/domain/seat-skill-storage.js +178 -1
  357. package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
  358. package/daemon/dist/domain/session-name.d.ts +13 -0
  359. package/daemon/dist/domain/session-name.d.ts.map +1 -1
  360. package/daemon/dist/domain/session-name.js +77 -0
  361. package/daemon/dist/domain/session-name.js.map +1 -1
  362. package/daemon/dist/domain/session-registry.d.ts +7 -1
  363. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  364. package/daemon/dist/domain/session-registry.js +7 -4
  365. package/daemon/dist/domain/session-registry.js.map +1 -1
  366. package/daemon/dist/domain/session-transport.d.ts +1 -0
  367. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  368. package/daemon/dist/domain/session-transport.js +33 -9
  369. package/daemon/dist/domain/session-transport.js.map +1 -1
  370. package/daemon/dist/domain/shared-history-selection.d.ts +1 -0
  371. package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -1
  372. package/daemon/dist/domain/shared-history-selection.js +3 -1
  373. package/daemon/dist/domain/shared-history-selection.js.map +1 -1
  374. package/daemon/dist/domain/skill-catalog.d.ts +3 -0
  375. package/daemon/dist/domain/skill-catalog.d.ts.map +1 -1
  376. package/daemon/dist/domain/skill-catalog.js +7 -3
  377. package/daemon/dist/domain/skill-catalog.js.map +1 -1
  378. package/daemon/dist/domain/snapshot-capture.d.ts +4 -1
  379. package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
  380. package/daemon/dist/domain/snapshot-capture.js +24 -12
  381. package/daemon/dist/domain/snapshot-capture.js.map +1 -1
  382. package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
  383. package/daemon/dist/domain/startup-submission-evidence.js +3 -2
  384. package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
  385. package/daemon/dist/domain/successor-session-launcher.d.ts +16 -0
  386. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  387. package/daemon/dist/domain/successor-session-launcher.js +70 -38
  388. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  389. package/daemon/dist/domain/types.d.ts +43 -2
  390. package/daemon/dist/domain/types.d.ts.map +1 -1
  391. package/daemon/dist/domain/types.js.map +1 -1
  392. package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
  393. package/daemon/dist/domain/user-settings/settings-browser.js +3 -1
  394. package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
  395. package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
  396. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  397. package/daemon/dist/domain/user-settings/settings-store.js +6 -0
  398. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  399. package/daemon/dist/domain/watchdog-policy-engine.d.ts +4 -0
  400. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  401. package/daemon/dist/domain/watchdog-policy-engine.js +28 -1
  402. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  403. package/daemon/dist/domain/workflow-exception-escalation.d.ts.map +1 -1
  404. package/daemon/dist/domain/workflow-exception-escalation.js +13 -8
  405. package/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
  406. package/daemon/dist/domain/workflow-instance-store.d.ts +14 -2
  407. package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
  408. package/daemon/dist/domain/workflow-instance-store.js +41 -4
  409. package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
  410. package/daemon/dist/domain/workflow-projector.d.ts +55 -0
  411. package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
  412. package/daemon/dist/domain/workflow-projector.js +355 -174
  413. package/daemon/dist/domain/workflow-projector.js.map +1 -1
  414. package/daemon/dist/domain/workflow-reconciliation.d.ts +7 -1
  415. package/daemon/dist/domain/workflow-reconciliation.d.ts.map +1 -1
  416. package/daemon/dist/domain/workflow-reconciliation.js +51 -13
  417. package/daemon/dist/domain/workflow-reconciliation.js.map +1 -1
  418. package/daemon/dist/domain/workflow-runtime.d.ts +11 -3
  419. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  420. package/daemon/dist/domain/workflow-runtime.js +141 -27
  421. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  422. package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
  423. package/daemon/dist/lib/pane-envelope.js +12 -7
  424. package/daemon/dist/lib/pane-envelope.js.map +1 -1
  425. package/daemon/dist/routes/compaction.d.ts.map +1 -1
  426. package/daemon/dist/routes/compaction.js +6 -3
  427. package/daemon/dist/routes/compaction.js.map +1 -1
  428. package/daemon/dist/routes/queue.d.ts.map +1 -1
  429. package/daemon/dist/routes/queue.js +78 -31
  430. package/daemon/dist/routes/queue.js.map +1 -1
  431. package/daemon/dist/routes/restore-check.d.ts.map +1 -1
  432. package/daemon/dist/routes/restore-check.js +17 -0
  433. package/daemon/dist/routes/restore-check.js.map +1 -1
  434. package/daemon/dist/routes/rig-delivery-drain.d.ts +3 -0
  435. package/daemon/dist/routes/rig-delivery-drain.d.ts.map +1 -0
  436. package/daemon/dist/routes/rig-delivery-drain.js +46 -0
  437. package/daemon/dist/routes/rig-delivery-drain.js.map +1 -0
  438. package/daemon/dist/routes/scopes.d.ts.map +1 -1
  439. package/daemon/dist/routes/scopes.js +102 -19
  440. package/daemon/dist/routes/scopes.js.map +1 -1
  441. package/daemon/dist/routes/seat.d.ts.map +1 -1
  442. package/daemon/dist/routes/seat.js +50 -2
  443. package/daemon/dist/routes/seat.js.map +1 -1
  444. package/daemon/dist/routes/sessions.d.ts.map +1 -1
  445. package/daemon/dist/routes/sessions.js +54 -10
  446. package/daemon/dist/routes/sessions.js.map +1 -1
  447. package/daemon/dist/routes/startup.d.ts.map +1 -1
  448. package/daemon/dist/routes/startup.js +230 -40
  449. package/daemon/dist/routes/startup.js.map +1 -1
  450. package/daemon/dist/routes/transport.d.ts.map +1 -1
  451. package/daemon/dist/routes/transport.js +36 -2
  452. package/daemon/dist/routes/transport.js.map +1 -1
  453. package/daemon/dist/routes/up.js +2 -0
  454. package/daemon/dist/routes/up.js.map +1 -1
  455. package/daemon/dist/routes/watchdog.d.ts.map +1 -1
  456. package/daemon/dist/routes/watchdog.js +7 -1
  457. package/daemon/dist/routes/watchdog.js.map +1 -1
  458. package/daemon/dist/routes/workflow.d.ts.map +1 -1
  459. package/daemon/dist/routes/workflow.js +23 -5
  460. package/daemon/dist/routes/workflow.js.map +1 -1
  461. package/daemon/dist/server.d.ts.map +1 -1
  462. package/daemon/dist/server.js +2 -0
  463. package/daemon/dist/server.js.map +1 -1
  464. package/daemon/dist/startup.d.ts.map +1 -1
  465. package/daemon/dist/startup.js +111 -37
  466. package/daemon/dist/startup.js.map +1 -1
  467. package/daemon/docs/reference/agent-startup-guide.md +90 -2
  468. package/daemon/docs/reference/daemon-http-clients.md +69 -0
  469. package/daemon/docs/reference/developing.md +1 -1
  470. package/daemon/docs/reference/gateway-participants.md +5 -3
  471. package/daemon/docs/reference/getting-started.md +12 -11
  472. package/daemon/docs/reference/hosted-members.md +4 -2
  473. package/daemon/docs/reference/network-connector.md +4 -3
  474. package/daemon/docs/reference/queue-erasure.md +16 -1
  475. package/daemon/docs/reference/quickstart.md +2 -2
  476. package/daemon/docs/reference/rig-spec.md +92 -4
  477. package/daemon/docs/reference/rosters.md +26 -0
  478. package/daemon/docs/reference/seat-delivery.md +7 -1
  479. package/daemon/docs/reference/whats-new.md +397 -5
  480. package/daemon/specs/agents/shared/skills/core/openrig-software-factory/references/worked-example.md +1 -1
  481. package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +2 -0
  482. package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +22 -6
  483. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +78 -18
  484. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +9 -6
  485. package/dist/build-info.js +3 -3
  486. package/dist/client.d.ts +7 -3
  487. package/dist/client.d.ts.map +1 -1
  488. package/dist/client.js +11 -2
  489. package/dist/client.js.map +1 -1
  490. package/dist/commands/config.d.ts.map +1 -1
  491. package/dist/commands/config.js +2 -0
  492. package/dist/commands/config.js.map +1 -1
  493. package/dist/commands/down.d.ts.map +1 -1
  494. package/dist/commands/down.js +5 -1
  495. package/dist/commands/down.js.map +1 -1
  496. package/dist/commands/environment.js +1 -1
  497. package/dist/commands/environment.js.map +1 -1
  498. package/dist/commands/launch.d.ts.map +1 -1
  499. package/dist/commands/launch.js +8 -0
  500. package/dist/commands/launch.js.map +1 -1
  501. package/dist/commands/mcp.d.ts.map +1 -1
  502. package/dist/commands/mcp.js +18 -1
  503. package/dist/commands/mcp.js.map +1 -1
  504. package/dist/commands/network.d.ts +2 -0
  505. package/dist/commands/network.d.ts.map +1 -1
  506. package/dist/commands/network.js +14 -1
  507. package/dist/commands/network.js.map +1 -1
  508. package/dist/commands/ps.d.ts.map +1 -1
  509. package/dist/commands/ps.js +11 -5
  510. package/dist/commands/ps.js.map +1 -1
  511. package/dist/commands/queue.d.ts +1 -1
  512. package/dist/commands/queue.d.ts.map +1 -1
  513. package/dist/commands/queue.js +49 -12
  514. package/dist/commands/queue.js.map +1 -1
  515. package/dist/commands/restore.d.ts.map +1 -1
  516. package/dist/commands/restore.js +6 -1
  517. package/dist/commands/restore.js.map +1 -1
  518. package/dist/commands/roster.d.ts +4 -2
  519. package/dist/commands/roster.d.ts.map +1 -1
  520. package/dist/commands/roster.js +2 -2
  521. package/dist/commands/roster.js.map +1 -1
  522. package/dist/commands/seat.d.ts +2 -0
  523. package/dist/commands/seat.d.ts.map +1 -1
  524. package/dist/commands/seat.js +201 -14
  525. package/dist/commands/seat.js.map +1 -1
  526. package/dist/commands/send.d.ts.map +1 -1
  527. package/dist/commands/send.js +31 -6
  528. package/dist/commands/send.js.map +1 -1
  529. package/dist/commands/setup.d.ts.map +1 -1
  530. package/dist/commands/setup.js +5 -3
  531. package/dist/commands/setup.js.map +1 -1
  532. package/dist/commands/up.d.ts.map +1 -1
  533. package/dist/commands/up.js +7 -0
  534. package/dist/commands/up.js.map +1 -1
  535. package/dist/commands/walk.d.ts.map +1 -1
  536. package/dist/commands/walk.js +4 -0
  537. package/dist/commands/walk.js.map +1 -1
  538. package/dist/commands/workflow.d.ts.map +1 -1
  539. package/dist/commands/workflow.js +30 -4
  540. package/dist/commands/workflow.js.map +1 -1
  541. package/dist/config-store.d.ts +3 -1
  542. package/dist/config-store.d.ts.map +1 -1
  543. package/dist/config-store.js +5 -0
  544. package/dist/config-store.js.map +1 -1
  545. package/dist/lib/bundle-check.d.ts.map +1 -1
  546. package/dist/lib/bundle-check.js +33 -3
  547. package/dist/lib/bundle-check.js.map +1 -1
  548. package/dist/mcp-http.d.ts +3 -0
  549. package/dist/mcp-http.d.ts.map +1 -1
  550. package/dist/mcp-http.js +13 -0
  551. package/dist/mcp-http.js.map +1 -1
  552. package/dist/mcp-server.d.ts +9 -2
  553. package/dist/mcp-server.d.ts.map +1 -1
  554. package/dist/mcp-server.js +287 -69
  555. package/dist/mcp-server.js.map +1 -1
  556. package/dist/person-registration-offer.d.ts.map +1 -1
  557. package/dist/person-registration-offer.js +2 -1
  558. package/dist/person-registration-offer.js.map +1 -1
  559. package/package.json +2 -2
  560. package/tui/dist/commands/registry.d.ts.map +1 -1
  561. package/tui/dist/commands/registry.js +1 -0
  562. package/tui/dist/commands/registry.js.map +1 -1
  563. package/tui/dist/config/config-model.js +1 -1
  564. package/tui/dist/config/config-model.js.map +1 -1
  565. package/tui/dist/crash-cart/start-daemon.d.ts.map +1 -1
  566. package/tui/dist/crash-cart/start-daemon.js +4 -2
  567. package/tui/dist/crash-cart/start-daemon.js.map +1 -1
  568. package/tui/dist/daemon-client.d.ts +12 -1
  569. package/tui/dist/daemon-client.d.ts.map +1 -1
  570. package/tui/dist/daemon-client.js +44 -2
  571. package/tui/dist/daemon-client.js.map +1 -1
  572. package/tui/dist/hydrate.d.ts +1 -1
  573. package/tui/dist/hydrate.d.ts.map +1 -1
  574. package/tui/dist/hydrate.js +43 -1
  575. package/tui/dist/hydrate.js.map +1 -1
  576. package/tui/dist/main.js +3 -0
  577. package/tui/dist/main.js.map +1 -1
  578. package/tui/dist/page-read.d.ts.map +1 -1
  579. package/tui/dist/page-read.js +2 -1
  580. package/tui/dist/page-read.js.map +1 -1
  581. package/tui/dist/render.d.ts.map +1 -1
  582. package/tui/dist/render.js +110 -16
  583. package/tui/dist/render.js.map +1 -1
  584. package/tui/dist/scopes/fleet-scopes-model.d.ts +73 -0
  585. package/tui/dist/scopes/fleet-scopes-model.d.ts.map +1 -0
  586. package/tui/dist/scopes/fleet-scopes-model.js +102 -0
  587. package/tui/dist/scopes/fleet-scopes-model.js.map +1 -0
  588. package/tui/dist/scopes/scopes-model.d.ts +2 -0
  589. package/tui/dist/scopes/scopes-model.d.ts.map +1 -1
  590. package/tui/dist/scopes/scopes-model.js +7 -4
  591. package/tui/dist/scopes/scopes-model.js.map +1 -1
  592. package/tui/dist/sections.d.ts.map +1 -1
  593. package/tui/dist/sections.js +5 -0
  594. package/tui/dist/sections.js.map +1 -1
  595. package/tui/dist/startup.d.ts +5 -0
  596. package/tui/dist/startup.d.ts.map +1 -1
  597. package/tui/dist/startup.js +12 -0
  598. package/tui/dist/startup.js.map +1 -1
  599. package/tui/dist/state.d.ts.map +1 -1
  600. package/tui/dist/state.js +12 -5
  601. package/tui/dist/state.js.map +1 -1
  602. package/tui/dist/types.d.ts +18 -1
  603. package/tui/dist/types.d.ts.map +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
 
@@ -292,6 +293,32 @@ guidance names that pane and the result carries `replacementStarted` and `succes
292
293
  already ended, the new one may be working there without being registered as the seat's occupant, and another
293
294
  handover or `rig seat launch <seat> --fresh --stop --reason <why>` ends it if it goes ahead.
294
295
 
296
+ **Adopting the successor of a failed handover.** When a handover fails after its successor was launched in the
297
+ respawned pane (the readiness window closed, the context packet didn't land, or the final binding step refused for a
298
+ reason that can change), it records the attempt for a Claude Code successor whose launch named its session id, and its
299
+ guidance leads with `rig seat handover <seat> --recover --reason <why>` and says not to retry the handover, which
300
+ would end that successor. The recovery adopts the successor that is running there and keeps its conversation. It
301
+ first proves, reading only, that the attempt still replaces the seat's current occupant and that the pane is the seat
302
+ session's only pane, with exactly one foreground Claude that names the session id OpenRig generated for that launch,
303
+ the same process in two samples, proven as the launch's readiness proves it (a `#!` wrapper that starts Claude without
304
+ exec included, when the launch recorded its executable: a launch in a native Claude permission mode, `auto` or another
305
+ mode the harness advertises). A classic launch records no executable, and the `floor` and `full_bypass` postures
306
+ launch classically too. A wrapper whose Claude runs as `node cli.js` or under another name is then not proven; when a
307
+ second sample, a few seconds later, finds the same foreground, the refusal says `--recover` can't prove it, and to run
308
+ it again only once the pane shows a waiting wrapper has started Claude (a wrapper still starting, which the second
309
+ sample sees exec Claude or start it, is proven). A
310
+ `/clear` in the successor before the recovery is followed: the conversation it adopts is the one Claude's own session
311
+ file for that process names, when it is newer than the process, even when that is the retiring occupant's conversation
312
+ or a fork parent's. The result says so; a fork successor on its parent's or the retiring occupant's conversation is
313
+ reported as no distinct fork (`forkId: "none"`, continuity `resumed`), and the parent seat is left as it was: both seats
314
+ then name the same conversation, so restoring both opens it twice. Then it commits
315
+ the handover with the occupant generation the attempt reserved, so the successor's identity hooks are accepted from
316
+ then on. It types nothing into the pane, and a packet the failed handover didn't deliver is not delivered: the result
317
+ says so, and a rebuild whose priming never arrived is recorded as fresh. Anything it can't prove, such as another
318
+ conversation, two Claudes or a changed pane, refuses with `successor_identity_unproven` and changes nothing; an
319
+ attempt that another occupant has replaced since is closed as `handover_attempt_superseded`. It adopts Claude Code
320
+ successors only (`recover_runtime_unsupported` otherwise).
321
+
295
322
  **Claude submission check.** For each startup message to a Claude seat, OpenRig makes a bounded check that the prompt
296
323
  was submitted. When the capture can't tell, it records the submission as unverified and carries on. When it sees the
297
324
  same prompt still sitting in the input, it presses Enter once more; if it's still there, it warns "Startup prompt still
@@ -415,7 +442,7 @@ Each startup file and action specifies when it applies:
415
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
416
443
  - Default: `[fresh_start, restore]` (both)
417
444
 
418
- **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).
419
446
 
420
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.
421
448
 
@@ -447,6 +474,7 @@ running seat only through the action in the last column.
447
474
  | Reasoning effort | `rig seat set-effort` | `rig seat effort <seat>`: requested, saved, sent at launch, and what the session recorded, which is not verified until it takes a turn | Its next managed continuation; nothing restarts |
448
475
  | Permissions | `rig seat set-permissions` (`--mode`, `--rules`, or for Codex `--codex-permissions` or `--codex-profile`), shown by `rig seat status` | What it launched with; a status read doesn't prove the running process enforces the selection | Its next managed launch or resume ([per-seat permission mode](getting-started.md#per-seat-permission-mode)) |
449
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) |
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) |
450
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)) |
451
479
  | 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>`) |
452
480
  | 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) |
@@ -612,6 +640,66 @@ This separates provider files, not OS users or accounts. Project-local resources
612
640
  still use the selected project directory; shared project and system settings
613
641
  remain shared.
614
642
 
643
+ ### Record where an existing seat's conversation lives
644
+
645
+ When an existing seat's conversation lives under a different runtime home from the one OpenRig has for it (after a
646
+ recovery, say, or a move between homes), record that home so the seat's next resume or restore launches from it, with
647
+ the same conversation and no successor:
648
+
649
+ ```bash
650
+ rig seat runtime-home dev-impl@my-rig
651
+ rig seat record-runtime-home dev-impl@my-rig --home /home/me/.codex-b \
652
+ --expect-occupant <generation> --expect-original <conversation id> --expect-revision <n> --reason "home after recovery"
653
+ ```
654
+
655
+ `rig seat runtime-home` shows the home the next launch uses and where it comes from, with the seat's current occupant
656
+ generation, its original conversation and the revision of its latest recorded home (0 when none), and prints the
657
+ record command with those values. It works for Claude Code and Codex seats.
658
+
659
+ - **What it's recorded against.** The occupant, original conversation and revision you read. If any of them changed
660
+ since, because a successor took the seat or someone else recorded a home, nothing is applied and the current values
661
+ are shown, so a replacement occupant is never changed by mistake.
662
+ - **Retrying is safe.** Each recording has an operation id, generated and printed when you don't pass
663
+ `--operation-id`. If the result is unknown (a timeout, a lost connection or an unreadable answer), run the same
664
+ command with that id: it returns what was recorded, or records it once, even if the seat's runtime changed since. The
665
+ same id with a different request applies nothing.
666
+ - **What changes.** Only the seat's home and an audit record (`seat.runtime_home_recorded`). No running process,
667
+ pane, login, credential, conversation, model, effort or cwd changes; nothing is copied, switched or launched.
668
+ - **Where it's stored, and credentials.** In the place that decides the seat's home today, so credential handling
669
+ stays as it is. A seat on a home chosen by an account switch keeps that, with provider credentials still unset at
670
+ launch, and gets the new path. Any other seat gets its own `env:` value for the home variable, as a seat that declares
671
+ one in its spec has, and nothing is unset.
672
+ - **What it says, and doesn't.** The result says whether the home exists and whether the original conversation's
673
+ record was found in it; a path it can't read leaves that unknown, never "not found". That doesn't show one copy of a conversation is fresher than another, and whether a running
674
+ process uses the home isn't checked (the result says `runningProcess: unverified`).
675
+ - **Restore.** Snapshots carry each seat's recorded home. Reviewing a selected history shows the current record beside
676
+ the snapshot's, whether it was recorded for the selected conversation or another one, and which home the resume
677
+ uses (`uses`):
678
+ - the home recorded for the selected conversation, when the latest record is its own and the seat's home is still
679
+ that record's (the same path, set in the same place the record wrote it);
680
+ - the newest home recorded for the selected conversation, when a later record is for another one and the seat's home
681
+ is still that later record's. The resume writes it back as a new revision for the selected conversation before it
682
+ launches. It's put back, as a new revision, only when the launch is known to have been rolled back and the seat's
683
+ conversation is the one it had before: OpenRig undid the launch and its terminal is known to be gone (none was
684
+ created, or tmux confirmed the stop), or it stopped before starting one, so no session was registered and no resume
685
+ was sent. A terminal registered without a resume, a creation or stop tmux couldn't confirm, or a launch that failed
686
+ with an error isn't known to be undone, so the home stays. After a confirmed resume it stays, a Claude
687
+ conversation continued under a new id included, and when what the launch left isn't known it stays too and the
688
+ result says so;
689
+ - otherwise the seat's home as set, with no record revision for the selected conversation: when nothing was recorded,
690
+ when the home changed since the latest record (an account or runtime switch, say, including one that leaves the
691
+ same path coming from the rig's declaration), which isn't undone, or when no home was recorded for this
692
+ conversation.
693
+
694
+ The review also says whether the selected conversation's record is found in that home, as context. The result
695
+ names the home the resume was bound to and attempted, and whether OpenRig registered a terminal session for it
696
+ (`sessionRegistered`). That isn't the native resume: whether that ran and took is the result's `ok` and `code`. For a
697
+ written-back home, it says whether it was put back (`putBack`), or why not (`notPutBack`). A launch that fails with an
698
+ error returns `launch_error`, with the same home named and nothing put back, since what it left isn't known.
699
+
700
+ A recording made after the review, even to the same home, changes the review's revision, so a resume reviewed before
701
+ it doesn't run. Review again and decide.
702
+
615
703
  ### Codex guidance at launch
616
704
 
617
705
  On a fresh launch of Codex 0.164.0 or later, OpenRig passes a seat's managed guidance (OpenRig's start file and the
@@ -232,6 +232,7 @@ With `needs-me.read` supported:
232
232
  Success is 201 with `instance`, `spec`, `entryQitemId` and `entryOwnerSession`, any `advisories`, and
233
233
  `scopeIgnored` when a scope wasn't applied. The instance keeps `rootObjective`, which every instance read returns
234
234
  (`/api/workflow/list`, `/api/workflow/<id>` and its `trace`). An instance started before it was kept reads `null`.
235
+ - **`GET /api/workflow/list`** accepts exact `project`, `mission`, `slice`, `rig` (the bound rig), and `name` (the workflow name) filters, repeatable `tag` filters on the instance's free-form scope tags, and `limit` from 1 to 10,000. Filters combine with AND and apply before the limit; results keep their existing oldest-first order. Instances without the requested scope or binding do not match. Without these filters, existing list behavior is unchanged.
235
236
  - **`GET /api/provider/usage`** returns `{ hostUsage }`, this host's usage rows (`host: "local"`, a `provider`
236
237
  and a `state`). A Claude row's `windows` are the seats' status-line readings, one entry per reading, each with
237
238
  its `window`, `usedPercent`, `resetsAt`, `asOf` and `seatSession`. A Codex row has `windows: []`. Treating the
@@ -267,3 +268,71 @@ With `needs-me.read` supported:
267
268
  subject to the existing project filter and the newest 500 rows per slice. Counts are recomputed on every list
268
269
  request. `?refresh=1|true` invalidates the separate listing cache, not a stored queue-count snapshot. This
269
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.
@@ -33,7 +33,7 @@ suite. Both sets are readable in the root `package.json` scripts.
33
33
 
34
34
  | Lane | Command | Meaning |
35
35
  |---|---|---|
36
- | Portability report | `node scripts/portability-report.mjs` | lists added lines with machine-specific values; findings never fail it (`.github/workflows/portability-report.yml`) |
36
+ | Portability report | `node scripts/portability-report.mjs` | lists added lines with machine-specific values; findings don't fail it by default, and `--strict` exits 1 when it finds any. The workflow (`.github/workflows/portability-report.yml`) runs it without `--strict`. |
37
37
 
38
38
  ## The norm (web-UI freeze at 0.5.0)
39
39
 
@@ -26,9 +26,11 @@ A person can also bind to a local bridge adapter using a `relay` binding:
26
26
  `rig gateway human add bob --display-name "Bob" --delivery-class B --binding "relay:local-bridge:file:/etc/openrig/relay.env:primary:handle=bob-ops"`
27
27
  (see [Gateway Relay Reference](gateway-relay.md) for endpoint, secret provisioning, and custody architecture).
28
28
  `human@host` is the unnamed person at the terminal; `human@kernel` is also accepted as a human/gate address.
29
- These aliases (including `human-<name>@host` and `human-<name>@kernel`) are not agent sessions: reply with
30
- `rig queue create --destination human@host --human-intent update --summary "<one line>" --evidence-ref "<path>" --body "..." --verify`,
31
- substituting the sender's address and your summary, evidence path and reply. A reply destination doesn't identify
29
+ These aliases (including `human-<name>@host` and `human-<name>@kernel`) are not agent sessions. A row addressed to
30
+ `human@host` names no person: it asks no one, waits on Steering and in the Feed, and OpenRig reports it as undeliverable. To reply to a person, use
31
+ their registered address:
32
+ `rig queue create --destination <their address> --human-intent update --summary "<one line>" --evidence-ref "<path>" --body "..." --verify`,
33
+ substituting your summary, evidence path and reply. A reply destination doesn't identify
32
34
  who acted or determine who may answer an ask. Clients acting as a registered person name that person's
33
35
  `actorSession`; a seat identity header takes precedence. The terminal's primary-user authority records the unnamed
34
36
  `human@host` actor, not the person whose queue is being viewed.
@@ -112,8 +112,9 @@ including its `bwrap` AppArmor profile guidance; changes to AppArmor are the own
112
112
  **Choose permissions before starting the team.** Ordinary OpenRig launches use
113
113
  Codex's `-s workspace-write`, with approval policy from your native configuration,
114
114
  or Claude Code's `acceptEdits`, which still leaves commands subject to native
115
- rules and prompts. A team seat with no permission policy, per-seat choice or
116
- (for Codex) named profile also gets a per-launch
115
+ rules and prompts. A team seat with no permission policy (or with `standard` or
116
+ `open`, whose rules aren't applied at launch), per-seat choice or (for Codex)
117
+ named profile also gets a per-launch
117
118
  [team default](rig-spec.md#team-launch-defaults): Claude runs ordinary `rig`
118
119
  commands, project reads and common tests without prompting, while lifecycle
119
120
  commands such as `rig up` and `rig down` still ask; Codex also gets the OpenRig
@@ -185,10 +186,10 @@ agent doing the setup. Both use this release's tag:
185
186
 
186
187
  ```sh
187
188
  # Claude Code
188
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.15/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
189
190
 
190
191
  # Codex
191
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.15/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
192
193
  ```
193
194
 
194
195
  If OpenRig is already installed, use the release tag matching your installed `rig --version` instead: replace the tag
@@ -203,11 +204,11 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
203
204
  script will do and changes nothing:
204
205
 
205
206
  ```sh
206
- curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.15/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
207
208
  ```
208
209
 
209
210
  The same command without `--dry-run`,
210
- `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.15/scripts/install.sh | sh`, installs the
211
+ `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.17/scripts/install.sh | sh`, installs the
211
212
  latest published `@openrig/cli` with `npm install -g`, runs the Node.js and SQLite check if the installed checker is
212
213
  present (otherwise it reports the check skipped), then runs `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
213
214
  Codex and may install a missing one, as described below. A failed step prints
@@ -671,7 +672,7 @@ rig ps --nodes --rig starter
671
672
  Preview the selected seats, models and resources. Plan checks resolution and
672
673
  preflight for the working directory. The kernel is already your entry point; this step starts the chosen project
673
674
  team. Read readiness for the project seats, not only daemon health. Have the person answer a named authentication, trust, hook-review or
674
- permission prompt before giving that seat work; a launch default, or their answer for another seat, isn't their answer to this one. 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
675
676
  `Status: partial`, prints `Startup attention (<seat>): <reason>` and exits 1;
676
677
  `rig ps --nodes` repeats it as "Startup details". The reason ends with the command
677
678
  to run once the prompt is answered: `rig seat continue <seat>`, which delivers the
@@ -757,9 +758,9 @@ Herdr, use `rig terminal open starter --provider herdr`; for the shared
757
758
  dashboard together with the kernel conversations, use the
758
759
  [saved first view](#open-the-kernel-conversations). The equivalent
759
760
  cmux provider is also available. Read the opened/absent/degraded result: a
760
- partial terminal view is not a healthy team. Each `--provider herdr` open adds
761
- a new workspace, numbered when the name is taken; return to the one already open
762
- 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`
763
764
  focuses a matching space instead of adding one. Herdr's own status for a seat can
764
765
  read idle or unknown while OpenRig shows it waiting (`needs-input`), for example in
765
766
  a narrow tile that wraps Claude's footer, or in a tile that shows the inner tmux
@@ -1288,7 +1289,7 @@ and `off` for ordinary automatic sends (`--enabled false`).
1288
1289
  In the shipped `starter`, `dev-build` runs Claude Code. For a **Claude Code** seat,
1289
1290
  OpenRig normally passes `--permission-mode acceptEdits`: edits can proceed, while
1290
1291
  other actions follow native rules and prompts. For a seat with no permission
1291
- policy or per-seat choice it also passes the per-launch team default (`--settings` allowing ordinary
1292
+ policy (or with `standard` or `open`) and no per-seat choice it also passes the per-launch team default (`--settings` allowing ordinary
1292
1293
  `rig` commands, project reads and common tests, with a session hook asking for
1293
1294
  lifecycle commands while allowing literal help forms such as `rig down --help`);
1294
1295
  personal and project rules still apply. Nothing is written to your settings files. To explicitly select the bypass launch flag for that rig:
@@ -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.15/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.15/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
@@ -324,6 +324,89 @@ envelope. An OpenRig older than 0.7.3 doesn't read a recorded envelope, so after
324
324
  the seat launches without it. The field is also supported on legacy flat Codex nodes; other
325
325
  runtimes reject it.
326
326
 
327
+ For an explicit filesystem policy, use `filesystem` **instead of** `sandbox` and its
328
+ workspace-write fields. This is the same per-seat selection and audited setter:
329
+
330
+ ```yaml
331
+ cwd: /workspace/shared
332
+ env:
333
+ CODEX_HOME: /accounts/codex # existing account home; never copied
334
+ codex_permissions:
335
+ approval: never
336
+ filesystem:
337
+ ":minimal": read
338
+ ":workspace_roots": write
339
+ "/workspace/shared/private": deny
340
+ network_access: false
341
+ ```
342
+
343
+ The mapping accepts native `read`, `write` and `deny` values at absolute paths,
344
+ `~/path`, or `:root`, `:minimal`, `:workspace_roots` (alias `:project_roots`),
345
+ `:tmpdir` and `:slash_tmp`.
346
+ It must be nonempty; nested subpath maps and arbitrary Codex settings are not part
347
+ of this option. Omitted network access becomes `false`. Include the read access
348
+ your tools and installed Codex executable need; this custom profile adds no
349
+ workspace, temporary, queue-state, seat-folder or Git-directory write grants of
350
+ its own. Native Codex decides whether the host can enforce the supplied rules.
351
+ Filesystem approval accepts `never` or `on-request`; the retired `untrusted`
352
+ approval is rejected before the selection is saved.
353
+
354
+ OpenRig emits the policy as invocation-local `permissions.openrig-seat` and
355
+ `default_permissions` overrides, with the selected approval. It writes no policy
356
+ file, so two seats can share both `CODEX_HOME` and `cwd` without overwriting each
357
+ other. Clearing the selection changes only that seat's record. Existing
358
+ account-scoped `codex_config_fragment` resources and their root-key rejection
359
+ stay unchanged.
360
+
361
+ Before dispatch, OpenRig compares Codex's native configuration with the seat's
362
+ selection. Positive evidence of access widening, a conflicting profile or
363
+ approval choice, an excluding managed allowlist, or a missing/empty selected
364
+ profile refuses launch. Compatible managed defaults and allowlists, harmless
365
+ descriptions and provably narrower flat rules are accepted. Legacy sandbox
366
+ settings are inert under the invocation's explicit permission-profile selection.
367
+ Null fields are treated as absent, including unfamiliar optional fields.
368
+ Managed `defaultPermissions` is a fallback, not a forced selection; the
369
+ effective profile and managed allowlist determine whether the agent's choice holds.
370
+
371
+ A timeout, reader failure, unfamiliar representation or unsupported managed
372
+ requirement continues with the authored flags and reports `policy not verified:
373
+ <reason>` in the launch observation and status. The policy is never dropped or
374
+ swapped, and account/project settings are never edited to make the check pass.
375
+ Absent selection or approval fields, unfamiliar approval strings or profile formats,
376
+ and unclear overlap between native selectors and authored path rules are also unverified.
377
+ An authored selector that may cover an extra grant is considered before a literal
378
+ ancestor would reject that grant, except that an explicit non-root deny ancestor
379
+ always takes precedence over possible selector coverage. A full-root deny, written
380
+ as `/` or `:root`, is a default narrower grants may refine: possible authored
381
+ selector coverage stays unverified, while a proven outside grant still refuses.
382
+ Codex 0.167.2's `:minimal` adds system read defaults, not `/home` or `/Users`
383
+ user-data coverage; extra grants there under a root deny or with no root rule still refuse unless
384
+ another authored rule may cover them. Other minimal-path coverage stays unexpanded.
385
+ Duplicate aliases from a
386
+ lower layer leave their own coverage unverified; they do not hide a known widening
387
+ at another path.
388
+ Inconclusive coverage warnings name the extra rule and access. An excluding managed
389
+ allowlist is reported before an effective selection or approval mismatch.
390
+ Concrete refusals name the conflicting rule and offer a remedy; handover preserves
391
+ that remedy while leaving the predecessor running.
392
+ Without an explicit `CODEX_HOME`, OpenRig resolves the normal account home and
393
+ pins it for both the read and launch; an unresolvable home is reported as
394
+ unverified. A named `codex_config_profile` is retained but unverified because the
395
+ native reader cannot load that layer on this path. A `launch_wrapper` is also
396
+ retained and unverified: it may change the effective home/configuration, so a
397
+ read without that wrapper cannot certify the launch.
398
+
399
+ The filesystem selection replaces permission-mode and team/kernel defaults,
400
+ including ambient YOLO. Fresh launches, both resume paths and restore emit the
401
+ same selection. A rebuild uses the saved filesystem policy ahead of an observed
402
+ predecessor sandbox; clearing or replacing the policy after a snapshot takes
403
+ effect on restore. Status reports the plan and its limits, not observed native
404
+ enforcement. Handover checks the successor's filesystem selection before
405
+ signaling the predecessor; a concrete conflict leaves that predecessor running.
406
+ Configuration can change between the preflight and native startup;
407
+ the read and launch are not atomic. Codex's sandbox governs local command
408
+ execution, not every connector, account or external service.
409
+
327
410
  For an existing seat, put the envelope in a JSON file, or change its profile, with the existing
328
411
  audited permission command:
329
412
 
@@ -369,8 +452,12 @@ the Codex version and configuration being used.
369
452
 
370
453
  A non-kernel Claude or Codex seat with no authored permission policy, explicit
371
454
  seat permission selection, or named Codex profile receives the team launch
372
- default. An explicit policy, including `none` or `builtin:locked`, keeps its
373
- existing meaning. The default is derived again for fresh launch, resume, fork
455
+ default. So does one whose policy is `builtin:standard` or `builtin:open`, with
456
+ no seat permission selection, Claude rules of its own, or named Codex profile:
457
+ those policies default to allow, and their rules aren't applied at launch, so
458
+ recording one doesn't leave the seat stricter than recording none. The member's
459
+ own policy decides over the rig's. Any other explicit policy, including `none`
460
+ or `builtin:locked`, keeps its existing meaning. The default is derived again for fresh launch, resume, fork
374
461
  and handover; it is not saved as a user choice. Kernel, Pi and terminal behavior
375
462
  is unchanged.
376
463
 
@@ -472,7 +559,8 @@ launches with `-s danger-full-access -a never`, plus per-launch `-c` overrides t
472
559
  full-access and GPT-5.1 migration notices, whatever the rig's non-interruptive choice.
473
560
 
474
561
  **Config-surface policies are recorded, not applied at launch.** The seat still starts at
475
- the floor. The `allow`, `ask` and `deny` rules take effect once they are translated into the
562
+ the floor: with the [team launch default](#team-launch-defaults) for `standard` and `open`,
563
+ and without it for any other. The plan's line for that seat says which. The `allow`, `ask` and `deny` rules take effect once they are translated into the
476
564
  runtime's native settings. The `applying-a-permission-policy` skill in `openrig-core` does
477
565
  that translation, with per-runtime limits. For example, Claude's prefix rules can't
478
566
  reliably tell `git push --force` from `git push`. An `ask` waits for a person, so it pauses
@@ -798,7 +886,7 @@ directory's `CLAUDE.md`, including blocks written by other rigs.
798
886
  | `restore_policy` | string | no | the AgentSpec's | Restore behavior. One of: `resume_if_possible`, `relaunch_fresh`, `checkpoint_only`. The default comes from the AgentSpec's `defaults.lifecycle` (else `resume_if_possible`) as narrowed by its profile; a member value may only narrow it further, in that order. |
799
887
  | `compaction_strategy` | string | no | — | `default-compaction`, `managed-compaction`, `handover` or `apprentice-handover`; `harness_native` and `pod_continuity` are accepted as deprecated aliases, and `custom_prompt` is refused. `managed-compaction` and `apprentice-handover` create their jobs only for `claude-code` seats; see [Codex compaction and sizing](agent-startup-guide.md#codex-compaction-and-sizing). |
800
888
  | `mechanic` | string | no | — | A canonical `seat@rig` session address, for `apprentice-handover`. |
801
- | `session_source` | object | no | — | Start the seat from an existing session: `fork` with `native_id`, `rebuild` with `artifact_set`, or `agent_image` with `image_name`. A Claude Code `fork` needs Claude Code 2.0.73 or later. Not valid on terminal members. |
889
+ | `session_source` | object | no | — | Start the seat from an existing session: `fork` with `native_id`, `rebuild` with `artifact_set`, or `agent_image` with `image_name`. A Claude Code `fork` needs Claude Code 2.0.73 or later. Not valid on terminal members. Rebuild `artifact_set` paths are read as given, relative to the daemon's working directory, so an absolute path is the reliable form. |
802
890
  | `starter_ref` | object | no | — | `{ name }` of an agent starter (`^[a-zA-Z0-9][a-zA-Z0-9_-]*$`) whose files lead the seat's startup. Not valid on terminal members or with a fork. |
803
891
  | `startup` | StartupBlock | no | — | Member-level startup files and actions. Applied only to this member. |
804
892
 
@@ -89,6 +89,9 @@ labelled observation.
89
89
 
90
90
  A member marked `"hosted": true` is a hosted member: a tool outside the terminal that reaches the team over MCP, with no node or pane.
91
91
  `rig_team` lists it with its capabilities and caveat, no pane and activity unknown, unless its seat is one of the rig's nodes.
92
+ For a caller on an external grant, a node seat on a roster keeps its own `rig_team` entry, with that entry's label,
93
+ capabilities, `use_when`, caveat and presence added, so an assistant can see a disconnected seat for what it is. A seat
94
+ on no roster reads as before, and so does every seat for an internal caller.
92
95
  `show` and `find` say it's hosted rather than unmatched. See [Hosted members](hosted-members.md).
93
96
  Its entry can declare `wake.webhook`, the secret names for a trigger OpenRig rings when work lands for it
94
97
  (see [Ring it when work lands](hosted-members.md#ring-it-when-work-lands)).
@@ -97,3 +100,26 @@ an hourly schedule is `60`), or `check_in_on_request: true` when it checks in on
97
100
  its person set up, not something OpenRig observes. With neither, its check-in status reads unknown: OpenRig doesn't
98
101
  assume a cadence. A value that can't be used doesn't stop the roster loading: that member's check-in
99
102
  status reads unknown, with the reason. See [Check-in status](hosted-members.md#check-in-status).
103
+
104
+ Any member can declare a `label`: how the person knows it, which an assistant can say back, such as
105
+ `"claude (Sam's assistant, invited)"`. It's plain text of at most 200 characters, with no control characters, line or
106
+ paragraph separators, bidirectional embeddings, overrides or isolates, word joiner or invisible operators (U+2060 to
107
+ U+2064), byte-order mark (U+FEFF), or angle brackets. The zero-width space, the zero-width joiner and non-joiner, and
108
+ the direction marks are allowed, as names need them. A label that breaks those rules doesn't stop the roster
109
+ loading: it's ignored with `label_problem`, and the member is named by its seat as before. An external caller's entry
110
+ carries that `label_problem`, so an unusable label doesn't read as absent.
111
+
112
+ The roster at `rosters/network-<rig>.json` names that rig's team. Without that file, the roster whose `id` is the
113
+ rig's name does (the `<rig>.json` the starter and factory leads write; the first by file name if several do). For an
114
+ external caller, `rig_team` reports its `name` as `rig.displayName`, beside the rig's own name. The name follows the
115
+ label rule; one that breaks it isn't shown, and
116
+ `rig.displayNameProblem` says why. When an external caller's default list of its own open items is empty,
117
+ `rig_queue_list` adds a line its assistant can repeat, such as
118
+ `No open requests are addressed to you on the team "Sam's team".` (a list of every state says `No requests …`).
119
+ If the owner hasn't named the team, the name is `Your OpenRig team`, and the line says `on your OpenRig team`. Without
120
+ that roster, or with a name that can't be shown, there's no display name, and the line says `on your OpenRig team`.
121
+
122
+ Labels, names and caveats are as the roster's writer last authored them, not live observations. Presence is OpenRig's
123
+ own reading. When some rosters can't be read, or this daemon's host id isn't known yet, `rig_team` says so in
124
+ `hostedMembersNote`: hosted members, and the roster entries of the team's seats, may be missing. The seats themselves
125
+ are still listed.
@@ -24,9 +24,15 @@ a shell prompt holds them. Keep the default for a seat that may fall back to a s
24
24
 
25
25
  Runtime permissions are separate. Recipient and interactive-prompt checks still
26
26
  apply. `--raw` and `--force` do not bypass the typing guard. A deliberate
27
- `--dangerously-interact --reason` remains available at every interruption level
27
+ `--dangerously-interact --reason` remains available in every mode, `hold` included,
28
28
  and uses the existing-input check below. Direct human input remains available.
29
29
 
30
+ An ordinary `rig send` types the message inside its From/To envelope, whose first
31
+ line is `From:`, so a message that starts with `/` stays literal text rather than
32
+ running as the agent's slash command. `--raw` and `--dangerously-interact` type the
33
+ exact text, with no envelope. Claude Code (2.1.322) turns a pasted tab into four
34
+ spaces, so tabs reach a Claude Code seat as spaces.
35
+
30
36
  A message sent to a busy Codex seat joins its running turn and may redirect it.
31
37
  For separate work, create a queue row instead:
32
38
  `rig queue create --destination <seat> --summary "<one line>" --body-file <file>`.