@openrig/cli 0.7.18 → 0.7.19

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 (647) hide show
  1. package/README.md +7 -6
  2. package/daemon/assets/claude-hook-bridge.cjs +146 -0
  3. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
  4. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
  5. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
  6. package/daemon/assets/plugins/openrig/plugin.json +1 -1
  7. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  8. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  9. package/daemon/assets/plugins/openrig-core/README.md +1 -1
  10. package/daemon/assets/plugins/openrig-core/hooks/claude.json +14 -14
  11. package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +43 -22
  12. package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +1 -0
  13. package/daemon/assets/plugins/openrig-core/skills/mission-slice-sop/SKILL.md +1 -1
  14. package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +70 -2
  15. package/daemon/assets/skills/rigs/SKILL.md +40 -19
  16. package/daemon/context-packs/help/manifest.yaml +1 -1
  17. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  18. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +16 -7
  19. package/daemon/context-packs/reference/getting-started.md +9 -4
  20. package/daemon/context-packs/reference/manifest.yaml +1 -1
  21. package/daemon/context-packs/reference/rig-spec.md +56 -26
  22. package/daemon/context-packs/reference/whats-new.md +82 -11
  23. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  27. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/mission-slice-sop/SKILL.md +1 -1
  49. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +70 -2
  74. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  77. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  78. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  79. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  80. package/daemon/dist/adapters/claude-code-adapter.d.ts +9 -0
  81. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  82. package/daemon/dist/adapters/claude-code-adapter.js +41 -4
  83. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  84. package/daemon/dist/adapters/claude-resume.d.ts +2 -0
  85. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  86. package/daemon/dist/adapters/claude-resume.js +3 -1
  87. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  88. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +5 -0
  89. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  90. package/daemon/dist/adapters/codex-runtime-adapter.js +45 -10
  91. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  92. package/daemon/dist/adapters/kernel-authority.d.ts +7 -0
  93. package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
  94. package/daemon/dist/adapters/kernel-authority.js +24 -1
  95. package/daemon/dist/adapters/kernel-authority.js.map +1 -1
  96. package/daemon/dist/adapters/pi-resume.d.ts.map +1 -1
  97. package/daemon/dist/adapters/pi-resume.js +5 -7
  98. package/daemon/dist/adapters/pi-resume.js.map +1 -1
  99. package/daemon/dist/adapters/pi-runner-protocol.d.ts +5 -1
  100. package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
  101. package/daemon/dist/adapters/pi-runner.d.ts +34 -0
  102. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  103. package/daemon/dist/adapters/pi-runner.js +359 -26
  104. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  105. package/daemon/dist/adapters/pi-runtime-adapter.d.ts +7 -1
  106. package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
  107. package/daemon/dist/adapters/pi-runtime-adapter.js +29 -19
  108. package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
  109. package/daemon/dist/adapters/tmux.d.ts +54 -34
  110. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  111. package/daemon/dist/adapters/tmux.js +183 -57
  112. package/daemon/dist/adapters/tmux.js.map +1 -1
  113. package/daemon/dist/build-info.js +3 -3
  114. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  115. package/daemon/dist/db/all-migrations.js +6 -0
  116. package/daemon/dist/db/all-migrations.js.map +1 -1
  117. package/daemon/dist/db/migrations/171_seat_hook_bridge.d.ts +5 -0
  118. package/daemon/dist/db/migrations/171_seat_hook_bridge.d.ts.map +1 -0
  119. package/daemon/dist/db/migrations/171_seat_hook_bridge.js +25 -0
  120. package/daemon/dist/db/migrations/171_seat_hook_bridge.js.map +1 -0
  121. package/daemon/dist/db/migrations/174_session_launched_cwd.d.ts +6 -0
  122. package/daemon/dist/db/migrations/174_session_launched_cwd.d.ts.map +1 -0
  123. package/daemon/dist/db/migrations/174_session_launched_cwd.js +8 -0
  124. package/daemon/dist/db/migrations/174_session_launched_cwd.js.map +1 -0
  125. package/daemon/dist/db/migrations/175_core_app_access.d.ts +3 -0
  126. package/daemon/dist/db/migrations/175_core_app_access.d.ts.map +1 -0
  127. package/daemon/dist/db/migrations/175_core_app_access.js +26 -0
  128. package/daemon/dist/db/migrations/175_core_app_access.js.map +1 -0
  129. package/daemon/dist/domain/activity-grants.d.ts.map +1 -1
  130. package/daemon/dist/domain/activity-grants.js +6 -4
  131. package/daemon/dist/domain/activity-grants.js.map +1 -1
  132. package/daemon/dist/domain/agent-activity-store.d.ts +23 -0
  133. package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
  134. package/daemon/dist/domain/agent-activity-store.js +62 -5
  135. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  136. package/daemon/dist/domain/claude-activity-hooks.d.ts +4 -2
  137. package/daemon/dist/domain/claude-activity-hooks.d.ts.map +1 -1
  138. package/daemon/dist/domain/claude-activity-hooks.js +5 -3
  139. package/daemon/dist/domain/claude-activity-hooks.js.map +1 -1
  140. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +64 -3
  141. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  142. package/daemon/dist/domain/claude-compaction-enforcer.js +203 -6
  143. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  144. package/daemon/dist/domain/compaction-restore-notice.d.ts +3 -1
  145. package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
  146. package/daemon/dist/domain/compaction-restore-notice.js +22 -3
  147. package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
  148. package/daemon/dist/domain/configured-account.d.ts +3 -0
  149. package/daemon/dist/domain/configured-account.d.ts.map +1 -0
  150. package/daemon/dist/domain/configured-account.js +10 -0
  151. package/daemon/dist/domain/configured-account.js.map +1 -0
  152. package/daemon/dist/domain/core-app-access.d.ts +51 -0
  153. package/daemon/dist/domain/core-app-access.d.ts.map +1 -0
  154. package/daemon/dist/domain/core-app-access.js +107 -0
  155. package/daemon/dist/domain/core-app-access.js.map +1 -0
  156. package/daemon/dist/domain/core-app-job.d.ts +411 -0
  157. package/daemon/dist/domain/core-app-job.d.ts.map +1 -0
  158. package/daemon/dist/domain/core-app-job.js +537 -0
  159. package/daemon/dist/domain/core-app-job.js.map +1 -0
  160. package/daemon/dist/domain/current-park-arm.d.ts +4 -0
  161. package/daemon/dist/domain/current-park-arm.d.ts.map +1 -0
  162. package/daemon/dist/domain/current-park-arm.js +14 -0
  163. package/daemon/dist/domain/current-park-arm.js.map +1 -0
  164. package/daemon/dist/domain/cwd-resolution.d.ts +12 -0
  165. package/daemon/dist/domain/cwd-resolution.d.ts.map +1 -1
  166. package/daemon/dist/domain/cwd-resolution.js +21 -1
  167. package/daemon/dist/domain/cwd-resolution.js.map +1 -1
  168. package/daemon/dist/domain/execution-view.d.ts.map +1 -1
  169. package/daemon/dist/domain/execution-view.js +9 -3
  170. package/daemon/dist/domain/execution-view.js.map +1 -1
  171. package/daemon/dist/domain/gateway/participants.d.ts +2 -0
  172. package/daemon/dist/domain/gateway/participants.d.ts.map +1 -1
  173. package/daemon/dist/domain/gateway/participants.js +5 -1
  174. package/daemon/dist/domain/gateway/participants.js.map +1 -1
  175. package/daemon/dist/domain/gateway/slack/message.d.ts +1 -0
  176. package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
  177. package/daemon/dist/domain/gateway/slack/message.js +37 -17
  178. package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
  179. package/daemon/dist/domain/gateway/slack/settled-asks.js +1 -1
  180. package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
  181. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +1 -0
  182. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
  183. package/daemon/dist/domain/gateway/slack/slack-delivery.js +2 -0
  184. package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
  185. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +4 -0
  186. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  187. package/daemon/dist/domain/gateway/slack/slack-subsystem.js +26 -2
  188. package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  189. package/daemon/dist/domain/hook-bridge.d.ts +345 -0
  190. package/daemon/dist/domain/hook-bridge.d.ts.map +1 -0
  191. package/daemon/dist/domain/hook-bridge.js +547 -0
  192. package/daemon/dist/domain/hook-bridge.js.map +1 -0
  193. package/daemon/dist/domain/hosted-wake.d.ts +9 -0
  194. package/daemon/dist/domain/hosted-wake.d.ts.map +1 -1
  195. package/daemon/dist/domain/hosted-wake.js +45 -6
  196. package/daemon/dist/domain/hosted-wake.js.map +1 -1
  197. package/daemon/dist/domain/human-ask-attention.d.ts +10 -0
  198. package/daemon/dist/domain/human-ask-attention.d.ts.map +1 -0
  199. package/daemon/dist/domain/human-ask-attention.js +22 -0
  200. package/daemon/dist/domain/human-ask-attention.js.map +1 -0
  201. package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts +4 -0
  202. package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts.map +1 -1
  203. package/daemon/dist/domain/mission-control/mission-control-action-log.js +8 -1
  204. package/daemon/dist/domain/mission-control/mission-control-action-log.js.map +1 -1
  205. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +10 -0
  206. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  207. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +64 -12
  208. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  209. package/daemon/dist/domain/native-continuation-notice.d.ts +16 -0
  210. package/daemon/dist/domain/native-continuation-notice.d.ts.map +1 -0
  211. package/daemon/dist/domain/native-continuation-notice.js +79 -0
  212. package/daemon/dist/domain/native-continuation-notice.js.map +1 -0
  213. package/daemon/dist/domain/native-process-lineage.d.ts +16 -0
  214. package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
  215. package/daemon/dist/domain/native-process-lineage.js +48 -3
  216. package/daemon/dist/domain/native-process-lineage.js.map +1 -1
  217. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  218. package/daemon/dist/domain/node-inventory.js +27 -6
  219. package/daemon/dist/domain/node-inventory.js.map +1 -1
  220. package/daemon/dist/domain/node-launcher.d.ts +6 -0
  221. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  222. package/daemon/dist/domain/node-launcher.js +16 -2
  223. package/daemon/dist/domain/node-launcher.js.map +1 -1
  224. package/daemon/dist/domain/outbox-handler.d.ts +21 -3
  225. package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
  226. package/daemon/dist/domain/outbox-handler.js +88 -8
  227. package/daemon/dist/domain/outbox-handler.js.map +1 -1
  228. package/daemon/dist/domain/park-wake-text.d.ts +18 -0
  229. package/daemon/dist/domain/park-wake-text.d.ts.map +1 -1
  230. package/daemon/dist/domain/park-wake-text.js +44 -0
  231. package/daemon/dist/domain/park-wake-text.js.map +1 -1
  232. package/daemon/dist/domain/policies/idle-gate-qitem.d.ts +3 -0
  233. package/daemon/dist/domain/policies/idle-gate-qitem.d.ts.map +1 -1
  234. package/daemon/dist/domain/policies/idle-gate-qitem.js +15 -0
  235. package/daemon/dist/domain/policies/idle-gate-qitem.js.map +1 -1
  236. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +6 -1
  237. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
  238. package/daemon/dist/domain/policies/parked-owner-consumer.js +28 -1
  239. package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
  240. package/daemon/dist/domain/process-limits.d.ts +21 -11
  241. package/daemon/dist/domain/process-limits.d.ts.map +1 -1
  242. package/daemon/dist/domain/process-limits.js +74 -20
  243. package/daemon/dist/domain/process-limits.js.map +1 -1
  244. package/daemon/dist/domain/process-table.d.ts +15 -0
  245. package/daemon/dist/domain/process-table.d.ts.map +1 -1
  246. package/daemon/dist/domain/process-table.js +39 -0
  247. package/daemon/dist/domain/process-table.js.map +1 -1
  248. package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
  249. package/daemon/dist/domain/queue-erasure.js +3 -0
  250. package/daemon/dist/domain/queue-erasure.js.map +1 -1
  251. package/daemon/dist/domain/queue-repository.d.ts +60 -7
  252. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  253. package/daemon/dist/domain/queue-repository.js +178 -36
  254. package/daemon/dist/domain/queue-repository.js.map +1 -1
  255. package/daemon/dist/domain/queue-stuck-sweep.d.ts +2 -0
  256. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  257. package/daemon/dist/domain/queue-stuck-sweep.js +29 -0
  258. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  259. package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
  260. package/daemon/dist/domain/queue-waiting.js +28 -3
  261. package/daemon/dist/domain/queue-waiting.js.map +1 -1
  262. package/daemon/dist/domain/queue-wake-ladder.d.ts +12 -0
  263. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  264. package/daemon/dist/domain/queue-wake-ladder.js +115 -14
  265. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  266. package/daemon/dist/domain/queue-wake-repository.d.ts +8 -0
  267. package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
  268. package/daemon/dist/domain/queue-wake-repository.js +48 -8
  269. package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
  270. package/daemon/dist/domain/reconciler.d.ts +18 -2
  271. package/daemon/dist/domain/reconciler.d.ts.map +1 -1
  272. package/daemon/dist/domain/reconciler.js +40 -0
  273. package/daemon/dist/domain/reconciler.js.map +1 -1
  274. package/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -1
  275. package/daemon/dist/domain/restore-attempt-receipt.js +3 -2
  276. package/daemon/dist/domain/restore-attempt-receipt.js.map +1 -1
  277. package/daemon/dist/domain/restore-orchestrator.d.ts +5 -1
  278. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  279. package/daemon/dist/domain/restore-orchestrator.js +73 -8
  280. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  281. package/daemon/dist/domain/restore-topology.d.ts +7 -1
  282. package/daemon/dist/domain/restore-topology.d.ts.map +1 -1
  283. package/daemon/dist/domain/restore-topology.js +21 -0
  284. package/daemon/dist/domain/restore-topology.js.map +1 -1
  285. package/daemon/dist/domain/resume-metadata-refresher.d.ts +2 -3
  286. package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
  287. package/daemon/dist/domain/resume-metadata-refresher.js +6 -25
  288. package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
  289. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  290. package/daemon/dist/domain/rig-repository.js +7 -6
  291. package/daemon/dist/domain/rig-repository.js.map +1 -1
  292. package/daemon/dist/domain/rig-teardown.d.ts +16 -3
  293. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  294. package/daemon/dist/domain/rig-teardown.js +73 -9
  295. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  296. package/daemon/dist/domain/rigspec-exporter.js +2 -2
  297. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  298. package/daemon/dist/domain/rigspec-instantiator.d.ts +5 -0
  299. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  300. package/daemon/dist/domain/rigspec-instantiator.js +17 -7
  301. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  302. package/daemon/dist/domain/rosters.d.ts +11 -0
  303. package/daemon/dist/domain/rosters.d.ts.map +1 -1
  304. package/daemon/dist/domain/rosters.js +21 -2
  305. package/daemon/dist/domain/rosters.js.map +1 -1
  306. package/daemon/dist/domain/runner-channel.d.ts +35 -3
  307. package/daemon/dist/domain/runner-channel.d.ts.map +1 -1
  308. package/daemon/dist/domain/runner-channel.js +177 -8
  309. package/daemon/dist/domain/runner-channel.js.map +1 -1
  310. package/daemon/dist/domain/runner-permissions.d.ts +26 -3
  311. package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
  312. package/daemon/dist/domain/runner-permissions.js +160 -39
  313. package/daemon/dist/domain/runner-permissions.js.map +1 -1
  314. package/daemon/dist/domain/scope/mission-parent.d.ts +19 -0
  315. package/daemon/dist/domain/scope/mission-parent.d.ts.map +1 -0
  316. package/daemon/dist/domain/scope/mission-parent.js +134 -0
  317. package/daemon/dist/domain/scope/mission-parent.js.map +1 -0
  318. package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
  319. package/daemon/dist/domain/scope/scope-audit.js +8 -0
  320. package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
  321. package/daemon/dist/domain/scope/types.d.ts +3 -1
  322. package/daemon/dist/domain/scope/types.d.ts.map +1 -1
  323. package/daemon/dist/domain/scope/types.js +5 -1
  324. package/daemon/dist/domain/scope/types.js.map +1 -1
  325. package/daemon/dist/domain/seat-delivery-guard.d.ts +14 -2
  326. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  327. package/daemon/dist/domain/seat-delivery-guard.js +53 -14
  328. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  329. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  330. package/daemon/dist/domain/seat-handover-service.js +9 -4
  331. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  332. package/daemon/dist/domain/seat-identity-reconciler.d.ts +4 -3
  333. package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
  334. package/daemon/dist/domain/seat-identity-reconciler.js +40 -5
  335. package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
  336. package/daemon/dist/domain/seat-lifecycle-service.d.ts +14 -6
  337. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  338. package/daemon/dist/domain/seat-lifecycle-service.js +104 -22
  339. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  340. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  341. package/daemon/dist/domain/seat-restart-in-place.js +4 -1
  342. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  343. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  344. package/daemon/dist/domain/seat-runtime-switch-service.js +2 -0
  345. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  346. package/daemon/dist/domain/seat-skill-apply.d.ts +1 -1
  347. package/daemon/dist/domain/seat-skill-apply.d.ts.map +1 -1
  348. package/daemon/dist/domain/seat-skill-apply.js +3 -2
  349. package/daemon/dist/domain/seat-skill-apply.js.map +1 -1
  350. package/daemon/dist/domain/session-registry.d.ts +5 -1
  351. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  352. package/daemon/dist/domain/session-registry.js +12 -1
  353. package/daemon/dist/domain/session-registry.js.map +1 -1
  354. package/daemon/dist/domain/session-transport.d.ts +40 -1
  355. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  356. package/daemon/dist/domain/session-transport.js +211 -10
  357. package/daemon/dist/domain/session-transport.js.map +1 -1
  358. package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -1
  359. package/daemon/dist/domain/shared-history-selection.js +9 -5
  360. package/daemon/dist/domain/shared-history-selection.js.map +1 -1
  361. package/daemon/dist/domain/slices/slice-indexer.d.ts +1 -1
  362. package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
  363. package/daemon/dist/domain/slices/slice-indexer.js +4 -0
  364. package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
  365. package/daemon/dist/domain/startup-orchestrator.d.ts +1 -0
  366. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  367. package/daemon/dist/domain/startup-orchestrator.js +6 -4
  368. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  369. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  370. package/daemon/dist/domain/successor-session-launcher.js +10 -4
  371. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  372. package/daemon/dist/domain/terminal/herdr-adapter.d.ts +35 -1
  373. package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
  374. package/daemon/dist/domain/terminal/herdr-adapter.js +231 -33
  375. package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
  376. package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
  377. package/daemon/dist/domain/terminal/herdr-sessions.js +2 -1
  378. package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
  379. package/daemon/dist/domain/terminal/rig-viewer-records.d.ts +59 -0
  380. package/daemon/dist/domain/terminal/rig-viewer-records.d.ts.map +1 -0
  381. package/daemon/dist/domain/terminal/rig-viewer-records.js +210 -0
  382. package/daemon/dist/domain/terminal/rig-viewer-records.js.map +1 -0
  383. package/daemon/dist/domain/terminal/terminal-provider.d.ts +2 -0
  384. package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
  385. package/daemon/dist/domain/terminal/terminal-service.d.ts +99 -4
  386. package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
  387. package/daemon/dist/domain/terminal/terminal-service.js +556 -36
  388. package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
  389. package/daemon/dist/domain/terminal/tile-layout.js +1 -1
  390. package/daemon/dist/domain/terminal/tile-layout.js.map +1 -1
  391. package/daemon/dist/domain/terminal/tmux-viewer-guard.d.ts +25 -0
  392. package/daemon/dist/domain/terminal/tmux-viewer-guard.d.ts.map +1 -0
  393. package/daemon/dist/domain/terminal/tmux-viewer-guard.js +70 -0
  394. package/daemon/dist/domain/terminal/tmux-viewer-guard.js.map +1 -0
  395. package/daemon/dist/domain/transcript-grep-worker.d.ts +2 -0
  396. package/daemon/dist/domain/transcript-grep-worker.d.ts.map +1 -0
  397. package/daemon/dist/domain/transcript-grep-worker.js +108 -0
  398. package/daemon/dist/domain/transcript-grep-worker.js.map +1 -0
  399. package/daemon/dist/domain/transcript-grep.d.ts +26 -0
  400. package/daemon/dist/domain/transcript-grep.d.ts.map +1 -0
  401. package/daemon/dist/domain/transcript-grep.js +90 -0
  402. package/daemon/dist/domain/transcript-grep.js.map +1 -0
  403. package/daemon/dist/domain/transcript-store.d.ts +8 -2
  404. package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
  405. package/daemon/dist/domain/transcript-store.js +10 -60
  406. package/daemon/dist/domain/transcript-store.js.map +1 -1
  407. package/daemon/dist/domain/types.d.ts +69 -2
  408. package/daemon/dist/domain/types.d.ts.map +1 -1
  409. package/daemon/dist/domain/types.js.map +1 -1
  410. package/daemon/dist/domain/watchdog-delivery-receipts.d.ts +4 -0
  411. package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -1
  412. package/daemon/dist/domain/watchdog-delivery-receipts.js +35 -2
  413. package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -1
  414. package/daemon/dist/domain/watchdog-delivery.d.ts +44 -0
  415. package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
  416. package/daemon/dist/domain/watchdog-delivery.js +60 -2
  417. package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
  418. package/daemon/dist/domain/watchdog-history-log.d.ts +12 -0
  419. package/daemon/dist/domain/watchdog-history-log.d.ts.map +1 -1
  420. package/daemon/dist/domain/watchdog-history-log.js +19 -1
  421. package/daemon/dist/domain/watchdog-history-log.js.map +1 -1
  422. package/daemon/dist/domain/watchdog-jobs-repository.d.ts +32 -0
  423. package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
  424. package/daemon/dist/domain/watchdog-jobs-repository.js +78 -0
  425. package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
  426. package/daemon/dist/domain/watchdog-policy-engine.d.ts +17 -3
  427. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  428. package/daemon/dist/domain/watchdog-policy-engine.js +19 -5
  429. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  430. package/daemon/dist/domain/workflow-projector.js +1 -1
  431. package/daemon/dist/domain/workflow-projector.js.map +1 -1
  432. package/daemon/dist/domain/workflow-runtime.d.ts +12 -0
  433. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  434. package/daemon/dist/domain/workflow-runtime.js +64 -7
  435. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  436. package/daemon/dist/domain/workflow-step-trail-log.d.ts +2 -2
  437. package/daemon/dist/domain/workflow-step-trail-log.d.ts.map +1 -1
  438. package/daemon/dist/domain/workflow-step-trail-log.js.map +1 -1
  439. package/daemon/dist/domain/workflow-types.d.ts +3 -1
  440. package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
  441. package/daemon/dist/domain/workflow-types.js.map +1 -1
  442. package/daemon/dist/index.d.ts.map +1 -1
  443. package/daemon/dist/index.js +5 -1
  444. package/daemon/dist/index.js.map +1 -1
  445. package/daemon/dist/lib/pane-envelope.d.ts +3 -0
  446. package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
  447. package/daemon/dist/lib/pane-envelope.js +3 -1
  448. package/daemon/dist/lib/pane-envelope.js.map +1 -1
  449. package/daemon/dist/mission-parent-surface.d.ts +2 -0
  450. package/daemon/dist/mission-parent-surface.d.ts.map +1 -0
  451. package/daemon/dist/mission-parent-surface.js +2 -0
  452. package/daemon/dist/mission-parent-surface.js.map +1 -0
  453. package/daemon/dist/routes/activity.d.ts +18 -1
  454. package/daemon/dist/routes/activity.d.ts.map +1 -1
  455. package/daemon/dist/routes/activity.js +47 -9
  456. package/daemon/dist/routes/activity.js.map +1 -1
  457. package/daemon/dist/routes/attention.d.ts.map +1 -1
  458. package/daemon/dist/routes/attention.js +194 -177
  459. package/daemon/dist/routes/attention.js.map +1 -1
  460. package/daemon/dist/routes/core-app.d.ts +10 -0
  461. package/daemon/dist/routes/core-app.d.ts.map +1 -0
  462. package/daemon/dist/routes/core-app.js +175 -0
  463. package/daemon/dist/routes/core-app.js.map +1 -0
  464. package/daemon/dist/routes/hook-bridge.d.ts +3 -0
  465. package/daemon/dist/routes/hook-bridge.d.ts.map +1 -0
  466. package/daemon/dist/routes/hook-bridge.js +158 -0
  467. package/daemon/dist/routes/hook-bridge.js.map +1 -0
  468. package/daemon/dist/routes/missions.d.ts.map +1 -1
  469. package/daemon/dist/routes/missions.js +14 -2
  470. package/daemon/dist/routes/missions.js.map +1 -1
  471. package/daemon/dist/routes/queue.d.ts +1 -1
  472. package/daemon/dist/routes/queue.d.ts.map +1 -1
  473. package/daemon/dist/routes/queue.js +8 -5
  474. package/daemon/dist/routes/queue.js.map +1 -1
  475. package/daemon/dist/routes/rigspec.js +1 -1
  476. package/daemon/dist/routes/rigspec.js.map +1 -1
  477. package/daemon/dist/routes/scope-audit.d.ts.map +1 -1
  478. package/daemon/dist/routes/scope-audit.js +7 -1
  479. package/daemon/dist/routes/scope-audit.js.map +1 -1
  480. package/daemon/dist/routes/seat.d.ts.map +1 -1
  481. package/daemon/dist/routes/seat.js +30 -4
  482. package/daemon/dist/routes/seat.js.map +1 -1
  483. package/daemon/dist/routes/slices.d.ts.map +1 -1
  484. package/daemon/dist/routes/slices.js +21 -2
  485. package/daemon/dist/routes/slices.js.map +1 -1
  486. package/daemon/dist/routes/startup.js +2 -1
  487. package/daemon/dist/routes/startup.js.map +1 -1
  488. package/daemon/dist/routes/terminal.d.ts.map +1 -1
  489. package/daemon/dist/routes/terminal.js +47 -6
  490. package/daemon/dist/routes/terminal.js.map +1 -1
  491. package/daemon/dist/routes/transcripts.d.ts.map +1 -1
  492. package/daemon/dist/routes/transcripts.js +16 -1
  493. package/daemon/dist/routes/transcripts.js.map +1 -1
  494. package/daemon/dist/routes/watchdog.d.ts.map +1 -1
  495. package/daemon/dist/routes/watchdog.js +3 -2
  496. package/daemon/dist/routes/watchdog.js.map +1 -1
  497. package/daemon/dist/routes/workflow.d.ts.map +1 -1
  498. package/daemon/dist/routes/workflow.js +5 -0
  499. package/daemon/dist/routes/workflow.js.map +1 -1
  500. package/daemon/dist/server.d.ts +2 -0
  501. package/daemon/dist/server.d.ts.map +1 -1
  502. package/daemon/dist/server.js +11 -0
  503. package/daemon/dist/server.js.map +1 -1
  504. package/daemon/dist/startup.d.ts.map +1 -1
  505. package/daemon/dist/startup.js +90 -33
  506. package/daemon/dist/startup.js.map +1 -1
  507. package/daemon/dist/terminal-viewer-guard-surface.d.ts +2 -0
  508. package/daemon/dist/terminal-viewer-guard-surface.d.ts.map +1 -0
  509. package/daemon/dist/terminal-viewer-guard-surface.js +2 -0
  510. package/daemon/dist/terminal-viewer-guard-surface.js.map +1 -0
  511. package/daemon/docs/reference/agent-startup-guide.md +4 -1
  512. package/daemon/docs/reference/claude-status-line.md +3 -2
  513. package/daemon/docs/reference/community-harness-examples/cursor/openrig-cursor-launch +6 -0
  514. package/daemon/docs/reference/community-harness-examples/dsh/README.md +1 -1
  515. package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +186 -30
  516. package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +6 -0
  517. package/daemon/docs/reference/community-harness-examples/openclaw/openrig-openclaw-launch +6 -0
  518. package/daemon/docs/reference/community-harness-examples/openshell/README.md +2 -0
  519. package/daemon/docs/reference/community-harness-examples/pi-tui/openrig-pi-tui-launch +6 -0
  520. package/daemon/docs/reference/community-harness-presets.md +6 -5
  521. package/daemon/docs/reference/core-app.md +212 -0
  522. package/daemon/docs/reference/daemon-http-clients.md +6 -0
  523. package/daemon/docs/reference/getting-started.md +9 -4
  524. package/daemon/docs/reference/harness-runner-contract.md +50 -4
  525. package/daemon/docs/reference/hosted-members.md +21 -1
  526. package/daemon/docs/reference/quickstart.md +4 -3
  527. package/daemon/docs/reference/rig-spec.md +56 -26
  528. package/daemon/docs/reference/rosters.md +8 -0
  529. package/daemon/docs/reference/sdlc-conventions.md +42 -5
  530. package/daemon/docs/reference/seat-delivery.md +87 -6
  531. package/daemon/docs/reference/terminal-sessions.md +99 -1
  532. package/daemon/docs/reference/whats-new.md +82 -11
  533. package/daemon/specs/rigs/launch/factory/guidance/lead-first-move.md +4 -3
  534. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +13 -3
  535. package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +4 -3
  536. package/dist/ask-wake.d.ts.map +1 -1
  537. package/dist/ask-wake.js +8 -1
  538. package/dist/ask-wake.js.map +1 -1
  539. package/dist/build-info.js +3 -3
  540. package/dist/commands/archive.js +1 -1
  541. package/dist/commands/archive.js.map +1 -1
  542. package/dist/commands/daemon.d.ts.map +1 -1
  543. package/dist/commands/daemon.js +7 -0
  544. package/dist/commands/daemon.js.map +1 -1
  545. package/dist/commands/down.d.ts.map +1 -1
  546. package/dist/commands/down.js +5 -0
  547. package/dist/commands/down.js.map +1 -1
  548. package/dist/commands/ps.d.ts +2 -1
  549. package/dist/commands/ps.d.ts.map +1 -1
  550. package/dist/commands/ps.js +9 -4
  551. package/dist/commands/ps.js.map +1 -1
  552. package/dist/commands/queue.js +4 -4
  553. package/dist/commands/queue.js.map +1 -1
  554. package/dist/commands/roster.d.ts +5 -0
  555. package/dist/commands/roster.d.ts.map +1 -1
  556. package/dist/commands/scope.d.ts.map +1 -1
  557. package/dist/commands/scope.js +346 -9
  558. package/dist/commands/scope.js.map +1 -1
  559. package/dist/commands/seat.d.ts.map +1 -1
  560. package/dist/commands/seat.js +90 -8
  561. package/dist/commands/seat.js.map +1 -1
  562. package/dist/commands/send.d.ts +2 -0
  563. package/dist/commands/send.d.ts.map +1 -1
  564. package/dist/commands/send.js +3 -1
  565. package/dist/commands/send.js.map +1 -1
  566. package/dist/commands/terminal.d.ts +56 -0
  567. package/dist/commands/terminal.d.ts.map +1 -1
  568. package/dist/commands/terminal.js +194 -4
  569. package/dist/commands/terminal.js.map +1 -1
  570. package/dist/commands/transcript.js +1 -1
  571. package/dist/commands/transcript.js.map +1 -1
  572. package/dist/commands/unarchive.js +1 -1
  573. package/dist/commands/unarchive.js.map +1 -1
  574. package/dist/commands/workflow-follow.d.ts +3 -1
  575. package/dist/commands/workflow-follow.d.ts.map +1 -1
  576. package/dist/commands/workflow-follow.js +25 -6
  577. package/dist/commands/workflow-follow.js.map +1 -1
  578. package/dist/commands/workflow-render.d.ts.map +1 -1
  579. package/dist/commands/workflow-render.js +5 -1
  580. package/dist/commands/workflow-render.js.map +1 -1
  581. package/dist/commands/workflow.d.ts.map +1 -1
  582. package/dist/commands/workflow.js +14 -4
  583. package/dist/commands/workflow.js.map +1 -1
  584. package/dist/daemon-lifecycle.d.ts.map +1 -1
  585. package/dist/daemon-lifecycle.js +11 -0
  586. package/dist/daemon-lifecycle.js.map +1 -1
  587. package/dist/lib/scope/mission-composition.d.ts +1 -0
  588. package/dist/lib/scope/mission-composition.d.ts.map +1 -1
  589. package/dist/lib/scope/mission-composition.js +14 -0
  590. package/dist/lib/scope/mission-composition.js.map +1 -1
  591. package/dist/lib/scope/scope-audit.d.ts.map +1 -1
  592. package/dist/lib/scope/scope-audit.js +8 -0
  593. package/dist/lib/scope/scope-audit.js.map +1 -1
  594. package/dist/lib/scope/scope-fs.d.ts +10 -0
  595. package/dist/lib/scope/scope-fs.d.ts.map +1 -1
  596. package/dist/lib/scope/scope-fs.js +60 -0
  597. package/dist/lib/scope/scope-fs.js.map +1 -1
  598. package/dist/lib/scope/types.d.ts +3 -1
  599. package/dist/lib/scope/types.d.ts.map +1 -1
  600. package/dist/lib/scope/types.js +5 -1
  601. package/dist/lib/scope/types.js.map +1 -1
  602. package/dist/mcp-server.d.ts.map +1 -1
  603. package/dist/mcp-server.js +18 -8
  604. package/dist/mcp-server.js.map +1 -1
  605. package/dist/restore-packet/packet-writer.d.ts.map +1 -1
  606. package/dist/restore-packet/packet-writer.js +8 -5
  607. package/dist/restore-packet/packet-writer.js.map +1 -1
  608. package/dist/terminal-window.d.ts +2 -1
  609. package/dist/terminal-window.d.ts.map +1 -1
  610. package/dist/terminal-window.js +567 -41
  611. package/dist/terminal-window.js.map +1 -1
  612. package/package.json +1 -1
  613. package/tui/dist/daemon-client.d.ts +4 -0
  614. package/tui/dist/daemon-client.d.ts.map +1 -1
  615. package/tui/dist/daemon-client.js.map +1 -1
  616. package/tui/dist/execution/execution-model.d.ts.map +1 -1
  617. package/tui/dist/execution/execution-model.js +22 -5
  618. package/tui/dist/execution/execution-model.js.map +1 -1
  619. package/tui/dist/hydrate.d.ts.map +1 -1
  620. package/tui/dist/hydrate.js +6 -3
  621. package/tui/dist/hydrate.js.map +1 -1
  622. package/tui/dist/navigator.d.ts +1 -1
  623. package/tui/dist/navigator.d.ts.map +1 -1
  624. package/tui/dist/navigator.js +4 -2
  625. package/tui/dist/navigator.js.map +1 -1
  626. package/tui/dist/pulse/render-pulse.d.ts.map +1 -1
  627. package/tui/dist/pulse/render-pulse.js +7 -14
  628. package/tui/dist/pulse/render-pulse.js.map +1 -1
  629. package/tui/dist/render.d.ts.map +1 -1
  630. package/tui/dist/render.js +29 -21
  631. package/tui/dist/render.js.map +1 -1
  632. package/tui/dist/stylize.d.ts.map +1 -1
  633. package/tui/dist/stylize.js +3 -3
  634. package/tui/dist/stylize.js.map +1 -1
  635. package/tui/dist/terminals/terminal-model.d.ts +1 -0
  636. package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
  637. package/tui/dist/terminals/terminal-model.js +4 -2
  638. package/tui/dist/terminals/terminal-model.js.map +1 -1
  639. package/tui/dist/types.d.ts +1 -0
  640. package/tui/dist/types.d.ts.map +1 -1
  641. package/tui/dist/visual-layout.d.ts +3 -0
  642. package/tui/dist/visual-layout.d.ts.map +1 -1
  643. package/tui/dist/visual-layout.js +17 -0
  644. package/tui/dist/visual-layout.js.map +1 -1
  645. package/ui/dist/assets/{index-1O1f3A7K.js → index-B-sMy02c.js} +107 -107
  646. package/ui/dist/assets/{index-BX8TUZ0E.css → index-DiN7RwWg.css} +1 -1
  647. package/ui/dist/index.html +2 -2
@@ -0,0 +1,212 @@
1
+ # Core app human-answer job (v1)
2
+
3
+ `/api/apps/v1` is an instance-local, versioned facade for one job: see a structured
4
+ human question, answer as a registered person, recover that submission, and follow
5
+ its actual recorded answer and linked work. Internal attention, queue, Mission
6
+ Control, activity and event routes remain internal interfaces. This facade does
7
+ not change their existing authentication or local-client behavior.
8
+
9
+ ## Access and identity
10
+
11
+ Every app read and write requires its own `Authorization: Bearer orapp_...`.
12
+ Operator, runner and activity credentials do not authenticate an app. Sender
13
+ headers are attribution, not authentication, and are ignored here. Normal server
14
+ Host/Origin checks still apply.
15
+
16
+ Provisioning and revocation are owner acts. They use the existing owner write
17
+ route's own gate (the same `authBearerTokenMiddleware` that guards
18
+ `/api/mission-control/action`), with no new loopback rule and no change to Host/Origin
19
+ handling. Where an owner bearer is configured, that bearer is required, from any peer
20
+ the server accepts. Where none is configured, the daemon's own bind rule applies: it
21
+ allows startup without a bearer only on a loopback or tailnet bind, and then this route
22
+ accepts the request exactly as the existing owner API does, so on a tailnet bind a peer
23
+ that passes Host/Origin can provision. Core does not call such a request local. An
24
+ app credential never acts as the owner. With no owner bearer configured, a request that
25
+ presents an `orapp_`-shaped bearer on a provisioning path is 401, so a failed or revoked app
26
+ credential cannot fall through to the open owner gate. An owner bearer you actually
27
+ configured is matched exactly, even if its value happens to look like an app credential,
28
+ and the owner bearer never authenticates an app read or write.
29
+
30
+ ```
31
+ POST /api/apps/v1/credentials
32
+ {"appId":"example","actors":["human-example@external"],"job":"human-answer","attribution":"app-attributed"}
33
+ ```
34
+
35
+ The 201 response returns `credentialId`, `appId`, one-time `token`, fixed `scope`
36
+ (job, canonical actors, and `read: instance-human-questions-and-linked-results`),
37
+ and `attribution: app-attributed`. Core stores only a secret hash. With an owner bearer
38
+ configured, a missing or wrong one returns 401.
39
+
40
+ Transfer the token directly to an app-owned file opened with exclusive creation
41
+ (`wx`, mode 0600) in an owner-only 0700 secrets directory. Keep only the file path
42
+ in app configuration. Never overwrite a token file, log the response, put tokens
43
+ in URLs, or store them in UI state. A failed transfer requires revoking its
44
+ credential ID and issuing a replacement; Core cannot retrieve the plaintext.
45
+
46
+ `DELETE /api/apps/v1/credentials/:credentialId` uses the same owner gate and idempotently returns `{revoked:true}`. Overlapping credentials for one
47
+ app are allowed, each with its own fixed actor scope. Revoke explicitly after
48
+ rotation; no revoke-first outage is required. Submission ownership is the stable
49
+ app ID, so a replacement credential with the original actor in scope can recover
50
+ that app's existing IDs. Current registration and credential scope are checked on
51
+ every call.
52
+
53
+ A credential can **read and write** human questions and their linked work across the
54
+ whole instance, only as the registered actors it was declared with. It is not a
55
+ per-person private-read credential: any credential can read any person's questions and
56
+ their linked results, and a registered colleague may answer another person's ask, as
57
+ themselves. It is not human login.
58
+ Core's claim is **person attributed by authenticated app X**, never independent human
59
+ authentication. Discovery advertises only `app-attributed` assurance and
60
+ `independentHumanAuthentication:false`. Consumers requiring independent human
61
+ authentication must disable this job. Agents, shared channels, generic `human@host`,
62
+ unknown people and unavailable registries cannot be provisioned as actors.
63
+
64
+ ## Discover, read and answer
65
+
66
+ `GET /capabilities` returns `contract: openrig.core-app`, `version:1`, the
67
+ `human-answer` job, `requestKinds:[structured-human-ask]`,
68
+ `answerForms:[option,typed-reply]`, actor assurance, stable submission/result-read
69
+ flags, the app's canonical actor scope, refresh rules and entry links. Unsupported
70
+ `/api/apps/vN/*` returns 404 `unsupported_contract_version` with
71
+ `supportedVersions:[1]`. An older daemon may return ordinary 404; that means the
72
+ job is unavailable. Gateway protocol versions do not establish Core job support.
73
+
74
+ All paths below are relative to `/api/apps/v1`; all responses use
75
+ `Cache-Control:no-store`.
76
+
77
+ | Request | Meaning |
78
+ | --- | --- |
79
+ | `GET /needs-me?actor=<canonical person>` | Current executable structured asks in that person's existing Feed perspective; capped at 1000 with explicit source coverage. |
80
+ | `GET /requests/:requestId?actor=...` | Durable request read, including body/detail, actual question/option IDs, human answers, opaque `decisionRevision`, episode and actor-scoped links. |
81
+ | `POST /answers/:answerId` | Submit an exact stable binding through the existing Mission Control answer owner. |
82
+ | `GET /answers/:answerId?actor=...` | Read the immutable receipt or current recovery status; never repairs or writes. |
83
+ | `GET /requests/:requestId/result?actor=...` | Read current actual return, permission and linked-work facts, separately from the submission receipt. |
84
+ | `GET /work/:qitemId?requestId=...&actor=...` | Read only an item in that request's bounded recorded relation graph; unrelated IDs return 404. |
85
+ | `GET /events` | App-authenticated SSE invalidations; no actor query is required. |
86
+
87
+ Every actor-scoped hypermedia link includes the encoded canonical actor. The key
88
+ is singular `result`. Missing actors return 400; actors outside the credential's
89
+ scope return 403. Needs-me excludes FYIs, resolve-only blockers, unstructured asks,
90
+ pairing, positively stale permission requests and nonpending items. A direct unsupported
91
+ request has `answer:null` and `unsupportedReason`; no questions are inferred from
92
+ text. Source failure is explicitly unavailable/partial, so disappearance never
93
+ means resolution. A runner-permission ask whose asking agent's authority is **unknown**
94
+ (its seat has no readable tenure) is neither current nor stale: needs-me and the request
95
+ read keep it, with its question, body, recorded facts and answer forms, and add
96
+ `occupantAuthority:"unknown"` (with a short `occupantAuthorityDetail`). Only positive
97
+ evidence of a replaced occupant or a deleted seat makes it stale
98
+ (`unsupportedReason:request_stale`). A direct ask has a null episode; creation notification IDs are
99
+ not new decision episodes.
100
+
101
+ Before POST, durably save a random opaque answer ID (8–128 ASCII letters, digits,
102
+ `_` or `-`) and the exact payload:
103
+
104
+ ```json
105
+ {
106
+ "job":"human-answer", "actor":"human-example@external",
107
+ "requestId":"qitem-example", "questionId":"ship", "episodeKey":null,
108
+ "expectedRevision":"dr1-from-the-read",
109
+ "answer":{"kind":"option","optionId":"yes"}
110
+ }
111
+ ```
112
+
113
+ For text use `answer:{"kind":"typed-reply","text":"Ship after correcting the title"}`.
114
+ Its `questionId` must identify the first unanswered question at that revision:
115
+ text keeps the existing whole-thread reply semantics, rather than inventing
116
+ arbitrary per-question text placement. Text is trimmed, nonblank, NUL-free and at
117
+ most 16 KiB UTF-8. Options cannot include text; text cannot include an option ID.
118
+ Unknown write fields and unsupported jobs/forms/assurance are rejected.
119
+
120
+ A 200 receipt names the answer/app/actor/request/question/episode/original revision,
121
+ normalized submitted `answer`, `replayed`, actor-scoped links, and `submission`:
122
+ `state:committed`, immutable `actionId`, `recordedAt`, `outcome:recorded|answered`,
123
+ `decisionRevisionAfter`, `unanswered`, optional original-owner `message`, and actual
124
+ `replyQitemId` (null for partial/in-row permission answers). `recorded` means a
125
+ partial choice; `answered` means the existing answer owner accepted the whole answer:
126
+ it returned the answer, handed a permission request to its receiving agent, **or kept
127
+ the answer on a request that is still waiting** because no agent could read it or the
128
+ handoff could not complete. The owner's own `message` says which, and is the same text in the
129
+ immutable receipt and its replays. `answered` never proves a native effect: it does not
130
+ mean permission was granted, the tool ran, or work completed. Under unknown authority
131
+ the answer is saved exactly this way, attributed to the person, bound to the exact ask,
132
+ and never granted, resent or moved to a successor.
133
+
134
+ Retry **the same ID and binding** after an uncertain response. The original receipt
135
+ survives later answers, annotations, decisions and restarts, and is returned with
136
+ `replayed:true`. A changed binding under that ID returns 409 `answer_id_conflict`
137
+ before mutation. A fresh conflicting payload cannot replace a finalized answer or
138
+ committed return: 409 `answer_already_finalized` / `answer_already_returned` includes
139
+ the current revision/link and `retrySameSubmission:false`. Identical fresh choices
140
+ that encounter an original return preserve the owner's `Already answered` message
141
+ and actual reply ID.
142
+
143
+ A 503 never means "the agent's authority is unknown": that case saves the answer. The
144
+ 503s say what is known about persistence, per stage. Retry **the same ID and binding**
145
+ for each; never mint a new ID or discard the credential:
146
+
147
+ | 503 | Meaning |
148
+ | --- | --- |
149
+ | `app_job_unavailable` with `submission.state:"unsaved"` | The reservation transaction failed and Core re-read the authoritative row and found none: nothing was stored. |
150
+ | `app_job_unavailable` with `submission.state:"unknown"` | Core could not verify persistence (the registry or the saved row could not be read). An earlier attempt with this ID may be saved; no claim either way. |
151
+ | `submission_incomplete` with `submission.state:"incomplete"` | The binding is reserved, but the owner's write did not finish. It does **not** say the person's answer was recorded: the reservation is not the answer. Read `GET /answers/:id`, then retry. |
152
+ | `app_job_unavailable` with no `submission` | The request did nothing (for example authentication could not read the registry or schema); it says nothing about an earlier attempt. |
153
+
154
+ A committed receipt stays committed and unchanged. Retrieving it needs the app's
155
+ credential, the registry and the database, so an outage of any of them can still answer
156
+ 503 to a read or a replay; that never says the answer was unsaved or undoes the receipt.
157
+ Reads never write. `GET /answers/:id` reports
158
+ `submission.state:incomplete` (identical repair is allowed only while original
159
+ own-effect evidence and the current decision allow it) or `conflict` with `conflictCode`,
160
+ current revision and links and `retrySameSubmission:false`: obtain a new human decision
161
+ instead of looping or automatically minting a replacement ID. A positively replaced
162
+ occupant, or a node positively absent from a successful lookup, is `request_stale` and
163
+ fences new writes; committed receipts are unchanged and stay readable. Missing scoped IDs
164
+ return 404. Authorized
165
+ source erasure removes binding/checkpoint/receipt text and leaves only an ID tombstone
166
+ (the binding hash is cleared too): status becomes `source_unavailable`, and any retry of that ID,
167
+ whatever its payload, returns the same `source_unavailable` without reexecuting. Existing queue audit erasure applies too.
168
+
169
+ ## Follow recorded facts
170
+
171
+ Result reads contain `request`, this app/actor's `submissions`, `answerReturn`,
172
+ `permissionDecision`, `work`, `links`, `sources`, `readAt` and an opaque event cursor.
173
+ They follow actual `replyTo`, `handedOffFrom`, `blockedOn` and captured dependency
174
+ edges only, with at most 100 nodes and 20 handoff hops. A handed-to **session** is
175
+ not a queue ID: a successor must actually name the predecessor. Missing, remote,
176
+ cyclic or bounded links are partial/unknown. No transcripts or terminal states
177
+ are interpreted. External `evidenceRef` values are descriptive and are not fetched.
178
+
179
+ A returned answer includes its actual reply body, source, target and link. Permission
180
+ answers have no synthetic reply; the read shows the actual kept/handed-off request.
181
+ Permission states distinguish `awaiting-agent`, `decided`, `withdrawn`, `stale`,
182
+ `unknown` and `not-applicable`, and decisions cite recorded transition/actor/reason.
183
+ Native effect stays `unknown`. Reads do not close stale requests, decide permission,
184
+ change default permit policy, or execute anything.
185
+
186
+ Each linked work record reports its actual body/state and
187
+ `completion:{status:open|closed-as-recorded,sourceQitemId,closureReason,evidenceRef}`.
188
+ A later linked human update can carry the actual result body. With no work/result
189
+ link, completion is unknown. A queue closure is that record's closure, never a
190
+ claim of mission or product success.
191
+
192
+ ## Refresh and interruption recovery
193
+
194
+ Snapshots capture queue facts and event sequence in one synchronous SQLite read
195
+ transaction. Cursors encode a daemon-process epoch and persisted event sequence;
196
+ they are not decision revisions. SSE carries only
197
+ `{kind:invalidate,cursor,requestId:null}` and opaque event IDs, plus heartbeats.
198
+ It never carries raw queue/event payloads or answer text. Subscribe precedes replay,
199
+ with deduplication and bounded 500-event replay/live buffering. Invalid/old-boot,
200
+ ahead, retained-floor, deleted-log-row or overflow continuity sends
201
+ `{kind:reset,reason:continuity-unproven}` then closes. Filtered sequence jumps are
202
+ normal. Revocation ends a stream at its next event/15-second heartbeat.
203
+
204
+ Connect and buffer invalidations, then read capabilities, needs-me and every saved
205
+ request/result/answer ID; reread when later invalidations arrive. Coalesce bursts.
206
+ Poll every five seconds while tracking open requests/results, even with a healthy
207
+ stream, because registry/config/file changes can have no queue event. On every
208
+ disconnect/reconnect, reset, uncertain continuity, daemon restart, credential
209
+ rotation, lost POST response or partial/unavailable source, reread discovery,
210
+ needs-me and all saved IDs. Keep tracked IDs independently of attention membership.
211
+ Unknown event kinds require refresh; offline data is stale. Never invent a revision
212
+ or infer completion from an absent card.
@@ -183,6 +183,12 @@ With `needs-me.read` supported:
183
183
  read. `about` lists the requests it concerns by id: a row parked on the person is itself the request, and an ask is
184
184
  about the open rows blocked on it (the newest 100, with `aboutTruncated: true` when there are more). An empty `about`
185
185
  isn't proof that it's about nothing: a request that names it only in its text isn't counted.
186
+ - **Only the asks, for a badge you poll:** add `kind=action`
187
+ (`GET /api/attention?view=<person-id>&kind=action`). It reads only the queue's asks and parks, the items with
188
+ `kind: "action"`, and gives exactly the ones the full read gives for that view, with the same `revision` and `about`.
189
+ It skips the updates, proof judgments, mission outcomes and health the full read also builds, and `sources` says so
190
+ with a `kind` entry marked `partial`. `kind=update` reads the rest. A `view` naming no registered person returns its
191
+ `perspective` with no items, without reading anything else.
186
192
  - **A snapshot watermark:** the response's `watermark` is the newest event `seq` read before the snapshot. Follow
187
193
  `GET /api/events` from it with `Last-Event-ID: <watermark>`: every event after the snapshot is replayed, some possibly
188
194
  already reflected in it. A click that records or changes an answer emits `queue.answer_recorded` even while the set
@@ -186,10 +186,10 @@ agent doing the setup. Both use this release's tag:
186
186
 
187
187
  ```sh
188
188
  # Claude Code
189
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.18/skills/rigs" --skill rigs --agent claude-code
189
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.19/skills/rigs" --skill rigs --agent claude-code
190
190
 
191
191
  # Codex
192
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.18/skills/rigs" --skill rigs --agent codex
192
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.19/skills/rigs" --skill rigs --agent codex
193
193
  ```
194
194
 
195
195
  If OpenRig is already installed, use the release tag matching your installed `rig --version` instead: replace the tag
@@ -197,6 +197,10 @@ after `tree/` with it, including its `v` prefix. `rig --version` prints the vers
197
197
  `0.6.11 (379f0a0d)`; the tag is `v0.6.11`. The skill is in the repository from v0.6.6; on an older install, use the
198
198
  v0.6.6 tag or upgrade first.
199
199
 
200
+ A Claude Code session that was already running doesn't see a skills folder created after it started: neither the
201
+ project's `.claude/skills` that this command adds nor the `~/.claude/skills` the daemon fills on its first start. In
202
+ that session, type `/reload-skills` (Claude Code 2.1.152 or later), or start a new one, before `/rigs`.
203
+
200
204
  These are the pinned, per-agent forms used on the [rigs pages](https://openrig.dev/rigs).
201
205
  You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
202
206
 
@@ -204,11 +208,11 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
204
208
  script will do and changes nothing:
205
209
 
206
210
  ```sh
207
- curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.18/scripts/install.sh | sh -s -- --dry-run
211
+ curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.19/scripts/install.sh | sh -s -- --dry-run
208
212
  ```
209
213
 
210
214
  The same command without `--dry-run`,
211
- `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.18/scripts/install.sh | sh`, installs the
215
+ `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.19/scripts/install.sh | sh`, installs the
212
216
  latest published `@openrig/cli` with `npm install -g`, runs the Node.js and SQLite check if the installed checker is
213
217
  present (otherwise it reports the check skipped), then runs `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
214
218
  Codex and may install a missing one, as described below. A failed step prints
@@ -925,6 +929,7 @@ the lifecycle API without booting a new kernel, then stop the remaining rigs.
925
929
  | 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. |
926
930
  | Daemon restarted but tmux survived | Re-read `rig status` and the existing queue; a daemon restart is not a fresh project. |
927
931
  | 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. |
932
+ | OpenRig's home moved (a new `HOME`, account or machine), and restoring an existing rig reports that no rig was found | A shell that exports `OPENRIG_HOME` (legacy `RIGGED_HOME`) or `OPENRIG_DB` still points `rig` and any daemon it starts at the old home, and a daemon started there makes an empty home at that path. Run `rig daemon stop` from that shell first. Then point `OPENRIG_HOME` at the new home folder and `OPENRIG_DB` at the database file in it, or unset them (an unset `OPENRIG_HOME` follows `HOME`), and start the daemon again. A seat whose saved folder isn't on this machine starts in another folder, which the restore names when it can read the seat's terminal; to choose the folder, run `rig up <rig> --existing --cwd <dir>`. |
928
933
  | Launch reports no usable snapshot | Inspect the existing rig and retained project files, then follow the same-seat recovery below. |
929
934
  | Work is waiting on a prompt or decision | Read the row, transition and named prompt; preserve the obligation until the missing decision arrives. |
930
935
 
@@ -10,10 +10,12 @@
10
10
  > runner is qualified beyond that.
11
11
  > - **Existing interfaces with author obligations:** launch-result identity, exact resume, first input and model
12
12
  > handoff. These interfaces do not establish that a particular runner implements them correctly.
13
- > - **Current source:** per-launch credentials for hosted Pi, Pi-RPC presets and declared community runners (section 4).
13
+ > - **Current source:** per-launch credentials for managed Pi/OMP, Pi-RPC presets and declared community runners (section 4).
14
14
  > Optional run-bound observations retain receipts and project current runner-reported context/community model facts.
15
15
  > Credentials and reports do not qualify new native input, cancellation or independently verified program identity.
16
- > - **Unchanged:** plain community presets and the other built-in runtimes (Claude Code, Codex, OMP, terminal).
16
+ > Managed OMP and hosted Pi-RPC additionally implement optional input-only channel delivery; their wake/cancel remain unavailable.
17
+ > - **Unchanged:** Claude Code/Codex raw TUI and historical headless wakes, plain preset interaction, terminal typing,
18
+ > OMP approval/provider/state policy, and contained execution's legacy activity/lifecycle boundaries.
17
19
  >
18
20
  > **What has run natively, in 0.7.8's release testing, against a Claude Haiku model:**
19
21
  > - **dsh-seat 0.3.0**, an outside runner for dsh 0.2.1-rc.2 over ACP: launch and first input, useful queue work, a
@@ -130,7 +132,7 @@ immediately before the preset's native command, after OpenRig's launcher assignm
130
132
 
131
133
  ## 4. Activity: report turn boundaries
132
134
 
133
- Managed hosted Pi, Pi-RPC presets and declared community runners can receive an actual-launch credential in
135
+ Managed hosted Pi and OMP, Pi-RPC presets and declared community runners can receive an actual-launch credential in
134
136
  `OPENRIG_ACTIVITY_HOOK_TOKEN`, with their attempt in `OPENRIG_RUN_ID`. Keep this credential in the runner's own
135
137
  process; remove it from the native agent and tool environment. It is delivered through tmux's private environment,
136
138
  never as a literal launch argument or launch-result field. A report that supplies `runId` requires this bound
@@ -142,6 +144,8 @@ that path adds no new run-authority claim and is not attributed to a selected ru
142
144
  refused: it is never silently retried with the install token. If native dispatch already occurred before activation
143
145
  failed, Core preserves the dispatched outcome and does not replay input; cleanup addresses only that launch's grant.
144
146
  Unreadable observations cannot revoke a grant. Confirmed exit/replacement or intentional lifecycle cleanup still can.
147
+ For builtin Pi/OMP, a foreground shell proves exit only after a current-attempt runner sidecar is ready or exited.
148
+ Missing, unreadable, stale or pending launch evidence retains the grant; this limits cleanup, not launch or report admission.
145
149
 
146
150
  Core activates a pending credential after dispatch against its selected session, pane and recorded runner. A staged
147
151
  successor waits for the existing binding cutover; pending posts receive `activity_grant_pending` and must retry.
@@ -327,7 +331,29 @@ permission or input handling in existing built-in runtimes or require every poss
327
331
 
328
332
  The optional native-channel implementation uses the launch's `OPENRIG_RUN_ID` and private `OPENRIG_ACTIVITY_HOOK_TOKEN` grant. The runner retains them; its native child and tools do not receive the credential. `GET /api/activity/runner-channel` is run-filtered SSE, and one `POST` resource at that same path carries hello, acceptance, submitted and result messages. There is no command file or global event-feed subscription.
329
333
 
330
- Hello supplies `{type:"hello", version:1, runId, retained, capabilities:{input,wake,cancel}}`. Capabilities are explicit booleans intersected with the recorded runner kind and Core implementation availability. They describe this live implementation, not native identity or program qualification. Core implements managed built-in Pi and declared preset contract families; a live runner must explicitly declare its supported operations. Hosted Pi-RPC remains a separate adoption; cancellation is false. Built-in managed Pi and the dsh example have independently authored consumers. Other programs, including Pi-compatible forks and OMP, require their own adoption and evidence.
334
+ Hello supplies `{type:"hello", version:1, runId, retained, capabilities:{input,wake,cancel}}`. Capabilities are explicit booleans intersected with the recorded runner kind and Core implementation availability. They describe this live implementation, not native identity or program qualification. Core selects generic recorded runner kinds, never a community app-name whitelist. Builtin Pi/OMP remain kind0, preset-owned runners kind1, and OpenRig-hosted Pi-RPC kind2. A shared protocol or wrapper does not qualify a program or confer another runtime's invocation mapping.
335
+
336
+ #### Runtime coverage and qualification
337
+
338
+ | Runtime class | Existing behavior and optional native-channel limits |
339
+ |---|---|
340
+ | Builtin managed Pi | Existing input/wake/named-cancel implementation and its own invocation mapping; each live capability still requires current authority and implementation evidence. |
341
+ | Builtin OMP | Input-only shared RPC implementation with its own tests. Keeps `omp_session_file`, OMP approval/provider/HOME/state and protocol-v2 behavior; wake/cancel remain false without a proven OMP invocation mapping. |
342
+ | Hosted Pi-RPC community programs | Input-only shared RPC implementation, recorded kind2 and `community:<runtime>` reference. Each executable must satisfy the declared protocol; no inherited Pi qualification or wake/cancel capability. |
343
+ | Preset-owned runner (`runner: true`) | Its actual implemented and declared operations intersect with Core support. The independent dsh consumer has its own mapping; another ACP or stream-JSON program does not inherit it. |
344
+ | Claude Code | Typed interaction and saved-session bounded headless wake remain. The separate opt-in launch-owned hook bridge supports live ordinary delivery and wake through its existing lease; it is not this structured runner channel or named cancellation. |
345
+ | Codex raw TUI | Existing typed interaction and saved-session bounded headless wake remain. Those headless commands are not this live native input/wake/cancel channel. |
346
+ | Cursor / Hermes / Pi TUI | Maintained TUI launchers have no live native consumer; new native operations are unavailable. Pi TUI is distinct from managed Pi RPC. |
347
+ | OpenClaw local / gateway | Same TUI limit. Client exit does not prove native turn cancellation, stopped gateway work or gateway custody. |
348
+ | OpenShell owned / attached | Existing scoped guest activity/work and operation/resource/native identity remain. They do not provide the hosted pane/PID run binding; no new native channel is advertised. |
349
+ | Terminal / stub | Existing shell or scripted-test interaction remains. No native program capability is inferred from builtin kind0 or a stub fixture. |
350
+ | Other external consumers | Generic contract eligibility is program-independent; actual consumer implementation and separate evidence are required for each operation. |
351
+
352
+ All classes retain typed default. Unsupported native requests refuse before a native or typed effect; absence of an active consumer is not permission to fall back after uncertainty. OMP/hosted2 input acceptance uses the correlated prompt response and does not fabricate a native invocation ID or model-work result. Optional observations remain `runner_reported`; neither reported session/model/context nor a common ABI independently verifies native identity. No new telemetry collector is installed.
353
+
354
+ The maintained TUI launchers and bounded headless wake child remove the run-ID/hook-token pair when a run ID is present, while legacy hook-only environments and required identity/provider metadata remain unchanged. The caller retains its authority; native children receive none of the new run credential. These controls do not add a native consumer to a TUI launcher.
355
+
356
+ #### Native delivery and named commands
331
357
 
332
358
  Every seat still defaults to `typed`. `rig seat set-input-route <seat> --route native --reason ...` saves the native input preference even without a connected runner, and reports live input/wake capability separately. Saving the preference does not launch a runner, deliver or replay input, or establish a capability; native sends and wakes remain not offered while no capable runner is available. Native requests retain the existing sender, original-conversation constraint and interruption/held policy. The saved request ID's route is immutable: a preference change applies to a new ID. A native refusal or uncertain effect never types a fallback, and `--verify` never invokes a terminal-pane verifier for a native receipt.
333
359
 
@@ -352,6 +378,26 @@ Consumer fixtures exercise Pi RPC shapes from the installed Pi 1.5.0 SDK and dsh
352
378
 
353
379
  The existing `tmux-server-isolation-daemon.test.ts` also launches managed Pi and a declared dsh preset through the built CLI and daemon with offline native backends. It kills only its scratch daemon with SIGKILL during a wake and restarts it through the normal daemon startup. It checks retained run authority, receiver/native-child and pane process lineage, the recovered answer, duplicate-ID retry and a subsequent wake without repeated native prompts. This covers daemon OS-process recovery with a live receiver map; it does not establish receiver-map persistence after the runner itself dies or combine the crash with the installed-program provider test.
354
380
 
381
+ Managed Pi and dsh additionally post `{type:"turn",runId,sequence,nativeTurnId,state:"opened"|"closed",acceptedTurnIds}` through the authenticated channel. Core retains these as `agent.runner_turn` events and exposes the latest open bound invocation in seat status. This sequence belongs to the turn-report family, independently of observation samples and outbox delivery sequences. Identical retries are idempotent; conflicting sequence reuse, closed-epoch reuse and regressing accepted mappings are refused. Missing evidence provides no target and never proves idle.
382
+
383
+ Pi's native scope is an agent invocation from `agent_start` (or `turn_start` when closed) to `agent_end`; steers have distinct accepted IDs inside that invocation. dsh's native scope is its one outstanding prompt RPC, not the ACP session. The foundation retains Pi followups at the runner and supports internal successor/permission preparation fences. Native permission metadata requires a bound run grant and matching authenticated turn evidence; legacy install authority cannot authenticate these additional fields. A committed turn withdrawal blocks later submissions and decisions, and remains unconfirmed while an existing submission is still in flight or its handoff cannot be followed locally. Managed Pi and the dsh example implement named cancellation when their live capabilities declare it. Other implementations must declare only operations they actually implement and qualify.
384
+
385
+ ### Named managed cancellation
386
+
387
+ `POST /api/seat/command/:seatRef` accepts `{type:"cancel",requestId,target:{runId,nativeTurnId}}`. Obtain the exact target from `rig seat status <seat> --json` (`nativeInput.target`), then freeze it. `rig seat cancel <seat> --run-id <run> --native-turn-id <epoch> --request-id <id>` sends that explicit target; repeating the same command reconciles its retained receipt. Missing target is invalid. Neither an accepted-input ordinal nor a native session ID substitutes for the native invocation ID. This operation does not change the seat's typed/native input preference or synthesize typed controls.
388
+
389
+ Cancellation shares the existing outbox and run-bound stream, with `kind:"cancel",payload:{target}`. Control can overtake an unacknowledged ordinary input, while ordinary input/wake FIFO and immutable identities remain intact. Reconnect may replay an older unacknowledged frame even after a higher control cursor; the receiver's retained map reconciles that ID without a repeated native effect.
390
+
391
+ Temporary connection or grant-standing uncertainty refuses fresh cancellation with a retryable response before consuming its ID. A declared unsupported operation remains `not-supported`. Missing invocation ownership is unknown, never proof of `not-this-turn`; a lost receiver map keeps that target refusal for the rest of the run, cleared only by a new run. It does not make unrelated input unavailable merely because a cancellation needs reconciliation. Original input/wake uncertainty and no-replay guards still apply. Legacy install-token reporting cannot claim native authority. An authenticated permission ask without verified invocation correlation is accepted with a diagnostic; claimed invocation tags are denial-only hints, so withdrawal still rejects late permissions for that named turn.
392
+
393
+ The runner posts `{type:"cancel-prepare",runId,requestId,sequence}` on the existing channel. Core derives the immutable target from its receipt and withdraws its asks before confirming preparation. `receipt.withdrawal` keeps pending/confirmed stage, counts and timestamps, including partial failure. No native abort is written until permission submission/callback drain and an exact target recheck. A legitimate pending drain can continue; person input remains usable and may supersede unsubmitted local preparation. Actual failed preparation is retired by the runner as `stage:"rejected",result:{kind:"cancel",reason,applied:false}`, with no outcome. Withdrawn approvals stay withdrawn. Core receipt acceptance alone never proves that no native operation was written.
394
+
395
+ The four effect outcomes remain `requested`, `cancelled`, `not-this-turn`, and `not-supported`. Submitted cancellation is `requested,confirmed:false`; native operation acceptance is separate evidence. Pi records its correlated abort acknowledgement as `operationAccepted`. For a Pi cancellation whose target ended during preparation or after submission, its agent_settled event releases the cancellation hold, without waiting for an abort ACK or another cancellation state query. Person prompts entered before settlement stay in the existing held prompt queue and are sent afterward; agent_end alone is not native readiness. A correlated abort ACK is not a settlement fallback. Normal input/wake readiness still applies: Pi can retain native queued words after abort, and a dedicated wake still waits for native idle with an empty queue. In that case an explicit person continuation can let those words run before the dedicated wake. This is a disclosed limitation, not automatic successor progress. A bare agent_settled releases the hold too: aborted is optional evidence, not a continuation requirement. Pi may use agent_settled.aborted when present, or prior native abort evidence, with known-safe empty-queue evidence; a retained or unknown queue stays requested/unconfirmed. A late ACK does not revise the immutable final result. Continuing is not cancellation proof and never restores withdrawn approvals; dsh uses its exact outstanding prompt's cancelled response. Normal end or process exit never invents cancellation proof. Before submission, a positively ended/replaced target is not-this-turn. Requested work with unknown native acceptance retains indeterminate custody.
396
+
397
+ Pi never clears queued words for managed cancellation. Unknown or person-owned native queues reject only that local preparation without disabling ordinary input. Person prompts and native controls remain usable. dsh sends managed `session/cancel` once for the exact outstanding prompt; a person's repeated `/abort` remains available. A person abort before prompt write suppresses it as a local interruption without sending a premature native cancel. Opened/closed report retries remain ordered but do not gate ordinary dsh prompts or terminal progress; shutdown retains its existing total two-second drain bound.
398
+
399
+ `rig seat status <seat> --json` projects body-free `nativeInput.unresolved` evidence across current and older runs: request/target/member IDs, sender/destination, stage, withdrawal, reconciliation and uncertain requested outcomes. Historical evidence does not imply all current work is held. The pane and status identify the person operating the seat or its responsible agent as reconciler. A submitted Pi cancellation waits for native agent_settled; ordinary native readiness and dedicated-wake queue ownership requirements still apply. The supported continuation is a new plain prompt in that pane, without resending retained words, distinct from /abort and rig seat stop. Known retained input IDs and waiting managed IDs are reported in the authenticated cancellation result. Existing responsible-agent work uses the ordinary queue route to a different bound node, with quoted nonerased words read from the same node/run Outbox owner. Existing owner/escalation and receiving-agent settings supply routing; missing or unavailable owners leave visible concrete guidance rather than another wake behind the stranded queue. This work is a captured report, not proof of delivery, pickup or automatic progress. Erasure and immutable queue-ID retries retain their existing ownership rules. If ownership cannot be recovered, an explicit scoped manual choice is `rig seat stop <seat> --reason <text>`; nothing restarts, replays, or releases on a timer. A cancel request carries no fallback words. Erasure preserves opaque custody/target evidence and rejects reuse/late results while removing content and free-form detail; unresolved erased IDs remain inspectable. Fixture tests prove protocol plumbing; installed-program qualification is recorded separately.
400
+
355
401
  ## 6. Cancel: requested isn't the same as done
356
402
 
357
403
  - **On `/abort` or Ctrl-C:** send the agent's cancel (for ACP, the `session/cancel` notification, which has no reply),
@@ -72,6 +72,22 @@ entry. The entry holds secret names, never values:
72
72
  - `authorization_ref`, when the tool needs one, names the secret holding the `Authorization` header value.
73
73
  - Credentials in the URL itself (`https://user:pass@host/…`) are sent as Basic `Authorization` instead, unless
74
74
  `authorization_ref` is set: then its value is sent, and the URL's credentials are dropped.
75
+ - `signing_secret_ref`, when the trigger verifies signed webhooks, names the secret holding a
76
+ [Standard Webhooks](https://github.com/standard-webhooks/standard-webhooks/blob/main/spec/standard-webhooks.md)
77
+ signing secret.
78
+ - **Use the `whsec_` form** (`whsec_` followed by base64): the sender and the receiver both decode it to the same
79
+ key.
80
+ - **A value without `whsec_` is used as its raw UTF-8 bytes,** as receivers that accept raw secrets read it.
81
+ - **The headers:** each ring then carries three, alongside any `Authorization`:
82
+ - `webhook-id`, new for every ring, including a row rung again for a new wake;
83
+ - `webhook-timestamp`, in seconds;
84
+ - `webhook-signature`, which is `v1,` and the base64 HMAC-SHA256 of `<webhook-id>.<webhook-timestamp>.` and
85
+ the body bytes exactly as sent.
86
+ - **When the ring isn't sent:** if the secret it names isn't set, or is `whsec_` followed by nothing or by text
87
+ that isn't valid base64 (with its padding), the ring isn't sent. The result is
88
+ `failed:webhook (<url_ref>) not rung: its signing secret (<name>) …`, never an unsigned ring.
89
+ - **Header names:** a receiver that reads other header names, such as a provider's own prefixed ones, doesn't
90
+ verify these.
75
91
  - The daemon reads each from its environment (the name, or `OPENRIG_<NAME>`), else from `secrets_env_file`, an env file kept at mode 0600.
76
92
  - **The ring:** when a row lands for the member, the daemon POSTs
77
93
  `{"source":"openrig.queue","schema_version":1,"event":"work-waiting","qitem_id":…,"destination":…,"summary":…,"from":…}`.
@@ -171,7 +187,11 @@ and nothing else is offered:
171
187
  is exactly that seat.
172
188
  - **What it reaches:**
173
189
  - It hands work to its rigs' other seats, never to a person or another host's seat.
174
- - It reads the items it sent and the items addressed to it from those seats, never the team's internal items.
190
+ - It reads the items it sent and the items addressed to it from those seats or from an external address
191
+ (`<id>@external`), never the team's internal items or an external address's items to another seat. The address is
192
+ matched by its shape, not looked up among registered people: a registered person, a shared channel's address (which
193
+ its unregistered writers post under) and any other `@external` ref count. A person's answer addressed to its seat is
194
+ readable this way too.
175
195
  - With `queue`/`claim` and `queue`/`update`, it claims and closes only items addressed to its own seat that it can read,
176
196
  and waits (blocked) only on an item it names and can read. Its answers hide what reading the item hides.
177
197
  - **A first task without a seat address:** with `--task-destination <member@rig>` on the same `rig mcp serve`, a
@@ -12,15 +12,16 @@ In your project folder, add OpenRig's `rigs` skill to the agent you use:
12
12
 
13
13
  ```sh
14
14
  # Claude Code
15
- npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.18/skills/rigs --skill rigs --agent claude-code
15
+ npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.19/skills/rigs --skill rigs --agent claude-code
16
16
  # Codex
17
- npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.18/skills/rigs --skill rigs --agent codex
17
+ npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.19/skills/rigs --skill rigs --agent codex
18
18
  ```
19
19
 
20
20
  These use this release's tag, for a new install. If OpenRig is already installed, replace the tag after `tree/` with
21
21
  the one that matches `rig --version` (`v` and its version number), or upgrade first. If the command fails with `npx: command not found`, Node.js isn't
22
22
  installed or isn't on your PATH yet (see [What you need](#what-you-need)). Then type `/rigs` in Claude Code, or `$rigs` in Codex, and say what
23
- you want built.
23
+ you want built. If Claude Code was already running when you added the skill, type `/reload-skills` first, or start a new
24
+ session: a session doesn't see a skills folder created after it started.
24
25
 
25
26
  The skill has your agent work through the steps below in order. It says what it will run and change before it runs
26
27
  it, and it asks before installing anything on your system. It finishes when you're talking to the operator.