@openrig/cli 0.7.4 → 0.7.6

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 (604) 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/assets/plugins/openrig-core/skills/queue-handoff/SKILL.md +5 -1
  7. package/daemon/context-packs/help/manifest.yaml +1 -1
  8. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  9. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +49 -8
  10. package/daemon/context-packs/reference/getting-started.md +47 -3
  11. package/daemon/context-packs/reference/manifest.yaml +1 -1
  12. package/daemon/context-packs/reference/rig-spec.md +147 -4
  13. package/daemon/context-packs/reference/whats-new.md +104 -117
  14. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  15. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  16. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  17. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  18. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  19. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  20. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  21. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  22. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  23. package/daemon/context-packs/skills/core/openrig-architect/SKILL.md +0 -1
  24. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  27. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/openrig-upgrade/SKILL.md +0 -1
  30. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/SKILL.md +11 -0
  32. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/rig-lifecycle/SKILL.md +2 -2
  34. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/queue-handoff/SKILL.md +5 -1
  65. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  71. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  72. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  73. package/daemon/dist/adapters/claude-code-adapter.d.ts +3 -3
  74. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  75. package/daemon/dist/adapters/claude-code-adapter.js +76 -28
  76. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  77. package/daemon/dist/adapters/claude-resume.d.ts +1 -1
  78. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  79. package/daemon/dist/adapters/claude-resume.js +20 -4
  80. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  81. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +1 -1
  82. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  83. package/daemon/dist/adapters/codex-runtime-adapter.js +5 -2
  84. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  85. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +2 -0
  86. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
  87. package/daemon/dist/adapters/community-harness-runtime-adapter.js +37 -14
  88. package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
  89. package/daemon/dist/adapters/pi-runner-protocol.d.ts +1 -1
  90. package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
  91. package/daemon/dist/adapters/pi-runner-protocol.js +3 -1
  92. package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
  93. package/daemon/dist/adapters/tmux.d.ts +6 -5
  94. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  95. package/daemon/dist/adapters/tmux.js +16 -12
  96. package/daemon/dist/adapters/tmux.js.map +1 -1
  97. package/daemon/dist/build-info.js +3 -3
  98. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  99. package/daemon/dist/db/all-migrations.js +6 -0
  100. package/daemon/dist/db/all-migrations.js.map +1 -1
  101. package/daemon/dist/db/migrations/126_escalation_target_refs.d.ts +4 -0
  102. package/daemon/dist/db/migrations/126_escalation_target_refs.d.ts.map +1 -0
  103. package/daemon/dist/db/migrations/126_escalation_target_refs.js +30 -0
  104. package/daemon/dist/db/migrations/126_escalation_target_refs.js.map +1 -0
  105. package/daemon/dist/db/migrations/141_node_account_home.d.ts +3 -0
  106. package/daemon/dist/db/migrations/141_node_account_home.d.ts.map +1 -0
  107. package/daemon/dist/db/migrations/141_node_account_home.js +6 -0
  108. package/daemon/dist/db/migrations/141_node_account_home.js.map +1 -0
  109. package/daemon/dist/db/migrations/141_session_agent_runner.d.ts +3 -0
  110. package/daemon/dist/db/migrations/141_session_agent_runner.d.ts.map +1 -0
  111. package/daemon/dist/db/migrations/141_session_agent_runner.js +11 -0
  112. package/daemon/dist/db/migrations/141_session_agent_runner.js.map +1 -0
  113. package/daemon/dist/domain/activity-taxonomy.d.ts +7 -2
  114. package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
  115. package/daemon/dist/domain/activity-taxonomy.js +10 -2
  116. package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
  117. package/daemon/dist/domain/agent-activity-store.d.ts +6 -3
  118. package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
  119. package/daemon/dist/domain/agent-activity-store.js +18 -10
  120. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  121. package/daemon/dist/domain/claim-service.js +1 -1
  122. package/daemon/dist/domain/claim-service.js.map +1 -1
  123. package/daemon/dist/domain/claude-credential-precedence.d.ts +8 -0
  124. package/daemon/dist/domain/claude-credential-precedence.d.ts.map +1 -1
  125. package/daemon/dist/domain/claude-credential-precedence.js +49 -4
  126. package/daemon/dist/domain/claude-credential-precedence.js.map +1 -1
  127. package/daemon/dist/domain/claude-managed-launch.d.ts +24 -3
  128. package/daemon/dist/domain/claude-managed-launch.d.ts.map +1 -1
  129. package/daemon/dist/domain/claude-managed-launch.js +92 -29
  130. package/daemon/dist/domain/claude-managed-launch.js.map +1 -1
  131. package/daemon/dist/domain/claude-seat-token.d.ts +14 -2
  132. package/daemon/dist/domain/claude-seat-token.d.ts.map +1 -1
  133. package/daemon/dist/domain/claude-seat-token.js +54 -7
  134. package/daemon/dist/domain/claude-seat-token.js.map +1 -1
  135. package/daemon/dist/domain/codex-rebuild-permissions.d.ts.map +1 -1
  136. package/daemon/dist/domain/codex-rebuild-permissions.js +6 -4
  137. package/daemon/dist/domain/codex-rebuild-permissions.js.map +1 -1
  138. package/daemon/dist/domain/community-harness-presets.d.ts +5 -0
  139. package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
  140. package/daemon/dist/domain/community-harness-presets.js +9 -2
  141. package/daemon/dist/domain/community-harness-presets.js.map +1 -1
  142. package/daemon/dist/domain/composer-prompts.d.ts +13 -0
  143. package/daemon/dist/domain/composer-prompts.d.ts.map +1 -1
  144. package/daemon/dist/domain/composer-prompts.js +32 -0
  145. package/daemon/dist/domain/composer-prompts.js.map +1 -1
  146. package/daemon/dist/domain/escalation-owner.d.ts +13 -0
  147. package/daemon/dist/domain/escalation-owner.d.ts.map +1 -0
  148. package/daemon/dist/domain/escalation-owner.js +92 -0
  149. package/daemon/dist/domain/escalation-owner.js.map +1 -0
  150. package/daemon/dist/domain/escalation-target-ref.d.ts +3 -0
  151. package/daemon/dist/domain/escalation-target-ref.d.ts.map +1 -0
  152. package/daemon/dist/domain/escalation-target-ref.js +6 -0
  153. package/daemon/dist/domain/escalation-target-ref.js.map +1 -0
  154. package/daemon/dist/domain/gateway/destination-resolver.d.ts +2 -0
  155. package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
  156. package/daemon/dist/domain/gateway/destination-resolver.js +10 -1
  157. package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
  158. package/daemon/dist/domain/gateway/slack/config.d.ts +7 -0
  159. package/daemon/dist/domain/gateway/slack/config.d.ts.map +1 -1
  160. package/daemon/dist/domain/gateway/slack/config.js +5 -0
  161. package/daemon/dist/domain/gateway/slack/config.js.map +1 -1
  162. package/daemon/dist/domain/gateway/slack/inbound.d.ts +4 -0
  163. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  164. package/daemon/dist/domain/gateway/slack/inbound.js +11 -3
  165. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  166. package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
  167. package/daemon/dist/domain/gateway/slack/queue-access.js +8 -15
  168. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  169. package/daemon/dist/domain/gateway/slack/slack-api.d.ts +5 -1
  170. package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
  171. package/daemon/dist/domain/gateway/slack/slack-api.js +7 -1
  172. package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
  173. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +3 -0
  174. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
  175. package/daemon/dist/domain/gateway/slack/slack-delivery.js +12 -5
  176. package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
  177. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  178. package/daemon/dist/domain/gateway/slack/slack-subsystem.js +19 -5
  179. package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  180. package/daemon/dist/domain/graph-projection.d.ts.map +1 -1
  181. package/daemon/dist/domain/graph-projection.js +2 -1
  182. package/daemon/dist/domain/graph-projection.js.map +1 -1
  183. package/daemon/dist/domain/markdown-address.d.ts.map +1 -1
  184. package/daemon/dist/domain/markdown-address.js +14 -1
  185. package/daemon/dist/domain/markdown-address.js.map +1 -1
  186. package/daemon/dist/domain/mission-control/notification-adapter-ntfy.d.ts.map +1 -1
  187. package/daemon/dist/domain/mission-control/notification-adapter-ntfy.js +2 -0
  188. package/daemon/dist/domain/mission-control/notification-adapter-ntfy.js.map +1 -1
  189. package/daemon/dist/domain/mission-control/notification-adapter-webhook.d.ts.map +1 -1
  190. package/daemon/dist/domain/mission-control/notification-adapter-webhook.js +2 -0
  191. package/daemon/dist/domain/mission-control/notification-adapter-webhook.js.map +1 -1
  192. package/daemon/dist/domain/model-divergence/current-model-reader.d.ts +1 -1
  193. package/daemon/dist/domain/model-divergence/current-model-reader.d.ts.map +1 -1
  194. package/daemon/dist/domain/model-divergence/current-model-reader.js.map +1 -1
  195. package/daemon/dist/domain/native-process-arguments.d.ts +7 -0
  196. package/daemon/dist/domain/native-process-arguments.d.ts.map +1 -0
  197. package/daemon/dist/domain/native-process-arguments.js +188 -0
  198. package/daemon/dist/domain/native-process-arguments.js.map +1 -0
  199. package/daemon/dist/domain/native-process-lineage.d.ts +8 -0
  200. package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
  201. package/daemon/dist/domain/native-process-lineage.js +87 -29
  202. package/daemon/dist/domain/native-process-lineage.js.map +1 -1
  203. package/daemon/dist/domain/native-resume-probe.d.ts +3 -0
  204. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  205. package/daemon/dist/domain/native-resume-probe.js +7 -0
  206. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  207. package/daemon/dist/domain/node-inventory.d.ts +3 -3
  208. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  209. package/daemon/dist/domain/node-inventory.js +40 -29
  210. package/daemon/dist/domain/node-inventory.js.map +1 -1
  211. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  212. package/daemon/dist/domain/node-launcher.js +6 -4
  213. package/daemon/dist/domain/node-launcher.js.map +1 -1
  214. package/daemon/dist/domain/pane-cutover.d.ts +1 -1
  215. package/daemon/dist/domain/pane-cutover.d.ts.map +1 -1
  216. package/daemon/dist/domain/pane-cutover.js +3 -3
  217. package/daemon/dist/domain/pane-cutover.js.map +1 -1
  218. package/daemon/dist/domain/periodic-snapshot-scheduler.d.ts +3 -0
  219. package/daemon/dist/domain/periodic-snapshot-scheduler.d.ts.map +1 -1
  220. package/daemon/dist/domain/periodic-snapshot-scheduler.js +15 -11
  221. package/daemon/dist/domain/periodic-snapshot-scheduler.js.map +1 -1
  222. package/daemon/dist/domain/policies/parked-owner-consumer.js +1 -1
  223. package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
  224. package/daemon/dist/domain/process-table.d.ts +2 -0
  225. package/daemon/dist/domain/process-table.d.ts.map +1 -1
  226. package/daemon/dist/domain/process-table.js +3 -0
  227. package/daemon/dist/domain/process-table.js.map +1 -1
  228. package/daemon/dist/domain/proof/source-watch.d.ts +1 -1
  229. package/daemon/dist/domain/proof/source-watch.d.ts.map +1 -1
  230. package/daemon/dist/domain/proof/source-watch.js +14 -1
  231. package/daemon/dist/domain/proof/source-watch.js.map +1 -1
  232. package/daemon/dist/domain/provider/claude-seat-switch.d.ts.map +1 -1
  233. package/daemon/dist/domain/provider/claude-seat-switch.js +19 -9
  234. package/daemon/dist/domain/provider/claude-seat-switch.js.map +1 -1
  235. package/daemon/dist/domain/provider/provider-service-impl.d.ts.map +1 -1
  236. package/daemon/dist/domain/provider/provider-service-impl.js +3 -0
  237. package/daemon/dist/domain/provider/provider-service-impl.js.map +1 -1
  238. package/daemon/dist/domain/provider/provider-service.d.ts +6 -0
  239. package/daemon/dist/domain/provider/provider-service.d.ts.map +1 -1
  240. package/daemon/dist/domain/provider/provider-types.d.ts +3 -2
  241. package/daemon/dist/domain/provider/provider-types.d.ts.map +1 -1
  242. package/daemon/dist/domain/ps-projection.d.ts +4 -3
  243. package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
  244. package/daemon/dist/domain/ps-projection.js +10 -7
  245. package/daemon/dist/domain/ps-projection.js.map +1 -1
  246. package/daemon/dist/domain/queue-repository.d.ts +16 -2
  247. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  248. package/daemon/dist/domain/queue-repository.js +102 -24
  249. package/daemon/dist/domain/queue-repository.js.map +1 -1
  250. package/daemon/dist/domain/queue-stuck-sweep.d.ts +2 -2
  251. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  252. package/daemon/dist/domain/queue-stuck-sweep.js +151 -27
  253. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  254. package/daemon/dist/domain/queue-transition-log.d.ts +14 -0
  255. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  256. package/daemon/dist/domain/queue-transition-log.js +53 -0
  257. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  258. package/daemon/dist/domain/queue-waiting.d.ts +1 -1
  259. package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
  260. package/daemon/dist/domain/queue-waiting.js +5 -4
  261. package/daemon/dist/domain/queue-waiting.js.map +1 -1
  262. package/daemon/dist/domain/queue-wake-ladder.d.ts +1 -1
  263. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  264. package/daemon/dist/domain/queue-wake-ladder.js +186 -48
  265. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  266. package/daemon/dist/domain/reply-to-choice.d.ts +3 -0
  267. package/daemon/dist/domain/reply-to-choice.d.ts.map +1 -1
  268. package/daemon/dist/domain/reply-to-choice.js +12 -0
  269. package/daemon/dist/domain/reply-to-choice.js.map +1 -1
  270. package/daemon/dist/domain/restore-orchestrator.d.ts +7 -2
  271. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  272. package/daemon/dist/domain/restore-orchestrator.js +69 -22
  273. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  274. package/daemon/dist/domain/rig-edge-ops.d.ts +1 -1
  275. package/daemon/dist/domain/rig-edge-ops.d.ts.map +1 -1
  276. package/daemon/dist/domain/rig-edge-ops.js +8 -6
  277. package/daemon/dist/domain/rig-edge-ops.js.map +1 -1
  278. package/daemon/dist/domain/rig-expansion-service.d.ts.map +1 -1
  279. package/daemon/dist/domain/rig-expansion-service.js +20 -35
  280. package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
  281. package/daemon/dist/domain/rig-repository.d.ts +3 -1
  282. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  283. package/daemon/dist/domain/rig-repository.js +37 -9
  284. package/daemon/dist/domain/rig-repository.js.map +1 -1
  285. package/daemon/dist/domain/rig-teardown.d.ts +2 -2
  286. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  287. package/daemon/dist/domain/rig-teardown.js +9 -5
  288. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  289. package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
  290. package/daemon/dist/domain/rigspec-codec.js +4 -0
  291. package/daemon/dist/domain/rigspec-codec.js.map +1 -1
  292. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  293. package/daemon/dist/domain/rigspec-exporter.js +7 -3
  294. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  295. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  296. package/daemon/dist/domain/rigspec-instantiator.js +12 -8
  297. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  298. package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  299. package/daemon/dist/domain/rigspec-schema.js +37 -2
  300. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  301. package/daemon/dist/domain/rosters.d.ts +2 -0
  302. package/daemon/dist/domain/rosters.d.ts.map +1 -1
  303. package/daemon/dist/domain/rosters.js +6 -0
  304. package/daemon/dist/domain/rosters.js.map +1 -1
  305. package/daemon/dist/domain/runtime-adapter.d.ts +11 -0
  306. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  307. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  308. package/daemon/dist/domain/scope/scope-audit.d.ts +1 -0
  309. package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
  310. package/daemon/dist/domain/scope/scope-audit.js +4 -0
  311. package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
  312. package/daemon/dist/domain/seat-activity-service.d.ts +8 -1
  313. package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
  314. package/daemon/dist/domain/seat-activity-service.js +92 -35
  315. package/daemon/dist/domain/seat-activity-service.js.map +1 -1
  316. package/daemon/dist/domain/seat-attention-reconciler.js +2 -2
  317. package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
  318. package/daemon/dist/domain/seat-delivery-guard.d.ts +1 -1
  319. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  320. package/daemon/dist/domain/seat-delivery-guard.js +11 -2
  321. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  322. package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
  323. package/daemon/dist/domain/seat-identity-reconciler.js +13 -1
  324. package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
  325. package/daemon/dist/domain/seat-launch-environment.d.ts +4 -1
  326. package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
  327. package/daemon/dist/domain/seat-launch-environment.js +21 -8
  328. package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
  329. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  330. package/daemon/dist/domain/seat-lifecycle-service.js +19 -11
  331. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  332. package/daemon/dist/domain/seat-restart-in-place.d.ts +1 -1
  333. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  334. package/daemon/dist/domain/seat-restart-in-place.js +66 -13
  335. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  336. package/daemon/dist/domain/seat-runtime-home.d.ts +7 -3
  337. package/daemon/dist/domain/seat-runtime-home.d.ts.map +1 -1
  338. package/daemon/dist/domain/seat-runtime-home.js +32 -3
  339. package/daemon/dist/domain/seat-runtime-home.js.map +1 -1
  340. package/daemon/dist/domain/seat-runtime-switch-service.d.ts +13 -0
  341. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  342. package/daemon/dist/domain/seat-runtime-switch-service.js +48 -6
  343. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  344. package/daemon/dist/domain/seat-status-service.d.ts +4 -2
  345. package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
  346. package/daemon/dist/domain/seat-status-service.js +5 -3
  347. package/daemon/dist/domain/seat-status-service.js.map +1 -1
  348. package/daemon/dist/domain/session-registry.d.ts +10 -2
  349. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  350. package/daemon/dist/domain/session-registry.js +24 -2
  351. package/daemon/dist/domain/session-registry.js.map +1 -1
  352. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  353. package/daemon/dist/domain/session-transport.js +39 -18
  354. package/daemon/dist/domain/session-transport.js.map +1 -1
  355. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  356. package/daemon/dist/domain/startup-orchestrator.js +12 -2
  357. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  358. package/daemon/dist/domain/startup-proof.d.ts +3 -1
  359. package/daemon/dist/domain/startup-proof.d.ts.map +1 -1
  360. package/daemon/dist/domain/startup-proof.js +7 -2
  361. package/daemon/dist/domain/startup-proof.js.map +1 -1
  362. package/daemon/dist/domain/successor-session-launcher.d.ts +1 -1
  363. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  364. package/daemon/dist/domain/terminal/herdr-adapter.d.ts +13 -5
  365. package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
  366. package/daemon/dist/domain/terminal/herdr-adapter.js +55 -79
  367. package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
  368. package/daemon/dist/domain/terminal/herdr-follow-view.d.ts +28 -0
  369. package/daemon/dist/domain/terminal/herdr-follow-view.d.ts.map +1 -0
  370. package/daemon/dist/domain/terminal/herdr-follow-view.js +355 -0
  371. package/daemon/dist/domain/terminal/herdr-follow-view.js.map +1 -0
  372. package/daemon/dist/domain/terminal/herdr-sessions.d.ts +2 -1
  373. package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
  374. package/daemon/dist/domain/terminal/herdr-sessions.js +34 -9
  375. package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
  376. package/daemon/dist/domain/terminal/herdr-transport.d.ts +3 -2
  377. package/daemon/dist/domain/terminal/herdr-transport.d.ts.map +1 -1
  378. package/daemon/dist/domain/terminal/herdr-transport.js +10 -6
  379. package/daemon/dist/domain/terminal/herdr-transport.js.map +1 -1
  380. package/daemon/dist/domain/terminal/herdr-viewer.d.ts +84 -0
  381. package/daemon/dist/domain/terminal/herdr-viewer.d.ts.map +1 -0
  382. package/daemon/dist/domain/terminal/herdr-viewer.js +311 -0
  383. package/daemon/dist/domain/terminal/herdr-viewer.js.map +1 -0
  384. package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts +28 -0
  385. package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts.map +1 -0
  386. package/daemon/dist/domain/terminal/scope-task-terminal-view.js +268 -0
  387. package/daemon/dist/domain/terminal/scope-task-terminal-view.js.map +1 -0
  388. package/daemon/dist/domain/terminal/task-terminal-view.d.ts +12 -2
  389. package/daemon/dist/domain/terminal/task-terminal-view.d.ts.map +1 -1
  390. package/daemon/dist/domain/terminal/task-terminal-view.js +6 -1
  391. package/daemon/dist/domain/terminal/task-terminal-view.js.map +1 -1
  392. package/daemon/dist/domain/terminal/terminal-follow-policy.d.ts +65 -0
  393. package/daemon/dist/domain/terminal/terminal-follow-policy.d.ts.map +1 -0
  394. package/daemon/dist/domain/terminal/terminal-follow-policy.js +93 -0
  395. package/daemon/dist/domain/terminal/terminal-follow-policy.js.map +1 -0
  396. package/daemon/dist/domain/terminal/terminal-following.d.ts +39 -0
  397. package/daemon/dist/domain/terminal/terminal-following.d.ts.map +1 -0
  398. package/daemon/dist/domain/terminal/terminal-following.js +135 -0
  399. package/daemon/dist/domain/terminal/terminal-following.js.map +1 -0
  400. package/daemon/dist/domain/terminal/terminal-provider.d.ts +10 -0
  401. package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
  402. package/daemon/dist/domain/terminal/terminal-service.d.ts +29 -0
  403. package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
  404. package/daemon/dist/domain/terminal/terminal-service.js +143 -35
  405. package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
  406. package/daemon/dist/domain/terminal/tile-attach.js +1 -1
  407. package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
  408. package/daemon/dist/domain/terminal/view-composer.js +1 -1
  409. package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
  410. package/daemon/dist/domain/types.d.ts +37 -2
  411. package/daemon/dist/domain/types.d.ts.map +1 -1
  412. package/daemon/dist/domain/types.js +5 -0
  413. package/daemon/dist/domain/types.js.map +1 -1
  414. package/daemon/dist/domain/workflow-runtime.js +1 -1
  415. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  416. package/daemon/dist/index.d.ts.map +1 -1
  417. package/daemon/dist/index.js +1 -0
  418. package/daemon/dist/index.js.map +1 -1
  419. package/daemon/dist/routes/activity.d.ts.map +1 -1
  420. package/daemon/dist/routes/activity.js +58 -7
  421. package/daemon/dist/routes/activity.js.map +1 -1
  422. package/daemon/dist/routes/provider.d.ts +1 -0
  423. package/daemon/dist/routes/provider.d.ts.map +1 -1
  424. package/daemon/dist/routes/provider.js +49 -10
  425. package/daemon/dist/routes/provider.js.map +1 -1
  426. package/daemon/dist/routes/rigs.js +3 -97
  427. package/daemon/dist/routes/rigs.js.map +1 -1
  428. package/daemon/dist/routes/scope-audit.d.ts.map +1 -1
  429. package/daemon/dist/routes/scope-audit.js +2 -2
  430. package/daemon/dist/routes/scope-audit.js.map +1 -1
  431. package/daemon/dist/routes/seat.d.ts +4 -1
  432. package/daemon/dist/routes/seat.d.ts.map +1 -1
  433. package/daemon/dist/routes/seat.js +8 -2
  434. package/daemon/dist/routes/seat.js.map +1 -1
  435. package/daemon/dist/routes/sessions.js +4 -3
  436. package/daemon/dist/routes/sessions.js.map +1 -1
  437. package/daemon/dist/routes/slices.d.ts.map +1 -1
  438. package/daemon/dist/routes/slices.js +1 -0
  439. package/daemon/dist/routes/slices.js.map +1 -1
  440. package/daemon/dist/routes/terminal.d.ts +3 -1
  441. package/daemon/dist/routes/terminal.d.ts.map +1 -1
  442. package/daemon/dist/routes/terminal.js +61 -3
  443. package/daemon/dist/routes/terminal.js.map +1 -1
  444. package/daemon/dist/routes/transport.d.ts.map +1 -1
  445. package/daemon/dist/routes/transport.js +3 -0
  446. package/daemon/dist/routes/transport.js.map +1 -1
  447. package/daemon/dist/server.js +1 -1
  448. package/daemon/dist/server.js.map +1 -1
  449. package/daemon/dist/startup.d.ts.map +1 -1
  450. package/daemon/dist/startup.js +35 -11
  451. package/daemon/dist/startup.js.map +1 -1
  452. package/daemon/docs/reference/agent-startup-guide.md +9 -0
  453. package/daemon/docs/reference/agent-state-taxonomy.md +21 -1
  454. package/daemon/docs/reference/author-contracts.md +74 -0
  455. package/daemon/docs/reference/community-harness-examples/cursor/cursor.yaml +1 -0
  456. package/daemon/docs/reference/community-harness-examples/cursor/openrig-cursor-launch +6 -0
  457. package/daemon/docs/reference/community-harness-examples/hermes/hermes.yaml +1 -0
  458. package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +15 -0
  459. package/daemon/docs/reference/community-harness-examples/pi-tui/openrig-pi-tui-launch +100 -0
  460. package/daemon/docs/reference/community-harness-examples/pi-tui/pi-tui.yaml +15 -0
  461. package/daemon/docs/reference/community-harness-presets.md +155 -3
  462. package/daemon/docs/reference/edge-types.md +40 -11
  463. package/daemon/docs/reference/execution-platform-contract.md +138 -0
  464. package/daemon/docs/reference/getting-started.md +47 -3
  465. package/daemon/docs/reference/harness-runner-contract.md +242 -0
  466. package/daemon/docs/reference/hosted-members.md +5 -1
  467. package/daemon/docs/reference/publishing-a-rig-bundle.md +5 -0
  468. package/daemon/docs/reference/quickstart.md +1 -1
  469. package/daemon/docs/reference/rig-spec.md +147 -4
  470. package/daemon/docs/reference/sdlc-conventions.md +6 -0
  471. package/daemon/docs/reference/seat-delivery.md +6 -0
  472. package/daemon/docs/reference/slack-app-setup.md +8 -0
  473. package/daemon/docs/reference/terminal-sessions.md +215 -7
  474. package/daemon/docs/reference/whats-new.md +104 -117
  475. package/daemon/specs/agents/shared/skills/core/openrig-architect/SKILL.md +0 -1
  476. package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +0 -1
  477. package/daemon/specs/agents/shared/skills/core/rig-bundles-and-shareable-artifacts/SKILL.md +11 -0
  478. package/daemon/specs/agents/shared/skills/core/rig-lifecycle/SKILL.md +2 -2
  479. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +11 -2
  480. package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +2 -1
  481. package/dist/build-info.js +3 -3
  482. package/dist/client.js +3 -3
  483. package/dist/client.js.map +1 -1
  484. package/dist/commands/attach.d.ts.map +1 -1
  485. package/dist/commands/attach.js +9 -9
  486. package/dist/commands/attach.js.map +1 -1
  487. package/dist/commands/capture.d.ts.map +1 -1
  488. package/dist/commands/capture.js +12 -4
  489. package/dist/commands/capture.js.map +1 -1
  490. package/dist/commands/chatroom.d.ts +7 -0
  491. package/dist/commands/chatroom.d.ts.map +1 -1
  492. package/dist/commands/chatroom.js +21 -4
  493. package/dist/commands/chatroom.js.map +1 -1
  494. package/dist/commands/crash-cart.d.ts +6 -0
  495. package/dist/commands/crash-cart.d.ts.map +1 -1
  496. package/dist/commands/crash-cart.js +10 -5
  497. package/dist/commands/crash-cart.js.map +1 -1
  498. package/dist/commands/edge.d.ts.map +1 -1
  499. package/dist/commands/edge.js +10 -5
  500. package/dist/commands/edge.js.map +1 -1
  501. package/dist/commands/host.d.ts +8 -0
  502. package/dist/commands/host.d.ts.map +1 -1
  503. package/dist/commands/host.js +74 -8
  504. package/dist/commands/host.js.map +1 -1
  505. package/dist/commands/mcp.d.ts.map +1 -1
  506. package/dist/commands/mcp.js +4 -1
  507. package/dist/commands/mcp.js.map +1 -1
  508. package/dist/commands/provider.d.ts +1 -0
  509. package/dist/commands/provider.d.ts.map +1 -1
  510. package/dist/commands/provider.js +146 -7
  511. package/dist/commands/provider.js.map +1 -1
  512. package/dist/commands/queue.d.ts.map +1 -1
  513. package/dist/commands/queue.js +40 -11
  514. package/dist/commands/queue.js.map +1 -1
  515. package/dist/commands/scope.js +3 -3
  516. package/dist/commands/scope.js.map +1 -1
  517. package/dist/commands/seat.d.ts +1 -0
  518. package/dist/commands/seat.d.ts.map +1 -1
  519. package/dist/commands/seat.js +61 -9
  520. package/dist/commands/seat.js.map +1 -1
  521. package/dist/commands/send.d.ts.map +1 -1
  522. package/dist/commands/send.js +18 -23
  523. package/dist/commands/send.js.map +1 -1
  524. package/dist/commands/slack.d.ts.map +1 -1
  525. package/dist/commands/slack.js +2 -0
  526. package/dist/commands/slack.js.map +1 -1
  527. package/dist/commands/start.d.ts.map +1 -1
  528. package/dist/commands/start.js +7 -0
  529. package/dist/commands/start.js.map +1 -1
  530. package/dist/commands/startup-proof.d.ts.map +1 -1
  531. package/dist/commands/startup-proof.js +4 -1
  532. package/dist/commands/startup-proof.js.map +1 -1
  533. package/dist/commands/status.d.ts.map +1 -1
  534. package/dist/commands/status.js +3 -1
  535. package/dist/commands/status.js.map +1 -1
  536. package/dist/commands/terminal.d.ts +32 -0
  537. package/dist/commands/terminal.d.ts.map +1 -1
  538. package/dist/commands/terminal.js +31 -9
  539. package/dist/commands/terminal.js.map +1 -1
  540. package/dist/commands/transcript.js +1 -1
  541. package/dist/commands/transcript.js.map +1 -1
  542. package/dist/daemon-lifecycle.d.ts.map +1 -1
  543. package/dist/daemon-lifecycle.js +29 -4
  544. package/dist/daemon-lifecycle.js.map +1 -1
  545. package/dist/lib/account-home-switch.d.ts +6 -0
  546. package/dist/lib/account-home-switch.d.ts.map +1 -0
  547. package/dist/lib/account-home-switch.js +8 -0
  548. package/dist/lib/account-home-switch.js.map +1 -0
  549. package/dist/lib/scope/scope-audit.d.ts +1 -0
  550. package/dist/lib/scope/scope-audit.d.ts.map +1 -1
  551. package/dist/lib/scope/scope-audit.js +4 -0
  552. package/dist/lib/scope/scope-audit.js.map +1 -1
  553. package/dist/lib/scope/scope-fs.d.ts.map +1 -1
  554. package/dist/lib/scope/scope-fs.js +13 -4
  555. package/dist/lib/scope/scope-fs.js.map +1 -1
  556. package/dist/mcp-server.d.ts +1 -1
  557. package/dist/mcp-server.d.ts.map +1 -1
  558. package/dist/mcp-server.js +4 -3
  559. package/dist/mcp-server.js.map +1 -1
  560. package/dist/openrig-compat.d.ts +9 -1
  561. package/dist/openrig-compat.d.ts.map +1 -1
  562. package/dist/openrig-compat.js +19 -3
  563. package/dist/openrig-compat.js.map +1 -1
  564. package/dist/terminal-window.d.ts +3 -3
  565. package/dist/terminal-window.d.ts.map +1 -1
  566. package/dist/terminal-window.js +31 -5
  567. package/dist/terminal-window.js.map +1 -1
  568. package/package.json +1 -1
  569. package/tui/dist/attention/attention-model.js +9 -7
  570. package/tui/dist/attention/attention-model.js.map +1 -1
  571. package/tui/dist/config/config-model.d.ts.map +1 -1
  572. package/tui/dist/config/config-model.js +2 -2
  573. package/tui/dist/config/config-model.js.map +1 -1
  574. package/tui/dist/daemon-client.d.ts +1 -0
  575. package/tui/dist/daemon-client.d.ts.map +1 -1
  576. package/tui/dist/daemon-client.js +1 -1
  577. package/tui/dist/daemon-client.js.map +1 -1
  578. package/tui/dist/health/health-model.d.ts.map +1 -1
  579. package/tui/dist/health/health-model.js +2 -2
  580. package/tui/dist/health/health-model.js.map +1 -1
  581. package/tui/dist/hydrate.d.ts.map +1 -1
  582. package/tui/dist/hydrate.js +3 -0
  583. package/tui/dist/hydrate.js.map +1 -1
  584. package/tui/dist/navigator.d.ts.map +1 -1
  585. package/tui/dist/navigator.js +8 -5
  586. package/tui/dist/navigator.js.map +1 -1
  587. package/tui/dist/render.d.ts.map +1 -1
  588. package/tui/dist/render.js +17 -14
  589. package/tui/dist/render.js.map +1 -1
  590. package/tui/dist/state.d.ts.map +1 -1
  591. package/tui/dist/state.js +2 -1
  592. package/tui/dist/state.js.map +1 -1
  593. package/tui/dist/stylize.js +1 -1
  594. package/tui/dist/stylize.js.map +1 -1
  595. package/tui/dist/terminals/open-window.js +2 -2
  596. package/tui/dist/terminals/open-window.js.map +1 -1
  597. package/tui/dist/topology/host-label.d.ts +7 -0
  598. package/tui/dist/topology/host-label.d.ts.map +1 -0
  599. package/tui/dist/topology/host-label.js +34 -0
  600. package/tui/dist/topology/host-label.js.map +1 -0
  601. package/tui/dist/types.d.ts +3 -0
  602. package/tui/dist/types.d.ts.map +1 -1
  603. package/ui/dist/assets/{index-DV0UNxFw.js → index-CMBgYrS7.js} +166 -166
  604. package/ui/dist/index.html +1 -1
@@ -0,0 +1,74 @@
1
+ # Integration author contracts — DRAFT for 0.7.6
2
+
3
+ OpenRig composes agents into a team. An integration author supplies the pieces that let a new harness participate, or let an existing harness run in a new environment. This guide divides that work into two contracts:
4
+
5
+ 1. **[Harness and runner](harness-runner-contract.md):** launch the agent, report its conversation identity and activity, deliver input, handle permission requests and cancellation, and reopen the requested conversation.
6
+ 2. **[Execution and platform](execution-platform-contract.md):** choose placement, deliver files and credential references, distinguish owned from attached resources, preserve native state, return artifacts and reconcile shutdown.
7
+
8
+ These are draft author responsibilities. Some use implemented OpenRig interfaces; others describe a proposed integration whose code remains with its author. Including the guide in release documentation does not make every described capability available.
9
+
10
+ ## Candidate and support status
11
+
12
+ This draft targets the **unsealed 0.7.6 candidate**. Its implemented-interface baseline is commit [`b6bd4633`](https://github.com/mvschwarz/openrig/tree/b6bd4633fbd94634a2b4bdef2574a6880f97be63). That base includes the runner declaration and `passes_model` changes. Later release repairs and version text are still being assembled; no final tag or package publication is asserted here. References below use the immutable base instead of a moving branch.
13
+
14
+ | Area | Status at this baseline | What the status means |
15
+ |---|---|---|
16
+ | Community launcher presets, RigSpec members and AgentSpec role/startup declarations | Implemented interfaces | They compose configuration. A launcher must implement its declared effects; successful parsing does not prove delivery or native behavior. |
17
+ | `runner: true` with `launch_result: true` | Implemented candidate source | The declaration is retained at launch, and Core uses the runner identity/activity path. It does not supply a runner executable. |
18
+ | `passes_model: true` | Implemented candidate source | Passes the declared model through `OPENRIG_MODEL`. It does not observe or verify the effective native model. Cursor and Hermes examples leave it off pending native qualification. |
19
+ | The dsh/ACP input, cancellation and refusal-first permission recipe | Proposed author implementation | No end-to-end dsh integration is established. Native reopen capabilities and the tools-off case remain implementer questions. |
20
+ | Exact native resume via an author launcher | Existing interface; integration-specific evidence | A requested conversation must reopen exactly or fail honestly. One provider/harness result does not establish portability to another. |
21
+ | Environment preparation, projection, artifact export and owned-resource cleanup | Measured in a private wrapper; generic seam proposed | The platform chapter makes the responsibilities reusable. Core does not provide a generic platform driver or `DeploySpec` loader at this baseline. |
22
+ | `HarnessSpec`, `DeploySpec`, generic lifecycle fields and wake-on-demand declarations | Proposed vocabulary or unsupported configuration | They are not new accepted YAML keys. Use existing composition and an explicit author implementation. |
23
+ | Cross-host native resume, provider-wide cancellation or permission support | Unresolved unless qualified by an integration | Unsupported and untested are distinct from observed failure. Publish the actual boundary and version. |
24
+
25
+ ## How the pieces compose
26
+
27
+ ```mermaid
28
+ flowchart TD
29
+ R["RigSpec: members, relationships, work arrangement"] --> A["AgentSpec: role, context and startup declarations"]
30
+ R --> H["Built-in runtime or community preset"]
31
+ H --> N["Harness / runner: native conversation and control"]
32
+ H --> P["Author platform integration: placement and resources"]
33
+ P --> N
34
+ P --> F["Workspace, retained state and returned artifacts"]
35
+ R --> S["Optional application services"]
36
+ ```
37
+
38
+ **RigSpec remains the composer.** AgentSpec describes reusable agent intent; the runtime or preset selects how the native agent starts. An integration can surround that launch with an environment-specific wrapper. A bundled application's database or Compose service is software the team operates; it is distinct from the environment in which an agent executes.
39
+
40
+ The terminal provider, native harness protocol and network connection also have different jobs. A terminal provider carries input and output; a runner understands native turn boundaries; a granted MCP or other connection exposes coordination operations. An HTTPS connection does not by itself provision compute, awaken a suspended application or establish native resume. Each integration states which of those effects it implements.
41
+
42
+ | Owner | Responsibility |
43
+ |---|---|
44
+ | OpenRig Core | Team and work identity, queue records, existing launcher contracts, activity interpretation and declared configuration. |
45
+ | Harness/runner author | Native launch and protocol, exact native reference, prompt framing, truthful activity, permission/cancel behavior and native resume. |
46
+ | Platform integration author | Placement binding, destination projection, resource ownership, state transfer, artifact delivery and resource reconciliation. |
47
+ | Operator / credential owner | Selected environments, grants, provider credentials and spending authority. |
48
+
49
+ The queue records who owns work. It does not prove that an old provider process has stopped, that a new runtime consumed its history, or that guest bytes reached the consumer. Those observations belong in the launch, resume and export receipts alongside the work record. This division reuses the queue rather than creating another task system.
50
+
51
+ ## Start from an existing example
52
+
53
+ For a terminal harness, begin with the pinned [community preset reference](https://github.com/mvschwarz/openrig/blob/b6bd4633fbd94634a2b4bdef2574a6880f97be63/docs/reference/community-harness-presets.md) and the [Cursor](https://github.com/mvschwarz/openrig/tree/b6bd4633fbd94634a2b4bdef2574a6880f97be63/docs/reference/community-harness-examples/cursor) or [Hermes](https://github.com/mvschwarz/openrig/tree/b6bd4633fbd94634a2b4bdef2574a6880f97be63/docs/reference/community-harness-examples/hermes) directory. Their presence is source guidance, not an effective-model or complete integration guarantee.
54
+
55
+ For a structured runner, the [runner chapter](harness-runner-contract.md#2-declare-it-what-the-preset-says-fixed-at-launch) supplies a minimal preset, launch record and activity message. The executable named by the preset must still be implemented and installed by its author.
56
+
57
+ For a contained worker, the [platform composition](execution-platform-contract.md#a-minimal-composition-using-existing-surfaces) pairs an ordinary coordinator with a worker preset. It uses existing member and preset fields. The wrapper must prepare or attach to the selected environment explicitly; declaring a runtime does not provision it. Its illustrated member list is a fragment, and its launcher is a skeleton, not a ready-to-run provider package.
58
+
59
+ A rig bundle can carry declarations, roles and supporting scripts. Do not confuse those files with hydrated image layers, installed binaries, registered presets, credentials or live sessions. State what the recipient must supply.
60
+
61
+ ## Lifetime and recovery
62
+
63
+ **Persistent** and **Non-persistent** describe execution lifetime. A non-persistent invocation has an explicit completion condition tied to its assigned work. **Durable** describes interruption recovery and is independent of that lifetime. An agent can run briefly and still resume its retained conversation later.
64
+
65
+ Retaining a workspace and reconstruction material can restore useful competence without restoring the same native conversation. Label that as reconstruction. Native resume additionally requires the correct harness-qualified reference and supported native state. The platform chapter's measured example restored copied history into recreated containers on the same host; it does not establish new-host migration or RAM restoration.
66
+
67
+ ## Questions contributors can help resolve
68
+
69
+ - At a pinned dsh version, which advertised method reopens a session, and can a useful first case run without permission requests?
70
+ - Which additional harness would justify a shared protocol runner rather than a separate wrapper?
71
+ - Which provider effects can use the existing projection, native-reference and lifecycle dispatch, and which need a new maintained interface?
72
+ - What exact state and ownership must travel when compute is recreated or moved?
73
+
74
+ These questions remain part of the draft. An unanswered contributor thread does not prevent authors from using the implemented interfaces or reviewing the proposed responsibilities. Compatibility claims should name versions, observed behavior and unsupported operations; they should not imply a support guarantee from a manifest alone.
@@ -11,3 +11,4 @@ launch_result: true
11
11
  resume: true
12
12
  startup_assisted: false
13
13
  first_input: true
14
+ passes_model: false # the launcher maps OPENRIG_MODEL for a new session; set true once checked with the real harness
@@ -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
@@ -0,0 +1,100 @@
1
+ #!/bin/sh
2
+ # A reference launcher for Pi's own terminal UI (interactive `pi`) as an OpenRig community harness. Copy it, own it, and
3
+ # change it: OpenRig doesn't ship or run it. It's written for Pi 1.4.0 from its source and not yet checked with a real Pi.
4
+ # It follows docs/reference/community-harness-presets.md (`names_conversation`, `first_input`):
5
+ # - a new launch (OPENRIG_CONVERSATION set): Pi creates the session whose id is that name, in the seat's own session
6
+ # folder, and takes the first input as its first prompt;
7
+ # - a resume (OPENRIG_RESUME_REF set): the launcher opens the one session file whose id is that name, and starts nothing
8
+ # when there isn't exactly one. Pi's --session-id creates a new session for an id it doesn't find, and --session with
9
+ # an id can open another session whose id starts the same way, so neither is used to resume.
10
+ set -eu
11
+
12
+ pi="${OPENRIG_PI:-pi}"
13
+ state="${OPENRIG_HOME:-$HOME/.openrig}/state/pi-tui/${OPENRIG_NODE_ID:-${OPENRIG_SESSION_NAME:-default}}"
14
+ sessions="$state/sessions"
15
+
16
+ # Each seat gets its own Pi agent folder (settings, logins, skills) unless PI_CODING_AGENT_DIR is already set, so seats
17
+ # don't share settings and a person's ~/.pi/agent isn't touched. Give the seat its provider key in its environment, or its
18
+ # login and settings in this folder, before its first start.
19
+ PI_CODING_AGENT_DIR="${PI_CODING_AGENT_DIR:-$state/agent}"
20
+ # Pi expands a leading ~ in this folder; do the same, so the skills land where Pi looks.
21
+ case "$PI_CODING_AGENT_DIR" in
22
+ "~") PI_CODING_AGENT_DIR="$HOME" ;;
23
+ "~/"*) PI_CODING_AGENT_DIR="$HOME/${PI_CODING_AGENT_DIR#"~/"}" ;;
24
+ esac
25
+ export PI_CODING_AGENT_DIR
26
+ mkdir -p "$PI_CODING_AGENT_DIR/skills" "$sessions"
27
+
28
+ # Copy the installed OpenRig's coordination skills in at each launch, so an upgrade reaches the seat. Pi lists the skills
29
+ # in <agent folder>/skills/ by itself; the seat's first input should still name queue-handoff (see the recipe).
30
+ skills_from="${OPENRIG_PI_SKILLS_FROM:-${OPENRIG_HOME:-$HOME/.openrig}/plugins/openrig-core/skills}"
31
+ set -f
32
+ for skill in ${OPENRIG_PI_SKILLS:-queue-handoff}; do
33
+ case "$skill" in
34
+ *[!a-z0-9-]*|-*) echo "openrig-pi-tui-launch: skipping '$skill': not a skill name" >&2; continue ;;
35
+ esac
36
+ if [ -d "$skills_from/$skill" ]; then
37
+ rm -rf "$PI_CODING_AGENT_DIR/skills/$skill"
38
+ cp -Rp "$skills_from/$skill" "$PI_CODING_AGENT_DIR/skills/"
39
+ else
40
+ echo "openrig-pi-tui-launch: no $skill skill in $skills_from; starting without it" >&2
41
+ fi
42
+ done
43
+ set +f
44
+
45
+ # Pi's session ids: letters, digits, '.', '_' and '-', starting and ending with a letter or digit.
46
+ valid_id() {
47
+ case "$1" in
48
+ "" | *[!A-Za-z0-9._-]* | [!A-Za-z0-9]* | *[!A-Za-z0-9]) return 1 ;;
49
+ esac
50
+ }
51
+
52
+ # The first input goes over as Pi's first prompt, byte for byte, after `--`. OpenRig's starts with its identity-context
53
+ # line; Pi would read one starting with @ as a file even after `--`, and may run one starting with / as a command.
54
+ set --
55
+ if [ -n "${OPENRIG_FIRST_INPUT:-}" ]; then
56
+ first_input=$(cat "$OPENRIG_FIRST_INPUT" && printf '.')
57
+ first_input="${first_input%.}"
58
+ if [ -n "$first_input" ]; then set -- -- "$first_input"; fi
59
+ fi
60
+
61
+ if [ -n "${OPENRIG_RESUME_REF:-}" ]; then
62
+ id="$OPENRIG_RESUME_REF"
63
+ if ! valid_id "$id"; then
64
+ echo "openrig-pi-tui-launch: '$id' isn't a Pi session id; starting nothing" >&2
65
+ exit 2
66
+ fi
67
+ # Pi names a session file <time>_<id>.jsonl, but the file's first line, its header, is what says which session it is:
68
+ # its top-level type and id, read as JSON as Pi reads it. Pi writes the file only once the conversation has a message, so
69
+ # a session that never got one can't be reopened. Pi runs on Node, so node reads the header.
70
+ node="${OPENRIG_PI_NODE:-node}"
71
+ if ! command -v "$node" >/dev/null 2>&1; then
72
+ echo "openrig-pi-tui-launch: $node isn't on PATH to read Pi's session headers; starting nothing" >&2
73
+ exit 1
74
+ fi
75
+ found="" count=0
76
+ for file in "$sessions"/*_"$id".jsonl; do
77
+ [ -s "$file" ] || continue
78
+ if head -n 1 "$file" | "$node" -e '
79
+ let text = ""; process.stdin.on("data", c => { text += c; }).on("end", () => {
80
+ try { const h = JSON.parse(text); process.exit(h && h.type === "session" && h.id === process.argv[1] ? 0 : 1); }
81
+ catch { process.exit(1); }
82
+ });' "$id"; then
83
+ found="$file" count=$((count + 1))
84
+ fi
85
+ done
86
+ if [ "$count" -ne 1 ]; then
87
+ echo "openrig-pi-tui-launch: expected one Pi session $id in $sessions, found $count; starting nothing" >&2
88
+ exit 1
89
+ fi
90
+ exec "$pi" --session-dir "$sessions" --session "$found" "$@"
91
+ fi
92
+ if [ -n "${OPENRIG_CONVERSATION:-}" ]; then
93
+ if ! valid_id "$OPENRIG_CONVERSATION"; then
94
+ echo "openrig-pi-tui-launch: '$OPENRIG_CONVERSATION' isn't a Pi session id; starting nothing" >&2
95
+ exit 2
96
+ fi
97
+ exec "$pi" --session-dir "$sessions" --session-id "$OPENRIG_CONVERSATION" "$@"
98
+ fi
99
+ echo "openrig-pi-tui-launch: OpenRig passed no conversation name; is names_conversation set in the preset?" >&2
100
+ exit 2
@@ -0,0 +1,15 @@
1
+ # Install as $OPENRIG_HOME/community-harnesses/pi-tui.yaml, with openrig-pi-tui-launch on the seat's PATH.
2
+ # "pi" itself is the built-in managed Pi runtime, so this preset for Pi's own terminal UI takes another name.
3
+ format: 1
4
+ name: pi-tui
5
+ command: openrig-pi-tui-launch # no model or provider here: they go in the seat's Pi settings or environment
6
+ maintainer: Your name or team
7
+ limits:
8
+ - checked once with Pi 1.4.0 and OpenRig 0.7.4 (one run, one model); other Pi versions aren't checked
9
+ - resume not declared until reopening a named session, and a missing one, have been checked with a real Pi
10
+ - with the default typing guard, a wake submits a person's half-typed draft in Pi's editor together with the wake; run the seat unattended, not where a person also types
11
+ - a send while a Pi dialog OpenRig doesn't recognize is open, such as /settings, types into the dialog
12
+ - how Pi takes a wake that arrives while it's busy isn't shown
13
+ - only the listed openrig-core skills are copied into the seat's Pi agent folder; no guidance or startup files are placed
14
+ names_conversation: true
15
+ first_input: true
@@ -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
@@ -214,8 +258,35 @@ CLI.
214
258
 
215
259
  Copy both and maintain them as your own.
216
260
 
261
+ ## An example: Pi's terminal UI
262
+
263
+ [`community-harness-examples/pi-tui/`](community-harness-examples/pi-tui/) has a preset and a small launcher that run Pi's
264
+ own terminal UI as a community harness. `pi` is the built-in managed Pi runtime, so the preset is named `pi-tui`. OpenRig
265
+ delivers to this seat as to any community seat (the Delivery row above), not as to a plain `runtime: terminal` seat, which
266
+ queue wakes don't reach. Checked once, on Pi 1.4.0 with OpenRig 0.7.4 and one model: a parked row's wake reached Pi in
267
+ the same session (the same session file) and Pi resumed the work, and a handoff reached a second `pi-tui` seat, which
268
+ picked it up unattended. The first seat's task named the commands to use, so this shows a wake reaching Pi and Pi acting
269
+ on it, not Pi choosing by itself to park or hand work on.
270
+ - **The launcher:** each seat gets its own Pi agent folder (`$OPENRIG_HOME/state/pi-tui/<node>/agent`, unless
271
+ `PI_CODING_AGENT_DIR` is set) and its own session folder. At each launch it copies the installed `openrig-core` skills
272
+ it's given (`queue-handoff` by default) into that agent folder. A new launch starts `pi --session-id <the name OpenRig
273
+ gave>` and passes the first input as Pi's first prompt, byte for byte.
274
+ - **Resume isn't declared.** The launcher can reopen a named session: it opens the one session file whose header has that
275
+ id, and starts nothing when there isn't exactly one, because Pi's own `--session-id` creates a session for an id it
276
+ doesn't find. Declare `resume: true` only after a real Pi has reopened a named session and refused a missing one.
277
+ - **Its limits:** run a `pi-tui` seat unattended, not where a person also types into it.
278
+ - With the seat's [typing guard](seat-delivery.md) at its default, a wake submits a person's half-typed draft in Pi's
279
+ editor together with the wake. The guard's draft-aware mode isn't a known fix for this.
280
+ - A send while a Pi dialog OpenRig doesn't recognize is open, such as `/settings`, types into the dialog.
281
+ - Not shown: how Pi takes a wake that arrives while it's busy (a message sent during a busy turn was answered after
282
+ it), and other Pi versions.
283
+ - **Give the seat a model** before its first start: its provider key in its environment, or its login and settings in its
284
+ agent folder.
285
+
286
+ Copy both and maintain them as your own.
287
+
217
288
  The launcher is the contributor's code, in the contributor's package. OpenRig runs no code from a preset and loads no
218
- 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
219
290
  OpenRig that doesn't know the field.
220
291
 
221
292
  ## Pass the first startup input at launch
@@ -228,6 +299,87 @@ OpenRig records `node.startup_first_input_passed` with the path and `submission:
228
299
 
229
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.
230
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
+
333
+ ## Interactive Pi in a terminal seat: the coordination skills
334
+
335
+ This is for a seat that runs interactive `pi` from a `runtime: terminal` member's startup, or from a community preset's
336
+ launcher. It isn't for a managed `runtime: pi` seat, which already copies its selected skill directories into the seat's own
337
+ Pi agent directory (`$OPENRIG_HOME/state/pi/<session>/agent/skills/`), or for Workshop, whose Pi profiles carry pinned skill
338
+ copies (openrig-world's `PI-SKILLS.md`). The [`pi-tui` example](#an-example-pis-terminal-ui) above does step 1 for its
339
+ seats in its launcher.
340
+
341
+ OpenRig installs no skills for a terminal or community seat: it skips their resources and startup files, and `rig skill
342
+ loadout` covers Claude Code and Codex only. Without the coordination skills, the agent there doesn't know the queue's habits,
343
+ such as parking a row that waits on CI instead of leaving it in progress, or handing work on so the next row names its
344
+ source. The seat's setup does two things.
345
+
346
+ 1. **Make the released skills readable.** The installed OpenRig's own plugin carries them, matching the installed release:
347
+ `rig plugin list` shows `openrig-core` and its path (usually `$OPENRIG_HOME/plugins/openrig-core`), and the skills are in
348
+ its `skills/` folder. Copy whole skill directories, keeping their helper files and modes, into the `skills/` folder of the
349
+ Pi agent directory that seat uses (`PI_CODING_AGENT_DIR`, or `~/.pi/agent` by default). At least `queue-handoff`:
350
+
351
+ ```bash
352
+ CORE="$(rig plugin list | awk '$1 == "openrig-core" {print $NF}')"
353
+ PI_AGENT_DIR="${PI_CODING_AGENT_DIR:-$HOME/.pi/agent}"
354
+ mkdir -p "$PI_AGENT_DIR/skills"
355
+ cp -Rp "$CORE/skills/queue-handoff" "$PI_AGENT_DIR/skills/"
356
+ ```
357
+
358
+ Copy again after each OpenRig upgrade: a copy doesn't follow the plugin.
359
+ 2. **Point the agent at it when it starts.** Don't count on Pi finding the skill by itself; name it in the seat's first turn.
360
+ For example:
361
+
362
+ > Before you work your queue, read `<Pi agent directory>/skills/queue-handoff/SKILL.md` in full: it's how this team hands
363
+ > work on, parks it and waits. When you wait on CI or a long job, park the row with `rig queue block <id> --on
364
+ > external:<what> --wake-after <duration> --continuation "<what resumes>"`.
365
+
366
+ - A community preset with `first_input: true` carries it in the seat's first input when the file is declared with
367
+ `delivery_hint: send_text` (see "Pass the first startup input at launch" above). A `.md` file left at the `auto` hint
368
+ counts as guidance, which a community seat doesn't take.
369
+ - A plain terminal seat can pass it as Pi's initial message in the command its startup runs. Check `pi --help` for that
370
+ argument in your Pi version.
371
+ - `first_input` carries text, not files: it doesn't install the skills.
372
+
373
+ **In a plain terminal seat, a queue wake doesn't reach Pi.** OpenRig doesn't treat a `runtime: terminal` seat as an agent
374
+ seat. When a parked row's wake fires, OpenRig doesn't type it into Pi, and a handoff to that seat records a failed wake
375
+ (`failed:terminal-seat`). Parking still records the wait, but `--wake-after` won't bring Pi back. Check the seat's parked
376
+ rows yourself (`rig queue whoami --session <seat>`, or `rig queue show <id>`), or tell Pi to continue the named row.
377
+
378
+ **What this shows, and what it doesn't.** A copied folder and a startup line put the text in front of the agent. They don't
379
+ show that Pi discovered the skill by itself, or that the agent follows it. Check those separately: that the agent read the
380
+ whole file (its tool trace), and what its rows record, such as a CI wait parked on `external:` with a wake, and a handoff
381
+ made with `handoff-and-complete`, whose next row names it as its source.
382
+
231
383
  ## Write your own
232
384
 
233
385
  Start from the example closest to your harness, and change it. First check that the harness answers a prompt on its own
@@ -1,7 +1,8 @@
1
1
  # Edge Types Reference
2
2
 
3
- Last validated against code: 2026-10-07, at the 0.6.6 cut `2620dea8` (whole document at `fcaf1f8e`; its sources unchanged in edge behaviour since then)
4
- Source of truth: `packages/daemon/src/domain/rigspec-schema.ts`, `packages/daemon/src/domain/rigspec-instantiator.ts`, `packages/daemon/src/domain/queue-owner.ts`
3
+ Historical whole-document validation: 2026-10-07, at the 0.6.6 cut `2620dea8` (whole document at `fcaf1f8e`).
4
+ The fallback escalation section and deferred-target exceptions below describe #605.
5
+ Source of truth: `packages/daemon/src/domain/rigspec-schema.ts`, `packages/daemon/src/domain/rigspec-instantiator.ts`, `packages/daemon/src/domain/queue-owner.ts`, `packages/daemon/src/domain/escalation-owner.ts`
5
6
 
6
7
  ---
7
8
 
@@ -16,8 +17,7 @@ See `docs/reference/rig-spec.md` for the YAML syntax.
16
17
 
17
18
  ## Edge Kinds
18
19
 
19
- Five edge kinds are accepted by the pod-aware validator (the legacy flat-node format accepts only `delegates_to`,
20
- `spawned_by` and `can_observe`):
20
+ Five edge kinds are accepted by both the pod-aware and legacy flat-node validators:
21
21
 
22
22
  | Kind | Accepted | Has Runtime Behavior | Description |
23
23
  |------|----------|---------------------|-------------|
@@ -25,13 +25,13 @@ Five edge kinds are accepted by the pod-aware validator (the legacy flat-node fo
25
25
  | `spawned_by` | yes | **yes — affects launch order** | Source was spawned by target |
26
26
  | `can_observe` | yes | no | Source can observe target's output |
27
27
  | `collaborates_with` | yes | no | Peer collaboration |
28
- | `escalates_to` | yes | no | Source escalates to target |
28
+ | `escalates_to` | yes | **yes — fallback queue escalation** | Source escalates to target |
29
29
 
30
30
  ## What Edges Actually Do Today
31
31
 
32
32
  ### Launch ordering
33
33
 
34
- Only `delegates_to` and `spawned_by` affect runtime behavior. They constrain the order in which nodes are launched:
34
+ Only `delegates_to` and `spawned_by` constrain the order in which nodes are launched:
35
35
 
36
36
  - **`delegates_to`**: source launches BEFORE target. The delegator must be up before the delegate.
37
37
  - **`spawned_by`**: target (parent) launches BEFORE source (child). The parent must be up before the child it spawned.
@@ -46,13 +46,42 @@ All other edge kinds (`can_observe`, `collaborates_with`, `escalates_to`) do NOT
46
46
  wake ladder escalates an unacknowledged row to that orchestrator, and stuck-row findings and recovery go to it. A seat
47
47
  with no incoming `delegates_to` edge has no default orchestrator. `spawned_by` plays no part here.
48
48
 
49
+ ### Fallback escalation across rigs
50
+
51
+ A seat with **no declared `delegates_to` parent** may declare one `escalates_to` destination. The wake ladder and
52
+ stuck sweep use it for new recovery rows; they do not move the original obligation or reassign an already-open recovery. A stopped or unbound declared
53
+ parent still takes precedence, preserving the existing parent route and its fallback.
54
+
55
+ ```yaml
56
+ edges:
57
+ - kind: escalates_to
58
+ from: work.lead
59
+ to: review-advisor@coord
60
+ ```
61
+
62
+ The target is a canonical same-daemon seat address (`pod-member@rig`), or an existing local member using the usual
63
+ edge syntax. Named targets are stored without requiring the other rig to exist and resolved when needed. A matching
64
+ physical session name takes precedence over a derived canonical address. Deferred declarations survive export and
65
+ snapshots; they don't constrain launch order or make the rigs depend on each other's lifecycle.
66
+
67
+ Delivery is one hop. Recovery rows carry `escalation-route:one-hop`, so a destination's own `escalates_to` declaration
68
+ does not forward the recovery again. A missing or stopped destination, multiple matches or declarations, self route,
69
+ or declared cycle preserves the existing fallback: the wake ladder proceeds to its operator rung; the sweep retains
70
+ its existing owner fallback. The recovery body/transition explains the result. Cycle inspection includes stopped
71
+ seats and delegation parents; an unresolved downstream endpoint is reported as unknown, never as proof of no cycle.
72
+ Queue address admission is unchanged. Cross-host and synthetic destinations are not supported.
73
+
74
+ On an existing rig, use `rig edge add <rig> work.lead review-advisor@coord --kind escalates_to`; `--plan` writes nothing.
75
+ The receipt's target node ID is null for a deferred address. Remove it with the exact edge ID returned by add.
76
+ A rig-local graph omits deferred targets, since those seats are outside that graph; the raw topology and export retain them.
77
+
49
78
  ### Graph visualization
50
79
 
51
- All edges are rendered in the UI topology graph. They create visual connections between nodes, helping the operator understand the team structure. Pod-local edges appear within the pod group; cross-pod edges connect across groups.
80
+ Local-node edges are rendered in the UI topology graph; deferred cross-rig targets are omitted. They create visual connections between nodes, helping the operator understand the team structure. Pod-local edges appear within the pod group; cross-pod edges connect across groups.
52
81
 
53
82
  ### Identity projection
54
83
 
55
- All edges appear in `rig whoami --json` output under `edges.outgoing` and `edges.incoming`, with their kind and the connected peer's identity. This lets an agent know its relationship to other members — but the agent interprets this information, it's not enforced by the runtime.
84
+ Local-node edges appear in `rig whoami --json` output under `edges.outgoing` and `edges.incoming`, with their kind and the connected peer's identity. This lets an agent know its relationship to other members — but the agent interprets this information, it's not enforced by the runtime.
56
85
 
57
86
  ### Attach hint heuristic
58
87
 
@@ -64,7 +93,7 @@ node, in creation order, whose session is running, or else the first node with a
64
93
  Edges do NOT currently:
65
94
 
66
95
  - **Route messages** — `rig send` can target any session, regardless of edges (queue escalation, above, is the one
67
- daemon path that follows `delegates_to`)
96
+ daemon path that follows `delegates_to` or fallback `escalates_to`)
68
97
  - **Enforce delegation** — an agent can communicate with any peer, not just its edge targets
69
98
  - **Control permissions** — there's no edge-based access control
70
99
  - **Affect transport** — `rig capture`, `rig broadcast`, etc. work based on session identity, not edge topology
@@ -128,7 +157,7 @@ If none fit, `can_observe` is the safest default — it documents the relationsh
128
157
  ## Validation Rules
129
158
 
130
159
  1. Edge kinds must be one of: `delegates_to`, `spawned_by`, `can_observe`, `collaborates_with`, `escalates_to`
131
- 2. Pod-local edges use unqualified member IDs — both `from` and `to` must exist in the same pod
132
- 3. Cross-pod edges use `pod.member` format — both endpoints must resolve to actual members
160
+ 2. Pod-local edges use unqualified member IDs — both endpoints must exist in the same pod, except a named `escalates_to` target as above.
161
+ 3. Cross-pod edges use `pod.member` format — both endpoints must resolve to actual members, except a named `escalates_to` target as above.
133
162
  4. Cross-pod edges must reference different pods (same-pod edges should use the pod-local syntax)
134
163
  5. Self-edges are not validated at the schema level but are not meaningful