@openrig/cli 0.7.11 → 0.7.13

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 (958) hide show
  1. package/README.md +9 -6
  2. package/daemon/assets/guidance/openrig-context-entry.md +8 -0
  3. package/daemon/assets/herdr-app/mods/rig-cell-header/main.js +15 -0
  4. package/daemon/assets/herdr-app/mods/rig-cell-header/mod.json +1 -0
  5. package/daemon/assets/herdr-app/mods/rig-ended/main.js +14 -0
  6. package/daemon/assets/herdr-app/mods/rig-ended/mod.json +1 -0
  7. package/daemon/assets/herdr-app/mods/rig-pad/main.js +10 -0
  8. package/daemon/assets/herdr-app/mods/rig-pad/mod.json +1 -0
  9. package/daemon/assets/herdr-app/mods/rig-strip/main.js +153 -0
  10. package/daemon/assets/herdr-app/mods/rig-strip/mod.json +1 -0
  11. package/daemon/assets/plugins/openrig/.claude-plugin/icon.png +0 -0
  12. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +2 -2
  13. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +4 -2
  14. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
  15. package/daemon/assets/plugins/openrig/plugin.json +2 -2
  16. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +2 -2
  17. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +5 -3
  18. package/daemon/assets/plugins/openrig-core/README.md +6 -0
  19. package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +140 -0
  20. package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus-state.cjs +103 -0
  21. package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +194 -87
  22. package/daemon/assets/plugins/openrig-core/skills/agent-operated-software/SKILL.md +5 -1
  23. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +3 -2
  24. package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +1 -1
  25. package/daemon/assets/plugins/openrig-core/skills/retiring-and-inheriting-a-seat/SKILL.md +1 -1
  26. package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/SKILL.md +10 -6
  27. package/daemon/assets/plugins/openrig-core/skills/session-compaction-and-restore/SKILL.md +1 -1
  28. package/daemon/assets/skills/rigs/SKILL.md +43 -4
  29. package/daemon/context-packs/help/help.md +18 -0
  30. package/daemon/context-packs/help/manifest.yaml +1 -1
  31. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  32. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +74 -26
  33. package/daemon/context-packs/reference/getting-started.md +41 -14
  34. package/daemon/context-packs/reference/manifest.yaml +1 -1
  35. package/daemon/context-packs/reference/rig-spec.md +29 -9
  36. package/daemon/context-packs/reference/tmux-servers.md +6 -3
  37. package/daemon/context-packs/reference/whats-new.md +300 -295
  38. package/daemon/context-packs/skills/agent-operated-software/SKILL.md +5 -1
  39. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/claude-compaction-restore/SKILL.md +3 -2
  43. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/core/openrig-herdr/SKILL.md +1 -0
  52. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/core/watchdog/SKILL.md +5 -0
  62. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/openrig-user/SKILL.md +1 -1
  70. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  77. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  78. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  79. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  80. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  81. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  82. package/daemon/context-packs/skills/pods/review-team/SKILL.md +2 -0
  83. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  84. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  85. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  86. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  87. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  88. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  89. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  90. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  91. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  92. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  93. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/SKILL.md +1 -1
  94. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  95. package/daemon/context-packs/skills/seat-continuity-and-handover/SKILL.md +10 -6
  96. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  97. package/daemon/context-packs/skills/session-compaction-and-restore/SKILL.md +1 -1
  98. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  99. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  100. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  101. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  102. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  103. package/daemon/dist/adapters/claude-code-adapter.js +18 -3
  104. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  105. package/daemon/dist/adapters/claude-resume.d.ts +2 -1
  106. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  107. package/daemon/dist/adapters/claude-resume.js +13 -5
  108. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  109. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  110. package/daemon/dist/adapters/codex-runtime-adapter.js +18 -2
  111. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  112. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +10 -6
  113. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
  114. package/daemon/dist/adapters/community-harness-runtime-adapter.js +78 -24
  115. package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
  116. package/daemon/dist/adapters/pi-community-runtime-adapter.d.ts +27 -0
  117. package/daemon/dist/adapters/pi-community-runtime-adapter.d.ts.map +1 -0
  118. package/daemon/dist/adapters/pi-community-runtime-adapter.js +38 -0
  119. package/daemon/dist/adapters/pi-community-runtime-adapter.js.map +1 -0
  120. package/daemon/dist/adapters/pi-runner-protocol.d.ts +5 -3
  121. package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
  122. package/daemon/dist/adapters/pi-runner-protocol.js +6 -1
  123. package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
  124. package/daemon/dist/adapters/pi-runner.d.ts +58 -5
  125. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  126. package/daemon/dist/adapters/pi-runner.js +441 -52
  127. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  128. package/daemon/dist/adapters/pi-runtime-adapter.d.ts +32 -15
  129. package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
  130. package/daemon/dist/adapters/pi-runtime-adapter.js +41 -10
  131. package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
  132. package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
  133. package/daemon/dist/adapters/tmux-exec.js +13 -4
  134. package/daemon/dist/adapters/tmux-exec.js.map +1 -1
  135. package/daemon/dist/adapters/tmux-server.d.ts +11 -1
  136. package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
  137. package/daemon/dist/adapters/tmux-server.js +37 -5
  138. package/daemon/dist/adapters/tmux-server.js.map +1 -1
  139. package/daemon/dist/adapters/tmux.d.ts +14 -1
  140. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  141. package/daemon/dist/adapters/tmux.js +77 -15
  142. package/daemon/dist/adapters/tmux.js.map +1 -1
  143. package/daemon/dist/attention-surface.d.ts +7 -0
  144. package/daemon/dist/attention-surface.d.ts.map +1 -1
  145. package/daemon/dist/attention-surface.js.map +1 -1
  146. package/daemon/dist/build-info.js +3 -3
  147. package/daemon/dist/connection-contract-surface.d.ts +2 -0
  148. package/daemon/dist/connection-contract-surface.d.ts.map +1 -0
  149. package/daemon/dist/connection-contract-surface.js +4 -0
  150. package/daemon/dist/connection-contract-surface.js.map +1 -0
  151. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  152. package/daemon/dist/db/all-migrations.js +16 -0
  153. package/daemon/dist/db/all-migrations.js.map +1 -1
  154. package/daemon/dist/db/migrations/155_queue_erasure.d.ts +12 -0
  155. package/daemon/dist/db/migrations/155_queue_erasure.d.ts.map +1 -0
  156. package/daemon/dist/db/migrations/155_queue_erasure.js +28 -0
  157. package/daemon/dist/db/migrations/155_queue_erasure.js.map +1 -0
  158. package/daemon/dist/db/migrations/156_queue_erasure_link_indexes.d.ts +4 -0
  159. package/daemon/dist/db/migrations/156_queue_erasure_link_indexes.d.ts.map +1 -0
  160. package/daemon/dist/db/migrations/156_queue_erasure_link_indexes.js +14 -0
  161. package/daemon/dist/db/migrations/156_queue_erasure_link_indexes.js.map +1 -0
  162. package/daemon/dist/db/migrations/157_queue_erasure_batches.d.ts +9 -0
  163. package/daemon/dist/db/migrations/157_queue_erasure_batches.d.ts.map +1 -0
  164. package/daemon/dist/db/migrations/157_queue_erasure_batches.js +18 -0
  165. package/daemon/dist/db/migrations/157_queue_erasure_batches.js.map +1 -0
  166. package/daemon/dist/db/migrations/158_queue_inbox_checkins.d.ts +8 -0
  167. package/daemon/dist/db/migrations/158_queue_inbox_checkins.d.ts.map +1 -0
  168. package/daemon/dist/db/migrations/158_queue_inbox_checkins.js +15 -0
  169. package/daemon/dist/db/migrations/158_queue_inbox_checkins.js.map +1 -0
  170. package/daemon/dist/db/migrations/159_queue_items_handed_off_from_index.d.ts +5 -0
  171. package/daemon/dist/db/migrations/159_queue_items_handed_off_from_index.d.ts.map +1 -0
  172. package/daemon/dist/db/migrations/159_queue_items_handed_off_from_index.js +9 -0
  173. package/daemon/dist/db/migrations/159_queue_items_handed_off_from_index.js.map +1 -0
  174. package/daemon/dist/db/migrations/160_network_bindings.d.ts +7 -0
  175. package/daemon/dist/db/migrations/160_network_bindings.d.ts.map +1 -0
  176. package/daemon/dist/db/migrations/160_network_bindings.js +26 -0
  177. package/daemon/dist/db/migrations/160_network_bindings.js.map +1 -0
  178. package/daemon/dist/db/migrations/161_network_receipts.d.ts +8 -0
  179. package/daemon/dist/db/migrations/161_network_receipts.d.ts.map +1 -0
  180. package/daemon/dist/db/migrations/161_network_receipts.js +25 -0
  181. package/daemon/dist/db/migrations/161_network_receipts.js.map +1 -0
  182. package/daemon/dist/db/migrations/162_session_address_read_indexes.d.ts +5 -0
  183. package/daemon/dist/db/migrations/162_session_address_read_indexes.d.ts.map +1 -0
  184. package/daemon/dist/db/migrations/162_session_address_read_indexes.js +12 -0
  185. package/daemon/dist/db/migrations/162_session_address_read_indexes.js.map +1 -0
  186. package/daemon/dist/domain/agent-activity-store.d.ts +12 -2
  187. package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
  188. package/daemon/dist/domain/agent-activity-store.js +25 -7
  189. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  190. package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
  191. package/daemon/dist/domain/bootstrap-orchestrator.js +5 -0
  192. package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
  193. package/daemon/dist/domain/builtin-startup-files.d.ts +8 -0
  194. package/daemon/dist/domain/builtin-startup-files.d.ts.map +1 -1
  195. package/daemon/dist/domain/builtin-startup-files.js +37 -11
  196. package/daemon/dist/domain/builtin-startup-files.js.map +1 -1
  197. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +30 -17
  198. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  199. package/daemon/dist/domain/claude-compaction-enforcer.js +140 -66
  200. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  201. package/daemon/dist/domain/claude-continuation-launch.d.ts +16 -0
  202. package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -0
  203. package/daemon/dist/domain/claude-continuation-launch.js +110 -0
  204. package/daemon/dist/domain/claude-continuation-launch.js.map +1 -0
  205. package/daemon/dist/domain/claude-git-trust-root.d.ts +11 -0
  206. package/daemon/dist/domain/claude-git-trust-root.d.ts.map +1 -0
  207. package/daemon/dist/domain/claude-git-trust-root.js +72 -0
  208. package/daemon/dist/domain/claude-git-trust-root.js.map +1 -0
  209. package/daemon/dist/domain/claude-managed-launch.d.ts +1 -0
  210. package/daemon/dist/domain/claude-managed-launch.d.ts.map +1 -1
  211. package/daemon/dist/domain/claude-managed-launch.js +5 -5
  212. package/daemon/dist/domain/claude-managed-launch.js.map +1 -1
  213. package/daemon/dist/domain/community-harness-presets.d.ts +5 -0
  214. package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
  215. package/daemon/dist/domain/community-harness-presets.js +33 -6
  216. package/daemon/dist/domain/community-harness-presets.js.map +1 -1
  217. package/daemon/dist/domain/compaction-restore-notice.d.ts +3 -1
  218. package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
  219. package/daemon/dist/domain/compaction-restore-notice.js +37 -6
  220. package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
  221. package/daemon/dist/domain/connection-contract.d.ts +111 -0
  222. package/daemon/dist/domain/connection-contract.d.ts.map +1 -0
  223. package/daemon/dist/domain/connection-contract.js +113 -0
  224. package/daemon/dist/domain/connection-contract.js.map +1 -0
  225. package/daemon/dist/domain/current-work.d.ts +52 -0
  226. package/daemon/dist/domain/current-work.d.ts.map +1 -1
  227. package/daemon/dist/domain/current-work.js +215 -0
  228. package/daemon/dist/domain/current-work.js.map +1 -1
  229. package/daemon/dist/domain/default-receiver.d.ts +40 -0
  230. package/daemon/dist/domain/default-receiver.d.ts.map +1 -0
  231. package/daemon/dist/domain/default-receiver.js +70 -0
  232. package/daemon/dist/domain/default-receiver.js.map +1 -0
  233. package/daemon/dist/domain/draft-aware-delivery.js +1 -1
  234. package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
  235. package/daemon/dist/domain/escalation-owner.d.ts.map +1 -1
  236. package/daemon/dist/domain/escalation-owner.js +8 -3
  237. package/daemon/dist/domain/escalation-owner.js.map +1 -1
  238. package/daemon/dist/domain/event-bus.d.ts +16 -8
  239. package/daemon/dist/domain/event-bus.d.ts.map +1 -1
  240. package/daemon/dist/domain/event-bus.js +50 -16
  241. package/daemon/dist/domain/event-bus.js.map +1 -1
  242. package/daemon/dist/domain/execution-view.d.ts.map +1 -1
  243. package/daemon/dist/domain/execution-view.js +30 -5
  244. package/daemon/dist/domain/execution-view.js.map +1 -1
  245. package/daemon/dist/domain/gateway/gateway-subsystem.d.ts +3 -0
  246. package/daemon/dist/domain/gateway/gateway-subsystem.d.ts.map +1 -1
  247. package/daemon/dist/domain/gateway/gateway-subsystem.js +9 -0
  248. package/daemon/dist/domain/gateway/gateway-subsystem.js.map +1 -1
  249. package/daemon/dist/domain/gateway/human-quiet-windows.d.ts +2 -1
  250. package/daemon/dist/domain/gateway/human-quiet-windows.d.ts.map +1 -1
  251. package/daemon/dist/domain/gateway/human-quiet-windows.js +2 -1
  252. package/daemon/dist/domain/gateway/human-quiet-windows.js.map +1 -1
  253. package/daemon/dist/domain/gateway/human-registry.d.ts +12 -1
  254. package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
  255. package/daemon/dist/domain/gateway/human-registry.js +64 -8
  256. package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
  257. package/daemon/dist/domain/gateway/relay-config.d.ts +5 -2
  258. package/daemon/dist/domain/gateway/relay-config.d.ts.map +1 -1
  259. package/daemon/dist/domain/gateway/relay-config.js +34 -3
  260. package/daemon/dist/domain/gateway/relay-config.js.map +1 -1
  261. package/daemon/dist/domain/gateway/relay-inbound.d.ts +11 -0
  262. package/daemon/dist/domain/gateway/relay-inbound.d.ts.map +1 -1
  263. package/daemon/dist/domain/gateway/relay-inbound.js +283 -41
  264. package/daemon/dist/domain/gateway/relay-inbound.js.map +1 -1
  265. package/daemon/dist/domain/gateway/relay-outbound.d.ts +5 -2
  266. package/daemon/dist/domain/gateway/relay-outbound.d.ts.map +1 -1
  267. package/daemon/dist/domain/gateway/relay-outbound.js +37 -6
  268. package/daemon/dist/domain/gateway/relay-outbound.js.map +1 -1
  269. package/daemon/dist/domain/gateway/slack/config.d.ts +21 -0
  270. package/daemon/dist/domain/gateway/slack/config.d.ts.map +1 -1
  271. package/daemon/dist/domain/gateway/slack/config.js +30 -3
  272. package/daemon/dist/domain/gateway/slack/config.js.map +1 -1
  273. package/daemon/dist/domain/gateway/slack/message.d.ts +4 -0
  274. package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
  275. package/daemon/dist/domain/gateway/slack/message.js +7 -2
  276. package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
  277. package/daemon/dist/domain/gateway/slack/open-asks.d.ts +13 -1
  278. package/daemon/dist/domain/gateway/slack/open-asks.d.ts.map +1 -1
  279. package/daemon/dist/domain/gateway/slack/open-asks.js +58 -7
  280. package/daemon/dist/domain/gateway/slack/open-asks.js.map +1 -1
  281. package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts +9 -0
  282. package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts.map +1 -1
  283. package/daemon/dist/domain/gateway/slack/outbound-driver.js.map +1 -1
  284. package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -1
  285. package/daemon/dist/domain/gateway/slack/settled-asks.js +19 -1
  286. package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
  287. package/daemon/dist/domain/gateway/slack/slack-api.d.ts +3 -0
  288. package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
  289. package/daemon/dist/domain/gateway/slack/slack-api.js +12 -4
  290. package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
  291. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +2 -0
  292. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
  293. package/daemon/dist/domain/gateway/slack/slack-delivery.js +38 -12
  294. package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
  295. package/daemon/dist/domain/gateway/slack/slack-recovery.d.ts +12 -1
  296. package/daemon/dist/domain/gateway/slack/slack-recovery.d.ts.map +1 -1
  297. package/daemon/dist/domain/gateway/slack/slack-recovery.js +68 -10
  298. package/daemon/dist/domain/gateway/slack/slack-recovery.js.map +1 -1
  299. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  300. package/daemon/dist/domain/gateway/slack/slack-subsystem.js +151 -47
  301. package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  302. package/daemon/dist/domain/gateway/slack/socket-inbound.d.ts +1 -0
  303. package/daemon/dist/domain/gateway/slack/socket-inbound.d.ts.map +1 -1
  304. package/daemon/dist/domain/gateway/slack/socket-inbound.js +5 -0
  305. package/daemon/dist/domain/gateway/slack/socket-inbound.js.map +1 -1
  306. package/daemon/dist/domain/gateway/slack/state-store.d.ts +4 -0
  307. package/daemon/dist/domain/gateway/slack/state-store.d.ts.map +1 -1
  308. package/daemon/dist/domain/gateway/slack/state-store.js +4 -1
  309. package/daemon/dist/domain/gateway/slack/state-store.js.map +1 -1
  310. package/daemon/dist/domain/gateway/slack/thread-recovery.d.ts +23 -3
  311. package/daemon/dist/domain/gateway/slack/thread-recovery.d.ts.map +1 -1
  312. package/daemon/dist/domain/gateway/slack/thread-recovery.js +52 -10
  313. package/daemon/dist/domain/gateway/slack/thread-recovery.js.map +1 -1
  314. package/daemon/dist/domain/gateway/slack/thread-seat-map.d.ts +4 -1
  315. package/daemon/dist/domain/gateway/slack/thread-seat-map.d.ts.map +1 -1
  316. package/daemon/dist/domain/gateway/slack/thread-seat-map.js +7 -4
  317. package/daemon/dist/domain/gateway/slack/thread-seat-map.js.map +1 -1
  318. package/daemon/dist/domain/guidance-projection.d.ts +39 -0
  319. package/daemon/dist/domain/guidance-projection.d.ts.map +1 -0
  320. package/daemon/dist/domain/guidance-projection.js +91 -0
  321. package/daemon/dist/domain/guidance-projection.js.map +1 -0
  322. package/daemon/dist/domain/health-passive-ceremony.d.ts.map +1 -1
  323. package/daemon/dist/domain/health-passive-ceremony.js +31 -12
  324. package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
  325. package/daemon/dist/domain/hosted-wake.d.ts +5 -1
  326. package/daemon/dist/domain/hosted-wake.d.ts.map +1 -1
  327. package/daemon/dist/domain/hosted-wake.js +13 -3
  328. package/daemon/dist/domain/hosted-wake.js.map +1 -1
  329. package/daemon/dist/domain/install-engine.d.ts +5 -0
  330. package/daemon/dist/domain/install-engine.d.ts.map +1 -1
  331. package/daemon/dist/domain/install-engine.js +28 -26
  332. package/daemon/dist/domain/install-engine.js.map +1 -1
  333. package/daemon/dist/domain/install-verifier.d.ts +5 -1
  334. package/daemon/dist/domain/install-verifier.d.ts.map +1 -1
  335. package/daemon/dist/domain/install-verifier.js +12 -1
  336. package/daemon/dist/domain/install-verifier.js.map +1 -1
  337. package/daemon/dist/domain/launch-wrapper.d.ts +2 -1
  338. package/daemon/dist/domain/launch-wrapper.d.ts.map +1 -1
  339. package/daemon/dist/domain/launch-wrapper.js +6 -2
  340. package/daemon/dist/domain/launch-wrapper.js.map +1 -1
  341. package/daemon/dist/domain/managed-block-records.d.ts +9 -3
  342. package/daemon/dist/domain/managed-block-records.d.ts.map +1 -1
  343. package/daemon/dist/domain/managed-block-records.js +43 -8
  344. package/daemon/dist/domain/managed-block-records.js.map +1 -1
  345. package/daemon/dist/domain/managed-blocks.d.ts +43 -3
  346. package/daemon/dist/domain/managed-blocks.d.ts.map +1 -1
  347. package/daemon/dist/domain/managed-blocks.js +156 -39
  348. package/daemon/dist/domain/managed-blocks.js.map +1 -1
  349. package/daemon/dist/domain/markdown-address.d.ts.map +1 -1
  350. package/daemon/dist/domain/markdown-address.js +12 -1
  351. package/daemon/dist/domain/markdown-address.js.map +1 -1
  352. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  353. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +39 -7
  354. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  355. package/daemon/dist/domain/native-process-arguments.d.ts +5 -0
  356. package/daemon/dist/domain/native-process-arguments.d.ts.map +1 -1
  357. package/daemon/dist/domain/native-process-arguments.js +60 -5
  358. package/daemon/dist/domain/native-process-arguments.js.map +1 -1
  359. package/daemon/dist/domain/network/hub-client.d.ts +40 -0
  360. package/daemon/dist/domain/network/hub-client.d.ts.map +1 -0
  361. package/daemon/dist/domain/network/hub-client.js +102 -0
  362. package/daemon/dist/domain/network/hub-client.js.map +1 -0
  363. package/daemon/dist/domain/network/network-bindings.d.ts +74 -0
  364. package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -0
  365. package/daemon/dist/domain/network/network-bindings.js +235 -0
  366. package/daemon/dist/domain/network/network-bindings.js.map +1 -0
  367. package/daemon/dist/domain/network/network-connector.d.ts +77 -0
  368. package/daemon/dist/domain/network/network-connector.d.ts.map +1 -0
  369. package/daemon/dist/domain/network/network-connector.js +380 -0
  370. package/daemon/dist/domain/network/network-connector.js.map +1 -0
  371. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  372. package/daemon/dist/domain/node-inventory.js +9 -8
  373. package/daemon/dist/domain/node-inventory.js.map +1 -1
  374. package/daemon/dist/domain/package-install-service.d.ts +1 -0
  375. package/daemon/dist/domain/package-install-service.d.ts.map +1 -1
  376. package/daemon/dist/domain/package-install-service.js +2 -1
  377. package/daemon/dist/domain/package-install-service.js.map +1 -1
  378. package/daemon/dist/domain/package-manifest.d.ts.map +1 -1
  379. package/daemon/dist/domain/package-manifest.js +10 -5
  380. package/daemon/dist/domain/package-manifest.js.map +1 -1
  381. package/daemon/dist/domain/plugin-vendor-service.d.ts +9 -0
  382. package/daemon/dist/domain/plugin-vendor-service.d.ts.map +1 -1
  383. package/daemon/dist/domain/plugin-vendor-service.js +50 -8
  384. package/daemon/dist/domain/plugin-vendor-service.js.map +1 -1
  385. package/daemon/dist/domain/policies/delivery-digest-flush.d.ts.map +1 -1
  386. package/daemon/dist/domain/policies/delivery-digest-flush.js +9 -1
  387. package/daemon/dist/domain/policies/delivery-digest-flush.js.map +1 -1
  388. package/daemon/dist/domain/policies/mode-scheduled-end.d.ts +4 -1
  389. package/daemon/dist/domain/policies/mode-scheduled-end.d.ts.map +1 -1
  390. package/daemon/dist/domain/policies/mode-scheduled-end.js +19 -10
  391. package/daemon/dist/domain/policies/mode-scheduled-end.js.map +1 -1
  392. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
  393. package/daemon/dist/domain/policies/parked-owner-consumer.js +3 -2
  394. package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
  395. package/daemon/dist/domain/policies/quiet-release.d.ts +19 -6
  396. package/daemon/dist/domain/policies/quiet-release.d.ts.map +1 -1
  397. package/daemon/dist/domain/policies/quiet-release.js +44 -7
  398. package/daemon/dist/domain/policies/quiet-release.js.map +1 -1
  399. package/daemon/dist/domain/proof/judgments.d.ts +23 -13
  400. package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
  401. package/daemon/dist/domain/proof/judgments.js +75 -38
  402. package/daemon/dist/domain/proof/judgments.js.map +1 -1
  403. package/daemon/dist/domain/proof/source-watch.d.ts +1 -1
  404. package/daemon/dist/domain/proof/source-watch.d.ts.map +1 -1
  405. package/daemon/dist/domain/proof/source-watch.js +45 -22
  406. package/daemon/dist/domain/proof/source-watch.js.map +1 -1
  407. package/daemon/dist/domain/provider/claude-usage-reader.d.ts +3 -3
  408. package/daemon/dist/domain/provider/claude-usage-reader.d.ts.map +1 -1
  409. package/daemon/dist/domain/provider/claude-usage-reader.js +16 -5
  410. package/daemon/dist/domain/provider/claude-usage-reader.js.map +1 -1
  411. package/daemon/dist/domain/provider/codex-limit-banner.d.ts.map +1 -1
  412. package/daemon/dist/domain/provider/codex-limit-banner.js +2 -1
  413. package/daemon/dist/domain/provider/codex-limit-banner.js.map +1 -1
  414. package/daemon/dist/domain/provider/provider-signals.d.ts +6 -0
  415. package/daemon/dist/domain/provider/provider-signals.d.ts.map +1 -1
  416. package/daemon/dist/domain/provider/provider-signals.js +9 -3
  417. package/daemon/dist/domain/provider/provider-signals.js.map +1 -1
  418. package/daemon/dist/domain/provider/reactive-tap.d.ts.map +1 -1
  419. package/daemon/dist/domain/provider/reactive-tap.js +6 -0
  420. package/daemon/dist/domain/provider/reactive-tap.js.map +1 -1
  421. package/daemon/dist/domain/queue-blocker.d.ts +5 -0
  422. package/daemon/dist/domain/queue-blocker.d.ts.map +1 -0
  423. package/daemon/dist/domain/queue-blocker.js +12 -0
  424. package/daemon/dist/domain/queue-blocker.js.map +1 -0
  425. package/daemon/dist/domain/queue-erasure.d.ts +173 -0
  426. package/daemon/dist/domain/queue-erasure.d.ts.map +1 -0
  427. package/daemon/dist/domain/queue-erasure.js +885 -0
  428. package/daemon/dist/domain/queue-erasure.js.map +1 -0
  429. package/daemon/dist/domain/queue-owner.d.ts +6 -0
  430. package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
  431. package/daemon/dist/domain/queue-owner.js +13 -4
  432. package/daemon/dist/domain/queue-owner.js.map +1 -1
  433. package/daemon/dist/domain/queue-repository.d.ts +176 -21
  434. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  435. package/daemon/dist/domain/queue-repository.js +503 -62
  436. package/daemon/dist/domain/queue-repository.js.map +1 -1
  437. package/daemon/dist/domain/queue-retention.d.ts +15 -1
  438. package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
  439. package/daemon/dist/domain/queue-retention.js +35 -0
  440. package/daemon/dist/domain/queue-retention.js.map +1 -1
  441. package/daemon/dist/domain/queue-stuck-sweep.d.ts +17 -4
  442. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  443. package/daemon/dist/domain/queue-stuck-sweep.js +309 -100
  444. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  445. package/daemon/dist/domain/queue-transition-log.d.ts +5 -2
  446. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  447. package/daemon/dist/domain/queue-transition-log.js +30 -5
  448. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  449. package/daemon/dist/domain/queue-waiting.d.ts +48 -2
  450. package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
  451. package/daemon/dist/domain/queue-waiting.js +73 -13
  452. package/daemon/dist/domain/queue-waiting.js.map +1 -1
  453. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  454. package/daemon/dist/domain/queue-wake-ladder.js +124 -55
  455. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  456. package/daemon/dist/domain/queue-wake-repository.d.ts +3 -0
  457. package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
  458. package/daemon/dist/domain/queue-wake-repository.js +6 -0
  459. package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
  460. package/daemon/dist/domain/rebuild-priming-chain.d.ts +3 -1
  461. package/daemon/dist/domain/rebuild-priming-chain.d.ts.map +1 -1
  462. package/daemon/dist/domain/rebuild-priming-chain.js +3 -1
  463. package/daemon/dist/domain/rebuild-priming-chain.js.map +1 -1
  464. package/daemon/dist/domain/receiver-context.d.ts +9 -0
  465. package/daemon/dist/domain/receiver-context.d.ts.map +1 -0
  466. package/daemon/dist/domain/receiver-context.js +24 -0
  467. package/daemon/dist/domain/receiver-context.js.map +1 -0
  468. package/daemon/dist/domain/reconciler.d.ts +15 -6
  469. package/daemon/dist/domain/reconciler.d.ts.map +1 -1
  470. package/daemon/dist/domain/reconciler.js +26 -26
  471. package/daemon/dist/domain/reconciler.js.map +1 -1
  472. package/daemon/dist/domain/refocus-record.d.ts +17 -0
  473. package/daemon/dist/domain/refocus-record.d.ts.map +1 -0
  474. package/daemon/dist/domain/refocus-record.js +94 -0
  475. package/daemon/dist/domain/refocus-record.js.map +1 -0
  476. package/daemon/dist/domain/restore-check-service.js +1 -1
  477. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  478. package/daemon/dist/domain/restore-guidance.d.ts +6 -4
  479. package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
  480. package/daemon/dist/domain/restore-guidance.js +43 -33
  481. package/daemon/dist/domain/restore-guidance.js.map +1 -1
  482. package/daemon/dist/domain/restore-orchestrator.d.ts +2 -0
  483. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  484. package/daemon/dist/domain/restore-orchestrator.js +39 -18
  485. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  486. package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
  487. package/daemon/dist/domain/restore-plan-preview.js +2 -1
  488. package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
  489. package/daemon/dist/domain/resume-token-validation.d.ts +7 -0
  490. package/daemon/dist/domain/resume-token-validation.d.ts.map +1 -1
  491. package/daemon/dist/domain/resume-token-validation.js +13 -3
  492. package/daemon/dist/domain/resume-token-validation.js.map +1 -1
  493. package/daemon/dist/domain/rig-repository.js +3 -3
  494. package/daemon/dist/domain/rig-repository.js.map +1 -1
  495. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  496. package/daemon/dist/domain/rig-teardown.js +2 -1
  497. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  498. package/daemon/dist/domain/rigs-being-built.d.ts +5 -0
  499. package/daemon/dist/domain/rigs-being-built.d.ts.map +1 -0
  500. package/daemon/dist/domain/rigs-being-built.js +18 -0
  501. package/daemon/dist/domain/rigs-being-built.js.map +1 -0
  502. package/daemon/dist/domain/rigspec-instantiator.d.ts +3 -0
  503. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  504. package/daemon/dist/domain/rigspec-instantiator.js +32 -2
  505. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  506. package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
  507. package/daemon/dist/domain/rigspec-preflight.js +4 -1
  508. package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
  509. package/daemon/dist/domain/rigspec-schema.js +2 -2
  510. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  511. package/daemon/dist/domain/rosters.d.ts +11 -0
  512. package/daemon/dist/domain/rosters.d.ts.map +1 -1
  513. package/daemon/dist/domain/rosters.js +24 -1
  514. package/daemon/dist/domain/rosters.js.map +1 -1
  515. package/daemon/dist/domain/runner-permissions.d.ts +16 -0
  516. package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
  517. package/daemon/dist/domain/runner-permissions.js +104 -16
  518. package/daemon/dist/domain/runner-permissions.js.map +1 -1
  519. package/daemon/dist/domain/runtime-adapter.d.ts +1 -0
  520. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  521. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  522. package/daemon/dist/domain/scope/logical-checkbox.d.ts.map +1 -1
  523. package/daemon/dist/domain/scope/logical-checkbox.js +14 -0
  524. package/daemon/dist/domain/scope/logical-checkbox.js.map +1 -1
  525. package/daemon/dist/domain/seat-activity-service.d.ts +12 -0
  526. package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
  527. package/daemon/dist/domain/seat-activity-service.js +85 -4
  528. package/daemon/dist/domain/seat-activity-service.js.map +1 -1
  529. package/daemon/dist/domain/seat-handover-service.d.ts +16 -1
  530. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  531. package/daemon/dist/domain/seat-handover-service.js +78 -15
  532. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  533. package/daemon/dist/domain/seat-identity-reconciler.d.ts +4 -0
  534. package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
  535. package/daemon/dist/domain/seat-identity-reconciler.js +18 -2
  536. package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
  537. package/daemon/dist/domain/seat-kinds.d.ts +21 -0
  538. package/daemon/dist/domain/seat-kinds.d.ts.map +1 -0
  539. package/daemon/dist/domain/seat-kinds.js +27 -0
  540. package/daemon/dist/domain/seat-kinds.js.map +1 -0
  541. package/daemon/dist/domain/seat-launch-environment.d.ts +4 -0
  542. package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
  543. package/daemon/dist/domain/seat-launch-environment.js +7 -6
  544. package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
  545. package/daemon/dist/domain/seat-lifecycle-service.d.ts +17 -0
  546. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  547. package/daemon/dist/domain/seat-lifecycle-service.js +74 -13
  548. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  549. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  550. package/daemon/dist/domain/seat-runtime-switch-service.js +23 -12
  551. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  552. package/daemon/dist/domain/seat-skill-apply.d.ts +2 -0
  553. package/daemon/dist/domain/seat-skill-apply.d.ts.map +1 -1
  554. package/daemon/dist/domain/seat-skill-apply.js +5 -2
  555. package/daemon/dist/domain/seat-skill-apply.js.map +1 -1
  556. package/daemon/dist/domain/seat-skill-storage.js +1 -1
  557. package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
  558. package/daemon/dist/domain/seat-status-service.d.ts +10 -0
  559. package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
  560. package/daemon/dist/domain/seat-status-service.js +36 -2
  561. package/daemon/dist/domain/seat-status-service.js.map +1 -1
  562. package/daemon/dist/domain/seat-structural-activity-service.d.ts +8 -0
  563. package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
  564. package/daemon/dist/domain/seat-structural-activity-service.js +15 -6
  565. package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
  566. package/daemon/dist/domain/session-jsonl.d.ts +4 -2
  567. package/daemon/dist/domain/session-jsonl.d.ts.map +1 -1
  568. package/daemon/dist/domain/session-jsonl.js +56 -22
  569. package/daemon/dist/domain/session-jsonl.js.map +1 -1
  570. package/daemon/dist/domain/session-registry.d.ts +20 -3
  571. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  572. package/daemon/dist/domain/session-registry.js +55 -8
  573. package/daemon/dist/domain/session-registry.js.map +1 -1
  574. package/daemon/dist/domain/session-transport.d.ts +30 -4
  575. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  576. package/daemon/dist/domain/session-transport.js +243 -60
  577. package/daemon/dist/domain/session-transport.js.map +1 -1
  578. package/daemon/dist/domain/slices/slice-indexer.d.ts +46 -2
  579. package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
  580. package/daemon/dist/domain/slices/slice-indexer.js +522 -37
  581. package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
  582. package/daemon/dist/domain/slow-op-recorder.d.ts +0 -3
  583. package/daemon/dist/domain/slow-op-recorder.d.ts.map +1 -1
  584. package/daemon/dist/domain/slow-op-recorder.js +5 -34
  585. package/daemon/dist/domain/slow-op-recorder.js.map +1 -1
  586. package/daemon/dist/domain/spec-library-workflow-scanner.d.ts +2 -0
  587. package/daemon/dist/domain/spec-library-workflow-scanner.d.ts.map +1 -1
  588. package/daemon/dist/domain/spec-library-workflow-scanner.js +22 -13
  589. package/daemon/dist/domain/spec-library-workflow-scanner.js.map +1 -1
  590. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  591. package/daemon/dist/domain/startup-orchestrator.js +5 -2
  592. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  593. package/daemon/dist/domain/startup-submission-evidence.d.ts +1 -0
  594. package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
  595. package/daemon/dist/domain/startup-submission-evidence.js +18 -4
  596. package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
  597. package/daemon/dist/domain/successor-session-launcher.d.ts +5 -0
  598. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  599. package/daemon/dist/domain/successor-session-launcher.js +11 -6
  600. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  601. package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
  602. package/daemon/dist/domain/terminal/herdr-adapter.js +3 -2
  603. package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
  604. package/daemon/dist/domain/terminal/herdr-app-install.d.ts +28 -0
  605. package/daemon/dist/domain/terminal/herdr-app-install.d.ts.map +1 -0
  606. package/daemon/dist/domain/terminal/herdr-app-install.js +170 -0
  607. package/daemon/dist/domain/terminal/herdr-app-install.js.map +1 -0
  608. package/daemon/dist/domain/terminal/herdr-app-layout.d.ts +79 -0
  609. package/daemon/dist/domain/terminal/herdr-app-layout.d.ts.map +1 -0
  610. package/daemon/dist/domain/terminal/herdr-app-layout.js +134 -0
  611. package/daemon/dist/domain/terminal/herdr-app-layout.js.map +1 -0
  612. package/daemon/dist/domain/terminal/herdr-app-provider.d.ts +123 -0
  613. package/daemon/dist/domain/terminal/herdr-app-provider.d.ts.map +1 -0
  614. package/daemon/dist/domain/terminal/herdr-app-provider.js +681 -0
  615. package/daemon/dist/domain/terminal/herdr-app-provider.js.map +1 -0
  616. package/daemon/dist/domain/terminal/herdr-app-state.d.ts +91 -0
  617. package/daemon/dist/domain/terminal/herdr-app-state.d.ts.map +1 -0
  618. package/daemon/dist/domain/terminal/herdr-app-state.js +140 -0
  619. package/daemon/dist/domain/terminal/herdr-app-state.js.map +1 -0
  620. package/daemon/dist/domain/terminal/herdr-app-transport.d.ts +68 -0
  621. package/daemon/dist/domain/terminal/herdr-app-transport.d.ts.map +1 -0
  622. package/daemon/dist/domain/terminal/herdr-app-transport.js +133 -0
  623. package/daemon/dist/domain/terminal/herdr-app-transport.js.map +1 -0
  624. package/daemon/dist/domain/terminal/terminal-provider.d.ts +18 -0
  625. package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
  626. package/daemon/dist/domain/terminal/terminal-service.d.ts +28 -3
  627. package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
  628. package/daemon/dist/domain/terminal/terminal-service.js +41 -8
  629. package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
  630. package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
  631. package/daemon/dist/domain/terminal/view-composer.js +1 -0
  632. package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
  633. package/daemon/dist/domain/time-bound-advisory.js +3 -3
  634. package/daemon/dist/domain/time-bound-advisory.js.map +1 -1
  635. package/daemon/dist/domain/tmux-option-defaults.d.ts +4 -4
  636. package/daemon/dist/domain/tmux-option-defaults.d.ts.map +1 -1
  637. package/daemon/dist/domain/tmux-option-defaults.js +25 -12
  638. package/daemon/dist/domain/tmux-option-defaults.js.map +1 -1
  639. package/daemon/dist/domain/types.d.ts +54 -0
  640. package/daemon/dist/domain/types.d.ts.map +1 -1
  641. package/daemon/dist/domain/types.js.map +1 -1
  642. package/daemon/dist/domain/user-settings/settings-browser.d.ts +2 -1
  643. package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
  644. package/daemon/dist/domain/user-settings/settings-browser.js +22 -3
  645. package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
  646. package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
  647. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  648. package/daemon/dist/domain/user-settings/settings-store.js +35 -0
  649. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  650. package/daemon/dist/domain/wake-recovery.d.ts.map +1 -1
  651. package/daemon/dist/domain/wake-recovery.js +3 -2
  652. package/daemon/dist/domain/wake-recovery.js.map +1 -1
  653. package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -1
  654. package/daemon/dist/domain/watchdog-delivery-receipts.js +8 -3
  655. package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -1
  656. package/daemon/dist/domain/whoami-service.d.ts +6 -0
  657. package/daemon/dist/domain/whoami-service.d.ts.map +1 -1
  658. package/daemon/dist/domain/whoami-service.js +9 -1
  659. package/daemon/dist/domain/whoami-service.js.map +1 -1
  660. package/daemon/dist/domain/workflow-projector.js +1 -1
  661. package/daemon/dist/domain/workflow-projector.js.map +1 -1
  662. package/daemon/dist/domain/workflow-runtime.js +4 -4
  663. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  664. package/daemon/dist/domain/workflow-spec-cache.d.ts +22 -0
  665. package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
  666. package/daemon/dist/domain/workflow-spec-cache.js +59 -14
  667. package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
  668. package/daemon/dist/index.d.ts +2 -1
  669. package/daemon/dist/index.d.ts.map +1 -1
  670. package/daemon/dist/index.js +11 -1
  671. package/daemon/dist/index.js.map +1 -1
  672. package/daemon/dist/lib/pane-envelope.d.ts +3 -0
  673. package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
  674. package/daemon/dist/lib/pane-envelope.js +3 -1
  675. package/daemon/dist/lib/pane-envelope.js.map +1 -1
  676. package/daemon/dist/routes/activity.d.ts.map +1 -1
  677. package/daemon/dist/routes/activity.js +122 -23
  678. package/daemon/dist/routes/activity.js.map +1 -1
  679. package/daemon/dist/routes/attention.d.ts.map +1 -1
  680. package/daemon/dist/routes/attention.js +2 -0
  681. package/daemon/dist/routes/attention.js.map +1 -1
  682. package/daemon/dist/routes/config.d.ts.map +1 -1
  683. package/daemon/dist/routes/config.js +9 -1
  684. package/daemon/dist/routes/config.js.map +1 -1
  685. package/daemon/dist/routes/events.js +7 -2
  686. package/daemon/dist/routes/events.js.map +1 -1
  687. package/daemon/dist/routes/gateway.d.ts.map +1 -1
  688. package/daemon/dist/routes/gateway.js +34 -5
  689. package/daemon/dist/routes/gateway.js.map +1 -1
  690. package/daemon/dist/routes/hosts.d.ts.map +1 -1
  691. package/daemon/dist/routes/hosts.js +154 -79
  692. package/daemon/dist/routes/hosts.js.map +1 -1
  693. package/daemon/dist/routes/network.d.ts +9 -0
  694. package/daemon/dist/routes/network.d.ts.map +1 -0
  695. package/daemon/dist/routes/network.js +58 -0
  696. package/daemon/dist/routes/network.js.map +1 -0
  697. package/daemon/dist/routes/packages.js +3 -1
  698. package/daemon/dist/routes/packages.js.map +1 -1
  699. package/daemon/dist/routes/proof.d.ts.map +1 -1
  700. package/daemon/dist/routes/proof.js +6 -4
  701. package/daemon/dist/routes/proof.js.map +1 -1
  702. package/daemon/dist/routes/provider.js +1 -1
  703. package/daemon/dist/routes/provider.js.map +1 -1
  704. package/daemon/dist/routes/queue.d.ts +19 -0
  705. package/daemon/dist/routes/queue.d.ts.map +1 -1
  706. package/daemon/dist/routes/queue.js +236 -43
  707. package/daemon/dist/routes/queue.js.map +1 -1
  708. package/daemon/dist/routes/skills.d.ts.map +1 -1
  709. package/daemon/dist/routes/skills.js +8 -2
  710. package/daemon/dist/routes/skills.js.map +1 -1
  711. package/daemon/dist/routes/slices.d.ts +1 -0
  712. package/daemon/dist/routes/slices.d.ts.map +1 -1
  713. package/daemon/dist/routes/slices.js +217 -39
  714. package/daemon/dist/routes/slices.js.map +1 -1
  715. package/daemon/dist/routes/spec-library.d.ts.map +1 -1
  716. package/daemon/dist/routes/spec-library.js +7 -3
  717. package/daemon/dist/routes/spec-library.js.map +1 -1
  718. package/daemon/dist/routes/terminal.d.ts.map +1 -1
  719. package/daemon/dist/routes/terminal.js +40 -3
  720. package/daemon/dist/routes/terminal.js.map +1 -1
  721. package/daemon/dist/routes/transport.d.ts.map +1 -1
  722. package/daemon/dist/routes/transport.js +0 -1
  723. package/daemon/dist/routes/transport.js.map +1 -1
  724. package/daemon/dist/server.d.ts +2 -0
  725. package/daemon/dist/server.d.ts.map +1 -1
  726. package/daemon/dist/server.js +5 -0
  727. package/daemon/dist/server.js.map +1 -1
  728. package/daemon/dist/startup.d.ts +34 -0
  729. package/daemon/dist/startup.d.ts.map +1 -1
  730. package/daemon/dist/startup.js +206 -36
  731. package/daemon/dist/startup.js.map +1 -1
  732. package/daemon/docs/reference/agent-spec.md +2 -4
  733. package/daemon/docs/reference/agent-startup-guide.md +45 -15
  734. package/daemon/docs/reference/claude-status-line.md +25 -9
  735. package/daemon/docs/reference/community-harness-examples/omo/omo.yaml +14 -0
  736. package/daemon/docs/reference/community-harness-presets.md +56 -2
  737. package/daemon/docs/reference/daemon-http-clients.md +15 -1
  738. package/daemon/docs/reference/edge-types.md +6 -4
  739. package/daemon/docs/reference/gateway-participants.md +19 -0
  740. package/daemon/docs/reference/gateway-relay.md +41 -12
  741. package/daemon/docs/reference/getting-started.md +41 -14
  742. package/daemon/docs/reference/harness-runner-contract.md +61 -12
  743. package/daemon/docs/reference/health-diagnosis.md +5 -1
  744. package/daemon/docs/reference/help.md +18 -0
  745. package/daemon/docs/reference/herdr-app.md +149 -0
  746. package/daemon/docs/reference/hosted-members.md +51 -9
  747. package/daemon/docs/reference/keeping-a-watch.md +31 -1
  748. package/daemon/docs/reference/network-connector.md +114 -0
  749. package/daemon/docs/reference/queue-erasure.md +161 -0
  750. package/daemon/docs/reference/quickstart.md +4 -4
  751. package/daemon/docs/reference/rig-spec.md +29 -9
  752. package/daemon/docs/reference/rosters.md +5 -0
  753. package/daemon/docs/reference/runner-conformance/README.md +3 -0
  754. package/daemon/docs/reference/runner-conformance/check-runner.mjs +27 -6
  755. package/daemon/docs/reference/runner-conformance/fake-acp-agent.mjs +1 -1
  756. package/daemon/docs/reference/sdlc-conventions.md +16 -1
  757. package/daemon/docs/reference/seat-delivery.md +10 -3
  758. package/daemon/docs/reference/slack-app-setup.md +37 -12
  759. package/daemon/docs/reference/terminal-sessions.md +28 -15
  760. package/daemon/docs/reference/tmux-servers.md +6 -3
  761. package/daemon/docs/reference/whats-new.md +300 -295
  762. package/daemon/specs/agents/shared/skills/core/openrig-herdr/SKILL.md +1 -0
  763. package/daemon/specs/agents/shared/skills/core/watchdog/SKILL.md +5 -0
  764. package/daemon/specs/agents/shared/skills/pods/review-team/SKILL.md +2 -0
  765. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +66 -16
  766. package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +7 -4
  767. package/daemon/specs/rigs/launch/kernel/rig.yaml +6 -3
  768. package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +3 -1
  769. package/dist/build-info.js +3 -3
  770. package/dist/client.js +2 -2
  771. package/dist/client.js.map +1 -1
  772. package/dist/commands/config.d.ts.map +1 -1
  773. package/dist/commands/config.js +11 -1
  774. package/dist/commands/config.js.map +1 -1
  775. package/dist/commands/context.d.ts.map +1 -1
  776. package/dist/commands/context.js +44 -4
  777. package/dist/commands/context.js.map +1 -1
  778. package/dist/commands/daemon.d.ts +8 -2
  779. package/dist/commands/daemon.d.ts.map +1 -1
  780. package/dist/commands/daemon.js +63 -7
  781. package/dist/commands/daemon.js.map +1 -1
  782. package/dist/commands/gateway.d.ts.map +1 -1
  783. package/dist/commands/gateway.js +21 -4
  784. package/dist/commands/gateway.js.map +1 -1
  785. package/dist/commands/host.d.ts +4 -10
  786. package/dist/commands/host.d.ts.map +1 -1
  787. package/dist/commands/host.js +17 -35
  788. package/dist/commands/host.js.map +1 -1
  789. package/dist/commands/launch.d.ts +1 -0
  790. package/dist/commands/launch.d.ts.map +1 -1
  791. package/dist/commands/launch.js +1 -1
  792. package/dist/commands/launch.js.map +1 -1
  793. package/dist/commands/network.d.ts +12 -0
  794. package/dist/commands/network.d.ts.map +1 -0
  795. package/dist/commands/network.js +95 -0
  796. package/dist/commands/network.js.map +1 -0
  797. package/dist/commands/package.d.ts.map +1 -1
  798. package/dist/commands/package.js +5 -0
  799. package/dist/commands/package.js.map +1 -1
  800. package/dist/commands/proof.d.ts.map +1 -1
  801. package/dist/commands/proof.js +18 -6
  802. package/dist/commands/proof.js.map +1 -1
  803. package/dist/commands/provider.js +1 -1
  804. package/dist/commands/ps.d.ts +9 -1
  805. package/dist/commands/ps.d.ts.map +1 -1
  806. package/dist/commands/ps.js +23 -2
  807. package/dist/commands/ps.js.map +1 -1
  808. package/dist/commands/queue.d.ts.map +1 -1
  809. package/dist/commands/queue.js +233 -8
  810. package/dist/commands/queue.js.map +1 -1
  811. package/dist/commands/roster.d.ts +17 -0
  812. package/dist/commands/roster.d.ts.map +1 -1
  813. package/dist/commands/roster.js +47 -2
  814. package/dist/commands/roster.js.map +1 -1
  815. package/dist/commands/scope.d.ts +2 -0
  816. package/dist/commands/scope.d.ts.map +1 -1
  817. package/dist/commands/scope.js +15 -0
  818. package/dist/commands/scope.js.map +1 -1
  819. package/dist/commands/seat.d.ts.map +1 -1
  820. package/dist/commands/seat.js +65 -10
  821. package/dist/commands/seat.js.map +1 -1
  822. package/dist/commands/send.d.ts +2 -0
  823. package/dist/commands/send.d.ts.map +1 -1
  824. package/dist/commands/send.js +16 -6
  825. package/dist/commands/send.js.map +1 -1
  826. package/dist/commands/setup.js +1 -1
  827. package/dist/commands/setup.js.map +1 -1
  828. package/dist/commands/skill.d.ts.map +1 -1
  829. package/dist/commands/skill.js +5 -0
  830. package/dist/commands/skill.js.map +1 -1
  831. package/dist/commands/slack.d.ts +1 -1
  832. package/dist/commands/slack.d.ts.map +1 -1
  833. package/dist/commands/slack.js +5 -1
  834. package/dist/commands/slack.js.map +1 -1
  835. package/dist/commands/status.d.ts.map +1 -1
  836. package/dist/commands/status.js +11 -1
  837. package/dist/commands/status.js.map +1 -1
  838. package/dist/commands/terminal.d.ts +22 -0
  839. package/dist/commands/terminal.d.ts.map +1 -1
  840. package/dist/commands/terminal.js +116 -7
  841. package/dist/commands/terminal.js.map +1 -1
  842. package/dist/commands/up.d.ts.map +1 -1
  843. package/dist/commands/up.js +22 -0
  844. package/dist/commands/up.js.map +1 -1
  845. package/dist/commands/watchdog.d.ts.map +1 -1
  846. package/dist/commands/watchdog.js +22 -2
  847. package/dist/commands/watchdog.js.map +1 -1
  848. package/dist/commands/whoami.d.ts.map +1 -1
  849. package/dist/commands/whoami.js +13 -2
  850. package/dist/commands/whoami.js.map +1 -1
  851. package/dist/commands/workflow-errors.js +1 -1
  852. package/dist/commands/workflow-errors.js.map +1 -1
  853. package/dist/commands/workflow.js +1 -1
  854. package/dist/commands/workflow.js.map +1 -1
  855. package/dist/config-store.d.ts +8 -1
  856. package/dist/config-store.d.ts.map +1 -1
  857. package/dist/config-store.js +60 -0
  858. package/dist/config-store.js.map +1 -1
  859. package/dist/cross-host-executor.d.ts.map +1 -1
  860. package/dist/cross-host-executor.js +6 -1
  861. package/dist/cross-host-executor.js.map +1 -1
  862. package/dist/daemon-lifecycle.d.ts +11 -0
  863. package/dist/daemon-lifecycle.d.ts.map +1 -1
  864. package/dist/daemon-lifecycle.js +61 -9
  865. package/dist/daemon-lifecycle.js.map +1 -1
  866. package/dist/daemon-reachability.js +1 -1
  867. package/dist/daemon-reachability.js.map +1 -1
  868. package/dist/daemon-start-lock.d.ts +24 -2
  869. package/dist/daemon-start-lock.d.ts.map +1 -1
  870. package/dist/daemon-start-lock.js +125 -4
  871. package/dist/daemon-start-lock.js.map +1 -1
  872. package/dist/index.d.ts +2 -0
  873. package/dist/index.d.ts.map +1 -1
  874. package/dist/index.js +2 -0
  875. package/dist/index.js.map +1 -1
  876. package/dist/lazy-program.d.ts.map +1 -1
  877. package/dist/lazy-program.js +1 -0
  878. package/dist/lazy-program.js.map +1 -1
  879. package/dist/lib/scope/logical-checkbox.d.ts.map +1 -1
  880. package/dist/lib/scope/logical-checkbox.js +14 -0
  881. package/dist/lib/scope/logical-checkbox.js.map +1 -1
  882. package/dist/lib/scope/scope-fs.d.ts.map +1 -1
  883. package/dist/lib/scope/scope-fs.js +36 -2
  884. package/dist/lib/scope/scope-fs.js.map +1 -1
  885. package/dist/mcp-server.d.ts.map +1 -1
  886. package/dist/mcp-server.js +49 -8
  887. package/dist/mcp-server.js.map +1 -1
  888. package/dist/recap-seat.d.ts +28 -0
  889. package/dist/recap-seat.d.ts.map +1 -0
  890. package/dist/recap-seat.js +41 -0
  891. package/dist/recap-seat.js.map +1 -0
  892. package/dist/seat-attention.d.ts +24 -0
  893. package/dist/seat-attention.d.ts.map +1 -0
  894. package/dist/seat-attention.js +119 -0
  895. package/dist/seat-attention.js.map +1 -0
  896. package/dist/terminal-window.d.ts.map +1 -1
  897. package/dist/terminal-window.js +3 -3
  898. package/dist/terminal-window.js.map +1 -1
  899. package/package.json +1 -1
  900. package/tui/dist/attention/attention-model.d.ts.map +1 -1
  901. package/tui/dist/attention/attention-model.js +13 -5
  902. package/tui/dist/attention/attention-model.js.map +1 -1
  903. package/tui/dist/config/config-model.d.ts.map +1 -1
  904. package/tui/dist/config/config-model.js +6 -1
  905. package/tui/dist/config/config-model.js.map +1 -1
  906. package/tui/dist/config/pairing.d.ts +49 -0
  907. package/tui/dist/config/pairing.d.ts.map +1 -0
  908. package/tui/dist/config/pairing.js +98 -0
  909. package/tui/dist/config/pairing.js.map +1 -0
  910. package/tui/dist/daemon-client.d.ts +11 -1
  911. package/tui/dist/daemon-client.d.ts.map +1 -1
  912. package/tui/dist/daemon-client.js +18 -5
  913. package/tui/dist/daemon-client.js.map +1 -1
  914. package/tui/dist/detail.d.ts +3 -0
  915. package/tui/dist/detail.d.ts.map +1 -1
  916. package/tui/dist/detail.js +6 -1
  917. package/tui/dist/detail.js.map +1 -1
  918. package/tui/dist/execution/execution-model.d.ts +2 -0
  919. package/tui/dist/execution/execution-model.d.ts.map +1 -1
  920. package/tui/dist/execution/execution-model.js +10 -3
  921. package/tui/dist/execution/execution-model.js.map +1 -1
  922. package/tui/dist/health/health-model.d.ts.map +1 -1
  923. package/tui/dist/health/health-model.js +27 -11
  924. package/tui/dist/health/health-model.js.map +1 -1
  925. package/tui/dist/hydrate.d.ts.map +1 -1
  926. package/tui/dist/hydrate.js +12 -6
  927. package/tui/dist/hydrate.js.map +1 -1
  928. package/tui/dist/main.js +6 -1
  929. package/tui/dist/main.js.map +1 -1
  930. package/tui/dist/navigator.js +1 -1
  931. package/tui/dist/navigator.js.map +1 -1
  932. package/tui/dist/render.d.ts.map +1 -1
  933. package/tui/dist/render.js +44 -29
  934. package/tui/dist/render.js.map +1 -1
  935. package/tui/dist/scopes/scopes-model.d.ts +9 -0
  936. package/tui/dist/scopes/scopes-model.d.ts.map +1 -1
  937. package/tui/dist/scopes/scopes-model.js +27 -1
  938. package/tui/dist/scopes/scopes-model.js.map +1 -1
  939. package/tui/dist/state.d.ts.map +1 -1
  940. package/tui/dist/state.js +6 -5
  941. package/tui/dist/state.js.map +1 -1
  942. package/tui/dist/stylize.d.ts.map +1 -1
  943. package/tui/dist/stylize.js +4 -0
  944. package/tui/dist/stylize.js.map +1 -1
  945. package/tui/dist/terminals/open-window.d.ts +21 -1
  946. package/tui/dist/terminals/open-window.d.ts.map +1 -1
  947. package/tui/dist/terminals/open-window.js +46 -9
  948. package/tui/dist/terminals/open-window.js.map +1 -1
  949. package/tui/dist/terminals/terminal-model.d.ts +8 -1
  950. package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
  951. package/tui/dist/terminals/terminal-model.js +25 -8
  952. package/tui/dist/terminals/terminal-model.js.map +1 -1
  953. package/tui/dist/topology/host-label.d.ts +2 -0
  954. package/tui/dist/topology/host-label.d.ts.map +1 -1
  955. package/tui/dist/topology/host-label.js +7 -1
  956. package/tui/dist/topology/host-label.js.map +1 -1
  957. package/tui/dist/types.d.ts +20 -3
  958. package/tui/dist/types.d.ts.map +1 -1
@@ -39,14 +39,19 @@ This chapter covers **which agent runs in a seat and how OpenRig talks to it**.
39
39
  sandbox, another machine) is the [execution platform chapter](execution-platform-contract.md). The two are separate on purpose:
40
40
  the same harness can run in many places, and one place can host many harnesses.
41
41
 
42
- ## 1. Plain preset or runner preset?
42
+ ## 1. Plain preset, runner preset, or OpenRig-hosted protocol runner?
43
43
 
44
- | | Plain community preset | Runner preset (`runner: true`) |
45
- |---|---|---|
46
- | **What runs in the pane** | The harness's own terminal app | A small program you maintain, *the runner*, which hosts the agent (for example an ACP agent over stdio) |
47
- | **How OpenRig reads activity** | From the screen: a changing screen reads working; a quiet one reads **unknown**, never idle | From the runner's reports: working, idle, needs input |
48
- | **How input arrives** | Typed into the app's prompt | Typed into the runner, which turns each submitted message into one agent prompt |
49
- | **Choose it when** | The harness has a usable terminal UI (Cursor, Hermes, OpenClaw examples) | The harness speaks a protocol rather than a screen (ACP, JSON-RPC, stream-JSON), or you can report turn boundaries reliably |
44
+ | | Plain community preset | Runner preset (`runner: true`) | OpenRig-hosted protocol runner (`protocol: pi-rpc`) |
45
+ |---|---|---|---|
46
+ | **What runs in the pane** | The harness's own terminal app | A small program you maintain, *the runner*, which hosts the agent (for example an ACP agent over stdio) | OpenRig's own Pi runner, which starts your binary (`command`) in Pi's RPC mode |
47
+ | **How OpenRig reads activity** | From the screen: a changing screen reads working; a quiet one reads **unknown**, never idle | From the runner's reports: working, idle, needs input | From the Pi runner's reports, through the same channel as built-in Pi; identity is the session file Pi's `get_state` reports |
48
+ | **How input arrives** | Typed into the app's prompt | Typed into the runner, which turns each submitted message into one agent prompt; a message sent mid-turn waits | Pi's input: a submitted block is a prompt, a message sent while busy steers the current turn, `/followup` queues after it and `/abort` cancels it |
49
+ | **Choose it when** | The harness has a usable terminal UI (Cursor, Hermes, OpenClaw examples) | The harness speaks a protocol rather than a screen (ACP, JSON-RPC, stream-JSON), or you can report turn boundaries reliably | Your harness is a Pi fork, or speaks Pi's CLI and JSONL RPC protocol |
50
+
51
+ **For the third shape, you promise your binary's Pi-RPC compatibility at a version you name in `limits`.** OpenRig doesn't
52
+ test each fork. It can't be combined with `runner`, `launch_result`, `names_conversation`, `startup_assisted` or
53
+ `first_input`. The flags it must accept are in
54
+ [Pi-compatible RPC harnesses](community-harness-presets.md#pi-compatible-rpc-harnesses-protocol-pi-rpc).
50
55
 
51
56
  **If your harness works well as a terminal app, a plain preset is enough. Use a runner only when you can report state
52
57
  honestly.** A runner that guesses is worse than a quiet screen read as unknown.
@@ -78,7 +83,20 @@ limits:
78
83
  - **A preset without `runner` behaves exactly as today,** and so does a session recorded before the field existed.
79
84
  - **The other fields keep their existing meanings:**
80
85
  - `first_input: true` passes the seat's first startup turn in a file named by `OPENRIG_FIRST_INPUT`;
81
- - `passes_model: true` passes the seat's declared model as `OPENRIG_MODEL`.
86
+ - `passes_model: true` passes the seat's declared model as `OPENRIG_MODEL`;
87
+ - `launch_wrapper: true` declares that the runner applies a member's configured wrapper to its native child.
88
+
89
+ **Launch wrapper.** `launch_wrapper` is an optional boolean in format 1 and requires `runner: true`. When the member
90
+ has a wrapper and its runner preset declares `launch_wrapper: true`, OpenRig passes `OPENRIG_LAUNCH_WRAPPER` as a JSON array of resolved argv strings.
91
+ The runner must exec its native child as `<argv...> <agent> <args>`, preserving argument boundaries, and keep its own
92
+ process outside the wrapper. The runner must remove `OPENRIG_LAUNCH_WRAPPER` from the environment it passes to the wrapper
93
+ and native child; the handoff belongs to the runner only. The wrapper must `exec` the agent in place. If wrapping fails,
94
+ the runner must never fall back to an unwrapped spawn. A runner preset without the flag is refused at preflight and launch (not schema validation) when a wrapper is
95
+ configured: `launch_wrapper unsupported: the community preset "<runtime>" runs a runner without launch_wrapper: true; no agent started. Add launch_wrapper: true to the preset if its runner applies OPENRIG_LAUNCH_WRAPPER, or remove launch_wrapper from this member.`
96
+ A plain preset needs no flag: OpenRig prefixes its command
97
+ immediately before the preset's native command, after OpenRig's launcher assignments (for example,
98
+ `/usr/bin/env OPENRIG_LAUNCH_RESULT=… <wrapper> <preset.command>`), at the same seam as Codex. OpenRig never sets
99
+ `OPENRIG_LAUNCH_WRAPPER` for a plain preset and removes any inherited value.
82
100
 
83
101
  ## 3. Identity: report the conversation once, in the launch record
84
102
 
@@ -223,8 +241,15 @@ permission or input handling in existing built-in runtimes or require every poss
223
241
 
224
242
  - **On `/abort` or Ctrl-C:** send the agent's cancel (for ACP, the `session/cancel` notification, which has no reply),
225
243
  and record when you sent it.
226
- - A person cancels by typing `/abort` in the seat's pane. A `/abort` sent with `rig send` arrives inside a From/To
227
- envelope, so it's an ordinary prompt.
244
+ - **Sending it:** a person types `/abort` in the seat's pane. From another seat or a script,
245
+ `rig send <seat> "/abort" --raw` pastes exactly `/abort`, with no From/To envelope, and presses Enter, so a runner
246
+ that follows section 5 gets the control. 0.7.8's native runs typed it in the pane; a raw send hasn't been run
247
+ natively. An ordinary `rig send` wraps its text in a From/To envelope, so there `/abort` is an ordinary prompt.
248
+ - **Not while the seat needs input:** a raw send is still refused while the seat reads needs input
249
+ (`target_needs_input`), for example while the runner holds a permission request for a person (section 7). Type
250
+ `/abort` in the pane then.
251
+ - **A sent `/abort` is a request.** A typed control can't name the turn it was meant for: the runner cancels whatever
252
+ turn is running when it reads it. Whether a turn was cancelled is the runner's `Stop` / `cancelled` below.
228
253
  - **Report "cancelled" only when the agent says so:** for ACP, when `session/prompt` returns `stopReason: "cancelled"`.
229
254
  Then post `Stop` / `cancelled`.
230
255
  - **Whether the provider stopped work or spend is unknown.** Don't claim it.
@@ -280,9 +305,31 @@ that runs without asking gains no approval step. Ordinary conversation and `rig
280
305
  | replies with just a no ("no", "deny", "reject", "stop" …), or denies it in the Feed | the agent's reject (`reject_once`, else `reject_always`), or, with no reject option, cancelled. A person's no is never a grant |
281
306
  | routes or hands it to another person | the ask waits for that person, who gets the same options; their answer counts as if they'd been asked. The handoff itself never permits |
282
307
  | routes or hands it to an agent seat | that seat gets no options. The request waits until that row is closed, by the seat or a person. Closed as done without a choice (including a drop), or as failed, is no answer, so it's permitted. Closed as denied (the Feed's deny, `--closure-reason denied`, or the state `denied`) is a no. A row set to the state `canceled` cancels the request, and a further handoff is followed; a person it reaches gets the same options. Or the request waits until the agent's turn ends |
283
- | closes it without choosing: drop, approve, or other typed words | no answer, so the default applies: **permitted** with the agent's allow, and OpenRig records the permit (below) |
308
+ | closes it with no answer at all (a drop) | no answer, so the default applies: **permitted** with the agent's allow, and OpenRig records the permit (below) |
309
+ | answers in other words that nobody decides on | after 0.7.11, **the request waits**: the words are kept, never the default permit, until an explicit decision (`rig seat decide-permission`) or the turn's end |
284
310
  | doesn't answer | the request **stays pending and visible** (the seat reads needs input) until the agent's turn ends. It's never timed out into a grant. |
285
311
 
312
+ **After 0.7.11, a person's answer goes to an agent that decides, or waits:**
313
+ - **Who decides:** this host's receiving agent (`agents.operator_session`, else the kernel operator
314
+ `operator-agent@kernel`), unless it's the runner that asked (the request's first row, however it was handed on) or
315
+ a seat this host doesn't have; then the kernel operator, unless it's the runner that asked.
316
+ - **What happens to the answer:** a click, a plain yes or no, other words, or Steering's Approve or Deny on the request
317
+ (a yes or a no) is kept on the row it was given on. The request is handed to that agent with the person's whole
318
+ answer, the question and the options, and the person is told once who decides and in what recorded state.
319
+ - **The runner keeps reading `pending`.** The agent decides with `rig seat decide-permission <askId> --option <id>
320
+ --reason "…"` (`POST <base>/api/activity/permission-requests/<askId>/decide` with `{"optionId", "reason"}`).
321
+ - It accepts only an option the agent offered.
322
+ - It records an agent's decision: who decided, why, and the person's words.
323
+ - A request that's no longer pending comes back as it is, and nothing is written.
324
+ - **A kept answer counts only through an explicit decision.** If the row is closed without one (an agent's or a
325
+ person's ordinary close), the answer stays kept and the request waits; `rig seat decide-permission` still settles it.
326
+ A refusing close (denied) is still a no.
327
+ - **With no agent that can decide,** any answer is kept, the request waits, and the person is told once that the tool
328
+ hasn't run and how to decide directly (`rig seat decide-permission`) or set up a receiving agent. A handoff that fails
329
+ leaves the request waiting the same way.
330
+ - **No timeout refuses a request.** If the turn ends first, nothing is sent.
331
+ - **The default permit stays** for a request nobody can be asked about (above), and one closed with no answer at all.
332
+
286
333
  - **An answer reaches only the live request it was asked for,** once. A request from an earlier occupant reads
287
334
  `stale`, and one withdrawn at the turn's end reads `withdrawn`. Neither can take a later answer.
288
335
  - **Text typed into the runner's pane, an agent's own text, and `rig send` are never an answer.** While a request waits
@@ -327,7 +374,9 @@ that runs without asking gains no approval step. Ordinary conversation and `rig
327
374
  `no_allow_offered` when it was closed without a choice and the agent offered no allow option), `withdrawn` or
328
375
  `stale`.
329
376
  - **From 0.7.9, `said`,** with `permitted` or `refused` (`no_allow_offered`), is the person's own words, when they
330
- answered in words that were neither a choice nor a plain yes or no. It never changes the outcome.
377
+ answered in words that were neither a choice nor a plain yes or no. It never changes the outcome. After 0.7.11, words are never
378
+ answered with the default permit (they keep the request waiting), so `said` no longer arrives. A runner that handles
379
+ it keeps working.
331
380
  - **A seat grant reads and withdraws only its own launch's requests.** Once its occupant is replaced, the grant is
332
381
  refused (`409 activity_grant_stale`), even during a read's wait.
333
382
  3. **Deliver** `{"outcome": {"outcome": "selected", "optionId": "<optionId>"}}` to the agent once, and only while that
@@ -91,7 +91,11 @@ and `severity=info`. CLI/TUI call this **needs diagnosis**, not a confirmed
91
91
  warning. Enabled diagnosis policy admits one bounded packet even though the
92
92
  product denominator is unknown. Ordinary unavailable/stale detector records
93
93
  remain ineligible. Diagnosis and human-notification traffic are excluded from
94
- the numerator and cannot recursively generate another investigation.
94
+ the numerator and cannot recursively generate another investigation. So is the
95
+ daemon's own bookkeeping: transitions by system actors (`*@system` and the
96
+ bare `system` of claim handover) and daemon notes recorded under any actor
97
+ (`auto-unparked:`, `blocker custody moved `, `park wake `, `parked-owner `).
98
+ The reported `transitionIds` are the counted transitions.
95
99
 
96
100
  The agent reads the actual evidence, including beyond the supplied references,
97
101
  and resolves the semantic outcome granularity and consequence boundary. Use the
@@ -97,6 +97,24 @@ missing tools or logins, kernel startup, a closed viewing terminal and recovery
97
97
  before choosing an action. A healthy daemon doesn't by itself mean the project's seats are ready: check
98
98
  `rig ps --nodes --rig <rig-name>`.
99
99
 
100
+ If the whole team stopped when a herdr terminal closed, OpenRig or its tmux server was started from inside that
101
+ terminal: herdr-core ends every process started there when the terminal closes. `rig daemon start` no longer passes a
102
+ herdr terminal's scope on, but processes started before that keep it until they restart. OpenRig never restarts them
103
+ for you; restart at a time you choose, from a terminal outside herdr.
104
+
105
+ With `terminal.tmux_server` at its default (`inherit`), OpenRig puts seats on the tmux server of the shell that
106
+ started it, usually your own default server. If that server was already running, and you had started it from a herdr
107
+ terminal, it carries that terminal's scope. OpenRig can't prevent this, because the server is yours.
108
+ The same applies when a command like `rig chatroom watch`, run in a herdr terminal, starts the default server. Start
109
+ tmux outside herdr, or use `terminal.tmux_server isolated` (see `tmux-servers.md`), which gives OpenRig a server it
110
+ starts itself.
111
+
112
+ The daemon keeps `HC_SESSION` and `HC_SOCKET`. The herdr-core they select is the one the herdr-app provider starts
113
+ viewers in; `rig terminal status --provider herdr-app` names it (`core` and `assumption`), as do open failures
114
+ (`viewer_start_failed`, `herdr_app_unavailable`) and the note when a window has not confirmed showing a view. If your
115
+ herdr-app window is attached to a different herdr-core than the daemon's, its viewers will not appear there; start the
116
+ daemon with that core's `HC_SESSION` and `HC_SOCKET`.
117
+
100
118
  ### The agent is waiting for permission or can't reach the daemon
101
119
 
102
120
  Read [Have your agent configure permissions](getting-started.md#have-your-agent-configure-permissions)
@@ -0,0 +1,149 @@
1
+ # OpenRig views in herdr-app
2
+
3
+ herdr-app (Herdr 2, the desktop app on herdr-core) can show OpenRig's terminal views inside its own window. A view
4
+ opens as a **Rig view**: an equal grid of the view's seats, each with a title row (`<agent> · <slice>`), padded to a
5
+ full grid. Rig views live in OpenRig's own herdr-app layout, **Rig** (`layouts/rig.json`), beside your tabs. A strip
6
+ above them switches between **Your tabs** and each view.
7
+
8
+ Nothing here needs a desktop display or SSH: the view opens in the herdr-app window the request came from.
9
+ herdr-app has to run on the same machine as the OpenRig daemon: OpenRig reaches it through its control socket
10
+ (`<app home>/herdr-app.sock`) and writes its mods and layout into that app home. An app on another machine, connected
11
+ to this machine's herdr-core over SSH, isn't supported.
12
+
13
+ ## Set up
14
+
15
+ Nothing to install by hand: opening a view installs OpenRig's four mods (rig-strip, rig-cell-header, rig-pad,
16
+ rig-ended) and updates them when OpenRig is updated.
17
+
18
+ - The mods go to `<app home>/mods/rig-*`. The app home is herdr-app's own: `HERDR_APP_HOME`, else
19
+ `$XDG_CONFIG_HOME/herdr-app`, else `~/.config/herdr-app`. `--app-home <dir>` on `rig terminal open` names another.
20
+ - OpenRig owns only the files it ships there (recorded in `<app home>/openrig/mods.json`). An update replaces those
21
+ and nothing else in the folder. Mods you install yourself, from any source, are never touched.
22
+ - To move between a view's cells from the keyboard, bind the strip's actions in `keys.json`, section `layout:rig`
23
+ (your agent can add it, as for any herdr-app key):
24
+ `"layout:rig": { "alt-left": "rig-strip.left", "alt-right": "rig-strip.right", "alt-up": "rig-strip.up", "alt-down": "rig-strip.down" }`.
25
+ In the Rig layout these replace herdr-app's `global` defaults for the same keys (`pane.go`, `agent.prev`/`agent.next`),
26
+ which keep working on your other layouts. A key bound in `terminal` wins while a cell has focus, so pick keys that
27
+ aren't bound there. Once you edit `keys.json`, herdr-app treats it as yours and stops adding new default shortcuts.
28
+ - An open never replaces a mod you changed: that folder stays as it is, the view opens anyway, and the open's notes
29
+ name the folder and why. Only a mod a view needs that is missing and can't be installed stops an open.
30
+
31
+ ## Open a view
32
+
33
+ - **From the TUI inside herdr-app:** Terminals, choose a view (Enter previews it), then **Open terminals**. The TUI
34
+ recognises that it runs in a herdr-core terminal of a herdr-app window on this machine, and the preview and the
35
+ open both use that window, so the plan you previewed is the one that opens. The preview says the view opens in
36
+ this window; it shows no desktop or SSH recipe. A shared TUI viewed from a herdr-app terminal does the same. The
37
+ kernel view opens in its narrow arrangement there (one seat per page): the window's width isn't the TUI's.
38
+ - **From a shell:** `--provider herdr-app` opens the view in the herdr-app window you run it in. Inside a herdr-app terminal, plain `rig terminal open <view>` does the same when that window is answering. `--window` always asks for a new desktop window.
39
+
40
+ | Command | Where the view opens |
41
+ |---|---|
42
+ | `rig terminal open <view> --provider herdr-app [--app-home <dir>]` | In the herdr-app window this runs in (requires the window to answer). |
43
+ | `rig terminal open <view>` | Inside a herdr-app terminal when the window is answering, in that herdr-app window; otherwise a desktop window. |
44
+ | `rig terminal open <view> --window` | Always asks for a new desktop terminal window, even inside a herdr-app terminal. |
45
+
46
+ The herdr-app window must be answering on its socket (`<app home>/herdr-app.sock`); otherwise an explicit open fails and says
47
+ so. Finding the socket file is how OpenRig guesses you are in a herdr-app window; whether the window is reachable is
48
+ checked by asking it. When a plain `rig terminal open <view>` in a herdr-app terminal finds that the socket does not
49
+ answer, it says so and opens a desktop window instead; `--provider herdr-app` never
50
+ falls back to a desktop window or an SSH recipe.
51
+
52
+ What an open does, in order:
53
+
54
+ 1. Each viewer is recorded first (`$OPENRIG_HOME/private/herdr-app/clients/`), then started by herdr-core outside
55
+ every tab (`hc run --bg --no-parent`, labelled `openrig.*`). A local viewer runs the view's tile for its seat, as in
56
+ [terminal sessions](terminal-sessions.md): it shows the seat. An interactive cell starts with the read-only tile and
57
+ takes no input until herdr-app has shown the view (step 3); then its writable tile takes over and attaches to the
58
+ seat with plain tmux. A read-only cell only shows. A seat on another host opens as its own ssh attachment, writable
59
+ or read-only as that view composes it. If the seat's session ends, the viewer says so and waits; it never leaves a
60
+ shell in the cell.
61
+ 2. One atomic write of `layouts/rig.json`: your current layout, with OpenRig's stack beside your tab block. Your own
62
+ layout file is never written. A `rig.json` OpenRig didn't write is never overwritten.
63
+ 3. The Rig layout is shown, the view is selected once herdr-app confirms it shows the new file, and the keyboard
64
+ goes to the first live cell. Once herdr-app has acknowledged the layout with the view, OpenRig writes the gate file
65
+ of each local interactive cell, on every page (including pages the strip hasn't shown yet, since the strip moves
66
+ between pages on its own). These cells take input a fraction of a second later (they check every 0.2 s). Anything
67
+ that reached a local interactive cell before that, typed or written to its terminal (`hc send`), is dropped, not
68
+ delivered late. Remote cells run their ssh attachments from the start and don't wait for this gate. The open
69
+ reports a view herdr-app hasn't confirmed as unconfirmed, not opened; its viewers keep running and it stays in the
70
+ Rig layout, and its local interactive cells take input once herdr-app shows it. OpenRig keeps watching for 10
71
+ minutes, across a daemon restart; if herdr-app hasn't shown it by then, each local interactive cell says so, takes
72
+ no input, and names the command that opens the view again (`rig terminal open <view> --provider herdr-app`).
73
+
74
+ Other layouts and other herdr-app windows don't show Rig views. Each window (app home) has its own.
75
+
76
+ ## The keyboard
77
+
78
+ - An open puts the keyboard on the new view's first live cell.
79
+ - Entering a view again (a click in the strip, or herdr-app restarting with it shown) returns the keyboard to the cell
80
+ you were last in there, else the first live cell.
81
+ - **Your tabs** gives the keyboard back to your own pane.
82
+ - Apart from an open, OpenRig's own rewrites (another view closing, a cell ending) leave the keyboard where it is,
83
+ whether you are in a view or in your tabs, with one exception: when the cell you were last in ends while its view is
84
+ shown, the keyboard goes to that view's first live cell, if one is left.
85
+ - Once the view is shown, an interactive cell for a local seat attaches its tile to the seat with plain tmux, as a
86
+ writable tile does ([terminal sessions](terminal-sessions.md#replacing-a-seats-session)). Until then it only shows
87
+ the seat, and anything typed in it is dropped. A cell for a seat on another host is its ssh attachment from the
88
+ start, so an interactive one takes input as soon as it runs. When the seat's session is replaced (a handover, a fresh
89
+ launch, a restart), the tile follows the same seat to its new session, except an ssh tile on an isolated local tmux
90
+ server ([terminal sessions](terminal-sessions.md#replacing-a-seats-session)).
91
+
92
+ ## What OpenRig keeps in the app home
93
+
94
+ All under `<app home>/openrig/`:
95
+
96
+ | File | What it holds |
97
+ |---|---|
98
+ | `mods.json` | The files OpenRig shipped to `mods/rig-*`, so an update replaces only those. |
99
+ | `ack.json` | Written by the strip: the last layout revision herdr-app shows and the terminals it references. A viewer ends only once this shows its cell is gone. |
100
+ | `strip.json` | Written by the strip: the cell you were last in per view, and the view shown. herdr-app gives a mod new storage whenever its props change, which is every OpenRig write, so this is kept as a file. |
101
+
102
+ ## Close a view
103
+
104
+ ```sh
105
+ rig terminal close <rv-id> [--app-home <dir>] # the id is in the open result's `space`
106
+ ```
107
+
108
+ The view's cells leave `rig.json` first. A viewer ends only after herdr-app confirms it shows a layout without it, or
109
+ when the Rig layout isn't shown (herdr-app then reads the new file when it is). Only viewers OpenRig started (its
110
+ record, its labels and its exact command all match) are ended. Seats are never touched. Anything uncertain is left
111
+ running and named in the result.
112
+
113
+ If a viewer ends some other way (killed outside OpenRig, herdr-core restarted), OpenRig rewrites its cell as an
114
+ ended cell straight away. Views OpenRig recorded keep that owner across a daemon restart: when the daemon starts, it
115
+ reconciles each app home it has views in (a viewer that ended while it was down is rewritten then) and finishes any
116
+ pending ends. If `hc events` can't run (herdr-core missing or down), the watcher tries again after 5 s, then waits
117
+ twice as long each time, up to 5 minutes. Stopping the daemon ends only its own `hc events` watcher and timers; viewers
118
+ and views stay.
119
+
120
+ ## Which herdr-core
121
+
122
+ ```sh
123
+ rig terminal status --provider herdr-app [--app-home <dir>]
124
+ ```
125
+
126
+ `core` and `assumption` in the result name the herdr-core the daemon's `hc` runner starts and ends viewers in: the
127
+ daemon's `HC_SESSION` (else `default`) and `HC_SOCKET` if set when the daemon started. The herdr-app window must be a
128
+ client of that same core. Terminal addresses are per core, so a window attached to another core would show other
129
+ terminals, or none, in the view's cells. Open failures (`herdr_app_unavailable`, `viewer_start_failed`) and the note
130
+ when a window has not acknowledged a write also name the daemon's core (`HC_SESSION`/`HC_SOCKET`) so a mismatch is
131
+ visible straight away.
132
+
133
+ A status or a preview only reads: it starts no herdr-core process and creates nothing. OpenRig watches herdr-core's
134
+ events (`hc events`) and creates its viewers folder only when it opens or closes a view, or when it starts with views
135
+ already recorded.
136
+
137
+ ## Limits
138
+
139
+ - A Rig view is a layout inside herdr-app, not a herdr tab: other windows and other layouts don't show it.
140
+ - Following a task (`--follow`) isn't available in herdr-app yet.
141
+ - When a viewer ends unexpectedly, herdr-app removes its block and collapses the layout, which briefly opens the Files
142
+ panel on that cell's folder until OpenRig's rewrite restores the layout. Viewers start in OpenRig's own empty
143
+ folder (`$OPENRIG_HOME/private/herdr-app/viewers`). Planned closes never trigger this.
144
+ - OpenRig doesn't yet check that the window runs on the daemon's herdr-core (`core` in `rig terminal status`); it
145
+ relies on both using the same session on the same machine.
146
+ - `POST /api/terminal/open` (and `POST /api/terminal/close`) carries no bearer middleware, matching the daemon's other
147
+ open routes; an open writes `mods/rig-*`, `openrig/mods.json` and `layouts/rig.json` into the named `--app-home` once
148
+ `herdr-app` answers a `status` request on `<app home>/herdr-app.sock`.
149
+ - Runtime-tested on Linux only; macOS and Windows haven't been tried on real machines.
@@ -78,16 +78,25 @@ entry. The entry holds secret names, never values:
78
78
  - It's a pointer, not the row's body: the member reads the row under its grant.
79
79
  - A receiver should tolerate a repeated `qitem_id`. A ring accepted just before the daemon stops, before it's recorded,
80
80
  is rung again on recovery, the same at-least-once window a terminal wake has.
81
- - It waits up to 10 seconds and doesn't follow redirects.
81
+ - It waits up to 10 seconds and doesn't follow redirects. A ring with no answer by then may still have reached the
82
+ trigger, so it reads unknown, not failed, and durable recovery doesn't repeat that recorded wake (other recovery paths
83
+ can still ring it again). The member sees the work when it next checks its rows.
82
84
  - **What the trigger should do:** start a run that lists the member's rows (`rig_queue_list` with `owned`) and claims its work.
83
85
 
84
86
  ## What the record says, and doesn't
85
87
 
86
88
  These facts stay separate on the row:
87
89
  - **Wake:** with a trigger, the row's wake result is `wake-accepted:webhook (<url_ref>) answered <status>` when the trigger took the
88
- ring, or `failed:webhook …`. Accepted means the tool's trigger answered, not that the member read the row.
89
- - With no trigger, the result is `unroutable`, and OpenRig tells the person: the operator seat when it's a person, else whoever
90
- created the row.
90
+ ring, `indeterminate:webhook …` when it didn't answer in time, or `failed:webhook …`. Accepted means the tool's trigger
91
+ answered, not that the member read the row.
92
+ - With no trigger, the result is `unroutable`. The member finds work by reading its own inbox and picks a row up by claiming
93
+ it, so a row gets no finding of its own. Work it leaves unclaimed past the stuck sweep's unclaimed age
94
+ (`queue.stuck_sweep_unclaimed_age_minutes`, 60 by default) is listed in one standing notice per member. The notice goes to
95
+ the operator seat when it's a person, else the rows' creator when they all share one, else the operator agent, else the
96
+ member itself. A notice to a creator lists only that creator's rows: when another creator's row joins, the notice moves to
97
+ the next recipient. It says whether the member has read its own pending inbox recently: a check-in, never a receipt or a
98
+ claim. A member with a declared route (a delegation parent or `escalates_to`) gets one finding per unclaimed row at that
99
+ route instead.
91
100
  - It tells the person too when the member was rung but hasn't claimed the work by the stuck sweep's unclaimed age
92
101
  (`queue.stuck_sweep_unclaimed_age_minutes`, 60 by default).
93
102
  - The member sees new work when it checks: when it's rung, when its person asks it to, or on a schedule the tool runs.
@@ -95,7 +104,7 @@ These facts stay separate on the row:
95
104
  - **Result:** the closing transition and its resolution, or the handoff.
96
105
  - **Notification:** where a person asked, Slack's posted receipt. A posted notice isn't the person's acknowledgment.
97
106
 
98
- **On the team:** `rig_team` lists the rig's hosted members (roster entries marked hosted that aren't one of its nodes), with their capabilities and caveat, no pane, and activity `unknown`.
107
+ **On the team:** `rig_team` lists the rig's hosted members (roster entries marked hosted that aren't one of its nodes), with their capabilities and caveat, no pane, and activity `unknown`. With an external grant offering `team/list`, call it without `rigId` to discover the connected team. It selects the grant's sole rig, or returns only its granted names when a choice is needed.
99
108
  OpenRig doesn't observe a hosted member between its calls, so it never reads idle. `rig roster find` shows it the same way.
100
109
  - **Presence:** each entry carries `presence`, which says what OpenRig last saw of the member. It isn't pickup, and `null` means unknown:
101
110
  - `lastCallAt`: its last authenticated call to this host's `rig mcp serve --http`, recorded at most once a minute in
@@ -103,6 +112,33 @@ OpenRig doesn't observe a hosted member between its calls, so it never reads idl
103
112
  - `lastWake`: its latest ring and the result, among its 50 most recent rows.
104
113
  - `rig roster show` and `find` show the last call; the last ring is in `rig_team`.
105
114
 
115
+ ### Check-in status
116
+
117
+ A connected assistant (a roster member marked `hosted: true`) checks in each time it reads its own pending inbox (through the queue list, as the MCP list tool does
118
+ when it lists the member's own work). Other calls it makes don't count yet. Its status compares its last check-in with
119
+ what its roster entry states: a cadence (`check_in_minutes`), or that it checks in when a person asks it
120
+ (`check_in_on_request: true`):
121
+
122
+ | Status | Meaning |
123
+ |---|---|
124
+ | `checking-in` | its last check-in is no older than twice its stated cadence |
125
+ | `check-in-overdue` | its last check-in is older than that: its schedule may be off or waiting for an approval |
126
+ | `no-check-in-yet` | no check-in recorded for it on this daemon, whatever its entry states |
127
+ | `on-request` | its entry says it checks in when a person asks it |
128
+ | `disconnected` | reserved for a recorded revocation or removal of its connection. Nothing records one yet, so a revoked assistant reads overdue (or unknown, with no cadence) |
129
+ | `unknown` | its entry states neither, its statement can't be used, or its check-ins couldn't be read; the reason says which, and its last check-in is shown. OpenRig assumes no cadence, so this never reads idle or overdue |
130
+
131
+ Each place it's shown gives the evidence with it, for example `overdue: last check-in 2026-11-12T13:05:00Z, expected
132
+ every 60 min; its schedule may be off or waiting for an approval`.
133
+
134
+ A stated cadence is its person's statement: neither reading proves the assistant's own schedule ran, or that it picked
135
+ anything up. It's a status only. Work addressed to a member that isn't checking in still queues and is rung as before, a check-in
136
+ isn't pickup (pickup is its claim), and no check-in doesn't mean it's idle, failed or safe. `GET /api/queue/hosted-members`
137
+ gives this daemon's host id and each member on this host with its status, last check-in and stated cadence (with the
138
+ reason when it's unknown); `rig roster show` and `find` show it as `Check-in:`, for a team with or without terminal seats.
139
+ When the member has unclaimed work, the standing notice described above states the same status in its `check-ins:`
140
+ line; when that notice is filed doesn't change.
141
+
106
142
  ## Revoke
107
143
 
108
144
  `rig mcp token revoke grok` refuses its next request. The rows it worked, and their answers, stay.
@@ -129,6 +165,10 @@ and nothing else is offered:
129
165
  - It reads the items it sent and the items addressed to it from those seats, never the team's internal items.
130
166
  - With `queue`/`claim` and `queue`/`update`, it claims and closes only items addressed to its own seat that it can read,
131
167
  and waits (blocked) only on an item it names and can read. Its answers hide what reading the item hides.
168
+ - **A first task without a seat address:** with `--task-destination <member@rig>` on the same `rig mcp serve`, a
169
+ `rig_queue_create` that leaves out `destination` goes to that receiver. The operator sets it; a caller can't. It must be
170
+ exactly one existing local node within that request's grant, or nothing is written. An explicit `destination` works as
171
+ before.
132
172
  - **Two assistants together:** a grant with `team`/`list` sees its rigs' seats with `rig_team`, and may address and hear from
133
173
  another connected assistant's seat. A grant without it never reaches a seat in the service's caller form
134
174
  (`cus-<id>-<connection>@<rig>`), so an existing connection keeps the reach it had.
@@ -137,8 +177,8 @@ and nothing else is offered:
137
177
  - **Queued:** the item exists and is `pending` with no claim.
138
178
  - **Picked up:** the receiver's claim (`in-progress`).
139
179
  - **Answered:** closed `done`, with the answer in `resolution`.
140
- - Reading or listing an item records nothing, and nothing wakes an assistant, so an item stays queued until its receiver
141
- claims it.
180
+ - Reading or listing an item records nothing on the item, and nothing wakes an assistant, so an item stays queued until its
181
+ receiver claims it. A member listing its own pending inbox records only a check-in time, which the notice above reads.
142
182
 
143
183
  ### A person answering the team's questions through their assistant
144
184
 
@@ -148,7 +188,8 @@ pair, the person's assistant can read the team's questions waiting on them and s
148
188
  Steering. The caller's seat is never taken for a person: without `person`, the `question` pair offers nothing, and an
149
189
  unusable `person` withholds only these two tools while the grant's other tools keep working.
150
190
 
151
- - **Register the person** on the instance, once: `rig gateway human add <entity_id> --display-name "<name>" --default`.
191
+ - **Register the person** on the instance, once:
192
+ `rig gateway human add <entity_id> --display-name "<name>" --delivery-class B --default`.
152
193
  Without `--binding`, they're asked in the Feed and on Steering only. As the default person, today's asks addressed to no
153
194
  registered person (such as `human@host`) are theirs too.
154
195
  - **`rig_question_list`** shows what Steering shows that person as answerable: an ask addressed to them, or a row parked on
@@ -179,5 +220,6 @@ unusable `person` withholds only these two tools while the grant's other tools k
179
220
  ## Limits today
180
221
 
181
222
  - **Webhook triggers only:** OpenRig rings a webhook. Email and other triggers aren't supported yet. A member without a trigger
182
- isn't rung, and its person is told instead.
223
+ isn't rung; work it leaves unclaimed past the unclaimed age is listed in one notice instead, which goes to its person, else
224
+ its rows' shared creator, the operator agent or the member itself.
183
225
  - **It can't act as a person:** it works rows addressed to its seat, a person's request to it included. It can't settle an ask addressed to a person, or hand work to one, except through a grant service's grant that names its person, which records that person's own answers (above).
@@ -59,7 +59,9 @@ rig queue block <task> --on external:<what you check> --wake-after 1h \
59
59
  ```
60
60
 
61
61
  `--on` is always required; `external:<what>` names the outside thing you're waiting on. The timer first fires after
62
- the interval, not now.
62
+ the interval, not now. Left without `--wake-after` (or `--wake-watchdog`), the task is still set aside, but nothing
63
+ will wake you, and the reply says so with a `park_without_wake` advisory. Set it aside again with `--wake-after` to add
64
+ the timer.
63
65
 
64
66
  **4. Say back what you set, in one or two plain lines:** what you'll check, how often, how they'll be told, and when
65
67
  it stops. For example: "I'll check the release PR every hour and message you here once it merges. Then I'll stop."
@@ -294,3 +296,31 @@ Unknown: not said yet.
294
296
  delivery guarantee.
295
297
  - **Transcript bytes as "usage".** `context-usage-threshold` measures an agent's transcript, not an account's
296
298
  allowance. For an allowance, see "A usage warning" above.
299
+
300
+ ## Recurring reminders for agents
301
+
302
+ An agent-to-agent reminder can repeat until stopped. This is separate from
303
+ [a person's one-shot watch](#setting-a-watch), which uses `rig queue block --wake-after`.
304
+
305
+ Save this as `periodic-reminder.yaml`, replacing the example session names with your own:
306
+
307
+ ```yaml
308
+ policy: periodic-reminder
309
+ target:
310
+ session: worker@my-team
311
+ message: "Finish the current action, then check the pending work."
312
+ ```
313
+
314
+ Register it with all five required flags:
315
+
316
+ ```bash
317
+ rig watchdog register --spec periodic-reminder.yaml --policy periodic-reminder \
318
+ --target-session worker@my-team --interval-seconds 600 \
319
+ --registered-by coordinator@my-team
320
+ ```
321
+
322
+ At registration, `--policy` selects the policy; the YAML `policy` field is not the
323
+ selector. YAML `target.session` takes precedence over `--target-session`, so keep them
324
+ aligned. If YAML omits the target, the CLI target is the fallback. Put a non-empty
325
+ `message` in YAML: `--message` is a shortcut only for `context-usage-threshold`.
326
+ The first reminder is due after the interval; this example repeats every 600 seconds.
@@ -0,0 +1,114 @@
1
+ # Network connector: a local seat as a hub participant
2
+
3
+ Source of truth: `packages/daemon/src/domain/network/` (`network-bindings.ts`, `network-connector.ts`, `hub-client.ts`),
4
+ `packages/daemon/src/routes/network.ts`, `packages/cli/src/commands/network.ts`.
5
+
6
+ A hub is another OpenRig queue that its participants reach over MCP, such as a daemon served by `rig mcp serve --http`
7
+ with one grant per participant. The network connector puts one selected local seat on a hub as one of its participants.
8
+ The connector opens no port: your daemon makes every connection outward, and the hub never connects to your machine. Work the hub
9
+ sends that participant runs on your seat, under your accounts, and the result goes back to the hub item.
10
+
11
+ ## Connect
12
+
13
+ ```bash
14
+ rig network connect <seat> --hub <url> --as <participant> --token-file <path>
15
+ ```
16
+
17
+ - `<participant>` is the participant's address in the hub (`member@rig`), and the token file holds its bearer.
18
+ - The binding follows the seat's node, so a relaunched or renamed seat keeps it.
19
+ - The token is stored at `<OpenRig home>/network-secrets/<binding>/credential.json` (a 0700 folder and a 0600 file). It
20
+ is never returned by the API or shown in status. A token in the hub URL is refused.
21
+ - A plain-http hub URL needs `--allow-http` (see Limits).
22
+ - One active binding per local seat, and one per hub participant.
23
+ - On a daemon with an operator bearer configured, `connect` and `disconnect` send `OPENRIG_AUTH_BEARER_TOKEN`, as the
24
+ `rig host` writes do.
25
+
26
+ ## What the connector does
27
+
28
+ The daemon runs the connector for every active binding. It normally polls every 30 seconds
29
+ (`OPENRIG_NETWORK_POLL_SECONDS`, at least 5); a failing hub, backoff or a backlog can delay it. Each binding's pass has
30
+ a deadline of 60 seconds, so one slow hub doesn't hold the others. With no active binding it makes no network call.
31
+
32
+ 1. It lists the participant's own items on the hub, claims each pending one, and creates a local queue item for the
33
+ seat's current address. The local item comes from OpenRig itself, and it says where the work came from first: its
34
+ summary starts "From <requester> via network hub", and its body opens with the requester, the hub and the hub item,
35
+ before the requester's own words.
36
+ 2. It reports each stage on the hub item, kept apart:
37
+ - **Queued:** the hub claim means the connector holds the item. The note says "Not picked up yet."
38
+ - **Picked up:** once the seat claims the local item.
39
+ - **The result:** once the local item closes, following any local handoffs to the item that finished. The hub item
40
+ closes the way its queue closes one: done with the resolution and the closure reason (`no-follow-on`, `canceled`
41
+ or `denied`), or failed when the local item failed. A close with no resolution sends the closer's own note on that
42
+ close, or "Closed without a stated result." No other note on the item is sent.
43
+
44
+ To answer, close the local item with your result:
45
+
46
+ ```bash
47
+ rig queue update <local item> --state done --closure-reason no-follow-on --resolution "<your answer>"
48
+ ```
49
+
50
+ ## Retries, restarts and unknown outcomes
51
+
52
+ - Each hub item maps to one local item, under an id derived from the seat's node, the hub, the participant and the hub
53
+ item. A lost answer, a retry, a daemon restart, or disconnecting and connecting the same seat to the same hub and
54
+ participant again lands on that same item, so it isn't queued twice. A new binding reports what the earlier one
55
+ took.
56
+ - If the local record of an item is gone, or it was handed on without one successor here, the hub item says its outcome
57
+ is unknown, and it is never run again.
58
+ - If someone else closed the hub item first (its requester canceled it, say), the local result stays here, the connector
59
+ doesn't count it as delivered, and `rig network status` (and its `--json`) shows it under the binding as closed
60
+ elsewhere. The connector checks the hub item just before closing it. It does not write over a close it has already
61
+ seen, and reads the item back after a close attempt. A hub item someone there handed on counts as closed elsewhere
62
+ too.
63
+ - The derived id makes the queue item unique, not the work's outside effects. Anything your agent did outside OpenRig
64
+ before a crash is neither undone nor deduplicated.
65
+
66
+ ## Status
67
+
68
+ ```bash
69
+ rig network status [--json]
70
+ ```
71
+
72
+ Each binding shows its seat, participant, hub, state, and its last contact or last error. `--json` adds the
73
+ connector's view: each binding's next pass, backoff and last pass.
74
+
75
+ ## When things go wrong
76
+
77
+ - **The seat has no session:** its hub items stay pending and unclaimed, and the last error says why. They're taken
78
+ once the seat has a session again. A stopped seat still has its session, so it still takes items; they wait for it.
79
+ - **The hub can't be reached, or a pass runs past its deadline:** the binding stays active, the error is recorded, and
80
+ retries back off, doubling up to 5 minutes. A failure on this machine is recorded as local, not as the hub's.
81
+ - **The hub refuses the credential** (HTTP 401): the binding is marked revoked and its credential removed. No new work
82
+ comes in; local items and results stay.
83
+
84
+ ## Disconnect
85
+
86
+ ```bash
87
+ rig network disconnect <binding-or-seat> [--reason "<why>"]
88
+ ```
89
+
90
+ The binding ends here, so no new work comes in through it, and its credential is removed. Local items and results
91
+ stay. The hub still lists the participant until it's removed there too.
92
+
93
+ If the credential can't be removed, the binding still ends, and the error names the
94
+ `rig network disconnect <binding id>` to run again. The daemon also removes credentials whose binding isn't active
95
+ each time it starts.
96
+
97
+ ## Limits
98
+
99
+ - The connector polls, so new work normally waits up to one interval before it reaches the seat, and longer when the
100
+ hub fails or a backlog builds.
101
+ - If someone else closes a hub item between the connector's check and its close, the hub may keep either outcome, or
102
+ combine the later state with the earlier resolution. The connector counts its result as delivered only when the
103
+ readback matches its state, closure reason and resolution; otherwise a closed item is reported as closed elsewhere.
104
+ An atomic close-if-open needs the hub to offer a conditional close.
105
+ - After a disconnect or a revocation, work already taken keeps running here, but its pickup and result no longer reach
106
+ the hub item, which stays at its last reported stage.
107
+ - **Plain http needs your choice.** `rig network connect` refuses an `http:` hub URL until you add `--allow-http`, because
108
+ the participant's token and its work then cross the network unencrypted, where they can be read. Use the hub's
109
+ `https:` URL where it has one. The choice is recorded on that binding, so the connector doesn't ask again, and
110
+ `rig network status` (and its `--json`) marks the binding unencrypted. OpenRig doesn't judge the address: a private or
111
+ tailnet address doesn't prove the connection is protected.
112
+ - **Redirects:** the connector follows a hub's redirect only within its own origin, or to its `https:` form on the same
113
+ host. Any other redirect stops the connection with its target named, and the token isn't sent there. Connect the
114
+ binding to the hub's own URL.