@openrig/cli 0.7.25 → 0.7.26

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 (479) hide show
  1. package/README.md +7 -7
  2. package/daemon/assets/claude-hook-bridge.d.cts +9 -2
  3. package/daemon/assets/claude-permission-policies.cjs +18 -1
  4. package/daemon/assets/claude-permission-policies.d.cts +1 -0
  5. package/daemon/assets/claude-team-permissions.cjs +22 -1
  6. package/daemon/assets/guidance/openrig-context-entry.md +4 -5
  7. package/daemon/assets/guidance/openrig-start.md +3 -0
  8. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
  9. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
  10. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
  11. package/daemon/assets/plugins/openrig/README.md +5 -3
  12. package/daemon/assets/plugins/openrig/plugin.json +1 -1
  13. package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +15 -5
  14. package/daemon/assets/plugins/openrig-codex/.codex-plugin/plugin.json +1 -1
  15. package/daemon/assets/plugins/openrig-codex/skills/working-with-an-openrig-team/SKILL.md +15 -5
  16. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  17. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  18. package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +23 -6
  19. package/daemon/assets/plugins/openrig-core/skills/session-compaction-and-restore/SKILL.md +5 -2
  20. package/daemon/assets/skills/rigs/SKILL.md +90 -33
  21. package/daemon/assets/skills/rigs/references/installing-for-someone.md +1 -1
  22. package/daemon/context-packs/help/manifest.yaml +1 -1
  23. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  24. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +82 -20
  25. package/daemon/context-packs/reference/getting-started.md +63 -11
  26. package/daemon/context-packs/reference/manifest.yaml +1 -1
  27. package/daemon/context-packs/reference/rig-spec.md +40 -14
  28. package/daemon/context-packs/reference/whats-new.md +102 -12
  29. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/cross-host-rig-commands/SKILL.md +9 -1
  36. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +15 -5
  52. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/openrig-user/SKILL.md +23 -6
  59. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  77. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  78. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  79. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  80. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  81. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  82. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  83. package/daemon/context-packs/skills/session-compaction-and-restore/SKILL.md +5 -2
  84. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  85. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  86. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  87. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  88. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  89. package/daemon/dist/adapters/claude-code-adapter.js +10 -4
  90. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  91. package/daemon/dist/adapters/claude-resume.d.ts +2 -0
  92. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  93. package/daemon/dist/adapters/claude-resume.js +24 -6
  94. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  95. package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
  96. package/daemon/dist/adapters/kernel-authority.js +3 -1
  97. package/daemon/dist/adapters/kernel-authority.js.map +1 -1
  98. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  99. package/daemon/dist/adapters/pi-runner.js +9 -0
  100. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  101. package/daemon/dist/adapters/pi-session-cwd.d.ts +26 -0
  102. package/daemon/dist/adapters/pi-session-cwd.d.ts.map +1 -0
  103. package/daemon/dist/adapters/pi-session-cwd.js +89 -0
  104. package/daemon/dist/adapters/pi-session-cwd.js.map +1 -0
  105. package/daemon/dist/adapters/shell-quote.d.ts +2 -0
  106. package/daemon/dist/adapters/shell-quote.d.ts.map +1 -1
  107. package/daemon/dist/adapters/shell-quote.js +43 -0
  108. package/daemon/dist/adapters/shell-quote.js.map +1 -1
  109. package/daemon/dist/adapters/tmux-credential-env.d.ts +15 -2
  110. package/daemon/dist/adapters/tmux-credential-env.d.ts.map +1 -1
  111. package/daemon/dist/adapters/tmux-credential-env.js +82 -2
  112. package/daemon/dist/adapters/tmux-credential-env.js.map +1 -1
  113. package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
  114. package/daemon/dist/adapters/tmux-exec.js +2 -6
  115. package/daemon/dist/adapters/tmux-exec.js.map +1 -1
  116. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  117. package/daemon/dist/adapters/tmux.js +5 -3
  118. package/daemon/dist/adapters/tmux.js.map +1 -1
  119. package/daemon/dist/bind-plan-surface.d.ts +3 -0
  120. package/daemon/dist/bind-plan-surface.d.ts.map +1 -0
  121. package/daemon/dist/bind-plan-surface.js +5 -0
  122. package/daemon/dist/bind-plan-surface.js.map +1 -0
  123. package/daemon/dist/build-info.js +3 -3
  124. package/daemon/dist/db/migrations/202_network_requester_questions.d.ts +4 -0
  125. package/daemon/dist/db/migrations/202_network_requester_questions.d.ts.map +1 -0
  126. package/daemon/dist/db/migrations/202_network_requester_questions.js +10 -0
  127. package/daemon/dist/db/migrations/202_network_requester_questions.js.map +1 -0
  128. package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.d.ts +3 -0
  129. package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.d.ts.map +1 -0
  130. package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.js +22 -0
  131. package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.js.map +1 -0
  132. package/daemon/dist/domain/agent-activity-store.d.ts +4 -0
  133. package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
  134. package/daemon/dist/domain/agent-activity-store.js +16 -0
  135. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  136. package/daemon/dist/domain/agent-images/agent-image-destination.d.ts +15 -0
  137. package/daemon/dist/domain/agent-images/agent-image-destination.d.ts.map +1 -0
  138. package/daemon/dist/domain/agent-images/agent-image-destination.js +79 -0
  139. package/daemon/dist/domain/agent-images/agent-image-destination.js.map +1 -0
  140. package/daemon/dist/domain/agent-images/agent-image-library-service.d.ts.map +1 -1
  141. package/daemon/dist/domain/agent-images/agent-image-library-service.js +9 -1
  142. package/daemon/dist/domain/agent-images/agent-image-library-service.js.map +1 -1
  143. package/daemon/dist/domain/bootstrap-orchestrator.d.ts +4 -3
  144. package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
  145. package/daemon/dist/domain/bootstrap-orchestrator.js +55 -11
  146. package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
  147. package/daemon/dist/domain/bundle-content-routing.d.ts +7 -0
  148. package/daemon/dist/domain/bundle-content-routing.d.ts.map +1 -1
  149. package/daemon/dist/domain/bundle-content-routing.js +20 -15
  150. package/daemon/dist/domain/bundle-content-routing.js.map +1 -1
  151. package/daemon/dist/domain/claude-compaction-enforcer.js +3 -3
  152. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  153. package/daemon/dist/domain/claude-continuation-launch.d.ts +19 -2
  154. package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -1
  155. package/daemon/dist/domain/claude-continuation-launch.js +143 -3
  156. package/daemon/dist/domain/claude-continuation-launch.js.map +1 -1
  157. package/daemon/dist/domain/claude-managed-launch.d.ts +22 -5
  158. package/daemon/dist/domain/claude-managed-launch.d.ts.map +1 -1
  159. package/daemon/dist/domain/claude-managed-launch.js +41 -5
  160. package/daemon/dist/domain/claude-managed-launch.js.map +1 -1
  161. package/daemon/dist/domain/claude-permission-rules.d.ts +3 -1
  162. package/daemon/dist/domain/claude-permission-rules.d.ts.map +1 -1
  163. package/daemon/dist/domain/claude-permission-rules.js +8 -7
  164. package/daemon/dist/domain/claude-permission-rules.js.map +1 -1
  165. package/daemon/dist/domain/claude-seat-token.d.ts +23 -1
  166. package/daemon/dist/domain/claude-seat-token.d.ts.map +1 -1
  167. package/daemon/dist/domain/claude-seat-token.js +49 -7
  168. package/daemon/dist/domain/claude-seat-token.js.map +1 -1
  169. package/daemon/dist/domain/codex-auth.d.ts +34 -0
  170. package/daemon/dist/domain/codex-auth.d.ts.map +1 -1
  171. package/daemon/dist/domain/codex-auth.js +212 -0
  172. package/daemon/dist/domain/codex-auth.js.map +1 -1
  173. package/daemon/dist/domain/community-harness-launch-result.d.ts +9 -0
  174. package/daemon/dist/domain/community-harness-launch-result.d.ts.map +1 -1
  175. package/daemon/dist/domain/community-harness-launch-result.js +14 -2
  176. package/daemon/dist/domain/community-harness-launch-result.js.map +1 -1
  177. package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
  178. package/daemon/dist/domain/compaction-restore-notice.js +4 -2
  179. package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
  180. package/daemon/dist/domain/crash-cart-detect.d.ts +7 -0
  181. package/daemon/dist/domain/crash-cart-detect.d.ts.map +1 -1
  182. package/daemon/dist/domain/crash-cart-detect.js +10 -5
  183. package/daemon/dist/domain/crash-cart-detect.js.map +1 -1
  184. package/daemon/dist/domain/crash-cart-discovery.d.ts +9 -16
  185. package/daemon/dist/domain/crash-cart-discovery.d.ts.map +1 -1
  186. package/daemon/dist/domain/crash-cart-discovery.js +22 -40
  187. package/daemon/dist/domain/crash-cart-discovery.js.map +1 -1
  188. package/daemon/dist/domain/crash-cart-emit.d.ts +1 -1
  189. package/daemon/dist/domain/crash-cart-emit.d.ts.map +1 -1
  190. package/daemon/dist/domain/crash-cart-emit.js +4 -0
  191. package/daemon/dist/domain/crash-cart-emit.js.map +1 -1
  192. package/daemon/dist/domain/cwd-resolution.d.ts +12 -1
  193. package/daemon/dist/domain/cwd-resolution.d.ts.map +1 -1
  194. package/daemon/dist/domain/cwd-resolution.js +39 -2
  195. package/daemon/dist/domain/cwd-resolution.js.map +1 -1
  196. package/daemon/dist/domain/draft-held-reoffer.d.ts +17 -1
  197. package/daemon/dist/domain/draft-held-reoffer.d.ts.map +1 -1
  198. package/daemon/dist/domain/draft-held-reoffer.js +76 -0
  199. package/daemon/dist/domain/draft-held-reoffer.js.map +1 -1
  200. package/daemon/dist/domain/gateway/destination-resolver.d.ts +4 -0
  201. package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
  202. package/daemon/dist/domain/gateway/destination-resolver.js +9 -3
  203. package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
  204. package/daemon/dist/domain/gateway/slack/queue-access.js +1 -1
  205. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  206. package/daemon/dist/domain/managed-restore-read-access.d.ts +6 -2
  207. package/daemon/dist/domain/managed-restore-read-access.d.ts.map +1 -1
  208. package/daemon/dist/domain/managed-restore-read-access.js +29 -3
  209. package/daemon/dist/domain/managed-restore-read-access.js.map +1 -1
  210. package/daemon/dist/domain/mission-control/notification-adapter-from-env.d.ts +8 -0
  211. package/daemon/dist/domain/mission-control/notification-adapter-from-env.d.ts.map +1 -0
  212. package/daemon/dist/domain/mission-control/notification-adapter-from-env.js +17 -0
  213. package/daemon/dist/domain/mission-control/notification-adapter-from-env.js.map +1 -0
  214. package/daemon/dist/domain/model-divergence/codex-thread-homes.d.ts +12 -0
  215. package/daemon/dist/domain/model-divergence/codex-thread-homes.d.ts.map +1 -0
  216. package/daemon/dist/domain/model-divergence/codex-thread-homes.js +19 -0
  217. package/daemon/dist/domain/model-divergence/codex-thread-homes.js.map +1 -0
  218. package/daemon/dist/domain/network/hub-client.d.ts +14 -4
  219. package/daemon/dist/domain/network/hub-client.d.ts.map +1 -1
  220. package/daemon/dist/domain/network/hub-client.js +26 -9
  221. package/daemon/dist/domain/network/hub-client.js.map +1 -1
  222. package/daemon/dist/domain/network/network-connector.d.ts +2 -0
  223. package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
  224. package/daemon/dist/domain/network/network-connector.js +162 -16
  225. package/daemon/dist/domain/network/network-connector.js.map +1 -1
  226. package/daemon/dist/domain/network/network-requests.d.ts +4 -1
  227. package/daemon/dist/domain/network/network-requests.d.ts.map +1 -1
  228. package/daemon/dist/domain/network/network-requests.js +141 -14
  229. package/daemon/dist/domain/network/network-requests.js.map +1 -1
  230. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  231. package/daemon/dist/domain/node-inventory.js +13 -0
  232. package/daemon/dist/domain/node-inventory.js.map +1 -1
  233. package/daemon/dist/domain/outbox-handler.d.ts +9 -0
  234. package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
  235. package/daemon/dist/domain/outbox-handler.js +23 -5
  236. package/daemon/dist/domain/outbox-handler.js.map +1 -1
  237. package/daemon/dist/domain/permission-account.d.ts.map +1 -1
  238. package/daemon/dist/domain/permission-account.js +4 -0
  239. package/daemon/dist/domain/permission-account.js.map +1 -1
  240. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
  241. package/daemon/dist/domain/policies/parked-owner-consumer.js +6 -0
  242. package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
  243. package/daemon/dist/domain/policies/seat-pool.d.ts +2 -1
  244. package/daemon/dist/domain/policies/seat-pool.d.ts.map +1 -1
  245. package/daemon/dist/domain/policies/seat-pool.js.map +1 -1
  246. package/daemon/dist/domain/profile-resolver.d.ts +2 -0
  247. package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
  248. package/daemon/dist/domain/profile-resolver.js +10 -4
  249. package/daemon/dist/domain/profile-resolver.js.map +1 -1
  250. package/daemon/dist/domain/provider/assignment-apply.d.ts.map +1 -1
  251. package/daemon/dist/domain/provider/assignment-apply.js +2 -1
  252. package/daemon/dist/domain/provider/assignment-apply.js.map +1 -1
  253. package/daemon/dist/domain/provider/claude-seat-switch.d.ts.map +1 -1
  254. package/daemon/dist/domain/provider/claude-seat-switch.js +11 -3
  255. package/daemon/dist/domain/provider/claude-seat-switch.js.map +1 -1
  256. package/daemon/dist/domain/provider/provider-service.d.ts +4 -3
  257. package/daemon/dist/domain/provider/provider-service.d.ts.map +1 -1
  258. package/daemon/dist/domain/queue-repository.d.ts +26 -7
  259. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  260. package/daemon/dist/domain/queue-repository.js +159 -37
  261. package/daemon/dist/domain/queue-repository.js.map +1 -1
  262. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  263. package/daemon/dist/domain/queue-stuck-sweep.js +1826 -1821
  264. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  265. package/daemon/dist/domain/queue-waiting.d.ts +9 -0
  266. package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
  267. package/daemon/dist/domain/queue-waiting.js.map +1 -1
  268. package/daemon/dist/domain/queue-wake-ladder.d.ts +6 -1
  269. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  270. package/daemon/dist/domain/queue-wake-ladder.js +29 -12
  271. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  272. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  273. package/daemon/dist/domain/restore-orchestrator.js +4 -0
  274. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  275. package/daemon/dist/domain/rigspec-exporter.d.ts +2 -0
  276. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  277. package/daemon/dist/domain/rigspec-exporter.js +38 -2
  278. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  279. package/daemon/dist/domain/rigspec-instantiator.d.ts +4 -1
  280. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  281. package/daemon/dist/domain/rigspec-instantiator.js +32 -13
  282. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  283. package/daemon/dist/domain/rigspec-preflight.d.ts +3 -0
  284. package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
  285. package/daemon/dist/domain/rigspec-preflight.js +25 -7
  286. package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
  287. package/daemon/dist/domain/runtime-adapter.d.ts +2 -0
  288. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  289. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  290. package/daemon/dist/domain/seat-delivery-guard.d.ts +5 -0
  291. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  292. package/daemon/dist/domain/seat-delivery-guard.js +13 -0
  293. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  294. package/daemon/dist/domain/seat-lifecycle-service.d.ts +18 -0
  295. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  296. package/daemon/dist/domain/seat-lifecycle-service.js +28 -1
  297. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  298. package/daemon/dist/domain/seat-pool-dispatch-guard.d.ts +28 -0
  299. package/daemon/dist/domain/seat-pool-dispatch-guard.d.ts.map +1 -0
  300. package/daemon/dist/domain/seat-pool-dispatch-guard.js +123 -0
  301. package/daemon/dist/domain/seat-pool-dispatch-guard.js.map +1 -0
  302. package/daemon/dist/domain/seat-pool-executor.d.ts +5 -1
  303. package/daemon/dist/domain/seat-pool-executor.d.ts.map +1 -1
  304. package/daemon/dist/domain/seat-pool-executor.js +695 -95
  305. package/daemon/dist/domain/seat-pool-executor.js.map +1 -1
  306. package/daemon/dist/domain/seat-pool-slots.d.ts +68 -3
  307. package/daemon/dist/domain/seat-pool-slots.d.ts.map +1 -1
  308. package/daemon/dist/domain/seat-pool-slots.js +60 -8
  309. package/daemon/dist/domain/seat-pool-slots.js.map +1 -1
  310. package/daemon/dist/domain/seat-pool-spec.d.ts +4 -1
  311. package/daemon/dist/domain/seat-pool-spec.d.ts.map +1 -1
  312. package/daemon/dist/domain/seat-pool-spec.js +14 -2
  313. package/daemon/dist/domain/seat-pool-spec.js.map +1 -1
  314. package/daemon/dist/domain/seat-reaper-eligibility.d.ts.map +1 -1
  315. package/daemon/dist/domain/seat-reaper-eligibility.js +5 -2
  316. package/daemon/dist/domain/seat-reaper-eligibility.js.map +1 -1
  317. package/daemon/dist/domain/seat-restart-in-place.d.ts +2 -3
  318. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  319. package/daemon/dist/domain/seat-restart-in-place.js +3 -43
  320. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  321. package/daemon/dist/domain/seat-startup-text.d.ts +159 -0
  322. package/daemon/dist/domain/seat-startup-text.d.ts.map +1 -0
  323. package/daemon/dist/domain/seat-startup-text.js +200 -0
  324. package/daemon/dist/domain/seat-startup-text.js.map +1 -0
  325. package/daemon/dist/domain/seat-status-service.d.ts +3 -0
  326. package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
  327. package/daemon/dist/domain/seat-status-service.js +1 -0
  328. package/daemon/dist/domain/seat-status-service.js.map +1 -1
  329. package/daemon/dist/domain/startup-orchestrator.d.ts +8 -20
  330. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  331. package/daemon/dist/domain/startup-orchestrator.js +93 -26
  332. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  333. package/daemon/dist/domain/startup-submission-evidence.d.ts +3 -1
  334. package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
  335. package/daemon/dist/domain/startup-submission-evidence.js +10 -0
  336. package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
  337. package/daemon/dist/domain/terminal/earlier-tile-attach-0724.d.ts +2 -0
  338. package/daemon/dist/domain/terminal/earlier-tile-attach-0724.d.ts.map +1 -0
  339. package/daemon/dist/domain/terminal/earlier-tile-attach-0724.js +54 -0
  340. package/daemon/dist/domain/terminal/earlier-tile-attach-0724.js.map +1 -0
  341. package/daemon/dist/domain/terminal/tile-attach.d.ts +4 -4
  342. package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
  343. package/daemon/dist/domain/terminal/tile-attach.js +14 -8
  344. package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
  345. package/daemon/dist/domain/types.d.ts +19 -1
  346. package/daemon/dist/domain/types.d.ts.map +1 -1
  347. package/daemon/dist/domain/types.js.map +1 -1
  348. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  349. package/daemon/dist/domain/user-settings/settings-store.js +1 -2
  350. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  351. package/daemon/dist/domain/watchdog-scheduler.d.ts +4 -0
  352. package/daemon/dist/domain/watchdog-scheduler.d.ts.map +1 -1
  353. package/daemon/dist/domain/watchdog-scheduler.js +14 -0
  354. package/daemon/dist/domain/watchdog-scheduler.js.map +1 -1
  355. package/daemon/dist/domain/workspace/project-registration.d.ts +5 -1
  356. package/daemon/dist/domain/workspace/project-registration.d.ts.map +1 -1
  357. package/daemon/dist/domain/workspace/project-registration.js +11 -7
  358. package/daemon/dist/domain/workspace/project-registration.js.map +1 -1
  359. package/daemon/dist/rig-lookup-surface.d.ts +2 -0
  360. package/daemon/dist/rig-lookup-surface.d.ts.map +1 -0
  361. package/daemon/dist/rig-lookup-surface.js +5 -0
  362. package/daemon/dist/rig-lookup-surface.js.map +1 -0
  363. package/daemon/dist/routes/network.d.ts.map +1 -1
  364. package/daemon/dist/routes/network.js +19 -1
  365. package/daemon/dist/routes/network.js.map +1 -1
  366. package/daemon/dist/routes/queue.js +1 -1
  367. package/daemon/dist/routes/queue.js.map +1 -1
  368. package/daemon/dist/routes/rigspec.d.ts.map +1 -1
  369. package/daemon/dist/routes/rigspec.js +4 -0
  370. package/daemon/dist/routes/rigspec.js.map +1 -1
  371. package/daemon/dist/routes/seat.d.ts.map +1 -1
  372. package/daemon/dist/routes/seat.js +8 -0
  373. package/daemon/dist/routes/seat.js.map +1 -1
  374. package/daemon/dist/routes/terminal-ws.d.ts +0 -5
  375. package/daemon/dist/routes/terminal-ws.d.ts.map +1 -1
  376. package/daemon/dist/routes/terminal-ws.js +0 -6
  377. package/daemon/dist/routes/terminal-ws.js.map +1 -1
  378. package/daemon/dist/routes/transport.js +1 -1
  379. package/daemon/dist/routes/transport.js.map +1 -1
  380. package/daemon/dist/server.d.ts +1 -1
  381. package/daemon/dist/server.d.ts.map +1 -1
  382. package/daemon/dist/server.js +3 -6
  383. package/daemon/dist/server.js.map +1 -1
  384. package/daemon/dist/startup.d.ts.map +1 -1
  385. package/daemon/dist/startup.js +33 -35
  386. package/daemon/dist/startup.js.map +1 -1
  387. package/daemon/docs/reference/agent-startup-guide.md +18 -0
  388. package/daemon/docs/reference/agent-state-taxonomy.md +8 -0
  389. package/daemon/docs/reference/daemon-http-clients.md +4 -0
  390. package/daemon/docs/reference/getting-started.md +63 -11
  391. package/daemon/docs/reference/hosted-members.md +1 -1
  392. package/daemon/docs/reference/network-connector.md +66 -1
  393. package/daemon/docs/reference/quickstart.md +4 -4
  394. package/daemon/docs/reference/rig-bundle.md +25 -0
  395. package/daemon/docs/reference/rig-spec.md +40 -14
  396. package/daemon/docs/reference/seat-delivery.md +11 -2
  397. package/daemon/docs/reference/seat-pools.md +119 -14
  398. package/daemon/docs/reference/seat-scaling.md +2 -1
  399. package/daemon/docs/reference/whats-new.md +102 -12
  400. package/daemon/specs/agents/development/implementer/guidance/role.md +11 -0
  401. package/daemon/specs/agents/development/qa/guidance/role.md +5 -0
  402. package/daemon/specs/agents/shared/skills/core/cross-host-rig-commands/SKILL.md +9 -1
  403. package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +15 -5
  404. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +8 -3
  405. package/dist/build-info.js +3 -3
  406. package/dist/cli-error.d.ts +2 -0
  407. package/dist/cli-error.d.ts.map +1 -1
  408. package/dist/cli-error.js +25 -8
  409. package/dist/cli-error.js.map +1 -1
  410. package/dist/client.d.ts +1 -0
  411. package/dist/client.d.ts.map +1 -1
  412. package/dist/client.js +13 -0
  413. package/dist/client.js.map +1 -1
  414. package/dist/commands/auth.d.ts.map +1 -1
  415. package/dist/commands/auth.js +52 -1
  416. package/dist/commands/auth.js.map +1 -1
  417. package/dist/commands/crash-cart.d.ts.map +1 -1
  418. package/dist/commands/crash-cart.js +65 -17
  419. package/dist/commands/crash-cart.js.map +1 -1
  420. package/dist/commands/daemon.d.ts +7 -20
  421. package/dist/commands/daemon.d.ts.map +1 -1
  422. package/dist/commands/daemon.js +83 -50
  423. package/dist/commands/daemon.js.map +1 -1
  424. package/dist/commands/doctor.d.ts +26 -0
  425. package/dist/commands/doctor.d.ts.map +1 -1
  426. package/dist/commands/doctor.js +143 -1
  427. package/dist/commands/doctor.js.map +1 -1
  428. package/dist/commands/mcp.d.ts.map +1 -1
  429. package/dist/commands/mcp.js +4 -2
  430. package/dist/commands/mcp.js.map +1 -1
  431. package/dist/commands/network.d.ts +4 -0
  432. package/dist/commands/network.d.ts.map +1 -1
  433. package/dist/commands/network.js +78 -10
  434. package/dist/commands/network.js.map +1 -1
  435. package/dist/commands/provider.d.ts.map +1 -1
  436. package/dist/commands/provider.js +12 -4
  437. package/dist/commands/provider.js.map +1 -1
  438. package/dist/commands/ps.d.ts +8 -0
  439. package/dist/commands/ps.d.ts.map +1 -1
  440. package/dist/commands/ps.js +19 -3
  441. package/dist/commands/ps.js.map +1 -1
  442. package/dist/commands/queue-transfer.d.ts.map +1 -1
  443. package/dist/commands/queue-transfer.js +12 -6
  444. package/dist/commands/queue-transfer.js.map +1 -1
  445. package/dist/commands/queue.d.ts.map +1 -1
  446. package/dist/commands/queue.js +5 -4
  447. package/dist/commands/queue.js.map +1 -1
  448. package/dist/commands/seat.d.ts.map +1 -1
  449. package/dist/commands/seat.js +74 -6
  450. package/dist/commands/seat.js.map +1 -1
  451. package/dist/commands/setup.d.ts +34 -0
  452. package/dist/commands/setup.d.ts.map +1 -1
  453. package/dist/commands/setup.js +105 -17
  454. package/dist/commands/setup.js.map +1 -1
  455. package/dist/daemon-lifecycle.d.ts +46 -2
  456. package/dist/daemon-lifecycle.d.ts.map +1 -1
  457. package/dist/daemon-lifecycle.js +381 -174
  458. package/dist/daemon-lifecycle.js.map +1 -1
  459. package/dist/daemon-start-lock.d.ts +28 -0
  460. package/dist/daemon-start-lock.d.ts.map +1 -1
  461. package/dist/daemon-start-lock.js +107 -13
  462. package/dist/daemon-start-lock.js.map +1 -1
  463. package/dist/mcp-server.d.ts +1 -1
  464. package/dist/mcp-server.d.ts.map +1 -1
  465. package/dist/mcp-server.js +65 -1
  466. package/dist/mcp-server.js.map +1 -1
  467. package/dist/process-liveness.d.ts +21 -0
  468. package/dist/process-liveness.d.ts.map +1 -0
  469. package/dist/process-liveness.js +43 -0
  470. package/dist/process-liveness.js.map +1 -0
  471. package/dist/remote-host-ops.d.ts +1 -1
  472. package/dist/remote-host-ops.d.ts.map +1 -1
  473. package/dist/remote-host-ops.js +3 -14
  474. package/dist/remote-host-ops.js.map +1 -1
  475. package/dist/system-preflight.d.ts +9 -0
  476. package/dist/system-preflight.d.ts.map +1 -1
  477. package/dist/system-preflight.js +22 -7
  478. package/dist/system-preflight.js.map +1 -1
  479. package/package.json +4 -2
@@ -527,6 +527,24 @@ Per harness: Claude Code's and Codex's permission choices are in the setup refer
527
527
 
528
528
  ---
529
529
 
530
+ ### Replace saved application startup text
531
+
532
+ Prefer a startup file for guidance that changes regularly: adapters read its current contents when the file is eligible for delivery. An existing seat can also have application-authored `send_text` embedded in its saved startup context and its launch recipe. To replace one such action without starting the seat, first inspect its selectable positions:
533
+
534
+ ```bash
535
+ rig seat set-startup-text dev-impl@my-rig --inspect
536
+ rig seat set-startup-text dev-impl@my-rig --layer member --recipe-index 0 --context-index 2 --text-file ./replacement.txt
537
+ rig seat set-startup-text dev-impl@my-rig --layer member --recipe-index 0 --context-index 2 --text-file ./replacement.txt --expected-revision <revision-from-preview>
538
+ ```
539
+
540
+ The second command previews the old and replacement text. The last applies only if the saved context, recipe and shared rig layer still match the preview revision, then reads back the saved text. It changes only the selected seat's saved context and recipe; it does not relaunch, send to its current conversation, or change identity and queue work. An action's `applies_on` and idempotence still govern delivery. Snapshots already captured retain their own startup text; a later snapshot captures the updated context.
541
+
542
+ `--inspect` lists application actions from the seat's saved context and the rig, pod and member layers of its own recipe. It omits generated identity and other platform actions. A unique action supplied by an agent/profile source or inherited shared rig layer appears as layer `context` with recipe index `0`. Its replacement is recorded for this seat; the shared source remains unchanged. At a future fresh start OpenRig matches the override against the startup actions. Recipe-resolved starts use the current source; `rig seat launch --fresh` uses the seat's saved startup context. If the override no longer matches uniquely, OpenRig keeps the replacement, uses that input text and warns. Inspection reports an override as stale when the current source cannot be matched, or as source-unverified when source resolution is unavailable. An overlapping edit is allowed and reported in preview; ambiguous overrides are skipped at start. Identical duplicate saved actions cannot be selected this way. For recipe layers, the two indexes must identify the same action. A stale revision requires a fresh preview. Inspect the saved text before retrying if the outcome of an apply is unknown.
543
+
544
+ To remove a seat-only source override after its source changes, inspect its `overrideIndex`, preview `rig seat set-startup-text <seat> --clear-override --override-index <index>`, then repeat with `--expected-revision` from that preview. The earlier `--context-index` selector remains available when the saved action still identifies the override. Clearing leaves the saved context unchanged; a fresh launch resolved from the recipe uses the current source.
545
+
546
+ Rig export cannot express seat-specific substitutions to shared rig, pod or source actions. Export names the affected seats as not carried; inspect those actions before importing the exported spec.
547
+
530
548
  ## Deterministic Configuration
531
549
 
532
550
  The AgentSpec and RigSpec allow declaring deterministic environment configuration:
@@ -31,6 +31,14 @@ to have exited (identity reason `pane_exited`) reads `exited`, with `startupStat
31
31
  record is running but the LIFECYCLE is `attention_required` (for example, the seat's startup or restore needs
32
32
  attention, or OpenRig can't confirm the pane's process as the seat's runtime, such as a bare shell), its human
33
33
  output reads `Session: needs attention`, as `rig ps` reads `att`.
34
+ Beside the LIFECYCLE, a recorded-running agent seat whose current identity check saw a shell as the pane's foreground
35
+ command, without verifying the seat's agent there, serves `agentLiveness` (`agent_liveness` in `rig seat status`):
36
+ `{ state: "not_verified", reason: "shell_foreground", command, observedAt }`, once its startup is no longer pending. It
37
+ shows a stored shell observation; delivery checks the target again and applies its runtime's own policy. A community
38
+ harness's seat can read it with its LIFECYCLE still `running`, because OpenRig can't prove that harness's process. `rig ps --nodes` shows `agent not verified` as the REASON and a `Liveness` line, and
39
+ `rig seat status` shows an `Agent:` line. It isn't proof the agent stopped, since an agent can run behind a wrapper.
40
+ Otherwise the field is absent, which claims nothing. It's read from the identity check's stored verdict, so showing it
41
+ reads nothing new.
34
42
 
35
43
  The axes never blend. Reachability is strict; revival optimism is a different field
36
44
  (omnigent's strict-liveness split). `unknown` is a first-class honest value — the oracle
@@ -108,6 +108,10 @@ The `GET /api/terminal/<name>` routes, the websocket included, answer `{ "error"
108
108
  for a well-formed but unaccepted Host. It cannot pass a malformed Host or a refused Origin; see
109
109
  [Browser access](browser-access.md).
110
110
 
111
+ The terminal WebSocket API is available even when `ui.enabled` is false. That setting controls Core's own
112
+ web UI pages and assets, so a separate UI or client can use terminals while those remain off. The existing
113
+ terminal bearer and [Browser access](browser-access.md) rules still apply.
114
+
111
115
  ## Event streams
112
116
 
113
117
  All of them are server-sent events (`text/event-stream`):
@@ -89,8 +89,13 @@ For a tarball or manual Node install on Linux, put its bin directory on PATH in
89
89
  in an interactive `~/.bashrc`. Bash reads the first of `~/.bash_profile`,
90
90
  `~/.bash_login` and `~/.profile`; if one of the first two exists, source `~/.profile`
91
91
  there. Other shells use their own login file (for example, zsh's `~/.zprofile`).
92
- Check `bash -lc 'command -v node rig'`: both paths must appear in the output.
93
- Use Codex's tool shell for this check if it differs from Bash.
92
+ Check `env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin bash -lc 'command -v node rig'`: both
93
+ paths must appear in the output. It starts from the PATH an app starts with on Linux, so only your login file can add
94
+ to it; a login shell started from this terminal would also find what this terminal's PATH already has. Use Codex's tool
95
+ shell for this check if it differs from Bash. For `rig`, `rig doctor`'s `rig_login_shell` row below is the same check.
96
+ `rig doctor`, and the end of `rig setup`, check `rig` in your own login shell (the `rig_login_shell` row): that's where
97
+ an app started outside a terminal, such as Claude Desktop's Code tab, looks it up. A warning there gives the line for
98
+ your shell and the `OPENRIG_RIG_BIN` alternative; restart the app after the change.
94
99
 
95
100
  On a Mac with Apple silicon, use Node.js 22 (see the [compatibility
96
101
  history](../releases/v0.5.15.md#known-compatibility-limitation)). On a Mac where
@@ -193,15 +198,15 @@ agent doing the setup. These use this release's tag:
193
198
 
194
199
  ```sh
195
200
  # Claude Code
196
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.25/skills/rigs" --skill rigs --agent claude-code
201
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.26/skills/rigs" --skill rigs --agent claude-code
197
202
 
198
203
  # Codex
199
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.25/skills/rigs" --skill rigs --agent codex
204
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.26/skills/rigs" --skill rigs --agent codex
200
205
  # OMP (Oh My Pi): the pi target installs to .agents/skills, which OMP reads
201
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.25/skills/rigs" --skill rigs --agent pi
206
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.26/skills/rigs" --skill rigs --agent pi
202
207
  ```
203
208
 
204
- **OMP:** this pin installs the shared skill only. The `v0.7.25` skill includes OMP attachment guidance (`rig attach --self … --runtime omp`),
209
+ **OMP:** this pin installs the shared skill only. The `v0.7.26` skill includes OMP attachment guidance (`rig attach --self … --runtime omp`),
205
210
  but complete setup from OMP has not been verified. OMP isn't a kernel provider; Claude Code or Codex must still be
206
211
  signed in. To invoke the skill in OMP, type `/skill:rigs`; if OMP was already open when you installed it, type
207
212
  `/reload-plugins` first.
@@ -222,11 +227,11 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
222
227
  script will do and changes nothing:
223
228
 
224
229
  ```sh
225
- curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.25/scripts/install.sh | sh -s -- --dry-run
230
+ curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.26/scripts/install.sh | sh -s -- --dry-run
226
231
  ```
227
232
 
228
233
  The same command without `--dry-run`,
229
- `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.25/scripts/install.sh | sh`, installs the
234
+ `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.26/scripts/install.sh | sh`, installs the
230
235
  latest published `@openrig/cli` with `npm install -g`, runs the Node.js and SQLite check if the installed checker is
231
236
  present (otherwise it reports the check skipped), then runs `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
232
237
  Codex and may install a missing one, as described below. A failed step prints
@@ -269,11 +274,17 @@ Setup also prints the one line OpenRig can add to each seat's `CLAUDE.md` or
269
274
  `AGENTS.md`, plus OpenRig's markers around it so it can be removed cleanly: the
270
275
  exact text it writes, which files it goes in, and what a no gives up. Show the person,
271
276
  ask, and save their answer with `rig setup --router-line yes` or
272
- `rig setup --router-line no`. No answer isn't a yes: with nothing saved and
277
+ `rig setup --router-line no`. On its own, that saves only the answer and says so; no
278
+ other setup step runs again. No answer isn't a yes: with nothing saved and
273
279
  nothing set in the environment, the line isn't added. The answer covers only
274
280
  that line, and so does what setup says a no gives up; setup's "OpenRig may
275
281
  modify" list names the other writes.
276
282
 
283
+ When Tailscale is active on the machine and no daemon address is set, setup also
284
+ says that the daemon's default bind adds this machine's Tailscale address, so your
285
+ other OpenRig machines and the web UI can reach it, and how to keep it on this
286
+ machine only: `rig config set daemon.host 127.0.0.1`. The default itself doesn't change.
287
+
277
288
  The block keeps `terminal.history_limit` rows of scrollback per pane (default
278
289
  10000). To keep more, run `rig config set terminal.history_limit 50000`, then
279
290
  `rig setup` again. A running tmux server keeps its old limit until it restarts
@@ -1162,6 +1173,27 @@ facts it needs.
1162
1173
  `rig daemon start` then refuses with `Daemon startup is already reserved`, which
1163
1174
  is that start, not a failure to retry. Don't use a short `/healthz` timeout of
1164
1175
  your own as a death check: a busy daemon can take longer to answer.
1176
+ - **A `--json` command that got no usable answer says which failure it was.** It
1177
+ exits 1 and prints `{"ok":false,"error":{"code":…,"outcome":…,"message":…}}` in
1178
+ place of its result. When it sent its request and no usable answer came back:
1179
+ - `daemon_timeout`: no answer in time, outcome `unknown`;
1180
+ - `daemon_unreachable`: the connection was refused, outcome `not_delivered`;
1181
+ - `daemon_connection_lost` or `daemon_bad_response`: outcome `unknown`;
1182
+ - `daemon_connection_blocked`: this machine blocked the connection, outcome
1183
+ `unknown`.
1184
+
1185
+ When the daemon is already known not to answer, the command stops before it
1186
+ sends anything. `rig ps --json`, and the commands that already report that as
1187
+ JSON (such as `rig archive --json`), print the same shape with outcome
1188
+ `not_delivered`:
1189
+ - `daemon_not_running`: stopped, or its record is stale;
1190
+ - `daemon_starting`: a start is in progress and nothing listens yet;
1191
+ - `daemon_connection_blocked`: this machine blocked the health check;
1192
+ - `daemon_unreachable`: no connection.
1193
+
1194
+ Other commands print that check's message on stderr and exit 1, with nothing on
1195
+ stdout. Branch on `code`, and on the exit status: a missing result is not an empty
1196
+ fleet, and a timeout isn't proof the daemon is down.
1165
1197
  - **Restart after the process has exited.** After `rig daemon stop` or a SIGTERM,
1166
1198
  wait until the PID is gone and the port refuses connections, not for a fixed
1167
1199
  delay. The shutdown budget is 10 seconds, and `rig daemon stop` waits 12.
@@ -1178,8 +1210,10 @@ facts it needs.
1178
1210
  - **Don't let the supervisor clear `daemon-start.lock`.** A reservation from an
1179
1211
  earlier boot is archived by the next start, and so is one whose recorded launcher
1180
1212
  and child are both gone in the same pid namespace, unless `rig daemon stop`
1181
- retained it. Any other reservation stays; a person reads the start error, which
1182
- says what to inspect and when the reservation can be archived.
1213
+ retained it. A start whose child became ready after its wait is finished by the
1214
+ next `rig daemon start`, which retires that reservation itself. Any other
1215
+ reservation stays; a person reads the start error, which says what to inspect and
1216
+ when the reservation can be archived.
1183
1217
 
1184
1218
  ## Kernel framing (what `rig setup` does and does not do)
1185
1219
 
@@ -1562,6 +1596,24 @@ TUI's start, which allows its own call that wait plus the probe, cleanup and a m
1562
1596
  A running daemon isn't affected.
1563
1597
  When the wait runs out and the child is still alive, the start ends pending as before:
1564
1598
  the child is left running and the start reservation is kept, so inspect before retrying.
1599
+ Once that child is ready, run `rig daemon start` again: it finishes the pending start
1600
+ instead of starting another daemon. It checks that the reservation still names the child
1601
+ (the same boot and pid namespace, the start gone, the same process) and that the child
1602
+ passes the usual startup readiness, publishes `daemon.json` for it (or keeps a
1603
+ `daemon.json` that already describes it in full), and retires that start's reservation as
1604
+ `daemon-start.lock.finished-<inode>`. A `daemon.json` left by an earlier daemon that is no
1605
+ longer running (after a crash, for example) is replaced, as an ordinary start replaces it.
1606
+ The child keeps the settings it was launched with: this `rig daemon start` doesn't
1607
+ reconfigure its port, host or database.
1608
+ Readiness alone isn't always enough. A reservation written by an OpenRig before this
1609
+ change doesn't record the child's database, so the finish publishes only the database a
1610
+ `daemon.json` already names, or this start's own (`--db` or the configured path), and only
1611
+ while the child has that file open. On an OS that gives no boot ID (Windows), the
1612
+ reservation can't be matched to this boot, so the finish doesn't apply there.
1613
+ Its output reports the publication, the reservation and the readiness on separate lines.
1614
+ When publication succeeds but the reservation can't be archived, the output says
1615
+ `Reservation: kept` and why, the start doesn't fail, and the next `rig daemon start`
1616
+ retires it. When any check fails, it changes nothing and the start error says why.
1565
1617
  A wait shorter than the host needs only makes the start end pending sooner; it doesn't
1566
1618
  stop the child.
1567
1619
  Set the wait to what the host and its supervisor expect. A longer wait doesn't make a slow
@@ -68,7 +68,7 @@ member, so it checks its rows again.
68
68
 
69
69
  The server tells the member this in its MCP instructions. The text is versioned, so you can check which version a tool received:
70
70
 
71
- > Member workflow (member-workflow/v3). Your inbox is the items addressed to your seat: rig_queue_list with owned set. It's yours, not the team's queue. A wake, a ring or a message only points at it: list your inbox, then act. For each item: claim it (rig_queue_claim), do it, then close it done with closure reason no-follow-on and the answer in resolution (rig_queue_update), or hand it on (rig_queue_handoff). Listing or reading an item doesn't take it. An item titled "Checked on …" is OpenRig's check on other work, not a task: act on the item it names, or the items it lists, and the check closes itself. Say what you can reach from your grant, not from the tool list: a listed tool isn't access. rig_artifact_read's answer for an item names the shared roots you may read, and none means no shared files. If the person connected you, that's basically authorized: claim the items in your inbox and do them without asking whether you may. When an item needs a person's approval before you can finish it, don't close it and don't take the action: keep the item and ask. If it came from a person (an address ending in @external that isn't a shared channel; the item's 'Shared channel:' line names one), set it blocked with blockedOn that person and, as its summary, the question with a short form of what you'll do: the person sees the summary and the item, not your note, which keeps the record. Link a longer draft as an https evidenceRef. Their answer returns the item to you in progress. Otherwise ask as a new item, to the seat it came from or, for a shared channel's item, to your rig's lead (rig_team shows it), with your question and draft. Then set yours blocked with blockedOn that new qitemId: when that item closes, yours returns to pending, to claim again. Nothing promises to wake you, so check your inbox again. Then finish the same item; don't open a new one.
71
+ > Member workflow (member-workflow/v4). Your inbox is the items addressed to your seat: rig_queue_list with owned set. It's yours, not the team's queue. A wake, a ring or a message only points at it: list your inbox, then act. For each item: claim it (rig_queue_claim), do it, then close it done with closure reason no-follow-on and the answer in resolution (rig_queue_update), or hand it on (rig_queue_handoff). Listing or reading an item doesn't take it. An item titled "Checked on …" is OpenRig's check on other work, not a task: act on the item it names, or the items it lists, and the check closes itself. Say what you can reach from your grant, not from the tool list: a listed tool isn't access. rig_artifact_read's answer for an item names the shared roots you may read, and none means no shared files. If the person connected you, that's basically authorized: claim the items in your inbox and do them without asking whether you may. When an item needs a person's approval before you can finish it, don't close it and don't take the action: keep the item and ask. For imported network work, use the requester-question instruction in its body; its local daemon sender is a relay, not the original requester. Never guess the requester by a copied seat name. If it came from a person (an address ending in @external that isn't a shared channel; the item's 'Shared channel:' line names one), set it blocked with blockedOn that person and, as its summary, the question with a short form of what you'll do: the person sees the summary and the item, not your note, which keeps the record. Link a longer draft as an https evidenceRef. Their answer returns the item to you in progress. Otherwise ask as a new item, to the seat it came from or, for a shared channel's item, to your rig's lead (rig_team shows it), with your question and draft. Then set yours blocked with blockedOn that new qitemId: when that item closes, yours returns to pending, to claim again. Nothing promises to wake you, so check your inbox again. Then finish the same item; don't open a new one.
72
72
 
73
73
  ## Ring it when work lands
74
74
 
@@ -16,10 +16,15 @@ When your hub is an account's network, enroll this daemon once with the one-time
16
16
  seats by name:
17
17
 
18
18
  ```bash
19
- rig network enroll <code> --site <site URL>
19
+ rig network enroll <code> --site <site URL> # or --code-file <path>, or --code-stdin
20
20
  rig network connect <seat> --as <name>
21
21
  ```
22
22
 
23
+ - To keep the code out of your shell history and the process list, give it with `--code-file <path>` (a regular file;
24
+ surrounding whitespace is trimmed) or `--code-stdin` (for example, piped from a password manager) instead of as the
25
+ argument. Use exactly one of the three. The code is read by the `rig` command and sent to the daemon in the request,
26
+ never on another command line. A file or input that can't be read, or is empty, stops the enroll; nothing else is
27
+ tried. Standard input is read only with `--code-stdin`.
23
28
  - `enroll` trades the code, with this daemon's host id, for an installation key. The key is stored like a participant's
24
29
  token, under `<OpenRig home>/network-secrets/<installation>/key.json`, and is never returned or shown. A refused
25
30
  code says why; get a new one from the account page. If the account doesn't answer,
@@ -107,6 +112,17 @@ a deadline of 60 seconds, so one slow hub doesn't hold the others. With no activ
107
112
  closes the way its queue closes one: done with the resolution and the closure reason (`no-follow-on`, `canceled`
108
113
  or `denied`), or failed when the local item failed. A close with no resolution sends the closer's own note on that
109
114
  close, or "Closed without a stated result." No other note on the item is sent.
115
+ 3. Under a backlog, reporting keeps pace with intake. A pass reports up to twice as many items as it can take, results
116
+ first, then pickups, then queued notes, so finished work doesn't sit behind work still open and the hub doesn't show
117
+ it in progress. An item handed on here, once or along a chain of handoffs, whose last item is still open waits its
118
+ turn with the open items, and comes first again once that last item finishes. Taking new work stops at half the
119
+ pass's deadline. Reporting starts no new receipt after three quarters of the deadline, leaving the rest for a
120
+ later pass. An in-flight hub call can still reach the pass's deadline.
121
+ 4. When an OpenRig hub's stuck sweep finds an item this participant holds with no change for a while, it files a finding
122
+ addressed to the participant. The connector answers that finding on the hub from the local item (queued, picked up,
123
+ or finished here, or that its result stayed here because the hub item was closed elsewhere first) and doesn't queue it
124
+ for the seat. If the hub refuses the close and it cannot be confirmed, the finding is taken as ordinary work.
125
+ A finding about anything else is also taken like any other item.
110
126
 
111
127
  To answer, close the local item with your result:
112
128
 
@@ -143,6 +159,31 @@ rig network request [binding-or-seat] <peer> --id <request-id> --body-file <path
143
159
  Leave out the binding or seat to use your own seat, so a connected seat can type `rig network peers`. With one
144
160
  argument, `request` reads it as the peer. Run outside a seat, both still need it.
145
161
 
162
+ To ask the original requester of imported network work, use its **local work id**:
163
+
164
+ ```bash
165
+ rig network request [binding-or-seat] --requester-of <work-id> --id <question-id> --body-file <path>
166
+ ```
167
+
168
+ This mode excludes a peer argument. It is available only when the hub advertises `requesterOf` in
169
+ `rig_queue_create`'s input schema. Otherwise it reports `requester_question_unsupported` and writes no question,
170
+ receipt or wait; it never falls back to a copied requester name. A supporting hub pins the question to the original
171
+ source connection before writing it. An unreachable original requester is reported as `requester_unreachable`.
172
+
173
+ If the hub stops advertising support before a deferred create, the question stays open and the work stays blocked;
174
+ cancel the question to release the work. Recovering an existing question never replaces a later dependency selected by the owner.
175
+
176
+ The same local work waits on the question receipt. The connector reports this explicit relation to the hub after
177
+ confirming the question. Other local dependencies and progress notes stay private. The question's terminal outcome
178
+ returns through its receipt and releases the local work to pending through the queue's ordinary dependency handling;
179
+ a failure, refusal or cancellation is an outcome to read, never approval. The hub preserves its work's pre-wait state
180
+ and pickup. If an outbound request is waiting remotely, its local receipt and any local work blocked on it carry
181
+ `networkWait`: either the visible question's hub/local ids and state, or a generic wait without hidden ids. `observedAt`
182
+ names the last successful observation, not a promise that the hub is reachable now.
183
+
184
+ A person decision must come from the person through an available person/UI route. This Core path alone does not
185
+ supply that route. On hubs without requester-question support, keep the work open and report the limit.
186
+
146
187
  `peers` lists the seats and members the hub lets the participant address, as the hub's `rig_team` answers for the
147
188
  participant's rig. `request` sends one request to a peer, named as `peers` lists it:
148
189
 
@@ -154,6 +195,9 @@ participant's rig. `request` sends one request to a peer, named as `peers` lists
154
195
  - **The request is recorded here first,** as a local queue item from the seat to OpenRig, parked on the hub item
155
196
  (`external:network-request/<hub item>`). It's addressed to OpenRig rather than the seat, so the seat owes nothing on it
156
197
  and isn't reminded about it while it waits. Find it with `rig queue list --mine`.
198
+ When the CLI runs inside a seat, that calling seat is recorded as the source with `transport:v1` provenance, even
199
+ when it uses another seat's binding. The JSON response includes `sourceSession`, `returnRoute` and `returnRouteBasis`;
200
+ the return-route fields are null when no route was requested.
157
201
  - **Then it's created on the hub** under an id derived from the seat's node, the hub, the participant and your request
158
202
  id, so one request is always one hub item. A create that goes again reads the request from the local item; the
159
203
  connector keeps only a hash of it. So a request whose local item was erased, closed or canceled here isn't sent. The
@@ -175,6 +219,27 @@ participant's rig. `request` sends one request to a peer, named as `peers` lists
175
219
  earlier create may still be on the hub, so the local item stays open with a note saying so, for a new binding for
176
220
  the same seat, hub and participant to read. A new request whose credential is refused is `refused`.
177
221
 
222
+ ### Requesting through MCP
223
+
224
+ An agent without a CLI can call `rig_network_request` with `peer`, `requestId`, `body`, and optional `summary`.
225
+ `binding` optionally names a binding id or a connected local seat; omitted, it uses the caller's seat.
226
+ This calls the same daemon route as `rig network request`. The local request id, retry behavior, hub errors,
227
+ and connector reconciliation are the same. Retry only with the same `requestId`, including after a timeout.
228
+
229
+ The answer stays on that local request item, owned by OpenRig. Call `rig_queue_show` with `qitemId` equal to
230
+ `localQitemId` from the result (the `requestId` you supplied). When the peer finishes, that item closes with its
231
+ answer and the record names who answered. There is no second answer item or automatic wake for its sender.
232
+ The local record keeps the caller's identity, separately from the binding's hub participant. A seatless stdio
233
+ conversation gets an issued return address; where its conversation key is available, it reuses the address
234
+ already issued to that conversation. This does not add a cross-hub question relay.
235
+
236
+ To wait, create and claim a separate row addressed to your seat, then use `rig_queue_update` on that row with
237
+ `state: "blocked"` and `blockedOn: "<requestId>"`. `wakeAfterSeconds` is an optional backstop for an unanswered
238
+ request. Check the request once after parking: if it is already closed or missing, read its outcome now and close
239
+ your wait row. Choose a `qitem-` id; `fold:`, `auth:` and `external:` prefixes name gates instead of request items.
240
+ Only a seat with a terminal can receive a wake. An external MCP client must check again; neither blocking nor
241
+ `wakeAfterSeconds` promises to wake its conversation. Existing grant scopes still apply.
242
+
178
243
  **Reading the answer:** on each pass, the connector reads every open request's hub item. A grant for sending only (team
179
244
  list, queue create and show, without the queue's list) is enough: the connector takes inbound work only when the hub offers
180
245
  the queue's list, and reads the answers either way. If the hub stops answering while requests are read, the pass reads
@@ -12,14 +12,14 @@ 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.25/skills/rigs --skill rigs --agent claude-code
15
+ npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.26/skills/rigs --skill rigs --agent claude-code
16
16
  # Codex
17
- npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.25/skills/rigs --skill rigs --agent codex
17
+ npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.26/skills/rigs --skill rigs --agent codex
18
18
  # OMP (Oh My Pi): the pi target installs to .agents/skills, which OMP reads
19
- npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.25/skills/rigs --skill rigs --agent pi
19
+ npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.26/skills/rigs --skill rigs --agent pi
20
20
  ```
21
21
 
22
- **OMP:** this pin installs the shared skill only. The `v0.7.25` skill includes OMP attachment guidance (`rig attach --self … --runtime omp`),
22
+ **OMP:** this pin installs the shared skill only. The `v0.7.26` skill includes OMP attachment guidance (`rig attach --self … --runtime omp`),
23
23
  but complete setup from OMP has not been verified. OMP isn't a kernel provider; Claude Code or Codex must still be
24
24
  signed in.
25
25
 
@@ -476,6 +476,31 @@ differing copy from anywhere else fails launch with `skill_identity_conflict`.
476
476
 
477
477
  Legacy (schema version 1) bundles keep their old behavior: `--target` is only where packages are installed, and their declared contents are routed after a completed install.
478
478
 
479
+ ### Member working directories in a carried project
480
+
481
+ A member's `cwd` in any rig spec can refer to a registered project by ID (the `cwd` row in [the rig spec reference](rig-spec.md)).
482
+ A schema-version-2 bundle can also carry that project, and registers it before its first member launches (below):
483
+
484
+ ```yaml
485
+ cwd: "${project:demo}/services/api"
486
+ ```
487
+
488
+ `${project:demo}` means the root of project `demo` in the installing instance's workspace catalog.
489
+ An optional `/relative/path` selects a member folder beneath that root; members can select different
490
+ folders or share one. The project ID is explicit: it cannot contain spaces, slashes, braces or a colon.
491
+ Ordinary absolute, relative, home and environment-variable cwd values keep their existing meaning.
492
+
493
+ When the bundle carries that project, installation uses `workspace.projects_root` and the existing
494
+ project registration rules. Preflight previews the destination without writing the project or catalog;
495
+ actual routing registers the project before the first member launches. Existing project files and
496
+ explicit install targets retain their existing handling. `--cwd <dir>` still overrides every member
497
+ for that run, including project references. The signed or hash-identified archive is not rewritten.
498
+
499
+ A missing, ambiguous or conflicting named project is reported with the project ID and correction
500
+ advice. A malformed project reference is an error rather than a literal folder name. Register or
501
+ correct the project, or use `--cwd`. The template remains in the installed spec; launches resolve the
502
+ registered root, while restore retains the saved resolved cwd.
503
+
479
504
  ### Launch directly
480
505
 
481
506
  ```bash
@@ -249,21 +249,37 @@ Claude members can record tool rules independently, even when they share a proje
249
249
  ```yaml
250
250
  claude_permissions:
251
251
  allow: ["Bash(node lane-reader.mjs *)"]
252
+ ask: ["Bash(git push *)"]
252
253
  deny: ["Read(./private/**)"]
253
254
  ```
254
255
 
255
- This field accepts only `allow` and `deny` lists of native Claude rule strings. It is
256
- also supported on legacy flat Claude nodes. Other runtimes, `ask`, mode settings,
257
- arbitrary settings and parenthesized MCP rules are rejected. Shape validation does
258
- not establish support by every Claude version.
256
+ This field accepts only `allow`, `ask` and `deny` lists of native Claude rule strings. It is
257
+ also supported on legacy flat Claude nodes. `ask` goes into Claude's native `permissions.ask`:
258
+ Claude checks deny rules, then ask rules, then allow rules, so a matching ask rule prompts even
259
+ when an allow rule also matches. Which modes prompt for an ask rule, and which deny it, is
260
+ Claude's behaviour; OpenRig records and sends the rules and doesn't verify the effect. An empty
261
+ or absent `ask` is left out of the record, which keeps a seat without asks exactly as before.
262
+ Other runtimes, mode settings, arbitrary settings and parenthesized MCP rules are rejected. Shape
263
+ validation does not establish support by every Claude version.
264
+
265
+ An OpenRig that reads seat rules but lacks `ask` support (such as 0.7.24) refuses to launch, fork
266
+ or export a seat whose rules include `ask`, and refuses a spec that declares it, naming the key. An
267
+ OpenRig from before seat rules doesn't refuse: it leaves the recorded rules out of its launches
268
+ (see Downgrade below). Before downgrading, or before running
269
+ such a seat from an older daemon on another machine, record its rules without `ask`:
270
+ `rig seat set-permissions <seat> --rules <file without ask> --reason "<why>"`. The audit event
271
+ keeps the earlier rules, asks included, so they can be recorded again after an upgrade.
259
272
 
260
273
  After composition, launches and resumes keep settings of at most 64 KiB inline, byte-identical.
261
274
  Larger JSON values go through Claude's native `--settings` file form: a content-addressed 0600
262
275
  file under OpenRig's seat-specific `state/claude-settings/` storage. OpenRig publishes the complete
263
276
  file atomically and prunes older files only when their bytes still match their digest. It keeps
264
277
  the current files and files named by captured live arguments. Continuations
265
- can rewrite OpenRig's own unchanged files to apply the selected auto-mode block; foreign files stay
266
- opaque. A failed write falls back inline with a warning naming the size and failure, never a size
278
+ can rewrite OpenRig's own unchanged files to apply the selected auto-mode block. For a seat with
279
+ recorded rules, cleared ones included, they also send its composed allow, ask and deny lists and the
280
+ team or kernel default's permission hook in place of the running ones, and keep the running
281
+ process's other permissions fields (such as `additionalDirectories`) and other hooks. Foreign files stay
282
+ opaque, and a continuation that can't apply the rules says so. A failed write falls back inline with a warning naming the size and failure, never a size
267
283
  refusal. Rules are never truncated or dropped, and shared Claude settings are not changed.
268
284
 
269
285
  The initial spec records the rules on the stable seat. For an existing seat, put the
@@ -274,10 +290,12 @@ rig seat set-permissions dev-reader@team --rules member-rules.json --reason "Sel
274
290
  rig seat status dev-reader@team --json
275
291
  ```
276
292
 
277
- Choose either `--rules` or `--mode`, never both. Empty allow and deny lists clear the
293
+ Choose either `--rules` or `--mode`, never both. Empty allow, ask and deny lists clear the
278
294
  seat's rules. Updating rules leaves the permission mode, running process and history
279
295
  unchanged; they apply at the next separately authorized managed launch or resume.
280
- Restore and same-seat handover read that same record. A fork copies the source's
296
+ Restore and same-seat handover read that same record, and so does a same-conversation
297
+ relaunch that keeps the running Claude's options, such as a provider switch: it sends the
298
+ recorded rules instead of the permissions the running process started with. A fork copies the source's
281
299
  currently recorded rules independently, including retained-seat updates. Export
282
300
  contains the current record. An invalid or unreadable record refuses that seat's
283
301
  launch, fork or export with a repair message rather than silently omitting its denies.
@@ -735,8 +753,10 @@ The label and the absolute path are stored on the seat when the rig is created,
735
753
  --to-account <label> --token-file <path>` stores them. Its launches run the same token step, which reads the file as
736
754
  Claude starts; a launch path that can't run it (a pane shell other than a POSIX one, for example) starts without it and
737
755
  warns. The file's contents never pass through OpenRig: validation doesn't read it, and they don't reach the spec, the
738
- seat's record or the launch command. A missing, empty or unreadable file doesn't refuse the spec; the seat starts on its
739
- config dir's stored login (or a token the daemon gives every seat) and says so. A launch also warns when a setting Claude
756
+ seat's record or the launch command. A missing, empty or unreadable file doesn't refuse the spec; the seat starts on
757
+ whatever credential it would otherwise receive (its config dir's stored login, a token the daemon gives every seat, or one
758
+ in the seat's `env:`) and says so. A resume reports what the token step did as Claude started, and says when it can't tell.
759
+ A launch also warns when a setting Claude
740
760
  Code ranks above the token would be used instead: an `apiKeyHelper`, or an outranking `env` entry in the user, project
741
761
  or local settings. Managed settings aren't inspected. `rig export` writes the seat's current reference, except for a seat
742
762
  with an account home or an API-key selection (select those again after import), so a later switch shows there, and `rig provider switch --stored-login` removes it. Only
@@ -824,9 +844,11 @@ refuses to launch if it cannot read the saved selection or the shell cannot enfo
824
844
  selection and existing subscription-login switches keep their behavior. A Claude seat using account-home mode must
825
845
  use that mode for later account changes too.
826
846
 
827
- User-managed provider settings can still affect authentication. After a real tool turn, check which account and billing
828
- identity the runtime used. Do not print tokens or the process environment. The configured home alone cannot verify the
829
- running account.
847
+ User-managed provider settings can still affect authentication. After a real tool turn, check what the runtime used. For
848
+ a login stored in the seat's home (`/login`), the seat's own `/status` shows the account that login saved. For a token
849
+ login, Claude doesn't report which account the token belongs to (`claude auth status` says only that a token is set):
850
+ OpenRig shows your label for it and whether the token was applied, and the account behind it is unverified. Do not print
851
+ tokens or the process environment. The configured home alone cannot verify the running account.
830
852
 
831
853
  Before downgrading to a version without account-home switching, stop the managed seats. Select their accounts using
832
854
  that version's supported setup before resuming. Older versions ignore the saved selection and may launch with inherited
@@ -1100,7 +1122,7 @@ directory's `CLAUDE.md`, including blocks written by other rigs.
1100
1122
  | `codex_permissions` | mapping | no | — | Codex-only sandbox and approval envelope, emitted as explicit flags on every managed launch and resume; see [per-member Codex permissions](#per-member-codex-permissions). |
1101
1123
  | `claude_token` | mapping | no | — | Claude-only `{ label, file }`: the seat's own subscription token file, by absolute path, used from its first launch; see "A seat's own subscription token" under [launch environment](#launch-environment). |
1102
1124
  | `runtime` | string | yes | — | Agent runtime. Current supported values: `claude-code`, `codex`, `pi`, `omp`, `terminal`, `stub`. `stub` is a deterministic test harness, not an agent: a Node runner in the seat's tmux pane goes through the normal launch, skill projection, startup-file and readiness path, follows `<cwd>/.openrig/stub/script.json` when present, and calls no model. See "What a stub can and cannot prove" in `docs/as-built/test-layers.md`. |
1103
- | `cwd` | string | yes | — | Working directory for the agent. A relative path resolves against the rig root (the directory containing the rig spec). If that path exists as written, it is used. Otherwise a leading `~` or `~/` expands to the home directory (`~user` does not) and `$VAR` / `${VAR}` expand from the daemon host's environment; a relative result still resolves against the rig root. A reference to an unset variable stays as written, so the cwd is that literal path and works only if it exists. Use `"."` for the rig root itself. Can be overridden at launch time with `rig up --cwd`. A cwd inside the OpenRig installation fails preflight unless `--cwd` is given. Editing this declaration does not update an existing seat; use [`rig seat set-cwd`](agent-startup-guide.md#change-an-existing-seats-working-directory) to save its future launch directory. |
1125
+ | `cwd` | string | yes | — | Working directory for the agent. `${project:<id>}/relative/path` (or `${project:<id>}` for its root) resolves against that named project in the workspace catalog, in any rig spec. A missing, ambiguous or malformed project reference reports a preflight error; register or correct the project, or supply `--cwd`. Bundles that carry the named project preview its destination and register it before launch ([member working directories in a carried project](rig-bundle.md#member-working-directories-in-a-carried-project)). A relative path resolves against the rig root (the directory containing the rig spec). If that path exists as written, it is used. Otherwise a leading `~` or `~/` expands to the home directory (`~user` does not) and `$VAR` / `${VAR}` expand from the daemon host's environment; a relative result still resolves against the rig root. A reference to an unset variable stays as written, so the cwd is that literal path and works only if it exists. Use `"."` for the rig root itself. Can be overridden at launch time with `rig up --cwd`. A cwd inside the OpenRig installation fails preflight unless `--cwd` is given. Editing this declaration does not update an existing seat; use [`rig seat set-cwd`](agent-startup-guide.md#change-an-existing-seats-working-directory) to save its future launch directory. |
1104
1126
  | `label` | string | no | — | Human-readable member name. Shown in UI when present. |
1105
1127
  | `model` | string | no | — | Model override. Runtime-specific (e.g., `claude-opus-4-6` for Claude Code). |
1106
1128
  | `effort` | string | no | — | Reasoning effort override, trimmed. Claude gets `--effort`, Codex `-c model_reasoning_effort=…`, Pi `--thinking` (see "Pi" below). A non-string value is ignored with an advisory. |
@@ -1654,6 +1676,7 @@ members:
1654
1676
  dispatch_tag: role:impl
1655
1677
  cwd_template: /work/{rig}/{slot}
1656
1678
  drain: false
1679
+ dispatch_guard: [/usr/local/bin/pool-guard, --strict]
1657
1680
  ```
1658
1681
 
1659
1682
  Stored and validated; it has no runtime effect until the seat pool job is armed.
@@ -1668,6 +1691,7 @@ Stored and validated; it has no runtime effect until the seat pool job is armed.
1668
1691
  | `dispatch_tag` | non-empty string | none: every row to the model | Move only the model's rows that carry this tag. |
1669
1692
  | `cwd_template` | absolute path; only `{rig}` and `{slot}` | none: the model's folder | Each pool agent's working folder, with `{rig}` and `{slot}` filled in. `{slot}` is optional: without it the agents share one folder. |
1670
1693
  | `drain` | `true` or `false` | `false` | Empties the pool. |
1694
+ | `dispatch_guard` | non-empty list of non-empty strings; the first an absolute path | none: no guard | A command, with its own arguments, asked once per planned move; exit 75 vetoes that move. See [Seat pools: the dispatch guard](seat-pools.md#the-dispatch-guard). Never a shell string. |
1671
1695
 
1672
1696
  - **Validation:** whatever is wrong inside the block is an advisory, never a spec error, reported as
1673
1697
  `<pod>.<member> pool.<field>: <reason>; pool not used`: a wrong type, a value out of bounds, `max` below `min`, a
@@ -1677,6 +1701,8 @@ Stored and validated; it has no runtime effect until the seat pool job is armed.
1677
1701
  seat replaces a stored block whole, clears it with `pool: {}` and leaves it unchanged when the key is absent. A block
1678
1702
  that can't be used is stored as written (as JSON: a number JSON can't hold, such as `.inf` or `.nan`, is stored as
1679
1703
  `null`, still unusable), with its error, rather than clearing the one before; it is not a removal.
1704
+ A `dispatch_guard` written as one string (`"/usr/local/bin/pool-guard --strict"`), an empty list, a list item that
1705
+ isn't non-empty text, or a command that isn't an absolute path is an advisory like the others.
1680
1706
  A fresh launch of the seat from its recorded launch keeps the stored block.
1681
1707
  - **Export and bundles:** `rig spec export` leaves the pool's agents out and writes the model member with its block;
1682
1708
  an edge touching a pool agent is left out and named in a "Not carried" line. `rig bundle create` doesn't count pool
@@ -497,8 +497,17 @@ Migration `100_typing_guard_modes` extends the existing guard/audit rows and
497
497
  adds receipt metadata to the original outbox rows; it creates no tables, retry
498
498
  indexes or executable requests. Combined wakes retain each original ID and body.
499
499
  A held queue wake stays on the existing queue recovery path. A row created straight to
500
- a `draft-aware` seat is tried again when the seat next reports idle while it's still in
501
- `draft-aware` mode, through the same guarded delivery and within `queue.wake_retry_cap`.
500
+ a `draft-aware` seat, or handed to it with `rig queue handoff`, is tried again when the
501
+ seat next reports idle while it's still in `draft-aware` mode, whichever wake was held (the
502
+ row's own, its unpark's or its reroute's), through the same guarded
503
+ delivery and within `queue.wake_retry_cap`. A held wake not tried yet, and each try the guard
504
+ held, gets one more offer while the seat stays idle with nothing new to report, so a draft
505
+ deleted or left with no report doesn't strand it: after about 4.5 s, and not before the
506
+ guard's quiet window for activity at the seat's own terminal has ended. An offer that
507
+ couldn't try (a drain, an owed restore, the seat not idle, or a drain that starts during
508
+ the pass) is offered again later, and records no try. The
509
+ wake ladder doesn't also retry these rows on its own timer; a handed-off row at a seat
510
+ that isn't in `draft-aware` mode keeps the ladder's retry.
502
511
  Switching modes alone replays nothing; a retry already admitted while the seat was
503
512
  `draft-aware` goes once. Still held past that cap or
504
513
  `queue.wake_unconfirmed_window_minutes`, or held in `hold` mode past the window, the row