@openrig/cli 0.7.24 → 0.7.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1037) hide show
  1. package/README.md +7 -7
  2. package/daemon/assets/claude-hook-bridge.cjs +151 -37
  3. package/daemon/assets/claude-hook-bridge.d.cts +9 -2
  4. package/daemon/assets/claude-permission-policies.cjs +22 -1
  5. package/daemon/assets/claude-permission-policies.d.cts +2 -0
  6. package/daemon/assets/claude-statusline-context.cjs +14 -0
  7. package/daemon/assets/claude-team-permissions.cjs +54 -6
  8. package/daemon/assets/guidance/openrig-context-entry.md +4 -5
  9. package/daemon/assets/guidance/openrig-start.md +3 -0
  10. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +2 -2
  11. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
  12. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
  13. package/daemon/assets/plugins/openrig/README.md +33 -18
  14. package/daemon/assets/plugins/openrig/hooks/scripts/claude-hook-bridge.cjs +151 -37
  15. package/daemon/assets/plugins/openrig/plugin.json +1 -1
  16. package/daemon/assets/plugins/openrig/scripts/run-rig.cjs +16 -13
  17. package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +32 -19
  18. package/daemon/assets/plugins/openrig-codex/.codex-plugin/plugin.json +1 -1
  19. package/daemon/assets/plugins/openrig-codex/hooks/scripts/claude-hook-bridge.cjs +151 -37
  20. package/daemon/assets/plugins/openrig-codex/skills/working-with-an-openrig-team/SKILL.md +32 -19
  21. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  22. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  23. package/daemon/assets/plugins/openrig-core/hooks/scripts/permission-answer.cjs +3 -2
  24. package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +47 -14
  25. package/daemon/assets/plugins/openrig-core/skills/session-compaction-and-restore/SKILL.md +5 -2
  26. package/daemon/assets/skills/rigs/SKILL.md +99 -34
  27. package/daemon/assets/skills/rigs/references/installing-for-someone.md +1 -1
  28. package/daemon/context-packs/help/help.md +9 -0
  29. package/daemon/context-packs/help/manifest.yaml +1 -1
  30. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  31. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +179 -25
  32. package/daemon/context-packs/reference/getting-started.md +73 -11
  33. package/daemon/context-packs/reference/manifest.yaml +1 -1
  34. package/daemon/context-packs/reference/rig-spec.md +218 -23
  35. package/daemon/context-packs/reference/whats-new.md +190 -14
  36. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/core/cross-host-rig-commands/SKILL.md +9 -1
  43. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +32 -19
  59. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/openrig-user/SKILL.md +47 -14
  66. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  77. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  78. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  79. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  80. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  81. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  82. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  83. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  84. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  85. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  86. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  87. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  88. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  89. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  90. package/daemon/context-packs/skills/session-compaction-and-restore/SKILL.md +5 -2
  91. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  92. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  93. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  94. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  95. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  96. package/daemon/dist/adapters/claude-code-adapter.js +25 -8
  97. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  98. package/daemon/dist/adapters/claude-resume.d.ts +2 -0
  99. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  100. package/daemon/dist/adapters/claude-resume.js +44 -8
  101. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  102. package/daemon/dist/adapters/codex-resume.d.ts +3 -0
  103. package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
  104. package/daemon/dist/adapters/codex-resume.js +7 -3
  105. package/daemon/dist/adapters/codex-resume.js.map +1 -1
  106. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +49 -4
  107. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  108. package/daemon/dist/adapters/codex-runtime-adapter.js +238 -25
  109. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  110. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +12 -5
  111. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
  112. package/daemon/dist/adapters/community-harness-runtime-adapter.js +15 -5
  113. package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
  114. package/daemon/dist/adapters/kernel-authority.d.ts +2 -2
  115. package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
  116. package/daemon/dist/adapters/kernel-authority.js +5 -3
  117. package/daemon/dist/adapters/kernel-authority.js.map +1 -1
  118. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  119. package/daemon/dist/adapters/pi-runner.js +9 -0
  120. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  121. package/daemon/dist/adapters/pi-session-cwd.d.ts +26 -0
  122. package/daemon/dist/adapters/pi-session-cwd.d.ts.map +1 -0
  123. package/daemon/dist/adapters/pi-session-cwd.js +89 -0
  124. package/daemon/dist/adapters/pi-session-cwd.js.map +1 -0
  125. package/daemon/dist/adapters/shell-quote.d.ts +2 -0
  126. package/daemon/dist/adapters/shell-quote.d.ts.map +1 -1
  127. package/daemon/dist/adapters/shell-quote.js +43 -0
  128. package/daemon/dist/adapters/shell-quote.js.map +1 -1
  129. package/daemon/dist/adapters/tmux-credential-env.d.ts +15 -2
  130. package/daemon/dist/adapters/tmux-credential-env.d.ts.map +1 -1
  131. package/daemon/dist/adapters/tmux-credential-env.js +82 -2
  132. package/daemon/dist/adapters/tmux-credential-env.js.map +1 -1
  133. package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
  134. package/daemon/dist/adapters/tmux-exec.js +2 -6
  135. package/daemon/dist/adapters/tmux-exec.js.map +1 -1
  136. package/daemon/dist/adapters/tmux.d.ts +31 -1
  137. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  138. package/daemon/dist/adapters/tmux.js +104 -8
  139. package/daemon/dist/adapters/tmux.js.map +1 -1
  140. package/daemon/dist/attention-surface.d.ts +5 -0
  141. package/daemon/dist/attention-surface.d.ts.map +1 -1
  142. package/daemon/dist/attention-surface.js.map +1 -1
  143. package/daemon/dist/bind-plan-surface.d.ts +3 -0
  144. package/daemon/dist/bind-plan-surface.d.ts.map +1 -0
  145. package/daemon/dist/bind-plan-surface.js +5 -0
  146. package/daemon/dist/bind-plan-surface.js.map +1 -0
  147. package/daemon/dist/build-info.js +3 -3
  148. package/daemon/dist/db/all-migrations.d.ts +4 -1
  149. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  150. package/daemon/dist/db/all-migrations.js +30 -393
  151. package/daemon/dist/db/all-migrations.js.map +1 -1
  152. package/daemon/dist/db/migrations/187_provider_account_refs.d.ts +8 -0
  153. package/daemon/dist/db/migrations/187_provider_account_refs.d.ts.map +1 -0
  154. package/daemon/dist/db/migrations/187_provider_account_refs.js +25 -0
  155. package/daemon/dist/db/migrations/187_provider_account_refs.js.map +1 -0
  156. package/daemon/dist/db/migrations/188_provider_account_assignments.d.ts +14 -0
  157. package/daemon/dist/db/migrations/188_provider_account_assignments.d.ts.map +1 -0
  158. package/daemon/dist/db/migrations/188_provider_account_assignments.js +45 -0
  159. package/daemon/dist/db/migrations/188_provider_account_assignments.js.map +1 -0
  160. package/daemon/dist/db/migrations/191_queue_transfer_activation.d.ts +3 -0
  161. package/daemon/dist/db/migrations/191_queue_transfer_activation.d.ts.map +1 -0
  162. package/daemon/dist/db/migrations/191_queue_transfer_activation.js +49 -0
  163. package/daemon/dist/db/migrations/191_queue_transfer_activation.js.map +1 -0
  164. package/daemon/dist/db/migrations/191_seat_reap_state.d.ts +3 -0
  165. package/daemon/dist/db/migrations/191_seat_reap_state.d.ts.map +1 -0
  166. package/daemon/dist/db/migrations/191_seat_reap_state.js +19 -0
  167. package/daemon/dist/db/migrations/191_seat_reap_state.js.map +1 -0
  168. package/daemon/dist/db/migrations/197_session_agent_activity_hooks.d.ts +3 -0
  169. package/daemon/dist/db/migrations/197_session_agent_activity_hooks.d.ts.map +1 -0
  170. package/daemon/dist/db/migrations/197_session_agent_activity_hooks.js +9 -0
  171. package/daemon/dist/db/migrations/197_session_agent_activity_hooks.js.map +1 -0
  172. package/daemon/dist/db/migrations/200_context_configured_budget.d.ts +3 -0
  173. package/daemon/dist/db/migrations/200_context_configured_budget.d.ts.map +1 -0
  174. package/daemon/dist/db/migrations/200_context_configured_budget.js +5 -0
  175. package/daemon/dist/db/migrations/200_context_configured_budget.js.map +1 -0
  176. package/daemon/dist/db/migrations/200_seat_cold_start_standby_stop.d.ts +3 -0
  177. package/daemon/dist/db/migrations/200_seat_cold_start_standby_stop.d.ts.map +1 -0
  178. package/daemon/dist/db/migrations/200_seat_cold_start_standby_stop.js +5 -0
  179. package/daemon/dist/db/migrations/200_seat_cold_start_standby_stop.js.map +1 -0
  180. package/daemon/dist/db/migrations/200_sessions_earlier_handover_origin.d.ts +11 -0
  181. package/daemon/dist/db/migrations/200_sessions_earlier_handover_origin.d.ts.map +1 -0
  182. package/daemon/dist/db/migrations/200_sessions_earlier_handover_origin.js +34 -0
  183. package/daemon/dist/db/migrations/200_sessions_earlier_handover_origin.js.map +1 -0
  184. package/daemon/dist/db/migrations/201_queue_transitions_archive_actor_index.d.ts +7 -0
  185. package/daemon/dist/db/migrations/201_queue_transitions_archive_actor_index.d.ts.map +1 -0
  186. package/daemon/dist/db/migrations/201_queue_transitions_archive_actor_index.js +12 -0
  187. package/daemon/dist/db/migrations/201_queue_transitions_archive_actor_index.js.map +1 -0
  188. package/daemon/dist/db/migrations/201_roster_event_index.d.ts +4 -0
  189. package/daemon/dist/db/migrations/201_roster_event_index.d.ts.map +1 -0
  190. package/daemon/dist/db/migrations/201_roster_event_index.js +9 -0
  191. package/daemon/dist/db/migrations/201_roster_event_index.js.map +1 -0
  192. package/daemon/dist/db/migrations/202_network_requester_questions.d.ts +4 -0
  193. package/daemon/dist/db/migrations/202_network_requester_questions.d.ts.map +1 -0
  194. package/daemon/dist/db/migrations/202_network_requester_questions.js +10 -0
  195. package/daemon/dist/db/migrations/202_network_requester_questions.js.map +1 -0
  196. package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.d.ts +3 -0
  197. package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.d.ts.map +1 -0
  198. package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.js +22 -0
  199. package/daemon/dist/db/migrations/203_outbox_runner_receipts_index.js.map +1 -0
  200. package/daemon/dist/domain/activity-taxonomy.d.ts +16 -5
  201. package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
  202. package/daemon/dist/domain/activity-taxonomy.js +30 -5
  203. package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
  204. package/daemon/dist/domain/agent-activity-store.d.ts +4 -0
  205. package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
  206. package/daemon/dist/domain/agent-activity-store.js +21 -0
  207. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  208. package/daemon/dist/domain/agent-images/agent-image-destination.d.ts +15 -0
  209. package/daemon/dist/domain/agent-images/agent-image-destination.d.ts.map +1 -0
  210. package/daemon/dist/domain/agent-images/agent-image-destination.js +79 -0
  211. package/daemon/dist/domain/agent-images/agent-image-destination.js.map +1 -0
  212. package/daemon/dist/domain/agent-images/agent-image-library-service.d.ts.map +1 -1
  213. package/daemon/dist/domain/agent-images/agent-image-library-service.js +9 -1
  214. package/daemon/dist/domain/agent-images/agent-image-library-service.js.map +1 -1
  215. package/daemon/dist/domain/bootstrap-orchestrator.d.ts +4 -3
  216. package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
  217. package/daemon/dist/domain/bootstrap-orchestrator.js +55 -11
  218. package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
  219. package/daemon/dist/domain/bundle-content-routing.d.ts +7 -0
  220. package/daemon/dist/domain/bundle-content-routing.d.ts.map +1 -1
  221. package/daemon/dist/domain/bundle-content-routing.js +20 -15
  222. package/daemon/dist/domain/bundle-content-routing.js.map +1 -1
  223. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +40 -1
  224. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  225. package/daemon/dist/domain/claude-compaction-enforcer.js +101 -11
  226. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  227. package/daemon/dist/domain/claude-continuation-launch.d.ts +19 -2
  228. package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -1
  229. package/daemon/dist/domain/claude-continuation-launch.js +143 -3
  230. package/daemon/dist/domain/claude-continuation-launch.js.map +1 -1
  231. package/daemon/dist/domain/claude-managed-launch.d.ts +22 -5
  232. package/daemon/dist/domain/claude-managed-launch.d.ts.map +1 -1
  233. package/daemon/dist/domain/claude-managed-launch.js +41 -5
  234. package/daemon/dist/domain/claude-managed-launch.js.map +1 -1
  235. package/daemon/dist/domain/claude-permission-rules.d.ts +3 -1
  236. package/daemon/dist/domain/claude-permission-rules.d.ts.map +1 -1
  237. package/daemon/dist/domain/claude-permission-rules.js +8 -7
  238. package/daemon/dist/domain/claude-permission-rules.js.map +1 -1
  239. package/daemon/dist/domain/claude-seat-token.d.ts +25 -1
  240. package/daemon/dist/domain/claude-seat-token.d.ts.map +1 -1
  241. package/daemon/dist/domain/claude-seat-token.js +56 -9
  242. package/daemon/dist/domain/claude-seat-token.js.map +1 -1
  243. package/daemon/dist/domain/codex-auth.d.ts +34 -0
  244. package/daemon/dist/domain/codex-auth.d.ts.map +1 -1
  245. package/daemon/dist/domain/codex-auth.js +212 -0
  246. package/daemon/dist/domain/codex-auth.js.map +1 -1
  247. package/daemon/dist/domain/codex-member-permissions.d.ts +17 -0
  248. package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -1
  249. package/daemon/dist/domain/codex-member-permissions.js +80 -0
  250. package/daemon/dist/domain/codex-member-permissions.js.map +1 -1
  251. package/daemon/dist/domain/community-harness-launch-result.d.ts +9 -0
  252. package/daemon/dist/domain/community-harness-launch-result.d.ts.map +1 -1
  253. package/daemon/dist/domain/community-harness-launch-result.js +14 -2
  254. package/daemon/dist/domain/community-harness-launch-result.js.map +1 -1
  255. package/daemon/dist/domain/community-harness-presets.d.ts +15 -0
  256. package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
  257. package/daemon/dist/domain/community-harness-presets.js +82 -48
  258. package/daemon/dist/domain/community-harness-presets.js.map +1 -1
  259. package/daemon/dist/domain/compaction-restore-notice.d.ts +33 -5
  260. package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
  261. package/daemon/dist/domain/compaction-restore-notice.js +221 -48
  262. package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
  263. package/daemon/dist/domain/context-usage-store.d.ts +1 -0
  264. package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
  265. package/daemon/dist/domain/context-usage-store.js +34 -3
  266. package/daemon/dist/domain/context-usage-store.js.map +1 -1
  267. package/daemon/dist/domain/crash-cart-detect.d.ts +7 -0
  268. package/daemon/dist/domain/crash-cart-detect.d.ts.map +1 -1
  269. package/daemon/dist/domain/crash-cart-detect.js +10 -5
  270. package/daemon/dist/domain/crash-cart-detect.js.map +1 -1
  271. package/daemon/dist/domain/crash-cart-discovery.d.ts +9 -16
  272. package/daemon/dist/domain/crash-cart-discovery.d.ts.map +1 -1
  273. package/daemon/dist/domain/crash-cart-discovery.js +22 -40
  274. package/daemon/dist/domain/crash-cart-discovery.js.map +1 -1
  275. package/daemon/dist/domain/crash-cart-emit.d.ts +1 -1
  276. package/daemon/dist/domain/crash-cart-emit.d.ts.map +1 -1
  277. package/daemon/dist/domain/crash-cart-emit.js +4 -0
  278. package/daemon/dist/domain/crash-cart-emit.js.map +1 -1
  279. package/daemon/dist/domain/current-park-arm.d.ts +2 -0
  280. package/daemon/dist/domain/current-park-arm.d.ts.map +1 -1
  281. package/daemon/dist/domain/current-park-arm.js +5 -0
  282. package/daemon/dist/domain/current-park-arm.js.map +1 -1
  283. package/daemon/dist/domain/current-work.d.ts +16 -4
  284. package/daemon/dist/domain/current-work.d.ts.map +1 -1
  285. package/daemon/dist/domain/current-work.js +3 -6
  286. package/daemon/dist/domain/current-work.js.map +1 -1
  287. package/daemon/dist/domain/cwd-resolution.d.ts +12 -1
  288. package/daemon/dist/domain/cwd-resolution.d.ts.map +1 -1
  289. package/daemon/dist/domain/cwd-resolution.js +39 -2
  290. package/daemon/dist/domain/cwd-resolution.js.map +1 -1
  291. package/daemon/dist/domain/draft-aware-delivery.d.ts +17 -2
  292. package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
  293. package/daemon/dist/domain/draft-aware-delivery.js +98 -9
  294. package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
  295. package/daemon/dist/domain/draft-held-reoffer.d.ts +61 -0
  296. package/daemon/dist/domain/draft-held-reoffer.d.ts.map +1 -0
  297. package/daemon/dist/domain/draft-held-reoffer.js +143 -0
  298. package/daemon/dist/domain/draft-held-reoffer.js.map +1 -0
  299. package/daemon/dist/domain/execution-view.d.ts +20 -0
  300. package/daemon/dist/domain/execution-view.d.ts.map +1 -1
  301. package/daemon/dist/domain/execution-view.js +50 -16
  302. package/daemon/dist/domain/execution-view.js.map +1 -1
  303. package/daemon/dist/domain/gateway/destination-resolver.d.ts +10 -2
  304. package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
  305. package/daemon/dist/domain/gateway/destination-resolver.js +26 -3
  306. package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
  307. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  308. package/daemon/dist/domain/gateway/slack/inbound.js +5 -4
  309. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  310. package/daemon/dist/domain/gateway/slack/queue-access.js +1 -1
  311. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  312. package/daemon/dist/domain/generated-file-hygiene.d.ts.map +1 -1
  313. package/daemon/dist/domain/generated-file-hygiene.js +35 -2
  314. package/daemon/dist/domain/generated-file-hygiene.js.map +1 -1
  315. package/daemon/dist/domain/graph-projection.d.ts +7 -1
  316. package/daemon/dist/domain/graph-projection.d.ts.map +1 -1
  317. package/daemon/dist/domain/graph-projection.js +2 -0
  318. package/daemon/dist/domain/graph-projection.js.map +1 -1
  319. package/daemon/dist/domain/health-context-samples.d.ts +23 -0
  320. package/daemon/dist/domain/health-context-samples.d.ts.map +1 -0
  321. package/daemon/dist/domain/health-context-samples.js +113 -0
  322. package/daemon/dist/domain/health-context-samples.js.map +1 -0
  323. package/daemon/dist/domain/health-detectors.d.ts +3 -0
  324. package/daemon/dist/domain/health-detectors.d.ts.map +1 -1
  325. package/daemon/dist/domain/health-detectors.js +8 -7
  326. package/daemon/dist/domain/health-detectors.js.map +1 -1
  327. package/daemon/dist/domain/home-isolation.d.ts.map +1 -1
  328. package/daemon/dist/domain/home-isolation.js +21 -8
  329. package/daemon/dist/domain/home-isolation.js.map +1 -1
  330. package/daemon/dist/domain/hook-bridge.d.ts +7 -5
  331. package/daemon/dist/domain/hook-bridge.d.ts.map +1 -1
  332. package/daemon/dist/domain/hook-bridge.js +12 -11
  333. package/daemon/dist/domain/hook-bridge.js.map +1 -1
  334. package/daemon/dist/domain/kernel-boot-tracker.d.ts +7 -5
  335. package/daemon/dist/domain/kernel-boot-tracker.d.ts.map +1 -1
  336. package/daemon/dist/domain/kernel-boot-tracker.js +11 -6
  337. package/daemon/dist/domain/kernel-boot-tracker.js.map +1 -1
  338. package/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
  339. package/daemon/dist/domain/kernel-boot.js +6 -2
  340. package/daemon/dist/domain/kernel-boot.js.map +1 -1
  341. package/daemon/dist/domain/kernel-hook-review.d.ts +10 -2
  342. package/daemon/dist/domain/kernel-hook-review.d.ts.map +1 -1
  343. package/daemon/dist/domain/kernel-hook-review.js +18 -4
  344. package/daemon/dist/domain/kernel-hook-review.js.map +1 -1
  345. package/daemon/dist/domain/managed-restore-read-access.d.ts +6 -2
  346. package/daemon/dist/domain/managed-restore-read-access.d.ts.map +1 -1
  347. package/daemon/dist/domain/managed-restore-read-access.js +35 -4
  348. package/daemon/dist/domain/managed-restore-read-access.js.map +1 -1
  349. package/daemon/dist/domain/mission-control/audit-browse.d.ts.map +1 -1
  350. package/daemon/dist/domain/mission-control/audit-browse.js +1 -0
  351. package/daemon/dist/domain/mission-control/audit-browse.js.map +1 -1
  352. package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts +3 -1
  353. package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts.map +1 -1
  354. package/daemon/dist/domain/mission-control/mission-control-action-log.js +7 -0
  355. package/daemon/dist/domain/mission-control/mission-control-action-log.js.map +1 -1
  356. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +3 -0
  357. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  358. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +56 -13
  359. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  360. package/daemon/dist/domain/mission-control/notification-adapter-from-env.d.ts +8 -0
  361. package/daemon/dist/domain/mission-control/notification-adapter-from-env.d.ts.map +1 -0
  362. package/daemon/dist/domain/mission-control/notification-adapter-from-env.js +17 -0
  363. package/daemon/dist/domain/mission-control/notification-adapter-from-env.js.map +1 -0
  364. package/daemon/dist/domain/model-divergence/codex-thread-homes.d.ts +12 -0
  365. package/daemon/dist/domain/model-divergence/codex-thread-homes.d.ts.map +1 -0
  366. package/daemon/dist/domain/model-divergence/codex-thread-homes.js +19 -0
  367. package/daemon/dist/domain/model-divergence/codex-thread-homes.js.map +1 -0
  368. package/daemon/dist/domain/native-process-arguments.d.ts +6 -3
  369. package/daemon/dist/domain/native-process-arguments.d.ts.map +1 -1
  370. package/daemon/dist/domain/native-process-arguments.js +56 -23
  371. package/daemon/dist/domain/native-process-arguments.js.map +1 -1
  372. package/daemon/dist/domain/native-resume-probe.d.ts +9 -0
  373. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  374. package/daemon/dist/domain/native-resume-probe.js +15 -1
  375. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  376. package/daemon/dist/domain/network/hub-client.d.ts +14 -4
  377. package/daemon/dist/domain/network/hub-client.d.ts.map +1 -1
  378. package/daemon/dist/domain/network/hub-client.js +26 -9
  379. package/daemon/dist/domain/network/hub-client.js.map +1 -1
  380. package/daemon/dist/domain/network/network-connector.d.ts +2 -0
  381. package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
  382. package/daemon/dist/domain/network/network-connector.js +162 -16
  383. package/daemon/dist/domain/network/network-connector.js.map +1 -1
  384. package/daemon/dist/domain/network/network-requests.d.ts +4 -1
  385. package/daemon/dist/domain/network/network-requests.d.ts.map +1 -1
  386. package/daemon/dist/domain/network/network-requests.js +141 -14
  387. package/daemon/dist/domain/network/network-requests.js.map +1 -1
  388. package/daemon/dist/domain/node-inventory.d.ts +47 -0
  389. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  390. package/daemon/dist/domain/node-inventory.js +270 -158
  391. package/daemon/dist/domain/node-inventory.js.map +1 -1
  392. package/daemon/dist/domain/node-launcher.d.ts +1 -0
  393. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  394. package/daemon/dist/domain/node-launcher.js +13 -5
  395. package/daemon/dist/domain/node-launcher.js.map +1 -1
  396. package/daemon/dist/domain/outbox-handler.d.ts +66 -0
  397. package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
  398. package/daemon/dist/domain/outbox-handler.js +117 -8
  399. package/daemon/dist/domain/outbox-handler.js.map +1 -1
  400. package/daemon/dist/domain/pane-cutover.d.ts +6 -2
  401. package/daemon/dist/domain/pane-cutover.d.ts.map +1 -1
  402. package/daemon/dist/domain/pane-cutover.js +14 -4
  403. package/daemon/dist/domain/pane-cutover.js.map +1 -1
  404. package/daemon/dist/domain/parked-owner-escalation.d.ts +1 -0
  405. package/daemon/dist/domain/parked-owner-escalation.d.ts.map +1 -1
  406. package/daemon/dist/domain/parked-owner-escalation.js +3 -1
  407. package/daemon/dist/domain/parked-owner-escalation.js.map +1 -1
  408. package/daemon/dist/domain/parked-query.js +1 -1
  409. package/daemon/dist/domain/parked-query.js.map +1 -1
  410. package/daemon/dist/domain/permission-account.d.ts.map +1 -1
  411. package/daemon/dist/domain/permission-account.js +20 -1
  412. package/daemon/dist/domain/permission-account.js.map +1 -1
  413. package/daemon/dist/domain/policies/idle-gate-qitem.d.ts +1 -0
  414. package/daemon/dist/domain/policies/idle-gate-qitem.d.ts.map +1 -1
  415. package/daemon/dist/domain/policies/idle-gate-qitem.js +1 -0
  416. package/daemon/dist/domain/policies/idle-gate-qitem.js.map +1 -1
  417. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +21 -0
  418. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
  419. package/daemon/dist/domain/policies/parked-owner-consumer.js +185 -26
  420. package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
  421. package/daemon/dist/domain/policies/seat-pool.d.ts +2 -1
  422. package/daemon/dist/domain/policies/seat-pool.d.ts.map +1 -1
  423. package/daemon/dist/domain/policies/seat-pool.js.map +1 -1
  424. package/daemon/dist/domain/policies/workflow-keepalive.d.ts +1 -0
  425. package/daemon/dist/domain/policies/workflow-keepalive.d.ts.map +1 -1
  426. package/daemon/dist/domain/policies/workflow-keepalive.js +4 -1
  427. package/daemon/dist/domain/policies/workflow-keepalive.js.map +1 -1
  428. package/daemon/dist/domain/profile-resolver.d.ts +2 -0
  429. package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
  430. package/daemon/dist/domain/profile-resolver.js +10 -4
  431. package/daemon/dist/domain/profile-resolver.js.map +1 -1
  432. package/daemon/dist/domain/project-lifecycle-compiler.d.ts.map +1 -1
  433. package/daemon/dist/domain/project-lifecycle-compiler.js +35 -1
  434. package/daemon/dist/domain/project-lifecycle-compiler.js.map +1 -1
  435. package/daemon/dist/domain/proof/judgments.d.ts +7 -0
  436. package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
  437. package/daemon/dist/domain/proof/judgments.js +18 -10
  438. package/daemon/dist/domain/proof/judgments.js.map +1 -1
  439. package/daemon/dist/domain/provider/assignment-apply.d.ts +85 -0
  440. package/daemon/dist/domain/provider/assignment-apply.d.ts.map +1 -0
  441. package/daemon/dist/domain/provider/assignment-apply.js +270 -0
  442. package/daemon/dist/domain/provider/assignment-apply.js.map +1 -0
  443. package/daemon/dist/domain/provider/assignment-plan.d.ts +150 -0
  444. package/daemon/dist/domain/provider/assignment-plan.d.ts.map +1 -0
  445. package/daemon/dist/domain/provider/assignment-plan.js +218 -0
  446. package/daemon/dist/domain/provider/assignment-plan.js.map +1 -0
  447. package/daemon/dist/domain/provider/claude-seat-switch.d.ts +1 -1
  448. package/daemon/dist/domain/provider/claude-seat-switch.d.ts.map +1 -1
  449. package/daemon/dist/domain/provider/claude-seat-switch.js +37 -6
  450. package/daemon/dist/domain/provider/claude-seat-switch.js.map +1 -1
  451. package/daemon/dist/domain/provider/provider-account-assignments.d.ts +64 -0
  452. package/daemon/dist/domain/provider/provider-account-assignments.d.ts.map +1 -0
  453. package/daemon/dist/domain/provider/provider-account-assignments.js +75 -0
  454. package/daemon/dist/domain/provider/provider-account-assignments.js.map +1 -0
  455. package/daemon/dist/domain/provider/provider-account-refs.d.ts +91 -0
  456. package/daemon/dist/domain/provider/provider-account-refs.d.ts.map +1 -0
  457. package/daemon/dist/domain/provider/provider-account-refs.js +164 -0
  458. package/daemon/dist/domain/provider/provider-account-refs.js.map +1 -0
  459. package/daemon/dist/domain/provider/provider-collect.d.ts +3 -1
  460. package/daemon/dist/domain/provider/provider-collect.d.ts.map +1 -1
  461. package/daemon/dist/domain/provider/provider-collect.js +2 -0
  462. package/daemon/dist/domain/provider/provider-collect.js.map +1 -1
  463. package/daemon/dist/domain/provider/provider-service-impl.d.ts +43 -1
  464. package/daemon/dist/domain/provider/provider-service-impl.d.ts.map +1 -1
  465. package/daemon/dist/domain/provider/provider-service-impl.js +376 -20
  466. package/daemon/dist/domain/provider/provider-service-impl.js.map +1 -1
  467. package/daemon/dist/domain/provider/provider-service.d.ts +82 -6
  468. package/daemon/dist/domain/provider/provider-service.d.ts.map +1 -1
  469. package/daemon/dist/domain/provider/provider-types.d.ts +40 -1
  470. package/daemon/dist/domain/provider/provider-types.d.ts.map +1 -1
  471. package/daemon/dist/domain/provider/usage-across-hosts.d.ts.map +1 -1
  472. package/daemon/dist/domain/provider/usage-across-hosts.js +13 -1
  473. package/daemon/dist/domain/provider/usage-across-hosts.js.map +1 -1
  474. package/daemon/dist/domain/ps-projection.d.ts +5 -3
  475. package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
  476. package/daemon/dist/domain/ps-projection.js +10 -3
  477. package/daemon/dist/domain/ps-projection.js.map +1 -1
  478. package/daemon/dist/domain/queue-display.d.ts +7 -0
  479. package/daemon/dist/domain/queue-display.d.ts.map +1 -0
  480. package/daemon/dist/domain/queue-display.js +20 -0
  481. package/daemon/dist/domain/queue-display.js.map +1 -0
  482. package/daemon/dist/domain/queue-owner.d.ts +4 -2
  483. package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
  484. package/daemon/dist/domain/queue-owner.js +7 -5
  485. package/daemon/dist/domain/queue-owner.js.map +1 -1
  486. package/daemon/dist/domain/queue-repository.d.ts +104 -24
  487. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  488. package/daemon/dist/domain/queue-repository.js +600 -89
  489. package/daemon/dist/domain/queue-repository.js.map +1 -1
  490. package/daemon/dist/domain/queue-stuck-sweep.d.ts +4 -0
  491. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  492. package/daemon/dist/domain/queue-stuck-sweep.js +1890 -1817
  493. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  494. package/daemon/dist/domain/queue-transfer-activation.d.ts +28 -0
  495. package/daemon/dist/domain/queue-transfer-activation.d.ts.map +1 -0
  496. package/daemon/dist/domain/queue-transfer-activation.js +187 -0
  497. package/daemon/dist/domain/queue-transfer-activation.js.map +1 -0
  498. package/daemon/dist/domain/queue-transfer-mapping.d.ts +31 -0
  499. package/daemon/dist/domain/queue-transfer-mapping.d.ts.map +1 -0
  500. package/daemon/dist/domain/queue-transfer-mapping.js +33 -0
  501. package/daemon/dist/domain/queue-transfer-mapping.js.map +1 -0
  502. package/daemon/dist/domain/queue-transfer-operation.d.ts +24 -0
  503. package/daemon/dist/domain/queue-transfer-operation.d.ts.map +1 -0
  504. package/daemon/dist/domain/queue-transfer-operation.js +41 -0
  505. package/daemon/dist/domain/queue-transfer-operation.js.map +1 -0
  506. package/daemon/dist/domain/queue-transfer-parse.d.ts +8 -0
  507. package/daemon/dist/domain/queue-transfer-parse.d.ts.map +1 -1
  508. package/daemon/dist/domain/queue-transfer-parse.js +16 -6
  509. package/daemon/dist/domain/queue-transfer-parse.js.map +1 -1
  510. package/daemon/dist/domain/queue-transfer-records.d.ts +160 -0
  511. package/daemon/dist/domain/queue-transfer-records.d.ts.map +1 -0
  512. package/daemon/dist/domain/queue-transfer-records.js +94 -0
  513. package/daemon/dist/domain/queue-transfer-records.js.map +1 -0
  514. package/daemon/dist/domain/queue-transfer-recovery.d.ts +40 -0
  515. package/daemon/dist/domain/queue-transfer-recovery.d.ts.map +1 -0
  516. package/daemon/dist/domain/queue-transfer-recovery.js +136 -0
  517. package/daemon/dist/domain/queue-transfer-recovery.js.map +1 -0
  518. package/daemon/dist/domain/queue-transfer-relinquish.d.ts +70 -0
  519. package/daemon/dist/domain/queue-transfer-relinquish.d.ts.map +1 -0
  520. package/daemon/dist/domain/queue-transfer-relinquish.js +204 -0
  521. package/daemon/dist/domain/queue-transfer-relinquish.js.map +1 -0
  522. package/daemon/dist/domain/queue-transfer-review.d.ts +1 -0
  523. package/daemon/dist/domain/queue-transfer-review.d.ts.map +1 -1
  524. package/daemon/dist/domain/queue-transfer-review.js +15 -13
  525. package/daemon/dist/domain/queue-transfer-review.js.map +1 -1
  526. package/daemon/dist/domain/queue-transfer-staging.d.ts +14 -0
  527. package/daemon/dist/domain/queue-transfer-staging.d.ts.map +1 -1
  528. package/daemon/dist/domain/queue-transfer-staging.js +9 -1
  529. package/daemon/dist/domain/queue-transfer-staging.js.map +1 -1
  530. package/daemon/dist/domain/queue-transfer-write.d.ts +14 -0
  531. package/daemon/dist/domain/queue-transfer-write.d.ts.map +1 -0
  532. package/daemon/dist/domain/queue-transfer-write.js +42 -0
  533. package/daemon/dist/domain/queue-transfer-write.js.map +1 -0
  534. package/daemon/dist/domain/queue-transition-log.d.ts +8 -0
  535. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  536. package/daemon/dist/domain/queue-transition-log.js +27 -14
  537. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  538. package/daemon/dist/domain/queue-waiting.d.ts +10 -1
  539. package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
  540. package/daemon/dist/domain/queue-waiting.js +20 -14
  541. package/daemon/dist/domain/queue-waiting.js.map +1 -1
  542. package/daemon/dist/domain/queue-wake-ladder.d.ts +10 -3
  543. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  544. package/daemon/dist/domain/queue-wake-ladder.js +60 -23
  545. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  546. package/daemon/dist/domain/queue-wake-repository.d.ts +1 -0
  547. package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
  548. package/daemon/dist/domain/queue-wake-repository.js +21 -19
  549. package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
  550. package/daemon/dist/domain/receiver-context.d.ts +3 -2
  551. package/daemon/dist/domain/receiver-context.d.ts.map +1 -1
  552. package/daemon/dist/domain/receiver-context.js +5 -4
  553. package/daemon/dist/domain/receiver-context.js.map +1 -1
  554. package/daemon/dist/domain/reconciler.d.ts +2 -0
  555. package/daemon/dist/domain/reconciler.d.ts.map +1 -1
  556. package/daemon/dist/domain/reconciler.js +17 -1
  557. package/daemon/dist/domain/reconciler.js.map +1 -1
  558. package/daemon/dist/domain/relayed-answers.d.ts +1 -0
  559. package/daemon/dist/domain/relayed-answers.d.ts.map +1 -1
  560. package/daemon/dist/domain/relayed-answers.js.map +1 -1
  561. package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
  562. package/daemon/dist/domain/restore-check-service.js +9 -3
  563. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  564. package/daemon/dist/domain/restore-orchestrator.d.ts +7 -0
  565. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  566. package/daemon/dist/domain/restore-orchestrator.js +54 -14
  567. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  568. package/daemon/dist/domain/return-route.d.ts +4 -0
  569. package/daemon/dist/domain/return-route.d.ts.map +1 -1
  570. package/daemon/dist/domain/return-route.js +13 -0
  571. package/daemon/dist/domain/return-route.js.map +1 -1
  572. package/daemon/dist/domain/rig-mode/operating-posture.d.ts +3 -0
  573. package/daemon/dist/domain/rig-mode/operating-posture.d.ts.map +1 -1
  574. package/daemon/dist/domain/rig-mode/operating-posture.js +27 -8
  575. package/daemon/dist/domain/rig-mode/operating-posture.js.map +1 -1
  576. package/daemon/dist/domain/rig-status-compose.d.ts +3 -0
  577. package/daemon/dist/domain/rig-status-compose.d.ts.map +1 -1
  578. package/daemon/dist/domain/rig-status-compose.js +4 -1
  579. package/daemon/dist/domain/rig-status-compose.js.map +1 -1
  580. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  581. package/daemon/dist/domain/rig-teardown.js +3 -2
  582. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  583. package/daemon/dist/domain/rigspec-exporter.d.ts +2 -0
  584. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  585. package/daemon/dist/domain/rigspec-exporter.js +38 -2
  586. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  587. package/daemon/dist/domain/rigspec-instantiator.d.ts +4 -1
  588. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  589. package/daemon/dist/domain/rigspec-instantiator.js +32 -13
  590. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  591. package/daemon/dist/domain/rigspec-preflight.d.ts +3 -0
  592. package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
  593. package/daemon/dist/domain/rigspec-preflight.js +25 -7
  594. package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
  595. package/daemon/dist/domain/roster-ready-notice.d.ts +1 -1
  596. package/daemon/dist/domain/roster-ready-notice.d.ts.map +1 -1
  597. package/daemon/dist/domain/roster-ready-notice.js +2 -1
  598. package/daemon/dist/domain/roster-ready-notice.js.map +1 -1
  599. package/daemon/dist/domain/runner-permissions.d.ts +3 -2
  600. package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
  601. package/daemon/dist/domain/runner-permissions.js +30 -19
  602. package/daemon/dist/domain/runner-permissions.js.map +1 -1
  603. package/daemon/dist/domain/runtime-adapter.d.ts +2 -0
  604. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  605. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  606. package/daemon/dist/domain/scope/manifest-editor.d.ts +35 -0
  607. package/daemon/dist/domain/scope/manifest-editor.d.ts.map +1 -0
  608. package/daemon/dist/domain/scope/manifest-editor.js +197 -0
  609. package/daemon/dist/domain/scope/manifest-editor.js.map +1 -0
  610. package/daemon/dist/domain/scope/mission-frontmatter.d.ts +9 -0
  611. package/daemon/dist/domain/scope/mission-frontmatter.d.ts.map +1 -0
  612. package/daemon/dist/domain/scope/mission-frontmatter.js +36 -0
  613. package/daemon/dist/domain/scope/mission-frontmatter.js.map +1 -0
  614. package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
  615. package/daemon/dist/domain/seat-activity-service.js +53 -20
  616. package/daemon/dist/domain/seat-activity-service.js.map +1 -1
  617. package/daemon/dist/domain/seat-cold-start.d.ts +8 -2
  618. package/daemon/dist/domain/seat-cold-start.d.ts.map +1 -1
  619. package/daemon/dist/domain/seat-cold-start.js +75 -19
  620. package/daemon/dist/domain/seat-cold-start.js.map +1 -1
  621. package/daemon/dist/domain/seat-delivery-guard.d.ts +6 -1
  622. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  623. package/daemon/dist/domain/seat-delivery-guard.js +23 -2
  624. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  625. package/daemon/dist/domain/seat-evidence.d.ts +13 -0
  626. package/daemon/dist/domain/seat-evidence.d.ts.map +1 -0
  627. package/daemon/dist/domain/seat-evidence.js +29 -0
  628. package/daemon/dist/domain/seat-evidence.js.map +1 -0
  629. package/daemon/dist/domain/seat-handover-service.d.ts +5 -1
  630. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  631. package/daemon/dist/domain/seat-handover-service.js +49 -35
  632. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  633. package/daemon/dist/domain/seat-lifecycle-service.d.ts +26 -6
  634. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  635. package/daemon/dist/domain/seat-lifecycle-service.js +108 -17
  636. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  637. package/daemon/dist/domain/seat-pool-dispatch-guard.d.ts +28 -0
  638. package/daemon/dist/domain/seat-pool-dispatch-guard.d.ts.map +1 -0
  639. package/daemon/dist/domain/seat-pool-dispatch-guard.js +123 -0
  640. package/daemon/dist/domain/seat-pool-dispatch-guard.js.map +1 -0
  641. package/daemon/dist/domain/seat-pool-executor.d.ts +64 -3
  642. package/daemon/dist/domain/seat-pool-executor.d.ts.map +1 -1
  643. package/daemon/dist/domain/seat-pool-executor.js +993 -102
  644. package/daemon/dist/domain/seat-pool-executor.js.map +1 -1
  645. package/daemon/dist/domain/seat-pool-slots.d.ts +90 -2
  646. package/daemon/dist/domain/seat-pool-slots.d.ts.map +1 -1
  647. package/daemon/dist/domain/seat-pool-slots.js +88 -3
  648. package/daemon/dist/domain/seat-pool-slots.js.map +1 -1
  649. package/daemon/dist/domain/seat-pool-spec.d.ts +4 -1
  650. package/daemon/dist/domain/seat-pool-spec.d.ts.map +1 -1
  651. package/daemon/dist/domain/seat-pool-spec.js +14 -2
  652. package/daemon/dist/domain/seat-pool-spec.js.map +1 -1
  653. package/daemon/dist/domain/seat-reaper-eligibility.d.ts +34 -0
  654. package/daemon/dist/domain/seat-reaper-eligibility.d.ts.map +1 -0
  655. package/daemon/dist/domain/seat-reaper-eligibility.js +30 -0
  656. package/daemon/dist/domain/seat-reaper-eligibility.js.map +1 -0
  657. package/daemon/dist/domain/seat-reaper-events.d.ts +31 -0
  658. package/daemon/dist/domain/seat-reaper-events.d.ts.map +1 -0
  659. package/daemon/dist/domain/seat-reaper-events.js +2 -0
  660. package/daemon/dist/domain/seat-reaper-events.js.map +1 -0
  661. package/daemon/dist/domain/seat-reaper-service.d.ts +59 -0
  662. package/daemon/dist/domain/seat-reaper-service.d.ts.map +1 -0
  663. package/daemon/dist/domain/seat-reaper-service.js +311 -0
  664. package/daemon/dist/domain/seat-reaper-service.js.map +1 -0
  665. package/daemon/dist/domain/seat-reaper-settings.d.ts +14 -0
  666. package/daemon/dist/domain/seat-reaper-settings.d.ts.map +1 -0
  667. package/daemon/dist/domain/seat-reaper-settings.js +32 -0
  668. package/daemon/dist/domain/seat-reaper-settings.js.map +1 -0
  669. package/daemon/dist/domain/seat-reaper-store.d.ts +19 -0
  670. package/daemon/dist/domain/seat-reaper-store.d.ts.map +1 -0
  671. package/daemon/dist/domain/seat-reaper-store.js +45 -0
  672. package/daemon/dist/domain/seat-reaper-store.js.map +1 -0
  673. package/daemon/dist/domain/seat-reaper-workspace.d.ts +4 -0
  674. package/daemon/dist/domain/seat-reaper-workspace.d.ts.map +1 -0
  675. package/daemon/dist/domain/seat-reaper-workspace.js +43 -0
  676. package/daemon/dist/domain/seat-reaper-workspace.js.map +1 -0
  677. package/daemon/dist/domain/seat-restart-in-place.d.ts +11 -3
  678. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  679. package/daemon/dist/domain/seat-restart-in-place.js +39 -48
  680. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  681. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  682. package/daemon/dist/domain/seat-runtime-switch-service.js +5 -7
  683. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  684. package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -1
  685. package/daemon/dist/domain/seat-skill-storage.js +27 -5
  686. package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
  687. package/daemon/dist/domain/seat-standby.d.ts +13 -0
  688. package/daemon/dist/domain/seat-standby.d.ts.map +1 -0
  689. package/daemon/dist/domain/seat-standby.js +21 -0
  690. package/daemon/dist/domain/seat-standby.js.map +1 -0
  691. package/daemon/dist/domain/seat-startup-text.d.ts +159 -0
  692. package/daemon/dist/domain/seat-startup-text.d.ts.map +1 -0
  693. package/daemon/dist/domain/seat-startup-text.js +200 -0
  694. package/daemon/dist/domain/seat-startup-text.js.map +1 -0
  695. package/daemon/dist/domain/seat-status-service.d.ts +18 -0
  696. package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
  697. package/daemon/dist/domain/seat-status-service.js +25 -5
  698. package/daemon/dist/domain/seat-status-service.js.map +1 -1
  699. package/daemon/dist/domain/seat-structural-activity-service.d.ts +7 -0
  700. package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
  701. package/daemon/dist/domain/seat-structural-activity-service.js +16 -1
  702. package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
  703. package/daemon/dist/domain/session-registry.d.ts +15 -3
  704. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  705. package/daemon/dist/domain/session-registry.js +52 -5
  706. package/daemon/dist/domain/session-registry.js.map +1 -1
  707. package/daemon/dist/domain/session-transport.d.ts +12 -5
  708. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  709. package/daemon/dist/domain/session-transport.js +129 -18
  710. package/daemon/dist/domain/session-transport.js.map +1 -1
  711. package/daemon/dist/domain/shared-conversation.d.ts.map +1 -1
  712. package/daemon/dist/domain/shared-conversation.js +3 -1
  713. package/daemon/dist/domain/shared-conversation.js.map +1 -1
  714. package/daemon/dist/domain/slices/slice-indexer.d.ts +2 -2
  715. package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
  716. package/daemon/dist/domain/slices/slice-indexer.js +4 -15
  717. package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
  718. package/daemon/dist/domain/snapshot-capture.d.ts +4 -1
  719. package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
  720. package/daemon/dist/domain/snapshot-capture.js +14 -18
  721. package/daemon/dist/domain/snapshot-capture.js.map +1 -1
  722. package/daemon/dist/domain/snapshot-repository.d.ts +37 -0
  723. package/daemon/dist/domain/snapshot-repository.d.ts.map +1 -1
  724. package/daemon/dist/domain/snapshot-repository.js +68 -0
  725. package/daemon/dist/domain/snapshot-repository.js.map +1 -1
  726. package/daemon/dist/domain/startup-orchestrator.d.ts +8 -20
  727. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  728. package/daemon/dist/domain/startup-orchestrator.js +94 -27
  729. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  730. package/daemon/dist/domain/startup-submission-evidence.d.ts +4 -1
  731. package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
  732. package/daemon/dist/domain/startup-submission-evidence.js +12 -1
  733. package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
  734. package/daemon/dist/domain/successor-session-launcher.d.ts +9 -5
  735. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  736. package/daemon/dist/domain/successor-session-launcher.js +17 -6
  737. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  738. package/daemon/dist/domain/terminal/earlier-tile-attach-0724.d.ts +2 -0
  739. package/daemon/dist/domain/terminal/earlier-tile-attach-0724.d.ts.map +1 -0
  740. package/daemon/dist/domain/terminal/earlier-tile-attach-0724.js +54 -0
  741. package/daemon/dist/domain/terminal/earlier-tile-attach-0724.js.map +1 -0
  742. package/daemon/dist/domain/terminal/herdr-app-provider.d.ts +28 -3
  743. package/daemon/dist/domain/terminal/herdr-app-provider.d.ts.map +1 -1
  744. package/daemon/dist/domain/terminal/herdr-app-provider.js +216 -52
  745. package/daemon/dist/domain/terminal/herdr-app-provider.js.map +1 -1
  746. package/daemon/dist/domain/terminal/herdr-app-state.d.ts +7 -2
  747. package/daemon/dist/domain/terminal/herdr-app-state.d.ts.map +1 -1
  748. package/daemon/dist/domain/terminal/herdr-app-state.js.map +1 -1
  749. package/daemon/dist/domain/terminal/terminal-provider.d.ts +17 -0
  750. package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
  751. package/daemon/dist/domain/terminal/tile-attach.d.ts +4 -4
  752. package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
  753. package/daemon/dist/domain/terminal/tile-attach.js +14 -8
  754. package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
  755. package/daemon/dist/domain/types.d.ts +71 -4
  756. package/daemon/dist/domain/types.d.ts.map +1 -1
  757. package/daemon/dist/domain/types.js.map +1 -1
  758. package/daemon/dist/domain/usage-samples-store.d.ts.map +1 -1
  759. package/daemon/dist/domain/usage-samples-store.js.map +1 -1
  760. package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
  761. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  762. package/daemon/dist/domain/user-settings/settings-store.js +45 -2
  763. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  764. package/daemon/dist/domain/view-projector.d.ts.map +1 -1
  765. package/daemon/dist/domain/view-projector.js +5 -2
  766. package/daemon/dist/domain/view-projector.js.map +1 -1
  767. package/daemon/dist/domain/watchdog-delivery.d.ts +3 -0
  768. package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
  769. package/daemon/dist/domain/watchdog-delivery.js +26 -4
  770. package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
  771. package/daemon/dist/domain/watchdog-history-log.d.ts +10 -0
  772. package/daemon/dist/domain/watchdog-history-log.d.ts.map +1 -1
  773. package/daemon/dist/domain/watchdog-history-log.js +35 -1
  774. package/daemon/dist/domain/watchdog-history-log.js.map +1 -1
  775. package/daemon/dist/domain/watchdog-job-update.d.ts.map +1 -1
  776. package/daemon/dist/domain/watchdog-job-update.js +29 -4
  777. package/daemon/dist/domain/watchdog-job-update.js.map +1 -1
  778. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  779. package/daemon/dist/domain/watchdog-policy-engine.js +4 -1
  780. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  781. package/daemon/dist/domain/watchdog-scheduler.d.ts +4 -0
  782. package/daemon/dist/domain/watchdog-scheduler.d.ts.map +1 -1
  783. package/daemon/dist/domain/watchdog-scheduler.js +14 -0
  784. package/daemon/dist/domain/watchdog-scheduler.js.map +1 -1
  785. package/daemon/dist/domain/workflow-role-context.d.ts.map +1 -1
  786. package/daemon/dist/domain/workflow-role-context.js +1 -0
  787. package/daemon/dist/domain/workflow-role-context.js.map +1 -1
  788. package/daemon/dist/domain/workflow-role-resolver.d.ts +3 -0
  789. package/daemon/dist/domain/workflow-role-resolver.d.ts.map +1 -1
  790. package/daemon/dist/domain/workflow-role-resolver.js +12 -6
  791. package/daemon/dist/domain/workflow-role-resolver.js.map +1 -1
  792. package/daemon/dist/domain/workspace/project-catalog.d.ts +7 -0
  793. package/daemon/dist/domain/workspace/project-catalog.d.ts.map +1 -1
  794. package/daemon/dist/domain/workspace/project-catalog.js +16 -9
  795. package/daemon/dist/domain/workspace/project-catalog.js.map +1 -1
  796. package/daemon/dist/domain/workspace/project-registration.d.ts +5 -1
  797. package/daemon/dist/domain/workspace/project-registration.d.ts.map +1 -1
  798. package/daemon/dist/domain/workspace/project-registration.js +11 -7
  799. package/daemon/dist/domain/workspace/project-registration.js.map +1 -1
  800. package/daemon/dist/index.d.ts +3 -0
  801. package/daemon/dist/index.d.ts.map +1 -1
  802. package/daemon/dist/index.js +14 -4
  803. package/daemon/dist/index.js.map +1 -1
  804. package/daemon/dist/middleware/auth-bearer-token.d.ts +8 -12
  805. package/daemon/dist/middleware/auth-bearer-token.d.ts.map +1 -1
  806. package/daemon/dist/middleware/auth-bearer-token.js +18 -36
  807. package/daemon/dist/middleware/auth-bearer-token.js.map +1 -1
  808. package/daemon/dist/queue-transfer-records-surface.d.ts +6 -0
  809. package/daemon/dist/queue-transfer-records-surface.d.ts.map +1 -0
  810. package/daemon/dist/queue-transfer-records-surface.js +6 -0
  811. package/daemon/dist/queue-transfer-records-surface.js.map +1 -0
  812. package/daemon/dist/rig-lookup-surface.d.ts +2 -0
  813. package/daemon/dist/rig-lookup-surface.d.ts.map +1 -0
  814. package/daemon/dist/rig-lookup-surface.js +5 -0
  815. package/daemon/dist/rig-lookup-surface.js.map +1 -0
  816. package/daemon/dist/routes/activity.d.ts.map +1 -1
  817. package/daemon/dist/routes/activity.js +4 -3
  818. package/daemon/dist/routes/activity.js.map +1 -1
  819. package/daemon/dist/routes/attention.d.ts.map +1 -1
  820. package/daemon/dist/routes/attention.js +3 -1
  821. package/daemon/dist/routes/attention.js.map +1 -1
  822. package/daemon/dist/routes/compaction.d.ts.map +1 -1
  823. package/daemon/dist/routes/compaction.js +2 -0
  824. package/daemon/dist/routes/compaction.js.map +1 -1
  825. package/daemon/dist/routes/mission-control.d.ts.map +1 -1
  826. package/daemon/dist/routes/mission-control.js +2 -1
  827. package/daemon/dist/routes/mission-control.js.map +1 -1
  828. package/daemon/dist/routes/missions.d.ts +3 -6
  829. package/daemon/dist/routes/missions.d.ts.map +1 -1
  830. package/daemon/dist/routes/missions.js +42 -76
  831. package/daemon/dist/routes/missions.js.map +1 -1
  832. package/daemon/dist/routes/network.d.ts.map +1 -1
  833. package/daemon/dist/routes/network.js +19 -1
  834. package/daemon/dist/routes/network.js.map +1 -1
  835. package/daemon/dist/routes/provider.d.ts.map +1 -1
  836. package/daemon/dist/routes/provider.js +156 -5
  837. package/daemon/dist/routes/provider.js.map +1 -1
  838. package/daemon/dist/routes/queue-transfer.d.ts +9 -0
  839. package/daemon/dist/routes/queue-transfer.d.ts.map +1 -0
  840. package/daemon/dist/routes/queue-transfer.js +109 -0
  841. package/daemon/dist/routes/queue-transfer.js.map +1 -0
  842. package/daemon/dist/routes/queue.d.ts.map +1 -1
  843. package/daemon/dist/routes/queue.js +80 -51
  844. package/daemon/dist/routes/queue.js.map +1 -1
  845. package/daemon/dist/routes/rigs.js +3 -0
  846. package/daemon/dist/routes/rigs.js.map +1 -1
  847. package/daemon/dist/routes/rigspec.d.ts.map +1 -1
  848. package/daemon/dist/routes/rigspec.js +4 -0
  849. package/daemon/dist/routes/rigspec.js.map +1 -1
  850. package/daemon/dist/routes/seat.d.ts.map +1 -1
  851. package/daemon/dist/routes/seat.js +19 -3
  852. package/daemon/dist/routes/seat.js.map +1 -1
  853. package/daemon/dist/routes/terminal-ws.d.ts +0 -5
  854. package/daemon/dist/routes/terminal-ws.d.ts.map +1 -1
  855. package/daemon/dist/routes/terminal-ws.js +0 -6
  856. package/daemon/dist/routes/terminal-ws.js.map +1 -1
  857. package/daemon/dist/routes/transport.js +1 -1
  858. package/daemon/dist/routes/transport.js.map +1 -1
  859. package/daemon/dist/scope-manifest-surface.d.ts +4 -0
  860. package/daemon/dist/scope-manifest-surface.d.ts.map +1 -0
  861. package/daemon/dist/scope-manifest-surface.js +4 -0
  862. package/daemon/dist/scope-manifest-surface.js.map +1 -0
  863. package/daemon/dist/server.d.ts +2 -1
  864. package/daemon/dist/server.d.ts.map +1 -1
  865. package/daemon/dist/server.js +6 -6
  866. package/daemon/dist/server.js.map +1 -1
  867. package/daemon/dist/startup.d.ts.map +1 -1
  868. package/daemon/dist/startup.js +126 -61
  869. package/daemon/dist/startup.js.map +1 -1
  870. package/daemon/docs/reference/agent-startup-guide.md +26 -4
  871. package/daemon/docs/reference/agent-state-taxonomy.md +22 -1
  872. package/daemon/docs/reference/claude-status-line.md +28 -0
  873. package/daemon/docs/reference/community-harness-examples/hermes/hermes.yaml +3 -0
  874. package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +10 -0
  875. package/daemon/docs/reference/community-harness-presets.md +79 -8
  876. package/daemon/docs/reference/daemon-http-clients.md +49 -2
  877. package/daemon/docs/reference/getting-started.md +73 -11
  878. package/daemon/docs/reference/harness-runner-contract.md +12 -4
  879. package/daemon/docs/reference/help.md +9 -0
  880. package/daemon/docs/reference/herdr-app.md +45 -4
  881. package/daemon/docs/reference/hosted-members.md +1 -1
  882. package/daemon/docs/reference/network-connector.md +66 -1
  883. package/daemon/docs/reference/pi-tool-selection-recovery.md +13 -29
  884. package/daemon/docs/reference/queue-transfer-activation.md +89 -0
  885. package/daemon/docs/reference/queue-transfer-staging.md +1 -1
  886. package/daemon/docs/reference/quickstart.md +4 -4
  887. package/daemon/docs/reference/refocus-channel.md +21 -0
  888. package/daemon/docs/reference/rig-bundle.md +25 -0
  889. package/daemon/docs/reference/rig-spec.md +218 -23
  890. package/daemon/docs/reference/scoped-operating-posture.md +6 -1
  891. package/daemon/docs/reference/sdlc-conventions.md +10 -4
  892. package/daemon/docs/reference/seat-delivery.md +108 -12
  893. package/daemon/docs/reference/seat-node-targeting.md +2 -2
  894. package/daemon/docs/reference/seat-pools.md +181 -18
  895. package/daemon/docs/reference/seat-scaling.md +137 -0
  896. package/daemon/docs/reference/whats-new.md +190 -14
  897. package/daemon/specs/agents/development/implementer/guidance/role.md +11 -0
  898. package/daemon/specs/agents/development/qa/guidance/role.md +5 -0
  899. package/daemon/specs/agents/shared/skills/core/cross-host-rig-commands/SKILL.md +9 -1
  900. package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +32 -19
  901. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +8 -3
  902. package/dist/build-info.js +3 -3
  903. package/dist/cli-error.d.ts +2 -0
  904. package/dist/cli-error.d.ts.map +1 -1
  905. package/dist/cli-error.js +25 -8
  906. package/dist/cli-error.js.map +1 -1
  907. package/dist/client.d.ts +1 -0
  908. package/dist/client.d.ts.map +1 -1
  909. package/dist/client.js +13 -0
  910. package/dist/client.js.map +1 -1
  911. package/dist/commands/auth.d.ts.map +1 -1
  912. package/dist/commands/auth.js +52 -1
  913. package/dist/commands/auth.js.map +1 -1
  914. package/dist/commands/config.d.ts.map +1 -1
  915. package/dist/commands/config.js +3 -0
  916. package/dist/commands/config.js.map +1 -1
  917. package/dist/commands/crash-cart.d.ts.map +1 -1
  918. package/dist/commands/crash-cart.js +65 -17
  919. package/dist/commands/crash-cart.js.map +1 -1
  920. package/dist/commands/daemon.d.ts +7 -20
  921. package/dist/commands/daemon.d.ts.map +1 -1
  922. package/dist/commands/daemon.js +117 -46
  923. package/dist/commands/daemon.js.map +1 -1
  924. package/dist/commands/doctor.d.ts +26 -0
  925. package/dist/commands/doctor.d.ts.map +1 -1
  926. package/dist/commands/doctor.js +148 -2
  927. package/dist/commands/doctor.js.map +1 -1
  928. package/dist/commands/import.d.ts +5 -0
  929. package/dist/commands/import.d.ts.map +1 -1
  930. package/dist/commands/import.js +24 -4
  931. package/dist/commands/import.js.map +1 -1
  932. package/dist/commands/mcp.d.ts.map +1 -1
  933. package/dist/commands/mcp.js +4 -2
  934. package/dist/commands/mcp.js.map +1 -1
  935. package/dist/commands/network.d.ts +4 -0
  936. package/dist/commands/network.d.ts.map +1 -1
  937. package/dist/commands/network.js +78 -10
  938. package/dist/commands/network.js.map +1 -1
  939. package/dist/commands/provider.d.ts +5 -1
  940. package/dist/commands/provider.d.ts.map +1 -1
  941. package/dist/commands/provider.js +427 -17
  942. package/dist/commands/provider.js.map +1 -1
  943. package/dist/commands/ps.d.ts +16 -1
  944. package/dist/commands/ps.d.ts.map +1 -1
  945. package/dist/commands/ps.js +35 -4
  946. package/dist/commands/ps.js.map +1 -1
  947. package/dist/commands/queue-transfer.d.ts +10 -0
  948. package/dist/commands/queue-transfer.d.ts.map +1 -0
  949. package/dist/commands/queue-transfer.js +140 -0
  950. package/dist/commands/queue-transfer.js.map +1 -0
  951. package/dist/commands/queue.d.ts.map +1 -1
  952. package/dist/commands/queue.js +20 -6
  953. package/dist/commands/queue.js.map +1 -1
  954. package/dist/commands/scope.d.ts.map +1 -1
  955. package/dist/commands/scope.js +258 -17
  956. package/dist/commands/scope.js.map +1 -1
  957. package/dist/commands/seat.d.ts.map +1 -1
  958. package/dist/commands/seat.js +132 -23
  959. package/dist/commands/seat.js.map +1 -1
  960. package/dist/commands/setup.d.ts +34 -0
  961. package/dist/commands/setup.d.ts.map +1 -1
  962. package/dist/commands/setup.js +111 -18
  963. package/dist/commands/setup.js.map +1 -1
  964. package/dist/commands/terminal.d.ts +11 -0
  965. package/dist/commands/terminal.d.ts.map +1 -1
  966. package/dist/commands/terminal.js +10 -7
  967. package/dist/commands/terminal.js.map +1 -1
  968. package/dist/config-store.d.ts +9 -1
  969. package/dist/config-store.d.ts.map +1 -1
  970. package/dist/config-store.js +46 -0
  971. package/dist/config-store.js.map +1 -1
  972. package/dist/daemon-lifecycle.d.ts +53 -2
  973. package/dist/daemon-lifecycle.d.ts.map +1 -1
  974. package/dist/daemon-lifecycle.js +500 -192
  975. package/dist/daemon-lifecycle.js.map +1 -1
  976. package/dist/daemon-reachability.js +2 -2
  977. package/dist/daemon-reachability.js.map +1 -1
  978. package/dist/daemon-start-lock.d.ts +28 -0
  979. package/dist/daemon-start-lock.d.ts.map +1 -1
  980. package/dist/daemon-start-lock.js +107 -13
  981. package/dist/daemon-start-lock.js.map +1 -1
  982. package/dist/lib/seat-activity.d.ts +4 -1
  983. package/dist/lib/seat-activity.d.ts.map +1 -1
  984. package/dist/lib/seat-activity.js +4 -3
  985. package/dist/lib/seat-activity.js.map +1 -1
  986. package/dist/mcp-server.d.ts +2 -2
  987. package/dist/mcp-server.d.ts.map +1 -1
  988. package/dist/mcp-server.js +126 -27
  989. package/dist/mcp-server.js.map +1 -1
  990. package/dist/process-liveness.d.ts +21 -0
  991. package/dist/process-liveness.d.ts.map +1 -0
  992. package/dist/process-liveness.js +43 -0
  993. package/dist/process-liveness.js.map +1 -0
  994. package/dist/remote-host-ops.d.ts +1 -1
  995. package/dist/remote-host-ops.d.ts.map +1 -1
  996. package/dist/remote-host-ops.js +3 -14
  997. package/dist/remote-host-ops.js.map +1 -1
  998. package/dist/system-preflight.d.ts +9 -0
  999. package/dist/system-preflight.d.ts.map +1 -1
  1000. package/dist/system-preflight.js +27 -8
  1001. package/dist/system-preflight.js.map +1 -1
  1002. package/dist/tmux-health.d.ts +10 -1
  1003. package/dist/tmux-health.d.ts.map +1 -1
  1004. package/dist/tmux-health.js +31 -2
  1005. package/dist/tmux-health.js.map +1 -1
  1006. package/package.json +4 -2
  1007. package/scripts/check-abi.mjs +18 -2
  1008. package/tui/dist/attention/attention-model.d.ts +1 -1
  1009. package/tui/dist/attention/attention-model.d.ts.map +1 -1
  1010. package/tui/dist/attention/attention-model.js +6 -0
  1011. package/tui/dist/attention/attention-model.js.map +1 -1
  1012. package/tui/dist/daemon-client.d.ts +21 -2
  1013. package/tui/dist/daemon-client.d.ts.map +1 -1
  1014. package/tui/dist/daemon-client.js +36 -5
  1015. package/tui/dist/daemon-client.js.map +1 -1
  1016. package/tui/dist/hydrate.d.ts.map +1 -1
  1017. package/tui/dist/hydrate.js +6 -2
  1018. package/tui/dist/hydrate.js.map +1 -1
  1019. package/tui/dist/main.js +11 -8
  1020. package/tui/dist/main.js.map +1 -1
  1021. package/tui/dist/terminals/open-window.d.ts +9 -3
  1022. package/tui/dist/terminals/open-window.d.ts.map +1 -1
  1023. package/tui/dist/terminals/open-window.js +22 -4
  1024. package/tui/dist/terminals/open-window.js.map +1 -1
  1025. package/tui/dist/terminals/terminal-model.d.ts +3 -0
  1026. package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
  1027. package/tui/dist/terminals/terminal-model.js +6 -1
  1028. package/tui/dist/terminals/terminal-model.js.map +1 -1
  1029. package/tui/dist/topology/glyphs.d.ts.map +1 -1
  1030. package/tui/dist/topology/glyphs.js +11 -1
  1031. package/tui/dist/topology/glyphs.js.map +1 -1
  1032. package/tui/dist/topology/graph-types.d.ts +8 -0
  1033. package/tui/dist/topology/graph-types.d.ts.map +1 -1
  1034. package/tui/dist/types.d.ts +3 -2
  1035. package/tui/dist/types.d.ts.map +1 -1
  1036. package/ui/dist/assets/{index-DG_7XFcL.js → index-D7OUklzs.js} +148 -148
  1037. package/ui/dist/index.html +1 -1
@@ -38,10 +38,14 @@ During a fresh team build, a seat can see `rosterState: "building"` in
38
38
  roster-ready notice for each agent that started. The notice is information only:
39
39
  `rig whoami` now shows the current peers and routes, and the row needs no claim,
40
40
  file or follow-up. The agent can close it or leave it, and the stuck sweep files
41
- no finding about it, pending or claimed. Its wake is delivered like any other.
42
- The queue records the notice even when a wake cannot reach the seat; an
43
- unconfirmed notice appears as a launch warning. If an edge could not be recorded,
44
- the launch warning names it and no roster-ready notice is sent. Terminal-only seats are excluded.
41
+ no finding about it, pending or claimed. It does not wake the agent or send text
42
+ to its terminal. It waits in the seat's queue (`rig queue list`; refocus lists it
43
+ as an OpenRig notice), and `rig whoami` is current whenever the agent next reads
44
+ it. The notice does not count as assigned work in `rig ps` or as an obligation
45
+ for the parked-owner check.
46
+ If the notice cannot be recorded, an unconfirmed notice appears as a launch
47
+ warning. If an edge could not be recorded, the launch warning names it and no
48
+ roster-ready notice is sent. Terminal-only seats are excluded.
45
49
 
46
50
  The attention codes that stop startup this way are `trust_gate`,
47
51
  `hook_trust_gate`, `update_gate`, `login_required`, `mcp_gate`,
@@ -523,6 +527,24 @@ Per harness: Claude Code's and Codex's permission choices are in the setup refer
523
527
 
524
528
  ---
525
529
 
530
+ ### Replace saved application startup text
531
+
532
+ Prefer a startup file for guidance that changes regularly: adapters read its current contents when the file is eligible for delivery. An existing seat can also have application-authored `send_text` embedded in its saved startup context and its launch recipe. To replace one such action without starting the seat, first inspect its selectable positions:
533
+
534
+ ```bash
535
+ rig seat set-startup-text dev-impl@my-rig --inspect
536
+ rig seat set-startup-text dev-impl@my-rig --layer member --recipe-index 0 --context-index 2 --text-file ./replacement.txt
537
+ rig seat set-startup-text dev-impl@my-rig --layer member --recipe-index 0 --context-index 2 --text-file ./replacement.txt --expected-revision <revision-from-preview>
538
+ ```
539
+
540
+ The second command previews the old and replacement text. The last applies only if the saved context, recipe and shared rig layer still match the preview revision, then reads back the saved text. It changes only the selected seat's saved context and recipe; it does not relaunch, send to its current conversation, or change identity and queue work. An action's `applies_on` and idempotence still govern delivery. Snapshots already captured retain their own startup text; a later snapshot captures the updated context.
541
+
542
+ `--inspect` lists application actions from the seat's saved context and the rig, pod and member layers of its own recipe. It omits generated identity and other platform actions. A unique action supplied by an agent/profile source or inherited shared rig layer appears as layer `context` with recipe index `0`. Its replacement is recorded for this seat; the shared source remains unchanged. At a future fresh start OpenRig matches the override against the startup actions. Recipe-resolved starts use the current source; `rig seat launch --fresh` uses the seat's saved startup context. If the override no longer matches uniquely, OpenRig keeps the replacement, uses that input text and warns. Inspection reports an override as stale when the current source cannot be matched, or as source-unverified when source resolution is unavailable. An overlapping edit is allowed and reported in preview; ambiguous overrides are skipped at start. Identical duplicate saved actions cannot be selected this way. For recipe layers, the two indexes must identify the same action. A stale revision requires a fresh preview. Inspect the saved text before retrying if the outcome of an apply is unknown.
543
+
544
+ To remove a seat-only source override after its source changes, inspect its `overrideIndex`, preview `rig seat set-startup-text <seat> --clear-override --override-index <index>`, then repeat with `--expected-revision` from that preview. The earlier `--context-index` selector remains available when the saved action still identifies the override. Clearing leaves the saved context unchanged; a fresh launch resolved from the recipe uses the current source.
545
+
546
+ Rig export cannot express seat-specific substitutions to shared rig, pod or source actions. Export names the affected seats as not carried; inspect those actions before importing the exported spec.
547
+
526
548
  ## Deterministic Configuration
527
549
 
528
550
  The AgentSpec and RigSpec allow declaring deterministic environment configuration:
@@ -31,6 +31,14 @@ to have exited (identity reason `pane_exited`) reads `exited`, with `startupStat
31
31
  record is running but the LIFECYCLE is `attention_required` (for example, the seat's startup or restore needs
32
32
  attention, or OpenRig can't confirm the pane's process as the seat's runtime, such as a bare shell), its human
33
33
  output reads `Session: needs attention`, as `rig ps` reads `att`.
34
+ Beside the LIFECYCLE, a recorded-running agent seat whose current identity check saw a shell as the pane's foreground
35
+ command, without verifying the seat's agent there, serves `agentLiveness` (`agent_liveness` in `rig seat status`):
36
+ `{ state: "not_verified", reason: "shell_foreground", command, observedAt }`, once its startup is no longer pending. It
37
+ shows a stored shell observation; delivery checks the target again and applies its runtime's own policy. A community
38
+ harness's seat can read it with its LIFECYCLE still `running`, because OpenRig can't prove that harness's process. `rig ps --nodes` shows `agent not verified` as the REASON and a `Liveness` line, and
39
+ `rig seat status` shows an `Agent:` line. It isn't proof the agent stopped, since an agent can run behind a wrapper.
40
+ Otherwise the field is absent, which claims nothing. It's read from the identity check's stored verdict, so showing it
41
+ reads nothing new.
34
42
 
35
43
  The axes never blend. Reachability is strict; revival optimism is a different field
36
44
  (omnigent's strict-liveness split). `unknown` is a first-class honest value — the oracle
@@ -156,7 +164,10 @@ time-bounded evidence. Rungs, top down, with each rung's retirement condition:
156
164
  Codex SessionStart/UserPromptSubmit/Stop/PermissionRequest): standing for Claude; Codex's
157
165
  hook rung starts at trial and is promoted after 50 agreeing observations over at least an
158
166
  hour. Exactly-once turn boundaries; SubagentStop filtered (it
159
- can fire post-turn and must never revive an idle seat). Hook-rung authority is
167
+ can fire post-turn and must never revive an idle seat). Working and idle posts are taken
168
+ in the emitter's own order (event time, then its sequence), so a turn's Stop arriving after
169
+ the next turn's UserPromptSubmit doesn't win. Attention posts (a permission request,
170
+ needs-input, a usage limit) are applied as they arrive. Hook-rung authority is
160
171
  TIME-BOUNDED: the hook rung is the only rung that does not self-date its evidence, so
161
172
  persistent cross-rung contradiction degrades it to identity-only, visibly, with a
162
173
  rung-health event.
@@ -191,6 +202,16 @@ time-bounded evidence. Rungs, top down, with each rung's retirement condition:
191
202
  carries an interval holds for two of them, then lapses to unknown, so a runner killed without saying so stops reading
192
203
  idle. Silence never clears a pending attention prompt, and a runner that states no interval (omp, an older pi
193
204
  runner) keeps the hold-until-the-next-boundary behaviour.
205
+ - **A plain community preset's declared hooks** (`activity_hooks`, recorded at launch): the hook events the
206
+ harness's own script posts decide working, idle and needs-input, taken in their own order (time, then sequence)
207
+ as a runner's are, so a delayed older `Stop` that carries its `occurredAt` doesn't read a working seat idle. A post
208
+ without `occurredAt` is stamped at arrival and ordered by it. Only a declared turn start (`UserPromptSubmit` or `active`) makes an idle
209
+ boundary hold until the next post; without one it lasts the 15 s hook window, then positive-only sampling decides
210
+ (working or unknown). A dialog the structural recognizer reads on screen (the `needs-input-chrome` rung, source
211
+ `community:structural-prompt`) raises needs-input while its frame is fresh (5 s), captured after the inventory
212
+ began, from the seat's pane where that's known, and started after the seat's latest hook; the next hook, a frame
213
+ with no dialog or a failed read ends it. The trust rests on the installed preset's declaration, and nothing
214
+ demotes it automatically. A runner preset ignores the declaration.
194
215
 
195
216
  Claude permission notifications raise needs-input immediately. A visible permission can clear
196
217
  after it has been observed and then disappears. A notification whose dialog was never observed
@@ -78,6 +78,34 @@ current Claude session. A visible custom status line alone does not verify
78
78
  collection or end-to-end adoption/handover recovery. The wrapper above suppresses
79
79
  collector errors; remove its stderr redirection temporarily when diagnosing it.
80
80
 
81
+ ## Raw context and configured budget
82
+
83
+ Claude's raw percentage measures input tokens against the full model context
84
+ window. `rig ps --nodes` also shows a configured-budget percentage when the
85
+ collector sees `CLAUDE_CODE_AUTO_COMPACT_WINDOW` as a plain integer from 100,000
86
+ to 1,000,000 tokens. The graph badge, its context ring, and seat context details
87
+ show the same sampled budget. For example, 150,000 input tokens in a 1M window
88
+ with a 200,000-token budget reads as 15% raw and 75% budget.
89
+
90
+ The budget is capped at the reported model window. It is a configured limit,
91
+ not an observed compaction trigger or countdown; OpenRig subtracts no fixed
92
+ reserve. OpenRig deliberately leaves other native settings, defaults, suffix
93
+ values such as `200k`, and out-of-range values unknown. Suffix support depends on
94
+ the Claude version; settings can change during a session. OpenRig does not
95
+ inspect native settings files to guess a limit. In particular, a budget set only
96
+ through `autoCompactWindow`, `/autocompact` or `--autocompact` remains unknown.
97
+ The CLI omits a budget footer when no budget is known; JSON and seat context
98
+ details retain the unknown state. See Claude's
99
+ [auto-compaction settings](https://code.claude.com/docs/en/model-config#context-window-and-auto-compaction).
100
+
101
+ The ratio uses current input, cache-read and cache-creation tokens, excluding
102
+ output. Missing, invalid or all-zero current usage leaves the ratio unknown,
103
+ including immediately after compaction. Budget data shares the raw sample's
104
+ freshness and session/occupant checks. Existing watchdog thresholds, filters,
105
+ health colors and compaction automation continue to use the raw percentage.
106
+ JSON exposes the additional value as `contextUsage.configuredBudget`, with
107
+ `tokens`, `usedPercentage` and `source`; older samples have no known budget.
108
+
81
109
  ## Claude usage-limit detection
82
110
 
83
111
  The status line supplies subscription usage windows and their reset timestamps.
@@ -9,5 +9,8 @@ limits:
9
9
  - creation settings (model, provider, max turns) come from the seat's Hermes config.yaml, not from flags
10
10
  - no guidance, skills or startup files are placed
11
11
  - needs-input and approval prompts are read from the screen only
12
+ - fresh handover passes its restore packet through --query-file; native submission and consumption are unconfirmed
13
+ - initial input transport is covered with a stand-in; unattended startup needs checking with the installed Hermes
14
+ first_input: true # Hermes v0.23.4: --query-file seeds the interactive session on a real TTY
12
15
  names_conversation: true
13
16
  passes_model: false # the launcher maps OPENRIG_MODEL for a new session; set true once checked with the real harness
@@ -49,6 +49,16 @@ if [ -n "${OPENRIG_RESUME_REF:-}" ]; then
49
49
  exec "$hermes" chat -c "$OPENRIG_RESUME_REF"
50
50
  fi
51
51
  if [ -n "${OPENRIG_CONVERSATION:-}" ]; then
52
+ # This first_input example targets Hermes v0.23.4's --query-file route (the naming notes above are from v0.22.4).
53
+ # Its source seeds the interactive TTY from this file without a paste/Enter race.
54
+ # Passing the path avoids shell expansion and argument-size limits on the startup text.
55
+ if [ -n "${OPENRIG_FIRST_INPUT:-}" ]; then
56
+ if [ ! -f "$OPENRIG_FIRST_INPUT" ] || [ ! -r "$OPENRIG_FIRST_INPUT" ] || [ ! -s "$OPENRIG_FIRST_INPUT" ]; then
57
+ echo "openrig-hermes-launch: the first-input file is missing, unreadable or empty; nothing was started" >&2
58
+ exit 1
59
+ fi
60
+ set -- "$@" --query-file "$OPENRIG_FIRST_INPUT"
61
+ fi
52
62
  exec "$hermes" chat -c "$OPENRIG_CONVERSATION" --create-if-missing "$@"
53
63
  fi
54
64
  echo "openrig-hermes-launch: OpenRig passed no conversation name; is names_conversation set in the preset?" >&2
@@ -2,7 +2,8 @@
2
2
 
3
3
  A community harness is a coding harness an outside contributor maintains. You install it as one small data file, and a
4
4
  rig member runs it by naming it as its `runtime`. OpenRig doesn't qualify every installed harness. It shows them as community
5
- harnesses; plain presets use screen observations, while declared runners and hosted Pi-RPC programs report their activity.
5
+ harnesses; plain presets use screen observations, or the hooks they declare their own script posts, while declared runners
6
+ and hosted Pi-RPC programs report their activity.
6
7
 
7
8
  For what an integration author owns end to end, including a runner's duties and running a harness somewhere else, see
8
9
  the draft [integration author contracts](author-contracts.md).
@@ -18,8 +19,8 @@ it never reads an unsupported capability as idle, working, ready or verified.
18
19
  | Delivery | yes | `rig send` and queue wakes paste the text into the pane and press Enter, as for any seat. A pane that's back at a shell is refused (`target_runtime_unverified`) and nothing is typed. OpenRig doesn't confirm the harness took the message; `rig send --verify` checks the pane afterwards. |
19
20
  | Identity | when declared | With `launch_result`, the conversation is shown as reported by its launcher; with `names_conversation`, as named by OpenRig. Neither is observed by OpenRig. Without either, the identity is unavailable. |
20
21
  | Resume | when declared | `resume: true` with one of the two above (see [Reopening a conversation](#reopening-a-conversation-resume-true)). Without it, a resume says `Resume is unsupported: community harness "<name>" is launch-only`, and a restore stops and asks. |
21
- | Activity | partly | Read from the screen only; there are no activity hooks. Work and attention the screen shows are kept, but a screen that looks idle reads `unknown`, never idle, because a quiet prompt can be an approval or a pause. A [runner preset](#runner-presets-runner-true)'s own reports decide it instead. |
22
- | Attention | partly | Read from the screen: a permission question or numbered choice that OpenRig recognizes reads as needing attention, and `rig send` won't type into it. A prompt it doesn't recognize reads `unknown`. |
22
+ | Activity | partly | Read from the screen only, unless the preset declares hooks. Work and attention the screen shows are kept, but a screen that looks idle reads `unknown`, never idle, because a quiet prompt can be an approval or a pause. A preset that declares the hooks its own script posts ([`activity_hooks`](#hook-reporting-presets-activity_hooks)) has them decide it instead, as a [runner preset](#runner-presets-runner-true)'s own reports do. |
23
+ | Attention | partly | Read from the screen: a permission question or numbered choice that OpenRig recognizes reads as needing attention, and `rig send` won't type into it. Once the harness prints its next empty prompt (a line holding only `❯`, `›` or `»`) below an answered one, the answered one is history, even while it stays on screen. A prompt it doesn't recognize reads `unknown`. With [declared hooks](#hook-reporting-presets-activity_hooks), a screen reading counts only while it's newer than the latest hook. |
23
24
  | Approval | no | Approvals stay in the harness's own pane. OpenRig relays none, so a person answers them there. A [runner preset](#runner-presets-runner-true) is the exception: its runner submits the agent's permission requests to OpenRig, which asks a person, and the default is permit (section 7 of the [harness and runner contract](harness-runner-contract.md)). |
24
25
  | Cancel | no | A plain preset has no live native cancellation consumer. Its own manual controls remain available; `/abort` is ordinary input unless that program defines it. An implemented runner can support the [named native command](harness-runner-contract.md#optional-run-bound-native-input-and-wake-version-1), subject to its own capability and turn mapping. `rig seat stop` and `rig down` end the seat's tmux session; work outside that pane, such as a gateway, has separate custody and lifecycle. List those limits in the preset. Restarting in place and switching harness are refused. |
25
26
  | Transport | yes | The seat is a tmux pane like any other, so `rig capture`, `rig send` and `--host` work as they do for any seat. |
@@ -55,6 +56,7 @@ first_input: true # optional: launcher takes the first turn from
55
56
  # runner: true # optional, needs launch_result: the launcher reports the seat's activity (below)
56
57
  # passes_model: true # optional: the launcher takes the seat's declared model from OPENRIG_MODEL (below)
57
58
  # launch_wrapper: true # optional: a runner applies OPENRIG_LAUNCH_WRAPPER to its native child (below)
59
+ # activity_hooks: [PreToolUse, PostToolUse, Stop] # optional: the hooks the harness's own hook script posts (below)
58
60
  ```
59
61
 
60
62
  - **`command`** is a single program and its arguments. Shell syntax such as `|`, `&&`, `;`, redirections or `$(…)`
@@ -196,6 +198,62 @@ one at a time and in order, without making the agent wait. It finds the address
196
198
 
197
199
  A runner declaration is not a native-input or wake declaration. The optional [run-bound channel](harness-runner-contract.md#optional-run-bound-native-input-and-wake-version-1) advertises implemented operations through an authenticated live hello; Core supports preset-owned consumers plus input-only managed OMP and hosted Pi-RPC consumers. The dsh example implements input, dedicated wake and named cancellation using its own invocation mapping. Typed remains every program's default, native selection is explicit per seat, and a Pi-compatible wrapper does not qualify or adopt another program's native operations.
198
200
 
201
+ ## Hook-reporting presets (`activity_hooks`)
202
+
203
+ Some harnesses run hook scripts of their own at points in a turn. When yours does, its script can report those points to
204
+ OpenRig, and the preset lists the events it posts. The seat's activity and attention then follow those posts, in `rig ps`,
205
+ the MCP team read and the TUI graph. There's no runner and no extra credential: the script posts on the install-token path
206
+ the seat's pane already has.
207
+
208
+ ```yaml
209
+ activity_hooks: [PreToolUse, PostToolUse, Stop] # the events your script posts; declare a turn start where it posts one
210
+ ```
211
+
212
+ **What the script posts.** Each event goes to `POST <OPENRIG_URL>/api/activity/hooks` with `OPENRIG_ACTIVITY_HOOK_TOKEN`
213
+ as the bearer token, both from the pane's environment. Every post names:
214
+ - the seat, as `sessionName` (`OPENRIG_SESSION_NAME`) and `nodeId` (`OPENRIG_NODE_ID`);
215
+ - `runtime` (`OPENRIG_RUNTIME`, the preset's name) and `generation` (`OPENRIG_OCCUPANT_GENERATION`);
216
+ - `occurredAt`, stamped when the hook fires, and an increasing `sequence` where the harness can supply one, as a
217
+ runner's posts do;
218
+ - `hookEvent` and `subtype`, as in the table.
219
+
220
+ | The script posts | The seat reads |
221
+ |---|---|
222
+ | `UserPromptSubmit` or `active` (a turn start) | working |
223
+ | `PreToolUse` or `PostToolUse` | working |
224
+ | `Notification` / `permission_prompt` | needs input |
225
+ | `Stop` / the turn's stop reason | idle |
226
+
227
+ **The turn-start rule.** Whether a `Stop`'s idle lasts depends on whether the preset declares a turn start
228
+ (`UserPromptSubmit` or `active`):
229
+ - **With one,** idle holds until the next post, as for a runner, so it depends on that turn start's post arriving. A post
230
+ that states `livenessSeconds` still lapses after two missed intervals.
231
+ - **Without one,** idle lasts the 15-second hook window, and then the screen decides: a changing screen reads working, a
232
+ quiet one `unknown`, never idle. So a turn your script doesn't report can read idle for the rest of that window.
233
+ - **A working post** counts for 15 seconds. A long tool call with no hook then reads from the screen, never working forever.
234
+
235
+ **Order.** Posts are taken in the order they happened (`occurredAt`, then `sequence`), not the order they arrived, so a
236
+ delayed `Stop` doesn't read a working seat idle. OpenRig still records the late post. A post without `occurredAt` is
237
+ stamped when it arrives, so a late one can be taken as current: send `occurredAt`. Nothing is refused for missing it.
238
+
239
+ **Attention from the screen.** A permission question or numbered choice that OpenRig recognizes on screen reads as needs
240
+ input while that reading is fresh (5 seconds) and its capture started after the seat's latest hook. The next hook post
241
+ ends it, as does a screen showing no dialog or a failed read. A draft in the input box isn't a dialog: someone typing,
242
+ or type-ahead during a long tool call, isn't a question. A dialog OpenRig doesn't recognize reads as the hooks and the
243
+ turn-start rule say.
244
+
245
+ **Good to know:**
246
+ - **The declaration is fixed at launch,** as `runner` is: each launch, a handover's successor included, records it on the
247
+ session. Editing the preset changes the next launch, not a running seat.
248
+ - **OpenRig trusts the declaration.** A script that doesn't post what the preset declares reads wrongly until the preset
249
+ is fixed; nothing demotes its hooks automatically.
250
+ - **Ignored with a runner.** With `runner: true` or `protocol: pi-rpc`, the runner's reports decide, and `activity_hooks`
251
+ is ignored, not refused.
252
+ - **The generation attributes a post; it isn't authentication,** as for a runner. A post with an earlier occupant's
253
+ generation doesn't count for the live seat.
254
+ - **What to read:** `rig ps`'s ACTIVITY column, and `activity` in `rig ps --json`, show OpenRig's decision.
255
+ `agentActivity` is the older hook-and-screen reading and can differ from it.
256
+
199
257
  ## Pi-compatible RPC harnesses (`protocol: pi-rpc`)
200
258
 
201
259
  For a community harness that is a fork of Pi or speaks Pi's CLI and JSONL RPC protocol (such as OmO Native on senpi or Prime Agent), set `protocol: pi-rpc`.
@@ -235,6 +293,14 @@ Agent's CLI.
235
293
  - **The launcher:** it creates the session OpenRig named (`-c <name> --create-if-missing`), and on a resume reopens it
236
294
  without `--create-if-missing`, with its own Hermes home per seat. A name that matches nothing ends with Hermes's own
237
295
  "No session found" error.
296
+ - **First startup input:** the preset declares `first_input: true`. With Hermes v0.23.4, the launcher passes
297
+ `OPENRIG_FIRST_INPUT` as `--query-file <path>`. Hermes v0.23.4's source seeds that text as the first turn of an
298
+ interactive terminal session. The launcher passes no first input on a resume. A missing, unreadable or empty file stops the
299
+ launch with an error; the startup text is never truncated to fit a command-line argument. This transport is covered
300
+ with a stand-in; unattended startup still needs checking with the installed Hermes.
301
+ A fresh handover passes its complete restore packet through the same `--query-file` route, with no later typed
302
+ duplicate. Submission and consumption remain unconfirmed; do not resend the packet or repeat the handover because
303
+ uptake is unknown. This native handover path still needs checking with the installed Hermes.
238
304
  - **Settings go in the seat's Hermes `config.yaml`, not in flags:** Hermes's CLI creates a named session with no launch
239
305
  flags and then reopens it, refusing any creation flag (model, provider, `--max-turns`) that differs. So the preset's
240
306
  command carries none, and each seat's `config.yaml`, in its Hermes home, sets them before the seat's first start:
@@ -277,8 +343,11 @@ Copy the launcher and the preset for your mode, and maintain them as your own.
277
343
  processes, a gateway say, may keep running after it. OpenRig doesn't stop them, and whether they survive isn't exercised
278
344
  by OpenRig's tests, so check the harness's own processes after `rig down`. Each preset's limits say what to expect.
279
345
 
280
- **Not supported for community harnesses:** restarting a seat in place (`rig seat restart` is for Codex seats) and
281
- switching harness on a running seat. Each says so before anything changes.
346
+ **Not supported for community harnesses:** restarting a seat in place (`rig seat restart` is for Codex seats). It says
347
+ so before anything changes. To move a running single-pane seat to or from an installed harness, use
348
+ `rig seat set-runtime <seat> --runtime <target> --reason <text>`, where the target is the harness's name, or `codex`,
349
+ `claude-code` or `pi` to move off it. It starts a new conversation with a handover. A later resume of a harness
350
+ successor's conversation works only when that harness's preset declares `resume`.
282
351
 
283
352
  ## An example: Cursor
284
353
 
@@ -428,7 +497,7 @@ Its [README](community-harness-examples/dsh/README.md) has the setup and a check
428
497
  and maintain them as your own.
429
498
 
430
499
  The launcher is the contributor's code, in the contributor's package. OpenRig runs no code from a preset and loads no
431
- module into its daemon. A preset that sets `launch_result`, `names_conversation`, `startup_assisted`, `first_input`, `runner`, `passes_model` or `launch_wrapper` is refused by an older
500
+ module into its daemon. A preset that sets `launch_result`, `names_conversation`, `startup_assisted`, `first_input`, `runner`, `passes_model`, `launch_wrapper` or `activity_hooks` is refused by an older
432
501
  OpenRig that doesn't know the field.
433
502
 
434
503
  ## Community-maintained runner: nodecode (@smota)
@@ -453,10 +522,12 @@ A runner preset for [nodecode](https://nodecode.ai), a self-modifying Common Lis
453
522
 
454
523
  A format-1 preset may set `first_input: true` (a boolean, default false). OpenRig composes the same initial identity turn it would otherwise paste, including the first merged text file, durable-obligation guidance and any selected orientation challenge. Before launch it writes that text to a per-attempt 0600 file under its own `state/first-input/` folder and passes the path as `OPENRIG_FIRST_INPUT`. The typed launch command carries the path, not the text; an argument-based launcher still puts the text in the native harness’s argv.
455
524
 
456
- The contributor-owned launcher reads the file and uses its harness’s supported initial-prompt route: the Cursor example passes one positional prompt; OpenClaw uses `--message`. Core knows neither flag. If no initial identity turn is due (an ordinary resume, for example), the variable is absent and the launcher starts without a first message. Later startup files and actions use their existing delivery paths; they are not folded into the launch file.
525
+ The contributor-owned launcher reads the file and uses its harness’s supported initial-prompt route: the Cursor example passes one positional prompt; OpenClaw uses `--message`; Hermes uses `--query-file <path>` to avoid putting the text on argv. Core does not choose these native options. If no initial identity turn is due (an ordinary resume, for example), the variable is absent and the launcher starts without a first message. Later startup files and actions use their existing delivery paths; they are not folded into the launch file.
457
526
 
458
527
  OpenRig records `node.startup_first_input_passed` with the path and `submission: unconfirmed`. This says the input was passed at launch, not that the native harness submitted or read it. An uncertain launch is not permission to replay it. Readiness remains process-only. `startup_assisted` is independent: when declared, startup still requires a person’s acknowledgement, including when the first input was passed at launch.
459
528
 
529
+ A fresh `rig seat handover --source fresh` to a community preset that declares `first_input` passes the complete restore packet as that one launch input. The packet carries the seat identity, startup-file references and predecessor context; OpenRig does not type a second packet afterward. `seat.handover_first_input_passed` records the file path separately from the later handover commit. The result and completed record keep the packet's submission and consumption unconfirmed; passing the file does not prove the native harness submitted or read it. Unknown uptake does not trigger a resend or another handover. Resumes keep their existing path. A native Hermes handover still needs qualification with the installed harness.
530
+
460
531
  Presets without `first_input` and built-in runtimes keep their existing behavior. Older OpenRig versions reject this new field as unknown. The private input file remains for diagnostics; it can contain private startup context. A launcher that turns its contents into one argument is subject to the platform’s argument-size limit; the launcher must report a launch error rather than silently truncate the turn. The examples’ argument transport is covered with stand-ins; native unattended startup still requires qualification with the installed harness.
461
532
 
462
533
  ## Declare a model catalog
@@ -472,7 +543,7 @@ model_catalog:
472
543
  - id: example/model-b
473
544
  ```
474
545
 
475
- Omit `runtime_version` when it is unknown and omit `effort_levels` when the preset has no per-model effort information. An explicit `models: []` declares an empty list. Missing or invalid catalog metadata makes the [seat catalog](seat-node-targeting.md#model-and-effort-catalog) unavailable and leaves preset launch behavior unchanged. Older OpenRig versions may reject `model_catalog` as an unknown field.
546
+ Omit `runtime_version` when it is unknown and omit `effort_levels` when the preset has no per-model effort information. The API's `runtimeVersion` is this declaration. OpenRig does not read the installed harness version for this response. An explicit `models: []` declares an empty list. Missing or invalid catalog metadata makes the [seat catalog](seat-node-targeting.md#model-and-effort-catalog) unavailable and leaves preset launch behavior unchanged. Older OpenRig versions may reject `model_catalog` as an unknown field.
476
547
 
477
548
  ## Pass the seat's declared model at launch
478
549
 
@@ -52,12 +52,18 @@ in the case named:
52
52
 
53
53
  ## Bearer tokens
54
54
 
55
+ `OPENRIG_AUTH_BEARER_TOKEN` is not a global authentication layer. Only routes that explicitly apply a bearer
56
+ check require that check's configured token. Other routes can have their own requirements, including the
57
+ [Browser access](browser-access.md) boundary and Core app credentials; absence from the list below does not
58
+ mean a route has no checks.
59
+
55
60
  The daemon reads these two bearer-token settings from its environment at start:
56
61
 
57
62
  - **`OPENRIG_AUTH_BEARER_TOKEN`** checks Mission Control's write routes (`POST /api/mission-control/action` and
58
63
  `/notifications/test`), the `/api/hosts` writes (`add`, `update`, `remove`, `pair`, `pair-decision`) and `GET /api/hosts/pair/<pairId>`, the `/api/rig-mode`
59
- binding writes, the `/api/network` writes (`POST /bindings`, `POST /installations` and `POST /bindings/<id>/disconnect`;
60
- `GET /bindings` checks no token), `POST /api/apps/v1/credentials` and `DELETE /api/apps/v1/credentials/<id>`, and
64
+ binding writes, every `POST /api/queue-transfer` route, the `/api/network` writes (`POST /bindings`,
65
+ `POST /installations`, `PATCH /bindings/<id>` and `POST /bindings/<id>/credential`, `/disconnect` and `/requests`;
66
+ `GET /bindings` checks no bearer token), `POST /api/apps/v1/credentials` and `DELETE /api/apps/v1/credentials/<id>`, and
61
67
  `POST /api/gateway/slack/forwarded`, a shared Slack app's relay. The other `/api/apps/v1` routes take a Core app
62
68
  credential instead; see [Core app](core-app.md). `rig host pair` hands this token to the paired machine, so a daemon
63
69
  that will be paired with needs it set (see `rig host pair` in [the command reference](../as-built/cli-reference.md)).
@@ -71,6 +77,11 @@ The daemon reads these two bearer-token settings from its environment at start:
71
77
  When the daemon is bound to an explicit address (`rig daemon start --host`) that isn't loopback or a tailnet
72
78
  address, and this token isn't set, these routes check `OPENRIG_AUTH_BEARER_TOKEN` instead.
73
79
 
80
+ By default, the daemon binds to loopback and the tailnet address when Tailscale is active. An operator-selected
81
+ bind (`rig daemon start --host`, the file's `daemon.host` setting or `OPENRIG_BIND_HOST`) can expose it on
82
+ other networks. Startup requires a non-empty operator bearer token for an explicit bind outside loopback and
83
+ tailnet (including hostnames that resolve outside them). Satisfying that startup check does not add bearer checks to other routes.
84
+
74
85
  The `/api/transcripts` routes (`GET /api/transcripts/<session>/tail`, `/grep` and `/full`) do not check either
75
86
  of these bearer tokens. On the default binds (loopback, and the tailnet address when Tailscale is active),
76
87
  a client that can reach the daemon can read them. The [Browser access](browser-access.md) boundary still applies.
@@ -97,6 +108,10 @@ The `GET /api/terminal/<name>` routes, the websocket included, answer `{ "error"
97
108
  for a well-formed but unaccepted Host. It cannot pass a malformed Host or a refused Origin; see
98
109
  [Browser access](browser-access.md).
99
110
 
111
+ The terminal WebSocket API is available even when `ui.enabled` is false. That setting controls Core's own
112
+ web UI pages and assets, so a separate UI or client can use terminals while those remain off. The existing
113
+ terminal bearer and [Browser access](browser-access.md) rules still apply.
114
+
100
115
  ## Event streams
101
116
 
102
117
  All of them are server-sent events (`text/event-stream`):
@@ -412,6 +427,38 @@ What reads these declarations:
412
427
  or render flag establishes no positive delivery or verification claim. These are outcome words, not a capability
413
428
  gate: the reminder's status, receipts and retries don't change with them.
414
429
 
430
+ ## Display a compact queue row
431
+
432
+ `displayText` is a derived one-line label for a queue row; use it as the row's one-line label.
433
+ It does not replace the authored summary or full body, or say the body is short or empty.
434
+ It appears on compact reads only; the body field stays absent, while `displayText` may show its first useful line.
435
+
436
+ `GET /api/queue/list?compact=1` and compact overdue/undelivered reads supply it.
437
+ `rig queue list` carries it in its JSON output; MCP `rig_queue_list` carries it in its rows.
438
+ The stored `summary` (including null), `fieldsElided` and full reads keep their shapes.
439
+ Full reads do not add `displayText`. MCP retains one JSON text part and its
440
+ `structuredContent` page metadata (`items`, `limit`, `truncated`).
441
+
442
+ The exact rule lives in `packages/daemon/src/domain/queue-display.ts`:
443
+
444
+ 1. Inspect at most 1,024 UTF-16 code units per candidate, dropping a trailing unmatched high
445
+ surrogate. Split on CRLF, CR, LF, U+2028 or U+2029. On each line, collapse whitespace runs
446
+ to a space, drop remaining C0 controls and DEL, then trim.
447
+ 2. Prefer the authored summary's first nonempty line. Otherwise consider the body prefix:
448
+ drop leading whitespace and `#`, `>`, `*`, `+`, `-` Markdown markers, and choose the first
449
+ line containing a Unicode letter or number. SQL transfers at most the first 4,096 bytes of
450
+ the stored body; byte slicing preserves embedded NULs for the display helper to remove.
451
+ 3. Keep at most 160 UTF-16 units. If longer, take the first 159, drop a trailing unmatched
452
+ high surrogate, and append `…`. If neither prefix supplies a line, apply the summary-line
453
+ rule to the qitem id, then fall back to `Queue item`. An unhelpful prefix does not mean
454
+ the whole body is empty; later text is unknown, and full reads keep the original content.
455
+
456
+ The same `queueLabelLine` body rule labels held and pending work in refocus, with its own
457
+ 240-unit limit. Refocus preserves an explicitly authored summary whole, as before.
458
+ These bounds cover text transferred into JavaScript and display processing, not SQLite disk
459
+ reads: `substr` may still read the stored body. A short label is not a speedup claim.
460
+ Detail reads remain separate; clients need not fetch every body just to label compact rows.
461
+
415
462
  ## Route details
416
463
 
417
464
  - **Early Claude compaction acknowledgement:** Send `{"session":"<session>","earlyAck":true}` to
@@ -89,8 +89,13 @@ For a tarball or manual Node install on Linux, put its bin directory on PATH in
89
89
  in an interactive `~/.bashrc`. Bash reads the first of `~/.bash_profile`,
90
90
  `~/.bash_login` and `~/.profile`; if one of the first two exists, source `~/.profile`
91
91
  there. Other shells use their own login file (for example, zsh's `~/.zprofile`).
92
- Check `bash -lc 'command -v node rig'`: both paths must appear in the output.
93
- Use Codex's tool shell for this check if it differs from Bash.
92
+ Check `env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin bash -lc 'command -v node rig'`: both
93
+ paths must appear in the output. It starts from the PATH an app starts with on Linux, so only your login file can add
94
+ to it; a login shell started from this terminal would also find what this terminal's PATH already has. Use Codex's tool
95
+ shell for this check if it differs from Bash. For `rig`, `rig doctor`'s `rig_login_shell` row below is the same check.
96
+ `rig doctor`, and the end of `rig setup`, check `rig` in your own login shell (the `rig_login_shell` row): that's where
97
+ an app started outside a terminal, such as Claude Desktop's Code tab, looks it up. A warning there gives the line for
98
+ your shell and the `OPENRIG_RIG_BIN` alternative; restart the app after the change.
94
99
 
95
100
  On a Mac with Apple silicon, use Node.js 22 (see the [compatibility
96
101
  history](../releases/v0.5.15.md#known-compatibility-limitation)). On a Mac where
@@ -193,15 +198,15 @@ agent doing the setup. These use this release's tag:
193
198
 
194
199
  ```sh
195
200
  # Claude Code
196
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.24/skills/rigs" --skill rigs --agent claude-code
201
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.26/skills/rigs" --skill rigs --agent claude-code
197
202
 
198
203
  # Codex
199
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.24/skills/rigs" --skill rigs --agent codex
204
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.26/skills/rigs" --skill rigs --agent codex
200
205
  # OMP (Oh My Pi): the pi target installs to .agents/skills, which OMP reads
201
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.24/skills/rigs" --skill rigs --agent pi
206
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.26/skills/rigs" --skill rigs --agent pi
202
207
  ```
203
208
 
204
- **OMP:** this pin installs the shared skill only. The `v0.7.24` skill includes OMP attachment guidance (`rig attach --self … --runtime omp`),
209
+ **OMP:** this pin installs the shared skill only. The `v0.7.26` skill includes OMP attachment guidance (`rig attach --self … --runtime omp`),
205
210
  but complete setup from OMP has not been verified. OMP isn't a kernel provider; Claude Code or Codex must still be
206
211
  signed in. To invoke the skill in OMP, type `/skill:rigs`; if OMP was already open when you installed it, type
207
212
  `/reload-plugins` first.
@@ -222,11 +227,11 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
222
227
  script will do and changes nothing:
223
228
 
224
229
  ```sh
225
- curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.24/scripts/install.sh | sh -s -- --dry-run
230
+ curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.26/scripts/install.sh | sh -s -- --dry-run
226
231
  ```
227
232
 
228
233
  The same command without `--dry-run`,
229
- `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.24/scripts/install.sh | sh`, installs the
234
+ `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.26/scripts/install.sh | sh`, installs the
230
235
  latest published `@openrig/cli` with `npm install -g`, runs the Node.js and SQLite check if the installed checker is
231
236
  present (otherwise it reports the check skipped), then runs `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
232
237
  Codex and may install a missing one, as described below. A failed step prints
@@ -269,11 +274,17 @@ Setup also prints the one line OpenRig can add to each seat's `CLAUDE.md` or
269
274
  `AGENTS.md`, plus OpenRig's markers around it so it can be removed cleanly: the
270
275
  exact text it writes, which files it goes in, and what a no gives up. Show the person,
271
276
  ask, and save their answer with `rig setup --router-line yes` or
272
- `rig setup --router-line no`. No answer isn't a yes: with nothing saved and
277
+ `rig setup --router-line no`. On its own, that saves only the answer and says so; no
278
+ other setup step runs again. No answer isn't a yes: with nothing saved and
273
279
  nothing set in the environment, the line isn't added. The answer covers only
274
280
  that line, and so does what setup says a no gives up; setup's "OpenRig may
275
281
  modify" list names the other writes.
276
282
 
283
+ When Tailscale is active on the machine and no daemon address is set, setup also
284
+ says that the daemon's default bind adds this machine's Tailscale address, so your
285
+ other OpenRig machines and the web UI can reach it, and how to keep it on this
286
+ machine only: `rig config set daemon.host 127.0.0.1`. The default itself doesn't change.
287
+
277
288
  The block keeps `terminal.history_limit` rows of scrollback per pane (default
278
289
  10000). To keep more, run `rig config set terminal.history_limit 50000`, then
279
290
  `rig setup` again. A running tmux server keeps its old limit until it restarts
@@ -1162,6 +1173,27 @@ facts it needs.
1162
1173
  `rig daemon start` then refuses with `Daemon startup is already reserved`, which
1163
1174
  is that start, not a failure to retry. Don't use a short `/healthz` timeout of
1164
1175
  your own as a death check: a busy daemon can take longer to answer.
1176
+ - **A `--json` command that got no usable answer says which failure it was.** It
1177
+ exits 1 and prints `{"ok":false,"error":{"code":…,"outcome":…,"message":…}}` in
1178
+ place of its result. When it sent its request and no usable answer came back:
1179
+ - `daemon_timeout`: no answer in time, outcome `unknown`;
1180
+ - `daemon_unreachable`: the connection was refused, outcome `not_delivered`;
1181
+ - `daemon_connection_lost` or `daemon_bad_response`: outcome `unknown`;
1182
+ - `daemon_connection_blocked`: this machine blocked the connection, outcome
1183
+ `unknown`.
1184
+
1185
+ When the daemon is already known not to answer, the command stops before it
1186
+ sends anything. `rig ps --json`, and the commands that already report that as
1187
+ JSON (such as `rig archive --json`), print the same shape with outcome
1188
+ `not_delivered`:
1189
+ - `daemon_not_running`: stopped, or its record is stale;
1190
+ - `daemon_starting`: a start is in progress and nothing listens yet;
1191
+ - `daemon_connection_blocked`: this machine blocked the health check;
1192
+ - `daemon_unreachable`: no connection.
1193
+
1194
+ Other commands print that check's message on stderr and exit 1, with nothing on
1195
+ stdout. Branch on `code`, and on the exit status: a missing result is not an empty
1196
+ fleet, and a timeout isn't proof the daemon is down.
1165
1197
  - **Restart after the process has exited.** After `rig daemon stop` or a SIGTERM,
1166
1198
  wait until the PID is gone and the port refuses connections, not for a fixed
1167
1199
  delay. The shutdown budget is 10 seconds, and `rig daemon stop` waits 12.
@@ -1178,8 +1210,10 @@ facts it needs.
1178
1210
  - **Don't let the supervisor clear `daemon-start.lock`.** A reservation from an
1179
1211
  earlier boot is archived by the next start, and so is one whose recorded launcher
1180
1212
  and child are both gone in the same pid namespace, unless `rig daemon stop`
1181
- retained it. Any other reservation stays; a person reads the start error, which
1182
- says what to inspect and when the reservation can be archived.
1213
+ retained it. A start whose child became ready after its wait is finished by the
1214
+ next `rig daemon start`, which retires that reservation itself. Any other
1215
+ reservation stays; a person reads the start error, which says what to inspect and
1216
+ when the reservation can be archived.
1183
1217
 
1184
1218
  ## Kernel framing (what `rig setup` does and does not do)
1185
1219
 
@@ -1540,6 +1574,16 @@ Separate instances should use separate databases; the check is a startup observa
1540
1574
  not a lock against later concurrent starts. Changing the setting applies on the next
1541
1575
  daemon start.
1542
1576
 
1577
+ A second `OPENRIG_HOME` on the same user account isn't an isolated test environment.
1578
+ Unless its `HOME` and `CODEX_HOME` also point inside it, its daemon still refreshes
1579
+ OpenRig's own skills in that account's `~/.claude/skills` and `~/.agents/skills`. With
1580
+ Codex hooks enabled, its managed setup can also update `~/.codex/config.toml` and, when
1581
+ present, `~/.codex/hooks.json` with OpenRig's activity hooks. That setup runs at daemon
1582
+ start and at later Codex launches, so a Codex home that several daemons use follows
1583
+ whichever set it up most recently. The startup "home isolation advisory" names which of
1584
+ these apply. For a test that needs its own OpenRig, use another machine, such as a VM
1585
+ or VPS.
1586
+
1543
1587
  ## Daemon start wait
1544
1588
 
1545
1589
  `rig daemon start` waits up to 180 seconds for the child it started to answer on its
@@ -1552,6 +1596,24 @@ TUI's start, which allows its own call that wait plus the probe, cleanup and a m
1552
1596
  A running daemon isn't affected.
1553
1597
  When the wait runs out and the child is still alive, the start ends pending as before:
1554
1598
  the child is left running and the start reservation is kept, so inspect before retrying.
1599
+ Once that child is ready, run `rig daemon start` again: it finishes the pending start
1600
+ instead of starting another daemon. It checks that the reservation still names the child
1601
+ (the same boot and pid namespace, the start gone, the same process) and that the child
1602
+ passes the usual startup readiness, publishes `daemon.json` for it (or keeps a
1603
+ `daemon.json` that already describes it in full), and retires that start's reservation as
1604
+ `daemon-start.lock.finished-<inode>`. A `daemon.json` left by an earlier daemon that is no
1605
+ longer running (after a crash, for example) is replaced, as an ordinary start replaces it.
1606
+ The child keeps the settings it was launched with: this `rig daemon start` doesn't
1607
+ reconfigure its port, host or database.
1608
+ Readiness alone isn't always enough. A reservation written by an OpenRig before this
1609
+ change doesn't record the child's database, so the finish publishes only the database a
1610
+ `daemon.json` already names, or this start's own (`--db` or the configured path), and only
1611
+ while the child has that file open. On an OS that gives no boot ID (Windows), the
1612
+ reservation can't be matched to this boot, so the finish doesn't apply there.
1613
+ Its output reports the publication, the reservation and the readiness on separate lines.
1614
+ When publication succeeds but the reservation can't be archived, the output says
1615
+ `Reservation: kept` and why, the start doesn't fail, and the next `rig daemon start`
1616
+ retires it. When any check fails, it changes nothing and the start error says why.
1555
1617
  A wait shorter than the host needs only makes the start end pending sooner; it doesn't
1556
1618
  stop the child.
1557
1619
  Set the wait to what the host and its supervisor expect. A longer wait doesn't make a slow
@@ -49,7 +49,7 @@ the same harness can run in many places, and one place can host many harnesses.
49
49
  | | Plain community preset | Runner preset (`runner: true`) | OpenRig-hosted protocol runner (`protocol: pi-rpc`) |
50
50
  |---|---|---|---|
51
51
  | **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 |
52
- | **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 |
52
+ | **How OpenRig reads activity** | From the screen: a changing screen reads working; a quiet one reads **unknown**, never idle. A preset that declares the hooks its own script posts (`activity_hooks`) reads from those instead | 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 |
53
53
  | **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 |
54
54
  | **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 |
55
55
 
@@ -161,6 +161,12 @@ current bound Pi credential. No native input channel or cancellation capability
161
161
 
162
162
  Post each event to `POST <base>/api/activity/hooks` with `Authorization: Bearer <token>`.
163
163
 
164
+ A plain preset needs no runner to report: its harness's own hook script can post on the install-token path, and the preset
165
+ lists the events it posts (`activity_hooks`). Those posts carry the same fields a runner's do, `occurredAt` and an
166
+ increasing `sequence` included, and are ordered the same way; a turn start decides whether its idle holds. See
167
+ [Hook-reporting presets](community-harness-presets.md#hook-reporting-presets-activity_hooks). A runner's preset that also
168
+ declares `activity_hooks` keeps its runner's reports.
169
+
164
170
  The same endpoint accepts an observation-only report from a current run-bound credential:
165
171
 
166
172
  ```json
@@ -481,6 +487,8 @@ that runs without asking gains no approval step. Ordinary conversation and `rig
481
487
  answer, the question and the options, and the person is told once who decides and in what recorded state.
482
488
  - **The runner keeps reading `pending`.** The agent decides with `rig seat decide-permission <askId> --option <id>
483
489
  --reason "…"` (`POST <base>/api/activity/permission-requests/<askId>/decide` with `{"optionId", "reason"}`).
490
+ - A team seat named as `agents.operator_session` runs it with no prompt. Any other team Claude seat asks its person
491
+ first, so a seat can't approve its own waiting tool call.
484
492
  - It accepts only an option the agent offered.
485
493
  - It records an agent's decision: who decided, why, and the person's words.
486
494
  - A request that's no longer pending comes back as it is, and nothing is written.
@@ -603,11 +611,11 @@ the person:
603
611
 
604
612
  | Situation | What happens |
605
613
  |---|---|
606
- | **Someone can be asked** | In order: the person chosen for the seat (`rig seat set-permissions-to`); else the return route of the work the seat is running (the person's own conversation, as `rig queue create --return-route auto` issued it): the one route its open work carries or, when that work comes from several conversations, the route of its newest in-progress work, else of its newest open work, when that route is on this host; else the default person. The reply is `{"ok": true, "askId", "created", "askedOf", "answerBy"}`. |
607
- | **No one can be asked**, or the seat chose `--deny` | `{"ok": true, "state": "not_asked", "reason"}`. Nothing is decided: no permit, no refusal, and the prompt carries on in the terminal. |
614
+ | **Someone can be asked** | In order: the person chosen for the seat (`rig seat set-permissions-to`); else the return route of the work the seat is running (the person's own conversation, as `rig queue create --return-route auto` issued it): the one route its open work carries or, when that work comes from several conversations, the route of its newest in-progress work, else of its newest open work, when that route is on this host. The default person isn't asked by implication: with neither, no one is. The reply is `{"ok": true, "askId", "created", "askedOf", "answerBy"}`. |
615
+ | **No one can be asked** (no chosen person and no return route on this host), or the seat chose `--deny` | `{"ok": true, "state": "not_asked", "reason"}`. Nothing is decided: no permit, no refusal, and the prompt carries on in the terminal. No ask is open, so the seat's usual prompt alert and routed relay aren't held back. |
608
616
  | **A person picks an offered option, or replies just yes or no** (Feed, Steering's Approve or Deny, the TUI, Slack) | Their own answer. It closes the ask as theirs, with no receiving agent in between and no second confirmation. |
609
617
  | **A person answers in other words** | The receiving agent judges the exact action against them, as for a runner: allow when it meets them, deny with their words when it doesn't, recorded as its judgment, not their no. Words it can't read are asked back. |
610
- | **The person's own conversation owns the ask** | Its agent shows them the exact action, then runs `rig seat decide-permission <askId> --option allow\|deny` (or calls the MCP tool `rig_seat_decide_permission`, which takes the same answer), never typing into the seat for it. A plain yes or no takes `--relay --person-said "<their words>"` and is recorded as relayed by that agent, with their words as it reports them: unconfirmed, since OpenRig didn't get that answer from the person. Words or a condition take `--reason` and `--person-said`, and are recorded as the agent's judgment. The decider is the conversation's address: `OPENRIG_SESSION_NAME=<address>` in a shell, and, through the MCP tool with no seat, the address OpenRig issued under that conversation's own key. |
618
+ | **The person's own conversation owns the ask** | Its agent shows them the exact action, then runs `rig seat decide-permission <askId> --option allow\|deny` (or calls the MCP tool `rig_seat_decide_permission`, which takes the same answer), never typing into the seat for it. A plain yes or no takes `--relay --person-said "<their words>"` and is recorded as relayed by that agent, with their words as it reports them: unconfirmed, since OpenRig didn't get that answer from the person. Words or a condition take `--reason` and `--person-said`, and are recorded as the agent's judgment. The decider is the conversation's address: `OPENRIG_SESSION_NAME=<address>` in a shell, and, through the MCP tool, the address OpenRig issued under that conversation's own key, whether or not a seat is configured for its tools (not in one of OpenRig's own seats). |
611
619
  | **Closed without an answer** | `unanswered`: never a permit. A queue close is never an approval. |
612
620
  | **The prompt is answered in the terminal** | A No or Esc ends the hook, which withdraws the ask (`answered_in_terminal`). A Yes lets the tool run; when its exact call completes (the relay's `PostToolBatch` fingerprints), the ask is withdrawn the same way. A later answer through OpenRig reads as too late. |
613
621
  | **The window ends, or the seat restarts** | After 24 hours the hook withdraws the ask (`answer_window_ended`), and the prompt waits in the terminal. A Claude Code that's gone without ending the hook (killed, say) makes it withdraw the ask as `answered_in_terminal`. An earlier occupant's ask reads `stale`. An answer after either is too late, and nothing is sent. |