@openrig/cli 0.7.7 → 0.7.9

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 (944) hide show
  1. package/README.md +6 -6
  2. package/daemon/assets/openshell/Dockerfile +15 -0
  3. package/daemon/assets/openshell/README.md +139 -0
  4. package/daemon/assets/openshell/agents/coordinator/agent.yaml +20 -0
  5. package/daemon/assets/openshell/agents/coordinator/role.md +1 -0
  6. package/daemon/assets/openshell/agents/worker/agent.yaml +20 -0
  7. package/daemon/assets/openshell/agents/worker/role.md +3 -0
  8. package/daemon/assets/openshell/claude-code-provider.yaml +55 -0
  9. package/daemon/assets/openshell/driver-v1.schema.json +81 -0
  10. package/daemon/assets/openshell/guest.py +319 -0
  11. package/daemon/assets/openshell/policy.yaml +33 -0
  12. package/daemon/assets/openshell/preset.yaml +13 -0
  13. package/daemon/assets/openshell/rig.yaml +20 -0
  14. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  15. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  16. package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/SKILL.md +13 -4
  17. package/daemon/context-packs/help/manifest.yaml +1 -1
  18. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  19. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +110 -30
  20. package/daemon/context-packs/reference/getting-started.md +36 -9
  21. package/daemon/context-packs/reference/instance-layout.md +11 -0
  22. package/daemon/context-packs/reference/manifest.yaml +1 -1
  23. package/daemon/context-packs/reference/rig-spec.md +130 -14
  24. package/daemon/context-packs/reference/whats-new.md +294 -132
  25. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  27. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/core/openrig-upgrade/SKILL.md +4 -3
  40. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/openrig-upgrade/scripts/backup-sqlite.mjs +90 -14
  42. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/seat-continuity-and-handover/SKILL.md +13 -4
  77. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  78. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  79. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  80. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  81. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  82. package/daemon/dist/adapters/claude-code-adapter.d.ts +6 -0
  83. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  84. package/daemon/dist/adapters/claude-code-adapter.js +51 -74
  85. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  86. package/daemon/dist/adapters/claude-resume.d.ts +2 -1
  87. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  88. package/daemon/dist/adapters/claude-resume.js +19 -7
  89. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  90. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +33 -7
  91. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  92. package/daemon/dist/adapters/codex-runtime-adapter.js +204 -45
  93. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  94. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +13 -1
  95. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
  96. package/daemon/dist/adapters/community-harness-runtime-adapter.js +31 -1
  97. package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
  98. package/daemon/dist/adapters/omp-runtime-adapter.d.ts +5 -0
  99. package/daemon/dist/adapters/omp-runtime-adapter.d.ts.map +1 -1
  100. package/daemon/dist/adapters/omp-runtime-adapter.js +4 -0
  101. package/daemon/dist/adapters/omp-runtime-adapter.js.map +1 -1
  102. package/daemon/dist/adapters/openshell-driver.d.ts +39 -0
  103. package/daemon/dist/adapters/openshell-driver.d.ts.map +1 -0
  104. package/daemon/dist/adapters/openshell-driver.js +145 -0
  105. package/daemon/dist/adapters/openshell-driver.js.map +1 -0
  106. package/daemon/dist/adapters/openshell-podman-observer.d.ts +30 -0
  107. package/daemon/dist/adapters/openshell-podman-observer.d.ts.map +1 -0
  108. package/daemon/dist/adapters/openshell-podman-observer.js +94 -0
  109. package/daemon/dist/adapters/openshell-podman-observer.js.map +1 -0
  110. package/daemon/dist/adapters/pi-openrouter-charge.d.ts +1 -0
  111. package/daemon/dist/adapters/pi-openrouter-charge.d.ts.map +1 -1
  112. package/daemon/dist/adapters/pi-openrouter-charge.js +17 -3
  113. package/daemon/dist/adapters/pi-openrouter-charge.js.map +1 -1
  114. package/daemon/dist/adapters/pi-runner.d.ts +39 -5
  115. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  116. package/daemon/dist/adapters/pi-runner.js +97 -19
  117. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  118. package/daemon/dist/adapters/pi-runtime-adapter.d.ts +22 -0
  119. package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
  120. package/daemon/dist/adapters/pi-runtime-adapter.js +39 -8
  121. package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
  122. package/daemon/dist/adapters/preflight-exec.d.ts +2 -0
  123. package/daemon/dist/adapters/preflight-exec.d.ts.map +1 -1
  124. package/daemon/dist/adapters/preflight-exec.js +3 -1
  125. package/daemon/dist/adapters/preflight-exec.js.map +1 -1
  126. package/daemon/dist/adapters/stub-runtime-adapter.d.ts +5 -0
  127. package/daemon/dist/adapters/stub-runtime-adapter.d.ts.map +1 -1
  128. package/daemon/dist/adapters/stub-runtime-adapter.js +7 -4
  129. package/daemon/dist/adapters/stub-runtime-adapter.js.map +1 -1
  130. package/daemon/dist/adapters/tmux-control.d.ts +12 -6
  131. package/daemon/dist/adapters/tmux-control.d.ts.map +1 -1
  132. package/daemon/dist/adapters/tmux-control.js +42 -21
  133. package/daemon/dist/adapters/tmux-control.js.map +1 -1
  134. package/daemon/dist/adapters/tmux-exec.d.ts +3 -0
  135. package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
  136. package/daemon/dist/adapters/tmux-exec.js +35 -1
  137. package/daemon/dist/adapters/tmux-exec.js.map +1 -1
  138. package/daemon/dist/adapters/tmux-server.d.ts +6 -3
  139. package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
  140. package/daemon/dist/adapters/tmux-server.js +13 -8
  141. package/daemon/dist/adapters/tmux-server.js.map +1 -1
  142. package/daemon/dist/adapters/tmux.d.ts +11 -2
  143. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  144. package/daemon/dist/adapters/tmux.js +66 -14
  145. package/daemon/dist/adapters/tmux.js.map +1 -1
  146. package/daemon/dist/build-info.js +3 -3
  147. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  148. package/daemon/dist/db/all-migrations.js +16 -0
  149. package/daemon/dist/db/all-migrations.js.map +1 -1
  150. package/daemon/dist/db/migrations/142_node_claude_mcp.d.ts +3 -0
  151. package/daemon/dist/db/migrations/142_node_claude_mcp.d.ts.map +1 -0
  152. package/daemon/dist/db/migrations/142_node_claude_mcp.js +5 -0
  153. package/daemon/dist/db/migrations/142_node_claude_mcp.js.map +1 -0
  154. package/daemon/dist/db/migrations/143_activity_grants.d.ts +8 -0
  155. package/daemon/dist/db/migrations/143_activity_grants.d.ts.map +1 -0
  156. package/daemon/dist/db/migrations/143_activity_grants.js +22 -0
  157. package/daemon/dist/db/migrations/143_activity_grants.js.map +1 -0
  158. package/daemon/dist/db/migrations/144_environment_bindings.d.ts +4 -0
  159. package/daemon/dist/db/migrations/144_environment_bindings.d.ts.map +1 -0
  160. package/daemon/dist/db/migrations/144_environment_bindings.js +31 -0
  161. package/daemon/dist/db/migrations/144_environment_bindings.js.map +1 -0
  162. package/daemon/dist/db/migrations/145_node_permissions_to.d.ts +5 -0
  163. package/daemon/dist/db/migrations/145_node_permissions_to.d.ts.map +1 -0
  164. package/daemon/dist/db/migrations/145_node_permissions_to.js +7 -0
  165. package/daemon/dist/db/migrations/145_node_permissions_to.js.map +1 -0
  166. package/daemon/dist/db/migrations/146_node_startup_guidance_file.d.ts +6 -0
  167. package/daemon/dist/db/migrations/146_node_startup_guidance_file.d.ts.map +1 -0
  168. package/daemon/dist/db/migrations/146_node_startup_guidance_file.js +8 -0
  169. package/daemon/dist/db/migrations/146_node_startup_guidance_file.js.map +1 -0
  170. package/daemon/dist/db/migrations/147_managed_block_writes.d.ts +9 -0
  171. package/daemon/dist/db/migrations/147_managed_block_writes.d.ts.map +1 -0
  172. package/daemon/dist/db/migrations/147_managed_block_writes.js +19 -0
  173. package/daemon/dist/db/migrations/147_managed_block_writes.js.map +1 -0
  174. package/daemon/dist/db/migrations/148_outbox_dispatched_index.d.ts +8 -0
  175. package/daemon/dist/db/migrations/148_outbox_dispatched_index.d.ts.map +1 -0
  176. package/daemon/dist/db/migrations/148_outbox_dispatched_index.js +12 -0
  177. package/daemon/dist/db/migrations/148_outbox_dispatched_index.js.map +1 -0
  178. package/daemon/dist/db/migrations/149_stream_intake_cursor.d.ts +4 -0
  179. package/daemon/dist/db/migrations/149_stream_intake_cursor.d.ts.map +1 -0
  180. package/daemon/dist/db/migrations/149_stream_intake_cursor.js +14 -0
  181. package/daemon/dist/db/migrations/149_stream_intake_cursor.js.map +1 -0
  182. package/daemon/dist/domain/active-occupant.d.ts +2 -0
  183. package/daemon/dist/domain/active-occupant.d.ts.map +1 -1
  184. package/daemon/dist/domain/active-occupant.js +9 -1
  185. package/daemon/dist/domain/active-occupant.js.map +1 -1
  186. package/daemon/dist/domain/activity-grants.d.ts +63 -0
  187. package/daemon/dist/domain/activity-grants.d.ts.map +1 -0
  188. package/daemon/dist/domain/activity-grants.js +106 -0
  189. package/daemon/dist/domain/activity-grants.js.map +1 -0
  190. package/daemon/dist/domain/activity-taxonomy.d.ts +3 -0
  191. package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
  192. package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
  193. package/daemon/dist/domain/agent-images/agent-image-library-service.d.ts.map +1 -1
  194. package/daemon/dist/domain/agent-images/agent-image-library-service.js +5 -2
  195. package/daemon/dist/domain/agent-images/agent-image-library-service.js.map +1 -1
  196. package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
  197. package/daemon/dist/domain/bootstrap-orchestrator.js +3 -1
  198. package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
  199. package/daemon/dist/domain/bundle-archive.d.ts.map +1 -1
  200. package/daemon/dist/domain/bundle-archive.js +40 -4
  201. package/daemon/dist/domain/bundle-archive.js.map +1 -1
  202. package/daemon/dist/domain/bundle-behaviour.d.ts.map +1 -1
  203. package/daemon/dist/domain/bundle-behaviour.js +7 -0
  204. package/daemon/dist/domain/bundle-behaviour.js.map +1 -1
  205. package/daemon/dist/domain/bundle-content-routing.d.ts +1 -0
  206. package/daemon/dist/domain/bundle-content-routing.d.ts.map +1 -1
  207. package/daemon/dist/domain/bundle-content-routing.js +3 -1
  208. package/daemon/dist/domain/bundle-content-routing.js.map +1 -1
  209. package/daemon/dist/domain/bundle-source-resolver.d.ts +2 -0
  210. package/daemon/dist/domain/bundle-source-resolver.d.ts.map +1 -1
  211. package/daemon/dist/domain/bundle-source-resolver.js +4 -4
  212. package/daemon/dist/domain/bundle-source-resolver.js.map +1 -1
  213. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +12 -5
  214. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  215. package/daemon/dist/domain/claude-compaction-enforcer.js +47 -18
  216. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  217. package/daemon/dist/domain/claude-mcp.d.ts +10 -0
  218. package/daemon/dist/domain/claude-mcp.d.ts.map +1 -0
  219. package/daemon/dist/domain/claude-mcp.js +19 -0
  220. package/daemon/dist/domain/claude-mcp.js.map +1 -0
  221. package/daemon/dist/domain/claude-owned-settings.d.ts +19 -0
  222. package/daemon/dist/domain/claude-owned-settings.d.ts.map +1 -0
  223. package/daemon/dist/domain/claude-owned-settings.js +160 -0
  224. package/daemon/dist/domain/claude-owned-settings.js.map +1 -0
  225. package/daemon/dist/domain/claude-plugin-channels.d.ts +2 -0
  226. package/daemon/dist/domain/claude-plugin-channels.d.ts.map +1 -0
  227. package/daemon/dist/domain/claude-plugin-channels.js +12 -0
  228. package/daemon/dist/domain/claude-plugin-channels.js.map +1 -0
  229. package/daemon/dist/domain/claude-theme-menu.d.ts +5 -0
  230. package/daemon/dist/domain/claude-theme-menu.d.ts.map +1 -0
  231. package/daemon/dist/domain/claude-theme-menu.js +43 -0
  232. package/daemon/dist/domain/claude-theme-menu.js.map +1 -0
  233. package/daemon/dist/domain/codex-owned-plugin-trust.d.ts.map +1 -1
  234. package/daemon/dist/domain/codex-owned-plugin-trust.js +2 -1
  235. package/daemon/dist/domain/codex-owned-plugin-trust.js.map +1 -1
  236. package/daemon/dist/domain/codex-pane-patterns.d.ts +1 -0
  237. package/daemon/dist/domain/codex-pane-patterns.d.ts.map +1 -1
  238. package/daemon/dist/domain/codex-pane-patterns.js +2 -0
  239. package/daemon/dist/domain/codex-pane-patterns.js.map +1 -1
  240. package/daemon/dist/domain/community-harness-presets.d.ts +2 -1
  241. package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
  242. package/daemon/dist/domain/community-harness-presets.js +3 -2
  243. package/daemon/dist/domain/community-harness-presets.js.map +1 -1
  244. package/daemon/dist/domain/composer-prompts.d.ts +2 -0
  245. package/daemon/dist/domain/composer-prompts.d.ts.map +1 -1
  246. package/daemon/dist/domain/composer-prompts.js +3 -2
  247. package/daemon/dist/domain/composer-prompts.js.map +1 -1
  248. package/daemon/dist/domain/context-monitor.d.ts +2 -2
  249. package/daemon/dist/domain/context-monitor.d.ts.map +1 -1
  250. package/daemon/dist/domain/context-monitor.js +8 -2
  251. package/daemon/dist/domain/context-monitor.js.map +1 -1
  252. package/daemon/dist/domain/desired-claude-activity-hooks.d.ts +25 -0
  253. package/daemon/dist/domain/desired-claude-activity-hooks.d.ts.map +1 -0
  254. package/daemon/dist/domain/desired-claude-activity-hooks.js +86 -0
  255. package/daemon/dist/domain/desired-claude-activity-hooks.js.map +1 -0
  256. package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
  257. package/daemon/dist/domain/draft-aware-delivery.js +14 -4
  258. package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
  259. package/daemon/dist/domain/environment-artifacts.d.ts +49 -0
  260. package/daemon/dist/domain/environment-artifacts.d.ts.map +1 -0
  261. package/daemon/dist/domain/environment-artifacts.js +158 -0
  262. package/daemon/dist/domain/environment-artifacts.js.map +1 -0
  263. package/daemon/dist/domain/environment-lifecycle.d.ts +126 -0
  264. package/daemon/dist/domain/environment-lifecycle.d.ts.map +1 -0
  265. package/daemon/dist/domain/environment-lifecycle.js +474 -0
  266. package/daemon/dist/domain/environment-lifecycle.js.map +1 -0
  267. package/daemon/dist/domain/environment-platform.d.ts +121 -0
  268. package/daemon/dist/domain/environment-platform.d.ts.map +1 -0
  269. package/daemon/dist/domain/environment-platform.js +280 -0
  270. package/daemon/dist/domain/environment-platform.js.map +1 -0
  271. package/daemon/dist/domain/environment-startup.d.ts +43 -0
  272. package/daemon/dist/domain/environment-startup.d.ts.map +1 -0
  273. package/daemon/dist/domain/environment-startup.js +307 -0
  274. package/daemon/dist/domain/environment-startup.js.map +1 -0
  275. package/daemon/dist/domain/expected-conversation.d.ts +20 -0
  276. package/daemon/dist/domain/expected-conversation.d.ts.map +1 -0
  277. package/daemon/dist/domain/expected-conversation.js +101 -0
  278. package/daemon/dist/domain/expected-conversation.js.map +1 -0
  279. package/daemon/dist/domain/gateway/human-readiness.d.ts +2 -1
  280. package/daemon/dist/domain/gateway/human-readiness.d.ts.map +1 -1
  281. package/daemon/dist/domain/gateway/human-readiness.js +6 -0
  282. package/daemon/dist/domain/gateway/human-readiness.js.map +1 -1
  283. package/daemon/dist/domain/gateway/human-registry.d.ts +2 -1
  284. package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
  285. package/daemon/dist/domain/gateway/human-registry.js +9 -7
  286. package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
  287. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts +8 -1
  288. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
  289. package/daemon/dist/domain/gateway/operator-delivery-engine.js +61 -4
  290. package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
  291. package/daemon/dist/domain/gateway/participants.d.ts +26 -0
  292. package/daemon/dist/domain/gateway/participants.d.ts.map +1 -1
  293. package/daemon/dist/domain/gateway/participants.js +15 -0
  294. package/daemon/dist/domain/gateway/participants.js.map +1 -1
  295. package/daemon/dist/domain/gateway/slack/inbound.d.ts +2 -0
  296. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  297. package/daemon/dist/domain/gateway/slack/inbound.js +59 -11
  298. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  299. package/daemon/dist/domain/gateway/slack/message.d.ts +19 -0
  300. package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
  301. package/daemon/dist/domain/gateway/slack/message.js +219 -9
  302. package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
  303. package/daemon/dist/domain/gateway/slack/queue-access.d.ts +15 -0
  304. package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
  305. package/daemon/dist/domain/gateway/slack/queue-access.js +24 -5
  306. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  307. package/daemon/dist/domain/gateway/slack/recovery-budget.d.ts +1 -0
  308. package/daemon/dist/domain/gateway/slack/recovery-budget.d.ts.map +1 -1
  309. package/daemon/dist/domain/gateway/slack/recovery-budget.js +1 -0
  310. package/daemon/dist/domain/gateway/slack/recovery-budget.js.map +1 -1
  311. package/daemon/dist/domain/gateway/slack/settled-asks.d.ts +37 -0
  312. package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -0
  313. package/daemon/dist/domain/gateway/slack/settled-asks.js +276 -0
  314. package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -0
  315. package/daemon/dist/domain/gateway/slack/slack-api.d.ts +32 -0
  316. package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
  317. package/daemon/dist/domain/gateway/slack/slack-api.js +40 -2
  318. package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
  319. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
  320. package/daemon/dist/domain/gateway/slack/slack-delivery.js +9 -4
  321. package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
  322. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +2 -0
  323. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  324. package/daemon/dist/domain/gateway/slack/slack-subsystem.js +35 -6
  325. package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  326. package/daemon/dist/domain/hosts/hosts-registry-writer.d.ts +22 -0
  327. package/daemon/dist/domain/hosts/hosts-registry-writer.d.ts.map +1 -1
  328. package/daemon/dist/domain/hosts/hosts-registry-writer.js +116 -0
  329. package/daemon/dist/domain/hosts/hosts-registry-writer.js.map +1 -1
  330. package/daemon/dist/domain/human-questions.d.ts +3 -1
  331. package/daemon/dist/domain/human-questions.d.ts.map +1 -1
  332. package/daemon/dist/domain/human-questions.js.map +1 -1
  333. package/daemon/dist/domain/kernel-boot-tracker.d.ts +3 -2
  334. package/daemon/dist/domain/kernel-boot-tracker.d.ts.map +1 -1
  335. package/daemon/dist/domain/kernel-boot-tracker.js +2 -1
  336. package/daemon/dist/domain/kernel-boot-tracker.js.map +1 -1
  337. package/daemon/dist/domain/kernel-boot.d.ts +11 -6
  338. package/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
  339. package/daemon/dist/domain/kernel-boot.js +27 -5
  340. package/daemon/dist/domain/kernel-boot.js.map +1 -1
  341. package/daemon/dist/domain/kernel-hook-review.d.ts +18 -0
  342. package/daemon/dist/domain/kernel-hook-review.d.ts.map +1 -0
  343. package/daemon/dist/domain/kernel-hook-review.js +58 -0
  344. package/daemon/dist/domain/kernel-hook-review.js.map +1 -0
  345. package/daemon/dist/domain/managed-block-records.d.ts +54 -0
  346. package/daemon/dist/domain/managed-block-records.d.ts.map +1 -0
  347. package/daemon/dist/domain/managed-block-records.js +130 -0
  348. package/daemon/dist/domain/managed-block-records.js.map +1 -0
  349. package/daemon/dist/domain/managed-blocks.d.ts +14 -0
  350. package/daemon/dist/domain/managed-blocks.d.ts.map +1 -1
  351. package/daemon/dist/domain/managed-blocks.js +24 -4
  352. package/daemon/dist/domain/managed-blocks.js.map +1 -1
  353. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +29 -10
  354. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  355. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +116 -29
  356. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  357. package/daemon/dist/domain/model-divergence/current-generation-record.d.ts.map +1 -1
  358. package/daemon/dist/domain/model-divergence/current-generation-record.js +10 -6
  359. package/daemon/dist/domain/model-divergence/current-generation-record.js.map +1 -1
  360. package/daemon/dist/domain/native-process-lineage.d.ts +5 -1
  361. package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
  362. package/daemon/dist/domain/native-process-lineage.js +91 -6
  363. package/daemon/dist/domain/native-process-lineage.js.map +1 -1
  364. package/daemon/dist/domain/native-resume-probe.d.ts +2 -1
  365. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  366. package/daemon/dist/domain/native-resume-probe.js +4 -2
  367. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  368. package/daemon/dist/domain/node-inventory.d.ts +1 -0
  369. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  370. package/daemon/dist/domain/node-inventory.js +42 -10
  371. package/daemon/dist/domain/node-inventory.js.map +1 -1
  372. package/daemon/dist/domain/node-launcher.d.ts +3 -0
  373. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  374. package/daemon/dist/domain/node-launcher.js +6 -0
  375. package/daemon/dist/domain/node-launcher.js.map +1 -1
  376. package/daemon/dist/domain/outbox-handler.d.ts +17 -0
  377. package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
  378. package/daemon/dist/domain/outbox-handler.js +60 -3
  379. package/daemon/dist/domain/outbox-handler.js.map +1 -1
  380. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +10 -0
  381. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
  382. package/daemon/dist/domain/policies/parked-owner-consumer.js +60 -4
  383. package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
  384. package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
  385. package/daemon/dist/domain/profile-resolver.js +7 -1
  386. package/daemon/dist/domain/profile-resolver.js.map +1 -1
  387. package/daemon/dist/domain/provider/claude-seat-switch.d.ts +9 -3
  388. package/daemon/dist/domain/provider/claude-seat-switch.d.ts.map +1 -1
  389. package/daemon/dist/domain/provider/claude-seat-switch.js +100 -17
  390. package/daemon/dist/domain/provider/claude-seat-switch.js.map +1 -1
  391. package/daemon/dist/domain/provider/provider-service-impl.js +1 -1
  392. package/daemon/dist/domain/provider/provider-service-impl.js.map +1 -1
  393. package/daemon/dist/domain/provider/provider-service.d.ts +32 -2
  394. package/daemon/dist/domain/provider/provider-service.d.ts.map +1 -1
  395. package/daemon/dist/domain/provider/provider-types.d.ts +1 -1
  396. package/daemon/dist/domain/provider/provider-types.d.ts.map +1 -1
  397. package/daemon/dist/domain/queue-recovery.d.ts +1 -1
  398. package/daemon/dist/domain/queue-recovery.d.ts.map +1 -1
  399. package/daemon/dist/domain/queue-recovery.js +6 -2
  400. package/daemon/dist/domain/queue-recovery.js.map +1 -1
  401. package/daemon/dist/domain/queue-repository.d.ts +64 -8
  402. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  403. package/daemon/dist/domain/queue-repository.js +309 -76
  404. package/daemon/dist/domain/queue-repository.js.map +1 -1
  405. package/daemon/dist/domain/queue-stuck-sweep.d.ts +1 -1
  406. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  407. package/daemon/dist/domain/queue-stuck-sweep.js +59 -4
  408. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  409. package/daemon/dist/domain/queue-transition-log.d.ts +2 -0
  410. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  411. package/daemon/dist/domain/queue-transition-log.js +9 -0
  412. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  413. package/daemon/dist/domain/queue-wake-ladder.d.ts +3 -0
  414. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  415. package/daemon/dist/domain/queue-wake-ladder.js +124 -25
  416. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  417. package/daemon/dist/domain/restore-check-service.d.ts +2 -7
  418. package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
  419. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  420. package/daemon/dist/domain/restore-guidance.d.ts +70 -7
  421. package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
  422. package/daemon/dist/domain/restore-guidance.js +181 -18
  423. package/daemon/dist/domain/restore-guidance.js.map +1 -1
  424. package/daemon/dist/domain/restore-orchestrator.d.ts +40 -3
  425. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  426. package/daemon/dist/domain/restore-orchestrator.js +276 -33
  427. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  428. package/daemon/dist/domain/resume-metadata-refresher.d.ts +2 -1
  429. package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
  430. package/daemon/dist/domain/resume-metadata-refresher.js +20 -6
  431. package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
  432. package/daemon/dist/domain/rig-expansion-service.js +1 -1
  433. package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
  434. package/daemon/dist/domain/rig-repository.d.ts +14 -0
  435. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  436. package/daemon/dist/domain/rig-repository.js +57 -1
  437. package/daemon/dist/domain/rig-repository.js.map +1 -1
  438. package/daemon/dist/domain/rig-teardown.d.ts +18 -0
  439. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  440. package/daemon/dist/domain/rig-teardown.js +73 -17
  441. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  442. package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
  443. package/daemon/dist/domain/rigspec-codec.js +6 -0
  444. package/daemon/dist/domain/rigspec-codec.js.map +1 -1
  445. package/daemon/dist/domain/rigspec-exporter.d.ts +8 -0
  446. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  447. package/daemon/dist/domain/rigspec-exporter.js +66 -3
  448. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  449. package/daemon/dist/domain/rigspec-instantiator.d.ts +7 -4
  450. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  451. package/daemon/dist/domain/rigspec-instantiator.js +38 -11
  452. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  453. package/daemon/dist/domain/rigspec-preflight.d.ts +4 -0
  454. package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
  455. package/daemon/dist/domain/rigspec-preflight.js +35 -1
  456. package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
  457. package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  458. package/daemon/dist/domain/rigspec-schema.js +56 -6
  459. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  460. package/daemon/dist/domain/runner-permissions.d.ts +150 -0
  461. package/daemon/dist/domain/runner-permissions.d.ts.map +1 -0
  462. package/daemon/dist/domain/runner-permissions.js +383 -0
  463. package/daemon/dist/domain/runner-permissions.js.map +1 -0
  464. package/daemon/dist/domain/runtime-adapter.d.ts +28 -0
  465. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  466. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  467. package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -1
  468. package/daemon/dist/domain/runtime-switch-materials.js +3 -0
  469. package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
  470. package/daemon/dist/domain/runtime-verifier.d.ts.map +1 -1
  471. package/daemon/dist/domain/runtime-verifier.js +9 -4
  472. package/daemon/dist/domain/runtime-verifier.js.map +1 -1
  473. package/daemon/dist/domain/scope/scope-audit.d.ts +1 -1
  474. package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
  475. package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
  476. package/daemon/dist/domain/scope/types.d.ts +3 -0
  477. package/daemon/dist/domain/scope/types.d.ts.map +1 -1
  478. package/daemon/dist/domain/scope/types.js.map +1 -1
  479. package/daemon/dist/domain/seat-activity-service.d.ts +7 -0
  480. package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
  481. package/daemon/dist/domain/seat-activity-service.js +47 -7
  482. package/daemon/dist/domain/seat-activity-service.js.map +1 -1
  483. package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
  484. package/daemon/dist/domain/seat-attention-reconciler.js +8 -1
  485. package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
  486. package/daemon/dist/domain/seat-delivery-guard.d.ts +22 -4
  487. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  488. package/daemon/dist/domain/seat-delivery-guard.js +80 -11
  489. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  490. package/daemon/dist/domain/seat-effort.d.ts +6 -0
  491. package/daemon/dist/domain/seat-effort.d.ts.map +1 -1
  492. package/daemon/dist/domain/seat-effort.js +0 -2
  493. package/daemon/dist/domain/seat-effort.js.map +1 -1
  494. package/daemon/dist/domain/seat-handover-planner.js +1 -1
  495. package/daemon/dist/domain/seat-handover-planner.js.map +1 -1
  496. package/daemon/dist/domain/seat-handover-service.d.ts +25 -10
  497. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  498. package/daemon/dist/domain/seat-handover-service.js +164 -31
  499. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  500. package/daemon/dist/domain/seat-launch-additions.d.ts +6 -0
  501. package/daemon/dist/domain/seat-launch-additions.d.ts.map +1 -1
  502. package/daemon/dist/domain/seat-launch-additions.js +41 -11
  503. package/daemon/dist/domain/seat-launch-additions.js.map +1 -1
  504. package/daemon/dist/domain/seat-lifecycle-service.d.ts +24 -2
  505. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  506. package/daemon/dist/domain/seat-lifecycle-service.js +65 -2
  507. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  508. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  509. package/daemon/dist/domain/seat-restart-in-place.js +6 -1
  510. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  511. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  512. package/daemon/dist/domain/seat-runtime-switch-service.js +21 -3
  513. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  514. package/daemon/dist/domain/seat-skill-storage.d.ts +8 -6
  515. package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -1
  516. package/daemon/dist/domain/seat-skill-storage.js +27 -7
  517. package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
  518. package/daemon/dist/domain/seat-status-service.d.ts +5 -0
  519. package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
  520. package/daemon/dist/domain/seat-status-service.js +9 -0
  521. package/daemon/dist/domain/seat-status-service.js.map +1 -1
  522. package/daemon/dist/domain/seat-structural-activity-service.d.ts +15 -5
  523. package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
  524. package/daemon/dist/domain/seat-structural-activity-service.js +21 -7
  525. package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
  526. package/daemon/dist/domain/self-attach-service.d.ts +8 -1
  527. package/daemon/dist/domain/self-attach-service.d.ts.map +1 -1
  528. package/daemon/dist/domain/self-attach-service.js +26 -0
  529. package/daemon/dist/domain/self-attach-service.js.map +1 -1
  530. package/daemon/dist/domain/session-transport.d.ts +17 -0
  531. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  532. package/daemon/dist/domain/session-transport.js +247 -31
  533. package/daemon/dist/domain/session-transport.js.map +1 -1
  534. package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
  535. package/daemon/dist/domain/snapshot-capture.js +15 -0
  536. package/daemon/dist/domain/snapshot-capture.js.map +1 -1
  537. package/daemon/dist/domain/spec-library-workflow-scanner.d.ts +2 -0
  538. package/daemon/dist/domain/spec-library-workflow-scanner.d.ts.map +1 -1
  539. package/daemon/dist/domain/spec-library-workflow-scanner.js +5 -1
  540. package/daemon/dist/domain/spec-library-workflow-scanner.js.map +1 -1
  541. package/daemon/dist/domain/startup-orchestrator.d.ts +1 -0
  542. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  543. package/daemon/dist/domain/startup-orchestrator.js +106 -8
  544. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  545. package/daemon/dist/domain/stream-intake.d.ts +51 -0
  546. package/daemon/dist/domain/stream-intake.d.ts.map +1 -0
  547. package/daemon/dist/domain/stream-intake.js +438 -0
  548. package/daemon/dist/domain/stream-intake.js.map +1 -0
  549. package/daemon/dist/domain/successor-session-launcher.d.ts +3 -0
  550. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  551. package/daemon/dist/domain/successor-session-launcher.js +2 -0
  552. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  553. package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
  554. package/daemon/dist/domain/terminal/herdr-adapter.js +4 -3
  555. package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
  556. package/daemon/dist/domain/terminal/herdr-follow-view.d.ts.map +1 -1
  557. package/daemon/dist/domain/terminal/herdr-follow-view.js +22 -4
  558. package/daemon/dist/domain/terminal/herdr-follow-view.js.map +1 -1
  559. package/daemon/dist/domain/terminal/herdr-viewer.d.ts.map +1 -1
  560. package/daemon/dist/domain/terminal/herdr-viewer.js +8 -4
  561. package/daemon/dist/domain/terminal/herdr-viewer.js.map +1 -1
  562. package/daemon/dist/domain/terminal/login-shell.d.ts +10 -0
  563. package/daemon/dist/domain/terminal/login-shell.d.ts.map +1 -0
  564. package/daemon/dist/domain/terminal/login-shell.js +37 -0
  565. package/daemon/dist/domain/terminal/login-shell.js.map +1 -0
  566. package/daemon/dist/domain/terminal/rex-layout.d.ts.map +1 -1
  567. package/daemon/dist/domain/terminal/rex-layout.js +2 -1
  568. package/daemon/dist/domain/terminal/rex-layout.js.map +1 -1
  569. package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts +12 -1
  570. package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts.map +1 -1
  571. package/daemon/dist/domain/terminal/scope-task-terminal-view.js +120 -18
  572. package/daemon/dist/domain/terminal/scope-task-terminal-view.js.map +1 -1
  573. package/daemon/dist/domain/terminal/terminal-following.js +1 -1
  574. package/daemon/dist/domain/terminal/terminal-following.js.map +1 -1
  575. package/daemon/dist/domain/terminal/terminal-provider.d.ts +2 -0
  576. package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
  577. package/daemon/dist/domain/terminal/terminal-service.d.ts +3 -2
  578. package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
  579. package/daemon/dist/domain/terminal/terminal-service.js +18 -27
  580. package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
  581. package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
  582. package/daemon/dist/domain/terminal/tile-attach.js +15 -5
  583. package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
  584. package/daemon/dist/domain/terminal/view-composer.d.ts +6 -3
  585. package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
  586. package/daemon/dist/domain/terminal/view-composer.js +15 -5
  587. package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
  588. package/daemon/dist/domain/tmux-server-selection.d.ts +47 -0
  589. package/daemon/dist/domain/tmux-server-selection.d.ts.map +1 -0
  590. package/daemon/dist/domain/tmux-server-selection.js +220 -0
  591. package/daemon/dist/domain/tmux-server-selection.js.map +1 -0
  592. package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
  593. package/daemon/dist/domain/transcript-store.js +19 -10
  594. package/daemon/dist/domain/transcript-store.js.map +1 -1
  595. package/daemon/dist/domain/types.d.ts +54 -0
  596. package/daemon/dist/domain/types.d.ts.map +1 -1
  597. package/daemon/dist/domain/types.js.map +1 -1
  598. package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
  599. package/daemon/dist/domain/user-settings/settings-browser.js +3 -1
  600. package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
  601. package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
  602. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  603. package/daemon/dist/domain/user-settings/settings-store.js +23 -0
  604. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  605. package/daemon/dist/domain/watchdog-delivery-receipts.d.ts +11 -0
  606. package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -0
  607. package/daemon/dist/domain/watchdog-delivery-receipts.js +134 -0
  608. package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -0
  609. package/daemon/dist/domain/watchdog-delivery.d.ts +7 -1
  610. package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
  611. package/daemon/dist/domain/watchdog-delivery.js +24 -8
  612. package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
  613. package/daemon/dist/domain/watchdog-policy-engine.d.ts +21 -2
  614. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  615. package/daemon/dist/domain/watchdog-policy-engine.js +52 -23
  616. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  617. package/daemon/dist/domain/workflow-projector.js +3 -3
  618. package/daemon/dist/domain/workflow-projector.js.map +1 -1
  619. package/daemon/dist/domain/workflow-runtime.d.ts +1 -1
  620. package/daemon/dist/domain/workflow-runtime.js +3 -3
  621. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  622. package/daemon/dist/domain/working-liveness.d.ts +66 -0
  623. package/daemon/dist/domain/working-liveness.d.ts.map +1 -0
  624. package/daemon/dist/domain/working-liveness.js +94 -0
  625. package/daemon/dist/domain/working-liveness.js.map +1 -0
  626. package/daemon/dist/domain/workspace/frontmatter-validator.js +4 -2
  627. package/daemon/dist/domain/workspace/frontmatter-validator.js.map +1 -1
  628. package/daemon/dist/index.d.ts +4 -0
  629. package/daemon/dist/index.d.ts.map +1 -1
  630. package/daemon/dist/index.js +17 -0
  631. package/daemon/dist/index.js.map +1 -1
  632. package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
  633. package/daemon/dist/lib/pane-envelope.js +9 -3
  634. package/daemon/dist/lib/pane-envelope.js.map +1 -1
  635. package/daemon/dist/middleware/auth-bearer-token.js +2 -2
  636. package/daemon/dist/middleware/auth-bearer-token.js.map +1 -1
  637. package/daemon/dist/routes/activity.d.ts +6 -0
  638. package/daemon/dist/routes/activity.d.ts.map +1 -1
  639. package/daemon/dist/routes/activity.js +317 -22
  640. package/daemon/dist/routes/activity.js.map +1 -1
  641. package/daemon/dist/routes/attention.d.ts.map +1 -1
  642. package/daemon/dist/routes/attention.js +17 -5
  643. package/daemon/dist/routes/attention.js.map +1 -1
  644. package/daemon/dist/routes/bundles.js +3 -1
  645. package/daemon/dist/routes/bundles.js.map +1 -1
  646. package/daemon/dist/routes/compaction.js +4 -2
  647. package/daemon/dist/routes/compaction.js.map +1 -1
  648. package/daemon/dist/routes/environments.d.ts +3 -0
  649. package/daemon/dist/routes/environments.d.ts.map +1 -0
  650. package/daemon/dist/routes/environments.js +104 -0
  651. package/daemon/dist/routes/environments.js.map +1 -0
  652. package/daemon/dist/routes/gateway.d.ts +6 -0
  653. package/daemon/dist/routes/gateway.d.ts.map +1 -1
  654. package/daemon/dist/routes/gateway.js +39 -0
  655. package/daemon/dist/routes/gateway.js.map +1 -1
  656. package/daemon/dist/routes/hosts.d.ts.map +1 -1
  657. package/daemon/dist/routes/hosts.js +106 -8
  658. package/daemon/dist/routes/hosts.js.map +1 -1
  659. package/daemon/dist/routes/mission-control.d.ts.map +1 -1
  660. package/daemon/dist/routes/mission-control.js +6 -1
  661. package/daemon/dist/routes/mission-control.js.map +1 -1
  662. package/daemon/dist/routes/provider.d.ts.map +1 -1
  663. package/daemon/dist/routes/provider.js +53 -7
  664. package/daemon/dist/routes/provider.js.map +1 -1
  665. package/daemon/dist/routes/queue.d.ts.map +1 -1
  666. package/daemon/dist/routes/queue.js +21 -2
  667. package/daemon/dist/routes/queue.js.map +1 -1
  668. package/daemon/dist/routes/restore-check.d.ts.map +1 -1
  669. package/daemon/dist/routes/restore-check.js +5 -19
  670. package/daemon/dist/routes/restore-check.js.map +1 -1
  671. package/daemon/dist/routes/rigs.js +3 -0
  672. package/daemon/dist/routes/rigs.js.map +1 -1
  673. package/daemon/dist/routes/rigspec.d.ts.map +1 -1
  674. package/daemon/dist/routes/rigspec.js +8 -3
  675. package/daemon/dist/routes/rigspec.js.map +1 -1
  676. package/daemon/dist/routes/scope-audit.d.ts.map +1 -1
  677. package/daemon/dist/routes/scope-audit.js +30 -0
  678. package/daemon/dist/routes/scope-audit.js.map +1 -1
  679. package/daemon/dist/routes/seat.d.ts.map +1 -1
  680. package/daemon/dist/routes/seat.js +32 -5
  681. package/daemon/dist/routes/seat.js.map +1 -1
  682. package/daemon/dist/routes/sessions.d.ts.map +1 -1
  683. package/daemon/dist/routes/sessions.js +66 -20
  684. package/daemon/dist/routes/sessions.js.map +1 -1
  685. package/daemon/dist/routes/spec-library.d.ts.map +1 -1
  686. package/daemon/dist/routes/spec-library.js +60 -5
  687. package/daemon/dist/routes/spec-library.js.map +1 -1
  688. package/daemon/dist/routes/startup.js +2 -2
  689. package/daemon/dist/routes/startup.js.map +1 -1
  690. package/daemon/dist/routes/transport.d.ts.map +1 -1
  691. package/daemon/dist/routes/transport.js +31 -5
  692. package/daemon/dist/routes/transport.js.map +1 -1
  693. package/daemon/dist/server.d.ts +7 -0
  694. package/daemon/dist/server.d.ts.map +1 -1
  695. package/daemon/dist/server.js +57 -1
  696. package/daemon/dist/server.js.map +1 -1
  697. package/daemon/dist/startup.d.ts +2 -0
  698. package/daemon/dist/startup.d.ts.map +1 -1
  699. package/daemon/dist/startup.js +90 -37
  700. package/daemon/dist/startup.js.map +1 -1
  701. package/daemon/docs/reference/agent-spec.md +1 -1
  702. package/daemon/docs/reference/agent-startup-guide.md +119 -3
  703. package/daemon/docs/reference/agent-state-taxonomy.md +23 -2
  704. package/daemon/docs/reference/author-contracts.md +9 -9
  705. package/daemon/docs/reference/checked-seat-stop.md +12 -1
  706. package/daemon/docs/reference/community-harness-examples/dsh/README.md +96 -0
  707. package/daemon/docs/reference/community-harness-examples/dsh/dsh.yaml +20 -0
  708. package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +626 -0
  709. package/daemon/docs/reference/community-harness-examples/openshell/README.md +5 -0
  710. package/daemon/docs/reference/community-harness-presets.md +25 -1
  711. package/daemon/docs/reference/daemon-http-clients.md +203 -0
  712. package/daemon/docs/reference/execution-platform-contract.md +1 -1
  713. package/daemon/docs/reference/gateway-participants.md +29 -17
  714. package/daemon/docs/reference/getting-started.md +36 -9
  715. package/daemon/docs/reference/harness-runner-contract.md +235 -26
  716. package/daemon/docs/reference/hosted-members.md +32 -0
  717. package/daemon/docs/reference/instance-layout.md +11 -0
  718. package/daemon/docs/reference/keeping-a-watch.md +22 -0
  719. package/daemon/docs/reference/pi-tool-selection-recovery.md +84 -0
  720. package/daemon/docs/reference/quickstart.md +9 -4
  721. package/daemon/docs/reference/rig-bundle.md +2 -2
  722. package/daemon/docs/reference/rig-spec.md +130 -14
  723. package/daemon/docs/reference/runner-conformance/README.md +77 -0
  724. package/daemon/docs/reference/runner-conformance/check-runner.mjs +818 -0
  725. package/daemon/docs/reference/runner-conformance/fake-acp-agent.mjs +150 -0
  726. package/daemon/docs/reference/sdlc-conventions.md +22 -3
  727. package/daemon/docs/reference/seat-delivery.md +31 -6
  728. package/daemon/docs/reference/slack-app-setup.md +55 -5
  729. package/daemon/docs/reference/terminal-sessions.md +100 -14
  730. package/daemon/docs/reference/tmux-servers.md +166 -0
  731. package/daemon/docs/reference/whats-new.md +294 -132
  732. package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +4 -3
  733. package/daemon/specs/agents/shared/skills/core/openrig-upgrade/scripts/backup-sqlite.mjs +90 -14
  734. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +2 -1
  735. package/daemon/specs/rigs/launch/kernel/agents/queue/worker/guidance/role.md +1 -1
  736. package/dist/acp/connector.d.ts.map +1 -1
  737. package/dist/acp/connector.js +6 -1
  738. package/dist/acp/connector.js.map +1 -1
  739. package/dist/atomic-text-write.d.ts +2 -0
  740. package/dist/atomic-text-write.d.ts.map +1 -1
  741. package/dist/atomic-text-write.js +17 -0
  742. package/dist/atomic-text-write.js.map +1 -1
  743. package/dist/build-info.js +3 -3
  744. package/dist/client.d.ts +3 -0
  745. package/dist/client.d.ts.map +1 -1
  746. package/dist/client.js +28 -0
  747. package/dist/client.js.map +1 -1
  748. package/dist/commands/attach.d.ts +1 -0
  749. package/dist/commands/attach.d.ts.map +1 -1
  750. package/dist/commands/attach.js +8 -2
  751. package/dist/commands/attach.js.map +1 -1
  752. package/dist/commands/broadcast.js +2 -1
  753. package/dist/commands/broadcast.js.map +1 -1
  754. package/dist/commands/compact.d.ts.map +1 -1
  755. package/dist/commands/compact.js +7 -4
  756. package/dist/commands/compact.js.map +1 -1
  757. package/dist/commands/config.d.ts.map +1 -1
  758. package/dist/commands/config.js +9 -3
  759. package/dist/commands/config.js.map +1 -1
  760. package/dist/commands/context.d.ts.map +1 -1
  761. package/dist/commands/context.js +1 -0
  762. package/dist/commands/context.js.map +1 -1
  763. package/dist/commands/daemon.d.ts.map +1 -1
  764. package/dist/commands/daemon.js +7 -1
  765. package/dist/commands/daemon.js.map +1 -1
  766. package/dist/commands/destroy.d.ts.map +1 -1
  767. package/dist/commands/destroy.js +2 -0
  768. package/dist/commands/destroy.js.map +1 -1
  769. package/dist/commands/doctor.d.ts +8 -1
  770. package/dist/commands/doctor.d.ts.map +1 -1
  771. package/dist/commands/doctor.js +126 -10
  772. package/dist/commands/doctor.js.map +1 -1
  773. package/dist/commands/down.d.ts.map +1 -1
  774. package/dist/commands/down.js +10 -0
  775. package/dist/commands/down.js.map +1 -1
  776. package/dist/commands/env.d.ts.map +1 -1
  777. package/dist/commands/env.js +10 -4
  778. package/dist/commands/env.js.map +1 -1
  779. package/dist/commands/environment.d.ts +8 -0
  780. package/dist/commands/environment.d.ts.map +1 -0
  781. package/dist/commands/environment.js +197 -0
  782. package/dist/commands/environment.js.map +1 -0
  783. package/dist/commands/export.d.ts +2 -0
  784. package/dist/commands/export.d.ts.map +1 -1
  785. package/dist/commands/export.js +31 -7
  786. package/dist/commands/export.js.map +1 -1
  787. package/dist/commands/gateway.js +15 -11
  788. package/dist/commands/gateway.js.map +1 -1
  789. package/dist/commands/host.d.ts +13 -6
  790. package/dist/commands/host.d.ts.map +1 -1
  791. package/dist/commands/host.js +112 -15
  792. package/dist/commands/host.js.map +1 -1
  793. package/dist/commands/project-jev.js +1 -1
  794. package/dist/commands/project-jev.js.map +1 -1
  795. package/dist/commands/provider.d.ts.map +1 -1
  796. package/dist/commands/provider.js +12 -5
  797. package/dist/commands/provider.js.map +1 -1
  798. package/dist/commands/ps.d.ts +2 -0
  799. package/dist/commands/ps.d.ts.map +1 -1
  800. package/dist/commands/ps.js +12 -3
  801. package/dist/commands/ps.js.map +1 -1
  802. package/dist/commands/queue.d.ts +1 -0
  803. package/dist/commands/queue.d.ts.map +1 -1
  804. package/dist/commands/queue.js +50 -6
  805. package/dist/commands/queue.js.map +1 -1
  806. package/dist/commands/scope.d.ts.map +1 -1
  807. package/dist/commands/scope.js +36 -2
  808. package/dist/commands/scope.js.map +1 -1
  809. package/dist/commands/seat.d.ts.map +1 -1
  810. package/dist/commands/seat.js +85 -8
  811. package/dist/commands/seat.js.map +1 -1
  812. package/dist/commands/send.d.ts.map +1 -1
  813. package/dist/commands/send.js +46 -16
  814. package/dist/commands/send.js.map +1 -1
  815. package/dist/commands/setup.d.ts.map +1 -1
  816. package/dist/commands/setup.js +18 -0
  817. package/dist/commands/setup.js.map +1 -1
  818. package/dist/commands/slack.d.ts.map +1 -1
  819. package/dist/commands/slack.js +5 -0
  820. package/dist/commands/slack.js.map +1 -1
  821. package/dist/commands/specs.d.ts +1 -1
  822. package/dist/commands/specs.d.ts.map +1 -1
  823. package/dist/commands/specs.js +44 -10
  824. package/dist/commands/specs.js.map +1 -1
  825. package/dist/commands/stream.d.ts.map +1 -1
  826. package/dist/commands/stream.js +6 -1
  827. package/dist/commands/stream.js.map +1 -1
  828. package/dist/commands/terminal.d.ts +2 -0
  829. package/dist/commands/terminal.d.ts.map +1 -1
  830. package/dist/commands/terminal.js +31 -2
  831. package/dist/commands/terminal.js.map +1 -1
  832. package/dist/commands/topology-default-agent.js +1 -1
  833. package/dist/commands/topology-default-agent.js.map +1 -1
  834. package/dist/commands/tui.d.ts +3 -2
  835. package/dist/commands/tui.d.ts.map +1 -1
  836. package/dist/commands/tui.js.map +1 -1
  837. package/dist/commands/walk.d.ts.map +1 -1
  838. package/dist/commands/walk.js +27 -10
  839. package/dist/commands/walk.js.map +1 -1
  840. package/dist/commands/workspace.d.ts.map +1 -1
  841. package/dist/commands/workspace.js +8 -1
  842. package/dist/commands/workspace.js.map +1 -1
  843. package/dist/config-store.d.ts +9 -1
  844. package/dist/config-store.d.ts.map +1 -1
  845. package/dist/config-store.js +33 -2
  846. package/dist/config-store.js.map +1 -1
  847. package/dist/cross-host-target.d.ts.map +1 -1
  848. package/dist/cross-host-target.js +3 -1
  849. package/dist/cross-host-target.js.map +1 -1
  850. package/dist/daemon-lifecycle.d.ts +6 -0
  851. package/dist/daemon-lifecycle.d.ts.map +1 -1
  852. package/dist/daemon-lifecycle.js +66 -4
  853. package/dist/daemon-lifecycle.js.map +1 -1
  854. package/dist/daemon-reachability.d.ts +2 -1
  855. package/dist/daemon-reachability.d.ts.map +1 -1
  856. package/dist/daemon-reachability.js +3 -2
  857. package/dist/daemon-reachability.js.map +1 -1
  858. package/dist/destroy-helpers.d.ts +3 -2
  859. package/dist/destroy-helpers.d.ts.map +1 -1
  860. package/dist/destroy-helpers.js +6 -3
  861. package/dist/destroy-helpers.js.map +1 -1
  862. package/dist/host-bindings.js +1 -1
  863. package/dist/host-bindings.js.map +1 -1
  864. package/dist/host-registry.d.ts +22 -0
  865. package/dist/host-registry.d.ts.map +1 -1
  866. package/dist/host-registry.js +121 -0
  867. package/dist/host-registry.js.map +1 -1
  868. package/dist/index.d.ts +2 -0
  869. package/dist/index.d.ts.map +1 -1
  870. package/dist/index.js +2 -0
  871. package/dist/index.js.map +1 -1
  872. package/dist/lazy-program.d.ts.map +1 -1
  873. package/dist/lazy-program.js +1 -0
  874. package/dist/lazy-program.js.map +1 -1
  875. package/dist/lib/scope/progress-edit.d.ts.map +1 -1
  876. package/dist/lib/scope/progress-edit.js +37 -7
  877. package/dist/lib/scope/progress-edit.js.map +1 -1
  878. package/dist/lib/scope/scope-audit.d.ts +1 -1
  879. package/dist/lib/scope/scope-audit.d.ts.map +1 -1
  880. package/dist/lib/scope/scope-audit.js.map +1 -1
  881. package/dist/lib/scope/scope-fs.d.ts +3 -0
  882. package/dist/lib/scope/scope-fs.d.ts.map +1 -1
  883. package/dist/lib/scope/scope-fs.js +39 -53
  884. package/dist/lib/scope/scope-fs.js.map +1 -1
  885. package/dist/lib/scope/types.d.ts +3 -0
  886. package/dist/lib/scope/types.d.ts.map +1 -1
  887. package/dist/lib/scope/types.js.map +1 -1
  888. package/dist/mcp-server.d.ts.map +1 -1
  889. package/dist/mcp-server.js +89 -18
  890. package/dist/mcp-server.js.map +1 -1
  891. package/dist/openrig-compat.d.ts +1 -1
  892. package/dist/openrig-compat.d.ts.map +1 -1
  893. package/dist/openrig-compat.js +2 -2
  894. package/dist/openrig-compat.js.map +1 -1
  895. package/dist/seat-launch-additions-lines.d.ts +2 -0
  896. package/dist/seat-launch-additions-lines.d.ts.map +1 -1
  897. package/dist/seat-launch-additions-lines.js +1 -0
  898. package/dist/seat-launch-additions-lines.js.map +1 -1
  899. package/dist/shared-tui.d.ts +4 -2
  900. package/dist/shared-tui.d.ts.map +1 -1
  901. package/dist/shared-tui.js +4 -11
  902. package/dist/shared-tui.js.map +1 -1
  903. package/dist/terminal-window.d.ts.map +1 -1
  904. package/dist/terminal-window.js +34 -29
  905. package/dist/terminal-window.js.map +1 -1
  906. package/dist/tmux-attachment.d.ts +17 -0
  907. package/dist/tmux-attachment.d.ts.map +1 -0
  908. package/dist/tmux-attachment.js +89 -0
  909. package/dist/tmux-attachment.js.map +1 -0
  910. package/package.json +2 -2
  911. package/tui/dist/attention/attention-model.d.ts +3 -2
  912. package/tui/dist/attention/attention-model.d.ts.map +1 -1
  913. package/tui/dist/attention/attention-model.js +7 -4
  914. package/tui/dist/attention/attention-model.js.map +1 -1
  915. package/tui/dist/daemon-client.d.ts +4 -4
  916. package/tui/dist/daemon-client.d.ts.map +1 -1
  917. package/tui/dist/daemon-client.js +6 -5
  918. package/tui/dist/daemon-client.js.map +1 -1
  919. package/tui/dist/hydrate.d.ts.map +1 -1
  920. package/tui/dist/hydrate.js +16 -5
  921. package/tui/dist/hydrate.js.map +1 -1
  922. package/tui/dist/pulse/pulse-model.d.ts +1 -1
  923. package/tui/dist/pulse/pulse-model.d.ts.map +1 -1
  924. package/tui/dist/pulse/pulse-model.js +6 -17
  925. package/tui/dist/pulse/pulse-model.js.map +1 -1
  926. package/tui/dist/render.d.ts.map +1 -1
  927. package/tui/dist/render.js +8 -2
  928. package/tui/dist/render.js.map +1 -1
  929. package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
  930. package/tui/dist/terminals/terminal-model.js +2 -1
  931. package/tui/dist/terminals/terminal-model.js.map +1 -1
  932. package/tui/dist/theme.d.ts.map +1 -1
  933. package/tui/dist/theme.js +7 -2
  934. package/tui/dist/theme.js.map +1 -1
  935. package/tui/dist/time.d.ts +2 -0
  936. package/tui/dist/time.d.ts.map +1 -1
  937. package/tui/dist/time.js +5 -0
  938. package/tui/dist/time.js.map +1 -1
  939. package/tui/dist/types.d.ts +2 -3
  940. package/tui/dist/types.d.ts.map +1 -1
  941. package/ui/dist/assets/index-BFOs3ejL.css +32 -0
  942. package/ui/dist/assets/{index-CMBgYrS7.js → index-CdkFwtld.js} +92 -92
  943. package/ui/dist/index.html +2 -2
  944. package/ui/dist/assets/index-DNU3XZr_.css +0 -32
@@ -1,19 +1,22 @@
1
- # Harness and runner contract (DRAFT for 0.7.6)
1
+ # Harness and runner contract (DRAFT, published with 0.7.6)
2
2
 
3
3
  > **Status.** This is a draft for contributors.
4
- > - **In the 0.7.6 candidate, not yet released:** the `runner` field and OpenRig's side of declaration, identity and activity
4
+ > - **Released in 0.7.6:** the `runner` field and OpenRig's side of declaration, identity and activity
5
5
  > (sections 2-4).
6
- > - **Proposed runner-author behavior:** the input, cancellation and permission recipe in sections 5-7, and the
7
- > runner-side shutdown obligation in section 9. A dsh port implementing this recipe is not qualified.
6
+ > - **Released in 0.7.8:** seat activity grants (section 4), and OpenRig's side of the answered permission path
7
+ > (section 7).
8
+ > - **Runner-author behavior, not yet qualified:** the input, cancellation and permission recipe in sections 5-7, and
9
+ > the runner-side shutdown obligation in section 9. A dsh port implementing this recipe is not qualified.
8
10
  > - **Existing interfaces with author obligations:** launch-result identity, exact resume, first input and model
9
11
  > handoff. These interfaces do not establish that a particular runner implements them correctly.
10
12
  > - **Unchanged:** plain community presets and the built-in runtimes (Claude Code, Codex, Pi, OMP, terminal).
11
13
  >
12
- > No harness has been run end to end under this contract yet. The first candidate is dsh over ACP.
14
+ > No harness has been run end to end under this contract yet, and the native verdict is pending. The first candidate
15
+ > is dsh over ACP.
13
16
  >
14
- > Candidate scope and pinned references are in the [joined author guide](author-contracts.md). The
15
- > [community presets reference](https://github.com/mvschwarz/openrig/blob/b6bd4633fbd94634a2b4bdef2574a6880f97be63/docs/reference/community-harness-presets.md)
16
- > describes the implemented fields at that base; this chapter also labels proposed author behavior.
17
+ > Release status and pinned references are in the [joined author guide](author-contracts.md). The
18
+ > [community presets reference](community-harness-presets.md) describes the implemented fields, including the runner
19
+ > preset's exception for approvals; this chapter also labels runner-author behavior that isn't qualified.
17
20
 
18
21
  This chapter covers **which agent runs in a seat and how OpenRig talks to it**. *Where* that agent runs (a host, a
19
22
  sandbox, another machine) is the [execution platform chapter](execution-platform-contract.md). The two are separate on purpose:
@@ -32,7 +35,7 @@ the same harness can run in many places, and one place can host many harnesses.
32
35
  honestly.** A runner that guesses is worse than a quiet screen read as unknown.
33
36
 
34
37
  **Vocabulary.** "Preset", "runner preset", `launch_result`, `resume`, `first_input` and `passes_model` are existing
35
- terms at the candidate base. Broader names you may see in design discussion, such as *HarnessSpec*, are **proposals**, not file
38
+ terms in 0.7.6. Broader names you may see in design discussion, such as *HarnessSpec*, are **proposals**, not file
36
39
  formats or loaders that exist.
37
40
 
38
41
  ## 2. Declare it: what the preset says, fixed at launch
@@ -43,11 +46,11 @@ format: 1
43
46
  name: dsh
44
47
  command: dsh-seat # your runner; it starts the agent itself
45
48
  maintainer: <you>
46
- runner: true # in the 0.7.6 candidate
49
+ runner: true # since 0.7.6
47
50
  launch_result: true # required with runner
48
51
  resume: true # only after you've checked a real reopen and a refused missing one
49
52
  limits:
50
- - permission requests are refused (first version)
53
+ - permission requests go to a person through OpenRig (section 7), and are permitted when no one can be asked
51
54
  - a prompt whose whole text is /abort can't be sent
52
55
  - fork unsupported
53
56
  ```
@@ -104,6 +107,8 @@ Post each event to `POST <base>/api/activity/hooks` with `Authorization: Bearer
104
107
  |---|---|---|
105
108
  | You gave the agent the prompt for a submitted message | `UserPromptSubmit` / `accepted`, `turnId` = your prompt number | working |
106
109
  | The agent is working (message chunks, tool calls) | `active` / `agent_message`; `PreToolUse` / `<tool kind>` | working |
110
+ | Optional working beat, from 0.7.9: the turn is still outstanding and the agent alive, with nothing new to report (a long tool or model call) | `active` / `liveness`, with `turnId`, `sequence` and `livenessSeconds` | working while beats keep coming |
111
+ | From 0.7.9: you delivered an answer or permit to a request OpenRig had shown as needing input, and the agent continues the same turn (section 7) | `active` / `permission_resolved`, with `turnId` and `askId` | working |
107
112
  | You refused a permission request (section 7) | `Notification` / `permission_prompt` | needs input |
108
113
  | The turn ended | `Stop` / its stop reason (`end_turn`, `cancelled`, `max_tokens`, `refusal`) | idle. While you hold attention (section 7), don't post it: OpenRig reads any non-exit `Stop` as idle and clears needs input |
109
114
  | Optional idle heartbeat | `Stop` / `idle_heartbeat`, with `livenessSeconds` | idle while beats keep coming |
@@ -114,6 +119,41 @@ Post each event to `POST <base>/api/activity/hooks` with `Authorization: Bearer
114
119
  idle `Stop`, the turn's end as well as each beat. OpenRig stops reading the seat idle after 2 × `livenessSeconds` without
115
120
  a newer idle report. Without it, an idle report holds until your next post, even if your runner has died. Never send a
116
121
  non-exit `Stop` or a beat while holding permission attention.
122
+ - **Working evidence lasts 15 seconds.** A working post (`UserPromptSubmit`, `active`, `PreToolUse`) decides the seat's
123
+ activity for 15 s. After that the seat reads from its other evidence: the screen can still show work, but it never
124
+ reads a runner seat idle, so with nothing else the seat reads unknown.
125
+ - **The working beat (from 0.7.9)** keeps a long, quiet turn reading working. It says only that this turn's prompt is
126
+ outstanding and the agent process you started is alive. It isn't progress.
127
+ - **When to beat:** only while a prompt is outstanding and the agent is alive, more often than every
128
+ `livenessSeconds` ÷ 2.
129
+ - **When to stop:** stop at once on the turn's `Stop`, on a permission request that needs a person, or on the agent's
130
+ exit, and post that boundary first.
131
+ - **`livenessSeconds`** is how long one beat counts as working. OpenRig clamps it to 5-60 s, and uses 30 s when a beat
132
+ has none. After that the beat stops counting, and the seat reads from its other evidence, as a working post's does.
133
+ - **A beat counts only when all of these hold:**
134
+ - it carries `generation`, equal to the seat's live occupant generation, and so did the `UserPromptSubmit` /
135
+ `accepted` post that opened its turn;
136
+ - its `turnId` is your latest `UserPromptSubmit` / `accepted` turn, and you haven't posted that turn's `Stop` or an
137
+ exit;
138
+ - it carries a `sequence`, greater than every earlier post's in the same generation that OpenRig counted, beats
139
+ included;
140
+ - the seat has no attention outstanding, such as a permission request waiting on a person.
141
+
142
+ So number every post with one `sequence` that rises across your whole runner process, beats included. OpenRig
143
+ orders your posts by `occurredAt`, then `sequence`. A post older than one OpenRig already counted changes nothing:
144
+ a late `Stop` for an earlier turn doesn't end the current one, and an older beat doesn't count. A post without a
145
+ valid `occurredAt` is dated when it arrives, by OpenRig's clock, so it can read older than it is when your clock
146
+ runs ahead. Give every post its `occurredAt`.
147
+ - **After you deliver an answer or permit** to a request OpenRig had shown as needing input (section 7; it created an
148
+ ask, and a permit at submit opens none), post `active` / `permission_resolved` with the turn's `turnId` and the
149
+ `askId`, before your next beat. That clears the seat's attention. So does any other working or idle post OpenRig
150
+ counts, and an operator's `rig seat clear-attention`. OpenRig doesn't match `permission_resolved` to its `askId`.
151
+ Beats are ignored until attention clears.
152
+ - **A beat that fails any of these is ignored.** The seat reads as it would without it. A beat never starts or extends
153
+ a turn, never clears attention, and never stands in for a `Stop`.
154
+ - **OpenRig keeps what it needs to judge beats in memory.** After a daemon restart, a beat already counted keeps its
155
+ lifetime, but new beats are ignored until your next accepted prompt, and the seat reads as it would without them.
156
+ - **A runner that sends no beats** behaves as before.
117
157
  - **Exit:** post `Stop` / `<preset name>_exited` only when you observe the agent's process exit.
118
158
 
119
159
  - **The screen still counts,** but only as evidence of work. On its own it never reads a runner seat idle.
@@ -122,11 +162,31 @@ Post each event to `POST <base>/api/activity/hooks` with `Authorization: Bearer
122
162
  - **The generation attributes a post; it isn't authentication.**
123
163
  - A post carrying an earlier occupant's generation never counts for the live seat.
124
164
  - The hook token is one local token, so any process holding it can post for any seat.
165
+ - **A seat activity grant** is what a runner in another environment, such as a sandbox guest, receives instead of the
166
+ local token. It arrives in the same `OPENRIG_ACTIVITY_HOOK_TOKEN`, with an `OPENRIG_URL` the guest can reach, and it
167
+ speaks only for its own seat and launch generation:
168
+ - with a grant, the generation is authenticated, and you may leave out `nodeId` and `generation`;
169
+ - a post for another seat is refused with `403 activity_grant_wrong_seat`;
170
+ - a post claiming another generation, or from an occupant that has since been replaced, is refused with
171
+ `409 activity_grant_stale`;
172
+ - a post before the launch has registered its occupant is refused with `409 activity_grant_pending`;
173
+ - a post with a revoked grant is refused with `401 activity_grant_revoked`, including a post whose grant was revoked
174
+ while its body was arriving.
175
+
176
+ A refused post records nothing, so the seat's activity stays as it was, or unknown.
177
+
178
+ **The guest's boundary is its listener, not the grant.** A guest reaches OpenRig only through a guest-only listener that
179
+ serves this route and section 7's three permission-request routes, and accepts only a grant. It must never reach the
180
+ daemon's main port. The grant scopes activity posts and permission requests, and the main port's other routes don't
181
+ check it.
182
+ - The listener is off by default. Turn it on with `OPENRIG_GUEST_ACTIVITY_PORT`, which must differ from the daemon's
183
+ main port or the daemon refuses to start.
184
+ - It binds `OPENRIG_GUEST_ACTIVITY_HOST`, default `127.0.0.1`: set it to an address the guest can reach.
125
185
 
126
186
  ## 5. Input: one submitted message is one prompt
127
187
 
128
- Sections 5-7 specify the proposed first dsh/ACP runner recipe. They do not change permission or input handling in
129
- existing built-in runtimes or require every possible runner protocol to use ACP.
188
+ Sections 5-7 specify the first dsh/ACP runner recipe; no runner has been qualified against it yet. They do not change
189
+ permission or input handling in existing built-in runtimes or require every possible runner protocol to use ACP.
130
190
 
131
191
  - **Set up the pane:** put your TTY in raw mode and turn on bracketed paste (`\e[?2004h`).
132
192
  - **What arrives:** `rig send` and queue reminders paste the whole message, then press Enter. Everything up to that Enter
@@ -146,11 +206,15 @@ existing built-in runtimes or require every possible runner protocol to use ACP.
146
206
 
147
207
  - **On `/abort` or Ctrl-C:** send the agent's cancel (for ACP, the `session/cancel` notification, which has no reply),
148
208
  and record when you sent it.
209
+ - A person cancels by typing `/abort` in the seat's pane. A `/abort` sent with `rig send` arrives inside a From/To
210
+ envelope, so it's an ordinary prompt.
149
211
  - **Report "cancelled" only when the agent says so:** for ACP, when `session/prompt` returns `stopReason: "cancelled"`.
150
212
  Then post `Stop` / `cancelled`.
151
213
  - **Whether the provider stopped work or spend is unknown.** Don't claim it.
152
214
 
153
- ## 7. Permissions: refuse every request (first version)
215
+ ## 7. Permissions: a person answers, and the default is permit
216
+
217
+ ### The first version: refuse every request (history; still what `--deny` does)
154
218
 
155
219
  - **Refuse at once:** answer every permission request immediately with a refusal (for ACP,
156
220
  `{"outcome": {"outcome": "cancelled"}}`).
@@ -160,19 +224,155 @@ existing built-in runtimes or require every possible runner protocol to use ACP.
160
224
  - **It clears** when your next prompt is accepted, or when an operator clears it
161
225
  (`rig seat clear-attention <session> --reason "…"`).
162
226
  - **Never leave a request pending.**
163
- - **Not in the first version:**
164
- - answering from the seat's permission setting;
165
- - answers typed into the pane;
166
- - routing an approval to another seat.
167
- - So a job that needs an edit or a command approved can't finish under this version. Agents that can run without
168
- asking are the best first case.
227
+ - **What it couldn't do:**
228
+ - answer from the seat's permission setting;
229
+ - take answers typed into the pane;
230
+ - route an approval to another seat.
231
+
232
+ So a job that needed an edit or a command approved couldn't finish. The answered path below, added in 0.7.8,
233
+ replaces this as the default.
169
234
  - **Unknown requests from the agent:** answer with JSON-RPC `-32601` and carry on.
170
235
 
236
+ ### The answered path (0.7.8)
237
+
238
+ **Only requests the agent actually makes reach anyone.** The harness's own permission mode decides that, and a harness
239
+ that runs without asking gains no approval step. Ordinary conversation and `rig send` are unchanged.
240
+
241
+ **What happens to a request, in the person's terms:**
242
+
243
+ | Situation | What happens |
244
+ |---|---|
245
+ | **There's a default person** (chosen with `rig gateway default`, or the only registered person), and no override | They get an ordinary ask in the Feed and on Slack. No setup is needed. |
246
+ | **The seat's operator chose someone** (`rig seat set-permissions-to <seat> --to <person> --reason "…"`) | That person gets the ask instead. |
247
+ | **No one can be asked** | **Permitted at once**, with the agent's own allow option. No ask is opened, and OpenRig records the permit (below). That covers: no registered person; several and none the default; the chosen person no longer registered; the people unreadable; or options a person can't be shown (bad ids, or not 2-4). The agent's `allow_once` is used, else its `allow_always`. If the agent offers only `allow_always`, the harness then remembers a permission nobody chose. |
248
+ | **The seat's operator opted in to refusal** (`rig seat set-permissions-to <seat> --deny --reason "…"`) | Refused at once and held as needs input, as in the first version. |
249
+
250
+ **What the ask shows:**
251
+ - the seat and the conversation;
252
+ - the tool call, as the agent described it;
253
+ - why this person was asked;
254
+ - every option the agent offered, each with its native meaning. `allow_always` means the agent's harness remembers
255
+ the choice and allows similar requests without asking. OpenRig doesn't record or revoke that.
256
+
257
+ **How a person answers, and what the agent gets:**
258
+
259
+ | The person… | The agent gets |
260
+ |---|---|
261
+ | clicks an option: the asked person, any other registered person, or the primary user in the TUI | that option |
262
+ | replies with just a yes ("yes", "ok", "allow", "go ahead" …) | the agent's allow (`allow_once`, else `allow_always`) |
263
+ | replies with just a no ("no", "deny", "reject", "stop" …), or denies it in the Feed | the agent's reject (`reject_once`, else `reject_always`), or, with no reject option, cancelled. A person's no is never a grant |
264
+ | routes or hands it to another person | the ask waits for that person, who gets the same options; their answer counts as if they'd been asked. The handoff itself never permits |
265
+ | routes or hands it to an agent seat | that seat gets no options. The request waits until that row is closed, by the seat or a person. Closed as done without a choice (including a drop), or as failed, is no answer, so it's permitted. Closed as denied (the Feed's deny, `--closure-reason denied`, or the state `denied`) is a no. A row set to the state `canceled` cancels the request, and a further handoff is followed; a person it reaches gets the same options. Or the request waits until the agent's turn ends |
266
+ | closes it without choosing: drop, approve, or other typed words | no answer, so the default applies: **permitted** with the agent's allow, and OpenRig records the permit (below) |
267
+ | doesn't answer | the request **stays pending and visible** (the seat reads needs input) until the agent's turn ends. It's never timed out into a grant. |
268
+
269
+ - **An answer reaches only the live request it was asked for,** once. A request from an earlier occupant reads
270
+ `stale`, and one withdrawn at the turn's end reads `withdrawn`. Neither can take a later answer.
271
+ - **Text typed into the runner's pane, an agent's own text, and `rig send` are never an answer.** While a request waits
272
+ on a person, the seat reads needs input, and sends are normally refused. A send that does get through reaches the
273
+ agent as a prompt.
274
+ - **From 0.7.9, each permit OpenRig decides by default is recorded,** once, as a stream item from the seat. That covers
275
+ no one to ask, and an ask closed without a choice (the row passed to an agent seat included). The record names:
276
+ - the tool call;
277
+ - why no person answered, including, for a closed ask, who closed which row and how;
278
+ - the option the agent got, with its kind. An `allow_always` option is marked as remembered by the agent's harness;
279
+ - the conversation and request, or the ask.
280
+
281
+ For an ask opened before 0.7.9, the record may omit the option kind and whether the harness remembers it.
282
+
283
+ Read the records with `rig stream list --tag runner-permission-permit`, or `--source <seat>`. A record wakes no one,
284
+ and one that can't be written doesn't change the permit.
285
+
286
+ **The runner's protocol:**
287
+ 1. **Submit** the agent's live request to `POST <base>/api/activity/permission-requests`, with the same token or seat
288
+ grant as section 4:
289
+
290
+ ```json
291
+ {"sessionName": "dev-builder@my-rig", "nodeId": "<node id>", "generation": "<OPENRIG_OCCUPANT_GENERATION>",
292
+ "nativeRef": "<the conversation>", "turnId": "7", "requestId": "<the agent's JSON-RPC id>",
293
+ "toolCall": {"title": "Edit src/app.ts", "kind": "edit"},
294
+ "options": [{"optionId": "allow", "name": "Allow", "kind": "allow_once"},
295
+ {"optionId": "reject", "name": "Reject", "kind": "reject_once"}],
296
+ "occurredAt": "2026-10-30T12:00:00Z"}
297
+ ```
298
+
299
+ - **A person is asked:** the reply is `{"ok": true, "askId": "…", "created": true}`. OpenRig records the seat's
300
+ `permission_prompt`, so it reads needs input. Don't post it yourself.
301
+ - **No one can be asked:** the reply is `{"ok": true, "state": "permitted", "optionId": "…", "reason": "…"}`.
302
+ Deliver that option.
303
+ - **`requestId` and `turnId`** may be strings or numbers. Pass the agent's id unchanged: a number is read as its
304
+ decimal string, so `7` and `"7"` are the same request.
305
+ - **Resubmitting** the same generation, conversation and request id returns the same `askId`.
306
+ 2. **Read** the answer with `GET <base>/api/activity/permission-requests/<askId>?waitSeconds=25` (25 at most), and read
307
+ again until the agent's turn ends.
308
+ - **The `state`** is `pending` (read again, don't cancel), `answered` or `permitted` (each with `optionId`),
309
+ `refused` (with `reason`: `said_no` when the person said no and the agent offered no reject option, or
310
+ `no_allow_offered` when it was closed without a choice and the agent offered no allow option), `withdrawn` or
311
+ `stale`.
312
+ - **From 0.7.9, `said`,** with `permitted` or `refused` (`no_allow_offered`), is the person's own words, when they
313
+ answered in words that were neither a choice nor a plain yes or no. It never changes the outcome.
314
+ - **A seat grant reads and withdraws only its own launch's requests.** Once its occupant is replaced, the grant is
315
+ refused (`409 activity_grant_stale`), even during a read's wait.
316
+ 3. **Deliver** `{"outcome": {"outcome": "selected", "optionId": "<optionId>"}}` to the agent once, and only while that
317
+ request is still its live one. For `refused`, `withdrawn` or `stale`, answer `cancelled` and hold no attention: no
318
+ person is still waiting. A refusal of the read itself follows the refusals below. From 0.7.9, when the read carries
319
+ `said`, queue those words for the agent as an ordinary prompt: they reach it after the current turn, behind any prompt
320
+ already waiting. They're never the answer. A runner that drops them still keeps this contract.
321
+ 4. **Withdraw** when the turn is cancelled or ends, or the agent exits:
322
+ `POST <base>/api/activity/permission-requests/<askId>/withdraw` with
323
+ `{"reason": "turn_cancelled" | "turn_ended" | "exited"}`.
324
+ - A later answer isn't sent.
325
+ - A relaunch makes the earlier occupant's open requests stale on its own.
326
+
327
+ **Refusals, at submit or while reading.** One rule covers both. Cancel only a request that certainly isn't the current
328
+ occupant's live one, and hold no attention. Anything that may still be a live request permits, as when OpenRig can't
329
+ answer. Only the seat's opt-in refuses and holds attention.
330
+
331
+ | Code | Status | Meaning | The runner |
332
+ |---|---|---|---|
333
+ | `denied_by_seat` | 409 | The seat's operator opted in to refusal (`--deny`). | refuses and holds attention |
334
+ | `options_unsupported` | 422 | No one can be asked, and the agent offered no allow option to permit. | refuses and holds attention |
335
+ | `stale_generation` | 409 | With the activity token: the post isn't from the seat's current occupant. | answers `cancelled` |
336
+ | `activity_grant_wrong_seat` | 403 | The grant speaks for another seat. | answers `cancelled` |
337
+ | `activity_grant_stale` | 409 | The grant's launch generation no longer occupies the seat. | answers `cancelled` |
338
+ | `activity_grant_revoked` | 401 | The grant was revoked while its launch generation still occupies the seat, or before it has registered, so this may still be the live request; a replaced occupant's grant reads `activity_grant_stale` instead, even once revoked. | permits |
339
+ | `activity_grant_pending` | 409 | The grant's launch hasn't registered its occupant yet. | permits |
340
+ | `duplicate_request` | 409 | This request id was already submitted in another turn; an agent may reuse an id. | permits |
341
+
342
+ **When the runner can't get an answer from OpenRig,** nobody can be asked, so it permits with the agent's own allow
343
+ option: `allow_once` when offered, else `allow_always`. Prefer `allow_once`, so the harness doesn't remember a
344
+ permission nobody chose. Such a permit is the runner's own, so OpenRig has no record of it: the runner prints it in
345
+ its pane. That covers:
346
+ - an OpenRig without this path, which answers 404;
347
+ - an OpenRig the runner can't reach, at submit or while reading (a runner may retry a read that got no answer a few
348
+ times first);
349
+ - a refusal the table marks "permits", and any status or code this section doesn't list.
350
+
351
+ **Limits of this path:**
352
+ - **The answer owner is a registered person.** Choosing a seat (another agent) to answer is a later change.
353
+ - **A colleague's answer is followed on this host.** If the ask is handed to another host, the request waits, shown as
354
+ needs input, until the agent's turn ends.
355
+ - **An override or `--deny` is set with the command above, never in a rig spec.** A spec field is a possible later
356
+ change.
357
+ - **A person's answer is recorded on the ask itself,** and a default permit as the stream item above. That item lasts as
358
+ long as stream retention keeps it. A permit the runner decides on its own is in its pane only.
359
+
171
360
  ## 8. Resume: exactly the same conversation, or say honestly that you couldn't
172
361
 
173
362
  - On a resume, OpenRig passes the conversation to reopen in `OPENRIG_RESUME_REF`. Use the method your agent
174
- advertises: ACP's `session/load` (capability `loadSession`), or your agent's own reopen method, named with its
363
+ advertises: ACP's `session/load` (capability `loadSession`), ACP's `session/resume` (capability
364
+ `sessionCapabilities.resume`, which dsh `0.2.1-rc.2` uses), or your agent's own reopen method, named with its
175
365
  capability and pinned version in your `limits`.
366
+ - **Telling "missing" from "won't reopen":** an agent may answer one error for both. dsh `0.2.1-rc.2` answers `-32602`
367
+ for a conversation it doesn't have and for one already active elsewhere. So don't read an error's code or text as
368
+ missing unless the agent defines it that way, as ACP's not-found `-32002` is.
369
+ - **Report missing only on the agent's own not-found,** and leave anything else unconfirmed.
370
+ - **When the agent advertises `sessionCapabilities.list`,** its `session/list` can show that a conversation exists:
371
+ one it lists but won't reopen is unconfirmed, even on a not-found. Follow `nextCursor` (an opaque string, possibly
372
+ empty), and treat a page you can't read as deciding nothing.
373
+ - **A list doesn't show that a conversation is gone,** unless your agent guarantees it lists every conversation. An
374
+ agent may leave out one that another running process holds unsaved; dsh `0.2.1-rc.2` can. So still try the reopen
375
+ for a conversation the list doesn't name.
176
376
 
177
377
  | What happened | Write in the launch record | What OpenRig does |
178
378
  |---|---|---|
@@ -203,7 +403,9 @@ existing built-in runtimes or require every possible runner protocol to use ACP.
203
403
  that `--verify` recognises it.
204
404
  - **A turn ending isn't the work being done.** Task completion is whatever the work's own record says: a queue task
205
405
  marked done, or an artifact written.
206
- - **Your own tests** should run against a fake agent that covers each section above.
406
+ - **Your own tests** should run against a fake agent that covers each section above. The
407
+ [runner conformance check](runner-conformance/README.md) does that for you: point it at your runner, and it reports
408
+ which promises your runner keeps.
207
409
  - **The useful real check** for a maintainer:
208
410
  - a seat starts and reads ready only after the handshake;
209
411
  - one multi-line message becomes one prompt;
@@ -223,7 +425,12 @@ existing built-in runtimes or require every possible runner protocol to use ACP.
223
425
  `subtype`. They're sent in order and never block the agent.
224
426
  - [ ] One submitted message becomes exactly one prompt. Only a bare `/abort` block, or Ctrl-C outside a paste, is control.
225
427
  - [ ] Cancel records "requested" when sent, and "cancelled" only on the agent's own stop reason.
226
- - [ ] Every permission request is refused at once, shown, and held as needs input until the next accepted prompt.
428
+ - [ ] Every permission request goes to OpenRig's answered path, and the runner delivers the option that comes back: the
429
+ person's, or OpenRig's permit. When OpenRig can't answer (404, unreachable, or a refusal section 7's table marks
430
+ "permits"), the runner permits with the agent's `allow_once`, else `allow_always`. A refusal that says the request
431
+ isn't the current occupant's, or a `refused` answer, means answer `cancelled` and hold nothing. Only
432
+ `denied_by_seat`, or no allow option to permit, means refuse at once, show it, and hold needs input until the next
433
+ accepted prompt.
227
434
  - [ ] An agent exit posts `Stop` / `<preset name>_exited`, never a plain idle.
228
435
  - [ ] A resume reopens the exact conversation. It reports `missing` only on the agent's word, and otherwise leaves it
229
436
  unconfirmed.
@@ -232,11 +439,13 @@ existing built-in runtimes or require every possible runner protocol to use ACP.
232
439
 
233
440
  ## Open questions
234
441
 
235
- 1. **For the dsh maintainer:** which method and capability does dsh advertise for reopening a session, at a pinned
236
- version: `session/load` with `loadSession`, or `session/resume`?
442
+ 1. **Answered:** which method and capability does dsh advertise for reopening a session, at a pinned version? dsh
443
+ `0.2.1-rc.2` advertises `sessionCapabilities` `{close, list, resume}`, without `loadSession`, and reopens with
444
+ `session/resume` (section 8). This was observed with a stand-in model, not a real one.
237
445
  2. **For the dsh maintainer:** can dsh's ACP profile run with tools off? A first journey that needs no permission
238
446
  answers is the simplest to check.
239
447
  3. **For OpenRig:** should a later version route permission requests to a chosen seat, as `rig acp run` already does
240
- with queue tasks, instead of refusing them?
448
+ with queue tasks? 0.7.8 routes them to the default person, or to a person chosen for the seat (section 7). A chosen
449
+ seat is still open.
241
450
  4. **For OpenRig:** once a second ACP harness exists, should one shared ACP runner live in OpenRig rather than one per
242
451
  harness?
@@ -107,6 +107,38 @@ OpenRig doesn't observe a hosted member between its calls, so it never reads idl
107
107
 
108
108
  `rig mcp token revoke grok` refuses its next request. The rows it worked, and their answers, stay.
109
109
 
110
+ ## Assistants connected through a grant service
111
+
112
+ With `rig mcp serve --http --grant-service <url>`, an outside service answers each connection's key with its grant
113
+ (`openrig.grant/v1`): the seat it acts as, its rigs, and the object/action pairs it may use. Each pair offers one tool,
114
+ and nothing else is offered:
115
+
116
+ | Pair | Tool |
117
+ |---|---|
118
+ | `queue`/`create`, `queue`/`show`, `queue`/`list` | `rig_queue_create`, `rig_queue_show`, `rig_queue_list` |
119
+ | `queue`/`claim`, `queue`/`update` | `rig_queue_claim`, `rig_queue_update` |
120
+ | `team`/`list` | `rig_team` |
121
+ | `artifact`/`read` | `rig_artifact_read` |
122
+
123
+ - **One seat per connected assistant:** the service gives each connection its own seat and keeps it across that
124
+ connection's reconnects. The seat must be one of the rig's nodes; a node created without a launch is enough. The caller
125
+ is exactly that seat.
126
+ - **What it reaches:**
127
+ - It hands work to its rigs' other seats, never to a person or another host's seat.
128
+ - It reads the items it sent and the items addressed to it from those seats, never the team's internal items.
129
+ - With `queue`/`claim` and `queue`/`update`, it claims and closes only items addressed to its own seat that it can read,
130
+ and waits (blocked) only on an item it names and can read. Its answers hide what reading the item hides.
131
+ - **Two assistants together:** a grant with `team`/`list` sees its rigs' seats with `rig_team`, and may address and hear from
132
+ another connected assistant's seat. A grant without it never reaches a seat in the service's caller form
133
+ (`cus-<id>-<connection>@<rig>`), so an existing connection keeps the reach it had.
134
+ - **Messages are items:** a message is an item the receiver reads and closes, and a reply is an item back to its sender.
135
+ - **What the sender can tell, from the item it reads:**
136
+ - **Queued:** the item exists and is `pending` with no claim.
137
+ - **Picked up:** the receiver's claim (`in-progress`).
138
+ - **Answered:** closed `done`, with the answer in `resolution`.
139
+ - Reading or listing an item records nothing, and nothing wakes an assistant, so an item stays queued until its receiver
140
+ claims it.
141
+
110
142
  ## Limits today
111
143
 
112
144
  - **Webhook triggers only:** OpenRig rings a webhook. Email and other triggers aren't supported yet. A member without a trigger
@@ -110,6 +110,17 @@ limitation: use the live spec-library commands to determine where a spec is
110
110
  served from, and do not infer convergence merely because the canonical
111
111
  directory exists.
112
112
 
113
+ The spec library scans the built-in specs, `$OPENRIG_HOME/specs` and, when
114
+ present, that legacy library. At any depth below them it skips directories
115
+ named `.git`, `.worktrees`, `node_modules`, `dist`, `build`, `.turbo` and
116
+ `.next`, which usually hold build output or dependencies (`SKIP_DIRS` in
117
+ `packages/daemon/src/domain/spec-library-service.ts`). A spec inside one of
118
+ them, such as `specs/build/rig.yaml`, isn't listed, and nothing reports that it
119
+ was skipped. To list it, rename its directory and run `rig specs sync`.
120
+ `rig specs add <directory>` copies a directory under its own name, so adding a
121
+ directory named `build` doesn't help. `rig up <path-to-rig.yaml>` still launches
122
+ a spec by its path, without the library.
123
+
113
124
  Config updates publish a complete replacement file atomically where directory
114
125
  permissions and the filesystem allow it. On POSIX systems, replacement preserves
115
126
  the existing owner, group, and read/write/execute permission bits. If creating or
@@ -107,6 +107,28 @@ rig queue create --destination <entityId>@external --human-intent update \
107
107
  - **`posted` means the connector posted it, not that they read it.** Don't say they saw it.
108
108
  - **If delivery fails or is indeterminate,** inspect that task before anything else. Never resend blindly.
109
109
 
110
+ ## If the timer cannot reach its recipient
111
+
112
+ A `periodic-reminder` occurrence that definitely fails before input remains owed. The watchdog
113
+ retries through its existing loop, using `queue.wake_retry_interval_seconds` and
114
+ `queue.wake_retry_cap` (by default, three retries five minutes apart). A failed attempt does not
115
+ advance the reminder to its next regular cycle. A confirmed send advances the normal interval;
116
+ recovery does not replay every elapsed cycle.
117
+
118
+ `rig watchdog show <jobId> --json` includes the failed attempt, its retained outbox IDs, retry
119
+ time and next action. If input may have reached the recipient, that occurrence ends unconfirmed
120
+ and is not automatically sent again. Inspect the recipient and exact outbox record before any
121
+ manual replay. A recurring reminder keeps its next normal cycle under a new occurrence identity. A confirmed receipt survives a daemon restart, so
122
+ finishing its accounting does not type the same occurrence twice.
123
+
124
+ Exhausted retries end only the failed occurrence, with its cause and next action; a recurring
125
+ reminder keeps its next normal cycle. A permanent transport failure leaves a terminal job:
126
+ correct the destination and register a replacement reminder. A one-shot park timer records its
127
+ failed or unconfirmed wake on the parked row before it ends. A retryable failure is recorded
128
+ there while the timer stays armed. Deliberately held
129
+ input keeps its existing retained-message custody. Condition watches and parked-owner policy
130
+ behavior are unchanged. This does not replay failed occurrences recorded by older versions.
131
+
110
132
  ## "What are you watching for me?"
111
133
 
112
134
  List **every active state**, not just set-aside ones. A watch being checked can be in progress, and a new one can be
@@ -0,0 +1,84 @@
1
+ # Pi tool-selection recovery
2
+
3
+ Use this when a live Pi conversation has fewer active tools than its operator
4
+ currently intends. This does not establish why the selection changed or that
5
+ stock Pi/OpenRig lost tools. The motivating report used a customized Pi 1.4.0
6
+ deployment; it is not a stock cross-platform reproduction.
7
+
8
+ ## Diagnose before changing the selection
9
+
10
+ Confirm the exact seat, occupant and conversation, then use an idle boundary.
11
+ Preserve pending work and reconcile unknown writes before any replacement.
12
+ Keep four things separate:
13
+
14
+ - **Configured:** the effective merged `defaultTools` setting. Do not infer it
15
+ from one settings file; retain any unresolved patterns or modifiers as such.
16
+ - **Currently intended:** the tools the operator wants enabled now, including
17
+ deliberate exclusions. Configuration alone does not establish that intention.
18
+ - **Registered:** names the current Pi runtime knows about.
19
+ - **Active:** names returned by `getActiveTools`, which can differ from both.
20
+
21
+ A live RPC connection does not prove the tools are usable. Record observation
22
+ time and conversation binding; an unavailable query stays unknown. Reloading
23
+ unchanged settings can retain session-disabled tools by design, so a reload
24
+ that restores nothing is not itself evidence of accidental loss.
25
+
26
+ ## Choose the interface the seat actually has
27
+
28
+ Pi 1.4.0 includes an opt-in selector at
29
+ `packages/coding-agent/examples/extensions/tools.ts` in the Pi repository. Its
30
+ `/tools` command remembers selection per branch and needs Pi's own TUI. Use it
31
+ where that extension and native TUI are available. **Do not send `/tools` to an
32
+ agent OpenRig drives over RPC**: that interface cannot operate the selector.
33
+
34
+ For RPC seats, an optional [community-maintained helper][helper] provides
35
+ read-only status and an explicit command that adds only named intended tools.
36
+ It is maintained outside OpenRig, is not bundled, and this link is not a support
37
+ claim. Loading it also registers the agent-callable `openrig_runtime_status` and
38
+ `openrig_slots` tools; the latter reads a snapshot of the bound rig's agents and
39
+ active queue items. It can add a prompt section when a guidance file is set.
40
+ Review its [shared implementation][runtime] and
41
+ [setup/capability limits][setup] before opting in through Pi's per-seat extension
42
+ configuration. Keep the two helper files together; do not install the separate
43
+ RepoStew application just to use the neutral bridge. Verify what the target
44
+ session actually loaded after the supported activation path.
45
+
46
+ With that helper already loaded, these are **Pi extension commands**, not new
47
+ `rig` commands:
48
+
49
+ ```text
50
+ /openrig-status
51
+ /openrig-restore-tools read
52
+ ```
53
+
54
+ For an agent OpenRig drives over RPC, send each extension command with
55
+ `rig send <agent> --raw "<command>"` so it arrives without a messaging envelope;
56
+ the usual interactive-prompt guard still applies.
57
+
58
+ The second command means that `read` is intended now. It does not restore every
59
+ configured default. If `bash` was deliberately disabled, leave it disabled
60
+ unless the operator explicitly intends to add it too. With no names, this helper
61
+ refuses to change the selection.
62
+
63
+ ## Verify the recovery
64
+
65
+ 1. Establish the explicit current intended names. Reject unregistered or hidden
66
+ requested tools before changing anything; do not infer replacement names.
67
+ 2. Preserve current active extras: `setActiveTools` **replaces** the selection,
68
+ so pass the union of current active names and only the requested names. It can
69
+ ignore names it cannot activate; sending the command is not proof of recovery.
70
+ 3. Read `getActiveTools` back. Retain a before/after receipt with the intended
71
+ names and any missing names, then make a harmless actual call to a recovered
72
+ tool within the existing task authority. Listed-active is not proof of usable
73
+ permissions or working execution.
74
+
75
+ This changes tool selection, not permission policy, task authority or conversation
76
+ identity. It does not automatically persist a new branch selection; verify again
77
+ after branch navigation or reload. If the runtime cannot support or verify this
78
+ in place, report that capability gap and follow its supported replacement path
79
+ with retained work. Do not manufacture a fresh conversation or claim that another
80
+ harness has Pi's capabilities.
81
+
82
+ [helper]: https://github.com/dajiaohuang/repostew/blob/adf9f36c23e27cf40cf8dd2dae887972a0dc776b/skill/integrations/pi-openrig.js
83
+ [runtime]: https://github.com/dajiaohuang/repostew/blob/adf9f36c23e27cf40cf8dd2dae887972a0dc776b/skill/integrations/pi-runtime.js
84
+ [setup]: https://github.com/dajiaohuang/repostew/blob/adf9f36c23e27cf40cf8dd2dae887972a0dc776b/skill/references/harnesses/pi.md
@@ -17,7 +17,7 @@ npx skills add https://github.com/mvschwarz/openrig/tree/<release-tag>/skills/ri
17
17
  npx skills add https://github.com/mvschwarz/openrig/tree/<release-tag>/skills/rigs --skill rigs --agent codex
18
18
  ```
19
19
 
20
- For a new install, use the latest release's tag, for example `v0.7.7`. If OpenRig is already installed, use the tag
20
+ For a new install, use the latest release's tag, for example `v0.7.9`. If OpenRig is already installed, use the tag
21
21
  that matches `rig --version`, or upgrade first. If the command fails with `npx: command not found`, Node.js isn't
22
22
  installed or isn't on your PATH yet (see [What you need](#what-you-need)). Then type `/rigs` in Claude Code, or `$rigs` in Codex, and say what
23
23
  you want built.
@@ -90,7 +90,8 @@ Use `codex` or `both` in place of `claude` to match the coding agents you use. A
90
90
  - it adds an OpenRig block to `~/.tmux.conf` (mouse support and longer scrollback).
91
91
 
92
92
  It doesn't start anything. It ends with a summary of what's done and what still needs you. A missing sign-in shows
93
- there: run `claude auth login` or `codex login`, then carry on.
93
+ there: run `claude auth login` or `codex login`, then carry on. Setup also tries to record the selected providers
94
+ for a new kernel's first boot; its summary warns if it could not save the choice.
94
95
 
95
96
  ### 3. Start OpenRig
96
97
 
@@ -100,12 +101,16 @@ rig status
100
101
  rig ps --nodes --rig kernel
101
102
  ```
102
103
 
103
- The daemon starts and boots the kernel with the coding agents you're signed in to, or both if you're signed in to both.
104
+ On the kernel's first boot, the daemon uses the providers selected by `rig setup --providers` that are signed in.
105
+ If no provider choice was recorded, it considers every signed-in provider. An existing kernel keeps its seats;
106
+ changing the setup choice does not replace them. An `OPENRIG_PROVIDER_SELECTED` value in the daemon's environment
107
+ takes precedence over the saved choice.
104
108
 
105
109
  **What starting OpenRig changes, for the coding agents you use** (paths are the usual defaults):
106
110
  - **For Codex:** hooks and trust in `~/.codex/config.toml`, when OpenRig or a Codex agent starts.
107
111
  - **For Claude Code:** workspace trust in `~/.claude.json`, and activity hooks in the project's
108
- `.claude/settings.local.json`, plus a status line unless you already have your own.
112
+ `.claude/settings.local.json`, plus a status line unless you already have your own. `rig down` takes the hooks and
113
+ status line back out once no Claude seat uses that directory.
109
114
  - **For both:** small discovery skills in `~/.claude/skills` and `~/.agents/skills`.
110
115
  - **Kernel access:** by default the kernel gets broader permissions than a project team gets by default. On Codex
111
116
  that's full access with no approval prompts. On Claude Code, its file tools, web fetches and operational commands,
@@ -91,10 +91,10 @@ my-rig.rigbundle.sha256 — "a1b2c3d4..." (64-char hex SHA-256)
91
91
  The packer produces deterministic output:
92
92
  - Files are sorted alphabetically
93
93
  - A fixed mtime is used (`2026-01-01T00:00:00Z`)
94
- - Portable mode normalizes uid/gid/mode
94
+ - Portable mode omits machine-specific owner metadata; file mode bits can be retained
95
95
  - Maximum gzip compression (level 9)
96
96
 
97
- Identical staged bytes (including manifest timestamps and provenance) produce the same archive hash. Use the package digest to compare packaged file content independently of manifest metadata.
97
+ Identical staged bytes and file modes (including identical manifest timestamps and provenance) produce the same archive hash. A mode change can change the archive hash even when the file contents are unchanged. Use the package digest to compare packaged file content independently of manifest metadata and file modes.
98
98
 
99
99
  ---
100
100