@openrig/cli 0.7.13 → 0.7.15

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 (601) hide show
  1. package/README.md +5 -5
  2. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
  3. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
  4. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
  5. package/daemon/assets/plugins/openrig/README.md +2 -0
  6. package/daemon/assets/plugins/openrig/plugin.json +1 -1
  7. package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +7 -0
  8. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  9. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  10. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +4 -4
  11. package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +13 -4
  12. package/daemon/assets/plugins/openrig-core/skills/orienting-to-an-inherited-seat/CHANGELOG.md +10 -0
  13. package/daemon/assets/plugins/openrig-core/skills/orienting-to-an-inherited-seat/SKILL.md +12 -13
  14. package/daemon/assets/skills/rigs/SKILL.md +5 -2
  15. package/daemon/context-packs/help/manifest.yaml +1 -1
  16. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  17. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +103 -23
  18. package/daemon/context-packs/reference/getting-started.md +21 -15
  19. package/daemon/context-packs/reference/manifest.yaml +1 -1
  20. package/daemon/context-packs/reference/rig-spec.md +4 -0
  21. package/daemon/context-packs/reference/tmux-servers.md +8 -2
  22. package/daemon/context-packs/reference/whats-new.md +298 -15
  23. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/claude-compaction-restore/SKILL.md +4 -4
  27. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +13 -4
  33. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +7 -0
  47. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/CHANGELOG.md +10 -0
  55. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/SKILL.md +12 -13
  56. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +3 -3
  57. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  77. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  78. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  79. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  80. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  81. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  82. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  83. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  84. package/daemon/dist/adapters/claude-code-adapter.js +27 -4
  85. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  86. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +11 -2
  87. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  88. package/daemon/dist/adapters/codex-runtime-adapter.js +45 -12
  89. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  90. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +2 -0
  91. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
  92. package/daemon/dist/adapters/community-harness-runtime-adapter.js +93 -36
  93. package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
  94. package/daemon/dist/adapters/pi-resume.d.ts +3 -0
  95. package/daemon/dist/adapters/pi-resume.d.ts.map +1 -1
  96. package/daemon/dist/adapters/pi-resume.js +99 -51
  97. package/daemon/dist/adapters/pi-resume.js.map +1 -1
  98. package/daemon/dist/adapters/pi-runner.d.ts +2 -1
  99. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  100. package/daemon/dist/adapters/pi-runner.js +15 -9
  101. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  102. package/daemon/dist/adapters/pi-runtime-adapter.d.ts +4 -0
  103. package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
  104. package/daemon/dist/adapters/pi-runtime-adapter.js +133 -75
  105. package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
  106. package/daemon/dist/adapters/tmux-exec.d.ts +4 -4
  107. package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
  108. package/daemon/dist/adapters/tmux-exec.js +37 -8
  109. package/daemon/dist/adapters/tmux-exec.js.map +1 -1
  110. package/daemon/dist/adapters/tmux.d.ts +16 -0
  111. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  112. package/daemon/dist/adapters/tmux.js +49 -8
  113. package/daemon/dist/adapters/tmux.js.map +1 -1
  114. package/daemon/dist/attention-surface.d.ts +8 -0
  115. package/daemon/dist/attention-surface.d.ts.map +1 -1
  116. package/daemon/dist/attention-surface.js.map +1 -1
  117. package/daemon/dist/build-info.js +3 -3
  118. package/daemon/dist/daemon-shutdown.d.ts +3 -0
  119. package/daemon/dist/daemon-shutdown.d.ts.map +1 -1
  120. package/daemon/dist/daemon-shutdown.js +6 -0
  121. package/daemon/dist/daemon-shutdown.js.map +1 -1
  122. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  123. package/daemon/dist/db/all-migrations.js +8 -0
  124. package/daemon/dist/db/all-migrations.js.map +1 -1
  125. package/daemon/dist/db/migrations/163_network_installations.d.ts +7 -0
  126. package/daemon/dist/db/migrations/163_network_installations.d.ts.map +1 -0
  127. package/daemon/dist/db/migrations/163_network_installations.js +23 -0
  128. package/daemon/dist/db/migrations/163_network_installations.js.map +1 -0
  129. package/daemon/dist/db/migrations/164_queue_items_reply_to_index.d.ts +5 -0
  130. package/daemon/dist/db/migrations/164_queue_items_reply_to_index.d.ts.map +1 -0
  131. package/daemon/dist/db/migrations/164_queue_items_reply_to_index.js +9 -0
  132. package/daemon/dist/db/migrations/164_queue_items_reply_to_index.js.map +1 -0
  133. package/daemon/dist/db/migrations/165_run_bound_activity_grants.d.ts +4 -0
  134. package/daemon/dist/db/migrations/165_run_bound_activity_grants.d.ts.map +1 -0
  135. package/daemon/dist/db/migrations/165_run_bound_activity_grants.js +14 -0
  136. package/daemon/dist/db/migrations/165_run_bound_activity_grants.js.map +1 -0
  137. package/daemon/dist/db/migrations/166_queue_list_read_indexes.d.ts +4 -0
  138. package/daemon/dist/db/migrations/166_queue_list_read_indexes.d.ts.map +1 -0
  139. package/daemon/dist/db/migrations/166_queue_list_read_indexes.js +17 -0
  140. package/daemon/dist/db/migrations/166_queue_list_read_indexes.js.map +1 -0
  141. package/daemon/dist/domain/activity-grants.d.ts +36 -3
  142. package/daemon/dist/domain/activity-grants.d.ts.map +1 -1
  143. package/daemon/dist/domain/activity-grants.js +188 -7
  144. package/daemon/dist/domain/activity-grants.js.map +1 -1
  145. package/daemon/dist/domain/applied-launch-observation-store.d.ts +2 -0
  146. package/daemon/dist/domain/applied-launch-observation-store.d.ts.map +1 -1
  147. package/daemon/dist/domain/applied-launch-observation-store.js +27 -16
  148. package/daemon/dist/domain/applied-launch-observation-store.js.map +1 -1
  149. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +5 -0
  150. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  151. package/daemon/dist/domain/claude-compaction-enforcer.js +14 -5
  152. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  153. package/daemon/dist/domain/codex-member-permissions.d.ts +2 -0
  154. package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -1
  155. package/daemon/dist/domain/codex-member-permissions.js +17 -9
  156. package/daemon/dist/domain/codex-member-permissions.js.map +1 -1
  157. package/daemon/dist/domain/codex-owned-plugin-trust.d.ts +6 -1
  158. package/daemon/dist/domain/codex-owned-plugin-trust.d.ts.map +1 -1
  159. package/daemon/dist/domain/codex-owned-plugin-trust.js +30 -9
  160. package/daemon/dist/domain/codex-owned-plugin-trust.js.map +1 -1
  161. package/daemon/dist/domain/context-monitor.d.ts.map +1 -1
  162. package/daemon/dist/domain/context-monitor.js +8 -3
  163. package/daemon/dist/domain/context-monitor.js.map +1 -1
  164. package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
  165. package/daemon/dist/domain/draft-aware-delivery.js +2 -1
  166. package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
  167. package/daemon/dist/domain/execution-candidate-reader.d.ts +15 -5
  168. package/daemon/dist/domain/execution-candidate-reader.d.ts.map +1 -1
  169. package/daemon/dist/domain/execution-candidate-reader.js +36 -25
  170. package/daemon/dist/domain/execution-candidate-reader.js.map +1 -1
  171. package/daemon/dist/domain/execution-view.d.ts.map +1 -1
  172. package/daemon/dist/domain/execution-view.js +34 -11
  173. package/daemon/dist/domain/execution-view.js.map +1 -1
  174. package/daemon/dist/domain/gateway/destination-resolver.js +3 -3
  175. package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
  176. package/daemon/dist/domain/gateway/slack/config.d.ts +2 -0
  177. package/daemon/dist/domain/gateway/slack/config.d.ts.map +1 -1
  178. package/daemon/dist/domain/gateway/slack/config.js +4 -0
  179. package/daemon/dist/domain/gateway/slack/config.js.map +1 -1
  180. package/daemon/dist/domain/gateway/slack/inbound.d.ts +11 -0
  181. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  182. package/daemon/dist/domain/gateway/slack/inbound.js +3 -0
  183. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  184. package/daemon/dist/domain/gateway/slack/slack-api.d.ts +2 -0
  185. package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
  186. package/daemon/dist/domain/gateway/slack/slack-api.js +4 -0
  187. package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
  188. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +2 -0
  189. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
  190. package/daemon/dist/domain/gateway/slack/slack-delivery.js +2 -1
  191. package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
  192. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  193. package/daemon/dist/domain/gateway/slack/slack-subsystem.js +36 -2
  194. package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  195. package/daemon/dist/domain/gateway/slack/thread-routing.d.ts +5 -0
  196. package/daemon/dist/domain/gateway/slack/thread-routing.d.ts.map +1 -1
  197. package/daemon/dist/domain/gateway/slack/thread-routing.js +1 -1
  198. package/daemon/dist/domain/gateway/slack/thread-routing.js.map +1 -1
  199. package/daemon/dist/domain/health-passive-ceremony.d.ts.map +1 -1
  200. package/daemon/dist/domain/health-passive-ceremony.js +13 -7
  201. package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
  202. package/daemon/dist/domain/hosts/pairing-ask.d.ts +8 -0
  203. package/daemon/dist/domain/hosts/pairing-ask.d.ts.map +1 -1
  204. package/daemon/dist/domain/hosts/pairing-ask.js +20 -0
  205. package/daemon/dist/domain/hosts/pairing-ask.js.map +1 -1
  206. package/daemon/dist/domain/input-read-diagnostic.d.ts +30 -0
  207. package/daemon/dist/domain/input-read-diagnostic.d.ts.map +1 -0
  208. package/daemon/dist/domain/input-read-diagnostic.js +32 -0
  209. package/daemon/dist/domain/input-read-diagnostic.js.map +1 -0
  210. package/daemon/dist/domain/native-model-picker.d.ts +8 -0
  211. package/daemon/dist/domain/native-model-picker.d.ts.map +1 -0
  212. package/daemon/dist/domain/native-model-picker.js +35 -0
  213. package/daemon/dist/domain/native-model-picker.js.map +1 -0
  214. package/daemon/dist/domain/native-permission-store.d.ts +40 -0
  215. package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
  216. package/daemon/dist/domain/native-permission-store.js +108 -29
  217. package/daemon/dist/domain/native-permission-store.js.map +1 -1
  218. package/daemon/dist/domain/native-process-lineage.d.ts +6 -0
  219. package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
  220. package/daemon/dist/domain/native-process-lineage.js +34 -29
  221. package/daemon/dist/domain/native-process-lineage.js.map +1 -1
  222. package/daemon/dist/domain/native-resume-probe.d.ts +39 -1
  223. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  224. package/daemon/dist/domain/native-resume-probe.js +251 -6
  225. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  226. package/daemon/dist/domain/network/network-bindings.d.ts +32 -2
  227. package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -1
  228. package/daemon/dist/domain/network/network-bindings.js +65 -28
  229. package/daemon/dist/domain/network/network-bindings.js.map +1 -1
  230. package/daemon/dist/domain/network/network-installations.d.ts +97 -0
  231. package/daemon/dist/domain/network/network-installations.d.ts.map +1 -0
  232. package/daemon/dist/domain/network/network-installations.js +371 -0
  233. package/daemon/dist/domain/network/network-installations.js.map +1 -0
  234. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  235. package/daemon/dist/domain/node-inventory.js +214 -30
  236. package/daemon/dist/domain/node-inventory.js.map +1 -1
  237. package/daemon/dist/domain/operation-correlation.d.ts +1 -1
  238. package/daemon/dist/domain/operation-correlation.d.ts.map +1 -1
  239. package/daemon/dist/domain/operation-correlation.js +1 -1
  240. package/daemon/dist/domain/operation-correlation.js.map +1 -1
  241. package/daemon/dist/domain/permission-drift.d.ts +2 -1
  242. package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
  243. package/daemon/dist/domain/permission-drift.js.map +1 -1
  244. package/daemon/dist/domain/permission-policy/persisted-restore-posture.d.ts +62 -0
  245. package/daemon/dist/domain/permission-policy/persisted-restore-posture.d.ts.map +1 -0
  246. package/daemon/dist/domain/permission-policy/persisted-restore-posture.js +117 -0
  247. package/daemon/dist/domain/permission-policy/persisted-restore-posture.js.map +1 -0
  248. package/daemon/dist/domain/policies/context-usage-threshold.d.ts.map +1 -1
  249. package/daemon/dist/domain/policies/context-usage-threshold.js +5 -1
  250. package/daemon/dist/domain/policies/context-usage-threshold.js.map +1 -1
  251. package/daemon/dist/domain/policies/types.d.ts +2 -0
  252. package/daemon/dist/domain/policies/types.d.ts.map +1 -1
  253. package/daemon/dist/domain/process-observation-pass.d.ts +20 -0
  254. package/daemon/dist/domain/process-observation-pass.d.ts.map +1 -0
  255. package/daemon/dist/domain/process-observation-pass.js +80 -0
  256. package/daemon/dist/domain/process-observation-pass.js.map +1 -0
  257. package/daemon/dist/domain/queue-erasure.d.ts +10 -6
  258. package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
  259. package/daemon/dist/domain/queue-erasure.js +31 -18
  260. package/daemon/dist/domain/queue-erasure.js.map +1 -1
  261. package/daemon/dist/domain/queue-recovery.d.ts +10 -1
  262. package/daemon/dist/domain/queue-recovery.d.ts.map +1 -1
  263. package/daemon/dist/domain/queue-recovery.js +25 -3
  264. package/daemon/dist/domain/queue-recovery.js.map +1 -1
  265. package/daemon/dist/domain/queue-repository.d.ts +32 -3
  266. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  267. package/daemon/dist/domain/queue-repository.js +101 -10
  268. package/daemon/dist/domain/queue-repository.js.map +1 -1
  269. package/daemon/dist/domain/queue-retention.d.ts +1 -1
  270. package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
  271. package/daemon/dist/domain/queue-retention.js +1 -0
  272. package/daemon/dist/domain/queue-retention.js.map +1 -1
  273. package/daemon/dist/domain/queue-stuck-sweep.d.ts +5 -0
  274. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  275. package/daemon/dist/domain/queue-stuck-sweep.js +335 -50
  276. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  277. package/daemon/dist/domain/queue-wake-ladder.d.ts +12 -0
  278. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  279. package/daemon/dist/domain/queue-wake-ladder.js +27 -7
  280. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  281. package/daemon/dist/domain/receiver-context.d.ts.map +1 -1
  282. package/daemon/dist/domain/receiver-context.js +3 -2
  283. package/daemon/dist/domain/receiver-context.js.map +1 -1
  284. package/daemon/dist/domain/rehydrate-eligibility.d.ts.map +1 -1
  285. package/daemon/dist/domain/rehydrate-eligibility.js +3 -2
  286. package/daemon/dist/domain/rehydrate-eligibility.js.map +1 -1
  287. package/daemon/dist/domain/reply-to-choice.d.ts +10 -0
  288. package/daemon/dist/domain/reply-to-choice.d.ts.map +1 -1
  289. package/daemon/dist/domain/reply-to-choice.js +23 -0
  290. package/daemon/dist/domain/reply-to-choice.js.map +1 -1
  291. package/daemon/dist/domain/restore-check-service.d.ts +5 -0
  292. package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
  293. package/daemon/dist/domain/restore-check-service.js +31 -6
  294. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  295. package/daemon/dist/domain/restore-guidance.d.ts +3 -0
  296. package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
  297. package/daemon/dist/domain/restore-guidance.js +5 -0
  298. package/daemon/dist/domain/restore-guidance.js.map +1 -1
  299. package/daemon/dist/domain/restore-orchestrator.d.ts +7 -1
  300. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  301. package/daemon/dist/domain/restore-orchestrator.js +116 -84
  302. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  303. package/daemon/dist/domain/restore-preconditions.d.ts +2 -0
  304. package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
  305. package/daemon/dist/domain/restore-preconditions.js +8 -1
  306. package/daemon/dist/domain/restore-preconditions.js.map +1 -1
  307. package/daemon/dist/domain/resume-metadata-refresher.d.ts +4 -0
  308. package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
  309. package/daemon/dist/domain/resume-metadata-refresher.js +7 -2
  310. package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
  311. package/daemon/dist/domain/rigspec-instantiator.d.ts +1 -0
  312. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  313. package/daemon/dist/domain/rigspec-instantiator.js +3 -2
  314. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  315. package/daemon/dist/domain/rosters.d.ts +2 -1
  316. package/daemon/dist/domain/rosters.d.ts.map +1 -1
  317. package/daemon/dist/domain/rosters.js.map +1 -1
  318. package/daemon/dist/domain/runner-grant-launch.d.ts +16 -0
  319. package/daemon/dist/domain/runner-grant-launch.d.ts.map +1 -0
  320. package/daemon/dist/domain/runner-grant-launch.js +86 -0
  321. package/daemon/dist/domain/runner-grant-launch.js.map +1 -0
  322. package/daemon/dist/domain/runtime-adapter.d.ts +11 -0
  323. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  324. package/daemon/dist/domain/runtime-adapter.js +2 -0
  325. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  326. package/daemon/dist/domain/seat-delivery-guard.d.ts +16 -2
  327. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  328. package/daemon/dist/domain/seat-delivery-guard.js +61 -6
  329. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  330. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  331. package/daemon/dist/domain/seat-handover-service.js +33 -9
  332. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  333. package/daemon/dist/domain/seat-identity-reconciler.d.ts +3 -0
  334. package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
  335. package/daemon/dist/domain/seat-identity-reconciler.js +34 -2
  336. package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
  337. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  338. package/daemon/dist/domain/seat-lifecycle-service.js +5 -1
  339. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  340. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  341. package/daemon/dist/domain/seat-runtime-switch-service.js +15 -0
  342. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  343. package/daemon/dist/domain/session-registry.d.ts +2 -0
  344. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  345. package/daemon/dist/domain/session-registry.js +16 -0
  346. package/daemon/dist/domain/session-registry.js.map +1 -1
  347. package/daemon/dist/domain/session-transport.d.ts +2 -0
  348. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  349. package/daemon/dist/domain/session-transport.js +38 -7
  350. package/daemon/dist/domain/session-transport.js.map +1 -1
  351. package/daemon/dist/domain/skill-discovery.d.ts.map +1 -1
  352. package/daemon/dist/domain/skill-discovery.js +2 -1
  353. package/daemon/dist/domain/skill-discovery.js.map +1 -1
  354. package/daemon/dist/domain/slow-op-recorder.d.ts +3 -0
  355. package/daemon/dist/domain/slow-op-recorder.d.ts.map +1 -1
  356. package/daemon/dist/domain/slow-op-recorder.js +5 -0
  357. package/daemon/dist/domain/slow-op-recorder.js.map +1 -1
  358. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  359. package/daemon/dist/domain/startup-orchestrator.js +17 -3
  360. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  361. package/daemon/dist/domain/successor-session-launcher.d.ts +3 -1
  362. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  363. package/daemon/dist/domain/successor-session-launcher.js +12 -2
  364. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  365. package/daemon/dist/domain/sync-site-wrap.d.ts +13 -1
  366. package/daemon/dist/domain/sync-site-wrap.d.ts.map +1 -1
  367. package/daemon/dist/domain/sync-site-wrap.js +38 -0
  368. package/daemon/dist/domain/sync-site-wrap.js.map +1 -1
  369. package/daemon/dist/domain/team-operations.d.ts +20 -0
  370. package/daemon/dist/domain/team-operations.d.ts.map +1 -0
  371. package/daemon/dist/domain/team-operations.js +23 -0
  372. package/daemon/dist/domain/team-operations.js.map +1 -0
  373. package/daemon/dist/domain/terminal/herdr-adapter.d.ts +12 -2
  374. package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
  375. package/daemon/dist/domain/terminal/herdr-adapter.js +52 -2
  376. package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
  377. package/daemon/dist/domain/terminal/herdr-live-workspace.d.ts +42 -0
  378. package/daemon/dist/domain/terminal/herdr-live-workspace.d.ts.map +1 -0
  379. package/daemon/dist/domain/terminal/herdr-live-workspace.js +118 -0
  380. package/daemon/dist/domain/terminal/herdr-live-workspace.js.map +1 -0
  381. package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
  382. package/daemon/dist/domain/terminal/herdr-sessions.js +3 -0
  383. package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
  384. package/daemon/dist/domain/terminal/rex-adapter.d.ts +3 -0
  385. package/daemon/dist/domain/terminal/rex-adapter.d.ts.map +1 -1
  386. package/daemon/dist/domain/terminal/rex-adapter.js +10 -1
  387. package/daemon/dist/domain/terminal/rex-adapter.js.map +1 -1
  388. package/daemon/dist/domain/terminal/rex-agent-status.d.ts +76 -0
  389. package/daemon/dist/domain/terminal/rex-agent-status.d.ts.map +1 -0
  390. package/daemon/dist/domain/terminal/rex-agent-status.js +168 -0
  391. package/daemon/dist/domain/terminal/rex-agent-status.js.map +1 -0
  392. package/daemon/dist/domain/terminal/terminal-provider.d.ts +12 -1
  393. package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
  394. package/daemon/dist/domain/terminal/terminal-service.d.ts +5 -1
  395. package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
  396. package/daemon/dist/domain/terminal/terminal-service.js +20 -14
  397. package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
  398. package/daemon/dist/domain/types.d.ts +12 -0
  399. package/daemon/dist/domain/types.d.ts.map +1 -1
  400. package/daemon/dist/domain/types.js.map +1 -1
  401. package/daemon/dist/domain/user-settings/settings-browser.d.ts +8 -2
  402. package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
  403. package/daemon/dist/domain/user-settings/settings-browser.js +5 -2
  404. package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
  405. package/daemon/dist/domain/user-settings/settings-store.d.ts +15 -1
  406. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  407. package/daemon/dist/domain/user-settings/settings-store.js +108 -44
  408. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  409. package/daemon/dist/domain/watchdog-policy-engine.d.ts +5 -0
  410. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  411. package/daemon/dist/domain/watchdog-policy-engine.js +4 -0
  412. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  413. package/daemon/dist/domain/workflow-exception-escalation.d.ts.map +1 -1
  414. package/daemon/dist/domain/workflow-exception-escalation.js +4 -2
  415. package/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
  416. package/daemon/dist/domain/workflow-runtime.d.ts +1 -1
  417. package/daemon/dist/domain/workflow-validator.d.ts.map +1 -1
  418. package/daemon/dist/domain/workflow-validator.js +16 -0
  419. package/daemon/dist/domain/workflow-validator.js.map +1 -1
  420. package/daemon/dist/herdr-live-workspace-surface.d.ts +2 -0
  421. package/daemon/dist/herdr-live-workspace-surface.d.ts.map +1 -0
  422. package/daemon/dist/herdr-live-workspace-surface.js +2 -0
  423. package/daemon/dist/herdr-live-workspace-surface.js.map +1 -0
  424. package/daemon/dist/index.d.ts.map +1 -1
  425. package/daemon/dist/index.js +1 -0
  426. package/daemon/dist/index.js.map +1 -1
  427. package/daemon/dist/routes/activity.d.ts.map +1 -1
  428. package/daemon/dist/routes/activity.js +34 -2
  429. package/daemon/dist/routes/activity.js.map +1 -1
  430. package/daemon/dist/routes/attention.d.ts.map +1 -1
  431. package/daemon/dist/routes/attention.js +5 -1
  432. package/daemon/dist/routes/attention.js.map +1 -1
  433. package/daemon/dist/routes/hosts.d.ts.map +1 -1
  434. package/daemon/dist/routes/hosts.js +23 -14
  435. package/daemon/dist/routes/hosts.js.map +1 -1
  436. package/daemon/dist/routes/network.d.ts +7 -3
  437. package/daemon/dist/routes/network.d.ts.map +1 -1
  438. package/daemon/dist/routes/network.js +52 -17
  439. package/daemon/dist/routes/network.js.map +1 -1
  440. package/daemon/dist/routes/queue.d.ts.map +1 -1
  441. package/daemon/dist/routes/queue.js +9 -0
  442. package/daemon/dist/routes/queue.js.map +1 -1
  443. package/daemon/dist/routes/rigspec.js +13 -4
  444. package/daemon/dist/routes/rigspec.js.map +1 -1
  445. package/daemon/dist/routes/sessions.d.ts.map +1 -1
  446. package/daemon/dist/routes/sessions.js +27 -5
  447. package/daemon/dist/routes/sessions.js.map +1 -1
  448. package/daemon/dist/routes/terminal.js +1 -1
  449. package/daemon/dist/routes/terminal.js.map +1 -1
  450. package/daemon/dist/server.d.ts +1 -0
  451. package/daemon/dist/server.d.ts.map +1 -1
  452. package/daemon/dist/server.js +2 -0
  453. package/daemon/dist/server.js.map +1 -1
  454. package/daemon/dist/startup.d.ts.map +1 -1
  455. package/daemon/dist/startup.js +46 -14
  456. package/daemon/dist/startup.js.map +1 -1
  457. package/daemon/dist/tmux-server-start-surface.d.ts +2 -0
  458. package/daemon/dist/tmux-server-start-surface.d.ts.map +1 -0
  459. package/daemon/dist/tmux-server-start-surface.js +2 -0
  460. package/daemon/dist/tmux-server-start-surface.js.map +1 -0
  461. package/daemon/dist/tmux-server-start.d.ts +13 -0
  462. package/daemon/dist/tmux-server-start.d.ts.map +1 -0
  463. package/daemon/dist/tmux-server-start.js +36 -0
  464. package/daemon/dist/tmux-server-start.js.map +1 -0
  465. package/daemon/docs/reference/agent-startup-guide.md +34 -7
  466. package/daemon/docs/reference/agent-state-taxonomy.md +2 -1
  467. package/daemon/docs/reference/bundle-formats.md +6 -4
  468. package/daemon/docs/reference/daemon-http-clients.md +44 -1
  469. package/daemon/docs/reference/getting-started.md +21 -15
  470. package/daemon/docs/reference/harness-runner-contract.md +27 -1
  471. package/daemon/docs/reference/health-diagnosis.md +5 -3
  472. package/daemon/docs/reference/hosted-members.md +29 -3
  473. package/daemon/docs/reference/keeping-a-watch.md +14 -9
  474. package/daemon/docs/reference/network-connector.md +76 -5
  475. package/daemon/docs/reference/operation-correlation.md +18 -2
  476. package/daemon/docs/reference/queue-erasure.md +7 -5
  477. package/daemon/docs/reference/quickstart.md +2 -2
  478. package/daemon/docs/reference/rig-spec.md +4 -0
  479. package/daemon/docs/reference/seat-delivery.md +16 -1
  480. package/daemon/docs/reference/slack-app-setup.md +4 -0
  481. package/daemon/docs/reference/terminal-sessions.md +12 -0
  482. package/daemon/docs/reference/tmux-servers.md +8 -2
  483. package/daemon/docs/reference/whats-new.md +298 -15
  484. package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +13 -4
  485. package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +7 -0
  486. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +27 -11
  487. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +11 -3
  488. package/dist/build-info.js +3 -3
  489. package/dist/commands/broadcast.js +7 -3
  490. package/dist/commands/broadcast.js.map +1 -1
  491. package/dist/commands/chatroom.d.ts.map +1 -1
  492. package/dist/commands/chatroom.js +8 -3
  493. package/dist/commands/chatroom.js.map +1 -1
  494. package/dist/commands/config.d.ts.map +1 -1
  495. package/dist/commands/config.js +50 -10
  496. package/dist/commands/config.js.map +1 -1
  497. package/dist/commands/daemon.d.ts +0 -4
  498. package/dist/commands/daemon.d.ts.map +1 -1
  499. package/dist/commands/daemon.js +1 -19
  500. package/dist/commands/daemon.js.map +1 -1
  501. package/dist/commands/doctor.js +1 -1
  502. package/dist/commands/doctor.js.map +1 -1
  503. package/dist/commands/down.d.ts.map +1 -1
  504. package/dist/commands/down.js +3 -1
  505. package/dist/commands/down.js.map +1 -1
  506. package/dist/commands/gateway.d.ts.map +1 -1
  507. package/dist/commands/gateway.js +5 -0
  508. package/dist/commands/gateway.js.map +1 -1
  509. package/dist/commands/host.js +2 -2
  510. package/dist/commands/host.js.map +1 -1
  511. package/dist/commands/import.d.ts.map +1 -1
  512. package/dist/commands/import.js +96 -3
  513. package/dist/commands/import.js.map +1 -1
  514. package/dist/commands/network.d.ts.map +1 -1
  515. package/dist/commands/network.js +72 -17
  516. package/dist/commands/network.js.map +1 -1
  517. package/dist/commands/ps.d.ts +1 -0
  518. package/dist/commands/ps.d.ts.map +1 -1
  519. package/dist/commands/ps.js +46 -1
  520. package/dist/commands/ps.js.map +1 -1
  521. package/dist/commands/queue.d.ts.map +1 -1
  522. package/dist/commands/queue.js +61 -3
  523. package/dist/commands/queue.js.map +1 -1
  524. package/dist/commands/roster.d.ts +2 -4
  525. package/dist/commands/roster.d.ts.map +1 -1
  526. package/dist/commands/roster.js +3 -12
  527. package/dist/commands/roster.js.map +1 -1
  528. package/dist/commands/seat.js +2 -2
  529. package/dist/commands/seat.js.map +1 -1
  530. package/dist/commands/send.d.ts +4 -0
  531. package/dist/commands/send.d.ts.map +1 -1
  532. package/dist/commands/send.js +6 -1
  533. package/dist/commands/send.js.map +1 -1
  534. package/dist/commands/setup.js +1 -1
  535. package/dist/commands/setup.js.map +1 -1
  536. package/dist/commands/slack.d.ts.map +1 -1
  537. package/dist/commands/slack.js +2 -0
  538. package/dist/commands/slack.js.map +1 -1
  539. package/dist/commands/terminal.d.ts.map +1 -1
  540. package/dist/commands/terminal.js +9 -7
  541. package/dist/commands/terminal.js.map +1 -1
  542. package/dist/config-store.d.ts +14 -1
  543. package/dist/config-store.d.ts.map +1 -1
  544. package/dist/config-store.js +34 -5
  545. package/dist/config-store.js.map +1 -1
  546. package/dist/daemon-lifecycle.d.ts.map +1 -1
  547. package/dist/daemon-lifecycle.js +10 -5
  548. package/dist/daemon-lifecycle.js.map +1 -1
  549. package/dist/lib/check-in.d.ts +7 -0
  550. package/dist/lib/check-in.d.ts.map +1 -0
  551. package/dist/lib/check-in.js +13 -0
  552. package/dist/lib/check-in.js.map +1 -0
  553. package/dist/lib/work-install.d.ts.map +1 -1
  554. package/dist/lib/work-install.js +7 -3
  555. package/dist/lib/work-install.js.map +1 -1
  556. package/dist/mcp-http.d.ts.map +1 -1
  557. package/dist/mcp-http.js +25 -2
  558. package/dist/mcp-http.js.map +1 -1
  559. package/dist/mcp-server.d.ts +12 -1
  560. package/dist/mcp-server.d.ts.map +1 -1
  561. package/dist/mcp-server.js +211 -69
  562. package/dist/mcp-server.js.map +1 -1
  563. package/dist/person-registration-offer.d.ts +10 -0
  564. package/dist/person-registration-offer.d.ts.map +1 -0
  565. package/dist/person-registration-offer.js +25 -0
  566. package/dist/person-registration-offer.js.map +1 -0
  567. package/dist/terminal-window.d.ts.map +1 -1
  568. package/dist/terminal-window.js +20 -102
  569. package/dist/terminal-window.js.map +1 -1
  570. package/dist/tmux-attachment.d.ts.map +1 -1
  571. package/dist/tmux-attachment.js +3 -1
  572. package/dist/tmux-attachment.js.map +1 -1
  573. package/package.json +1 -1
  574. package/tui/dist/config/pairing.d.ts.map +1 -1
  575. package/tui/dist/config/pairing.js +8 -3
  576. package/tui/dist/config/pairing.js.map +1 -1
  577. package/tui/dist/connected-assistants.d.ts +20 -0
  578. package/tui/dist/connected-assistants.d.ts.map +1 -0
  579. package/tui/dist/connected-assistants.js +51 -0
  580. package/tui/dist/connected-assistants.js.map +1 -0
  581. package/tui/dist/daemon-client.d.ts +8 -0
  582. package/tui/dist/daemon-client.d.ts.map +1 -1
  583. package/tui/dist/daemon-client.js +8 -0
  584. package/tui/dist/daemon-client.js.map +1 -1
  585. package/tui/dist/hydrate.d.ts.map +1 -1
  586. package/tui/dist/hydrate.js +13 -2
  587. package/tui/dist/hydrate.js.map +1 -1
  588. package/tui/dist/main.js +4 -3
  589. package/tui/dist/main.js.map +1 -1
  590. package/tui/dist/render.d.ts.map +1 -1
  591. package/tui/dist/render.js +8 -1
  592. package/tui/dist/render.js.map +1 -1
  593. package/tui/dist/topology/glyphs.d.ts.map +1 -1
  594. package/tui/dist/topology/glyphs.js +4 -0
  595. package/tui/dist/topology/glyphs.js.map +1 -1
  596. package/tui/dist/types.d.ts +11 -0
  597. package/tui/dist/types.d.ts.map +1 -1
  598. package/ui/dist/assets/index-BX8TUZ0E.css +32 -0
  599. package/ui/dist/assets/{index-BOYrLyfQ.js → index-BvUEh33d.js} +1 -1
  600. package/ui/dist/index.html +2 -2
  601. package/ui/dist/assets/index-DqSRu4OY.css +0 -32
@@ -0,0 +1,36 @@
1
+ /** tmux 3.3a–3.6 inherits its creating client's limits. This runs in that child only:
2
+ * never lower an already higher soft limit, change the hard limit, or restart a server. */
3
+ export const TMUX_SERVER_LIMIT_WARNING = "[tmux] Could not raise the open-file limit for a new terminal server; continuing with the inherited limit.";
4
+ export const TMUX_SERVER_LIMIT_PREFIX = `
5
+ openrig_tmux_nofile() {
6
+ openrig_tmux_soft=$(ulimit -S -n) || return 1
7
+ case "$openrig_tmux_soft" in unlimited) return 0;; ''|*[!0-9]*) return 1;; esac
8
+ openrig_tmux_hard=$(ulimit -H -n) || return 1
9
+ openrig_tmux_target=8192
10
+ case "$openrig_tmux_hard" in
11
+ unlimited) ;;
12
+ ''|*[!0-9]*) return 1;;
13
+ *) if [ "$openrig_tmux_hard" -lt "$openrig_tmux_target" ]; then openrig_tmux_target=$openrig_tmux_hard; fi;;
14
+ esac
15
+ [ "$openrig_tmux_soft" -ge "$openrig_tmux_target" ] || ulimit -S -n "$openrig_tmux_target"
16
+ }
17
+ openrig_tmux_nofile 2>/dev/null || printf '%s\\n' '${TMUX_SERVER_LIMIT_WARNING}' >&2
18
+ `;
19
+ /** Production callers use full command names. A matching data argument merely gets the same harmless child limit. */
20
+ export function mayStartTmuxServer(args) {
21
+ return args.some(arg => ["new-session", "start-server", "attach-session", "-D"].includes(arg));
22
+ }
23
+ export function tmuxServerStartCommand(file, args) {
24
+ if (process.platform === "win32" || !mayStartTmuxServer(args))
25
+ return { file, args };
26
+ return { file: "/bin/sh", args: ["-c", TMUX_SERVER_LIMIT_PREFIX + 'exec "$0" "$@"', file, ...args] };
27
+ }
28
+ let warned = false;
29
+ /** execFile captures stderr even on success; surface this advisory once per process. */
30
+ export function reportTmuxServerLimit(stderr) {
31
+ if (!warned && String(stderr ?? "").includes(TMUX_SERVER_LIMIT_WARNING)) {
32
+ warned = true;
33
+ console.warn(TMUX_SERVER_LIMIT_WARNING);
34
+ }
35
+ }
36
+ //# sourceMappingURL=tmux-server-start.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tmux-server-start.js","sourceRoot":"","sources":["../src/tmux-server-start.ts"],"names":[],"mappings":"AAAA;2FAC2F;AAC3F,MAAM,CAAC,MAAM,yBAAyB,GAAG,4GAA4G,CAAC;AACtJ,MAAM,CAAC,MAAM,wBAAwB,GAAG;;;;;;;;;;;;;qDAaa,yBAAyB;CAC7E,CAAC;AAEF,qHAAqH;AACrH,MAAM,UAAU,kBAAkB,CAAC,IAAuB;IACxD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,aAAa,EAAE,cAAc,EAAE,gBAAgB,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;AACjG,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,IAAY,EAAE,IAAc;IACjE,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrF,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,wBAAwB,GAAG,gBAAgB,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;AACvG,CAAC;AAED,IAAI,MAAM,GAAG,KAAK,CAAC;AACnB,wFAAwF;AACxF,MAAM,UAAU,qBAAqB,CAAC,MAAe;IACnD,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,yBAAyB,CAAC,EAAE,CAAC;QACxE,MAAM,GAAG,IAAI,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC"}
@@ -35,8 +35,17 @@ command. `rig ps --nodes` shows it under "Startup details (<seat>)", and
35
35
 
36
36
  The attention codes that stop startup this way are `trust_gate`,
37
37
  `hook_trust_gate`, `update_gate`, `login_required`, `mcp_gate`,
38
- `bypass_consent_gate`, `codex_auth_refusal` and `codex_client_incompatible`.
38
+ `bypass_consent_gate`, `claude_resume_selection_prompt`,
39
+ `claude_gated_grants_gate`, `codex_auth_refusal` and `codex_client_incompatible`.
39
40
  They are recognized from each harness's English prompt text.
41
+ `claude_gated_grants_gate` is Claude Code's workspace trust check that warns "This folder
42
+ pre-approves N tool permissions" (from the folder's `.claude/settings.json`): OpenRig never
43
+ answers it, not even with `recovery.auto_drive_provider_prompts`, because its default choice
44
+ declines those permissions (or exits) and approving them is your call. With that setting on,
45
+ the plain workspace trust prompt is answered only when its options are exactly "No, exit" and
46
+ "Yes, I trust this folder": Claude Code 2.1.322 opens it on "No, exit", so OpenRig moves the
47
+ selection down once and presses Enter only after it reads the focus on "Yes". Any other option
48
+ set, a prompt drawn without a cursor or a focus that does not reach "Yes" gets no confirmation.
40
49
 
41
50
  ## Continue a Codex fork whose child ID arrived late
42
51
 
@@ -360,6 +369,15 @@ not the destination's file contents.)
360
369
  - `rig seat launch <seat> --fresh --stop --reason <text>`, which starts a blank conversation; or
361
370
  - `rig handover <seat> --source rebuild --reason <text>`, which carries durable context.
362
371
 
372
+ A rebuild lists the current recap, lineage lessons and restore packet as required
373
+ priming. Superseded recaps are optional history, newest first. The briefing shows
374
+ the newest `output.rebuild_recaps` paths (default 3) and their shared
375
+ `recap-superseded/` folder when that pointer covers the complete history. Other
376
+ layouts retain the full list. Set `rig config set output.rebuild_recaps 0` to
377
+ always list every path; `OPENRIG_OUTPUT_REBUILD_RECAPS` overrides the setting.
378
+ This changes only the briefing: the handover result still records every resolved
379
+ artifact, and no recap file is removed.
380
+
363
381
  For Codex rebuilds, OpenRig also carries a complete supported native permission policy read from the live
364
382
  predecessor's own conversation and process, without adding fresh-launch grants. A later recorded seat permission
365
383
  or policy choice, or a differing declared successor profile, takes precedence. Missing, stale or unsupported observations keep the existing launch
@@ -405,10 +423,10 @@ Each startup file and action specifies when it applies:
405
423
  - a launch replaces it, as launches always did, and names it (`guidance_block_refreshed_unrecorded`);
406
424
  - an exact resume or a handover leaves it, and names it as possibly stale (`guidance_block_may_be_stale`).
407
425
 
408
- **A file keeps one copy of each block.**
426
+ **A file keeps one copy of each distinct block text, and tidying the copies never removes a text you wrote.**
409
427
  - **Touched markers:** a marker an editor or formatter rewrapped, with spaces or line breaks inside the comment, still reads as its block, and the next write puts it back in OpenRig's form.
410
- - **Collected copies:** they're reduced to the first. Beside a copy you edited, OpenRig's own unedited copies and exact repeats are removed, and every different edited copy stays (`guidance_block_copies_removed`).
411
- - **A marker that lost its pair:** OpenRig can't tell where that block starts or ends, so it adds no copy beside it and names it (`guidance_block_markers_damaged`). Put back the missing marker or remove the partial block, and OpenRig's next write keeps one block. `rig package install` leaves such a file as it is, names it in its result (`notes`), and installs the rest. A marker without its pair beside a complete block is named too (`guidance_block_marker_unpaired`), and the block is written.
428
+ - **Collected copies:** a copy that repeats an earlier one exactly is removed. Beside a copy you edited, OpenRig's own unedited copies are removed too, and every different edited copy stays (`guidance_block_copies_removed`).
429
+ - **A marker that lost its pair:** OpenRig can't tell where that block starts or ends, so it adds no copy beside it and names it (`guidance_block_markers_damaged`). Put back the missing marker or remove the partial block, and OpenRig's next write treats that block like any other. `rig package install` leaves such a file as it is, names it in its result (`notes`), and installs the rest. A marker without its pair beside a complete block is named too (`guidance_block_marker_unpaired`), and the block is written.
412
430
 
413
431
  An exact resume doesn't type anything into the resumed conversation. So there, the restore result names the block (`guidanceNotes`), but the seat isn't told.
414
432
 
@@ -615,14 +633,23 @@ daemon's `CODEX_HOME`, else `~/.codex`.
615
633
  The guidance still goes to the repository `AGENTS.md`, as before, when:
616
634
 
617
635
  - a layer OpenRig reads sets `developer_instructions`, or can't be read. A launch warning names the file;
618
- - the launch resumes or forks a conversation. Developer instructions on a resume haven't been tested, and an exact
619
- resume puts the guidance back in the repository `AGENTS.md`;
620
- - the seat is restored, even when the restore starts a new conversation. A restore keeps the guidance file its launch
636
+ - the launch forks a conversation. Developer instructions on a fork haven't been tested;
637
+ - the seat is restored and the restore starts a new conversation. A restore keeps the guidance file its launch
621
638
  recorded, which for Codex is the repository `AGENTS.md`;
622
639
  - a handover successor starts (fresh, fork or rebuild). Its launch carries no guidance of its own, so the handover
623
640
  first puts the seat's missing blocks back in the repository `AGENTS.md` from its saved startup context;
624
641
  - Codex is older than 0.164.0, or its version is unknown.
625
642
 
643
+ A resume of the seat's own conversation, on a snapshot restore or `rig up --existing`, chooses as a fresh launch
644
+ does: on Codex 0.164.0 or later with none configured, the guidance blocks the repository `AGENTS.md` doesn't hold go
645
+ with the resume as `-c developer_instructions=…` instead of being put back in that file, and the guidance file its
646
+ launch recorded isn't changed. A file that already holds blocks keeps them: a block OpenRig wrote whose source has
647
+ changed is refreshed, and one edited by hand, or with no record of OpenRig writing it, is left as it is and named. A
648
+ block whose source is gone or can't be read isn't sent, and the restore reports it as missing. A seat in a rig without
649
+ pods starts its resumed conversation before its startup runs, so its missing blocks are still put back in the
650
+ repository `AGENTS.md`. Whether Codex keeps the earlier session's developer instructions as well isn't documented
651
+ by Codex; the text sent with the resume is the current one.
652
+
626
653
  A seat's role still arrives as startup text, and the seat-skills line, after the person's yes, still goes to
627
654
  `AGENTS.md`.
628
655
 
@@ -202,7 +202,8 @@ LIFECYCLE); see the
202
202
  its startup context is still pending for `rig seat continue`.
203
203
  - **Oriented:** `verified`, `missing`, `rejected`, `n-a`, from the startup proof.
204
204
  - **Attention codes:** `trust_gate`, `hook_trust_gate`, `update_gate`, `login_required`,
205
- `mcp_gate`, `bypass_consent_gate`, `codex_auth_refusal`, `codex_client_incompatible`.
205
+ `mcp_gate`, `bypass_consent_gate`, `claude_resume_selection_prompt`,
206
+ `claude_gated_grants_gate`, `codex_auth_refusal`, `codex_client_incompatible`.
206
207
  - **Restore outcome:** `resumed`, `fresh-primed`, `awaiting-decision`, `attention_required`,
207
208
  `failed` (plus `rebuilt`, `operator_recovered` and the legacy `fresh`). A seat joined with
208
209
  `rig attach` as an external CLI reads `left_attached`: restore leaves it as it is.
@@ -84,12 +84,14 @@ Shared test vectors are in `schemas/fixtures/identity-vectors.json`.
84
84
 
85
85
  `seats` gives a `pod.member` the runtimes it may use, and the profile each runtime uses. A member it doesn't list keeps
86
86
  the runtime `rig.yaml` gives it. `presets` names full mappings, and `recommended` names one of them, which must be
87
- `rig.yaml` as written. `rig bundle create`, `rig bundle configurations` and `rig bundle check` refuse a file that breaks
88
- these rules.
87
+ `rig.yaml` as written. `rig bundle check` reports a file that breaks these rules as a finding, and
88
+ `rig bundle configurations` names the problem instead of listing.
89
89
 
90
90
  `--preset` and `--seat` choose a configuration (see the [rig bundle reference](rig-bundle.md)). Any mix of each seat's
91
- declared runtimes can be built, not only the presets; a runtime a seat doesn't declare is refused, and nothing is built.
92
- Without either flag, create builds `rig.yaml` as written. The built archive's manifest records
91
+ declared runtimes can be built, not only the presets. A runtime a seat doesn't declare, or a choice from a file that
92
+ breaks these rules, is refused, and nothing is built. Without either flag, `rig bundle create`, and `rig bundle inspect`,
93
+ `rig bundle install` and `rig up` of a GitHub folder link, use `rig.yaml` as written and don't check
94
+ `configurations.yaml`. The built archive's manifest records
93
95
  `configuration: { id, preset }` outside the package digest; `preset` is there only when `--preset` or `--seat` chose a
94
96
  mapping that matches a declared preset.
95
97
 
@@ -20,7 +20,8 @@ The CLI itself finds the daemon in these orders:
20
20
  `$OPENRIG_HOME/daemon.json` when it holds a valid `pid` and `port`; else the config keys `daemon.host` and
21
21
  `daemon.port` (environment `OPENRIG_HOST` and `OPENRIG_PORT`), which default to `127.0.0.1:7433`.
22
22
  - **Status** (`rig status`, `rig daemon status`): `OPENRIG_URL` (or `RIGGED_URL`) first, probed directly; else
23
- the state file below.
23
+ the state file below. If no state is read, probe the configured `daemon.host` and `daemon.port` instead (defaulting
24
+ to `127.0.0.1:7433`).
24
25
  - **Start and stop** (`rig daemon start`, `stop`): the state file, `$OPENRIG_HOME/daemon.json`, then the legacy
25
26
  `~/.rigged/daemon.json`.
26
27
 
@@ -82,6 +83,13 @@ All of them are server-sent events (`text/event-stream`):
82
83
  `?replay=all`, no `replay`, or any other value sends the whole log first. A `Last-Event-ID` header (what
83
84
  `EventSource` sends when it reconnects) sends the events after that id instead, whatever `replay` says.
84
85
  Live events that arrive during the replay follow it, without duplicates.
86
+ When a person clicks an answer on an ask with questions (in Steering, the Feed, Slack or an MCP client), the stream
87
+ carries `queue.answer_recorded`: `{ qitemId, actorSession, questionId, answered, questions, complete, summary }`.
88
+ `complete: false` means the set is still partial: the ask stays open, and its answers haven't gone back yet. The
89
+ event carries ids and counts, not the choice; read the ask for its `humanAnswers`. A click that changes nothing (the
90
+ same option again) has no event, and neither does a typed reply, which settles the ask through its own
91
+ `queue.updated`. The event is recorded after the answer: if it can't be recorded, the answer still stands, so a
92
+ client that re-reads the ask after a gap still sees it.
85
93
  - **`GET /api/activity/events`**: live only, no replay or ids. Each message is named after its event type:
86
94
  `seat.activity_changed`, `seat.rung_health`, `proof.judged` or `proof.sources_changed`. It tells a view to read
87
95
  again; it carries no derived state.
@@ -151,6 +159,41 @@ An outbox entry's `deliveryState` reports the send attempt; only `delivered` con
151
159
  an open FYI, or a closed ask is not that receipt. The rig-wide reads and their limits are described below; the existing
152
160
  `outbox/list?senderSession=<session>` read remains available.
153
161
 
162
+ ### What needs a person, and how their answers link back (`team-operations.v1`)
163
+
164
+ `GET /api/team-operations/capabilities` says which team-operations jobs this daemon supports, separately from its
165
+ build:
166
+
167
+ ```json
168
+ { "contract": "team-operations.v1",
169
+ "capabilities": { "needs-me.read": "supported", "needs-me.answer": "not-supported", "needs-me.follow": "not-supported" },
170
+ "build": { "semver": "…", "commit": "…" } }
171
+ ```
172
+
173
+ A capability reads `supported`, `not-supported` or `unknown`, and a missing key means `unknown`. A daemon without the
174
+ route (HTTP 404) predates the contract: keep reading what it already returns. In a source run, `build` is
175
+ `{ semver: null, commit: null }`.
176
+
177
+ With `needs-me.read` supported:
178
+
179
+ - **What needs the person:** `GET /api/attention?view=<person-id>` (the same read as the Feed). Each queue item adds
180
+ `revision` and `about`. `revision` is the request's opaque decision revision: the same value as that row's
181
+ `decisionRevision`, and what an answer can name as `expectedRevision` so it applies only to the version the person
182
+ read. `about` lists the requests it concerns by id: a row parked on the person is itself the request, and an ask is
183
+ about the open rows blocked on it (at most 100; empty when none are recorded).
184
+ - **A snapshot watermark:** the response's `watermark` is the newest event `seq` read before the snapshot. Follow
185
+ `GET /api/events` from it with `Last-Event-ID: <watermark>`: every event after the snapshot is replayed, some possibly
186
+ already reflected in it. A click that records or changes an answer emits `queue.answer_recorded` even while the set
187
+ is partial. An identical repeated choice, or a later click after a pending ask's answer set is complete, records
188
+ nothing new and emits none. Events are best effort; re-read the snapshot or row after a stream gap.
189
+ - **The answers returned to a request:** `GET /api/queue/<qitemId>` adds `answers`, oldest first, each
190
+ `{ qitemId, by, at, text, episode, recordedIdentity }`. They are found by the answer row's link to the request, not
191
+ by its text, so don't parse the `In reply to:` line in an answer's body. `text` is the person's answer without that
192
+ footer. `episode` names the park an answer belongs to, or is null. `recordedIdentity` is the identity provenance
193
+ recorded when the answer row was created. An answer row's own read has `replyTo`, the request it answers. A partial
194
+ set of choices stays on the request's `humanAnswers` until the whole set is returned. A runner's permission request
195
+ or a host pairing request is answered in place, with no answer row.
196
+
154
197
  ## Route details
155
198
 
156
199
  - **A rig's queue history:** `GET /api/queue/list?rig=<rig>&updatedSince=<ISO time>&sort=updated` returns the
@@ -185,10 +185,10 @@ agent doing the setup. Both use this release's tag:
185
185
 
186
186
  ```sh
187
187
  # Claude Code
188
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.13/skills/rigs" --skill rigs --agent claude-code
188
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.15/skills/rigs" --skill rigs --agent claude-code
189
189
 
190
190
  # Codex
191
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.13/skills/rigs" --skill rigs --agent codex
191
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.15/skills/rigs" --skill rigs --agent codex
192
192
  ```
193
193
 
194
194
  If OpenRig is already installed, use the release tag matching your installed `rig --version` instead: replace the tag
@@ -203,13 +203,13 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
203
203
  script will do and changes nothing:
204
204
 
205
205
  ```sh
206
- curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.13/scripts/install.sh | sh -s -- --dry-run
206
+ curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.15/scripts/install.sh | sh -s -- --dry-run
207
207
  ```
208
208
 
209
209
  The same command without `--dry-run`,
210
- `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.13/scripts/install.sh | sh`, installs the
211
- latest published `@openrig/cli` with `npm install -g`,
212
- runs the Node.js and SQLite check, then `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
210
+ `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.15/scripts/install.sh | sh`, installs the
211
+ latest published `@openrig/cli` with `npm install -g`, runs the Node.js and SQLite check if the installed checker is
212
+ present (otherwise it reports the check skipped), then runs `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
213
213
  Codex and may install a missing one, as described below. A failed step prints
214
214
  `FAILED [n/4] <command or check> (exit <code>)` for steps 1–3. If step 4 is not ready, it reports
215
215
  `INSTALLED, SETUP NOT COMPLETE` and points to the details from `rig setup` above. Follow that output and any Fix, then rerun
@@ -308,11 +308,12 @@ team. `rig daemon start --no-kernel` is for automation or an explicit request to
308
308
  omit the kernel; it leaves you without that operator.
309
309
 
310
310
  On a fresh instance, explicit daemon startup chooses the kernel variant from
311
- successful native auth probes: Claude alone, Codex alone, or both. It starts the
312
- kernel in the background without a project starter. An absent unused provider is
313
- fine; if both accounts are authenticated, the kernel uses both even when your
314
- later project uses just one. A request to use only one provider for everything
315
- is a separate choice.
311
+ the providers selected by `rig setup --providers` that pass native auth probes:
312
+ Claude alone, Codex alone, or both. If no choice was recorded, it considers every
313
+ signed-in provider. `OPENRIG_PROVIDER_SELECTED` in the daemon's environment
314
+ overrides the saved choice. It starts the kernel in the background without a
315
+ project starter. An absent unused provider is fine. The kernel choice and a
316
+ later project's provider choice are separate.
316
317
 
317
318
  `/api/kernel/status` retains the chosen template (`rig.yaml`,
318
319
  `rig-claude-only.yaml` or `rig-codex-only.yaml`) across daemon restarts and
@@ -349,8 +350,13 @@ with `rig up kernel --existing`. A seat you stopped or unclaimed also stays down
349
350
  While the kernel's other seats are running, `rig up kernel --existing` refuses
350
351
  (it restores only a kernel with no live session), so start one stopped seat with
351
352
  `rig launch kernel <logical id>` (`--plan` first). It restores that seat from the
352
- kernel's latest restore-usable snapshot and resumes its saved conversation; a seat
353
- it can't resume is reported as waiting for a decision, not as started.
353
+ kernel snapshot that restore ranks first: the newest usable automatic one (taken
354
+ before `rig down`, on the periodic schedule, or at a runtime switch), even when a
355
+ manual one is newer, and otherwise the newest usable one. `--plan` names the
356
+ snapshot it picked and any newer usable one, and `--snapshot-id <id>` picks one
357
+ yourself. Under the default restore policy, which the kernel's seats keep, it
358
+ resumes the seat's saved conversation; a seat it can't resume is reported as
359
+ waiting for a decision, not as started.
354
360
  `rig seat launch <seat> --fresh --reason "…"` instead starts a new conversation
355
361
  with no continuity source: use it only when you want a fresh occupant, since the
356
362
  seat's earlier conversation isn't carried.
@@ -875,8 +881,8 @@ What it costs:
875
881
  ## Stop your teams
876
882
 
877
883
  `rig down <rig-name>` ends that rig's agent sessions and work in progress.
878
- A terminal OpenRig didn't start, such as a seat joined with `rig attach --self`,
879
- is left running: `rig down` names it with the commands to stop it by hand, and
884
+ A terminal OpenRig didn't start, such as a seat joined with `rig attach --self`
885
+ from a tmux pane, is left running: `rig down` names it with the commands to stop it by hand, and
880
886
  exits 2.
881
887
  Read `rig ps --nodes --rig <rig-name>` first so you can see who will stop;
882
888
  `rig down` also prints the rig's recorded agent sessions and their activity
@@ -10,7 +10,9 @@
10
10
  > runner is qualified beyond that.
11
11
  > - **Existing interfaces with author obligations:** launch-result identity, exact resume, first input and model
12
12
  > handoff. These interfaces do not establish that a particular runner implements them correctly.
13
- > - **Unchanged:** plain community presets and the built-in runtimes (Claude Code, Codex, Pi, OMP, terminal).
13
+ > - **Current source:** per-launch credentials for hosted Pi, Pi-RPC presets and declared community runners (section 4).
14
+ > This credential does not qualify new native input or cancellation behavior.
15
+ > - **Unchanged:** plain community presets and the other built-in runtimes (Claude Code, Codex, OMP, terminal).
14
16
  >
15
17
  > **What has run natively, in 0.7.8's release testing, against a Claude Haiku model:**
16
18
  > - **dsh-seat 0.3.0**, an outside runner for dsh 0.2.1-rc.2 over ACP: launch and first input, useful queue work, a
@@ -127,6 +129,29 @@ immediately before the preset's native command, after OpenRig's launcher assignm
127
129
 
128
130
  ## 4. Activity: report turn boundaries
129
131
 
132
+ Managed hosted Pi, Pi-RPC presets and declared community runners can receive an actual-launch credential in
133
+ `OPENRIG_ACTIVITY_HOOK_TOKEN`, with their attempt in `OPENRIG_RUN_ID`. Keep this credential in the runner's own
134
+ process; remove it from the native agent and tool environment. It is delivered through tmux's private environment,
135
+ never as a literal launch argument or launch-result field. A report that supplies `runId` requires this bound
136
+ credential; knowing a generation or the install token does not supply run authority.
137
+
138
+ Issuing or delivering this optional credential never blocks an otherwise supported launch or restore. If the launch
139
+ anchor, PID, generation or private credential channel is unavailable, the existing unbound install-token path remains;
140
+ that path adds no new run-authority claim and is not attributed to a selected run. A refused bound report stays
141
+ refused: it is never silently retried with the install token. If native dispatch already occurred before activation
142
+ failed, Core preserves the dispatched outcome and does not replay input; cleanup addresses only that launch's grant.
143
+ Unreadable observations cannot revoke a grant. Confirmed exit/replacement or intentional lifecycle cleanup still can.
144
+
145
+ Core activates a pending credential after dispatch against its selected session, pane and recorded runner. A staged
146
+ successor waits for the existing binding cutover; pending posts receive `activity_grant_pending` and must retry.
147
+ An unreadable binding is `activity_grant_unverified` (409, retryable): it could not be verified now, not proven stale.
148
+ Nothing is recorded and the grant is retained; retry when its binding can be checked again.
149
+ Failed launches revoke their own credential. Relaunch replaces the active run; an explicit no-launch adoption can
150
+ retain it only with the original concrete pane/process evidence and an adoption-only tenure continuation. These
151
+ checks bind a runner's reports to its launch; they do not independently verify its claimed native identity. Existing
152
+ host hooks, contained guest grants and install-token Pi usage keep their legacy behavior. Pi usage also accepts a
153
+ current bound Pi credential. No native input channel or cancellation capability is implied by this credential.
154
+
130
155
  Post each event to `POST <base>/api/activity/hooks` with `Authorization: Bearer <token>`.
131
156
  - **Finding the base and token:** take them from `OPENRIG_URL` (or `OPENRIG_PORT`, with `OPENRIG_HOST` defaulting to
132
157
  `127.0.0.1`) and `OPENRIG_ACTIVITY_HOOK_TOKEN`, or else from `$OPENRIG_HOME/activity-endpoint.json`.
@@ -401,6 +426,7 @@ answer. Only the seat's opt-in refuses and holds attention.
401
426
  | `stale_generation` | 409 | With the activity token: the post isn't from the seat's current occupant. | answers `cancelled` |
402
427
  | `activity_grant_wrong_seat` | 403 | The grant speaks for another seat. | answers `cancelled` |
403
428
  | `activity_grant_stale` | 409 | The grant's launch generation no longer occupies the seat. | answers `cancelled` |
429
+ | `activity_grant_unverified` | 409 | The binding could not be verified now; this is retryable, not evidence of replacement or cancellation. | permits under the existing unavailable-answer policy |
404
430
  | `activity_grant_revoked` | 401 | The grant was revoked while its launch generation still occupies the seat, or before it has registered, so this may still be the live request; a replaced occupant's grant reads `activity_grant_stale` instead, even once revoked. | permits |
405
431
  | `activity_grant_pending` | 409 | The grant's launch hasn't registered its occupant yet. | permits |
406
432
  | `duplicate_request` | 409 | This request id was already submitted in another turn; an agent may reuse an id. | permits |
@@ -92,8 +92,9 @@ 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
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
95
+ daemon's own bookkeeping: transitions by system actors (`*@system`, the
96
+ bare `system` of claim handover, `daemon@kernel` and every `system:*` actor;
97
+ other kernel seats such as `human@kernel` still count) and daemon notes recorded under any actor
97
98
  (`auto-unparked:`, `blocker custody moved `, `park wake `, `parked-owner `).
98
99
  The reported `transitionIds` are the counted transitions.
99
100
 
@@ -143,7 +144,8 @@ explicitly linked project or mission work resolves a scope. Its bounds: at most
143
144
  qitems, 1,000 members / 10,000 transitions per family, 200 workflow
144
145
  receipts, 200 declared slices, and 100 proof files per selected slice. Overflow
145
146
  refuses visibly. When more than 200 families (roots) were touched, it evaluates the
146
- 200 with the most transitions in the window, then by lineage ID, and reports the
147
+ 200 with the most transitions in the window (every transition, daemon bookkeeping
148
+ included, which bounds the counted ones), then by lineage ID, and reports the
147
149
  result as partial coverage with the total and omitted counts. Omitted families
148
150
  were not evaluated, so having no finding for them is not a healthy verdict.
149
151
  Context files are bounded to 64 KiB. A lineage beginning before
@@ -109,7 +109,9 @@ OpenRig doesn't observe a hosted member between its calls, so it never reads idl
109
109
  - **Presence:** each entry carries `presence`, which says what OpenRig last saw of the member. It isn't pickup, and `null` means unknown:
110
110
  - `lastCallAt`: its last authenticated call to this host's `rig mcp serve --http`, recorded at most once a minute in
111
111
  `<OPENRIG_HOME>/mcp-http-presence.json`, beside the token file;
112
- - `lastWake`: its latest ring and the result, among its 50 most recent rows.
112
+ - `lastWake`: its latest ring and the result, among its 50 most recent rows;
113
+ - `checkIn`: its check-in status, last check-in and stated cadence, as described in [Check-in status](#check-in-status)
114
+ (unknown, with the reason, when the daemon gives none).
113
115
  - `rig roster show` and `find` show the last call; the last ring is in `rig_team`.
114
116
 
115
117
  ### Check-in status
@@ -135,7 +137,13 @@ A stated cadence is its person's statement: neither reading proves the assistant
135
137
  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
138
  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
139
  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.
140
+ reason when it's unknown); `rig roster show` and `find` show it as `Check-in:`, for a team with or without terminal seats, and `rig ps` (with or
141
+ without `--nodes`, and when it has no rigs or nodes to show) lists every connected assistant after its table, one line
142
+ each. That's on this host, and in the node view of an HTTP host; an SSH host's `rig ps` prints its own. An HTTP host's
143
+ rig view and the multi-host fan-out leave the section out. When the list can't be read, for example from an older
144
+ daemon, it says check-in is unavailable instead. Its `--json` output is unchanged. The TUI's
145
+ instance and rig tables list them the same way after their seats, with times in the viewer's zone; when the list can't be read,
146
+ they say check-in is unavailable, as `rig ps` does.
139
147
  When the member has unclaimed work, the standing notice described above states the same status in its `check-ins:`
140
148
  line; when that notice is filed doesn't change.
141
149
 
@@ -169,10 +177,28 @@ and nothing else is offered:
169
177
  `rig_queue_create` that leaves out `destination` goes to that receiver. The operator sets it; a caller can't. It must be
170
178
  exactly one existing local node within that request's grant, or nothing is written. An explicit `destination` works as
171
179
  before.
180
+ - **A seat by its name:** a `destination` with no `@` names a seat as its team shows it: its session's own name, then its
181
+ pod-member form, then that name's slug, in the connection's one rig or the configured receiver's. Only seats the grant
182
+ can address count, and the first of these that any of them matches decides, so another seat's slug never makes an exact
183
+ name ambiguous and a seat the grant can't address never shadows one it can. The item is stored under that
184
+ seat's actual session. A slug two seats match returns `destination_ambiguous` with the candidates, and a name that no
185
+ seat the grant can reach has returns `destination_not_found`. A name the grant can't address as written (its own seat,
186
+ or another assistant's without `team`/`list`) stays `out_of_scope`, whether or not that seat exists.
172
187
  - **Two assistants together:** a grant with `team`/`list` sees its rigs' seats with `rig_team`, and may address and hear from
173
188
  another connected assistant's seat. A grant without it never reaches a seat in the service's caller form
174
189
  (`cus-<id>-<connection>@<rig>`), so an existing connection keeps the reach it had.
175
- - **Messages are items:** a message is an item the receiver reads and closes, and a reply is an item back to its sender.
190
+ - **Messages are items:** a message is an item the receiver reads and closes, with any reply in its `resolution`. The
191
+ sender reads that reply on the same item. Nothing wakes the sender or posts a new item for it. A separate new message is
192
+ new work.
193
+ - **A fair-use limit on new work:** the service can add `throttle: { new_work: true, retry_after_seconds: <n> }` to an
194
+ active answer.
195
+ - While it does, a `rig_queue_create` that would open a new item writes nothing. It returns `fair_use_retry_later` with
196
+ `retryAfterSeconds` (1 to 600) and the `qitemId` to retry with.
197
+ - A retry of a create that already landed is answered from the stored item, as before.
198
+ - Everything else is served: reading, claiming and closing existing items (a reply in `resolution` included), and
199
+ answering the team's questions. A separate new message or revision waits like any other new item.
200
+ - It's never a credential refusal, and a `throttle` that can't be read is ignored.
201
+ - The service is asked once per HTTP request (initialize and tool listing included), not once per tool call.
176
202
  - **What the sender can tell, from the item it reads:**
177
203
  - **Queued:** the item exists and is `pending` with no claim.
178
204
  - **Picked up:** the receiver's claim (`in-progress`).
@@ -124,10 +124,12 @@ manual replay. A recurring reminder keeps its next normal cycle under a new occu
124
124
  finishing its accounting does not type the same occurrence twice.
125
125
 
126
126
  Exhausted retries end only the failed occurrence, with its cause and next action; a recurring
127
- reminder keeps its next normal cycle. A permanent transport failure leaves a terminal job:
128
- correct the destination and register a replacement reminder. A one-shot park timer records its
129
- failed or unconfirmed wake on the parked row before it ends. A retryable failure is recorded
130
- there while the timer stays armed. Deliberately held
127
+ reminder keeps its next normal cycle, and a permanent transport failure leaves it a terminal job:
128
+ correct the destination and register a replacement reminder. A one-shot park timer (`--wake-after`)
129
+ has no later cycle, so neither the retry limit nor a permanent transport failure ends it while its
130
+ task is still set aside: each failure before input is recorded on the parked row while the timer
131
+ stays armed, and it retries until it's delivered or the park ends. If input may have reached the
132
+ seat, it records the unconfirmed wake on the parked row and ends. Deliberately held
131
133
  input keeps its existing retained-message custody. Condition watches and parked-owner policy
132
134
  behavior are unchanged. This does not replay failed occurrences recorded by older versions.
133
135
 
@@ -289,11 +291,14 @@ Unknown: not said yet.
289
291
  stopped (the first fire comes one interval after you register it), and it stops when the agent that registered it
290
292
  is replaced. It's fine for agent-to-agent reminders. Your own watch timers also show as `periodic-reminder` in
291
293
  `rig watchdog list`: that's the one-shot timer `--wake-after` arms, not a registered repeating reminder. It's retired
292
- when it fires or when the task stops being set aside. A wake held back because you were typing (a retained
293
- delivery) wasn't delivered, so it doesn't use the timer up: it's tried again at each interval until an attempt goes
294
- through (delivered or failed), which retires it. A timer another task shares through `--wake-watchdog` stays live
295
- for that task when this task is handed off or stopped, and the same rule applies to its wake. None of this is a
296
- delivery guarantee.
294
+ after delivery, when the occurrence ends, or when the task stops being set aside. A wake held back because you were typing (a retained
295
+ delivery) wasn't delivered, so it doesn't use the timer up. A failure known to have happened before input reached
296
+ the seat also keeps the same wake owed and retries on the existing cadence until delivery or the park ends. If input
297
+ may have reached the seat, the occurrence ends without automatic replay; inspect the receipt before retrying.
298
+ A timer another task shares through `--wake-watchdog` stays live for that task when this task is
299
+ handed off or stopped, and a held-back wake doesn't use it up. Once this task's park has ended, though,
300
+ a failure before input to that task is retried only up to `queue.wake_retry_cap` times (a permanent
301
+ transport failure ends it at once), and then the timer ends. None of this is a delivery guarantee.
297
302
  - **Transcript bytes as "usage".** `context-usage-threshold` measures an agent's transcript, not an account's
298
303
  allowance. For an allowance, see "A usage warning" above.
299
304
 
@@ -8,7 +8,73 @@ with one grant per participant. The network connector puts one selected local se
8
8
  The connector opens no port: your daemon makes every connection outward, and the hub never connects to your machine. Work the hub
9
9
  sends that participant runs on your seat, under your accounts, and the result goes back to the hub item.
10
10
 
11
- ## Connect
11
+ **The network connector is experimental and unsupported.** Use it only if you choose to, at your own risk.
12
+
13
+ ## Enroll in an account, then connect by name
14
+
15
+ When your hub is an account's network, enroll this daemon once with the one-time code its page shows, then connect
16
+ seats by name:
17
+
18
+ ```bash
19
+ rig network enroll <code> --site <site URL>
20
+ rig network connect <seat> --as <name>
21
+ ```
22
+
23
+ - `enroll` trades the code, with this daemon's host id, for an installation key. The key is stored like a participant's
24
+ token, under `<OpenRig home>/network-secrets/<installation>/key.json`, and is never returned or shown. A code is
25
+ single-use and short-lived; a refused one says why, so get a new one from the page. If the account doesn't answer,
26
+ whether it took the code is unknown: try again with the same code, and get a new one if that's refused.
27
+ - Enrolling trusts the site with where your connected seats' work goes: for each name, the account answers the front
28
+ and rig the binding reaches.
29
+ - The installation key goes only to the site you enrolled at: a redirect from it isn't followed. Each `enroll`,
30
+ `connect` or `disconnect` spends at most 30 seconds with the account in all, and the command waits 45 seconds for the
31
+ daemon, so you see the account's own answer or error.
32
+ - The account keeps one list of the installation's names, and every change sends the whole list. Changes to it run one
33
+ at a time on this daemon, each reading the names to keep in its turn, so two connects started together both stay
34
+ connected.
35
+ - `connect --as <name>` lists the name with the account, which answers that participant's bearer, its MCP front and its
36
+ rig. The binding then reaches that front as `<name>@<rig>`, the same as a direct connect. A name is lowercase letters,
37
+ digits and inner dashes, up to 32. One that another connection to the account uses is refused.
38
+ - If the answer to a connect is lost, the next connect drops the name and lists it again, which gets a fresh bearer and
39
+ ends the old one.
40
+ - If the account listed the name but the binding can't be made here, OpenRig asks the account to drop the name again.
41
+ That's best effort: if it fails too, the error says the account may still list the name.
42
+ - `disconnect` ends the binding here, then has the account stop listing the name, which revokes it there. Once the
43
+ account's answer no longer lists the name, `disconnect` says the account stopped listing it. If the account can't be
44
+ reached or its answer is lost, the binding is still ended, the error says OpenRig couldn't confirm the account dropped
45
+ the name and names the `rig network disconnect <binding id>` to run again, and `rig network status` keeps showing it
46
+ as unconfirmed. A later answer from the same account installation that no longer lists the name marks it dropped.
47
+ - `rig network status` shows the enrollment above the bindings.
48
+
49
+ ### Enroll again after a lost key or a removed installation
50
+
51
+ When the installation key is missing, or the account no longer recognizes the installation, the error says to enroll
52
+ again with a new code from the account page:
53
+
54
+ ```bash
55
+ rig network enroll <code> --site <site URL> --replace
56
+ ```
57
+
58
+ Without `--replace`, a second enroll at the same site is refused and the code isn't spent. With it, the replace first
59
+ waits for any other change to this enrollment to finish, within the same 30 seconds; one that runs out of time while
60
+ waiting says so and doesn't send the code. The account makes a new installation, with a new key, for the new code. Here,
61
+ that key takes the old one's place and the bindings made through the old installation end, in one step:
62
+
63
+ - If that step fails after the account accepted the code, the enrollment's record here doesn't change, and the error
64
+ says so. The key is put back too, but moving key files happens outside that record's rollback. If putting it back also
65
+ fails (on a full or read-only disk, for example), the old key is left as `key.json.prev` beside `key.json` in the
66
+ installation's folder under `network-secrets/` in the OpenRig home: move it back to `key.json` before you go on. A
67
+ `key.json.next` there is a staged new key, and the next replace removes it. The old enrollment keeps working only
68
+ while the account keeps the old installation, and the account now has a new installation whose key nothing here
69
+ holds: remove it on the account page, then enroll again with a new code.
70
+ - Once the step is done, `enroll` names the bindings it ended. The old installation may still list their names, and the
71
+ new key can't drop them, so remove them on the account page. `rig network status` marks each of them as possibly still
72
+ listed under the old installation, as it does a binding that ended earlier without the account confirming the drop:
73
+ only the installation a name was listed under can confirm it.
74
+ - If cleanup after the step doesn't finish (removing the old key's backup, or an ended binding's credential), `enroll`
75
+ reports it, and the replace still stands.
76
+
77
+ ## Connect with a hub URL and a token
12
78
 
13
79
  ```bash
14
80
  rig network connect <seat> --hub <url> --as <participant> --token-file <path>
@@ -69,8 +135,9 @@ rig queue update <local item> --state done --closure-reason no-follow-on --resol
69
135
  rig network status [--json]
70
136
  ```
71
137
 
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.
138
+ Each binding shows its seat, participant, hub, state, and its last contact or last error. An ended binding made through
139
+ the account also says when the account hasn't confirmed it dropped the name, or when the name may still be listed under
140
+ a replaced installation. `--json` adds the connector's view: each binding's next pass, backoff and last pass.
74
141
 
75
142
  ## When things go wrong
76
143
 
@@ -88,7 +155,8 @@ rig network disconnect <binding-or-seat> [--reason "<why>"]
88
155
  ```
89
156
 
90
157
  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.
158
+ stay. A binding made through the account is then dropped there too (see above). For a binding made with a hub URL and
159
+ a token, the hub still lists the participant until it's removed there too.
92
160
 
93
161
  If the credential can't be removed, the binding still ends, and the error names the
94
162
  `rig network disconnect <binding id>` to run again. The daemon also removes credentials whose binding isn't active
@@ -104,11 +172,14 @@ each time it starts.
104
172
  An atomic close-if-open needs the hub to offer a conditional close.
105
173
  - After a disconnect or a revocation, work already taken keeps running here, but its pickup and result no longer reach
106
174
  the hub item, which stays at its last reported stage.
175
+ - If the daemon stops between storing a new installation key and recording the enrollment, that key's folder under
176
+ `network-secrets/` stays with no enrollment, and nothing removes it. It's private to you and unused, so remove it by
177
+ hand.
107
178
  - **Plain http needs your choice.** `rig network connect` refuses an `http:` hub URL until you add `--allow-http`, because
108
179
  the participant's token and its work then cross the network unencrypted, where they can be read. Use the hub's
109
180
  `https:` URL where it has one. The choice is recorded on that binding, so the connector doesn't ask again, and
110
181
  `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.
182
+ tailnet address doesn't prove the connection is protected. `rig network enroll` asks the same for a plain-http site.
112
183
  - **Redirects:** the connector follows a hub's redirect only within its own origin, or to its `https:` form on the same
113
184
  host. Any other redirect stops the connection with its target named, and the token isn't sent there. Connect the
114
185
  binding to the hub's own URL.