@openrig/cli 0.7.4 → 0.7.5

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 (316) hide show
  1. package/README.md +5 -5
  2. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  3. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  4. package/daemon/assets/plugins/openrig-core/skills/queue-handoff/SKILL.md +5 -1
  5. package/daemon/context-packs/help/manifest.yaml +1 -1
  6. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  7. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +20 -6
  8. package/daemon/context-packs/reference/getting-started.md +12 -2
  9. package/daemon/context-packs/reference/manifest.yaml +1 -1
  10. package/daemon/context-packs/reference/rig-spec.md +5 -1
  11. package/daemon/context-packs/reference/whats-new.md +153 -116
  12. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  13. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  14. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  15. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  16. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  17. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  18. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  19. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  20. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  21. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  22. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  23. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  27. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/SKILL.md +11 -0
  28. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/queue-handoff/SKILL.md +5 -1
  60. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  66. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  67. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  68. package/daemon/dist/adapters/claude-code-adapter.d.ts +2 -3
  69. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  70. package/daemon/dist/adapters/claude-code-adapter.js +35 -18
  71. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  72. package/daemon/dist/adapters/tmux.js +1 -1
  73. package/daemon/dist/adapters/tmux.js.map +1 -1
  74. package/daemon/dist/build-info.js +3 -3
  75. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  76. package/daemon/dist/db/all-migrations.js +2 -0
  77. package/daemon/dist/db/all-migrations.js.map +1 -1
  78. package/daemon/dist/db/migrations/126_escalation_target_refs.d.ts +4 -0
  79. package/daemon/dist/db/migrations/126_escalation_target_refs.d.ts.map +1 -0
  80. package/daemon/dist/db/migrations/126_escalation_target_refs.js +30 -0
  81. package/daemon/dist/db/migrations/126_escalation_target_refs.js.map +1 -0
  82. package/daemon/dist/domain/composer-prompts.d.ts +13 -0
  83. package/daemon/dist/domain/composer-prompts.d.ts.map +1 -1
  84. package/daemon/dist/domain/composer-prompts.js +32 -0
  85. package/daemon/dist/domain/composer-prompts.js.map +1 -1
  86. package/daemon/dist/domain/escalation-owner.d.ts +13 -0
  87. package/daemon/dist/domain/escalation-owner.d.ts.map +1 -0
  88. package/daemon/dist/domain/escalation-owner.js +92 -0
  89. package/daemon/dist/domain/escalation-owner.js.map +1 -0
  90. package/daemon/dist/domain/escalation-target-ref.d.ts +3 -0
  91. package/daemon/dist/domain/escalation-target-ref.d.ts.map +1 -0
  92. package/daemon/dist/domain/escalation-target-ref.js +6 -0
  93. package/daemon/dist/domain/escalation-target-ref.js.map +1 -0
  94. package/daemon/dist/domain/gateway/destination-resolver.d.ts +2 -0
  95. package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
  96. package/daemon/dist/domain/gateway/destination-resolver.js +10 -1
  97. package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
  98. package/daemon/dist/domain/graph-projection.d.ts.map +1 -1
  99. package/daemon/dist/domain/graph-projection.js +2 -1
  100. package/daemon/dist/domain/graph-projection.js.map +1 -1
  101. package/daemon/dist/domain/mission-control/notification-adapter-ntfy.d.ts.map +1 -1
  102. package/daemon/dist/domain/mission-control/notification-adapter-ntfy.js +2 -0
  103. package/daemon/dist/domain/mission-control/notification-adapter-ntfy.js.map +1 -1
  104. package/daemon/dist/domain/mission-control/notification-adapter-webhook.d.ts.map +1 -1
  105. package/daemon/dist/domain/mission-control/notification-adapter-webhook.js +2 -0
  106. package/daemon/dist/domain/mission-control/notification-adapter-webhook.js.map +1 -1
  107. package/daemon/dist/domain/native-resume-probe.d.ts +3 -0
  108. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  109. package/daemon/dist/domain/native-resume-probe.js +7 -0
  110. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  111. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  112. package/daemon/dist/domain/node-inventory.js +2 -1
  113. package/daemon/dist/domain/node-inventory.js.map +1 -1
  114. package/daemon/dist/domain/periodic-snapshot-scheduler.d.ts +3 -0
  115. package/daemon/dist/domain/periodic-snapshot-scheduler.d.ts.map +1 -1
  116. package/daemon/dist/domain/periodic-snapshot-scheduler.js +15 -11
  117. package/daemon/dist/domain/periodic-snapshot-scheduler.js.map +1 -1
  118. package/daemon/dist/domain/ps-projection.d.ts +2 -1
  119. package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
  120. package/daemon/dist/domain/ps-projection.js +4 -1
  121. package/daemon/dist/domain/ps-projection.js.map +1 -1
  122. package/daemon/dist/domain/queue-repository.d.ts +3 -0
  123. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  124. package/daemon/dist/domain/queue-repository.js +18 -3
  125. package/daemon/dist/domain/queue-repository.js.map +1 -1
  126. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  127. package/daemon/dist/domain/queue-stuck-sweep.js +131 -16
  128. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  129. package/daemon/dist/domain/queue-waiting.d.ts +1 -1
  130. package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
  131. package/daemon/dist/domain/queue-waiting.js +5 -4
  132. package/daemon/dist/domain/queue-waiting.js.map +1 -1
  133. package/daemon/dist/domain/queue-wake-ladder.d.ts +1 -1
  134. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  135. package/daemon/dist/domain/queue-wake-ladder.js +171 -44
  136. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  137. package/daemon/dist/domain/rig-edge-ops.d.ts +1 -1
  138. package/daemon/dist/domain/rig-edge-ops.d.ts.map +1 -1
  139. package/daemon/dist/domain/rig-edge-ops.js +8 -6
  140. package/daemon/dist/domain/rig-edge-ops.js.map +1 -1
  141. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  142. package/daemon/dist/domain/rig-repository.js +12 -4
  143. package/daemon/dist/domain/rig-repository.js.map +1 -1
  144. package/daemon/dist/domain/rig-teardown.d.ts +2 -2
  145. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  146. package/daemon/dist/domain/rig-teardown.js +9 -5
  147. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  148. package/daemon/dist/domain/rigspec-exporter.js +3 -3
  149. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  150. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  151. package/daemon/dist/domain/rigspec-instantiator.js +8 -7
  152. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  153. package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  154. package/daemon/dist/domain/rigspec-schema.js +8 -1
  155. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  156. package/daemon/dist/domain/rosters.d.ts +2 -0
  157. package/daemon/dist/domain/rosters.d.ts.map +1 -1
  158. package/daemon/dist/domain/rosters.js +6 -0
  159. package/daemon/dist/domain/rosters.js.map +1 -1
  160. package/daemon/dist/domain/scope/scope-audit.d.ts +1 -0
  161. package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
  162. package/daemon/dist/domain/scope/scope-audit.js +4 -0
  163. package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
  164. package/daemon/dist/domain/seat-delivery-guard.d.ts +1 -1
  165. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  166. package/daemon/dist/domain/seat-delivery-guard.js +11 -2
  167. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  168. package/daemon/dist/domain/session-registry.d.ts +3 -0
  169. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  170. package/daemon/dist/domain/session-registry.js +5 -0
  171. package/daemon/dist/domain/session-registry.js.map +1 -1
  172. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  173. package/daemon/dist/domain/session-transport.js +39 -18
  174. package/daemon/dist/domain/session-transport.js.map +1 -1
  175. package/daemon/dist/domain/terminal/herdr-adapter.d.ts +13 -5
  176. package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
  177. package/daemon/dist/domain/terminal/herdr-adapter.js +55 -79
  178. package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
  179. package/daemon/dist/domain/terminal/herdr-follow-view.d.ts +28 -0
  180. package/daemon/dist/domain/terminal/herdr-follow-view.d.ts.map +1 -0
  181. package/daemon/dist/domain/terminal/herdr-follow-view.js +338 -0
  182. package/daemon/dist/domain/terminal/herdr-follow-view.js.map +1 -0
  183. package/daemon/dist/domain/terminal/herdr-sessions.d.ts +2 -1
  184. package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
  185. package/daemon/dist/domain/terminal/herdr-sessions.js +32 -8
  186. package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
  187. package/daemon/dist/domain/terminal/herdr-viewer.d.ts +69 -0
  188. package/daemon/dist/domain/terminal/herdr-viewer.d.ts.map +1 -0
  189. package/daemon/dist/domain/terminal/herdr-viewer.js +285 -0
  190. package/daemon/dist/domain/terminal/herdr-viewer.js.map +1 -0
  191. package/daemon/dist/domain/terminal/task-terminal-view.d.ts +2 -1
  192. package/daemon/dist/domain/terminal/task-terminal-view.d.ts.map +1 -1
  193. package/daemon/dist/domain/terminal/task-terminal-view.js.map +1 -1
  194. package/daemon/dist/domain/terminal/terminal-follow-policy.d.ts +65 -0
  195. package/daemon/dist/domain/terminal/terminal-follow-policy.d.ts.map +1 -0
  196. package/daemon/dist/domain/terminal/terminal-follow-policy.js +93 -0
  197. package/daemon/dist/domain/terminal/terminal-follow-policy.js.map +1 -0
  198. package/daemon/dist/domain/terminal/terminal-following.d.ts +39 -0
  199. package/daemon/dist/domain/terminal/terminal-following.d.ts.map +1 -0
  200. package/daemon/dist/domain/terminal/terminal-following.js +135 -0
  201. package/daemon/dist/domain/terminal/terminal-following.js.map +1 -0
  202. package/daemon/dist/domain/terminal/terminal-provider.d.ts +10 -0
  203. package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
  204. package/daemon/dist/domain/terminal/terminal-service.d.ts +20 -0
  205. package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
  206. package/daemon/dist/domain/terminal/terminal-service.js +108 -34
  207. package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
  208. package/daemon/dist/domain/terminal/tile-attach.js +1 -1
  209. package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
  210. package/daemon/dist/domain/terminal/view-composer.js +1 -1
  211. package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
  212. package/daemon/dist/domain/types.d.ts +2 -0
  213. package/daemon/dist/domain/types.d.ts.map +1 -1
  214. package/daemon/dist/domain/types.js.map +1 -1
  215. package/daemon/dist/index.d.ts.map +1 -1
  216. package/daemon/dist/index.js +1 -0
  217. package/daemon/dist/index.js.map +1 -1
  218. package/daemon/dist/routes/scope-audit.d.ts.map +1 -1
  219. package/daemon/dist/routes/scope-audit.js +2 -2
  220. package/daemon/dist/routes/scope-audit.js.map +1 -1
  221. package/daemon/dist/routes/terminal.d.ts +3 -1
  222. package/daemon/dist/routes/terminal.d.ts.map +1 -1
  223. package/daemon/dist/routes/terminal.js +57 -1
  224. package/daemon/dist/routes/terminal.js.map +1 -1
  225. package/daemon/dist/routes/transport.d.ts.map +1 -1
  226. package/daemon/dist/routes/transport.js +3 -0
  227. package/daemon/dist/routes/transport.js.map +1 -1
  228. package/daemon/dist/server.js +1 -1
  229. package/daemon/dist/server.js.map +1 -1
  230. package/daemon/dist/startup.d.ts.map +1 -1
  231. package/daemon/dist/startup.js +9 -2
  232. package/daemon/dist/startup.js.map +1 -1
  233. package/daemon/docs/reference/agent-startup-guide.md +9 -0
  234. package/daemon/docs/reference/community-harness-examples/pi-tui/openrig-pi-tui-launch +100 -0
  235. package/daemon/docs/reference/community-harness-examples/pi-tui/pi-tui.yaml +15 -0
  236. package/daemon/docs/reference/community-harness-presets.md +77 -0
  237. package/daemon/docs/reference/edge-types.md +40 -11
  238. package/daemon/docs/reference/getting-started.md +12 -2
  239. package/daemon/docs/reference/hosted-members.md +5 -1
  240. package/daemon/docs/reference/publishing-a-rig-bundle.md +5 -0
  241. package/daemon/docs/reference/quickstart.md +1 -1
  242. package/daemon/docs/reference/rig-spec.md +5 -1
  243. package/daemon/docs/reference/sdlc-conventions.md +6 -0
  244. package/daemon/docs/reference/seat-delivery.md +6 -0
  245. package/daemon/docs/reference/terminal-sessions.md +109 -2
  246. package/daemon/docs/reference/whats-new.md +153 -116
  247. package/daemon/specs/agents/shared/skills/core/rig-bundles-and-shareable-artifacts/SKILL.md +11 -0
  248. package/dist/build-info.js +3 -3
  249. package/dist/commands/attach.d.ts.map +1 -1
  250. package/dist/commands/attach.js +9 -9
  251. package/dist/commands/attach.js.map +1 -1
  252. package/dist/commands/capture.d.ts.map +1 -1
  253. package/dist/commands/capture.js +12 -4
  254. package/dist/commands/capture.js.map +1 -1
  255. package/dist/commands/edge.d.ts.map +1 -1
  256. package/dist/commands/edge.js +2 -1
  257. package/dist/commands/edge.js.map +1 -1
  258. package/dist/commands/host.d.ts.map +1 -1
  259. package/dist/commands/host.js +17 -2
  260. package/dist/commands/host.js.map +1 -1
  261. package/dist/commands/mcp.d.ts.map +1 -1
  262. package/dist/commands/mcp.js +4 -1
  263. package/dist/commands/mcp.js.map +1 -1
  264. package/dist/commands/scope.js +3 -3
  265. package/dist/commands/scope.js.map +1 -1
  266. package/dist/commands/send.d.ts.map +1 -1
  267. package/dist/commands/send.js +16 -21
  268. package/dist/commands/send.js.map +1 -1
  269. package/dist/commands/start.d.ts.map +1 -1
  270. package/dist/commands/start.js +7 -0
  271. package/dist/commands/start.js.map +1 -1
  272. package/dist/commands/terminal.d.ts +32 -0
  273. package/dist/commands/terminal.d.ts.map +1 -1
  274. package/dist/commands/terminal.js +30 -8
  275. package/dist/commands/terminal.js.map +1 -1
  276. package/dist/commands/transcript.js +1 -1
  277. package/dist/commands/transcript.js.map +1 -1
  278. package/dist/lib/scope/scope-audit.d.ts +1 -0
  279. package/dist/lib/scope/scope-audit.d.ts.map +1 -1
  280. package/dist/lib/scope/scope-audit.js +4 -0
  281. package/dist/lib/scope/scope-audit.js.map +1 -1
  282. package/dist/mcp-server.d.ts +1 -1
  283. package/dist/mcp-server.d.ts.map +1 -1
  284. package/dist/mcp-server.js +4 -3
  285. package/dist/mcp-server.js.map +1 -1
  286. package/dist/terminal-window.d.ts +3 -3
  287. package/dist/terminal-window.d.ts.map +1 -1
  288. package/dist/terminal-window.js +33 -5
  289. package/dist/terminal-window.js.map +1 -1
  290. package/package.json +1 -1
  291. package/tui/dist/daemon-client.d.ts +1 -0
  292. package/tui/dist/daemon-client.d.ts.map +1 -1
  293. package/tui/dist/daemon-client.js +1 -1
  294. package/tui/dist/daemon-client.js.map +1 -1
  295. package/tui/dist/hydrate.d.ts.map +1 -1
  296. package/tui/dist/hydrate.js +3 -0
  297. package/tui/dist/hydrate.js.map +1 -1
  298. package/tui/dist/navigator.d.ts.map +1 -1
  299. package/tui/dist/navigator.js +8 -5
  300. package/tui/dist/navigator.js.map +1 -1
  301. package/tui/dist/render.d.ts.map +1 -1
  302. package/tui/dist/render.js +6 -5
  303. package/tui/dist/render.js.map +1 -1
  304. package/tui/dist/state.d.ts.map +1 -1
  305. package/tui/dist/state.js +2 -1
  306. package/tui/dist/state.js.map +1 -1
  307. package/tui/dist/terminals/open-window.js +2 -2
  308. package/tui/dist/terminals/open-window.js.map +1 -1
  309. package/tui/dist/topology/host-label.d.ts +7 -0
  310. package/tui/dist/topology/host-label.d.ts.map +1 -0
  311. package/tui/dist/topology/host-label.js +34 -0
  312. package/tui/dist/topology/host-label.js.map +1 -0
  313. package/tui/dist/types.d.ts +3 -0
  314. package/tui/dist/types.d.ts.map +1 -1
  315. package/ui/dist/assets/{index-DV0UNxFw.js → index-ozBodLrS.js} +168 -168
  316. package/ui/dist/index.html +1 -1
@@ -214,6 +214,33 @@ CLI.
214
214
 
215
215
  Copy both and maintain them as your own.
216
216
 
217
+ ## An example: Pi's terminal UI
218
+
219
+ [`community-harness-examples/pi-tui/`](community-harness-examples/pi-tui/) has a preset and a small launcher that run Pi's
220
+ own terminal UI as a community harness. `pi` is the built-in managed Pi runtime, so the preset is named `pi-tui`. OpenRig
221
+ delivers to this seat as to any community seat (the Delivery row above), not as to a plain `runtime: terminal` seat, which
222
+ queue wakes don't reach. Checked once, on Pi 1.4.0 with OpenRig 0.7.4 and one model: a parked row's wake reached Pi in
223
+ the same session (the same session file) and Pi resumed the work, and a handoff reached a second `pi-tui` seat, which
224
+ picked it up unattended. The first seat's task named the commands to use, so this shows a wake reaching Pi and Pi acting
225
+ on it, not Pi choosing by itself to park or hand work on.
226
+ - **The launcher:** each seat gets its own Pi agent folder (`$OPENRIG_HOME/state/pi-tui/<node>/agent`, unless
227
+ `PI_CODING_AGENT_DIR` is set) and its own session folder. At each launch it copies the installed `openrig-core` skills
228
+ it's given (`queue-handoff` by default) into that agent folder. A new launch starts `pi --session-id <the name OpenRig
229
+ gave>` and passes the first input as Pi's first prompt, byte for byte.
230
+ - **Resume isn't declared.** The launcher can reopen a named session: it opens the one session file whose header has that
231
+ id, and starts nothing when there isn't exactly one, because Pi's own `--session-id` creates a session for an id it
232
+ doesn't find. Declare `resume: true` only after a real Pi has reopened a named session and refused a missing one.
233
+ - **Its limits:** run a `pi-tui` seat unattended, not where a person also types into it.
234
+ - With the seat's [typing guard](seat-delivery.md) at its default, a wake submits a person's half-typed draft in Pi's
235
+ editor together with the wake. The guard's draft-aware mode isn't a known fix for this.
236
+ - A send while a Pi dialog OpenRig doesn't recognize is open, such as `/settings`, types into the dialog.
237
+ - Not shown: how Pi takes a wake that arrives while it's busy (a message sent during a busy turn was answered after
238
+ it), and other Pi versions.
239
+ - **Give the seat a model** before its first start: its provider key in its environment, or its login and settings in its
240
+ agent folder.
241
+
242
+ Copy both and maintain them as your own.
243
+
217
244
  The launcher is the contributor's code, in the contributor's package. OpenRig runs no code from a preset and loads no
218
245
  module into its daemon. A preset that sets `launch_result`, `names_conversation`, `startup_assisted` or `first_input` is refused by an older
219
246
  OpenRig that doesn't know the field.
@@ -228,6 +255,56 @@ OpenRig records `node.startup_first_input_passed` with the path and `submission:
228
255
 
229
256
  Presets without `first_input` and built-in runtimes keep their existing behavior. Older OpenRig versions reject this new field as unknown. The private input file remains for diagnostics; it can contain private startup context. A launcher that turns its contents into one argument is subject to the platform’s argument-size limit; the launcher must report a launch error rather than silently truncate the turn. The examples’ argument transport is covered with stand-ins; native unattended startup still requires qualification with the installed harness.
230
257
 
258
+ ## Interactive Pi in a terminal seat: the coordination skills
259
+
260
+ This is for a seat that runs interactive `pi` from a `runtime: terminal` member's startup, or from a community preset's
261
+ launcher. It isn't for a managed `runtime: pi` seat, which already copies its selected skill directories into the seat's own
262
+ Pi agent directory (`$OPENRIG_HOME/state/pi/<session>/agent/skills/`), or for Workshop, whose Pi profiles carry pinned skill
263
+ copies (openrig-world's `PI-SKILLS.md`). The [`pi-tui` example](#an-example-pis-terminal-ui) above does step 1 for its
264
+ seats in its launcher.
265
+
266
+ OpenRig installs no skills for a terminal or community seat: it skips their resources and startup files, and `rig skill
267
+ loadout` covers Claude Code and Codex only. Without the coordination skills, the agent there doesn't know the queue's habits,
268
+ such as parking a row that waits on CI instead of leaving it in progress, or handing work on so the next row names its
269
+ source. The seat's setup does two things.
270
+
271
+ 1. **Make the released skills readable.** The installed OpenRig's own plugin carries them, matching the installed release:
272
+ `rig plugin list` shows `openrig-core` and its path (usually `$OPENRIG_HOME/plugins/openrig-core`), and the skills are in
273
+ its `skills/` folder. Copy whole skill directories, keeping their helper files and modes, into the `skills/` folder of the
274
+ Pi agent directory that seat uses (`PI_CODING_AGENT_DIR`, or `~/.pi/agent` by default). At least `queue-handoff`:
275
+
276
+ ```bash
277
+ CORE="$(rig plugin list | awk '$1 == "openrig-core" {print $NF}')"
278
+ PI_AGENT_DIR="${PI_CODING_AGENT_DIR:-$HOME/.pi/agent}"
279
+ mkdir -p "$PI_AGENT_DIR/skills"
280
+ cp -Rp "$CORE/skills/queue-handoff" "$PI_AGENT_DIR/skills/"
281
+ ```
282
+
283
+ Copy again after each OpenRig upgrade: a copy doesn't follow the plugin.
284
+ 2. **Point the agent at it when it starts.** Don't count on Pi finding the skill by itself; name it in the seat's first turn.
285
+ For example:
286
+
287
+ > Before you work your queue, read `<Pi agent directory>/skills/queue-handoff/SKILL.md` in full: it's how this team hands
288
+ > work on, parks it and waits. When you wait on CI or a long job, park the row with `rig queue block <id> --on
289
+ > external:<what> --wake-after <duration> --continuation "<what resumes>"`.
290
+
291
+ - A community preset with `first_input: true` carries it in the seat's first input when the file is declared with
292
+ `delivery_hint: send_text` (see "Pass the first startup input at launch" above). A `.md` file left at the `auto` hint
293
+ counts as guidance, which a community seat doesn't take.
294
+ - A plain terminal seat can pass it as Pi's initial message in the command its startup runs. Check `pi --help` for that
295
+ argument in your Pi version.
296
+ - `first_input` carries text, not files: it doesn't install the skills.
297
+
298
+ **In a plain terminal seat, a queue wake doesn't reach Pi.** OpenRig doesn't treat a `runtime: terminal` seat as an agent
299
+ seat. When a parked row's wake fires, OpenRig doesn't type it into Pi, and a handoff to that seat records a failed wake
300
+ (`failed:terminal-seat`). Parking still records the wait, but `--wake-after` won't bring Pi back. Check the seat's parked
301
+ rows yourself (`rig queue whoami --session <seat>`, or `rig queue show <id>`), or tell Pi to continue the named row.
302
+
303
+ **What this shows, and what it doesn't.** A copied folder and a startup line put the text in front of the agent. They don't
304
+ show that Pi discovered the skill by itself, or that the agent follows it. Check those separately: that the agent read the
305
+ whole file (its tool trace), and what its rows record, such as a CI wait parked on `external:` with a wake, and a handoff
306
+ made with `handoff-and-complete`, whose next row names it as its source.
307
+
231
308
  ## Write your own
232
309
 
233
310
  Start from the example closest to your harness, and change it. First check that the harness answers a prompt on its own
@@ -1,7 +1,8 @@
1
1
  # Edge Types Reference
2
2
 
3
- Last validated against code: 2026-10-07, at the 0.6.6 cut `2620dea8` (whole document at `fcaf1f8e`; its sources unchanged in edge behaviour since then)
4
- Source of truth: `packages/daemon/src/domain/rigspec-schema.ts`, `packages/daemon/src/domain/rigspec-instantiator.ts`, `packages/daemon/src/domain/queue-owner.ts`
3
+ Historical whole-document validation: 2026-10-07, at the 0.6.6 cut `2620dea8` (whole document at `fcaf1f8e`).
4
+ The fallback escalation section and deferred-target exceptions below describe #605.
5
+ Source of truth: `packages/daemon/src/domain/rigspec-schema.ts`, `packages/daemon/src/domain/rigspec-instantiator.ts`, `packages/daemon/src/domain/queue-owner.ts`, `packages/daemon/src/domain/escalation-owner.ts`
5
6
 
6
7
  ---
7
8
 
@@ -16,8 +17,7 @@ See `docs/reference/rig-spec.md` for the YAML syntax.
16
17
 
17
18
  ## Edge Kinds
18
19
 
19
- Five edge kinds are accepted by the pod-aware validator (the legacy flat-node format accepts only `delegates_to`,
20
- `spawned_by` and `can_observe`):
20
+ Five edge kinds are accepted by both the pod-aware and legacy flat-node validators:
21
21
 
22
22
  | Kind | Accepted | Has Runtime Behavior | Description |
23
23
  |------|----------|---------------------|-------------|
@@ -25,13 +25,13 @@ Five edge kinds are accepted by the pod-aware validator (the legacy flat-node fo
25
25
  | `spawned_by` | yes | **yes — affects launch order** | Source was spawned by target |
26
26
  | `can_observe` | yes | no | Source can observe target's output |
27
27
  | `collaborates_with` | yes | no | Peer collaboration |
28
- | `escalates_to` | yes | no | Source escalates to target |
28
+ | `escalates_to` | yes | **yes — fallback queue escalation** | Source escalates to target |
29
29
 
30
30
  ## What Edges Actually Do Today
31
31
 
32
32
  ### Launch ordering
33
33
 
34
- Only `delegates_to` and `spawned_by` affect runtime behavior. They constrain the order in which nodes are launched:
34
+ Only `delegates_to` and `spawned_by` constrain the order in which nodes are launched:
35
35
 
36
36
  - **`delegates_to`**: source launches BEFORE target. The delegator must be up before the delegate.
37
37
  - **`spawned_by`**: target (parent) launches BEFORE source (child). The parent must be up before the child it spawned.
@@ -46,13 +46,42 @@ All other edge kinds (`can_observe`, `collaborates_with`, `escalates_to`) do NOT
46
46
  wake ladder escalates an unacknowledged row to that orchestrator, and stuck-row findings and recovery go to it. A seat
47
47
  with no incoming `delegates_to` edge has no default orchestrator. `spawned_by` plays no part here.
48
48
 
49
+ ### Fallback escalation across rigs
50
+
51
+ A seat with **no declared `delegates_to` parent** may declare one `escalates_to` destination. The wake ladder and
52
+ stuck sweep use it for new recovery rows; they do not move the original obligation or reassign an already-open recovery. A stopped or unbound declared
53
+ parent still takes precedence, preserving the existing parent route and its fallback.
54
+
55
+ ```yaml
56
+ edges:
57
+ - kind: escalates_to
58
+ from: work.lead
59
+ to: review-advisor@coord
60
+ ```
61
+
62
+ The target is a canonical same-daemon seat address (`pod-member@rig`), or an existing local member using the usual
63
+ edge syntax. Named targets are stored without requiring the other rig to exist and resolved when needed. A matching
64
+ physical session name takes precedence over a derived canonical address. Deferred declarations survive export and
65
+ snapshots; they don't constrain launch order or make the rigs depend on each other's lifecycle.
66
+
67
+ Delivery is one hop. Recovery rows carry `escalation-route:one-hop`, so a destination's own `escalates_to` declaration
68
+ does not forward the recovery again. A missing or stopped destination, multiple matches or declarations, self route,
69
+ or declared cycle preserves the existing fallback: the wake ladder proceeds to its operator rung; the sweep retains
70
+ its existing owner fallback. The recovery body/transition explains the result. Cycle inspection includes stopped
71
+ seats and delegation parents; an unresolved downstream endpoint is reported as unknown, never as proof of no cycle.
72
+ Queue address admission is unchanged. Cross-host and synthetic destinations are not supported.
73
+
74
+ On an existing rig, use `rig edge add <rig> work.lead review-advisor@coord --kind escalates_to`; `--plan` writes nothing.
75
+ The receipt's target node ID is null for a deferred address. Remove it with the exact edge ID returned by add.
76
+ A rig-local graph omits deferred targets, since those seats are outside that graph; the raw topology and export retain them.
77
+
49
78
  ### Graph visualization
50
79
 
51
- All edges are rendered in the UI topology graph. They create visual connections between nodes, helping the operator understand the team structure. Pod-local edges appear within the pod group; cross-pod edges connect across groups.
80
+ Local-node edges are rendered in the UI topology graph; deferred cross-rig targets are omitted. They create visual connections between nodes, helping the operator understand the team structure. Pod-local edges appear within the pod group; cross-pod edges connect across groups.
52
81
 
53
82
  ### Identity projection
54
83
 
55
- All edges appear in `rig whoami --json` output under `edges.outgoing` and `edges.incoming`, with their kind and the connected peer's identity. This lets an agent know its relationship to other members — but the agent interprets this information, it's not enforced by the runtime.
84
+ Local-node edges appear in `rig whoami --json` output under `edges.outgoing` and `edges.incoming`, with their kind and the connected peer's identity. This lets an agent know its relationship to other members — but the agent interprets this information, it's not enforced by the runtime.
56
85
 
57
86
  ### Attach hint heuristic
58
87
 
@@ -64,7 +93,7 @@ node, in creation order, whose session is running, or else the first node with a
64
93
  Edges do NOT currently:
65
94
 
66
95
  - **Route messages** — `rig send` can target any session, regardless of edges (queue escalation, above, is the one
67
- daemon path that follows `delegates_to`)
96
+ daemon path that follows `delegates_to` or fallback `escalates_to`)
68
97
  - **Enforce delegation** — an agent can communicate with any peer, not just its edge targets
69
98
  - **Control permissions** — there's no edge-based access control
70
99
  - **Affect transport** — `rig capture`, `rig broadcast`, etc. work based on session identity, not edge topology
@@ -128,7 +157,7 @@ If none fit, `can_observe` is the safest default — it documents the relationsh
128
157
  ## Validation Rules
129
158
 
130
159
  1. Edge kinds must be one of: `delegates_to`, `spawned_by`, `can_observe`, `collaborates_with`, `escalates_to`
131
- 2. Pod-local edges use unqualified member IDs — both `from` and `to` must exist in the same pod
132
- 3. Cross-pod edges use `pod.member` format — both endpoints must resolve to actual members
160
+ 2. Pod-local edges use unqualified member IDs — both endpoints must exist in the same pod, except a named `escalates_to` target as above.
161
+ 3. Cross-pod edges use `pod.member` format — both endpoints must resolve to actual members, except a named `escalates_to` target as above.
133
162
  4. Cross-pod edges must reference different pods (same-pod edges should use the pod-local syntax)
134
163
  5. Self-edges are not validated at the schema level but are not meaningful
@@ -191,11 +191,11 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
191
191
  script will do and changes nothing:
192
192
 
193
193
  ```sh
194
- curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.4/scripts/install.sh | sh -s -- --dry-run
194
+ curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.5/scripts/install.sh | sh -s -- --dry-run
195
195
  ```
196
196
 
197
197
  The same command without `--dry-run`,
198
- `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.4/scripts/install.sh | sh`, installs the
198
+ `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.5/scripts/install.sh | sh`, installs the
199
199
  latest published `@openrig/cli` with `npm install -g`,
200
200
  runs the Node.js and SQLite check, then `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
201
201
  Codex and may install a missing one, as described below. A failed step prints
@@ -331,6 +331,16 @@ every seat while those seats still run the sessions it started, reports that
331
331
  restore's outcome instead of starting another. Explicitly repeating the saved
332
332
  `--non-interruptive` or `--no-non-interruptive` choice also joins that restore.
333
333
 
334
+ `rig start --last` restores a rig unless every seat it launched was stopped on
335
+ purpose with `rig down` or `rig seat stop`. A rig whose stop was never recorded
336
+ counts as last running: one taken down with `rig down` before OpenRig 0.6.12, or
337
+ one whose seats exited or were lost without `rig down`. So does a rig with no snapshot
338
+ whose saved state can be restored. To keep such a rig down, run `rig down <rig>`
339
+ once, by rig id when names are shared; it records the stop, and `--last` then
340
+ leaves the rig down. `--last` never selects the kernel. Under `--no-kernel`
341
+ (`OPENRIG_NO_KERNEL=1`) the daemon skips the kernel's automatic restore too;
342
+ bring it back with `rig up kernel --existing`.
343
+
334
344
  An explicit `rig up kernel --existing --fresh <seat...>` waits for startup's
335
345
  restore to finish, then replaces only the named seats that still hold the exact
336
346
  sessions startup launched. Other seats keep running. An operator's conversation
@@ -3,6 +3,10 @@
3
3
  A hosted member is a tool that lives outside a terminal, such as an assistant, a chat bot or a cloud routine, and works as a member of a rig. You
4
4
  address work to it like any seat. It reaches the team through OpenRig's MCP server under a grant you issue and can revoke. It never gets a pane.
5
5
 
6
+ Assistants that run on your machine can reach OpenRig's MCP server locally. Many assistants live in a vendor's cloud, and those can only reach a server on the internet.
7
+
8
+ > **Experimental and unsupported. Off by default.** Nothing in OpenRig listens on the internet unless you set it up yourself. You serve `rig mcp serve --http`, put it behind your own TLS tunnel or proxy, and issue a token. Doing that is like opening a port in your firewall. Anyone with the URL and a valid token can act as that member within its grant. Treat the token like a password, give the member the narrowest grant, and revoke it when you're done (`rig mcp token revoke <name>`). We don't support, and take no responsibility for, an OpenRig reachable from the internet, just as with running OpenRig itself on the open internet. Use at your own risk.
9
+
6
10
  ## Set one up
7
11
 
8
12
  1. **Pick its address** on an existing rig: `<member>@<rig>`, for example `grok@research`. No node is added; the queue takes rows for it.
@@ -52,7 +56,7 @@ member, so it checks its rows again.
52
56
 
53
57
  The server tells the member this in its MCP instructions. The text is versioned, so you can check which version a tool received:
54
58
 
55
- > Member workflow (member-workflow/v1). 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 the answer in resolution (rig_queue_update), or hand it on (rig_queue_handoff). Listing or reading an item doesn't take it. 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.
59
+ > Member workflow (member-workflow/v2). 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. 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.
56
60
 
57
61
  ## Ring it when work lands
58
62
 
@@ -120,6 +120,11 @@ or **"Not tested by OpenRig"**, which means exactly that. You're welcome to run
120
120
 
121
121
  ## 6. Submit it to openrig.dev/rigs
122
122
 
123
+ Before you submit, run `rig bundle check` on the folder at the commit you'll submit. openrig-registry's registry check
124
+ runs the same check, with the latest published OpenRig, on the folder at your `ref`, and any finding fails it. A team
125
+ made with `rig export` has no README of its own: add one and declare it in `rig.yaml` as `docs: [{ path: README.md }]`
126
+ (see [section 1](#1-lay-out-the-folder)).
127
+
123
128
  Open a pull request to [mvschwarz/openrig-registry](https://github.com/mvschwarz/openrig-registry) that adds one file,
124
129
  `registry/submissions/<your-team>.yaml`, with three fields: `repository` (your GitHub repository URL), `folder` (the
125
130
  folder holding `rig.yaml`, or `.` for the repository root) and `ref` (a branch, tag or commit). No pull requests? Open
@@ -17,7 +17,7 @@ npx skills add https://github.com/mvschwarz/openrig/tree/<release-tag>/skills/ri
17
17
  npx skills add https://github.com/mvschwarz/openrig/tree/<release-tag>/skills/rigs --skill rigs --agent codex
18
18
  ```
19
19
 
20
- For a new install, use the latest release's tag, for example `v0.7.4`. If OpenRig is already installed, use the tag
20
+ For a new install, use the latest release's tag, for example `v0.7.5`. If OpenRig is already installed, use the tag
21
21
  that matches `rig --version`, or upgrade first. If the command fails with `npx: command not found`, Node.js isn't
22
22
  installed or isn't on your PATH yet (see [What you need](#what-you-need)). Then type `/rigs` in Claude Code, or `$rigs` in Codex, and say what
23
23
  you want built.
@@ -718,7 +718,11 @@ This is human-authored (you choose the pod/member IDs) and system-validated (the
718
718
  | `spawned_by` | Source was spawned by target; the target launches first. Constrains launch order. | Child → parent in hierarchical topologies |
719
719
  | `can_observe` | Source can observe target's output. Does NOT constrain launch order. | Reviewer → implementer, monitor → worker |
720
720
  | `collaborates_with` | Peer collaboration relationship. Does NOT constrain launch order. | Co-equal peers working together |
721
- | `escalates_to` | Source escalates to target for decisions. Does NOT constrain launch order. | Worker → lead for escalation |
721
+ | `escalates_to` | Fallback queue escalation for a seat without a declared delegation parent. Does NOT constrain launch order. | Local member or same-daemon `pod-member@rig` address |
722
+
723
+ A named `escalates_to` target may be in another rig on the same daemon and need not exist at import time.
724
+ See [fallback escalation across rigs](edge-types.md#fallback-escalation-across-rigs) for precedence, single-hop delivery,
725
+ cycle detection and visible fallback outcomes.
722
726
 
723
727
  ### Pod-Local Edges
724
728
 
@@ -165,6 +165,12 @@ commit. Evidence capture (`proof add`), policy acceptance, higher outcome
165
165
  judgment and publication are distinct. This optional component does not select
166
166
  Part B or add a mandatory review gate.
167
167
 
168
+ A judgment binds the slice's path, the item's text and the policy. Moving or
169
+ renaming a slice (`rig scope slice move`, or by hand) reopens its judged items:
170
+ `rig proof show` reports each as `unknown`, and each needs a new judgment on its
171
+ current revision. `rig scope audit` checks structure only and never reads proof
172
+ readiness, so a passing audit doesn't mean the proof still stands.
173
+
168
174
  The project readiness that `rig proof show --project` reports counts only
169
175
  missions whose `mission.yaml` carries `metadata.status: active` or
170
176
  `metadata.status: release-candidate`. `rig scope mission create` writes
@@ -16,6 +16,12 @@ type: `openrig-urgent`, `urgent-only` and `sends-only`. Sibling seats keep their
16
16
 
17
17
  Lifecycle work is refused at `openrig-urgent` and `urgent-only`, as at `hold`.
18
18
 
19
+ A terminal member (`runtime: terminal`) defaults to `sends-only`, which holds OpenRig's own notices. Set one
20
+ to `off` and those notices, such as park reminders and other watchdog messages, type into whatever the pane
21
+ is running, and a shell prompt runs each line as a command, From and To lines included: OpenRig doesn't check
22
+ a terminal pane's foreground process. `openrig-urgent` and `draft-aware` type only into a recognized empty agent composer, so
23
+ a shell prompt holds them. Keep the default for a seat that may fall back to a shell.
24
+
19
25
  Runtime permissions are separate. Recipient and interactive-prompt checks still
20
26
  apply. `--raw` and `--force` do not bypass the typing guard. A deliberate
21
27
  `--dangerously-interact --reason` remains available at every interruption level
@@ -40,6 +40,19 @@ and slice views, pagination, absent seats and partial results all use the same
40
40
  composer. Selecting a session changes where those tiles are placed. It does
41
41
  not relaunch the seats' tmux sessions or move queue ownership.
42
42
 
43
+ ## Open results
44
+
45
+ For Herdr, a successful layout request alone does not count its seats as opened.
46
+ OpenRig checks the returned tab's pane list. A missing tab identity or an
47
+ unreadable, empty or unattributable listing puts the affected seats in
48
+ `degraded`, with `code: "pane_unconfirmed"`, instead of `opened`. The CLI and
49
+ TUI name those seats as unconfirmed. Inspect the terminal before retrying:
50
+ the layout may have taken effect even though its panes could not be confirmed.
51
+ Confirmed seats on other pages still count; with none confirmed, the command
52
+ returns a nonzero exit status. Reusing an existing workspace keeps its separate
53
+ reuse result. This pane check does not prove desktop visibility or create a
54
+ verified viewer mapping.
55
+
43
56
  ## Replacing a seat's session
44
57
 
45
58
  New tiles keep their place when a seat's tmux session is replaced. They wait up
@@ -180,7 +193,101 @@ its name, falling back to the qitem ID. The existing preview `view` string is
180
193
  unchanged. A following view derives membership when requested; it does not
181
194
  mean an open workspace updates itself.
182
195
 
183
- Preview is read-only. In this membership increment, `viewerStatus` is
184
- `not-provisioned`: the response does not verify a reusable provider terminal
196
+ Preview is read-only. A member without owned viewer provenance is
197
+ `not-provisioned`; the ensure operation below can establish a reusable provider
185
198
  mapping. An explicit open retains the provider's existing workspace behavior;
186
199
  it does not continuously reconcile the view or change an agent's lifecycle.
200
+
201
+ ## Following one task
202
+
203
+ `rig terminal open qitem:<id> --follow` keeps one workspace following the
204
+ task's current obligation owners. A joining member gets a verified local
205
+ viewer tile without taking focus. A departing member loses only its viewer,
206
+ after a grace period; the agent and its conversation keep running. The
207
+ explanation strip names joins, departures, unavailable terminals and limits.
208
+ The first workspace on an empty provider may become focused.
209
+
210
+ This increment supports the qualified **Linux Herdr 0.9.5/protocol 22**
211
+ endpoint. Other platforms/providers and other selector kinds retain ordinary
212
+ one-shot open. Use `--provider herdr --json` to operate without opening a
213
+ desktop window, and `--session <name>` to select that endpoint. Opening a tile
214
+ can change the agent's terminal size; `ignore-size` does not guarantee isolation.
215
+
216
+ ```bash
217
+ rig terminal open qitem:example --follow --provider herdr --json
218
+ rig terminal open qitem:example --follow --provider herdr --pin reviewer@team
219
+ rig terminal open qitem:example --follow --provider herdr --max-tiles 12
220
+ rig terminal open qitem:example --follow --provider herdr --suppress reviewer@team --suppression-ms 60000
221
+ rig terminal open qitem:example --no-follow
222
+ ```
223
+
224
+ `--unpin` and `--unsuppress` reverse those presentation choices. The default
225
+ cap is eight tiles; explicitly raising `--max-tiles` overrides it. Pins can
226
+ exceed the cap rather than being evicted. A departed tile retained for typed or
227
+ unconfirmed input does not consume a slot for joining members. Disabling removes
228
+ the saved following selector and keeps the existing layout intact.
229
+
230
+ The default departure grace is four seconds (`--grace-ms`). A focused leaver
231
+ gets another twelve seconds for reading (`--focus-retention-ms`); before its
232
+ tile closes, focus moves to a verified surviving member, or to the explanation
233
+ strip when none remains. Typed or unconfirmed input keeps the tile, labeled
234
+ as no longer participating. Explicit suppression also retains a typed draft.
235
+ Pi, terminal and community harness input may be unreadable to the composer
236
+ inspector: those tiles remain while input is unconfirmed, even after unpinning.
237
+ Each input-retained departure gets one delayed recheck after thirty seconds.
238
+ After that, queue or node/session lifecycle events, or an explicit repeat of
239
+ the follow command, can reconsider it. Activity hooks do not wake following,
240
+ and input is not repeatedly polled. Draft text is never saved.
241
+
242
+ Following consumes Core events and one-shot retention/suppression deadlines,
243
+ not repeated CLI membership queries. Complete empty membership drains the
244
+ tiles and preserves the workspace. Once no retained tiles remain, following
245
+ stops and the selector releases its active slot; new work does not automatically
246
+ restart it. Run `--follow` again to resume the same workspace. An incomplete source, failed provider read
247
+ or changed pane/terminal generation retains the previous view and reports
248
+ the uncertainty. It never authorizes a blind workspace rebuild or close.
249
+ `rig terminal views --json` and `rig terminal status --json` include the saved
250
+ active selectors and latest following status. Active selectors and owned viewer provenance
251
+ survive daemon restarts; task membership is always re-derived.
252
+
253
+ The owner-authorized HTTP operation is `POST /api/terminal/follow` with
254
+ `{view:"qitem:<id>",provider:"herdr",session?,enabled:true,maxTiles?,pin?,unpin?,
255
+ suppress?,unsuppress?,suppressionMs?,graceMs?,focusRetentionMs?,expectedPlan?}`.
256
+ Seat controls are arrays of names from the current/retained view. It uses the
257
+ existing terminal bearer boundary, like ensure-viewer. The response includes
258
+ the stable `workspaceId`, normal open partitions, `viewDescriptor`, and
259
+ `following:{id,enabled,state,maxTiles,tiles,events,overflow,nextAt?}`. Presentation
260
+ provenance grants no membership or input authority. This is a local native
261
+ viewer operation; browser input and remote-host provisioning are separate.
262
+
263
+ ## Ensuring an owner viewer
264
+
265
+ The owner-facing HTTP operation `POST /api/terminal/viewer/ensure` accepts
266
+ `{view:"qitem:<id>", member:{hostId,nodeId}, provider:"herdr", session,
267
+ expectedPlan}`. Use a current preview's member key and plan. This explicit
268
+ operation uses the daemon's existing terminal bearer and browser boundary;
269
+ a bridge must retain its signed-in owner, Origin and expiry controls. It does
270
+ not grant authority based on task membership or accept a caller terminal ID.
271
+
272
+ On the qualified Linux Herdr 0.9.5/protocol 22 endpoint, it creates one viewer
273
+ or reuses an owned, verified `{workspaceId,paneId,terminalId,readOnly}` mapping.
274
+ A repeated/concurrent request does not create another viewer. A lost create
275
+ reply is reconciled before starting anything else; a lost run reply is checked
276
+ against the actual foreground process, never blindly repeated. Unknown or
277
+ changed terminal identity remains unconfirmed. The operation does not relayout,
278
+ close departed viewers, take over control, focus existing panes or launch/stop
279
+ agents. A first workspace on an otherwise empty Herdr server may become focused.
280
+
281
+ Preview remains passive and names `not-provisioned`, `verified` or `unconfirmed`
282
+ viewer status. Studio can ensure a new member, add its browser frame, and retain
283
+ a pinned leaver labeled as no longer participating. The provider mapping is
284
+ small presentation provenance, separate from queue membership. Herdr display
285
+ labels are not that provenance. Other providers/platforms remain unsupported
286
+ for ensure-viewer until qualified; ordinary open retains its existing behavior.
287
+
288
+ Writable tile clients use `tmux attach -f ignore-size`; read-only clients keep
289
+ `-r` (which also implies ignore-size). This can avoid contributing to sizing
290
+ when other clients establish the agent window's dimensions. It is **not resize
291
+ isolation**: opening a tile can change the agent's terminal size when it is the
292
+ only sizing client. Observers of a Herdr terminal do not themselves resize it;
293
+ a controlling browser can. No cross-version resize guarantee is implied.