@openrig/cli 0.7.5 → 0.7.7

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 (463) hide show
  1. package/README.md +5 -5
  2. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  3. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  4. package/daemon/assets/plugins/openrig-core/hooks/claude.json +11 -0
  5. package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +5 -0
  6. package/daemon/context-packs/help/manifest.yaml +1 -1
  7. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  8. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +30 -3
  9. package/daemon/context-packs/reference/getting-started.md +37 -3
  10. package/daemon/context-packs/reference/manifest.yaml +1 -1
  11. package/daemon/context-packs/reference/rig-spec.md +142 -3
  12. package/daemon/context-packs/reference/whats-new.md +162 -164
  13. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  14. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  15. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  16. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  17. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  18. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  19. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  20. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  21. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  22. package/daemon/context-packs/skills/core/openrig-architect/SKILL.md +0 -1
  23. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  27. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/openrig-upgrade/SKILL.md +0 -1
  29. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/rig-lifecycle/SKILL.md +2 -2
  32. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  68. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  69. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  70. package/daemon/dist/adapters/claude-code-adapter.d.ts +1 -0
  71. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  72. package/daemon/dist/adapters/claude-code-adapter.js +41 -10
  73. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  74. package/daemon/dist/adapters/claude-resume.d.ts +1 -1
  75. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  76. package/daemon/dist/adapters/claude-resume.js +20 -4
  77. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  78. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +1 -1
  79. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  80. package/daemon/dist/adapters/codex-runtime-adapter.js +5 -2
  81. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  82. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +2 -0
  83. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
  84. package/daemon/dist/adapters/community-harness-runtime-adapter.js +37 -14
  85. package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
  86. package/daemon/dist/adapters/pi-runner-protocol.d.ts +1 -1
  87. package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
  88. package/daemon/dist/adapters/pi-runner-protocol.js +3 -1
  89. package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
  90. package/daemon/dist/adapters/tmux.d.ts +6 -5
  91. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  92. package/daemon/dist/adapters/tmux.js +15 -11
  93. package/daemon/dist/adapters/tmux.js.map +1 -1
  94. package/daemon/dist/build-info.js +3 -3
  95. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  96. package/daemon/dist/db/all-migrations.js +4 -0
  97. package/daemon/dist/db/all-migrations.js.map +1 -1
  98. package/daemon/dist/db/migrations/141_node_account_home.d.ts +3 -0
  99. package/daemon/dist/db/migrations/141_node_account_home.d.ts.map +1 -0
  100. package/daemon/dist/db/migrations/141_node_account_home.js +6 -0
  101. package/daemon/dist/db/migrations/141_node_account_home.js.map +1 -0
  102. package/daemon/dist/db/migrations/141_session_agent_runner.d.ts +3 -0
  103. package/daemon/dist/db/migrations/141_session_agent_runner.d.ts.map +1 -0
  104. package/daemon/dist/db/migrations/141_session_agent_runner.js +11 -0
  105. package/daemon/dist/db/migrations/141_session_agent_runner.js.map +1 -0
  106. package/daemon/dist/domain/activity-taxonomy.d.ts +7 -2
  107. package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
  108. package/daemon/dist/domain/activity-taxonomy.js +10 -2
  109. package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
  110. package/daemon/dist/domain/agent-activity-store.d.ts +6 -3
  111. package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
  112. package/daemon/dist/domain/agent-activity-store.js +18 -10
  113. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  114. package/daemon/dist/domain/claim-service.js +1 -1
  115. package/daemon/dist/domain/claim-service.js.map +1 -1
  116. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  117. package/daemon/dist/domain/claude-compaction-enforcer.js +3 -2
  118. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  119. package/daemon/dist/domain/claude-credential-precedence.d.ts +8 -0
  120. package/daemon/dist/domain/claude-credential-precedence.d.ts.map +1 -1
  121. package/daemon/dist/domain/claude-credential-precedence.js +49 -4
  122. package/daemon/dist/domain/claude-credential-precedence.js.map +1 -1
  123. package/daemon/dist/domain/claude-managed-launch.d.ts +24 -3
  124. package/daemon/dist/domain/claude-managed-launch.d.ts.map +1 -1
  125. package/daemon/dist/domain/claude-managed-launch.js +92 -29
  126. package/daemon/dist/domain/claude-managed-launch.js.map +1 -1
  127. package/daemon/dist/domain/claude-seat-token.d.ts +14 -2
  128. package/daemon/dist/domain/claude-seat-token.d.ts.map +1 -1
  129. package/daemon/dist/domain/claude-seat-token.js +54 -7
  130. package/daemon/dist/domain/claude-seat-token.js.map +1 -1
  131. package/daemon/dist/domain/codex-rebuild-permissions.d.ts.map +1 -1
  132. package/daemon/dist/domain/codex-rebuild-permissions.js +6 -4
  133. package/daemon/dist/domain/codex-rebuild-permissions.js.map +1 -1
  134. package/daemon/dist/domain/community-harness-presets.d.ts +5 -0
  135. package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
  136. package/daemon/dist/domain/community-harness-presets.js +9 -2
  137. package/daemon/dist/domain/community-harness-presets.js.map +1 -1
  138. package/daemon/dist/domain/gateway/slack/config.d.ts +7 -0
  139. package/daemon/dist/domain/gateway/slack/config.d.ts.map +1 -1
  140. package/daemon/dist/domain/gateway/slack/config.js +5 -0
  141. package/daemon/dist/domain/gateway/slack/config.js.map +1 -1
  142. package/daemon/dist/domain/gateway/slack/inbound.d.ts +4 -0
  143. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  144. package/daemon/dist/domain/gateway/slack/inbound.js +11 -3
  145. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  146. package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
  147. package/daemon/dist/domain/gateway/slack/queue-access.js +8 -15
  148. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  149. package/daemon/dist/domain/gateway/slack/slack-api.d.ts +5 -1
  150. package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
  151. package/daemon/dist/domain/gateway/slack/slack-api.js +7 -1
  152. package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
  153. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +3 -0
  154. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
  155. package/daemon/dist/domain/gateway/slack/slack-delivery.js +12 -5
  156. package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
  157. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  158. package/daemon/dist/domain/gateway/slack/slack-subsystem.js +19 -5
  159. package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  160. package/daemon/dist/domain/markdown-address.d.ts.map +1 -1
  161. package/daemon/dist/domain/markdown-address.js +14 -1
  162. package/daemon/dist/domain/markdown-address.js.map +1 -1
  163. package/daemon/dist/domain/model-divergence/current-model-reader.d.ts +1 -1
  164. package/daemon/dist/domain/model-divergence/current-model-reader.d.ts.map +1 -1
  165. package/daemon/dist/domain/model-divergence/current-model-reader.js.map +1 -1
  166. package/daemon/dist/domain/native-process-arguments.d.ts +7 -0
  167. package/daemon/dist/domain/native-process-arguments.d.ts.map +1 -0
  168. package/daemon/dist/domain/native-process-arguments.js +188 -0
  169. package/daemon/dist/domain/native-process-arguments.js.map +1 -0
  170. package/daemon/dist/domain/native-process-lineage.d.ts +8 -0
  171. package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
  172. package/daemon/dist/domain/native-process-lineage.js +104 -30
  173. package/daemon/dist/domain/native-process-lineage.js.map +1 -1
  174. package/daemon/dist/domain/node-inventory.d.ts +3 -3
  175. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  176. package/daemon/dist/domain/node-inventory.js +38 -28
  177. package/daemon/dist/domain/node-inventory.js.map +1 -1
  178. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  179. package/daemon/dist/domain/node-launcher.js +6 -4
  180. package/daemon/dist/domain/node-launcher.js.map +1 -1
  181. package/daemon/dist/domain/pane-cutover.d.ts +1 -1
  182. package/daemon/dist/domain/pane-cutover.d.ts.map +1 -1
  183. package/daemon/dist/domain/pane-cutover.js +3 -3
  184. package/daemon/dist/domain/pane-cutover.js.map +1 -1
  185. package/daemon/dist/domain/policies/parked-owner-consumer.js +1 -1
  186. package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
  187. package/daemon/dist/domain/process-table.d.ts +2 -0
  188. package/daemon/dist/domain/process-table.d.ts.map +1 -1
  189. package/daemon/dist/domain/process-table.js +3 -0
  190. package/daemon/dist/domain/process-table.js.map +1 -1
  191. package/daemon/dist/domain/proof/source-watch.d.ts +1 -1
  192. package/daemon/dist/domain/proof/source-watch.d.ts.map +1 -1
  193. package/daemon/dist/domain/proof/source-watch.js +14 -1
  194. package/daemon/dist/domain/proof/source-watch.js.map +1 -1
  195. package/daemon/dist/domain/provider/claude-seat-switch.d.ts.map +1 -1
  196. package/daemon/dist/domain/provider/claude-seat-switch.js +19 -9
  197. package/daemon/dist/domain/provider/claude-seat-switch.js.map +1 -1
  198. package/daemon/dist/domain/provider/provider-service-impl.d.ts.map +1 -1
  199. package/daemon/dist/domain/provider/provider-service-impl.js +3 -0
  200. package/daemon/dist/domain/provider/provider-service-impl.js.map +1 -1
  201. package/daemon/dist/domain/provider/provider-service.d.ts +6 -0
  202. package/daemon/dist/domain/provider/provider-service.d.ts.map +1 -1
  203. package/daemon/dist/domain/provider/provider-types.d.ts +3 -2
  204. package/daemon/dist/domain/provider/provider-types.d.ts.map +1 -1
  205. package/daemon/dist/domain/ps-projection.d.ts +2 -2
  206. package/daemon/dist/domain/ps-projection.js +6 -6
  207. package/daemon/dist/domain/ps-projection.js.map +1 -1
  208. package/daemon/dist/domain/queue-repository.d.ts +13 -2
  209. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  210. package/daemon/dist/domain/queue-repository.js +84 -21
  211. package/daemon/dist/domain/queue-repository.js.map +1 -1
  212. package/daemon/dist/domain/queue-stuck-sweep.d.ts +2 -2
  213. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  214. package/daemon/dist/domain/queue-stuck-sweep.js +20 -11
  215. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  216. package/daemon/dist/domain/queue-transition-log.d.ts +14 -0
  217. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  218. package/daemon/dist/domain/queue-transition-log.js +53 -0
  219. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  220. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  221. package/daemon/dist/domain/queue-wake-ladder.js +18 -7
  222. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  223. package/daemon/dist/domain/reply-to-choice.d.ts +3 -0
  224. package/daemon/dist/domain/reply-to-choice.d.ts.map +1 -1
  225. package/daemon/dist/domain/reply-to-choice.js +12 -0
  226. package/daemon/dist/domain/reply-to-choice.js.map +1 -1
  227. package/daemon/dist/domain/restore-orchestrator.d.ts +7 -2
  228. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  229. package/daemon/dist/domain/restore-orchestrator.js +69 -22
  230. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  231. package/daemon/dist/domain/rig-expansion-service.d.ts.map +1 -1
  232. package/daemon/dist/domain/rig-expansion-service.js +20 -35
  233. package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
  234. package/daemon/dist/domain/rig-repository.d.ts +3 -1
  235. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  236. package/daemon/dist/domain/rig-repository.js +25 -5
  237. package/daemon/dist/domain/rig-repository.js.map +1 -1
  238. package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
  239. package/daemon/dist/domain/rigspec-codec.js +4 -0
  240. package/daemon/dist/domain/rigspec-codec.js.map +1 -1
  241. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  242. package/daemon/dist/domain/rigspec-exporter.js +4 -0
  243. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  244. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  245. package/daemon/dist/domain/rigspec-instantiator.js +4 -1
  246. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  247. package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  248. package/daemon/dist/domain/rigspec-schema.js +29 -1
  249. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  250. package/daemon/dist/domain/runtime-adapter.d.ts +11 -0
  251. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  252. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  253. package/daemon/dist/domain/seat-activity-service.d.ts +8 -1
  254. package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
  255. package/daemon/dist/domain/seat-activity-service.js +92 -35
  256. package/daemon/dist/domain/seat-activity-service.js.map +1 -1
  257. package/daemon/dist/domain/seat-attention-reconciler.js +2 -2
  258. package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
  259. package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
  260. package/daemon/dist/domain/seat-identity-reconciler.js +13 -1
  261. package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
  262. package/daemon/dist/domain/seat-launch-environment.d.ts +4 -1
  263. package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
  264. package/daemon/dist/domain/seat-launch-environment.js +21 -8
  265. package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
  266. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  267. package/daemon/dist/domain/seat-lifecycle-service.js +19 -11
  268. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  269. package/daemon/dist/domain/seat-restart-in-place.d.ts +1 -1
  270. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  271. package/daemon/dist/domain/seat-restart-in-place.js +66 -13
  272. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  273. package/daemon/dist/domain/seat-runtime-home.d.ts +7 -3
  274. package/daemon/dist/domain/seat-runtime-home.d.ts.map +1 -1
  275. package/daemon/dist/domain/seat-runtime-home.js +32 -3
  276. package/daemon/dist/domain/seat-runtime-home.js.map +1 -1
  277. package/daemon/dist/domain/seat-runtime-switch-service.d.ts +13 -0
  278. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  279. package/daemon/dist/domain/seat-runtime-switch-service.js +48 -6
  280. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  281. package/daemon/dist/domain/seat-status-service.d.ts +4 -2
  282. package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
  283. package/daemon/dist/domain/seat-status-service.js +5 -3
  284. package/daemon/dist/domain/seat-status-service.js.map +1 -1
  285. package/daemon/dist/domain/session-registry.d.ts +7 -2
  286. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  287. package/daemon/dist/domain/session-registry.js +19 -2
  288. package/daemon/dist/domain/session-registry.js.map +1 -1
  289. package/daemon/dist/domain/session-transport.d.ts +2 -0
  290. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  291. package/daemon/dist/domain/session-transport.js +15 -1
  292. package/daemon/dist/domain/session-transport.js.map +1 -1
  293. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  294. package/daemon/dist/domain/startup-orchestrator.js +12 -2
  295. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  296. package/daemon/dist/domain/startup-proof.d.ts +3 -1
  297. package/daemon/dist/domain/startup-proof.d.ts.map +1 -1
  298. package/daemon/dist/domain/startup-proof.js +7 -2
  299. package/daemon/dist/domain/startup-proof.js.map +1 -1
  300. package/daemon/dist/domain/successor-session-launcher.d.ts +1 -1
  301. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  302. package/daemon/dist/domain/terminal/herdr-adapter.d.ts +1 -1
  303. package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
  304. package/daemon/dist/domain/terminal/herdr-adapter.js +2 -2
  305. package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
  306. package/daemon/dist/domain/terminal/herdr-follow-view.d.ts +1 -1
  307. package/daemon/dist/domain/terminal/herdr-follow-view.d.ts.map +1 -1
  308. package/daemon/dist/domain/terminal/herdr-follow-view.js +35 -18
  309. package/daemon/dist/domain/terminal/herdr-follow-view.js.map +1 -1
  310. package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
  311. package/daemon/dist/domain/terminal/herdr-sessions.js +6 -5
  312. package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
  313. package/daemon/dist/domain/terminal/herdr-transport.d.ts +3 -2
  314. package/daemon/dist/domain/terminal/herdr-transport.d.ts.map +1 -1
  315. package/daemon/dist/domain/terminal/herdr-transport.js +10 -6
  316. package/daemon/dist/domain/terminal/herdr-transport.js.map +1 -1
  317. package/daemon/dist/domain/terminal/herdr-viewer.d.ts +16 -1
  318. package/daemon/dist/domain/terminal/herdr-viewer.d.ts.map +1 -1
  319. package/daemon/dist/domain/terminal/herdr-viewer.js +52 -26
  320. package/daemon/dist/domain/terminal/herdr-viewer.js.map +1 -1
  321. package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts +28 -0
  322. package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts.map +1 -0
  323. package/daemon/dist/domain/terminal/scope-task-terminal-view.js +268 -0
  324. package/daemon/dist/domain/terminal/scope-task-terminal-view.js.map +1 -0
  325. package/daemon/dist/domain/terminal/task-terminal-view.d.ts +10 -1
  326. package/daemon/dist/domain/terminal/task-terminal-view.d.ts.map +1 -1
  327. package/daemon/dist/domain/terminal/task-terminal-view.js +6 -1
  328. package/daemon/dist/domain/terminal/task-terminal-view.js.map +1 -1
  329. package/daemon/dist/domain/terminal/terminal-following.js +3 -3
  330. package/daemon/dist/domain/terminal/terminal-following.js.map +1 -1
  331. package/daemon/dist/domain/terminal/terminal-provider.d.ts +1 -1
  332. package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
  333. package/daemon/dist/domain/terminal/terminal-service.d.ts +9 -0
  334. package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
  335. package/daemon/dist/domain/terminal/terminal-service.js +43 -9
  336. package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
  337. package/daemon/dist/domain/types.d.ts +35 -2
  338. package/daemon/dist/domain/types.d.ts.map +1 -1
  339. package/daemon/dist/domain/types.js +5 -0
  340. package/daemon/dist/domain/types.js.map +1 -1
  341. package/daemon/dist/domain/workflow-runtime.js +1 -1
  342. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  343. package/daemon/dist/routes/activity.d.ts.map +1 -1
  344. package/daemon/dist/routes/activity.js +75 -7
  345. package/daemon/dist/routes/activity.js.map +1 -1
  346. package/daemon/dist/routes/compaction.js +4 -0
  347. package/daemon/dist/routes/compaction.js.map +1 -1
  348. package/daemon/dist/routes/provider.d.ts +1 -0
  349. package/daemon/dist/routes/provider.d.ts.map +1 -1
  350. package/daemon/dist/routes/provider.js +49 -10
  351. package/daemon/dist/routes/provider.js.map +1 -1
  352. package/daemon/dist/routes/rigs.js +3 -97
  353. package/daemon/dist/routes/rigs.js.map +1 -1
  354. package/daemon/dist/routes/seat.d.ts +4 -1
  355. package/daemon/dist/routes/seat.d.ts.map +1 -1
  356. package/daemon/dist/routes/seat.js +8 -2
  357. package/daemon/dist/routes/seat.js.map +1 -1
  358. package/daemon/dist/routes/sessions.js +4 -3
  359. package/daemon/dist/routes/sessions.js.map +1 -1
  360. package/daemon/dist/routes/slices.d.ts.map +1 -1
  361. package/daemon/dist/routes/slices.js +1 -0
  362. package/daemon/dist/routes/slices.js.map +1 -1
  363. package/daemon/dist/routes/terminal.d.ts.map +1 -1
  364. package/daemon/dist/routes/terminal.js +5 -3
  365. package/daemon/dist/routes/terminal.js.map +1 -1
  366. package/daemon/dist/startup.d.ts.map +1 -1
  367. package/daemon/dist/startup.js +26 -9
  368. package/daemon/dist/startup.js.map +1 -1
  369. package/daemon/docs/reference/agent-state-taxonomy.md +21 -1
  370. package/daemon/docs/reference/author-contracts.md +74 -0
  371. package/daemon/docs/reference/community-harness-examples/cursor/cursor.yaml +1 -0
  372. package/daemon/docs/reference/community-harness-examples/cursor/openrig-cursor-launch +6 -0
  373. package/daemon/docs/reference/community-harness-examples/hermes/hermes.yaml +1 -0
  374. package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +15 -0
  375. package/daemon/docs/reference/community-harness-presets.md +78 -3
  376. package/daemon/docs/reference/execution-platform-contract.md +138 -0
  377. package/daemon/docs/reference/getting-started.md +37 -3
  378. package/daemon/docs/reference/harness-runner-contract.md +242 -0
  379. package/daemon/docs/reference/quickstart.md +1 -1
  380. package/daemon/docs/reference/rig-spec.md +142 -3
  381. package/daemon/docs/reference/slack-app-setup.md +8 -0
  382. package/daemon/docs/reference/terminal-sessions.md +106 -5
  383. package/daemon/docs/reference/whats-new.md +162 -164
  384. package/daemon/specs/agents/shared/skills/core/openrig-architect/SKILL.md +0 -1
  385. package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +0 -1
  386. package/daemon/specs/agents/shared/skills/core/rig-lifecycle/SKILL.md +2 -2
  387. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +11 -2
  388. package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +2 -1
  389. package/dist/build-info.js +3 -3
  390. package/dist/client.js +3 -3
  391. package/dist/client.js.map +1 -1
  392. package/dist/commands/chatroom.d.ts +7 -0
  393. package/dist/commands/chatroom.d.ts.map +1 -1
  394. package/dist/commands/chatroom.js +21 -4
  395. package/dist/commands/chatroom.js.map +1 -1
  396. package/dist/commands/crash-cart.d.ts +6 -0
  397. package/dist/commands/crash-cart.d.ts.map +1 -1
  398. package/dist/commands/crash-cart.js +10 -5
  399. package/dist/commands/crash-cart.js.map +1 -1
  400. package/dist/commands/edge.d.ts.map +1 -1
  401. package/dist/commands/edge.js +8 -4
  402. package/dist/commands/edge.js.map +1 -1
  403. package/dist/commands/host.d.ts +8 -0
  404. package/dist/commands/host.d.ts.map +1 -1
  405. package/dist/commands/host.js +57 -6
  406. package/dist/commands/host.js.map +1 -1
  407. package/dist/commands/provider.d.ts +1 -0
  408. package/dist/commands/provider.d.ts.map +1 -1
  409. package/dist/commands/provider.js +146 -7
  410. package/dist/commands/provider.js.map +1 -1
  411. package/dist/commands/queue.d.ts.map +1 -1
  412. package/dist/commands/queue.js +40 -11
  413. package/dist/commands/queue.js.map +1 -1
  414. package/dist/commands/seat.d.ts +1 -0
  415. package/dist/commands/seat.d.ts.map +1 -1
  416. package/dist/commands/seat.js +61 -9
  417. package/dist/commands/seat.js.map +1 -1
  418. package/dist/commands/send.js +2 -2
  419. package/dist/commands/send.js.map +1 -1
  420. package/dist/commands/slack.d.ts.map +1 -1
  421. package/dist/commands/slack.js +2 -0
  422. package/dist/commands/slack.js.map +1 -1
  423. package/dist/commands/startup-proof.d.ts.map +1 -1
  424. package/dist/commands/startup-proof.js +4 -1
  425. package/dist/commands/startup-proof.js.map +1 -1
  426. package/dist/commands/status.d.ts.map +1 -1
  427. package/dist/commands/status.js +3 -1
  428. package/dist/commands/status.js.map +1 -1
  429. package/dist/commands/terminal.js +2 -2
  430. package/dist/commands/terminal.js.map +1 -1
  431. package/dist/daemon-lifecycle.d.ts.map +1 -1
  432. package/dist/daemon-lifecycle.js +29 -4
  433. package/dist/daemon-lifecycle.js.map +1 -1
  434. package/dist/lib/account-home-switch.d.ts +6 -0
  435. package/dist/lib/account-home-switch.d.ts.map +1 -0
  436. package/dist/lib/account-home-switch.js +8 -0
  437. package/dist/lib/account-home-switch.js.map +1 -0
  438. package/dist/lib/scope/scope-fs.d.ts.map +1 -1
  439. package/dist/lib/scope/scope-fs.js +13 -4
  440. package/dist/lib/scope/scope-fs.js.map +1 -1
  441. package/dist/openrig-compat.d.ts +9 -1
  442. package/dist/openrig-compat.d.ts.map +1 -1
  443. package/dist/openrig-compat.js +19 -3
  444. package/dist/openrig-compat.js.map +1 -1
  445. package/dist/terminal-window.d.ts.map +1 -1
  446. package/dist/terminal-window.js +1 -3
  447. package/dist/terminal-window.js.map +1 -1
  448. package/package.json +1 -1
  449. package/tui/dist/attention/attention-model.js +9 -7
  450. package/tui/dist/attention/attention-model.js.map +1 -1
  451. package/tui/dist/config/config-model.d.ts.map +1 -1
  452. package/tui/dist/config/config-model.js +2 -2
  453. package/tui/dist/config/config-model.js.map +1 -1
  454. package/tui/dist/health/health-model.d.ts.map +1 -1
  455. package/tui/dist/health/health-model.js +2 -2
  456. package/tui/dist/health/health-model.js.map +1 -1
  457. package/tui/dist/render.d.ts.map +1 -1
  458. package/tui/dist/render.js +11 -9
  459. package/tui/dist/render.js.map +1 -1
  460. package/tui/dist/stylize.js +1 -1
  461. package/tui/dist/stylize.js.map +1 -1
  462. package/ui/dist/assets/{index-ozBodLrS.js → index-CMBgYrS7.js} +81 -81
  463. package/ui/dist/index.html +1 -1
@@ -34,6 +34,12 @@ chat_store() {
34
34
  printf '%s/chats/%s/%s/store.db' "$CURSOR_CONFIG_DIR" "$sum" "$1"
35
35
  }
36
36
 
37
+ # The seat's declared model (OPENRIG_MODEL, when the preset sets passes_model) goes to a new chat only. A resumed chat isn't
38
+ # passed one: whether Cursor's --resume keeps the chat's earlier model or takes a new one hasn't been checked.
39
+ if [ -n "${OPENRIG_MODEL:-}" ] && [ -z "${OPENRIG_RESUME_REF:-}" ]; then
40
+ set -- --model "$OPENRIG_MODEL" "$@"
41
+ fi
42
+
37
43
  # Preserve the file's exact bytes, including trailing newlines. A read error stops before the harness starts.
38
44
  if [ -n "${OPENRIG_FIRST_INPUT:-}" ]; then
39
45
  first_input=$(cat "$OPENRIG_FIRST_INPUT" && printf '.')
@@ -10,3 +10,4 @@ limits:
10
10
  - no guidance, skills or startup files are placed
11
11
  - needs-input and approval prompts are read from the screen only
12
12
  names_conversation: true
13
+ passes_model: false # the launcher maps OPENRIG_MODEL for a new session; set true once checked with the real harness
@@ -24,6 +24,21 @@ if ! grep -qs OPENRIG_SESSION_NAME "$HERMES_HOME/config.yaml"; then
24
24
  echo "openrig-hermes-launch: $HERMES_HOME/config.yaml doesn't pass OPENRIG_SESSION_NAME to Hermes's tools, so rig run from Hermes won't act as this seat; see config.yaml.example" >&2
25
25
  fi
26
26
 
27
+ # The seat's declared model (OPENRIG_MODEL, when the preset sets passes_model): Hermes takes it only from config.yaml, and
28
+ # Hermes v0.22.4 fixes a session's launch settings when it creates it. So it's written for a new session only, and only
29
+ # into a config.yaml that is absent or empty: a seat's own config is left byte-for-byte as it is, whatever it says. On a
30
+ # resume this launcher applies no OpenRig model.
31
+ if [ -n "${OPENRIG_MODEL:-}" ] && [ -z "${OPENRIG_RESUME_REF:-}" ]; then
32
+ case "$OPENRIG_MODEL" in
33
+ ''|*[!A-Za-z0-9._:/@+-]*) echo "openrig-hermes-launch: not writing unusual model id \"$OPENRIG_MODEL\" into $HERMES_HOME/config.yaml" >&2 ;;
34
+ *) if [ -s "$HERMES_HOME/config.yaml" ]; then
35
+ echo "openrig-hermes-launch: the seat has its own $HERMES_HOME/config.yaml; OPENRIG_MODEL was not applied; set the model there" >&2
36
+ else
37
+ printf 'model: "%s"\n' "$OPENRIG_MODEL" >> "$HERMES_HOME/config.yaml"
38
+ fi ;;
39
+ esac
40
+ fi
41
+
27
42
  if [ -n "${OPENRIG_RESUME_REF:-}" ]; then
28
43
  exec "$hermes" chat -c "$OPENRIG_RESUME_REF"
29
44
  fi
@@ -4,6 +4,9 @@ A community harness is a coding harness an outside contributor maintains. You in
4
4
  rig member runs it by naming it as its `runtime`. OpenRig doesn't test these harnesses. It shows them as community
5
5
  harnesses, and it reads their activity only from what the screen shows.
6
6
 
7
+ For what an integration author owns end to end, including a runner's duties and running a harness somewhere else, see
8
+ the draft [integration author contracts](author-contracts.md).
9
+
7
10
  ## What a community harness gets
8
11
 
9
12
  What OpenRig does for a community-harness seat, capability by capability. **Partly** and **no** mean OpenRig shows that it doesn't know;
@@ -15,14 +18,14 @@ it never reads an unsupported capability as idle, working, ready or verified.
15
18
  | Delivery | yes | `rig send` and queue wakes paste the text into the pane and press Enter, as for any seat. A pane that's back at a shell is refused (`target_runtime_unverified`) and nothing is typed. OpenRig doesn't confirm the harness took the message; `rig send --verify` checks the pane afterwards. |
16
19
  | Identity | when declared | With `launch_result`, the conversation is shown as reported by its launcher; with `names_conversation`, as named by OpenRig. Neither is observed by OpenRig. Without either, the identity is unavailable. |
17
20
  | Resume | when declared | `resume: true` with one of the two above (see [Reopening a conversation](#reopening-a-conversation-resume-true)). Without it, a resume says `Resume is unsupported: community harness "<name>" is launch-only`, and a restore stops and asks. |
18
- | Activity | partly | Read from the screen only; there are no activity hooks. Work and attention the screen shows are kept, but a screen that looks idle reads `unknown`, never idle, because a quiet prompt can be an approval or a pause. |
21
+ | Activity | partly | Read from the screen only; there are no activity hooks. Work and attention the screen shows are kept, but a screen that looks idle reads `unknown`, never idle, because a quiet prompt can be an approval or a pause. A [runner preset](#runner-presets-runner-true)'s own reports decide it instead. |
19
22
  | Attention | partly | Read from the screen: a permission question or numbered choice that OpenRig recognizes reads as needing attention, and `rig send` won't type into it. A prompt it doesn't recognize reads `unknown`. |
20
23
  | Approval | no | Approvals stay in the harness's own pane. OpenRig relays none, so a person answers them there. |
21
24
  | Cancel | no | OpenRig has no verb that cancels a running turn. `rig seat stop` and `rig down` end the seat's tmux session; anything the harness runs outside its pane, such as a gateway, is its own, and the preset's `limits` should say what keeps running. Restarting in place and switching harness are refused. |
22
25
  | Transport | yes | The seat is a tmux pane like any other, so `rig capture`, `rig send` and `--host` work as they do for any seat. |
23
26
 
24
27
  **Not placed:** guidance, skills and startup files (a launch warns that they weren't delivered), and the model: set it in the harness's own
25
- configuration.
28
+ configuration, or let a launcher that opts in take the seat's declared model (`passes_model`, below).
26
29
 
27
30
  **Check that the harness answers on its own first.** Before writing a preset, start the harness in a terminal outside OpenRig, with the
28
31
  same configuration and credentials your launcher will give it, and send it one prompt. Use the folder your launcher gives the seat, not
@@ -48,6 +51,8 @@ launch_result: true # optional: the launcher reports the conversatio
48
51
  resume: true # optional, needs one of those two; declare it only once your harness's resume is checked
49
52
  startup_assisted: true # optional: startup submission needs a person's check (below)
50
53
  first_input: true # optional: launcher takes the first turn from OPENRIG_FIRST_INPUT (below)
54
+ # runner: true # optional, needs launch_result: the launcher reports the seat's activity (below)
55
+ # passes_model: true # optional: the launcher takes the seat's declared model from OPENRIG_MODEL (below)
51
56
  ```
52
57
 
53
58
  - **`command`** is a single program and its arguments. Shell syntax such as `|`, `&&`, `;`, redirections or `$(…)`
@@ -144,6 +149,45 @@ For a reported conversation, OpenRig also says so plainly when:
144
149
  - **the saved conversation isn't this harness's own** (a former runtime's id, say): it isn't passed to the launcher. A restore stops and asks, and elsewhere the resume says it isn't possible;
145
150
  - **the record's folder can't be made:** the launcher couldn't be told what to reopen, so nothing starts.
146
151
 
152
+ ## Runner presets (`runner: true`)
153
+
154
+ A plain preset's seat reads its activity from the screen. A **runner** preset is for a launcher that hosts the agent itself
155
+ and reports what it's doing, as OpenRig's own Pi runner does. The seat's activity then follows those reports.
156
+
157
+ - **It needs `launch_result: true`.** A runner reports the conversation it opened in its launch record, so `runner: true`
158
+ without `launch_result` is refused.
159
+ - **The declaration is fixed at launch.** Each launch, a restore's included, records on the session what the preset
160
+ declares at that moment. Editing the preset changes the next launch, not a running seat. A session recorded before this
161
+ field existed reads as plain.
162
+ - **No record means attention.** When a runner's launch record doesn't arrive within the wait, or its folder can't be
163
+ made, the seat needs attention instead of reading ready. A plain `launch_result` preset still starts, with its identity
164
+ unavailable.
165
+ - **Input is as for any seat.** A send pastes the text and presses Enter, so a runner should submit everything up to that
166
+ Enter as one prompt.
167
+
168
+ **What the runner posts.** The runner posts each event to `POST /api/activity/hooks` with the local activity hook token,
169
+ one at a time and in order, without making the agent wait. It finds the address and token in `OPENRIG_URL` (or
170
+ `OPENRIG_PORT`) and `OPENRIG_ACTIVITY_HOOK_TOKEN`, or else in `$OPENRIG_HOME/activity-endpoint.json`. Every post names:
171
+ - the seat, as `sessionName` and `nodeId`;
172
+ - `runtime`, the preset's name;
173
+ - `generation`, from `OPENRIG_OCCUPANT_GENERATION`;
174
+ - an increasing `sequence`, and `occurredAt`;
175
+ - `hookEvent` and `subtype`, as in the table.
176
+
177
+ | The runner posts | When | The seat reads |
178
+ |---|---|---|
179
+ | `UserPromptSubmit` | it gave the agent a prompt | working |
180
+ | `active` or `PreToolUse` | the agent is working | working |
181
+ | `Notification` / `permission_prompt` | the agent asked for a permission | needs input |
182
+ | `Stop` / the turn's stop reason | the turn ended | idle |
183
+ | `Stop` / `<preset name>_exited` | the agent's process ended | unknown, never idle |
184
+
185
+ - **The screen still counts,** but only as evidence of work: on its own it never reads the seat idle.
186
+ - **The generation attributes a post; it isn't authentication.** A post with an earlier occupant's generation doesn't
187
+ count for the live seat. The hook token is one local token, so any process that holds it can post for any seat.
188
+ - **A runner's full duties** (liveness, input, cancellation and permissions) are in the draft
189
+ [harness and runner contract](harness-runner-contract.md).
190
+
147
191
  ## An example: Hermes
148
192
 
149
193
  [`community-harness-examples/hermes/`](community-harness-examples/hermes/) has a preset and a small launcher for Hermes
@@ -242,7 +286,7 @@ on it, not Pi choosing by itself to park or hand work on.
242
286
  Copy both and maintain them as your own.
243
287
 
244
288
  The launcher is the contributor's code, in the contributor's package. OpenRig runs no code from a preset and loads no
245
- module into its daemon. A preset that sets `launch_result`, `names_conversation`, `startup_assisted` or `first_input` is refused by an older
289
+ module into its daemon. A preset that sets `launch_result`, `names_conversation`, `startup_assisted`, `first_input`, `runner` or `passes_model` is refused by an older
246
290
  OpenRig that doesn't know the field.
247
291
 
248
292
  ## Pass the first startup input at launch
@@ -255,6 +299,37 @@ OpenRig records `node.startup_first_input_passed` with the path and `submission:
255
299
 
256
300
  Presets without `first_input` and built-in runtimes keep their existing behavior. Older OpenRig versions reject this new field as unknown. The private input file remains for diagnostics; it can contain private startup context. A launcher that turns its contents into one argument is subject to the platform’s argument-size limit; the launcher must report a launch error rather than silently truncate the turn. The examples’ argument transport is covered with stand-ins; native unattended startup still requires qualification with the installed harness.
257
301
 
302
+ ## Pass the seat's declared model at launch
303
+
304
+ A format-1 preset may set `passes_model: true` (a boolean, default false). Then a model declared for the seat (in the rig
305
+ spec, or set later with `rig seat set-model`) reaches its launcher as `OPENRIG_MODEL`, on new and resumed launches alike. A seat that declares no model gets none,
306
+ and an inherited `OPENRIG_MODEL` is cleared. The launcher maps it into its harness's own setting; Core knows no harness's
307
+ model flag or config key.
308
+
309
+ OpenRig keeps three things apart:
310
+ - **requested:** the declared model, as `rig ps --nodes` shows it ("configured", or "not-declared");
311
+ - **passed:** the launcher was handed the model. OpenRig records `node.startup_model_passed` with the model and whether the
312
+ launch was a resume only when the launch command's send succeeded, and a later failure of the launch doesn't undo that.
313
+ It never says passed from the declaration alone or for a launch that failed before anything was typed. When typing
314
+ began and the send then failed, the model's dispatch is uncertain: it isn't recorded as passed, and it isn't retyped;
315
+ - **effective:** the model that actually runs. OpenRig doesn't observe it for a community harness, so it reads UNKNOWN.
316
+
317
+ Passing a model never makes OpenRig pick a default, substitute another model, or retry with one. A model the harness
318
+ refuses is the harness's own error.
319
+
320
+ The examples apply the request for a new session only; on a resume, the example launcher doesn't apply it, and which
321
+ model a resumed session runs stays unknown unless the harness's own evidence says otherwise:
322
+ - **Cursor:** `--model "$OPENRIG_MODEL"` for a new chat. What a resumed chat runs hasn't been checked: the launcher leaving
323
+ out `--model` doesn't show that it keeps its earlier model.
324
+ - **Hermes:** Hermes takes its model only from the seat's `config.yaml`, so for a new session the launcher writes
325
+ `model: "<id>"` there only when that file is absent or empty. A seat that has its own `config.yaml` keeps it
326
+ byte-for-byte, and the launcher says the model wasn't applied: set it in that file. A seat set up from
327
+ `config.yaml.example` already has a config, so set its model there. Hermes v0.22.4 fixes a session's
328
+ launch settings when it creates it (its own source), so a resumed Hermes session runs with what it was created with.
329
+
330
+ Both example presets ship with `passes_model: false` until that mapping has been checked with the real harness. Presets
331
+ without the field and built-in runtimes are unchanged, and older OpenRig versions reject it as unknown.
332
+
258
333
  ## Interactive Pi in a terminal seat: the coordination skills
259
334
 
260
335
  This is for a seat that runs interactive `pi` from a `runtime: terminal` member's startup, or from a community preset's
@@ -0,0 +1,138 @@
1
+ # Execution and platform integration contract — draft
2
+
3
+ This chapter describes the placement and resource responsibilities of an integration author. The harness/runner chapter owns native protocol, model input, activity, attention, permission exchange and turn cancellation. This chapter owns where that harness runs, which files and credentials it can reach, how native state survives an environment change, and how results and resources return to their owners.
4
+
5
+ **Status:** a design contract for authors, with an existing-compatible composition and one measured private implementation. The measured baseline used OpenRig 0.7.4, OpenShell 0.1.6 and Claude Code 2.1.310. Inclusion of this draft in 0.7.6 documentation does not implement a generic environment driver, a `DeploySpec` loader or a cross-host native-resume guarantee. Proposed operations below are not commands or accepted configuration keys. Capability support must be stated for the actual integration and version.
6
+
7
+ ## Keep the identities and responsibilities separate
8
+
9
+ RigSpec composes members, their AgentSpecs/profiles, runtimes, working directories and relationships. AgentSpec supplies reusable role, startup and context declarations. A built-in runtime or registered community preset supplies a launch path. An environment integration supplies placement and provider-specific resource handling around that path. Existing declarations do not automatically provision a remote filesystem, credentials or compute.
10
+
11
+ | Identity or handle | Meaning and responsibility |
12
+ |---|---|
13
+ | Stable seat and work identity | The member's canonical address/node and owned work records. OpenRig retains this identity across executions; an environment IP or display name does not replace it. |
14
+ | Native session identity | The harness's conversation token/UUID, qualified by harness and resume-reference type. The harness owns its format and resume semantics. |
15
+ | Environment binding | The integration's durable record linking placement, immutable provider resource IDs, native-state location, projection and ownership. It is separate from the native session token. |
16
+ | Execution generation | A particular launch/process instance, with observable process/start identity when available. A new process can resume an old conversation. |
17
+ | Viewer/client | A terminal attachment or connection to an execution. Closing it need not stop either the native process or compute. |
18
+
19
+ An application service bundled with a rig is a separate responsibility. An artifact browser or database in `RigSpec.services` serves the team's application; its presence does not place an agent inside that service. Bundling service definitions also does not bundle image bytes, native binaries, authenticated homes or live runtime state.
20
+
21
+ ## A minimal composition using existing surfaces
22
+
23
+ The following is a **fragment of one pod** (`pods[].members`), using existing RigSpec fields, not a complete standalone RigSpec:
24
+
25
+ ```yaml
26
+ pods:
27
+ - id: dev
28
+ label: Development
29
+ members:
30
+ - id: coordinator
31
+ agent_ref: local:agents/coordinator
32
+ profile: default
33
+ runtime: claude-code
34
+ - id: worker
35
+ agent_ref: local:agents/worker
36
+ profile: default
37
+ runtime: example-contained-claude
38
+ ```
39
+
40
+ The worker runtime names an author-installed community preset. This preset shape uses existing fields exercised on the 0.7.4 baseline:
41
+
42
+ ```yaml
43
+ format: 1
44
+ name: example-contained-claude
45
+ maintainer: Integration author
46
+ command: ./scripts/launch-contained-worker
47
+ launch_result: true
48
+ resume: true
49
+ startup_assisted: true
50
+ limits:
51
+ - Requires an explicitly prepared environment binding and guest projection.
52
+ - Native resume is qualified only for the documented retained-state recipe.
53
+ - Viewer closure does not implement turn cancellation or resource deletion.
54
+ ```
55
+
56
+ This is an integration skeleton, not an installed or qualified preset. The author must supply the executable, resolve its path against the actual launch working directory, register the preset in the existing OpenRig home, and prepare the member's host working directory. The launcher implements the preset's declared launch-result and typed-resume behavior; the runner chapter defines those mechanics. `startup_assisted` requires a startup-submission check; it does not hold back submission or establish successful context delivery or ingestion. A member's model setting is not automatically honored by a custom launcher: its resolved native model/effort must be explicit in that launcher's supported configuration. With `passes_model: true`, Core passes the declared model through `OPENRIG_MODEL`; the launcher must map and apply it. The effective model remains unknown to Core.
57
+
58
+ For a contained worker, the launcher may resolve a private binding, create or attach to the selected resource, project explicit inputs, then connect to the native process inside it. In the measured recipe, OpenRig ran on the host, the plain coordinator used the built-in native runtime, and the worker used a private community launcher. The wrapper performed projection, provider-reference delivery, resume validation and artifact export explicitly. Those effects were not supplied by the preset declarations themselves. The integration must not assume host guidance/skills, hook paths or environment variables automatically reach a community runtime's guest.
59
+
60
+ A downstream author can implement this composition today around a qualified provider API and native harness. It remains an author-maintained integration until maintained platform support is separately implemented and documented. Validate against the target OpenRig schema and effective launch configuration; a parsed field or successful process start alone does not establish its effect.
61
+
62
+ ## Placement and launch receipts
63
+
64
+ Before mutation, resolve the selected host/provider, workspace, image/native versions, reachability, credential references, resource request and ownership. Record existing resources and the selected resource scope. Host headroom includes supervisors, gateway and other team members; a workload memory request is not proof of their combined cap. Report requested, admitted and observed resources separately. Do not infer enforced CPU/memory or isolation policy from accepted flags.
65
+
66
+ Persist a launch intent before a create operation. Use an attempt/retry identity where the provider supports it; otherwise reconcile the original operation before another create. A public binding receipt carries only nonsecret values. If the harness's native resume reference works like a bearer credential (anyone holding it can reopen the conversation), keep it in secret-held receipt data, never in the public receipt. A useful public receipt identifies:
67
+
68
+ - canonical seat, harness version and native resume-reference type;
69
+ - provider/host/workspace, immutable environment ID and execution generation;
70
+ - image/policy versions, requested resources and observed readiness;
71
+ - inner working directory, private native-state location and projection manifest;
72
+ - a public-safe native reference (never a bearer-like resume token), creator or attached-consumer disposition, and exact owned resource handles;
73
+ - lifecycle operations supported, completion observations, pending effects and errors.
74
+
75
+ A resource name or IP can be reused. Reconcile immutable ID, workspace and any available generation/fingerprint before acting. A lost response is **unconfirmed**, not success or absence. Record provider failures without exposing credentials. Readiness should identify what is ready: provider reachable, filesystem projected, native process started, team identity authenticated, or task completed.
76
+
77
+ ## Project files and credential references deliberately
78
+
79
+ Stage only declared inputs: role/startup material, selected skills, current work context, schemas and required native settings. Preserve unmanaged files and report conflicts. Review every path-bearing setting for its destination: host-only hook scripts, interpreters, status collectors and loopback URLs may not exist or be reachable in the guest. Missing activity or permission transport must remain unsupported rather than being inferred from the base harness name.
80
+
81
+ Distinguish three observations: host staging, destination delivery and native ingestion. A destination manifest can record relative path, byte count and hash; a useful task using the current context revision/nonce can show consumption. Neither observation substitutes for the other. Current working input may change between tasks while an earlier artifact stays immutable.
82
+
83
+ Retained native history is a different data class from ordinary project context. Preserve its exact bytes through the harness's supported resume path; do not edit records or synthesize a conversation. Preserve a complete checkpoint prefix with byte length/hash if the harness may append after the checkpoint. Record which native-state files are required and which remain unavailable. Never substitute a fresh conversation seeded with a report while calling it native resume.
84
+
85
+ Keep secret values out of RigSpec, preset YAML, bindings, argv and public receipts. The provider/credential owner supplies scoped references or native-supported credential helpers and controls revocation. A successful login, provider registration or model-list request is not evidence of usable inference credit or an authorized spend envelope. Do not infer subscription portability from a provider name or copy an authenticated owner home into a guest.
86
+
87
+ Authenticate guest coordination through the actual granted member route. A shared source IP is not a seat identity. Record the grant-bound principal and scope separately from resource placement; distinct principals do not imply per-seat row ACLs or isolation between co-located secrets.
88
+
89
+ ## Own only the effects assigned to the integration
90
+
91
+ Record **created** versus **attached** for each launch receipt. The creator may stop/delete the exact resource it created under the selected policy. An attached consumer normally closes only its own client and any separately identified process it owns; it must preserve the external environment, native session, workspace and shared services. Attachment must not silently transfer provider custody. An explicit owner-authorized transfer is a separate recorded action.
92
+
93
+ Describe these effects independently:
94
+
95
+ | Operation | Required distinction |
96
+ |---|---|
97
+ | Cancel a turn | Ask the runner to stop current work and observe its result. Unsupported cancellation must not be replaced silently by killing compute. |
98
+ | Close a viewer | Release that client/connection; report whether native execution continues or is unknown. |
99
+ | Stop native execution | End the identified native process and observe its exit. This is separate from task success. |
100
+ | Stop compute | Release the documented provider allocation; identify retained storage and actual provider/process state. |
101
+ | Delete an owned environment | Remove the exact creator-owned resource and reconcile final absence, including provider-managed dependents. |
102
+
103
+ Use graceful shutdown first where supported, then only explicitly owned, identified handles for stronger termination. Never equate pane disappearance with process or resource release. Persistent/non-persistent lifetime describes when execution should stop; durability describes recovery. An explicit non-persistent completion condition must name its invocation/work scope. An unrelated queue closure or an empty queue is not permission to terminate a member, and no new lifecycle YAML syntax is specified here.
104
+
105
+ ## Resume exactly, or return an honest disposition
106
+
107
+ A resume request identifies the seat, harness-qualified native reference, prior binding, expected environment boundary and retained state. Validate those before launching the native harness. Reject mismatched reference types, missing/changed history, wrong immutable resources, unavailable required files and duplicate active executions. Never use “latest” as a replacement for an exact requested conversation or silently start fresh on failure.
108
+
109
+ Separate the outcomes: same native conversation resumed; new conversation rebuilt from artifacts; fresh launch; unsupported; refused; or unconfirmed. Environment continuity has its own outcome: same retained environment, recreated compute with copied state, different host, or unknown. A matching UUID alone does not show that native history was consumed.
110
+
111
+ If a provider stops exposing file transfer after canonical-process exit, capture artifacts/history and publish any retained resume descriptor **while transfer is still available**. Verify destination bytes before shutdown. After completion, use host/provider observations instead of assuming guest exec still works. For recreated compute, explicitly transfer the retained checkpoint and required artifact into the successor environment and validate them before publishing its resume descriptor. A new environment ID is expected and must be recorded as a successor, not disguised as the old environment.
112
+
113
+ The measured private recipe demonstrated this latter boundary: the original sandbox was deleted; copied native history and task bytes were restored into new containers on the same physical host; the native harness launched with `--resume` and the retained UUID. Its first new reply recalled a private conversation-only marker before tools, with no marker in the new input and no native-history tool read. It then verified artifact 1, used changed task context, produced artifact 2 and returned it for independent coordinator verification. This establishes one bounded native-return/work result. It does **not** establish new-host migration, RAM restoration, same-container stop/start, cgroup enforcement, general portability or shipped platform support.
114
+
115
+ ## Export results before teardown
116
+
117
+ A guest path/hash note means bytes exist in a guest; it is not delivery to the consumer. Identify the actor holding the provider transfer handle. In the measured recipe that actor was the host wrapper, not the guest worker.
118
+
119
+ The worker publishes its report once and records the task/path/hash on its existing child. The wrapper validates the binding, task, allowed path, file type, size and expected hash; transfers to a fresh host staging path; checks the returned bytes/schema/context; and publishes without overwriting an existing result. It records an actual consumer-accessible destination, hash, byte count and actor through the authenticated work route. The worker closes its child after the matching export receipt; the coordinator independently reads/verifies those bytes before closing its parent. An ambiguous transfer is reconciled by existing bytes/hash, not a new report or duplicate task.
120
+
121
+ Complete exports before resource deletion. If output cannot be returned, preserve the exact resource/owner and failure state. Cleanup then reconciles the exact owned workload, supervisor, volumes and provider records to the intended stopped/absent state. Keep reused engines, caches, authenticated environments and attached resources. Revoke scoped credentials/grants through their owners and record remaining state. “Delete requested” and “absence verified” are different receipts.
122
+
123
+ ## Proposed generic platform seam — not implemented
124
+
125
+ The existing composition need not acquire another YAML format to describe these responsibilities. If a maintained platform seam is selected, the following **design pseudocode** names the smallest useful operations; it is not a loader or API available in this release:
126
+
127
+ ```text
128
+ prepare(placement, ownership, resourceRequest, credentialRefs) -> bindingReceipt
129
+ project(binding, explicitFiles, nativeCheckpoint?) -> deliveryReceipt
130
+ launch(binding, harnessLaunch, exactResumeRequest?) -> executionReceipt
131
+ observe(binding, execution) -> observedState | unsupported | unconfirmed
132
+ export(binding, artifactRequest) -> publicationReceipt
133
+ shutdown(binding, execution, selectedEffect) -> effectReceipt
134
+ ```
135
+
136
+ The provider implementation interprets its image/network/compute configuration. The runner interprets native protocol and control. Core would retain typed provenance and route the selected effects; it must not reinterpret arbitrary provider keys, leak secrets or collapse ownership into a stop boolean. Each mutating operation needs an attempt identity and reconciliation route; partial receipts remain useful after failure. Capability reporting must expose unsupported projection, cancellation, resume or cleanup rather than letting method names imply support.
137
+
138
+ The most useful author evidence follows the real work path: exact resolved placement and native launch; delivered current context; authenticated work ownership; returned artifact bytes; exact resume boundary and consumed retained state; and final resource disposition. A parser pass, launcher success, viewer reconnect or same display name leaves the corresponding effect unconfirmed. These distinctions let an author implement and diagnose an integration; they do not create a new release gate or require another runtime campaign.
@@ -191,11 +191,11 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
191
191
  script will do and changes nothing:
192
192
 
193
193
  ```sh
194
- curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.5/scripts/install.sh | sh -s -- --dry-run
194
+ curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.7/scripts/install.sh | sh -s -- --dry-run
195
195
  ```
196
196
 
197
197
  The same command without `--dry-run`,
198
- `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.5/scripts/install.sh | sh`, installs the
198
+ `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.7/scripts/install.sh | sh`, installs the
199
199
  latest published `@openrig/cli` with `npm install -g`,
200
200
  runs the Node.js and SQLite check, then `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
201
201
  Codex and may install a missing one, as described below. A failed step prints
@@ -848,13 +848,47 @@ the lifecycle API without booting a new kernel, then stop the remaining rigs.
848
848
  | "Claude resume did not finish within Ns; Claude may still be starting, so the launch was kept" | A restored Claude seat was not interactive when the wait ended. Its pane and resume token are kept. Look at the pane; once Claude is up, run `rig seat clear-attention <seat>`. The wait is about `runtime.readiness_timeout_seconds` in total for each seat (default 30 s), counting the first 3.2 s, and the time adds up seat by seat in a restore. Raising the setting for slow fresh launches lengthens it. If `rig up` or `rig launch` times out at 120 s, that is not a rollback: check `rig ps` before running it again. |
849
849
  | Daemon is healthy, kernel is still starting | Read `rig status` and `rig ps --nodes --rig kernel`; kernel readiness is separate. |
850
850
  | Kernel seats fail within a second of the first start, and tmux reports "server exited unexpectedly" | Check that your tmux can capture a pane, then start the failed seats again; see the tmux check below this table. |
851
- | Shared terminal is absent | Inspect the existing kernel binding and recovery state; use standalone `rig tui` while resolving it. |
851
+ | Shared terminal is absent | Check the kernel's `operator.human` terminal separately from its agents; recover only that seat as described below. Standalone `rig tui` remains available while resolving it. |
852
852
  | Viewing terminal was closed | Open the conversations again with `rig terminal open saved:kernel --window`; `rig tui --shared` is only the dashboard fallback if that window cannot open. Do not relaunch the team. |
853
853
  | Daemon restarted but tmux survived | Re-read `rig status` and the existing queue; a daemon restart is not a fresh project. |
854
854
  | Host reboot lost tmux sessions | Starting the daemon restores the kernel by itself when that start finds all of its seats lost; a kernel that was already down before the reboot stays down, and `rig start` names `rig up kernel --existing`. Check `rig status`, and if it reports the restore failed, run `rig up kernel --existing`. For other rigs, open `rig`, start the daemon if needed (press **S** if it opens on the work views), and select the existing rig and seats. Resume is the default; a fresh conversation needs a separate decision. |
855
855
  | Launch reports no usable snapshot | Inspect the existing rig and retained project files, then follow the same-seat recovery below. |
856
856
  | Work is waiting on a prompt or decision | Read the row, transition and named prompt; preserve the obligation until the missing decision arrives. |
857
857
 
858
+ **When the shared kernel dashboard is missing.** The dashboard runs in the
859
+ kernel's `operator.human` terminal seat. Restoring the operator, advisor and
860
+ queue worker does not also restore an unselected terminal. Read
861
+ `rig ps --nodes --rig kernel --json` and use the terminal's registered
862
+ `canonicalSessionName` for the `operator.human` row. Replace `<dashboard-session>`
863
+ in the commands below with that name. Check the actual pane with
864
+ `rig capture "<dashboard-session>"`: a persisted running row alone does not prove
865
+ that its tmux session is alive.
866
+ A daemon or transport error is not proof that the terminal is absent.
867
+
868
+ - If only the viewing window closed and the TUI is still running, reopen it
869
+ with `rig terminal open saved:kernel --window`.
870
+ - If the TUI exited but its terminal shell remains, run `rig tui` once in that
871
+ existing pane. A fresh seat is unnecessary.
872
+ - If the terminal session itself is absent, start only that existing seat:
873
+
874
+ ```sh
875
+ rig seat launch "<dashboard-session>" --fresh --reason "recover missing shared kernel dashboard"
876
+ ```
877
+
878
+ The terminal has no agent conversation to resume. Its fresh-start action
879
+ runs `rig tui` after the shell is ready; sibling agent sessions stay
880
+ unchanged. This command intentionally omits `--stop`, so it refuses to
881
+ replace a live occupant. Check the result before repeating it, then run
882
+ `rig capture "<dashboard-session>"` to confirm the TUI and
883
+ `rig ps --nodes --rig kernel --full` to check the seats. Once the dashboard
884
+ is running, open its view with `rig terminal open saved:kernel --window`.
885
+
886
+ Opening `saved:kernel` places a view of existing sessions; it cannot create a
887
+ missing terminal. Whole-kernel recovery is for the all-seats-lost case in the
888
+ table, and `rig up kernel --existing` refuses a kernel with live sessions.
889
+ A retained `excluded_from_subset` reason may come from an earlier subset
890
+ restore; inspect its event before attributing it to the latest reboot.
891
+
858
892
  **When the kernel's seats all fail at the first start.** A report on Oracle Linux 10
859
893
  ([#980](https://github.com/mvschwarz/openrig/issues/980)) traced this to the distribution's packaged tmux, whose
860
894
  `tmux -V` prints `next-3.4`: its server exited on every `capture-pane -p`, also outside OpenRig. `rig setup` (its tmux