@openrig/cli 0.7.9 → 0.7.11

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 (793) hide show
  1. package/README.md +5 -5
  2. package/daemon/assets/claude-permission-policies.cjs +41 -0
  3. package/daemon/assets/claude-permission-policies.d.cts +3 -0
  4. package/daemon/assets/claude-team-permissions.cjs +13 -3
  5. package/daemon/assets/openshell/README.md +1 -1
  6. package/daemon/assets/openshell/guest.py +3 -2
  7. package/daemon/assets/pi-account-lock.cjs +39 -0
  8. package/daemon/assets/plugins/openrig/.claude-plugin/marketplace.json +15 -0
  9. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +32 -0
  10. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +39 -0
  11. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +6 -0
  12. package/daemon/assets/plugins/openrig/LICENSE +200 -0
  13. package/daemon/assets/plugins/openrig/README.md +106 -0
  14. package/daemon/assets/plugins/openrig/assets/logo.svg +1 -0
  15. package/daemon/assets/plugins/openrig/mcp.json +10 -0
  16. package/daemon/assets/plugins/openrig/plugin.json +14 -0
  17. package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +90 -0
  18. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  19. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  20. package/daemon/assets/plugins/openrig-core/hooks/claude.json +11 -0
  21. package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +39 -0
  22. package/daemon/assets/plugins/openrig-core/hooks/scripts/permission-stop-descriptor.cjs +221 -0
  23. package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +16 -2
  24. package/daemon/assets/plugins/openrig-core/skills/openrig-skills/SKILL.md +1 -0
  25. package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +24 -8
  26. package/daemon/assets/plugins/openrig-core/skills/refocusing/SKILL.md +5 -0
  27. package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +39 -4
  28. package/daemon/assets/skills/rigs/SKILL.md +10 -3
  29. package/daemon/context-packs/help/manifest.yaml +1 -1
  30. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  31. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +122 -17
  32. package/daemon/context-packs/reference/acp-agents.md +176 -2
  33. package/daemon/context-packs/reference/getting-started.md +23 -4
  34. package/daemon/context-packs/reference/manifest.yaml +4 -1
  35. package/daemon/context-packs/reference/rig-spec.md +64 -7
  36. package/daemon/context-packs/reference/tmux-servers.md +214 -0
  37. package/daemon/context-packs/reference/whats-new.md +484 -76
  38. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/core/cross-host-rig-commands/SKILL.md +7 -0
  45. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/core/openrig-skills/SKILL.md +1 -0
  52. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +90 -0
  62. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +10 -0
  63. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/openrig-user/SKILL.md +24 -8
  69. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  77. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  78. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  79. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  80. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  81. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  82. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  83. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  84. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  85. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  86. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  87. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  88. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  89. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  90. package/daemon/context-packs/skills/refocusing/SKILL.md +5 -0
  91. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  92. package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +39 -4
  93. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  94. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  95. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  96. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  97. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  98. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  99. package/daemon/dist/adapters/claude-code-adapter.d.ts +3 -1
  100. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  101. package/daemon/dist/adapters/claude-code-adapter.js +53 -12
  102. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  103. package/daemon/dist/adapters/claude-resume.d.ts +1 -1
  104. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  105. package/daemon/dist/adapters/claude-resume.js +17 -3
  106. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  107. package/daemon/dist/adapters/codex-resume.d.ts +3 -1
  108. package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
  109. package/daemon/dist/adapters/codex-resume.js +8 -4
  110. package/daemon/dist/adapters/codex-resume.js.map +1 -1
  111. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +6 -0
  112. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  113. package/daemon/dist/adapters/codex-runtime-adapter.js +49 -19
  114. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  115. package/daemon/dist/adapters/kernel-authority.d.ts +2 -4
  116. package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
  117. package/daemon/dist/adapters/kernel-authority.js +10 -41
  118. package/daemon/dist/adapters/kernel-authority.js.map +1 -1
  119. package/daemon/dist/adapters/openshell-podman-observer.d.ts.map +1 -1
  120. package/daemon/dist/adapters/openshell-podman-observer.js +25 -20
  121. package/daemon/dist/adapters/openshell-podman-observer.js.map +1 -1
  122. package/daemon/dist/adapters/pi-resume.d.ts +4 -1
  123. package/daemon/dist/adapters/pi-resume.d.ts.map +1 -1
  124. package/daemon/dist/adapters/pi-resume.js +38 -9
  125. package/daemon/dist/adapters/pi-resume.js.map +1 -1
  126. package/daemon/dist/adapters/pi-runner-protocol.d.ts +4 -0
  127. package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
  128. package/daemon/dist/adapters/pi-runner-protocol.js +7 -0
  129. package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
  130. package/daemon/dist/adapters/pi-runner.d.ts +5 -0
  131. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  132. package/daemon/dist/adapters/pi-runner.js +79 -8
  133. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  134. package/daemon/dist/adapters/pi-runtime-adapter.d.ts +6 -0
  135. package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
  136. package/daemon/dist/adapters/pi-runtime-adapter.js +58 -23
  137. package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
  138. package/daemon/dist/adapters/tmux-control.d.ts +32 -1
  139. package/daemon/dist/adapters/tmux-control.d.ts.map +1 -1
  140. package/daemon/dist/adapters/tmux-control.js +149 -9
  141. package/daemon/dist/adapters/tmux-control.js.map +1 -1
  142. package/daemon/dist/adapters/tmux-server.d.ts +9 -0
  143. package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
  144. package/daemon/dist/adapters/tmux-server.js +12 -0
  145. package/daemon/dist/adapters/tmux-server.js.map +1 -1
  146. package/daemon/dist/adapters/tmux.d.ts +21 -1
  147. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  148. package/daemon/dist/adapters/tmux.js +184 -14
  149. package/daemon/dist/adapters/tmux.js.map +1 -1
  150. package/daemon/dist/build-info.js +3 -3
  151. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  152. package/daemon/dist/db/all-migrations.js +10 -0
  153. package/daemon/dist/db/all-migrations.js.map +1 -1
  154. package/daemon/dist/db/migrations/150_node_launch_wrapper.d.ts +3 -0
  155. package/daemon/dist/db/migrations/150_node_launch_wrapper.d.ts.map +1 -0
  156. package/daemon/dist/db/migrations/150_node_launch_wrapper.js +5 -0
  157. package/daemon/dist/db/migrations/150_node_launch_wrapper.js.map +1 -0
  158. package/daemon/dist/db/migrations/151_pi_account_switches.d.ts +4 -0
  159. package/daemon/dist/db/migrations/151_pi_account_switches.d.ts.map +1 -0
  160. package/daemon/dist/db/migrations/151_pi_account_switches.js +44 -0
  161. package/daemon/dist/db/migrations/151_pi_account_switches.js.map +1 -0
  162. package/daemon/dist/db/migrations/152_workflow_instance_spec.d.ts +8 -0
  163. package/daemon/dist/db/migrations/152_workflow_instance_spec.d.ts.map +1 -0
  164. package/daemon/dist/db/migrations/152_workflow_instance_spec.js +13 -0
  165. package/daemon/dist/db/migrations/152_workflow_instance_spec.js.map +1 -0
  166. package/daemon/dist/db/migrations/153_events_retention_marks.d.ts +7 -0
  167. package/daemon/dist/db/migrations/153_events_retention_marks.d.ts.map +1 -0
  168. package/daemon/dist/db/migrations/153_events_retention_marks.js +17 -0
  169. package/daemon/dist/db/migrations/153_events_retention_marks.js.map +1 -0
  170. package/daemon/dist/db/migrations/154_workflow_instance_root_objective.d.ts +7 -0
  171. package/daemon/dist/db/migrations/154_workflow_instance_root_objective.d.ts.map +1 -0
  172. package/daemon/dist/db/migrations/154_workflow_instance_root_objective.js +11 -0
  173. package/daemon/dist/db/migrations/154_workflow_instance_root_objective.js.map +1 -0
  174. package/daemon/dist/domain/activity-taxonomy.d.ts +9 -0
  175. package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
  176. package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
  177. package/daemon/dist/domain/agent-activity-store.d.ts +14 -0
  178. package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
  179. package/daemon/dist/domain/agent-activity-store.js +33 -0
  180. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  181. package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
  182. package/daemon/dist/domain/agent-manifest.js +47 -9
  183. package/daemon/dist/domain/agent-manifest.js.map +1 -1
  184. package/daemon/dist/domain/agent-resolver.d.ts +8 -0
  185. package/daemon/dist/domain/agent-resolver.d.ts.map +1 -1
  186. package/daemon/dist/domain/agent-resolver.js +6 -1
  187. package/daemon/dist/domain/agent-resolver.js.map +1 -1
  188. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +55 -3
  189. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  190. package/daemon/dist/domain/claude-compaction-enforcer.js +339 -31
  191. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  192. package/daemon/dist/domain/claude-managed-launch.d.ts +2 -0
  193. package/daemon/dist/domain/claude-managed-launch.d.ts.map +1 -1
  194. package/daemon/dist/domain/claude-managed-launch.js +12 -2
  195. package/daemon/dist/domain/claude-managed-launch.js.map +1 -1
  196. package/daemon/dist/domain/compaction-restore-notice.d.ts +1 -1
  197. package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
  198. package/daemon/dist/domain/compaction-restore-notice.js +2 -1
  199. package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
  200. package/daemon/dist/domain/context-monitor.d.ts.map +1 -1
  201. package/daemon/dist/domain/context-monitor.js +3 -0
  202. package/daemon/dist/domain/context-monitor.js.map +1 -1
  203. package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
  204. package/daemon/dist/domain/context-usage-store.js +10 -1
  205. package/daemon/dist/domain/context-usage-store.js.map +1 -1
  206. package/daemon/dist/domain/desired-claude-activity-hooks.d.ts +4 -3
  207. package/daemon/dist/domain/desired-claude-activity-hooks.d.ts.map +1 -1
  208. package/daemon/dist/domain/desired-claude-activity-hooks.js +49 -15
  209. package/daemon/dist/domain/desired-claude-activity-hooks.js.map +1 -1
  210. package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
  211. package/daemon/dist/domain/draft-aware-delivery.js +5 -1
  212. package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
  213. package/daemon/dist/domain/event-bus.d.ts +31 -0
  214. package/daemon/dist/domain/event-bus.d.ts.map +1 -1
  215. package/daemon/dist/domain/event-bus.js +88 -2
  216. package/daemon/dist/domain/event-bus.js.map +1 -1
  217. package/daemon/dist/domain/execution-view.d.ts +9 -0
  218. package/daemon/dist/domain/execution-view.d.ts.map +1 -1
  219. package/daemon/dist/domain/execution-view.js +91 -50
  220. package/daemon/dist/domain/execution-view.js.map +1 -1
  221. package/daemon/dist/domain/gateway/connections-projection.d.ts +13 -1
  222. package/daemon/dist/domain/gateway/connections-projection.d.ts.map +1 -1
  223. package/daemon/dist/domain/gateway/connections-projection.js +38 -10
  224. package/daemon/dist/domain/gateway/connections-projection.js.map +1 -1
  225. package/daemon/dist/domain/gateway/dispatcher.d.ts +2 -0
  226. package/daemon/dist/domain/gateway/dispatcher.d.ts.map +1 -1
  227. package/daemon/dist/domain/gateway/dispatcher.js +14 -1
  228. package/daemon/dist/domain/gateway/dispatcher.js.map +1 -1
  229. package/daemon/dist/domain/gateway/gateway-subsystem.d.ts +2 -0
  230. package/daemon/dist/domain/gateway/gateway-subsystem.d.ts.map +1 -1
  231. package/daemon/dist/domain/gateway/gateway-subsystem.js +1 -0
  232. package/daemon/dist/domain/gateway/gateway-subsystem.js.map +1 -1
  233. package/daemon/dist/domain/gateway/human-readiness.d.ts +7 -0
  234. package/daemon/dist/domain/gateway/human-readiness.d.ts.map +1 -1
  235. package/daemon/dist/domain/gateway/human-readiness.js +45 -0
  236. package/daemon/dist/domain/gateway/human-readiness.js.map +1 -1
  237. package/daemon/dist/domain/gateway/human-registry.d.ts +23 -3
  238. package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
  239. package/daemon/dist/domain/gateway/human-registry.js +66 -34
  240. package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
  241. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
  242. package/daemon/dist/domain/gateway/operator-delivery-engine.js +8 -2
  243. package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
  244. package/daemon/dist/domain/gateway/relay-config.d.ts +80 -0
  245. package/daemon/dist/domain/gateway/relay-config.d.ts.map +1 -0
  246. package/daemon/dist/domain/gateway/relay-config.js +290 -0
  247. package/daemon/dist/domain/gateway/relay-config.js.map +1 -0
  248. package/daemon/dist/domain/gateway/relay-inbound.d.ts +74 -0
  249. package/daemon/dist/domain/gateway/relay-inbound.d.ts.map +1 -0
  250. package/daemon/dist/domain/gateway/relay-inbound.js +739 -0
  251. package/daemon/dist/domain/gateway/relay-inbound.js.map +1 -0
  252. package/daemon/dist/domain/gateway/relay-outbound.d.ts +215 -0
  253. package/daemon/dist/domain/gateway/relay-outbound.d.ts.map +1 -0
  254. package/daemon/dist/domain/gateway/relay-outbound.js +770 -0
  255. package/daemon/dist/domain/gateway/relay-outbound.js.map +1 -0
  256. package/daemon/dist/domain/gateway/slack/inbound.d.ts +4 -0
  257. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  258. package/daemon/dist/domain/gateway/slack/inbound.js +14 -2
  259. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  260. package/daemon/dist/domain/gateway/slack/open-asks.d.ts.map +1 -1
  261. package/daemon/dist/domain/gateway/slack/open-asks.js +14 -1
  262. package/daemon/dist/domain/gateway/slack/open-asks.js.map +1 -1
  263. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  264. package/daemon/dist/domain/gateway/slack/slack-subsystem.js +225 -32
  265. package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  266. package/daemon/dist/domain/hosts/pairing-ask.d.ts +10 -0
  267. package/daemon/dist/domain/hosts/pairing-ask.d.ts.map +1 -0
  268. package/daemon/dist/domain/hosts/pairing-ask.js +9 -0
  269. package/daemon/dist/domain/hosts/pairing-ask.js.map +1 -0
  270. package/daemon/dist/domain/launch-wrapper.d.ts +28 -0
  271. package/daemon/dist/domain/launch-wrapper.d.ts.map +1 -0
  272. package/daemon/dist/domain/launch-wrapper.js +93 -0
  273. package/daemon/dist/domain/launch-wrapper.js.map +1 -0
  274. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +1 -1
  275. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  276. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +85 -28
  277. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  278. package/daemon/dist/domain/model-divergence/current-model-reader.d.ts.map +1 -1
  279. package/daemon/dist/domain/model-divergence/current-model-reader.js +14 -3
  280. package/daemon/dist/domain/model-divergence/current-model-reader.js.map +1 -1
  281. package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
  282. package/daemon/dist/domain/native-process-lineage.js +32 -9
  283. package/daemon/dist/domain/native-process-lineage.js.map +1 -1
  284. package/daemon/dist/domain/native-resume-probe.d.ts +5 -0
  285. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  286. package/daemon/dist/domain/native-resume-probe.js +5 -0
  287. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  288. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  289. package/daemon/dist/domain/node-inventory.js +7 -0
  290. package/daemon/dist/domain/node-inventory.js.map +1 -1
  291. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  292. package/daemon/dist/domain/node-launcher.js +9 -2
  293. package/daemon/dist/domain/node-launcher.js.map +1 -1
  294. package/daemon/dist/domain/outbox-handler.d.ts +53 -3
  295. package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
  296. package/daemon/dist/domain/outbox-handler.js +101 -6
  297. package/daemon/dist/domain/outbox-handler.js.map +1 -1
  298. package/daemon/dist/domain/parent-session-env.d.ts +2 -1
  299. package/daemon/dist/domain/parent-session-env.d.ts.map +1 -1
  300. package/daemon/dist/domain/parent-session-env.js +9 -1
  301. package/daemon/dist/domain/parent-session-env.js.map +1 -1
  302. package/daemon/dist/domain/parked-query.d.ts +6 -0
  303. package/daemon/dist/domain/parked-query.d.ts.map +1 -1
  304. package/daemon/dist/domain/parked-query.js +1 -0
  305. package/daemon/dist/domain/parked-query.js.map +1 -1
  306. package/daemon/dist/domain/permission-stop-observation.d.ts +50 -0
  307. package/daemon/dist/domain/permission-stop-observation.d.ts.map +1 -0
  308. package/daemon/dist/domain/permission-stop-observation.js +163 -0
  309. package/daemon/dist/domain/permission-stop-observation.js.map +1 -0
  310. package/daemon/dist/domain/pi-account-state.d.ts +6 -0
  311. package/daemon/dist/domain/pi-account-state.d.ts.map +1 -0
  312. package/daemon/dist/domain/pi-account-state.js +14 -0
  313. package/daemon/dist/domain/pi-account-state.js.map +1 -0
  314. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +6 -0
  315. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
  316. package/daemon/dist/domain/policies/parked-owner-consumer.js +10 -1
  317. package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
  318. package/daemon/dist/domain/policies/quiet-release.d.ts.map +1 -1
  319. package/daemon/dist/domain/policies/quiet-release.js +6 -3
  320. package/daemon/dist/domain/policies/quiet-release.js.map +1 -1
  321. package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
  322. package/daemon/dist/domain/profile-resolver.js +3 -0
  323. package/daemon/dist/domain/profile-resolver.js.map +1 -1
  324. package/daemon/dist/domain/projection-planner.d.ts +4 -1
  325. package/daemon/dist/domain/projection-planner.d.ts.map +1 -1
  326. package/daemon/dist/domain/projection-planner.js +3 -0
  327. package/daemon/dist/domain/projection-planner.js.map +1 -1
  328. package/daemon/dist/domain/queue-pickup.d.ts +20 -1
  329. package/daemon/dist/domain/queue-pickup.d.ts.map +1 -1
  330. package/daemon/dist/domain/queue-pickup.js +38 -6
  331. package/daemon/dist/domain/queue-pickup.js.map +1 -1
  332. package/daemon/dist/domain/queue-recovery.d.ts +19 -0
  333. package/daemon/dist/domain/queue-recovery.d.ts.map +1 -1
  334. package/daemon/dist/domain/queue-recovery.js +80 -2
  335. package/daemon/dist/domain/queue-recovery.js.map +1 -1
  336. package/daemon/dist/domain/queue-repository.d.ts +81 -10
  337. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  338. package/daemon/dist/domain/queue-repository.js +381 -48
  339. package/daemon/dist/domain/queue-repository.js.map +1 -1
  340. package/daemon/dist/domain/queue-retention.d.ts +68 -0
  341. package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
  342. package/daemon/dist/domain/queue-retention.js +133 -0
  343. package/daemon/dist/domain/queue-retention.js.map +1 -1
  344. package/daemon/dist/domain/queue-stuck-sweep.d.ts +22 -1
  345. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  346. package/daemon/dist/domain/queue-stuck-sweep.js +586 -157
  347. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  348. package/daemon/dist/domain/queue-transition-log.d.ts +49 -1
  349. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  350. package/daemon/dist/domain/queue-transition-log.js +216 -3
  351. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  352. package/daemon/dist/domain/queue-waiting.d.ts +1 -1
  353. package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
  354. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  355. package/daemon/dist/domain/queue-wake-ladder.js +7 -2
  356. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  357. package/daemon/dist/domain/quiet-hold-custody.d.ts.map +1 -1
  358. package/daemon/dist/domain/quiet-hold-custody.js +7 -3
  359. package/daemon/dist/domain/quiet-hold-custody.js.map +1 -1
  360. package/daemon/dist/domain/restore-check-service.d.ts +1 -0
  361. package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
  362. package/daemon/dist/domain/restore-check-service.js +7 -2
  363. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  364. package/daemon/dist/domain/restore-orchestrator.d.ts +13 -2
  365. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  366. package/daemon/dist/domain/restore-orchestrator.js +63 -26
  367. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  368. package/daemon/dist/domain/rig-repository.d.ts +3 -0
  369. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  370. package/daemon/dist/domain/rig-repository.js +46 -1
  371. package/daemon/dist/domain/rig-repository.js.map +1 -1
  372. package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
  373. package/daemon/dist/domain/rigspec-codec.js +4 -0
  374. package/daemon/dist/domain/rigspec-codec.js.map +1 -1
  375. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  376. package/daemon/dist/domain/rigspec-exporter.js +5 -0
  377. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  378. package/daemon/dist/domain/rigspec-instantiator.d.ts +20 -2
  379. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  380. package/daemon/dist/domain/rigspec-instantiator.js +76 -20
  381. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  382. package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
  383. package/daemon/dist/domain/rigspec-preflight.js +13 -1
  384. package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
  385. package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  386. package/daemon/dist/domain/rigspec-schema.js +26 -1
  387. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  388. package/daemon/dist/domain/runtime-adapter.d.ts +1 -0
  389. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  390. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  391. package/daemon/dist/domain/runtime-switch-materials.d.ts +1 -1
  392. package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -1
  393. package/daemon/dist/domain/runtime-switch-materials.js +2 -2
  394. package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
  395. package/daemon/dist/domain/seat-activity-service.d.ts +38 -1
  396. package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
  397. package/daemon/dist/domain/seat-activity-service.js +59 -1
  398. package/daemon/dist/domain/seat-activity-service.js.map +1 -1
  399. package/daemon/dist/domain/seat-attention-reconciler.d.ts +13 -0
  400. package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
  401. package/daemon/dist/domain/seat-attention-reconciler.js +45 -1
  402. package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
  403. package/daemon/dist/domain/seat-handover-service.d.ts +1 -0
  404. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  405. package/daemon/dist/domain/seat-handover-service.js +38 -11
  406. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  407. package/daemon/dist/domain/seat-launch-environment.d.ts +10 -0
  408. package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
  409. package/daemon/dist/domain/seat-launch-environment.js +62 -15
  410. package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
  411. package/daemon/dist/domain/seat-lifecycle-service.d.ts +3 -0
  412. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  413. package/daemon/dist/domain/seat-lifecycle-service.js +30 -8
  414. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  415. package/daemon/dist/domain/seat-restart-in-place.d.ts +2 -1
  416. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  417. package/daemon/dist/domain/seat-restart-in-place.js +22 -2
  418. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  419. package/daemon/dist/domain/seat-runtime-home.d.ts +4 -1
  420. package/daemon/dist/domain/seat-runtime-home.d.ts.map +1 -1
  421. package/daemon/dist/domain/seat-runtime-home.js +6 -4
  422. package/daemon/dist/domain/seat-runtime-home.js.map +1 -1
  423. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  424. package/daemon/dist/domain/seat-runtime-switch-service.js +75 -11
  425. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  426. package/daemon/dist/domain/seat-skill-storage.d.ts +57 -4
  427. package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -1
  428. package/daemon/dist/domain/seat-skill-storage.js +338 -8
  429. package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
  430. package/daemon/dist/domain/seat-status-service.d.ts +9 -2
  431. package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
  432. package/daemon/dist/domain/seat-status-service.js +17 -2
  433. package/daemon/dist/domain/seat-status-service.js.map +1 -1
  434. package/daemon/dist/domain/self-attach-service.d.ts.map +1 -1
  435. package/daemon/dist/domain/self-attach-service.js +11 -4
  436. package/daemon/dist/domain/self-attach-service.js.map +1 -1
  437. package/daemon/dist/domain/session-transport.d.ts +33 -4
  438. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  439. package/daemon/dist/domain/session-transport.js +225 -37
  440. package/daemon/dist/domain/session-transport.js.map +1 -1
  441. package/daemon/dist/domain/skill-catalog.d.ts +37 -0
  442. package/daemon/dist/domain/skill-catalog.d.ts.map +1 -1
  443. package/daemon/dist/domain/skill-catalog.js +152 -3
  444. package/daemon/dist/domain/skill-catalog.js.map +1 -1
  445. package/daemon/dist/domain/slices/slice-detail-projector.d.ts +1 -1
  446. package/daemon/dist/domain/slices/slice-detail-projector.d.ts.map +1 -1
  447. package/daemon/dist/domain/slices/slice-detail-projector.js +11 -13
  448. package/daemon/dist/domain/slices/slice-detail-projector.js.map +1 -1
  449. package/daemon/dist/domain/spec-validation-service.d.ts +1 -0
  450. package/daemon/dist/domain/spec-validation-service.d.ts.map +1 -1
  451. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  452. package/daemon/dist/domain/startup-orchestrator.js +7 -1
  453. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  454. package/daemon/dist/domain/successor-session-launcher.d.ts +1 -0
  455. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  456. package/daemon/dist/domain/successor-session-launcher.js +1 -0
  457. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  458. package/daemon/dist/domain/terminal/earlier-tile-attach-0711.d.ts +2 -0
  459. package/daemon/dist/domain/terminal/earlier-tile-attach-0711.d.ts.map +1 -0
  460. package/daemon/dist/domain/terminal/earlier-tile-attach-0711.js +146 -0
  461. package/daemon/dist/domain/terminal/earlier-tile-attach-0711.js.map +1 -0
  462. package/daemon/dist/domain/terminal/earlier-tile-attach.d.ts +4 -0
  463. package/daemon/dist/domain/terminal/earlier-tile-attach.d.ts.map +1 -0
  464. package/daemon/dist/domain/terminal/earlier-tile-attach.js +131 -0
  465. package/daemon/dist/domain/terminal/earlier-tile-attach.js.map +1 -0
  466. package/daemon/dist/domain/terminal/herdr-follow-view.d.ts.map +1 -1
  467. package/daemon/dist/domain/terminal/herdr-follow-view.js +47 -17
  468. package/daemon/dist/domain/terminal/herdr-follow-view.js.map +1 -1
  469. package/daemon/dist/domain/terminal/herdr-viewer.d.ts +7 -4
  470. package/daemon/dist/domain/terminal/herdr-viewer.d.ts.map +1 -1
  471. package/daemon/dist/domain/terminal/herdr-viewer.js +105 -41
  472. package/daemon/dist/domain/terminal/herdr-viewer.js.map +1 -1
  473. package/daemon/dist/domain/terminal/terminal-following.js +3 -3
  474. package/daemon/dist/domain/terminal/terminal-following.js.map +1 -1
  475. package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
  476. package/daemon/dist/domain/terminal/terminal-service.js +16 -1
  477. package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
  478. package/daemon/dist/domain/terminal/tile-attach.d.ts +8 -1
  479. package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
  480. package/daemon/dist/domain/terminal/tile-attach.js +20 -50
  481. package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
  482. package/daemon/dist/domain/terminal/view-composer.js +1 -1
  483. package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
  484. package/daemon/dist/domain/tmux-server-selection.d.ts.map +1 -1
  485. package/daemon/dist/domain/tmux-server-selection.js +8 -2
  486. package/daemon/dist/domain/tmux-server-selection.js.map +1 -1
  487. package/daemon/dist/domain/types.d.ts +18 -1
  488. package/daemon/dist/domain/types.d.ts.map +1 -1
  489. package/daemon/dist/domain/types.js.map +1 -1
  490. package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
  491. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  492. package/daemon/dist/domain/user-settings/settings-store.js +52 -0
  493. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  494. package/daemon/dist/domain/view-event-bridge.js +1 -1
  495. package/daemon/dist/domain/view-event-bridge.js.map +1 -1
  496. package/daemon/dist/domain/view-projector.d.ts +4 -1
  497. package/daemon/dist/domain/view-projector.d.ts.map +1 -1
  498. package/daemon/dist/domain/view-projector.js +9 -4
  499. package/daemon/dist/domain/view-projector.js.map +1 -1
  500. package/daemon/dist/domain/wake-recovery.d.ts.map +1 -1
  501. package/daemon/dist/domain/wake-recovery.js +9 -2
  502. package/daemon/dist/domain/wake-recovery.js.map +1 -1
  503. package/daemon/dist/domain/workflow-exception-escalation.d.ts +3 -2
  504. package/daemon/dist/domain/workflow-exception-escalation.d.ts.map +1 -1
  505. package/daemon/dist/domain/workflow-exception-escalation.js +1 -1
  506. package/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
  507. package/daemon/dist/domain/workflow-instance-store.d.ts +8 -1
  508. package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
  509. package/daemon/dist/domain/workflow-instance-store.js +21 -3
  510. package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
  511. package/daemon/dist/domain/workflow-reconciliation.d.ts.map +1 -1
  512. package/daemon/dist/domain/workflow-reconciliation.js +2 -1
  513. package/daemon/dist/domain/workflow-reconciliation.js.map +1 -1
  514. package/daemon/dist/domain/workflow-runtime.d.ts +4 -1
  515. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  516. package/daemon/dist/domain/workflow-runtime.js +20 -7
  517. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  518. package/daemon/dist/domain/workflow-spec-cache.d.ts +24 -4
  519. package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
  520. package/daemon/dist/domain/workflow-spec-cache.js +87 -7
  521. package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
  522. package/daemon/dist/domain/workflow-spec-unregister.d.ts +36 -0
  523. package/daemon/dist/domain/workflow-spec-unregister.d.ts.map +1 -0
  524. package/daemon/dist/domain/workflow-spec-unregister.js +105 -0
  525. package/daemon/dist/domain/workflow-spec-unregister.js.map +1 -0
  526. package/daemon/dist/domain/workflow-types.d.ts +14 -0
  527. package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
  528. package/daemon/dist/index.d.ts +2 -1
  529. package/daemon/dist/index.d.ts.map +1 -1
  530. package/daemon/dist/index.js +23 -5
  531. package/daemon/dist/index.js.map +1 -1
  532. package/daemon/dist/learned-host-bindings-surface.d.ts +2 -0
  533. package/daemon/dist/learned-host-bindings-surface.d.ts.map +1 -0
  534. package/daemon/dist/learned-host-bindings-surface.js +4 -0
  535. package/daemon/dist/learned-host-bindings-surface.js.map +1 -0
  536. package/daemon/dist/middleware/auth-bearer-token.d.ts +2 -0
  537. package/daemon/dist/middleware/auth-bearer-token.d.ts.map +1 -1
  538. package/daemon/dist/middleware/auth-bearer-token.js +12 -8
  539. package/daemon/dist/middleware/auth-bearer-token.js.map +1 -1
  540. package/daemon/dist/routes/activity.d.ts.map +1 -1
  541. package/daemon/dist/routes/activity.js +59 -4
  542. package/daemon/dist/routes/activity.js.map +1 -1
  543. package/daemon/dist/routes/adapters.d.ts.map +1 -1
  544. package/daemon/dist/routes/adapters.js +4 -0
  545. package/daemon/dist/routes/adapters.js.map +1 -1
  546. package/daemon/dist/routes/compaction.js +3 -1
  547. package/daemon/dist/routes/compaction.js.map +1 -1
  548. package/daemon/dist/routes/events.js +4 -0
  549. package/daemon/dist/routes/events.js.map +1 -1
  550. package/daemon/dist/routes/gateway.d.ts +3 -0
  551. package/daemon/dist/routes/gateway.d.ts.map +1 -1
  552. package/daemon/dist/routes/gateway.js +58 -8
  553. package/daemon/dist/routes/gateway.js.map +1 -1
  554. package/daemon/dist/routes/hosts.d.ts.map +1 -1
  555. package/daemon/dist/routes/hosts.js +298 -35
  556. package/daemon/dist/routes/hosts.js.map +1 -1
  557. package/daemon/dist/routes/queue.d.ts.map +1 -1
  558. package/daemon/dist/routes/queue.js +10 -3
  559. package/daemon/dist/routes/queue.js.map +1 -1
  560. package/daemon/dist/routes/seat.d.ts.map +1 -1
  561. package/daemon/dist/routes/seat.js +8 -5
  562. package/daemon/dist/routes/seat.js.map +1 -1
  563. package/daemon/dist/routes/sessions.js +1 -1
  564. package/daemon/dist/routes/sessions.js.map +1 -1
  565. package/daemon/dist/routes/terminal-ws.d.ts +1 -0
  566. package/daemon/dist/routes/terminal-ws.d.ts.map +1 -1
  567. package/daemon/dist/routes/terminal-ws.js +1 -1
  568. package/daemon/dist/routes/terminal-ws.js.map +1 -1
  569. package/daemon/dist/routes/terminal.js +2 -2
  570. package/daemon/dist/routes/terminal.js.map +1 -1
  571. package/daemon/dist/routes/transport.js +1 -1
  572. package/daemon/dist/routes/transport.js.map +1 -1
  573. package/daemon/dist/routes/workflow.d.ts.map +1 -1
  574. package/daemon/dist/routes/workflow.js +24 -0
  575. package/daemon/dist/routes/workflow.js.map +1 -1
  576. package/daemon/dist/server.d.ts +2 -0
  577. package/daemon/dist/server.d.ts.map +1 -1
  578. package/daemon/dist/server.js +7 -2
  579. package/daemon/dist/server.js.map +1 -1
  580. package/daemon/dist/startup.d.ts.map +1 -1
  581. package/daemon/dist/startup.js +74 -17
  582. package/daemon/dist/startup.js.map +1 -1
  583. package/daemon/dist/terminal/TerminalSessionBroker.d.ts +18 -13
  584. package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
  585. package/daemon/dist/terminal/TerminalSessionBroker.js +113 -76
  586. package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
  587. package/daemon/dist/terminal/window-pin.d.ts +3 -3
  588. package/daemon/dist/terminal/window-pin.d.ts.map +1 -1
  589. package/daemon/dist/terminal/window-pin.js +2 -2
  590. package/daemon/dist/terminal/window-pin.js.map +1 -1
  591. package/daemon/docs/reference/acp-agents.md +176 -2
  592. package/daemon/docs/reference/agent-spec.md +73 -6
  593. package/daemon/docs/reference/agent-startup-guide.md +28 -0
  594. package/daemon/docs/reference/agent-state-taxonomy.md +7 -0
  595. package/daemon/docs/reference/author-contracts.md +1 -1
  596. package/daemon/docs/reference/community-harness-examples/dsh/dsh.yaml +2 -2
  597. package/daemon/docs/reference/daemon-http-clients.md +16 -7
  598. package/daemon/docs/reference/gateway-participants.md +4 -1
  599. package/daemon/docs/reference/gateway-relay.md +239 -0
  600. package/daemon/docs/reference/getting-started.md +23 -4
  601. package/daemon/docs/reference/harness-runner-contract.md +20 -3
  602. package/daemon/docs/reference/hosted-members.md +38 -1
  603. package/daemon/docs/reference/project-workspace.md +4 -0
  604. package/daemon/docs/reference/quickstart.md +1 -1
  605. package/daemon/docs/reference/reconstructions.md +90 -0
  606. package/daemon/docs/reference/rig-spec.md +64 -7
  607. package/daemon/docs/reference/seat-delivery.md +83 -0
  608. package/daemon/docs/reference/slack-app-setup.md +1 -2
  609. package/daemon/docs/reference/telemetry.md +64 -0
  610. package/daemon/docs/reference/terminal-sessions.md +88 -26
  611. package/daemon/docs/reference/tmux-servers.md +48 -0
  612. package/daemon/docs/reference/whats-new.md +484 -76
  613. package/daemon/specs/agents/shared/skills/core/cross-host-rig-commands/SKILL.md +7 -0
  614. package/daemon/specs/agents/shared/skills/core/openrig-skills/SKILL.md +1 -0
  615. package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +90 -0
  616. package/dist/acp/agent-server.d.ts +126 -0
  617. package/dist/acp/agent-server.d.ts.map +1 -0
  618. package/dist/acp/agent-server.js +449 -0
  619. package/dist/acp/agent-server.js.map +1 -0
  620. package/dist/acp/connector.d.ts +27 -1
  621. package/dist/acp/connector.d.ts.map +1 -1
  622. package/dist/acp/connector.js +38 -5
  623. package/dist/acp/connector.js.map +1 -1
  624. package/dist/acp/json-rpc-stdio.d.ts +24 -10
  625. package/dist/acp/json-rpc-stdio.d.ts.map +1 -1
  626. package/dist/acp/json-rpc-stdio.js +58 -36
  627. package/dist/acp/json-rpc-stdio.js.map +1 -1
  628. package/dist/acp/run-processes.d.ts +3 -2
  629. package/dist/acp/run-processes.d.ts.map +1 -1
  630. package/dist/acp/run-processes.js +4 -3
  631. package/dist/acp/run-processes.js.map +1 -1
  632. package/dist/bin-wrapper.d.ts.map +1 -1
  633. package/dist/bin-wrapper.js +3 -1
  634. package/dist/bin-wrapper.js.map +1 -1
  635. package/dist/build-info.js +3 -3
  636. package/dist/client.d.ts +4 -0
  637. package/dist/client.d.ts.map +1 -1
  638. package/dist/client.js +7 -0
  639. package/dist/client.js.map +1 -1
  640. package/dist/commands/acp.d.ts +16 -0
  641. package/dist/commands/acp.d.ts.map +1 -1
  642. package/dist/commands/acp.js +191 -4
  643. package/dist/commands/acp.js.map +1 -1
  644. package/dist/commands/agent.d.ts.map +1 -1
  645. package/dist/commands/agent.js +3 -0
  646. package/dist/commands/agent.js.map +1 -1
  647. package/dist/commands/attach.js +1 -1
  648. package/dist/commands/attach.js.map +1 -1
  649. package/dist/commands/broadcast.js +4 -0
  650. package/dist/commands/broadcast.js.map +1 -1
  651. package/dist/commands/capture.js +6 -6
  652. package/dist/commands/capture.js.map +1 -1
  653. package/dist/commands/compact.d.ts.map +1 -1
  654. package/dist/commands/compact.js +14 -2
  655. package/dist/commands/compact.js.map +1 -1
  656. package/dist/commands/config.d.ts.map +1 -1
  657. package/dist/commands/config.js +42 -6
  658. package/dist/commands/config.js.map +1 -1
  659. package/dist/commands/context-reconstruction.d.ts +5 -0
  660. package/dist/commands/context-reconstruction.d.ts.map +1 -0
  661. package/dist/commands/context-reconstruction.js +69 -0
  662. package/dist/commands/context-reconstruction.js.map +1 -0
  663. package/dist/commands/context.d.ts.map +1 -1
  664. package/dist/commands/context.js +2 -0
  665. package/dist/commands/context.js.map +1 -1
  666. package/dist/commands/daemon.d.ts.map +1 -1
  667. package/dist/commands/daemon.js +5 -2
  668. package/dist/commands/daemon.js.map +1 -1
  669. package/dist/commands/doctor.d.ts +1 -1
  670. package/dist/commands/doctor.d.ts.map +1 -1
  671. package/dist/commands/doctor.js +97 -7
  672. package/dist/commands/doctor.js.map +1 -1
  673. package/dist/commands/exec.d.ts +102 -0
  674. package/dist/commands/exec.d.ts.map +1 -0
  675. package/dist/commands/exec.js +562 -0
  676. package/dist/commands/exec.js.map +1 -0
  677. package/dist/commands/gateway.d.ts.map +1 -1
  678. package/dist/commands/gateway.js +15 -7
  679. package/dist/commands/gateway.js.map +1 -1
  680. package/dist/commands/host.d.ts.map +1 -1
  681. package/dist/commands/host.js +59 -12
  682. package/dist/commands/host.js.map +1 -1
  683. package/dist/commands/mcp.d.ts.map +1 -1
  684. package/dist/commands/mcp.js +29 -5
  685. package/dist/commands/mcp.js.map +1 -1
  686. package/dist/commands/provider.d.ts.map +1 -1
  687. package/dist/commands/provider.js +4 -1
  688. package/dist/commands/provider.js.map +1 -1
  689. package/dist/commands/ps.d.ts +2 -0
  690. package/dist/commands/ps.d.ts.map +1 -1
  691. package/dist/commands/ps.js +3 -1
  692. package/dist/commands/ps.js.map +1 -1
  693. package/dist/commands/queue.d.ts +3 -0
  694. package/dist/commands/queue.d.ts.map +1 -1
  695. package/dist/commands/queue.js +203 -67
  696. package/dist/commands/queue.js.map +1 -1
  697. package/dist/commands/roster.d.ts +1 -1
  698. package/dist/commands/roster.d.ts.map +1 -1
  699. package/dist/commands/roster.js +14 -2
  700. package/dist/commands/roster.js.map +1 -1
  701. package/dist/commands/seat.d.ts.map +1 -1
  702. package/dist/commands/seat.js +48 -5
  703. package/dist/commands/seat.js.map +1 -1
  704. package/dist/commands/send.d.ts.map +1 -1
  705. package/dist/commands/send.js +7 -11
  706. package/dist/commands/send.js.map +1 -1
  707. package/dist/commands/slack.d.ts.map +1 -1
  708. package/dist/commands/slack.js +2 -0
  709. package/dist/commands/slack.js.map +1 -1
  710. package/dist/commands/stream.d.ts.map +1 -1
  711. package/dist/commands/stream.js +24 -1
  712. package/dist/commands/stream.js.map +1 -1
  713. package/dist/commands/terminal.js +1 -1
  714. package/dist/commands/workflow-render.d.ts +4 -0
  715. package/dist/commands/workflow-render.d.ts.map +1 -1
  716. package/dist/commands/workflow-render.js +7 -0
  717. package/dist/commands/workflow-render.js.map +1 -1
  718. package/dist/commands/workflow.d.ts.map +1 -1
  719. package/dist/commands/workflow.js +69 -1
  720. package/dist/commands/workflow.js.map +1 -1
  721. package/dist/config-store.d.ts +9 -1
  722. package/dist/config-store.d.ts.map +1 -1
  723. package/dist/config-store.js +57 -3
  724. package/dist/config-store.js.map +1 -1
  725. package/dist/cross-host-target.d.ts +2 -0
  726. package/dist/cross-host-target.d.ts.map +1 -1
  727. package/dist/cross-host-target.js +1 -1
  728. package/dist/cross-host-target.js.map +1 -1
  729. package/dist/daemon-lifecycle.d.ts +2 -0
  730. package/dist/daemon-lifecycle.d.ts.map +1 -1
  731. package/dist/daemon-lifecycle.js +38 -5
  732. package/dist/daemon-lifecycle.js.map +1 -1
  733. package/dist/daemon-reachability.d.ts +1 -1
  734. package/dist/daemon-reachability.d.ts.map +1 -1
  735. package/dist/daemon-reachability.js +4 -2
  736. package/dist/daemon-reachability.js.map +1 -1
  737. package/dist/index.d.ts +2 -0
  738. package/dist/index.d.ts.map +1 -1
  739. package/dist/index.js +2 -0
  740. package/dist/index.js.map +1 -1
  741. package/dist/lazy-program.d.ts.map +1 -1
  742. package/dist/lazy-program.js +1 -0
  743. package/dist/lazy-program.js.map +1 -1
  744. package/dist/lib/reconstruction-reader.d.ts +122 -0
  745. package/dist/lib/reconstruction-reader.d.ts.map +1 -0
  746. package/dist/lib/reconstruction-reader.js +481 -0
  747. package/dist/lib/reconstruction-reader.js.map +1 -0
  748. package/dist/lib/work-install.d.ts +28 -0
  749. package/dist/lib/work-install.d.ts.map +1 -1
  750. package/dist/lib/work-install.js +80 -20
  751. package/dist/lib/work-install.js.map +1 -1
  752. package/dist/mcp-http.d.ts +7 -0
  753. package/dist/mcp-http.d.ts.map +1 -1
  754. package/dist/mcp-http.js +30 -6
  755. package/dist/mcp-http.js.map +1 -1
  756. package/dist/mcp-server.d.ts +33 -3
  757. package/dist/mcp-server.d.ts.map +1 -1
  758. package/dist/mcp-server.js +443 -52
  759. package/dist/mcp-server.js.map +1 -1
  760. package/dist/queue-artifact.d.ts +57 -0
  761. package/dist/queue-artifact.d.ts.map +1 -0
  762. package/dist/queue-artifact.js +70 -0
  763. package/dist/queue-artifact.js.map +1 -0
  764. package/dist/queue-receipt.d.ts.map +1 -1
  765. package/dist/queue-receipt.js +4 -3
  766. package/dist/queue-receipt.js.map +1 -1
  767. package/dist/system-preflight.d.ts.map +1 -1
  768. package/dist/system-preflight.js +15 -7
  769. package/dist/system-preflight.js.map +1 -1
  770. package/dist/terminal-window.d.ts.map +1 -1
  771. package/dist/terminal-window.js +13 -10
  772. package/dist/terminal-window.js.map +1 -1
  773. package/package.json +1 -1
  774. package/tui/dist/attention/attention-model.d.ts +2 -1
  775. package/tui/dist/attention/attention-model.d.ts.map +1 -1
  776. package/tui/dist/attention/attention-model.js +18 -4
  777. package/tui/dist/attention/attention-model.js.map +1 -1
  778. package/tui/dist/config/config-model.d.ts.map +1 -1
  779. package/tui/dist/config/config-model.js +2 -1
  780. package/tui/dist/config/config-model.js.map +1 -1
  781. package/tui/dist/daemon-client.d.ts +7 -0
  782. package/tui/dist/daemon-client.d.ts.map +1 -1
  783. package/tui/dist/daemon-client.js +19 -5
  784. package/tui/dist/daemon-client.js.map +1 -1
  785. package/tui/dist/demo-data.js +2 -2
  786. package/tui/dist/demo-data.js.map +1 -1
  787. package/tui/dist/main.js +5 -1
  788. package/tui/dist/main.js.map +1 -1
  789. package/ui/dist/assets/index-BOYrLyfQ.js +623 -0
  790. package/ui/dist/assets/index-DqSRu4OY.css +32 -0
  791. package/ui/dist/index.html +2 -2
  792. package/ui/dist/assets/index-BFOs3ejL.css +0 -32
  793. package/ui/dist/assets/index-CdkFwtld.js +0 -623
@@ -2,7 +2,7 @@
2
2
 
3
3
  Version: 0.2 (pod-aware)
4
4
  Last validated against code: 2026-10-07, at the 0.6.6 cut `2620dea8` (whole document at `fcaf1f8e`; changes to its sources since then checked)
5
- Source of truth: `packages/daemon/src/domain/rigspec-schema.ts`, `packages/daemon/src/domain/types.ts`, `packages/daemon/src/domain/startup-validation.ts`, `packages/daemon/src/domain/permission-policy/policy-ref.ts`, `packages/daemon/src/domain/profile-resolver.ts`, `packages/daemon/src/domain/rigspec-preflight.ts`, `packages/daemon/src/adapters/kernel-authority.ts`, `packages/daemon/src/domain/native-permission-store.ts`, `packages/daemon/src/domain/codex-team-workspace.ts`
5
+ Source of truth: `packages/daemon/src/domain/rigspec-schema.ts`, `packages/daemon/src/domain/types.ts`, `packages/daemon/src/domain/launch-wrapper.ts`, `packages/daemon/src/domain/startup-validation.ts`, `packages/daemon/src/domain/permission-policy/policy-ref.ts`, `packages/daemon/src/domain/profile-resolver.ts`, `packages/daemon/src/domain/rigspec-preflight.ts`, `packages/daemon/src/adapters/kernel-authority.ts`, `packages/daemon/src/domain/native-permission-store.ts`, `packages/daemon/src/domain/codex-team-workspace.ts`
6
6
 
7
7
  This is the canonical reference for the pod-aware RigSpec YAML format. Every field, validation rule, and default documented here was traced from the actual parser and validator code, not from prior documentation.
8
8
 
@@ -404,6 +404,22 @@ ask rules; help can prompt in that fallback. A helper that disappears or times o
404
404
  after launch cannot supply a decision, leaving Claude's remaining native rules
405
405
  in effect. The hook is a convenience policy, not a containment boundary.
406
406
 
407
+ Claude sessions launched with a named `team` or `kernel` hook policy read the
408
+ installed built-in lists on each Bash hook call. Replacing those files at the
409
+ same path changes the hook's lists on its next call; native inline allowances
410
+ remain as launched. Sessions launched with an encoded policy keep their launch
411
+ lists. A session retaining a versioned runtime path continues to use the files
412
+ at that path, so installing another version elsewhere does not change its hook.
413
+ This does not reload all permission settings in a running session.
414
+
415
+ An in-place rollback to a hook from before named policies has a different effect:
416
+ that helper cannot read `team` or `kernel` and returns no hook decision. Lifecycle
417
+ asks can then disappear under the native `Bash(rig:*)` allowance. Relaunch affected
418
+ Claude sessions before relying on those asks after such a rollback. Native
419
+ personal, project and managed restrictions are not removed. This applies when
420
+ the rollback replaces the hook at the path a running named-policy session uses;
421
+ it does not describe every rollback or sessions using a retained versioned path.
422
+
407
423
  Codex keeps `workspace-write` with its existing approval policy and receives the
408
424
  configured OpenRig workspace root plus its pod's shared state directory as
409
425
  additional writable directories. The team workspace preparer creates missing
@@ -548,7 +564,7 @@ or local settings. Managed settings aren't inspected. `rig export` writes the se
548
564
  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
549
565
  `claude-code` members and legacy flat nodes accept it, and there's no rig-level default.
550
566
 
551
- **Switching to an isolated account home.** A running Codex or Claude Code seat can change its native account home
567
+ **Switching to an isolated account home.** A running Codex, Claude Code or Pi seat can change its account home
552
568
  while staying in its rig:
553
569
 
554
570
  ```sh
@@ -560,7 +576,20 @@ rig seat set-runtime dev-impl@my-rig --runtime claude-code \
560
576
 
561
577
  The directory must already exist and contain the runtime's login or API settings. You choose the account and budget;
562
578
  OpenRig does not choose or create credentials. `--account-home` sets `CODEX_HOME` for Codex or `CLAUDE_CONFIG_DIR` for
563
- Claude Code before the successor starts.
579
+ Claude Code before the successor starts. For Pi, the account directory must contain a readable `auth.json`; OpenRig links
580
+ that file into a separate managed successor directory. The existing Pi process keeps its credentials and runner state
581
+ until the successor confirms. Pi account changes keep the current model and effort unless explicitly overridden.
582
+
583
+ ```sh
584
+ rig provider switch --seat pi-worker@my-rig --to-account work \
585
+ --account-home /home/me/accounts/pi-work --reason "Use the work account" --dry-run
586
+ # Run again without --dry-run to stage the successor and request its confirmation.
587
+ rig provider switch --seat pi-worker@my-rig --clear-account-home --reason "Return to configured login"
588
+ ```
589
+
590
+ Pi account changes work with or without `launch_wrapper`. The wrapper receives the successor's managed Pi directory;
591
+ it must preserve the selected credentials if you want OpenRig's account choice to apply. Switching a seat between Pi
592
+ and another runtime is not supported by this account-home feature.
564
593
 
565
594
  This switch starts a fresh conversation with a handover, even when the runtime stays the same. The existing
566
595
  subscription-login switch preserves the conversation. Once the successor confirms, OpenRig commits its home, runtime,
@@ -740,7 +769,7 @@ directory's `CLAUDE.md`, including blocks written by other rigs.
740
769
  | `id` | string | yes | — | Member identifier. Must not contain dots or `@`. Must be unique within the pod. |
741
770
  | `agent_ref` | string | yes | — | Reference to an AgentSpec. Must start with `local:` (relative) or `path:` (absolute). Exception: `builtin:terminal` for infrastructure nodes. |
742
771
  | `profile` | string | yes | — | Profile name from the referenced AgentSpec. Use `default` for the default profile. Exception: `none` for terminal nodes. |
743
- | `codex_config_profile` | string | no | — | Codex-only native profile passed as `-p <name>`; letters, numbers, `_`, `.`, `-`. Separate from the AgentSpec `profile`. With the normal launch mode, this replaces OpenRig's explicit workspace-write sandbox flag. A full-bypass policy instead emits danger-full-access and omits this profile argument. |
772
+ | `codex_config_profile` | string | no | — | Codex-only native profile passed as `-p <name>`; letters, numbers, `_`, `.`, `-`. Separate from the AgentSpec `profile`. With the normal launch mode, this replaces OpenRig's explicit workspace-write sandbox flag. A full-bypass policy instead emits danger-full-access and omits this profile argument. To keep the profile, put full access in the profile itself, or record a workspace-write or read-only `codex_permissions` envelope, which keeps it. |
744
773
  | `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). |
745
774
  | `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). |
746
775
  | `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`. |
@@ -750,6 +779,7 @@ directory's `CLAUDE.md`, including blocks written by other rigs.
750
779
  | `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. |
751
780
  | `advisor` | string | no | — | Claude-only Advisor model for this seat. Overrides the AgentSpec profile/default; blank or non-string values are ignored with an advisory. |
752
781
  | `claude_mcp` | `none` | no | normal loading | Claude members only. Disable MCP server loading for this agent on every launch and resume. Omit the field to keep Claude's normal configuration; see [Claude MCP loading](#claude-mcp-loading-runtime-claude-code). |
782
+ | `launch_wrapper` | string[] | no | — | Local built-in `pi`, `codex` and `claude-code` members only. Literal argument prefix applied to the native executable and its arguments on fresh launch, relaunch, rebuild, resume, fork, restore and handover; `[]` explicitly clears a stored wrapper when re-applying an authored spec, while omitting the key leaves an existing seat's stored choice unchanged. See [Launch wrapper](#launch-wrapper-runtime-pi-and-codex). |
753
783
  | `permission_policy` | string | no | — | Member-level permission policy; overrides the rig's. Not valid on terminal members. |
754
784
  | `env` | map | no | — | Launch environment for this seat, laid over the rig's `env`. Same rules as the rig-level field. Valid on terminal members too. See "Launch environment" below. |
755
785
  | `agent_file` | string | no | — | Claude members only. A Claude agent definition (a `.md` file with `name` in its frontmatter) for this seat. It's copied into the seat's own storage and launched as `--agent openrig:<name>`. A path beside the spec: no `..`, not absolute. |
@@ -887,14 +917,40 @@ This requires a Claude Code version that supports `--advisor`. OpenRig never wri
887
917
  choose different Advisors. When Advisor is unset, no flag is emitted and Claude's
888
918
  own defaults/settings apply. Other runtimes ignore this field.
889
919
 
920
+ ### Launch wrapper (`runtime: pi` and `codex`)
921
+
922
+ Set `launch_wrapper` on a local built-in `pi`, `codex` or `claude-code` member to prefix its native executable and arguments with a literal argv vector:
923
+
924
+ ```yaml
925
+ members:
926
+ - id: impl
927
+ agent_ref: local:agents/impl
928
+ profile: default
929
+ runtime: codex
930
+ cwd: .
931
+ launch_wrapper: ["launcher", "exec", "--profile", "seat-a", "--"]
932
+ ```
933
+
934
+ - **Scope and literal argv:** Local built-in `pi`, `codex` and `claude-code` members, including legacy flat nodes, support `launch_wrapper`; other runtimes reject it, including `[]`. Each fork uses its target member's own selection. Arguments are literal strings without NUL, CR or LF; spaces, quotes, metacharacters and empty non-executable arguments are preserved.
935
+ - **Executable resolution:** `launch_wrapper[0]` must be an absolute path or bare command name. Preflight and launch resolve it using the daemon's launch `PATH` and working directory, before adding the seat's `rig` bin directory. Relative paths containing `/`, aliases and functions are unsupported for the wrapper itself.
936
+ - **Native child and `exec` contract:** The wrapper prefixes the resolved Codex entry, prefixes the resolved Pi child executable inside the host runner, or prefixes the real Claude executable and native arguments. Managed Claude applies it after rebuilding the environment; pinned continuations retain their executable. The wrapper must `exec` its child in place, preserving working directory, environment, signals, exit status and TTY stdio (Claude/Codex) or RPC pipes (Pi). Supervising wrappers are unsupported.
937
+ - **Classic Claude lookup:** Wrapped classic launch supports bash, zsh, sh and dash and requires `command -v claude` to resolve to an executable file; aliases and functions refuse with `launch_wrapper unavailable; no agent started.` To keep custom flags or environment, put them in a `#!` script named `claude` on `PATH`; the wrapper runs that script ([#1477](https://github.com/mvschwarz/openrig/issues/1477)).
938
+ - **Fail-closed (never unwraps):** The selected wrapper applies across fresh launch, relaunch, rebuild, resume, fork, restore, handover and supported runtime switches. Invalid stored metadata, non-POSIX panes, unavailable wrapper support, missing session identity or an unusable wrapper refuses launch. Failures after dispatch remain visible in the pane or Pi runner's markers; OpenRig never runs unwrapped, including Pi's long-command (`launch_path_too_long`) host-runner retry.
939
+ - **Persistence and clear:** On new seats, absent or `launch_wrapper: []` stores no wrapper. Applying an authored spec to an existing seat retains the stored selection when absent, clears it with `launch_wrapper: []`, and replaces it with a non-empty array. Recreation/import uses the incoming spec; older snapshots preserve the current selection. First-start retry refuses wrapper changes. Runtime switches carry it to supported successors; validation occurs at execution. There is no live edit verb: change the spec and use the supported create/recreate/apply flow. Export and node inventory include the configured value.
940
+ - **Boundary:** An argv prefix is not proof of sandbox isolation, tooling availability, memory wiring or governance enforcement. Verify the wrapper and runtime independently.
941
+
890
942
  ### Pi (`runtime: pi`)
891
943
 
892
944
  `runtime: pi` launches the Pi coding agent (`pi --mode rpc`) through OpenRig's RPC runner.
893
945
 
894
- - **State:** Each seat uses `$OPENRIG_HOME/state/pi/<session>/agent` as its Pi agent directory, with `sessions/` beside it, instead of your default `~/.pi/agent`. The runner sets `PI_CODING_AGENT_DIR` to that directory. `<session>` is the seat's session name, unchanged; for a pod member it is `{podId}-{memberId}@{rigName}`. `$OPENRIG_HOME` defaults to `~/.openrig`. OpenRig creates these directories at launch and does not copy anything from `~/.pi/agent`.
946
+ - **State:** Each seat uses `$OPENRIG_HOME/state/pi/<session>/agent` as its Pi agent directory, with `sessions/` beside it, instead of your default `~/.pi/agent`. The runner sets `PI_CODING_AGENT_DIR` to that directory. `<session>` is the seat's session name, unchanged; for a pod member it is `{podId}-{memberId}@{rigName}`. `$OPENRIG_HOME` defaults to `~/.openrig`. OpenRig creates these directories at launch and does not copy anything from `~/.pi/agent`. A confirmed account switch moves the seat into an isolated `state/pi/account-switches/<generation>/<session>/` directory; subsequent launches and resumes use that committed directory.
895
947
  - **Thinking level:** A Pi seat's effort (the choice saved with `rig seat set-effort`, else the spec's `effort`) is sent to Pi as `--thinking <level>` on every managed launch and resume: fresh launch, successor and restore. Pi accepts `off`, `minimal`, `low`, `medium`, `high`, `xhigh` and `max`; OpenRig passes the value as written and does not translate it, so Codex's `none` is not mapped to `off`. Only a value of the shape `set-effort` accepts (a letter, then up to 31 letters, digits, `-` or `_`) is sent; any other spec value, such as one with a space or one that starts with `--`, is left out, and `rig seat effort` says so. An unfamiliar level gets an advisory (a warning from `set-effort`), never a refusal, and Pi itself ignores an unknown level with a warning and keeps the level it would use without the flag: a model suffix, the resumed session's level, or its default. With no effort resolved, no flag is sent. The effort wins over a model suffix, and the model string is never changed. `rig seat effort` reports the level sent at launch and, on Pi 0.99.0 or later, the `thinkingLevel` Pi records on this launch's latest successful assistant turn (error and aborted turns are skipped); that is the session's level after Pi's own cap, not proof the provider applied it, and it is shown apart from the level sent when they differ. On older Pi it is NOT VERIFIED. Without an effort, you can still set the level as a model suffix, for example `model: openrouter/x-ai/grok-4:high`. Pi first looks for a model whose id is the whole pin, and uses it when there is one, suffix included. Only when there is none does Pi read the suffix as the level and record the model without it. Any other suffix, such as OpenRouter's `:free`, stays part of the model id. The model-divergence check reads the pin literally when the seat's `models.json` defines a model with that exact id; otherwise it accepts the model with or without the suffix. If the seat's `models.json` can't be read, a pin with a suffix stays unchecked, with the usual warning, when the recorded model matches the whole pin or the pin without its suffix. A record that matches neither is reported.
896
- - **Custom models:** Pi reads `models.json` from its agent directory, so a seat reads `$OPENRIG_HOME/state/pi/<session>/agent/models.json`, not `~/.pi/agent/models.json`. Custom provider and model definitions for a seat go in that file. A seat that uses only providers Pi already includes does not need one. OpenRig does not create or write `models.json`.
897
- - **Credentials:** The Pi process receives only `PATH`, `HOME`, `USER`, `LOGNAME`, `SSH_AUTH_SOCK`, `TERM`, `LANG`, `LC_ALL`, `SHELL`, `TMPDIR`, a fixed set of OpenRig seat and instance variables, `PI_CODING_AGENT_DIR`, `PI_CODING_AGENT_SESSION_DIR`, and at most one provider key. That key is `OPENROUTER_API_KEY`, `ZAI_API_KEY`, `KIMI_API_KEY` or `MINIMAX_API_KEY`, passed only when it is set in the seat's environment and the seat's `model` is written as `openrouter/<id>`, `zai/<id>`, `kimi-coding/<id>` or `minimax/<id>`. Naming that variable in `recovery.provider_auth_env_allowlist` (empty by default) makes the daemon add it, when set in the daemon's environment, to the seat's launch environment. No other variable reaches Pi, including other providers' keys and a custom provider's own key variable.
948
+ - **Custom models:** Pi reads `models.json` from its agent directory, so a seat reads `$OPENRIG_HOME/state/pi/<session>/agent/models.json`, not `~/.pi/agent/models.json`. Custom provider and model definitions for a seat go in that file (or the corresponding committed account-switch directory after a switch). A seat that uses only providers Pi already includes does not need one. OpenRig does not create or write `models.json`.
949
+ - **Credentials:** The Pi process receives only `PATH`, `HOME`, `USER`, `LOGNAME`, `SSH_AUTH_SOCK`, `TERM`, `LANG`, `LC_ALL`, `SHELL`, `TMPDIR`, a fixed set of OpenRig seat and instance variables, `PI_CODING_AGENT_DIR`, `PI_CODING_AGENT_SESSION_DIR`, `NODE_OPTIONS` for the selected-account Node preload, and at most one provider key. That key is `OPENROUTER_API_KEY`, `ZAI_API_KEY`, `KIMI_API_KEY` or `MINIMAX_API_KEY`, passed only when it is set in the seat's environment and the seat's `model` is written as `openrouter/<id>`, `zai/<id>`, `kimi-coding/<id>` or `minimax/<id>`. Naming that variable in `recovery.provider_auth_env_allowlist` (empty by default) makes the daemon add it, when set in the daemon's environment, to the seat's launch environment. No other variable reaches Pi, including other providers' keys and a custom provider's own key variable.
950
+
951
+ - **Account homes:** Select an account with `rig provider switch --account-home`, or declare an absolute `PI_CODING_AGENT_DIR` in the seat’s `env:` as its configured account home; the persisted selection takes precedence. `~` is not expanded. A relative value is ignored for managed account selection (and reported by status), leaving the managed seat login in use when no persisted account is selected. The chosen directory must already contain a readable `auth.json`; env-only credentials and wrappers that create credentials later are outside this prepared-account path. Launches with neither a persisted selection nor a declared absolute account home retain their existing credential behaviour. The runner links that file into its managed agent directory before starting Pi, including launches through `launch_wrapper`; settings, models, extensions and sessions remain seat-local. Selected accounts use a Node preload shim that redirects only their auth-lock filesystem operations to the chosen account’s `auth.json.lock` pathname, matching direct Pi use even when the source `auth.json` is a symlink. The preload removes its own `NODE_OPTIONS` entry before Pi starts tools, preserving other Node options; descendants and unrelated agent directories keep their normal filesystem behaviour. This requires a Node-hosted Pi executable and a wrapper that preserves `NODE_OPTIONS`; compiled executables and wrappers that discard the preload are not covered. Removing the selection removes only the managed auth link, not the source account file. A missing account file stops the launch. Direct launch refuses to replace an existing seat-local login or an unmanaged auth link; use a confirmed account switch to preserve that login. An ambient pane-shell `PI_CODING_AGENT_DIR` does not select an account; only the resolved seat configuration or persisted account selection does. Persisted account selections survive resume and cannot be bypassed by the long-command fallback; explicit selections clear inherited provider-key overrides. Use `rig provider switch --account-home` or `--clear-account-home` to change an existing Pi seat through a confirmed successor with a fresh conversation and handover. The account reference and committed state directory survive daemon restart and resume; unconfirmed successors leave the old account and state intact. Clearing returns to the configured home, or the original managed seat login if no home was configured. Status reports a configured account home when present; without one, its home is null because Pi uses the managed seat directory rather than the operator's default login.
952
+
953
+ **Upgrade note for prepared accounts:** An existing built-in Pi seat that declares an absolute `PI_CODING_AGENT_DIR` now selects that home on fresh launch, restart, resume and restore, even without a stored account override. Before upgrading, either prepare a readable `auth.json` there or remove that declaration to keep the managed seat login. Env-only accounts and wrappers that create the file after Pi starts are not supported by this path. Migration 151 preserves switch history; it does not create or copy credentials, or rewrite existing seat declarations. Relative values remain available to community harnesses and are not globally removed.
898
954
 
899
955
  - **Extension dialogs:** The RPC runner shows extension `select`, `confirm`, `input` and `editor` requests in the pane and cancels them because the managed pane cannot answer them. The seat needs attention through the end of the turn, until a new agent run starts. Review the cancelled request and send an instruction the extension can complete without a dialog. Extension `notify` text is shown without raising attention or sending a response.
900
956
 
@@ -1302,6 +1358,7 @@ spec can pass `rig spec validate` and then fail at preflight or import. Run
1302
1358
  24. Startup action `idempotent` is a required boolean.
1303
1359
  25. Non-idempotent actions must not include `restore` in `applies_on`.
1304
1360
  26. `applies_on` values must be from: `fresh_start`, `restore`.
1361
+ 27. `launch_wrapper` is valid only on `pi`, `codex` and `claude-code` members (`[]` included); it must be an array of strings without NUL/CR/LF, and `launch_wrapper[0]` (when non-empty) must be an absolute path or a bare command name on the daemon `PATH`.
1305
1362
 
1306
1363
  ---
1307
1364
 
@@ -41,6 +41,69 @@ nothing to send later.
41
41
 
42
42
  ## Configure and inspect
43
43
 
44
+ ### Latest permission observation
45
+
46
+ `rig seat status <seat>` can show the latest observed harness permission request,
47
+ with a fixed tool descriptor, source time and actor category. This is one latest
48
+ observation across actors, not an aggregate of pending prompts. `request_observed`
49
+ leaves the displayed actor's pending state unknown. `completed` applies only to
50
+ that actor's later tool batch; other actors' pending state is still unknown. An
51
+ unavailable observation proves neither a permission stop nor the absence of a
52
+ waiting native prompt. With no observation, human status omits this section;
53
+ JSON keeps the explicit unavailable state. The JSON field is `permission_stop`,
54
+ and its `pending` value has the same observation-only scope.
55
+
56
+ An observation may also carry Claude's **suggested rules** as `suggested_rules`.
57
+ These are read-only evidence, not applied or approved, not guaranteed effective,
58
+ not the exact command, and not a complete list of dialog options. The supported
59
+ subset of [Claude's permission update schema](https://code.claude.com/docs/en/hooks#permission-update-entries)
60
+ is `addRules`, `replaceRules` and `removeRules`, preserving type, ordered rules
61
+ (`toolName`, optional `ruleContent`), behavior and destination exactly. Strings
62
+ are neither trimmed nor broadened; absent `ruleContent` remains distinct from
63
+ an empty string. Mode/directory updates and malformed entries are withheld.
64
+
65
+ The envelope distinguishes a missing native field from a present empty array;
66
+ `unsupported` and `size_cut` mark incomplete evidence. An older relay without
67
+ this field, or a failed formatter, is unavailable rather than proof of native
68
+ absence. Bounds are eight entries, sixteen rules per entry, 128 UTF-16 code
69
+ units per tool name, 2,048 per rule-content string, and 16,384 UTF-8 bytes of
70
+ serialized evidence. Oversized whole entries are dropped with `size_cut`,
71
+ never shortened into different plausible rules. Both producer and ingress
72
+ validate these bounds independently. Terminal JSON escapes controls and
73
+ nonprinting format/separator characters while preserving decoded string values;
74
+ its representation can expand, so the byte bound applies to stored/transported
75
+ evidence, not the entire formatted status output.
76
+
77
+ **Suggested rule strings can contain sensitive values.** The relay sends only
78
+ this bounded rule subset alongside the fixed descriptor. Rule content can itself
79
+ contain sensitive command-like text; raw `tool_input`, arguments outside that
80
+ suggestion, and provider reasons are not forwarded. It posts to `/api/activity/hooks` at the
81
+ configured `OPENRIG_URL` (or host/port), or the discovered endpoint in
82
+ `OPENRIG_HOME/activity-endpoint.json`. Both `GET /api/seat/status/:seatRef` and
83
+ `GET /api/seat/status/node/:nodeId` can return the evidence. The daemon adds no
84
+ event, log, queue or telemetry persistence for it; a caller can still capture
85
+ status output in a transcript or file. Evidence shares the observation's
86
+ five-minute lifetime and existing seat/actor limits, is discarded lazily on the
87
+ next observation/status read after expiry, and is lost on restart. No rule,
88
+ permission/configuration write, hook decision, edited input, prompt submission
89
+ or new attention/delivery behavior is produced.
90
+
91
+ Actor attribution is a convention derived from the [Claude hook schema](https://code.claude.com/docs/en/hooks#common-input-fields): an omitted or null `agent_id`
92
+ is treated as main, a valid ID identifies a subagent or in-process teammate, and
93
+ an invalid ID is dropped rather than inferred as main. The fixtures are synthetic;
94
+ no live PermissionRequest capture qualifies that convention on an installed native
95
+ version. A hook denial without a source-bound guard receipt has unknown origin.
96
+ This diagnostic adds no guard collector, permission decision or attention policy.
97
+
98
+ The new PermissionRequest diagnostic is optional for activity-hook readiness.
99
+ Every preexisting required event, relay asset and explicit hook-disable check
100
+ still applies. An older installed plugin at the same manifest version retains
101
+ its bytes and may not send this event: plugin-only delivery needs a future normal
102
+ maintainer release refresh, and managed delivery needs normal reprojection. A
103
+ manifest or green readiness check does not prove live hook execution. Raw tool
104
+ arguments and provider reason text are withheld; diagnostic evidence is bounded,
105
+ memory-only and expires after five minutes.
106
+
44
107
  ### Who may intervene
45
108
 
46
109
  `rig seat status <seat>` shows the seat's terminal interaction account alongside
@@ -173,6 +236,26 @@ false` and the protection reason, rather than claiming durable custody.
173
236
  Reading never sends. Retirement frees that record's active retention quota while
174
237
  preserving evidence; it does not deliver a message or close queue work.
175
238
 
239
+ A seat holds one message per sender, so one sender can't fill its held quota and
240
+ drop everyone else's messages. A sender's newest held message retires its earlier
241
+ ones at that seat into itself (`retired_by: outbox@system`, reason `coalesced into
242
+ <id>`), in every mode, `draft-aware` included. The newest names them: `rig seat
243
+ held-messages` shows `coalesced: { count, outboxIds }` on it, and each coalesced
244
+ record stays readable with `--id`. Held messages are never replayed, so this changes
245
+ no delivery. A `draft-aware` attempt takes its sender's place only once it settles
246
+ as held; one that is then delivered leaves the held messages as they are. A queue
247
+ wake to a `draft-aware` seat counts its sender's held message there as room, by the
248
+ same rule. At a full quota, a sender with nothing held there is still refused, and
249
+ nothing from another sender is touched. A committed wake is never refused, and the
250
+ sender's next held message coalesces it like any other. A message that settles as
251
+ held late, behind a newer held send, folds into that send's newest part and leaves
252
+ its other parts held. An urgent message coalesced under a routine one passes its
253
+ marking to the newest. Never coalesced: the other parts of the same send, a
254
+ watchdog's reminders (one per job), and an unattributed sender.
255
+
256
+ A backlog held before this change clears at that sender's next held message to the
257
+ seat, or at once with `rig seat retire-held-message`.
258
+
176
259
  ## Input evidence and outcomes
177
260
 
178
261
  The cursor-aware reader lives in `session-transport.ts` and shares the composer
@@ -349,8 +349,7 @@ decisions, and posts its own replies.
349
349
  - **Changing forwarding entries is not a drain or cancellation:** relays already retained keep
350
350
  their original host and remain visible in `rig slack status`, even after the last entry is
351
351
  removed. An enabled connector retries them; disabling it pauses retry without deleting them.
352
- Let relays finish before removing a forward entry. A zero dead-letter backlog alone does not
353
- prove they have drained: it does not count relay HTTP requests still in flight.
352
+ Let relays finish before removing a forward entry; `rig slack status` shows local in-flight attempts separately from retained records, but zero does not prove global quiescence.
354
353
  - **Who answered:** every post starts `From <seat> on <machine>`, using the machine's host id (set
355
354
  it with `host.name`).
356
355
  - **The hub's own channels** are handled on the hub, as before. A channel can be relayed to one
@@ -115,3 +115,67 @@ successful empty history. The CLI preserves the error body in JSON mode and exit
115
115
  1 for request errors, 2 for unavailable reads. Existing SSE and usage APIs retain
116
116
  their behavior. Collector deployment, exporters and durable store epochs are
117
117
  separate work.
118
+
119
+ ## Independent exporter mapping and limits
120
+
121
+ OpenRig's telemetry guarantee ends at the finite HTTP/CLI read envelope above. Any
122
+ projection of those finite reads (or of cached rig/node inventory) into
123
+ OpenTelemetry logs, custom metrics, or spans is defined and owned by an external
124
+ consumer or exporter—not guaranteed by OpenRig's core API.
125
+
126
+ The external OTLP exporter at `smota/openrig-telemetry` applies the following
127
+ exporter-specific mapping choices to OpenRig's source facts (other consumers may
128
+ make different choices):
129
+
130
+ - **Recorded queue-state intervals (not execution time)**: In OpenRig, queue
131
+ transition rows record state changes (`pending`, `in-progress`, `blocked`, and
132
+ departure states), not agent execution duration or model latency; the first
133
+ observation of an item has no prior boundary; repeated same-state rows remain
134
+ distinct source records; and any page carrying an ID-range or withheld-record gap
135
+ (`before_retained_floor`, `retained_sequence_gap`, `conflicting_transition_id`,
136
+ `record_byte_limit`, `historical_transitions_not_read`, truncated gap details, or
137
+ a boot/watermark discontinuity) cannot prove what happened in the missing range.
138
+ In `smota/openrig-telemetry`, the exporter pairs an entering state with a later
139
+ departure state to measure only the recorded interval between two observed rows
140
+ with valid, ordered UTC timestamps, suppresses or drops open intervals across gap
141
+ boundaries rather than inventing durations, and reports cumulative transition
142
+ counts only for rows observed from its checkpoint (including historical rows when
143
+ started with `start=retained`), never lifetime daemon totals.
144
+ - **No current-owner, seat, tenure, or native-session join**: In OpenRig's finite
145
+ API, the `queue-transitions` stream does not join transition rows to current seat
146
+ owners, mutable node or rig names, occupant tenures (`tenures`), or native
147
+ harness sessions, and it never selects queue bodies or transition notes; each
148
+ transition row does include `qitemId`, `actorSession`, `closureTarget`, and
149
+ `originalTimestamp`. In its exported OTLP output, `smota/openrig-telemetry`
150
+ chooses to emit derived queue spans as root/internal observations without
151
+ invented parent/child trace hierarchy, cross-stream causal links, or `gen_ai.*`
152
+ model/token/cost attributes; places `qitemId` only on opt-in log/span attributes
153
+ rather than metric dimensions; and omits the source fields `actorSession`,
154
+ `closureTarget`, and raw `originalTimestamp` from exported OTLP logs, metrics,
155
+ and spans.
156
+ - **Sampling unknowns on cached seat inventory**: OpenRig's cached rig and seat
157
+ inventory endpoints (`GET /api/rigs`, `GET /api/rigs?archived=only`,
158
+ `GET /api/rigs/:rigId/nodes`) return point-in-time daemon projections
159
+ (`activityState.display`, `sessionStatus`, `arbitratedNeedsInput`, and
160
+ `activityState.lastSwap`), not a continuous event stream or independent OS
161
+ process probe; intermediate activity changes or multiple occupant handovers
162
+ between polls are not observable from those snapshots, and initial
163
+ observation has no backfilled history. In OpenRig source,
164
+ `arbitratedNeedsInput` is a tri-state boolean (`true`, `false`, or `null`):
165
+ `true` means the seat needs input, `false` means it was observed clear of
166
+ needing input, and `null` means no evidence exists either way (it does not
167
+ indicate `false`). Separately, external consumers or metric mappings must
168
+ choose how to interpret or project this tri-state value into their own
169
+ metrics or counters. `smota/openrig-telemetry` polls these snapshots as
170
+ point-in-time observations and relies on downstream metric storage to enforce
171
+ freshness/staleness TTL when polling stops or a seat departs.
172
+
173
+ ### External OTLP exporter repository and version compatibility
174
+
175
+ An independent, standalone OTLP/HTTP exporter is maintained outside OpenRig core at:
176
+
177
+ - **Repository**: <https://github.com/smota/openrig-telemetry>
178
+
179
+ Its repository documents installation, configuration, and supported OpenRig versions; OpenRig does not test or guarantee the exporter.
180
+
181
+ OpenRig's finite telemetry reads are versioned (`schemaVersion: 1`), while cached rig and node inventory endpoints are operational projections rather than a versioned telemetry contract.
@@ -72,16 +72,52 @@ verified viewer mapping.
72
72
 
73
73
  New tiles keep their place when a seat's tmux session is replaced. They wait up
74
74
  to 30 seconds for the same session name and managed seat identity to return,
75
- then reattach with the original read-only setting. This uses the shared tile
76
- command for Herdr, cmux, Rex and plain tmux, including SSH tiles. In-place
77
- handover and restart keep the existing attachment.
78
-
79
- A deliberate detach closes the tile after about two seconds. A different seat
80
- under the old name is never followed. If no replacement returns in time, or a
75
+ then show the new session with the original read-only setting. This uses the
76
+ shared tile command for Herdr, cmux, Rex and plain tmux, including SSH tiles.
77
+ In-place handover and restart keep showing the same session.
78
+
79
+ Writable tiles attach immediately, as in 0.7.10. Their visible terminal sizes
80
+ the agent's PTY under tmux's normal client sizing policy, and resizing the
81
+ terminal reflows new output. Read-only tiles remain observers: they neither
82
+ resize nor type into another seat. An ordinary tmux detach ends the writable
83
+ tile without stopping the agent. A replacement with a different managed seat
84
+ identity is not followed. If no replacement returns in time, or a
81
85
  session has no managed identity, reopen the rig view with
82
86
  `rig terminal open rig:<name> --window` (or your explicit provider). Views
83
87
  opened before this change must be closed and reopened to get this behavior.
84
88
 
89
+ As in published 0.7.10, Enter or Ctrl-C typed while a new writable tile is still
90
+ attaching can close that viewer. The agent keeps running; reopen the view.
91
+ Once attached, keys and paste use native tmux input handling.
92
+
93
+ ## Sizing and older views
94
+
95
+ Use tmux's inherited `window-size latest` policy for the terminal most recently
96
+ used to control sizing. OpenRig does not change a person's global tmux policy.
97
+ A deliberate `window-size manual` setting remains an explicit fixed-size choice.
98
+ OpenRig's temporary layout and readable-capture pins release by unsetting the
99
+ window's local `window-size` option; they do not restore an old local override.
100
+ With the last pin released, the window inherits the global policy again.
101
+
102
+ Browser terminals do not pin the agent's PTY by default. For an explicit fixed
103
+ 90-by-27 browser terminal, use `rig config set terminal.fixed_geometry true`.
104
+ Set it to `false` to return to the default. This applies to newly created browser
105
+ brokers after existing browser subscribers disconnect; it does not configure
106
+ native Herdr tiles. A temporary readable capture uses
107
+ `rig capture <seat> --readable` or `--size <columns>x<rows>` and releases its pin
108
+ when the capture finishes. It does not unset a manually fixed window it did not
109
+ pin.
110
+
111
+ Kept writable 0.7.8/0.7.9 viewers can retain an old `ignore-size` attach, and
112
+ pre-reflow 0.7.11 viewers can retain the old mirrored display. Changing saved
113
+ argv cannot change that running client. Close only the owned Herdr viewer pane
114
+ and open a fresh view with `rig terminal open <view> --provider herdr`; the
115
+ agent's tmux session and conversation keep running. For a retained `--follow`
116
+ canvas, first select `--no-follow`, then close its owned viewer panes and open
117
+ a fresh ordinary view. Continuing that old following canvas is not an automatic
118
+ live-client migration. Existing 0.7.10 sizing clients and read-only viewers do
119
+ not need this step.
120
+
85
121
  ## Desktop windows and previews
86
122
 
87
123
  ```sh
@@ -222,11 +258,26 @@ after a grace period; the agent and its conversation keep running. The
222
258
  explanation strip names joins, departures, unavailable terminals and limits.
223
259
  The first workspace on an empty provider may become focused.
224
260
 
225
- This increment supports the qualified **Linux Herdr 0.9.5/protocol 22**
226
- endpoint. Other platforms/providers and other selector kinds retain ordinary
227
- one-shot open. Use `--provider herdr --json` to operate without opening a
228
- desktop window, and `--session <name>` to select that endpoint. Opening a tile
229
- can change the agent's terminal size; `ignore-size` does not guarantee isolation.
261
+ Live following supports **Linux and macOS with Herdr protocol 22**. Admission
262
+ checks the live protocol and selected socket, then confirms each pane's IDs,
263
+ focus state and foreground attachment. A shell startup `cd` does not change
264
+ pane identity; filesystem aliases of the same existing path are accepted.
265
+ If a creation response is lost and shell startup changes the directory, Core
266
+ may be unable to attribute that pane. It reports uncertainty and does not
267
+ repeat the creation.
268
+ The detected Herdr version remains visible in provider status. The native
269
+ qualification version is 0.9.5; a matching release label alone is not proof of
270
+ compatibility, and future protocol numbers are not assumed compatible.
271
+
272
+ If a new view's platform or protocol cannot support following, Core opens a
273
+ labelled **snapshot** instead and disables automatic following. It will not
274
+ track later owner changes. Incomplete membership prevents that snapshot from
275
+ opening; the result explains why. A failed endpoint/identity read or an existing
276
+ canvas stays unconfirmed, preserving it instead of creating a fallback view.
277
+ Other providers and selector kinds retain ordinary one-shot open. Use
278
+ `--provider herdr --json` to operate without opening a desktop window, and
279
+ `--session <name>` to select that endpoint. Typing in a tile can change the
280
+ agent's terminal size while you type.
230
281
 
231
282
  ```bash
232
283
  rig terminal open qitem:example --follow --provider herdr --json
@@ -284,11 +335,17 @@ operation uses the daemon's existing terminal bearer and browser boundary;
284
335
  a bridge must retain its signed-in owner, Origin and expiry controls. It does
285
336
  not grant authority based on task membership or accept a caller terminal ID.
286
337
 
287
- On the qualified Linux Herdr 0.9.5/protocol 22 endpoint, it creates one viewer
338
+ On a supported Linux or macOS Herdr protocol-22 endpoint, it creates one viewer
288
339
  or reuses an owned, verified `{workspaceId,paneId,terminalId,readOnly}` mapping.
289
- A repeated/concurrent request does not create another viewer. A lost create
290
- reply is reconciled before starting anything else; a lost run reply is checked
291
- against the actual foreground process, never blindly repeated. Unknown or
340
+ A repeated/concurrent request does not create another viewer. Each viewer's
341
+ private `attach.sh` is kept for provider restarts. `--no-follow` preserves the
342
+ workspace and its scripts; stopping Herdr is not proof that its panes are gone.
343
+ Core removes only an exact, unedited owned script after confirming its viewer
344
+ is absent. Old views that are never reconciled again can therefore accumulate
345
+ scripts; there is no cleanup based only on an unreachable provider.
346
+
347
+ A lost create reply is reconciled before starting anything else; a lost run
348
+ reply is checked against the actual foreground process, never blindly repeated. Unknown or
292
349
  changed terminal identity remains unconfirmed. The operation does not relayout,
293
350
  close departed viewers, take over control, focus existing panes or launch/stop
294
351
  agents. A first workspace on an otherwise empty Herdr server may become focused.
@@ -300,17 +357,22 @@ small presentation provenance, separate from queue membership. Herdr display
300
357
  labels are not that provenance. Other providers/platforms remain unsupported
301
358
  for ensure-viewer until qualified; ordinary open retains its existing behavior.
302
359
 
303
- A writable tile attaches with `tmux attach -f ignore-size` when its session
304
- already has a client that sizes it, so the tile doesn't fight that client over
305
- the agent window's dimensions. When the session has no sizing client, as with a
306
- freshly launched seat, the tile attaches without the flag and sizes the window
307
- itself: tmux applies ignore-size across the whole server, so a session viewed
308
- only by ignore-size clients would otherwise keep its 80x24 creation size while
309
- any other session has a sizing client. Read-only clients keep `-r` (which also
310
- implies ignore-size), and the printed manual attach commands keep
311
- `-f ignore-size`. This is **not resize isolation**: opening a tile can change
312
- the agent's terminal size. Observers of a Herdr terminal do not themselves resize it;
313
- a controlling browser can. No cross-version resize guarantee is implied.
360
+ A tmux window has one size, and a tmux client narrower than it sees only the
361
+ left part of each line. So a tile shows its seat without attaching to it: about
362
+ once a second it reads the seat's screen with `tmux capture-pane`, redraws only
363
+ after tmux records new activity, and lets the tile's own terminal wrap each
364
+ line. A tile narrower than the agent's window still shows whole lines, and
365
+ showing a seat never changes its size. A rule drawn across the window is cut to
366
+ the tile's width. A read-only tile only shows the seat. In a writable tile, the
367
+ first thing you type or paste attaches the tile and goes through tmux as it
368
+ would in any attached client: a paste arrives as one paste, and tmux's prefix
369
+ works (prefix then `[` to scroll back, for example). The tile sizes the window
370
+ while you use it, as any client you type in does; after 30 seconds without a
371
+ key it detaches and shows the seat again. A tile that's only showing has no
372
+ scrollback of its own. If the seat's tmux server restarts, a tile shows the
373
+ seat again only when the same managed seat returns. The printed manual attach commands
374
+ keep `-f ignore-size`. Observers of a Herdr terminal do not themselves resize
375
+ it; a controlling browser can. No cross-version resize guarantee is implied.
314
376
 
315
377
  To type into a seat without changing its size, send the text through OpenRig
316
378
  (`rig send`, or `POST /api/transport/send`): it is written to the pane with tmux
@@ -87,6 +87,37 @@ server, start the upgraded daemon from that original server to establish its
87
87
  record, or stop those seats before changing servers. Earlier versions did not
88
88
  persist enough information to find an arbitrary old socket from a different shell.
89
89
 
90
+ ## Moving an existing team onto tmux control mode
91
+
92
+ `OPENRIG_TMUX_CONTROL=1` in the daemon's environment sends its routine tmux commands
93
+ through one long-lived control-mode client instead of a new tmux client each time,
94
+ which saves a process start per command on a busy host. It takes effect only on a
95
+ tmux server at 3.7c or later. The version of the server that is running decides,
96
+ not the tmux binary on `PATH`, and a server keeps the version it started with until
97
+ it exits. So installing a newer tmux changes nothing for a server that is already up.
98
+ On an older server the daemon uses a spawned client for every command. It says so
99
+ once in its log (`[tmux] OPENRIG_TMUX_CONTROL=1 is set, but this daemon's tmux server
100
+ runs tmux 3.4 …`), and `rig doctor` reports it as `tmux_control_mode`.
101
+
102
+ To move a team that runs on an older server:
103
+
104
+ 1. Install tmux 3.7c or later where the daemon finds it first on its `PATH`. For a
105
+ daemon run as a service, that's the service's environment.
106
+ 2. Choose the server the team will use. `isolated` gives this OpenRig home a server of
107
+ its own, started by the daemon with that tmux, and leaves your own tmux sessions
108
+ alone: `rig config set terminal.tmux_server isolated`. In `inherit` mode the team
109
+ shares your default server, which runs the new version only after every session
110
+ on it, yours included, has ended.
111
+ 3. Stop each rig deliberately with `rig down <rig>`. Its seats' sessions end, and a
112
+ turn in progress stops. Queue rows, rigs and seats stay as they are.
113
+ 4. Restart the daemon with `OPENRIG_TMUX_CONTROL=1` in its environment.
114
+ `rig terminal status --json` should show `migrationPending: false`. If it's still
115
+ `true`, `blockingSessions` names the sessions still on the old server.
116
+ 5. Bring each rig back with `rig up <rig> --existing`. Each seat resumes its
117
+ conversation where its harness allows, under the restoration rules above.
118
+ 6. Check: the daemon's log says `[tmux] Control mode is on`, and `rig doctor` passes
119
+ `tmux_control_mode`.
120
+
90
121
  ## Attachments, discovery and cleanup
91
122
 
92
123
  `rig capture`, managed launch/stop/recovery, terminal previews and desktop viewers
@@ -164,3 +195,20 @@ whose version cannot be recognized as a fixed release, OpenRig uses spawned
164
195
  clients instead: starting a control client while another session is created can
165
196
  crash those servers (#2304). This avoids creating OpenRig's own control client;
166
197
  it cannot protect the server from other tools' control clients.
198
+
199
+ On a large fleet, the daemon's two seat-activity pollers (the activity sampler and the
200
+ structural pane cache) are a large share of its tmux traffic: each runs once a second.
201
+ The setting `daemon.seat_poll_interval_ms` slows both down, from the 1000 ms default up to
202
+ 2000 ms. Set it with `rig config set daemon.seat_poll_interval_ms 2000` (saved in
203
+ `config.json`; `rig config` shows it with its source) or with `OPENRIG_SEAT_POLL_INTERVAL_MS`,
204
+ which overrides the saved value. It is startup-only: the daemon reads it once when it starts,
205
+ so a change takes a daemon restart. `rig config set` refuses a value outside 1000..2000; an
206
+ environment value outside it is dropped with a warning and the daemon keeps the saved value or
207
+ the default.
208
+ A slower cadence makes activity and idle changes show up later, and a Codex permission prompt
209
+ can also show up as much as one interval later. Keep the default if a structural sweep of your
210
+ tmux server can take more than about 2 s (about 3 s at the default): past that, a sweep that
211
+ runs over skips the next tick, the Codex working-frame proof expires, and a working Codex seat
212
+ can briefly read idle. At 2000 ms the remaining 1 s margin is also what a lagging event loop
213
+ uses up. The two settings compose: `OPENRIG_TMUX_CONTROL=1` makes each tmux command cheaper,
214
+ and this one makes there be fewer of them.