@openrig/cli 0.7.17 → 0.7.18

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 (657) hide show
  1. package/README.md +5 -5
  2. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
  3. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
  4. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
  5. package/daemon/assets/plugins/openrig/plugin.json +1 -1
  6. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  7. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  8. package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +5 -0
  9. package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +23 -0
  10. package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +11 -0
  11. package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +25 -5
  12. package/daemon/assets/skills/rigs/SKILL.md +33 -19
  13. package/daemon/assets/skills/rigs/references/installing-for-someone.md +2 -2
  14. package/daemon/context-packs/help/manifest.yaml +1 -1
  15. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  16. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +42 -8
  17. package/daemon/context-packs/reference/getting-started.md +4 -4
  18. package/daemon/context-packs/reference/manifest.yaml +1 -1
  19. package/daemon/context-packs/reference/rig-spec.md +166 -0
  20. package/daemon/context-packs/reference/whats-new.md +107 -6
  21. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  22. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  23. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  27. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +23 -0
  30. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/openrig-user/SKILL.md +11 -0
  50. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +25 -5
  73. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  77. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  78. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  79. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  80. package/daemon/dist/adapters/claude-code-adapter.js +16 -5
  81. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  82. package/daemon/dist/adapters/claude-resume.d.ts +2 -1
  83. package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
  84. package/daemon/dist/adapters/claude-resume.js +13 -5
  85. package/daemon/dist/adapters/claude-resume.js.map +1 -1
  86. package/daemon/dist/adapters/kernel-authority.d.ts +1 -1
  87. package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
  88. package/daemon/dist/adapters/kernel-authority.js +22 -10
  89. package/daemon/dist/adapters/kernel-authority.js.map +1 -1
  90. package/daemon/dist/adapters/pi-runner-protocol.d.ts +43 -0
  91. package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
  92. package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
  93. package/daemon/dist/adapters/pi-runner.d.ts +50 -1
  94. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  95. package/daemon/dist/adapters/pi-runner.js +463 -13
  96. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  97. package/daemon/dist/adapters/tmux-credential-env.d.ts +4 -0
  98. package/daemon/dist/adapters/tmux-credential-env.d.ts.map +1 -0
  99. package/daemon/dist/adapters/tmux-credential-env.js +14 -0
  100. package/daemon/dist/adapters/tmux-credential-env.js.map +1 -0
  101. package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
  102. package/daemon/dist/adapters/tmux-exec.js +4 -3
  103. package/daemon/dist/adapters/tmux-exec.js.map +1 -1
  104. package/daemon/dist/adapters/tmux-server.d.ts +2 -2
  105. package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
  106. package/daemon/dist/adapters/tmux-server.js +12 -4
  107. package/daemon/dist/adapters/tmux-server.js.map +1 -1
  108. package/daemon/dist/adapters/tmux.d.ts +220 -12
  109. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  110. package/daemon/dist/adapters/tmux.js +835 -29
  111. package/daemon/dist/adapters/tmux.js.map +1 -1
  112. package/daemon/dist/attention-surface.d.ts +4 -1
  113. package/daemon/dist/attention-surface.d.ts.map +1 -1
  114. package/daemon/dist/attention-surface.js.map +1 -1
  115. package/daemon/dist/build-info.js +3 -3
  116. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  117. package/daemon/dist/db/all-migrations.js +8 -0
  118. package/daemon/dist/db/all-migrations.js.map +1 -1
  119. package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts +4 -0
  120. package/daemon/dist/db/migrations/171_claude_auto_mode.d.ts.map +1 -0
  121. package/daemon/dist/db/migrations/171_claude_auto_mode.js +9 -0
  122. package/daemon/dist/db/migrations/171_claude_auto_mode.js.map +1 -0
  123. package/daemon/dist/db/migrations/171_node_input_route.d.ts +4 -0
  124. package/daemon/dist/db/migrations/171_node_input_route.d.ts.map +1 -0
  125. package/daemon/dist/db/migrations/171_node_input_route.js +6 -0
  126. package/daemon/dist/db/migrations/171_node_input_route.js.map +1 -0
  127. package/daemon/dist/db/migrations/172_queue_return_route.d.ts +3 -0
  128. package/daemon/dist/db/migrations/172_queue_return_route.d.ts.map +1 -0
  129. package/daemon/dist/db/migrations/172_queue_return_route.js +13 -0
  130. package/daemon/dist/db/migrations/172_queue_return_route.js.map +1 -0
  131. package/daemon/dist/db/migrations/173_node_process_limits.d.ts +4 -0
  132. package/daemon/dist/db/migrations/173_node_process_limits.d.ts.map +1 -0
  133. package/daemon/dist/db/migrations/173_node_process_limits.js +6 -0
  134. package/daemon/dist/db/migrations/173_node_process_limits.js.map +1 -0
  135. package/daemon/dist/domain/activity-grants.d.ts.map +1 -1
  136. package/daemon/dist/domain/activity-grants.js +2 -0
  137. package/daemon/dist/domain/activity-grants.js.map +1 -1
  138. package/daemon/dist/domain/agent-activity-store.d.ts +36 -1
  139. package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
  140. package/daemon/dist/domain/agent-activity-store.js +192 -3
  141. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  142. package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts +10 -0
  143. package/daemon/dist/domain/agent-images/resume-token-discovery.d.ts.map +1 -1
  144. package/daemon/dist/domain/agent-images/resume-token-discovery.js +21 -0
  145. package/daemon/dist/domain/agent-images/resume-token-discovery.js.map +1 -1
  146. package/daemon/dist/domain/applied-launch-observation-store.d.ts +5 -0
  147. package/daemon/dist/domain/applied-launch-observation-store.d.ts.map +1 -1
  148. package/daemon/dist/domain/applied-launch-observation-store.js +57 -21
  149. package/daemon/dist/domain/applied-launch-observation-store.js.map +1 -1
  150. package/daemon/dist/domain/builtin-startup-files.d.ts +26 -12
  151. package/daemon/dist/domain/builtin-startup-files.d.ts.map +1 -1
  152. package/daemon/dist/domain/builtin-startup-files.js +73 -34
  153. package/daemon/dist/domain/builtin-startup-files.js.map +1 -1
  154. package/daemon/dist/domain/claude-auto-mode.d.ts +64 -0
  155. package/daemon/dist/domain/claude-auto-mode.d.ts.map +1 -0
  156. package/daemon/dist/domain/claude-auto-mode.js +114 -0
  157. package/daemon/dist/domain/claude-auto-mode.js.map +1 -0
  158. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +2 -0
  159. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  160. package/daemon/dist/domain/claude-compaction-enforcer.js +11 -4
  161. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  162. package/daemon/dist/domain/claude-continuation-launch.d.ts +5 -1
  163. package/daemon/dist/domain/claude-continuation-launch.d.ts.map +1 -1
  164. package/daemon/dist/domain/claude-continuation-launch.js +51 -2
  165. package/daemon/dist/domain/claude-continuation-launch.js.map +1 -1
  166. package/daemon/dist/domain/claude-core-plugin-env.d.ts +7 -3
  167. package/daemon/dist/domain/claude-core-plugin-env.d.ts.map +1 -1
  168. package/daemon/dist/domain/claude-core-plugin-env.js +11 -8
  169. package/daemon/dist/domain/claude-core-plugin-env.js.map +1 -1
  170. package/daemon/dist/domain/codex-daemon-support.d.ts.map +1 -1
  171. package/daemon/dist/domain/codex-daemon-support.js +6 -1
  172. package/daemon/dist/domain/codex-daemon-support.js.map +1 -1
  173. package/daemon/dist/domain/community-harness-launch-result.d.ts +2 -0
  174. package/daemon/dist/domain/community-harness-launch-result.d.ts.map +1 -1
  175. package/daemon/dist/domain/community-harness-launch-result.js +5 -1
  176. package/daemon/dist/domain/community-harness-launch-result.js.map +1 -1
  177. package/daemon/dist/domain/connection-contract.d.ts +91 -0
  178. package/daemon/dist/domain/connection-contract.d.ts.map +1 -1
  179. package/daemon/dist/domain/connection-contract.js +73 -0
  180. package/daemon/dist/domain/connection-contract.js.map +1 -1
  181. package/daemon/dist/domain/context-usage-store.d.ts +5 -0
  182. package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
  183. package/daemon/dist/domain/context-usage-store.js +37 -2
  184. package/daemon/dist/domain/context-usage-store.js.map +1 -1
  185. package/daemon/dist/domain/current-work.d.ts +6 -1
  186. package/daemon/dist/domain/current-work.d.ts.map +1 -1
  187. package/daemon/dist/domain/current-work.js +41 -8
  188. package/daemon/dist/domain/current-work.js.map +1 -1
  189. package/daemon/dist/domain/cwd-resolution.d.ts +2 -0
  190. package/daemon/dist/domain/cwd-resolution.d.ts.map +1 -1
  191. package/daemon/dist/domain/cwd-resolution.js +7 -2
  192. package/daemon/dist/domain/cwd-resolution.js.map +1 -1
  193. package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
  194. package/daemon/dist/domain/draft-aware-delivery.js +5 -1
  195. package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
  196. package/daemon/dist/domain/errors.d.ts +4 -0
  197. package/daemon/dist/domain/errors.d.ts.map +1 -1
  198. package/daemon/dist/domain/errors.js +7 -0
  199. package/daemon/dist/domain/errors.js.map +1 -1
  200. package/daemon/dist/domain/execution-view.d.ts.map +1 -1
  201. package/daemon/dist/domain/execution-view.js +8 -1
  202. package/daemon/dist/domain/execution-view.js.map +1 -1
  203. package/daemon/dist/domain/existing-rig-restore.d.ts +2 -0
  204. package/daemon/dist/domain/existing-rig-restore.d.ts.map +1 -1
  205. package/daemon/dist/domain/existing-rig-restore.js +1 -0
  206. package/daemon/dist/domain/existing-rig-restore.js.map +1 -1
  207. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
  208. package/daemon/dist/domain/gateway/operator-delivery-engine.js +107 -3
  209. package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
  210. package/daemon/dist/domain/gateway/slack/capabilities.d.ts +9 -1
  211. package/daemon/dist/domain/gateway/slack/capabilities.d.ts.map +1 -1
  212. package/daemon/dist/domain/gateway/slack/capabilities.js +6 -1
  213. package/daemon/dist/domain/gateway/slack/capabilities.js.map +1 -1
  214. package/daemon/dist/domain/gateway/slack/inbound-admission.js +1 -1
  215. package/daemon/dist/domain/gateway/slack/inbound-admission.js.map +1 -1
  216. package/daemon/dist/domain/gateway/slack/inbound.d.ts +4 -0
  217. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  218. package/daemon/dist/domain/gateway/slack/inbound.js +15 -1
  219. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  220. package/daemon/dist/domain/gateway/slack/manifest.d.ts +5 -1
  221. package/daemon/dist/domain/gateway/slack/manifest.d.ts.map +1 -1
  222. package/daemon/dist/domain/gateway/slack/manifest.js +12 -3
  223. package/daemon/dist/domain/gateway/slack/manifest.js.map +1 -1
  224. package/daemon/dist/domain/gateway/slack/message.d.ts +1 -0
  225. package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
  226. package/daemon/dist/domain/gateway/slack/message.js +4 -1
  227. package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
  228. package/daemon/dist/domain/gateway/slack/queue-access.d.ts +2 -0
  229. package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
  230. package/daemon/dist/domain/gateway/slack/queue-access.js +1 -0
  231. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  232. package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -1
  233. package/daemon/dist/domain/gateway/slack/settled-asks.js +6 -5
  234. package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
  235. package/daemon/dist/domain/gateway/slack/slack-api.d.ts +1 -0
  236. package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
  237. package/daemon/dist/domain/gateway/slack/slack-api.js +7 -2
  238. package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
  239. package/daemon/dist/domain/harness-not-started-notice.d.ts +36 -0
  240. package/daemon/dist/domain/harness-not-started-notice.d.ts.map +1 -0
  241. package/daemon/dist/domain/harness-not-started-notice.js +81 -0
  242. package/daemon/dist/domain/harness-not-started-notice.js.map +1 -0
  243. package/daemon/dist/domain/hot-potato-enforcer.d.ts +1 -1
  244. package/daemon/dist/domain/input-read-diagnostic.js +1 -1
  245. package/daemon/dist/domain/input-read-diagnostic.js.map +1 -1
  246. package/daemon/dist/domain/instance-initialization.d.ts +2 -0
  247. package/daemon/dist/domain/instance-initialization.d.ts.map +1 -1
  248. package/daemon/dist/domain/instance-initialization.js +2 -1
  249. package/daemon/dist/domain/instance-initialization.js.map +1 -1
  250. package/daemon/dist/domain/member-connection.d.ts +14 -0
  251. package/daemon/dist/domain/member-connection.d.ts.map +1 -0
  252. package/daemon/dist/domain/member-connection.js +34 -0
  253. package/daemon/dist/domain/member-connection.js.map +1 -0
  254. package/daemon/dist/domain/model-divergence/current-model-reader.d.ts +3 -1
  255. package/daemon/dist/domain/model-divergence/current-model-reader.d.ts.map +1 -1
  256. package/daemon/dist/domain/model-divergence/current-model-reader.js +32 -7
  257. package/daemon/dist/domain/model-divergence/current-model-reader.js.map +1 -1
  258. package/daemon/dist/domain/native-permission-store.d.ts +6 -2
  259. package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
  260. package/daemon/dist/domain/native-permission-store.js +12 -5
  261. package/daemon/dist/domain/native-permission-store.js.map +1 -1
  262. package/daemon/dist/domain/native-resume-probe.d.ts +5 -0
  263. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  264. package/daemon/dist/domain/native-resume-probe.js +94 -10
  265. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  266. package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
  267. package/daemon/dist/domain/network/network-connector.js +11 -2
  268. package/daemon/dist/domain/network/network-connector.js.map +1 -1
  269. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  270. package/daemon/dist/domain/node-inventory.js +28 -0
  271. package/daemon/dist/domain/node-inventory.js.map +1 -1
  272. package/daemon/dist/domain/node-launcher.d.ts +8 -0
  273. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  274. package/daemon/dist/domain/node-launcher.js +19 -4
  275. package/daemon/dist/domain/node-launcher.js.map +1 -1
  276. package/daemon/dist/domain/outbox-handler.d.ts +50 -0
  277. package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
  278. package/daemon/dist/domain/outbox-handler.js +255 -1
  279. package/daemon/dist/domain/outbox-handler.js.map +1 -1
  280. package/daemon/dist/domain/parked-query.d.ts.map +1 -1
  281. package/daemon/dist/domain/parked-query.js +3 -1
  282. package/daemon/dist/domain/parked-query.js.map +1 -1
  283. package/daemon/dist/domain/permission-account.d.ts +28 -1
  284. package/daemon/dist/domain/permission-account.d.ts.map +1 -1
  285. package/daemon/dist/domain/permission-account.js +55 -11
  286. package/daemon/dist/domain/permission-account.js.map +1 -1
  287. package/daemon/dist/domain/permission-drift.d.ts +2 -0
  288. package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
  289. package/daemon/dist/domain/permission-drift.js.map +1 -1
  290. package/daemon/dist/domain/pi-compaction-request-store.d.ts +16 -0
  291. package/daemon/dist/domain/pi-compaction-request-store.d.ts.map +1 -0
  292. package/daemon/dist/domain/pi-compaction-request-store.js +40 -0
  293. package/daemon/dist/domain/pi-compaction-request-store.js.map +1 -0
  294. package/daemon/dist/domain/pi-compaction-service.d.ts +82 -0
  295. package/daemon/dist/domain/pi-compaction-service.d.ts.map +1 -0
  296. package/daemon/dist/domain/pi-compaction-service.js +229 -0
  297. package/daemon/dist/domain/pi-compaction-service.js.map +1 -0
  298. package/daemon/dist/domain/process-limits.d.ts +37 -0
  299. package/daemon/dist/domain/process-limits.d.ts.map +1 -0
  300. package/daemon/dist/domain/process-limits.js +69 -0
  301. package/daemon/dist/domain/process-limits.js.map +1 -0
  302. package/daemon/dist/domain/process-table.d.ts +9 -0
  303. package/daemon/dist/domain/process-table.d.ts.map +1 -1
  304. package/daemon/dist/domain/process-table.js +21 -4
  305. package/daemon/dist/domain/process-table.js.map +1 -1
  306. package/daemon/dist/domain/proof/judgments.d.ts +7 -0
  307. package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
  308. package/daemon/dist/domain/proof/judgments.js +27 -1
  309. package/daemon/dist/domain/proof/judgments.js.map +1 -1
  310. package/daemon/dist/domain/ps-projection.d.ts +2 -1
  311. package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
  312. package/daemon/dist/domain/ps-projection.js +6 -1
  313. package/daemon/dist/domain/ps-projection.js.map +1 -1
  314. package/daemon/dist/domain/queue-erasure.d.ts +11 -6
  315. package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
  316. package/daemon/dist/domain/queue-erasure.js +44 -21
  317. package/daemon/dist/domain/queue-erasure.js.map +1 -1
  318. package/daemon/dist/domain/queue-repository.d.ts +62 -14
  319. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  320. package/daemon/dist/domain/queue-repository.js +270 -65
  321. package/daemon/dist/domain/queue-repository.js.map +1 -1
  322. package/daemon/dist/domain/queue-stuck-sweep.d.ts +3 -0
  323. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  324. package/daemon/dist/domain/queue-stuck-sweep.js +45 -13
  325. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  326. package/daemon/dist/domain/queue-transition-log.d.ts +5 -3
  327. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  328. package/daemon/dist/domain/queue-transition-log.js +9 -6
  329. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  330. package/daemon/dist/domain/queue-wake-ladder.d.ts +8 -0
  331. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  332. package/daemon/dist/domain/queue-wake-ladder.js +155 -17
  333. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  334. package/daemon/dist/domain/queue-wake-repository.d.ts +2 -1
  335. package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
  336. package/daemon/dist/domain/queue-wake-repository.js +31 -4
  337. package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
  338. package/daemon/dist/domain/restore-check-service.d.ts +10 -0
  339. package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
  340. package/daemon/dist/domain/restore-check-service.js +76 -3
  341. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  342. package/daemon/dist/domain/restore-orchestrator.d.ts +60 -2
  343. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  344. package/daemon/dist/domain/restore-orchestrator.js +241 -50
  345. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  346. package/daemon/dist/domain/restore-plan-preview.d.ts +28 -1
  347. package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
  348. package/daemon/dist/domain/restore-plan-preview.js +17 -5
  349. package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
  350. package/daemon/dist/domain/restore-preconditions.d.ts +24 -0
  351. package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
  352. package/daemon/dist/domain/restore-preconditions.js +61 -1
  353. package/daemon/dist/domain/restore-preconditions.js.map +1 -1
  354. package/daemon/dist/domain/resume-token-validation.d.ts +3 -1
  355. package/daemon/dist/domain/resume-token-validation.d.ts.map +1 -1
  356. package/daemon/dist/domain/resume-token-validation.js +6 -3
  357. package/daemon/dist/domain/resume-token-validation.js.map +1 -1
  358. package/daemon/dist/domain/return-route.d.ts +73 -0
  359. package/daemon/dist/domain/return-route.d.ts.map +1 -0
  360. package/daemon/dist/domain/return-route.js +124 -0
  361. package/daemon/dist/domain/return-route.js.map +1 -0
  362. package/daemon/dist/domain/rig-expansion-service.js +1 -1
  363. package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
  364. package/daemon/dist/domain/rig-repository.d.ts +12 -0
  365. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  366. package/daemon/dist/domain/rig-repository.js +73 -0
  367. package/daemon/dist/domain/rig-repository.js.map +1 -1
  368. package/daemon/dist/domain/rig-teardown.d.ts +4 -2
  369. package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
  370. package/daemon/dist/domain/rig-teardown.js +32 -13
  371. package/daemon/dist/domain/rig-teardown.js.map +1 -1
  372. package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
  373. package/daemon/dist/domain/rigspec-codec.js +9 -0
  374. package/daemon/dist/domain/rigspec-codec.js.map +1 -1
  375. package/daemon/dist/domain/rigspec-exporter.d.ts +6 -0
  376. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  377. package/daemon/dist/domain/rigspec-exporter.js +30 -0
  378. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  379. package/daemon/dist/domain/rigspec-instantiator.d.ts +22 -2
  380. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  381. package/daemon/dist/domain/rigspec-instantiator.js +82 -23
  382. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  383. package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  384. package/daemon/dist/domain/rigspec-schema.js +44 -1
  385. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  386. package/daemon/dist/domain/rosters.d.ts +12 -0
  387. package/daemon/dist/domain/rosters.d.ts.map +1 -1
  388. package/daemon/dist/domain/rosters.js +17 -4
  389. package/daemon/dist/domain/rosters.js.map +1 -1
  390. package/daemon/dist/domain/runner-channel.d.ts +33 -0
  391. package/daemon/dist/domain/runner-channel.d.ts.map +1 -0
  392. package/daemon/dist/domain/runner-channel.js +179 -0
  393. package/daemon/dist/domain/runner-channel.js.map +1 -0
  394. package/daemon/dist/domain/runner-grant-launch.js +2 -2
  395. package/daemon/dist/domain/runtime-adapter.d.ts +2 -0
  396. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  397. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  398. package/daemon/dist/domain/runtime-switch-materials.d.ts.map +1 -1
  399. package/daemon/dist/domain/runtime-switch-materials.js +4 -3
  400. package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
  401. package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
  402. package/daemon/dist/domain/scope/scope-audit.js +55 -3
  403. package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
  404. package/daemon/dist/domain/seat-attention-reconciler.d.ts +6 -4
  405. package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
  406. package/daemon/dist/domain/seat-attention-reconciler.js +17 -10
  407. package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
  408. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  409. package/daemon/dist/domain/seat-delivery-guard.js +2 -1
  410. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  411. package/daemon/dist/domain/seat-handover-service.d.ts +27 -4
  412. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  413. package/daemon/dist/domain/seat-handover-service.js +203 -63
  414. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  415. package/daemon/dist/domain/seat-identity-reconciler.d.ts +8 -1
  416. package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
  417. package/daemon/dist/domain/seat-identity-reconciler.js +52 -12
  418. package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
  419. package/daemon/dist/domain/seat-lifecycle-service.d.ts +21 -4
  420. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  421. package/daemon/dist/domain/seat-lifecycle-service.js +68 -2
  422. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  423. package/daemon/dist/domain/seat-restart-in-place.d.ts +9 -2
  424. package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
  425. package/daemon/dist/domain/seat-restart-in-place.js +34 -2
  426. package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
  427. package/daemon/dist/domain/seat-runtime-switch-service.d.ts +4 -0
  428. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  429. package/daemon/dist/domain/seat-runtime-switch-service.js +9 -3
  430. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  431. package/daemon/dist/domain/seat-status-service.d.ts +4 -0
  432. package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
  433. package/daemon/dist/domain/seat-status-service.js +31 -6
  434. package/daemon/dist/domain/seat-status-service.js.map +1 -1
  435. package/daemon/dist/domain/session-transport.d.ts +16 -3
  436. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  437. package/daemon/dist/domain/session-transport.js +134 -9
  438. package/daemon/dist/domain/session-transport.js.map +1 -1
  439. package/daemon/dist/domain/shared-conversation.d.ts +58 -0
  440. package/daemon/dist/domain/shared-conversation.d.ts.map +1 -0
  441. package/daemon/dist/domain/shared-conversation.js +98 -0
  442. package/daemon/dist/domain/shared-conversation.js.map +1 -0
  443. package/daemon/dist/domain/startup-phase-timing.d.ts +19 -0
  444. package/daemon/dist/domain/startup-phase-timing.d.ts.map +1 -0
  445. package/daemon/dist/domain/startup-phase-timing.js +23 -0
  446. package/daemon/dist/domain/startup-phase-timing.js.map +1 -0
  447. package/daemon/dist/domain/successor-session-launcher.d.ts +9 -0
  448. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  449. package/daemon/dist/domain/successor-session-launcher.js +24 -7
  450. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  451. package/daemon/dist/domain/team-operations.d.ts +6 -6
  452. package/daemon/dist/domain/team-operations.d.ts.map +1 -1
  453. package/daemon/dist/domain/team-operations.js +2 -4
  454. package/daemon/dist/domain/team-operations.js.map +1 -1
  455. package/daemon/dist/domain/terminal/herdr-app-provider.d.ts +6 -0
  456. package/daemon/dist/domain/terminal/herdr-app-provider.d.ts.map +1 -1
  457. package/daemon/dist/domain/terminal/herdr-app-provider.js +23 -1
  458. package/daemon/dist/domain/terminal/herdr-app-provider.js.map +1 -1
  459. package/daemon/dist/domain/terminal-policy.js +1 -1
  460. package/daemon/dist/domain/terminal-policy.js.map +1 -1
  461. package/daemon/dist/domain/types.d.ts +82 -5
  462. package/daemon/dist/domain/types.d.ts.map +1 -1
  463. package/daemon/dist/domain/types.js.map +1 -1
  464. package/daemon/dist/domain/watchdog-delivery.d.ts +1 -1
  465. package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
  466. package/daemon/dist/domain/watchdog-delivery.js +6 -3
  467. package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
  468. package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
  469. package/daemon/dist/domain/watchdog-jobs-repository.js +1 -0
  470. package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
  471. package/daemon/dist/domain/watchdog-policy-engine.d.ts +5 -0
  472. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  473. package/daemon/dist/domain/watchdog-policy-engine.js +14 -4
  474. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  475. package/daemon/dist/domain/workflow-runtime.d.ts +1 -1
  476. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  477. package/daemon/dist/domain/workflow-runtime.js +4 -2
  478. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  479. package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts +7 -1
  480. package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
  481. package/daemon/dist/domain/workspace/default-workspace-scaffold.js +35 -7
  482. package/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
  483. package/daemon/dist/gateway-slack-surface.d.ts +2 -2
  484. package/daemon/dist/gateway-slack-surface.d.ts.map +1 -1
  485. package/daemon/dist/gateway-slack-surface.js +1 -1
  486. package/daemon/dist/gateway-slack-surface.js.map +1 -1
  487. package/daemon/dist/index.d.ts.map +1 -1
  488. package/daemon/dist/index.js +13 -2
  489. package/daemon/dist/index.js.map +1 -1
  490. package/daemon/dist/routes/activity.d.ts.map +1 -1
  491. package/daemon/dist/routes/activity.js +105 -2
  492. package/daemon/dist/routes/activity.js.map +1 -1
  493. package/daemon/dist/routes/agent-images.d.ts.map +1 -1
  494. package/daemon/dist/routes/agent-images.js +6 -1
  495. package/daemon/dist/routes/agent-images.js.map +1 -1
  496. package/daemon/dist/routes/attention.d.ts.map +1 -1
  497. package/daemon/dist/routes/attention.js +2 -1
  498. package/daemon/dist/routes/attention.js.map +1 -1
  499. package/daemon/dist/routes/compaction.d.ts.map +1 -1
  500. package/daemon/dist/routes/compaction.js +46 -7
  501. package/daemon/dist/routes/compaction.js.map +1 -1
  502. package/daemon/dist/routes/queue.d.ts +4 -1
  503. package/daemon/dist/routes/queue.d.ts.map +1 -1
  504. package/daemon/dist/routes/queue.js +232 -34
  505. package/daemon/dist/routes/queue.js.map +1 -1
  506. package/daemon/dist/routes/require-sender-identity.d.ts +4 -3
  507. package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
  508. package/daemon/dist/routes/require-sender-identity.js.map +1 -1
  509. package/daemon/dist/routes/restore-check.d.ts.map +1 -1
  510. package/daemon/dist/routes/restore-check.js +1 -0
  511. package/daemon/dist/routes/restore-check.js.map +1 -1
  512. package/daemon/dist/routes/rigspec.d.ts.map +1 -1
  513. package/daemon/dist/routes/rigspec.js +24 -4
  514. package/daemon/dist/routes/rigspec.js.map +1 -1
  515. package/daemon/dist/routes/seat.d.ts.map +1 -1
  516. package/daemon/dist/routes/seat.js +107 -6
  517. package/daemon/dist/routes/seat.js.map +1 -1
  518. package/daemon/dist/routes/sessions.js +14 -3
  519. package/daemon/dist/routes/sessions.js.map +1 -1
  520. package/daemon/dist/routes/startup.js +7 -1
  521. package/daemon/dist/routes/startup.js.map +1 -1
  522. package/daemon/dist/routes/up.d.ts.map +1 -1
  523. package/daemon/dist/routes/up.js +14 -4
  524. package/daemon/dist/routes/up.js.map +1 -1
  525. package/daemon/dist/routes/watchdog.d.ts.map +1 -1
  526. package/daemon/dist/routes/watchdog.js +18 -1
  527. package/daemon/dist/routes/watchdog.js.map +1 -1
  528. package/daemon/dist/server.d.ts +3 -0
  529. package/daemon/dist/server.d.ts.map +1 -1
  530. package/daemon/dist/server.js +11 -0
  531. package/daemon/dist/server.js.map +1 -1
  532. package/daemon/dist/startup.d.ts.map +1 -1
  533. package/daemon/dist/startup.js +51 -16
  534. package/daemon/dist/startup.js.map +1 -1
  535. package/daemon/docs/reference/agent-startup-guide.md +2 -1
  536. package/daemon/docs/reference/community-harness-examples/dsh/README.md +8 -0
  537. package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +139 -5
  538. package/daemon/docs/reference/community-harness-presets.md +2 -0
  539. package/daemon/docs/reference/daemon-http-clients.md +61 -12
  540. package/daemon/docs/reference/getting-started.md +4 -4
  541. package/daemon/docs/reference/harness-runner-contract.md +91 -1
  542. package/daemon/docs/reference/herdr-app.md +6 -0
  543. package/daemon/docs/reference/quickstart.md +2 -2
  544. package/daemon/docs/reference/rig-spec.md +166 -0
  545. package/daemon/docs/reference/rosters.md +9 -0
  546. package/daemon/docs/reference/sdlc-conventions.md +5 -1
  547. package/daemon/docs/reference/slack-app-setup.md +39 -21
  548. package/daemon/docs/reference/whats-new.md +107 -6
  549. package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +23 -0
  550. package/daemon/specs/rigs/launch/factory/guidance/lead-first-move.md +26 -5
  551. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +19 -5
  552. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +1 -1
  553. package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +12 -0
  554. package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +26 -5
  555. package/dist/acp/connector.js +1 -1
  556. package/dist/acp/connector.js.map +1 -1
  557. package/dist/build-info.js +3 -3
  558. package/dist/cli-error.d.ts.map +1 -1
  559. package/dist/cli-error.js +7 -1
  560. package/dist/cli-error.js.map +1 -1
  561. package/dist/client.d.ts +2 -1
  562. package/dist/client.d.ts.map +1 -1
  563. package/dist/client.js +3 -2
  564. package/dist/client.js.map +1 -1
  565. package/dist/commands/ask.d.ts.map +1 -1
  566. package/dist/commands/ask.js +92 -11
  567. package/dist/commands/ask.js.map +1 -1
  568. package/dist/commands/broadcast.js +9 -5
  569. package/dist/commands/broadcast.js.map +1 -1
  570. package/dist/commands/compact.d.ts +3 -4
  571. package/dist/commands/compact.d.ts.map +1 -1
  572. package/dist/commands/compact.js +76 -16
  573. package/dist/commands/compact.js.map +1 -1
  574. package/dist/commands/config-init-workspace.d.ts.map +1 -1
  575. package/dist/commands/config-init-workspace.js +3 -0
  576. package/dist/commands/config-init-workspace.js.map +1 -1
  577. package/dist/commands/down.d.ts.map +1 -1
  578. package/dist/commands/down.js +3 -1
  579. package/dist/commands/down.js.map +1 -1
  580. package/dist/commands/export.d.ts.map +1 -1
  581. package/dist/commands/export.js +2 -1
  582. package/dist/commands/export.js.map +1 -1
  583. package/dist/commands/fork.d.ts.map +1 -1
  584. package/dist/commands/fork.js +2 -0
  585. package/dist/commands/fork.js.map +1 -1
  586. package/dist/commands/launch.d.ts.map +1 -1
  587. package/dist/commands/launch.js +11 -3
  588. package/dist/commands/launch.js.map +1 -1
  589. package/dist/commands/ps.d.ts +28 -0
  590. package/dist/commands/ps.d.ts.map +1 -1
  591. package/dist/commands/ps.js +76 -2
  592. package/dist/commands/ps.js.map +1 -1
  593. package/dist/commands/queue.d.ts.map +1 -1
  594. package/dist/commands/queue.js +309 -21
  595. package/dist/commands/queue.js.map +1 -1
  596. package/dist/commands/rig.d.ts +2 -0
  597. package/dist/commands/rig.d.ts.map +1 -1
  598. package/dist/commands/rig.js +36 -2
  599. package/dist/commands/rig.js.map +1 -1
  600. package/dist/commands/roster.d.ts +3 -0
  601. package/dist/commands/roster.d.ts.map +1 -1
  602. package/dist/commands/seat.d.ts.map +1 -1
  603. package/dist/commands/seat.js +126 -7
  604. package/dist/commands/seat.js.map +1 -1
  605. package/dist/commands/send.d.ts.map +1 -1
  606. package/dist/commands/send.js +47 -6
  607. package/dist/commands/send.js.map +1 -1
  608. package/dist/commands/setup.js +2 -2
  609. package/dist/commands/setup.js.map +1 -1
  610. package/dist/commands/slack.d.ts +2 -1
  611. package/dist/commands/slack.d.ts.map +1 -1
  612. package/dist/commands/slack.js +38 -2
  613. package/dist/commands/slack.js.map +1 -1
  614. package/dist/commands/terminal.d.ts.map +1 -1
  615. package/dist/commands/terminal.js +5 -5
  616. package/dist/commands/terminal.js.map +1 -1
  617. package/dist/commands/up.d.ts.map +1 -1
  618. package/dist/commands/up.js +3 -0
  619. package/dist/commands/up.js.map +1 -1
  620. package/dist/commands/workflow.d.ts.map +1 -1
  621. package/dist/commands/workflow.js +4 -0
  622. package/dist/commands/workflow.js.map +1 -1
  623. package/dist/daemon-lifecycle.d.ts.map +1 -1
  624. package/dist/daemon-lifecycle.js +1 -0
  625. package/dist/daemon-lifecycle.js.map +1 -1
  626. package/dist/lib/model-observation.d.ts.map +1 -1
  627. package/dist/lib/model-observation.js +9 -3
  628. package/dist/lib/model-observation.js.map +1 -1
  629. package/dist/lib/scope/scope-audit.d.ts.map +1 -1
  630. package/dist/lib/scope/scope-audit.js +55 -3
  631. package/dist/lib/scope/scope-audit.js.map +1 -1
  632. package/dist/local-db.d.ts +5 -0
  633. package/dist/local-db.d.ts.map +1 -0
  634. package/dist/local-db.js +23 -0
  635. package/dist/local-db.js.map +1 -0
  636. package/dist/local-origin.d.ts.map +1 -1
  637. package/dist/local-origin.js +2 -17
  638. package/dist/local-origin.js.map +1 -1
  639. package/dist/mcp-server.d.ts.map +1 -1
  640. package/dist/mcp-server.js +122 -18
  641. package/dist/mcp-server.js.map +1 -1
  642. package/dist/sender-identity.d.ts +18 -6
  643. package/dist/sender-identity.d.ts.map +1 -1
  644. package/dist/sender-identity.js +67 -7
  645. package/dist/sender-identity.js.map +1 -1
  646. package/dist/terminal-window-rex.d.ts +1 -1
  647. package/dist/terminal-window-rex.d.ts.map +1 -1
  648. package/dist/terminal-window-rex.js +3 -2
  649. package/dist/terminal-window-rex.js.map +1 -1
  650. package/dist/terminal-window.js +3 -3
  651. package/dist/terminal-window.js.map +1 -1
  652. package/package.json +1 -1
  653. package/tui/dist/daemon-client.d.ts.map +1 -1
  654. package/tui/dist/daemon-client.js +2 -1
  655. package/tui/dist/daemon-client.js.map +1 -1
  656. package/ui/dist/assets/{index-BvUEh33d.js → index-1O1f3A7K.js} +55 -55
  657. package/ui/dist/index.html +1 -1
@@ -36,6 +36,14 @@ The runner's own defaults for dsh:
36
36
  - **Its version:** the launch record names dsh's version from `dsh --version`. If that fails or takes over 5 seconds, it
37
37
  names the version dsh's ACP handshake reports, marked as such: dsh 0.2.1-rc.2 reports 0.0.1 there.
38
38
 
39
+ ## Optional native input and dedicated wake
40
+
41
+ This copy also implements the optional version-1 [run-bound channel](../../harness-runner-contract.md#optional-run-bound-native-input-and-wake-version-1). Choose the seat's native route explicitly; `runner: true` alone does not change its typed default. The private launch grant stays in this process and is removed from the dsh child environment.
42
+
43
+ Native input uses this runner's existing ACP prompt queue. A native wake gets a dedicated prompt and returns only its actual assistant message chunks after its own terminal ACP response. Later inputs wait behind it; multiple wakes are independent prompts. HTTP receipt retries and SSE reconnects reuse the live process map and do not reissue a prompt. Caller timeout does not cancel native work. Structured native text bypasses the person's slash/Ctrl-C parser, while `/abort` and Ctrl-C typed by a person remain available. Managed native cancellation is not implemented or advertised here.
44
+
45
+ The new channel path is tested with the actual runner process and an offline ACP backend. Earlier native permission/cancel testing of older runner copies does not qualify these new wake semantics or make native a default. See the contract for custody/uncertainty, erased receipts and the separate native-program proof limits.
46
+
39
47
  ## Permissions
40
48
 
41
49
  The runner submits each request to OpenRig, which asks one person:
@@ -163,6 +163,17 @@ function openrigEndpoint() {
163
163
  return base && token ? { base: base.replace(/\/+$/, ""), token } : null;
164
164
  }
165
165
 
166
+ function runnerFrameBound(buffer) {
167
+ const overhead = 64 * 1024;
168
+ const fallback = { limit: 6 * 1024 * 1024 + overhead };
169
+ if (!buffer.startsWith(": runner-frame-chars=") || !buffer.includes("\n")) return fallback;
170
+ const header = /^: runner-frame-chars=([0-9]+)\n/.exec(buffer);
171
+ const chars = header ? Number(header[1]) : NaN;
172
+ if (!Number.isSafeInteger(chars) || chars < 1 || chars > Number.MAX_SAFE_INTEGER - overhead)
173
+ throw new Error("Invalid channel frame size");
174
+ return { limit: chars + overhead, chars };
175
+ }
176
+
166
177
  async function callOpenRig(method, path, body, timeoutMs) {
167
178
  const endpoint = openrigEndpoint();
168
179
  if (!endpoint) return { status: 0, body: null };
@@ -274,8 +285,100 @@ async function main() {
274
285
  child.stdin.on("error", () => {});
275
286
  const peer = new AgentPeer(child, (line) => say(`[dsh] ${line}`));
276
287
  const state = { sessionId: null, turn: 0, running: false, cancelRequestedAt: null, holding: false, refused: false, queue: [], asks: new Set(), lastActive: 0, asking: 0, waiting: 0, resolvedAsk: null };
288
+ const managed = new Map();
289
+ const channelStop = new AbortController();
290
+ let activeManaged = null;
291
+ let managedQuarantined = false;
292
+ const permanentRunRefusal = (status, code) => [401, 403, 404, 409, 410].includes(status)
293
+ && !["runner_hello_required", "runner_grant_pending", "runner_grant_unverified"].includes(code)
294
+ && ([401, 403].includes(status) || ["runner_grant_required", "runner_grant_revoked", "runner_grant_stale"].includes(code));
295
+ const channelPost = async (body) => {
296
+ while (!channelStop.signal.aborted) {
297
+ const result = await callOpenRig("POST", "/api/activity/runner-channel", body, POST_TIMEOUT_MS);
298
+ if (result.status >= 200 && result.status < 300) return true;
299
+ if ([401, 403, 404, 409, 410].includes(result.status) && !["runner_hello_required", "runner_grant_pending", "runner_grant_unverified"].includes(result.body?.code)) {
300
+ if (permanentRunRefusal(result.status, result.body?.code)) managedQuarantined = true;
301
+ return false;
302
+ }
303
+ await sleep(250);
304
+ }
305
+ return false;
306
+ };
307
+ const report = (entry, type, result) => {
308
+ const f = entry.frame;
309
+ if (result) entry.result = result;
310
+ entry.reports = entry.reports.then(() => channelPost({ type, runId: f.runId, requestId: f.requestId, sequence: f.sequence,
311
+ ...(entry.nativeTurnId ? { nativeTurnId: entry.nativeTurnId } : {}), ...(result ? { result } : {}) }));
312
+ };
313
+ const submitted = (entry) => {
314
+ if (!entry || entry.submitted) return;
315
+ entry.submitted = true; report(entry, "submitted");
316
+ };
317
+ const acceptFrame = async (raw) => {
318
+ if (agentExited || stopping || raw.version !== 1 || raw.runId !== env.OPENRIG_RUN_ID || !["input", "wake"].includes(raw.kind)
319
+ || !Number.isSafeInteger(raw.sequence) || raw.sequence < 1 || typeof raw.requestId !== "string"
320
+ || typeof (raw.kind === "wake" ? raw.payload?.question : raw.payload?.text) !== "string") return;
321
+ const frame = { version: 1, runId: raw.runId, requestId: raw.requestId, sequence: raw.sequence, kind: raw.kind,
322
+ payload: raw.kind === "wake" ? { question: raw.payload.question } : { text: raw.payload.text } };
323
+ if ([...managed.values()].some(entry => entry.frame.sequence === frame.sequence && entry.frame.requestId !== frame.requestId)) throw new Error("Conflicting native sequence");
324
+ const old = managed.get(frame.requestId);
325
+ if (old) { if (JSON.stringify(old.frame) !== JSON.stringify(frame)) throw new Error("Conflicting native request"); await old.acceptance; return; }
326
+ const entry = { frame, state: "accepting", reports: Promise.resolve(), answer: [] };
327
+ managed.set(frame.requestId, entry);
328
+ entry.acceptance = (async () => {
329
+ if (!await channelPost({ type: "ack", runId: frame.runId, requestId: frame.requestId, sequence: frame.sequence, state: "accepted" })) { entry.state = "unavailable"; pump(); return; }
330
+ entry.state = "queued";
331
+ const before = state.queue.findIndex(other => typeof other !== "string" && other.frame.sequence > frame.sequence);
332
+ if (before < 0) state.queue.push(entry); else state.queue.splice(before, 0, entry);
333
+ pump();
334
+ })();
335
+ await entry.acceptance;
336
+ };
337
+ const connectChannel = async () => {
338
+ let retained = false, cursor = 0;
339
+ const endpoint = openrigEndpoint();
340
+ if (!endpoint?.token.startsWith("oag_") || !env.OPENRIG_RUN_ID || !env.OPENRIG_ACTIVITY_HOOK_TOKEN) return;
341
+ while (!channelStop.signal.aborted) {
342
+ try {
343
+ const hello = await callOpenRig("POST", "/api/activity/runner-channel", { type: "hello", version: 1, runId: env.OPENRIG_RUN_ID, retained,
344
+ capabilities: { input: !managedQuarantined, wake: !managedQuarantined, cancel: false } }, POST_TIMEOUT_MS);
345
+ if (permanentRunRefusal(hello.status, hello.body?.code)) { managedQuarantined = true; return; }
346
+ if (hello.status !== 200) throw new Error("Channel handshake unavailable");
347
+ retained = true;
348
+ const response = await fetch(`${endpoint.base}/api/activity/runner-channel`, { signal: channelStop.signal,
349
+ headers: { authorization: `Bearer ${endpoint.token}`, "Last-Event-ID": String(cursor) } });
350
+ if (!response.ok) {
351
+ const failure = await response.json().catch(() => null);
352
+ if (permanentRunRefusal(response.status, failure?.code)) { managedQuarantined = true; return; }
353
+ throw new Error("Channel unavailable");
354
+ }
355
+ if (!response.body) throw new Error("Channel unavailable");
356
+ const reader = response.body.pipeThrough(new TextDecoderStream()).getReader(); let buffer = "";
357
+ try {
358
+ for (;;) {
359
+ const part = await reader.read(); if (part.done) break;
360
+ buffer += part.value.replace(/\r/g, "");
361
+ let end;
362
+ while ((end = buffer.indexOf("\n\n")) >= 0) {
363
+ const bound = runnerFrameBound(buffer);
364
+ if (end > bound.limit) throw new Error("Channel frame too large");
365
+ const block = buffer.slice(0, end); buffer = buffer.slice(end + 2);
366
+ const data = block.split("\n").filter(line => line.startsWith("data: ")).map(line => line.slice(6)).join("\n");
367
+ if (bound.chars !== undefined && data.length !== bound.chars) throw new Error("Channel frame size mismatch");
368
+ if (!data) continue;
369
+ const frame = JSON.parse(data); if (frame.runId !== env.OPENRIG_RUN_ID || !Number.isSafeInteger(frame.sequence) || frame.sequence < 1) throw new Error("Invalid channel frame");
370
+ cursor = Math.max(cursor, frame.sequence); void acceptFrame(frame).catch(() => {});
371
+ }
372
+ if (buffer.length > runnerFrameBound(buffer).limit) throw new Error("Channel frame too large");
373
+ }
374
+ } finally { await reader.cancel().catch(() => {}); }
375
+ } catch { /* Reconnect with this process's retained map; never replay native operations. */ }
376
+ if (!channelStop.signal.aborted) await sleep(250);
377
+ }
378
+ };
277
379
  const inflight = new Set();
278
380
  const track = (promise) => { inflight.add(promise); promise.finally(() => inflight.delete(promise)); return promise; };
381
+ let activeTurn = Promise.resolve();
279
382
  let agentExited = false;
280
383
  let stopping = false;
281
384
  let heartbeat;
@@ -295,7 +398,11 @@ async function main() {
295
398
  clearInterval(heartbeat);
296
399
  clearInterval(workBeat);
297
400
  restoreTty();
298
- await Promise.race([Promise.allSettled([...inflight, activity.flushed()]), sleep(2_000)]);
401
+ await Promise.race([(async () => {
402
+ await activeTurn;
403
+ await Promise.allSettled([...inflight, activity.flushed(), ...[...managed.values()].map(entry => entry.reports)]);
404
+ })(), sleep(2_000)]);
405
+ channelStop.abort();
299
406
  process.exit(code);
300
407
  };
301
408
  const fatal = async (message, code) => {
@@ -324,9 +431,13 @@ async function main() {
324
431
  peer.onNotification("session/update", (params) => {
325
432
  if (params.sessionId !== state.sessionId || !params.update) return;
326
433
  const update = params.update;
434
+ if (activeManaged) submitted(activeManaged);
327
435
  const reporting = working();
328
436
  if (update.sessionUpdate === "agent_message_chunk") {
329
- if (update.content?.type === "text") process.stdout.write(update.content.text);
437
+ if (update.content?.type === "text") {
438
+ process.stdout.write(update.content.text);
439
+ if (activeManaged?.frame.kind === "wake") activeManaged.answer.push(update.content.text);
440
+ }
330
441
  if (reporting && Date.now() - state.lastActive >= ACTIVE_EVERY_MS) { state.lastActive = Date.now(); activity.post("active", "agent_message"); }
331
442
  } else if (update.sessionUpdate === "tool_call") {
332
443
  say(`\n[tool] ${update.title ?? "tool"} (${update.kind ?? "other"})`);
@@ -476,7 +587,10 @@ async function main() {
476
587
  for (const ask of state.asks) ask.end("turn_cancelled");
477
588
  };
478
589
 
479
- const runTurn = async (text) => {
590
+ const runTurn = async (input) => {
591
+ const entry = typeof input === "string" ? null : input;
592
+ const text = entry ? (entry.frame.kind === "wake" ? entry.frame.payload.question : entry.frame.payload.text) : input;
593
+ activeManaged = entry;
480
594
  state.running = true;
481
595
  state.turn += 1;
482
596
  state.holding = false;
@@ -486,18 +600,33 @@ async function main() {
486
600
  state.cancelRequestedAt = null;
487
601
  state.lastActive = 0;
488
602
  const turnId = String(state.turn);
603
+ if (entry) { entry.state = "writing"; entry.nativeTurnId = `dsh-prompt-${state.turn}`; }
489
604
  say(`\nyou ▸ ${firstLine(text)}`);
490
605
  activity.post("UserPromptSubmit", "accepted", { turnId });
491
606
  let stopReason;
492
607
  try {
493
608
  const result = await peer.request("session/prompt", { sessionId: state.sessionId, prompt: [{ type: "text", text }] });
609
+ if (entry) submitted(entry);
494
610
  stopReason = String(result?.stopReason ?? "unreported");
495
611
  } catch (error) {
496
- if (agentExited) return;
612
+ if (entry && !entry.submitted && [-32600, -32601, -32602].includes(error.code)) {
613
+ entry.rejected = true; report(entry, "rejected", { kind: entry.frame.kind, reason: "native_prompt_rejected" });
614
+ }
615
+ if (agentExited && !entry) return;
497
616
  say(`\n[openrig-dsh] the turn failed: ${error.message}`);
498
617
  activity.post("Notification", "runtime_error", { turnId });
499
618
  stopReason = "error";
500
619
  }
620
+ if (entry && !entry.rejected) {
621
+ const completion = !entry.submitted ? "unknown" : stopReason === "cancelled" || state.cancelRequestedAt ? "interrupted"
622
+ : stopReason === "end_turn" && (entry.frame.kind !== "wake" || entry.answer.some(text => text.length > 0)) ? "completed"
623
+ : stopReason === "error" ? "failed" : "unknown";
624
+ report(entry, "result", { kind: entry.frame.kind, nativeTurnId: entry.nativeTurnId, completion,
625
+ ...(entry.frame.kind === "wake" ? { answer: completion === "completed" ? entry.answer.join("") : null } : { accepted: entry.submitted === true }),
626
+ ...(!entry.submitted ? { submissionUnknown: true } : {}) });
627
+ }
628
+ if (entry) entry.state = "terminal";
629
+ activeManaged = null;
501
630
  state.running = false;
502
631
  for (const ask of state.asks) ask.end("turn_ended");
503
632
  say(`\n── turn end (${stopReason}) ──`);
@@ -508,7 +637,11 @@ async function main() {
508
637
 
509
638
  const pump = () => {
510
639
  if (state.running || agentExited || state.queue.length === 0) return;
511
- void runTurn(state.queue.shift());
640
+ const index = managedQuarantined ? state.queue.findIndex(input => typeof input === "string") : 0;
641
+ if (index < 0) return;
642
+ const next = state.queue[index];
643
+ if (typeof next !== "string" && [...managed.values()].some(prior => prior.state === "accepting" && prior.frame.sequence < next.frame.sequence)) return;
644
+ activeTurn = runTurn(state.queue.splice(index, 1)[0]);
512
645
  };
513
646
 
514
647
  const submit = (text) => {
@@ -576,6 +709,7 @@ async function main() {
576
709
  say(`[openrig-dsh] DSH_HOME ${home} · DSH_PERMISSION_MODE ${agentEnv.DSH_PERMISSION_MODE}`);
577
710
  say("[openrig-dsh] each submitted message is one prompt; /abort or Ctrl-C cancels the running turn");
578
711
 
712
+ void connectChannel();
579
713
  heartbeat = setInterval(() => { if (!state.running && !state.holding && !agentExited) postIdle("idle_heartbeat"); }, BEAT_MS);
580
714
  // While a turn runs and nothing waits on a person: the turn is still outstanding and dsh is alive. Not progress.
581
715
  workBeat = setInterval(() => {
@@ -193,6 +193,8 @@ one at a time and in order, without making the agent wait. It finds the address
193
193
  - **A runner's full duties** (liveness, input, cancellation and permissions) are in the draft
194
194
  [harness and runner contract](harness-runner-contract.md).
195
195
 
196
+ A runner declaration is not a native-input or wake declaration. The optional [run-bound channel](harness-runner-contract.md#optional-run-bound-native-input-and-wake-version-1) advertises implemented operations through an authenticated live hello; Core supports the declared preset contract family, while hosted Pi-RPC adoption remains separate. The dsh example implements input and dedicated wake, with cancellation false. Typed remains every program's default, native selection is explicit per seat, and a Pi-compatible wrapper does not qualify or adopt another program's native operations.
197
+
196
198
  ## Pi-compatible RPC harnesses (`protocol: pi-rpc`)
197
199
 
198
200
  For a community harness that is a fork of Pi or speaks Pi's CLI and JSONL RPC protocol (such as OmO Native on senpi or Prime Agent), set `protocol: pi-rpc`.
@@ -63,8 +63,9 @@ The daemon reads two tokens from its environment at start:
63
63
  A route whose token isn't set lets every request through. Send a token as `Authorization: Bearer <token>`; the
64
64
  `GET /api/terminal/<name>` routes, the websocket included, also take `?token=<token>`. The CLI sends the terminal token from `OPENRIG_TERMINAL_BEARER_TOKEN`,
65
65
  or else from the file `$OPENRIG_HOME/terminal-token`, which the person writes; the daemon doesn't create it. `rig host
66
- approve|deny` and the TUI's answers to asks send `OPENRIG_AUTH_BEARER_TOKEN` from their environment (`rig host` also
67
- takes `--bearer`), and otherwise the terminal token; refused for want of it, they say what to set.
66
+ approve|deny`, the TUI's answers to asks and the MCP tool `rig_question_answer` (on the answer's writes only) send
67
+ `OPENRIG_AUTH_BEARER_TOKEN` from their environment (`rig host` also takes `--bearer`), and otherwise the terminal token;
68
+ refused for want of it, `rig host` and the TUI say what to set.
68
69
 
69
70
  A wrong or missing token gets HTTP 401. The routes that check `OPENRIG_AUTH_BEARER_TOKEN`, and `/api/transport`
70
71
  and `/api/compaction`, answer `{ "error": "unauthorized", "message", "what_failed", "why_it_matters", "what_to_do" }`.
@@ -180,7 +181,8 @@ With `needs-me.read` supported:
180
181
  `revision` and `about`. `revision` is the request's opaque decision revision: the same value as that row's
181
182
  `decisionRevision`, and what an answer can name as `expectedRevision` so it applies only to the version the person
182
183
  read. `about` lists the requests it concerns by id: a row parked on the person is itself the request, and an ask is
183
- about the open rows blocked on it (at most 100; empty when none are recorded).
184
+ about the open rows blocked on it (the newest 100, with `aboutTruncated: true` when there are more). An empty `about`
185
+ isn't proof that it's about nothing: a request that names it only in its text isn't counted.
184
186
  - **A snapshot watermark:** the response's `watermark` is the newest event `seq` read before the snapshot. Follow
185
187
  `GET /api/events` from it with `Last-Event-ID: <watermark>`: every event after the snapshot is replayed, some possibly
186
188
  already reflected in it. A click that records or changes an answer emits `queue.answer_recorded` even while the set
@@ -192,7 +194,49 @@ With `needs-me.read` supported:
192
194
  footer. `episode` names the park an answer belongs to, or is null. `recordedIdentity` is the identity provenance
193
195
  recorded when the answer row was created. An answer row's own read has `replyTo`, the request it answers. A partial
194
196
  set of choices stays on the request's `humanAnswers` until the whole set is returned. A runner's permission request
195
- or a host pairing request is answered in place, with no answer row.
197
+ or a host pairing request is answered in place, with no answer row. `answersFrom: "this-daemon"` says where they were
198
+ read: an answer another host holds isn't among them, so an empty list isn't proof that nobody answered.
199
+
200
+ ### What a connection supports, and what happened to a delivery (`member-connection.v1`)
201
+
202
+ `GET /api/member-connection/capabilities` lists each delivery route this daemon declares, with what it supports in four
203
+ groups: `observe` (`dialog`, `turnStart`), `control` (`submit`), `nativeIdentity` (`sessionId`, `resume`) and
204
+ `continuity` (`managedCompaction`, `restorePacketConfirmation`, `fork`). The routes are `typed` (OpenRig types into the
205
+ member's terminal; capabilities by runtime, with `*` for any other), `codex-queue` (Codex's own queue command), a hosted
206
+ member's `hosted-trigger`, and a person's `gateway`. A route with `armed: false` is declared but not used: nothing is
207
+ delivered on it until a setting arms it.
208
+
209
+ Each capability reads `supported`, `not-supported`, `unavailable` (the route has it, but this member can't use it now,
210
+ such as a seat with no session recorded as current), `not-applicable` (it means nothing on this route) or `unknown`. A
211
+ missing key means `unknown`. None of them means idle or success, and a declaration isn't readiness: whether a seat has a
212
+ current session comes from what OpenRig has recorded, not from looking at its pane or process. A daemon without the route (HTTP 404) predates the contract: treat
213
+ every capability as unknown and keep using what works today.
214
+
215
+ `?session=<address>` adds `member`: `{ member, route, runtime, capabilities, reason? }` for the member that address
216
+ names: a person the human registry resolves (or the terminal person's own `human@host`), a hosted member, or a seat. An
217
+ address shaped like a person's, such as `<id>@external`, is a person only when the registry resolves it. A person is
218
+ resolved first, so when the registry can't be read, any address it could resolve to a person (`<id>@external`, or any
219
+ `member@rig`, since a person's id can be spelled that way) comes back unknown, even if a seat or hosted member has that name. That
220
+ answer, and an address none of them has, comes back with `route: null`, every capability `unknown`, and the reason.
221
+
222
+ Each typed send also records what happened to it, in the daemon's `transport.delivery_evidence` event, as
223
+ `outcome: { fact, reporter, route }`. `fact` is `accepted` (typed and submitted, with `renderVerified: true` when
224
+ the screen showed it), `held`, `not-delivered`, `failed-effect-unknown` or `unknown`. A prompt answer typed without Enter on a send that
225
+ succeeded is `unknown`: whether the prompt took it isn't known; if the send failed after typing, it's
226
+ `failed-effect-unknown`. `reporter` says who established it.
227
+ None of them means the member read the work: picking it up is a claim on the row.
228
+
229
+ What reads these declarations:
230
+ - **A handover's packet.** Only a runtime declared with `continuity.restorePacketConfirmation` has its input box read
231
+ until the restore or priming packet leaves it. On any other runtime the handover's result carries
232
+ `restorePacket: { status: "accepted", reason }`: typed and submitted, not seen consumed. `sideEffects.startupContextDelivered`
233
+ stays `true` there for existing readers and means the same thing, accepted; read `restorePacket` for what was seen.
234
+ - **A send's dialog check.** After a fresh hook, the dialog and picker checks run before typing only on a runtime
235
+ declared with `observe.dialog`. The other screen checks before a send don't read the declaration.
236
+ - **A watchdog's history.** When a send returns, the watchdog's history records its `deliveryFact` and, when the screen
237
+ showed it, `deliveryRenderVerified: true`. Exceptions and receipt reconciliation may have no fact; absence of a fact
238
+ or render flag establishes no positive delivery or verification claim. These are outcome words, not a capability
239
+ gate: the reminder's status, receipts and retries don't change with them.
196
240
 
197
241
  ## Route details
198
242
 
@@ -208,8 +252,8 @@ With `needs-me.read` supported:
208
252
  seats, newest first; `?senderSession=<session>` still returns one sender's. One of the two is required; with
209
253
  both, `senderSession` is used and `rig` is ignored. `limit` defaults to 100. No event is sent when a message is delivered, so read this list to see delivery
210
254
  states.
211
- - **`GET /api/queue/recent-transitions`** returns at most 20 rows. A positive `limit` above 20 is capped at 20;
212
- a missing, zero, negative or unparseable `limit` means 20.
255
+ - **`GET /api/queue/recent-transitions`** returns at most 1,000 rows. A positive `limit` above 1,000 is capped at 1,000;
256
+ a missing, zero, negative or unparseable `limit` defaults to 20.
213
257
  - **`POST /api/transport/send`** takes `urgent: true`, the same as `rig send --urgent`. The daemon records who
214
258
  marked it from the sender identity, not from the body.
215
259
  - **`POST /api/scope/approve`** is what `rig scope slice approve` and `rig scope mission approve` call. The body
@@ -278,18 +322,23 @@ These routes use the existing terminal bearer token.
278
322
 
279
323
  1. Read `GET /api/startup/<rigId>/nodes/<nodeId>/original?snapshotId=<id>&historySessionId=<id>`.
280
324
  The preview uses that explicitly retained usable snapshot, even when a newer snapshot exists.
281
- It returns `revision`, the selected history and current model, effort, cwd, permission and runtime-home
282
- provenance. `accountHome.authentication: "unconfirmed"` means that the home selection is configuration,
283
- not proof of an authenticated account. A `daemon_environment` home is the daemon fallback, not a seat setting;
325
+ It returns `revision`, the selected history and current model, effort, cwd and permission.
326
+ `settingsSource.accountHome` describes the seat's current effective home configuration;
327
+ `settingsSource.runtimeHome.uses` describes the home bound to this reviewed attempt, which can differ.
328
+ Neither home selection proves an authenticated account; `accountHome.authentication` remains
329
+ `"unconfirmed"`. A `daemon_environment` home is the daemon fallback, not a seat setting;
284
330
  `native_default` means the runtime default.
285
331
  2. POST to the same `/original` path, without query fields, with `action: "resume"`, `snapshotId`,
286
332
  `historySessionId`, that `revision`, an `operationId` UUID, and `expectedOriginal` containing the banked
287
333
  `nodeId`, `sessionName`, `runtime` (`claude-code` or `codex`) and `nativeId`.
288
334
  Keep native conversation IDs in the private bank and request body. They are not returned in diagnostics.
289
335
 
290
- The operation keeps the current selected launch choices. Its original-only native effect uses the retained
291
- history and existing selected-history ownership checks. A positively established matching original already
292
- running returns `code: "already_running_original"` and `nativeEffect: false`. A confirmed resume returns
336
+ The operation keeps the current model, cwd, effort and permission choices. The reviewed
337
+ `settingsSource.runtimeHome.uses` plan can first apply the selected original's recorded home as a new
338
+ revision before launch, rather than using the current home reported by `settingsSource.accountHome`.
339
+ Its original-only native effect uses the retained history and existing selected-history ownership checks.
340
+ A positively established matching original already running returns `code: "already_running_original"`
341
+ and `nativeEffect: false`. A confirmed resume returns
293
342
  `code: "resumed"`, with `sourceSessionId`, `resultSessionId` and `operationId`.
294
343
 
295
344
  An unavailable source, changed selection, different occupant, restoring-only result or unconfirmed native
@@ -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.17/skills/rigs" --skill rigs --agent claude-code
189
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.18/skills/rigs" --skill rigs --agent claude-code
190
190
 
191
191
  # Codex
192
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.17/skills/rigs" --skill rigs --agent codex
192
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.18/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
@@ -204,11 +204,11 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
204
204
  script will do and changes nothing:
205
205
 
206
206
  ```sh
207
- curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.17/scripts/install.sh | sh -s -- --dry-run
207
+ curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.18/scripts/install.sh | sh -s -- --dry-run
208
208
  ```
209
209
 
210
210
  The same command without `--dry-run`,
211
- `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.17/scripts/install.sh | sh`, installs the
211
+ `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.18/scripts/install.sh | sh`, installs the
212
212
  latest published `@openrig/cli` with `npm install -g`, runs the Node.js and SQLite check if the installed checker is
213
213
  present (otherwise it reports the check skipped), then runs `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
214
214
  Codex and may install a missing one, as described below. A failed step prints
@@ -11,7 +11,8 @@
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
13
  > - **Current source:** per-launch credentials for hosted Pi, Pi-RPC presets and declared community runners (section 4).
14
- > This credential does not qualify new native input or cancellation behavior.
14
+ > Optional run-bound observations retain receipts and project current runner-reported context/community model facts.
15
+ > Credentials and reports do not qualify new native input, cancellation or independently verified program identity.
15
16
  > - **Unchanged:** plain community presets and the other built-in runtimes (Claude Code, Codex, OMP, terminal).
16
17
  >
17
18
  > **What has run natively, in 0.7.8's release testing, against a Claude Haiku model:**
@@ -153,6 +154,66 @@ host hooks, contained guest grants and install-token Pi usage keep their legacy
153
154
  current bound Pi credential. No native input channel or cancellation capability is implied by this credential.
154
155
 
155
156
  Post each event to `POST <base>/api/activity/hooks` with `Authorization: Bearer <token>`.
157
+
158
+ The same endpoint accepts an observation-only report from a current run-bound credential:
159
+
160
+ ```json
161
+ {"runId":"<OPENRIG_RUN_ID>","sequence":1,"occurredAt":"2026-11-12T00:00:00Z",
162
+ "observations":{"model":{"id":"provider/model"},"context":{"usedTokens":1000,"windowTokens":10000}}}
163
+ ```
164
+
165
+ Send this separately from activity and identity posts, without `hookEvent` or `eventFamily`. It records no activity
166
+ or verified identity. Core stores a receipt with the authenticated run/session binding in its existing event log;
167
+ retrying the same observation sequence and payload returns that receipt, while conflicting reuse returns 409.
168
+ Observation ordering is separate from activity/turn ordering. Omitted components keep their own ages; a new run
169
+ cannot inherit an earlier run's reports. Counts without capacity or an explicit percentage remain reported counts,
170
+ not an inferred context occupancy (`availability: unknown`, `reason: window_capacity_unknown`). A valid
171
+ `usedTokens/windowTokens` pair or explicit percentage supplies reported occupancy. The current context reader
172
+ uses accepted events, rechecking run/binding, sequence and the existing ten-minute freshness policy; it never
173
+ revives a runner sample from the context cache. Community model reads use the same current-report boundary.
174
+ Observation model IDs and session references retain Unicode format characters (`\p{Cf}`), including bidi formatting,
175
+ zero-width joiners and non-joiners, where the existing identifier/path format permits. CLI/UI displays escape these
176
+ characters visibly in human CLI model output and UI event previews. These display boundaries use the existing terminal
177
+ JSON escape set: DEL/C1 controls, format characters, line/paragraph separators and default-ignorable code points.
178
+ Stored values, JSON/API payloads and identity
179
+ comparisons retain the original spelling. Observation Pi paths opt into format characters without changing ordinary
180
+ launch/resume validation; their absolute-path, traversal, length and `.jsonl` checks remain.
181
+ Their source is `runner_reported`, displayed as “runner-reported”; existing Claude/Codex/Pi native model
182
+ readers retain their evidence paths and labels. Omitted components retain their own sample times.
183
+ An unreadable binding or report is unknown (`binding_unverified`), not evidence of replacement. The grant and
184
+ existing receipt remain intact; retrying after verification recovers the same accepted receipt. A standing that becomes
185
+ unverified during observation admission, including a failed standing read, returns retryable `409 runner_observation_unverified`.
186
+ `runner_observation_unavailable` remains for a positively stale/revoked run or no bound session; invalid reports and
187
+ conflicting sequence reuse retain their existing refusal codes. No refusal revokes credentials or fabricates observed state.
188
+
189
+ Report changed components rather than repeating unchanged high-rate samples. Retry the same report with its original
190
+ sequence, timestamp and payload. If unchanged facts must remain current, renew them deliberately with a new sequence
191
+ and sample time before the existing freshness window expires; change-only reporting without renewal eventually becomes
192
+ stale. This reduces unnecessary event growth, but does not bound retention or worst-case history query cost. No default
193
+ physical pruning of observation events is provided.
194
+
195
+ A fresh current session component can fill an absent resume reference through the existing report-only
196
+ persistence path with `launcher` provenance, below Core scrape/adoption evidence. Pi and Pi-based community references
197
+ are promoted only if the adapter's default session-file check accepts them. A reference outside that resume format stays
198
+ in the accepted observation, with model/context facts and its receipt intact, but writes no resume token or identity event.
199
+ Generic community harnesses retain their pass-through reference behavior. A promoted reference emits the existing session-identity event once after
200
+ commit; it does not stamp independent verification or resumability. A known conflicting Core reference stays
201
+ unchanged and makes current observations unknown. A retry returns its original receipt without repeating
202
+ identity effects. Community process identity remains unconfirmed without independent Core evidence.
203
+ Runner context does not provision a collector or enable legacy watchdog/compaction enforcement; that
204
+ watchdog's raw cache path excludes runner-reported entries.
205
+
206
+ Core observes launch-recorded community runners independently of session reports. Once the existing startup
207
+ readiness is committed, a concrete foreground shell with no live child can establish the existing process
208
+ mismatch and end only the sampled run credential, even before any native reference was reported. A shell
209
+ wrapper with a live descendant, incomplete/unreadable census or changed pane/binding stays unconfirmed;
210
+ unknown evidence never ends a run. On Linux, a permission-hidden process (`EPERM`/`EACCES` reading its stat)
211
+ makes this absence check unconfirmed, even when the hidden process might be unrelated: its parent cannot be read.
212
+ Processes that disappeared (`ENOENT`/`ESRCH`) do not mark the census permission-incomplete; macOS retains its existing
213
+ `ps` listing. Other process-table consumers retain their row-only listing behavior. Pending launch remains unconfirmed until readiness. Explicit same-process
214
+ adoption retains the observed pane anchor and its existing ready state. Native Claude/Codex/Pi checks and
215
+ Pi-RPC report routing keep their existing paths. A report plus a live Node process does not independently
216
+ verify the native conversation.
156
217
  - **Finding the base and token:** take them from `OPENRIG_URL` (or `OPENRIG_PORT`, with `OPENRIG_HOST` defaulting to
157
218
  `127.0.0.1`) and `OPENRIG_ACTIVITY_HOOK_TOKEN`, or else from `$OPENRIG_HOME/activity-endpoint.json`.
158
219
  - **Posting:** post one at a time, in order, with a short timeout. Never make the agent wait on a post.
@@ -262,6 +323,35 @@ permission or input handling in existing built-in runtimes or require every poss
262
323
  - without a TTY, input is read line by line;
263
324
  - this isn't a binary-safe channel.
264
325
 
326
+ ### Optional run-bound native input and wake (version 1)
327
+
328
+ 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
+
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.
331
+
332
+ 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
+
334
+ Explicit terminal interaction, submit-only Enter, exact terminal text and OpenRig's reserved Pi compaction control keep their existing guarded typed path. They are not native model prompts and cannot reuse an ID already bound to native input. Ordinary OpenRig notices still follow the seat's selected input route.
335
+
336
+ Each request SSE event is preceded by the standard SSE comment `: runner-frame-chars=<n>`, where `<n>` is the exact JavaScript string length (UTF-16 code units) of the complete serialized receipt in its `data` field, including payload and ordered member IDs. Readers use this per-event length plus a bounded SSE envelope allowance instead of assuming a single-message quota bounds a composed group; without the comment, the existing bounded frame allowance applies. The comment is only framing metadata: it changes neither admission nor custody, and legacy SSE consumers ignore it.
337
+
338
+ A request frame contains `{version:1, runId, requestId, sequence, kind, payload}`. Input payload is `{text}`; wake payload is `{question}`. The request ID is its existing outbox operation ID. A combined send retains one primary ID plus its ordered source-member links. Sequence is run-local and ordered; an SSE cursor is not acceptance. The live receiver retains every immutable ID/payload and result for its process lifetime, acknowledges custody by POST, and waits for Core's durable acceptance response before writing the native prompt. It retries saved HTTP receipts after lost replies; it never repeats a native write to repair HTTP delivery. Restarting a runner creates a new run, not a persistent receiver command journal. At a committed Core run replacement, the earlier run's offered/accepted receipts and unanswered submitted wakes become `receiver_state_lost`/indeterminate. Never-offered requests become rejected/failed with “not offered: its run ended”; they are not replayed into the new run. Known ordinary-input submissions and terminal results keep their recorded outcomes.
339
+
340
+ An unreadable binding, including a failed grant-standing read, returns retryable `409 runner_grant_unverified`.
341
+ It does not revoke authority, clear the live receiver map or discard retained receipts. The existing consumers retry
342
+ those saved HTTP posts after verification recovers; they do not repeat native work. Positive stale/revoked authority
343
+ keeps its existing refusal. A new native request still requires a currently capable runner.
344
+
345
+ After native protocol submission/acceptance the runner posts `submitted`; native delivery is not model-work completion. A terminal result whose submission could not be established may instead carry `{completion:"unknown", submissionUnknown:true}` from accepted custody. Core retains that terminal uncertainty as outbox `indeterminate`, never `delivered`; it cannot include a successful wake answer or an acceptance claim. Known pre-effect native rejection is separate. Erased native content remains an unavailable opaque custody tombstone, not an executable request.
346
+
347
+ `POST /api/seat/command/:seatRef` accepts `{requestId,type:"wake",question}` and returns its saved custody stage. `GET` at the same resource with `?requestId=...` reads its result. `rig ask <rig> <question> --wake <seat>` uses this live path only when the seat explicitly selects `native`; unavailable native capability is a refusal. Historical Claude/Codex one-shot wakes and raw session tokens retain their existing semantics.
348
+
349
+ A wake waits for the current execution to finish and then gets its own native prompt. Pi's ordinary busy input continues to steer; dsh's ordinary busy input continues to queue. During the dedicated wake, later managed input waits. Pi gates the dedicated prompt on native control-state evidence and pending person/startup preflight, not on a guessed idle flag. Person controls remain usable; a person steering into the wake makes its attribution unknown. Only that prompt's actual assistant text and terminal native outcome become `{kind:"wake",answer:string|null,nativeTurnId,completion:"completed"|"interrupted"|"failed"|"unknown"}`. Tools, old output and partial streaming text are not substituted for an answer. Known terminal native outcomes release the managed barrier. Pi waits for the authoritative prompt disposition before committing any answer: only a dedicated `started` invocation can answer. A queued or otherwise uncorrelated execution reports `{completion:"unknown",answer:null,ownershipUnknown:true}` and quarantines all managed input for that run as `native_ownership_unknown`. Core persists that fence atomically with the result; reconnect, restart and content erasure cannot clear it. A handled command with no execution evidence returns no answer and can release normally. A caller timeout returns the request ID and latest saved stage for lookup; it neither clears the native barrier nor cancels the prompt.
350
+
351
+ Consumer fixtures exercise Pi RPC shapes from the installed Pi 1.5.0 SDK and dsh's ACP implementation at 0.2.1-rc.2. Stand-in native backends prove the runner/Core plumbing, not actual program or provider qualification. Separate opt-in tests execute installed Pi 1.5.0 and dsh 0.2.1-rc.2 against a loopback fake Anthropic provider with scratch homes and dummy keys. They exercise actual idle/busy input and dedicated wake sequencing, not a real vendor backend, named cancellation or other versions/forks; no program default is promoted. Set `OPENRIG_NATIVE_PROGRAM_PROOF=1`, `OPENRIG_NATIVE_PI_BIN` and `OPENRIG_NATIVE_DSH_BIN` to explicit installed executables, then run the existing `runner-conformance-real-routes.test.ts` in a private network namespace with loopback enabled.
352
+
353
+ 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
+
265
355
  ## 6. Cancel: requested isn't the same as done
266
356
 
267
357
  - **On `/abort` or Ctrl-C:** send the agent's cancel (for ACP, the `session/cancel` notification, which has no reply),
@@ -88,6 +88,12 @@ Other layouts and other herdr-app windows don't show Rig views. Each window (app
88
88
  start, so an interactive one takes input as soon as it runs. When the seat's session is replaced (a handover, a fresh
89
89
  launch, a restart), the tile follows the same seat to its new session, except an ssh tile on an isolated local tmux
90
90
  server ([terminal sessions](terminal-sessions.md#replacing-a-seats-session)).
91
+ - A local interactive cell sizes its seat like any terminal you use (tmux's `window-size latest`) while herdr-app shows
92
+ it. While no pane shows it (another view or page, or **Your tabs**), herdr-core runs its terminal at the headless
93
+ size, and the cell then leaves the seat's size to the seat's other clients. OpenRig recognises that state by the
94
+ headless size, 200 columns by 120 rows; a cell shown in a pane of exactly that size counts as not shown. If
95
+ herdr-core's headless size was changed from that default, a cell that no pane shows isn't recognised and can still
96
+ size the seat. This needs tmux 3.2 or later. With an older tmux, a cell that no pane shows can still size the seat.
91
97
 
92
98
  ## What OpenRig keeps in the app home
93
99
 
@@ -12,9 +12,9 @@ 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.17/skills/rigs --skill rigs --agent claude-code
15
+ npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.18/skills/rigs --skill rigs --agent claude-code
16
16
  # Codex
17
- npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.17/skills/rigs --skill rigs --agent codex
17
+ npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.18/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