@openrig/cli 0.7.12 → 0.7.13

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 (383) hide show
  1. package/README.md +5 -5
  2. package/daemon/assets/plugins/openrig/.claude-plugin/icon.png +0 -0
  3. package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +2 -2
  4. package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +4 -2
  5. package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
  6. package/daemon/assets/plugins/openrig/plugin.json +2 -2
  7. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +2 -2
  8. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +5 -3
  9. package/daemon/assets/plugins/openrig-core/README.md +6 -0
  10. package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +125 -0
  11. package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +24 -1
  12. package/daemon/assets/skills/rigs/SKILL.md +7 -3
  13. package/daemon/context-packs/help/manifest.yaml +1 -1
  14. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  15. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +28 -7
  16. package/daemon/context-packs/reference/getting-started.md +25 -13
  17. package/daemon/context-packs/reference/manifest.yaml +1 -1
  18. package/daemon/context-packs/reference/rig-spec.md +14 -0
  19. package/daemon/context-packs/reference/tmux-servers.md +4 -1
  20. package/daemon/context-packs/reference/whats-new.md +164 -179
  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/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/watchdog/SKILL.md +5 -0
  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/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  54. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  55. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  56. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  75. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  76. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  77. package/daemon/dist/adapters/pi-runner.d.ts +49 -1
  78. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  79. package/daemon/dist/adapters/pi-runner.js +343 -28
  80. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  81. package/daemon/dist/adapters/tmux-server.d.ts +9 -1
  82. package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
  83. package/daemon/dist/adapters/tmux-server.js +36 -4
  84. package/daemon/dist/adapters/tmux-server.js.map +1 -1
  85. package/daemon/dist/build-info.js +3 -3
  86. package/daemon/dist/connection-contract-surface.d.ts +2 -0
  87. package/daemon/dist/connection-contract-surface.d.ts.map +1 -0
  88. package/daemon/dist/connection-contract-surface.js +4 -0
  89. package/daemon/dist/connection-contract-surface.js.map +1 -0
  90. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  91. package/daemon/dist/db/all-migrations.js +6 -0
  92. package/daemon/dist/db/all-migrations.js.map +1 -1
  93. package/daemon/dist/db/migrations/160_network_bindings.d.ts +7 -0
  94. package/daemon/dist/db/migrations/160_network_bindings.d.ts.map +1 -0
  95. package/daemon/dist/db/migrations/160_network_bindings.js +26 -0
  96. package/daemon/dist/db/migrations/160_network_bindings.js.map +1 -0
  97. package/daemon/dist/db/migrations/161_network_receipts.d.ts +8 -0
  98. package/daemon/dist/db/migrations/161_network_receipts.d.ts.map +1 -0
  99. package/daemon/dist/db/migrations/161_network_receipts.js +25 -0
  100. package/daemon/dist/db/migrations/161_network_receipts.js.map +1 -0
  101. package/daemon/dist/db/migrations/162_session_address_read_indexes.d.ts +5 -0
  102. package/daemon/dist/db/migrations/162_session_address_read_indexes.d.ts.map +1 -0
  103. package/daemon/dist/db/migrations/162_session_address_read_indexes.js +12 -0
  104. package/daemon/dist/db/migrations/162_session_address_read_indexes.js.map +1 -0
  105. package/daemon/dist/domain/agent-activity-store.d.ts +8 -0
  106. package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
  107. package/daemon/dist/domain/agent-activity-store.js +14 -0
  108. package/daemon/dist/domain/agent-activity-store.js.map +1 -1
  109. package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
  110. package/daemon/dist/domain/bootstrap-orchestrator.js +5 -0
  111. package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
  112. package/daemon/dist/domain/connection-contract.d.ts +111 -0
  113. package/daemon/dist/domain/connection-contract.d.ts.map +1 -0
  114. package/daemon/dist/domain/connection-contract.js +113 -0
  115. package/daemon/dist/domain/connection-contract.js.map +1 -0
  116. package/daemon/dist/domain/execution-view.js +2 -2
  117. package/daemon/dist/domain/execution-view.js.map +1 -1
  118. package/daemon/dist/domain/install-engine.d.ts +5 -0
  119. package/daemon/dist/domain/install-engine.d.ts.map +1 -1
  120. package/daemon/dist/domain/install-engine.js +28 -26
  121. package/daemon/dist/domain/install-engine.js.map +1 -1
  122. package/daemon/dist/domain/install-verifier.d.ts +5 -1
  123. package/daemon/dist/domain/install-verifier.d.ts.map +1 -1
  124. package/daemon/dist/domain/install-verifier.js +12 -1
  125. package/daemon/dist/domain/install-verifier.js.map +1 -1
  126. package/daemon/dist/domain/managed-block-records.d.ts +9 -3
  127. package/daemon/dist/domain/managed-block-records.d.ts.map +1 -1
  128. package/daemon/dist/domain/managed-block-records.js +43 -8
  129. package/daemon/dist/domain/managed-block-records.js.map +1 -1
  130. package/daemon/dist/domain/managed-blocks.d.ts +40 -3
  131. package/daemon/dist/domain/managed-blocks.d.ts.map +1 -1
  132. package/daemon/dist/domain/managed-blocks.js +151 -39
  133. package/daemon/dist/domain/managed-blocks.js.map +1 -1
  134. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  135. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +3 -2
  136. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  137. package/daemon/dist/domain/network/hub-client.d.ts +40 -0
  138. package/daemon/dist/domain/network/hub-client.d.ts.map +1 -0
  139. package/daemon/dist/domain/network/hub-client.js +102 -0
  140. package/daemon/dist/domain/network/hub-client.js.map +1 -0
  141. package/daemon/dist/domain/network/network-bindings.d.ts +74 -0
  142. package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -0
  143. package/daemon/dist/domain/network/network-bindings.js +235 -0
  144. package/daemon/dist/domain/network/network-bindings.js.map +1 -0
  145. package/daemon/dist/domain/network/network-connector.d.ts +77 -0
  146. package/daemon/dist/domain/network/network-connector.d.ts.map +1 -0
  147. package/daemon/dist/domain/network/network-connector.js +380 -0
  148. package/daemon/dist/domain/network/network-connector.js.map +1 -0
  149. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  150. package/daemon/dist/domain/node-inventory.js +6 -5
  151. package/daemon/dist/domain/node-inventory.js.map +1 -1
  152. package/daemon/dist/domain/package-install-service.d.ts +1 -0
  153. package/daemon/dist/domain/package-install-service.d.ts.map +1 -1
  154. package/daemon/dist/domain/package-install-service.js +2 -1
  155. package/daemon/dist/domain/package-install-service.js.map +1 -1
  156. package/daemon/dist/domain/plugin-vendor-service.d.ts +9 -0
  157. package/daemon/dist/domain/plugin-vendor-service.d.ts.map +1 -1
  158. package/daemon/dist/domain/plugin-vendor-service.js +50 -8
  159. package/daemon/dist/domain/plugin-vendor-service.js.map +1 -1
  160. package/daemon/dist/domain/proof/judgments.d.ts +12 -13
  161. package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
  162. package/daemon/dist/domain/proof/judgments.js +14 -0
  163. package/daemon/dist/domain/proof/judgments.js.map +1 -1
  164. package/daemon/dist/domain/proof/source-watch.d.ts +1 -1
  165. package/daemon/dist/domain/proof/source-watch.d.ts.map +1 -1
  166. package/daemon/dist/domain/proof/source-watch.js +45 -22
  167. package/daemon/dist/domain/proof/source-watch.js.map +1 -1
  168. package/daemon/dist/domain/provider/claude-usage-reader.d.ts +3 -3
  169. package/daemon/dist/domain/provider/claude-usage-reader.d.ts.map +1 -1
  170. package/daemon/dist/domain/provider/claude-usage-reader.js +16 -5
  171. package/daemon/dist/domain/provider/claude-usage-reader.js.map +1 -1
  172. package/daemon/dist/domain/provider/codex-limit-banner.d.ts.map +1 -1
  173. package/daemon/dist/domain/provider/codex-limit-banner.js +2 -1
  174. package/daemon/dist/domain/provider/codex-limit-banner.js.map +1 -1
  175. package/daemon/dist/domain/provider/provider-signals.d.ts +6 -0
  176. package/daemon/dist/domain/provider/provider-signals.d.ts.map +1 -1
  177. package/daemon/dist/domain/provider/provider-signals.js +9 -3
  178. package/daemon/dist/domain/provider/provider-signals.js.map +1 -1
  179. package/daemon/dist/domain/provider/reactive-tap.d.ts.map +1 -1
  180. package/daemon/dist/domain/provider/reactive-tap.js +6 -0
  181. package/daemon/dist/domain/provider/reactive-tap.js.map +1 -1
  182. package/daemon/dist/domain/queue-repository.d.ts +16 -1
  183. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  184. package/daemon/dist/domain/queue-repository.js +55 -2
  185. package/daemon/dist/domain/queue-repository.js.map +1 -1
  186. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  187. package/daemon/dist/domain/queue-stuck-sweep.js +75 -20
  188. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  189. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  190. package/daemon/dist/domain/queue-wake-ladder.js +45 -27
  191. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  192. package/daemon/dist/domain/queue-wake-repository.d.ts +3 -0
  193. package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
  194. package/daemon/dist/domain/queue-wake-repository.js +6 -0
  195. package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
  196. package/daemon/dist/domain/receiver-context.d.ts +9 -0
  197. package/daemon/dist/domain/receiver-context.d.ts.map +1 -0
  198. package/daemon/dist/domain/receiver-context.js +24 -0
  199. package/daemon/dist/domain/receiver-context.js.map +1 -0
  200. package/daemon/dist/domain/reconciler.d.ts +15 -6
  201. package/daemon/dist/domain/reconciler.d.ts.map +1 -1
  202. package/daemon/dist/domain/reconciler.js +26 -26
  203. package/daemon/dist/domain/reconciler.js.map +1 -1
  204. package/daemon/dist/domain/restore-guidance.d.ts +6 -4
  205. package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
  206. package/daemon/dist/domain/restore-guidance.js +38 -27
  207. package/daemon/dist/domain/restore-guidance.js.map +1 -1
  208. package/daemon/dist/domain/rosters.d.ts +11 -0
  209. package/daemon/dist/domain/rosters.d.ts.map +1 -1
  210. package/daemon/dist/domain/rosters.js +24 -1
  211. package/daemon/dist/domain/rosters.js.map +1 -1
  212. package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
  213. package/daemon/dist/domain/runner-permissions.js +9 -2
  214. package/daemon/dist/domain/runner-permissions.js.map +1 -1
  215. package/daemon/dist/domain/seat-handover-service.d.ts +9 -1
  216. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  217. package/daemon/dist/domain/seat-handover-service.js +55 -7
  218. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  219. package/daemon/dist/domain/seat-identity-reconciler.d.ts +4 -0
  220. package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
  221. package/daemon/dist/domain/seat-identity-reconciler.js +18 -2
  222. package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
  223. package/daemon/dist/domain/seat-lifecycle-service.d.ts +13 -8
  224. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  225. package/daemon/dist/domain/seat-lifecycle-service.js +46 -26
  226. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  227. package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
  228. package/daemon/dist/domain/seat-structural-activity-service.js +7 -4
  229. package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
  230. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  231. package/daemon/dist/domain/session-registry.js +16 -5
  232. package/daemon/dist/domain/session-registry.js.map +1 -1
  233. package/daemon/dist/domain/session-transport.d.ts +2 -0
  234. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  235. package/daemon/dist/domain/session-transport.js +7 -4
  236. package/daemon/dist/domain/session-transport.js.map +1 -1
  237. package/daemon/dist/domain/slices/slice-indexer.d.ts +5 -2
  238. package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
  239. package/daemon/dist/domain/slices/slice-indexer.js +60 -16
  240. package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
  241. package/daemon/dist/domain/slow-op-recorder.d.ts +0 -3
  242. package/daemon/dist/domain/slow-op-recorder.d.ts.map +1 -1
  243. package/daemon/dist/domain/slow-op-recorder.js +5 -34
  244. package/daemon/dist/domain/slow-op-recorder.js.map +1 -1
  245. package/daemon/dist/domain/spec-library-workflow-scanner.d.ts +2 -0
  246. package/daemon/dist/domain/spec-library-workflow-scanner.d.ts.map +1 -1
  247. package/daemon/dist/domain/spec-library-workflow-scanner.js +22 -13
  248. package/daemon/dist/domain/spec-library-workflow-scanner.js.map +1 -1
  249. package/daemon/dist/domain/successor-session-launcher.d.ts +5 -0
  250. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  251. package/daemon/dist/domain/successor-session-launcher.js +11 -6
  252. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  253. package/daemon/dist/domain/tmux-option-defaults.d.ts +4 -4
  254. package/daemon/dist/domain/tmux-option-defaults.d.ts.map +1 -1
  255. package/daemon/dist/domain/tmux-option-defaults.js +25 -12
  256. package/daemon/dist/domain/tmux-option-defaults.js.map +1 -1
  257. package/daemon/dist/domain/types.d.ts +3 -0
  258. package/daemon/dist/domain/types.d.ts.map +1 -1
  259. package/daemon/dist/domain/types.js.map +1 -1
  260. package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -1
  261. package/daemon/dist/domain/watchdog-delivery-receipts.js +8 -3
  262. package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -1
  263. package/daemon/dist/domain/workflow-spec-cache.d.ts +8 -0
  264. package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
  265. package/daemon/dist/domain/workflow-spec-cache.js +34 -10
  266. package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
  267. package/daemon/dist/index.d.ts.map +1 -1
  268. package/daemon/dist/index.js +2 -0
  269. package/daemon/dist/index.js.map +1 -1
  270. package/daemon/dist/routes/activity.d.ts.map +1 -1
  271. package/daemon/dist/routes/activity.js +12 -0
  272. package/daemon/dist/routes/activity.js.map +1 -1
  273. package/daemon/dist/routes/hosts.d.ts.map +1 -1
  274. package/daemon/dist/routes/hosts.js +8 -33
  275. package/daemon/dist/routes/hosts.js.map +1 -1
  276. package/daemon/dist/routes/network.d.ts +9 -0
  277. package/daemon/dist/routes/network.d.ts.map +1 -0
  278. package/daemon/dist/routes/network.js +58 -0
  279. package/daemon/dist/routes/network.js.map +1 -0
  280. package/daemon/dist/routes/packages.js +3 -1
  281. package/daemon/dist/routes/packages.js.map +1 -1
  282. package/daemon/dist/routes/proof.d.ts.map +1 -1
  283. package/daemon/dist/routes/proof.js +6 -4
  284. package/daemon/dist/routes/proof.js.map +1 -1
  285. package/daemon/dist/routes/queue.d.ts.map +1 -1
  286. package/daemon/dist/routes/queue.js +4 -0
  287. package/daemon/dist/routes/queue.js.map +1 -1
  288. package/daemon/dist/routes/slices.d.ts +1 -0
  289. package/daemon/dist/routes/slices.d.ts.map +1 -1
  290. package/daemon/dist/routes/slices.js +66 -16
  291. package/daemon/dist/routes/slices.js.map +1 -1
  292. package/daemon/dist/routes/spec-library.d.ts.map +1 -1
  293. package/daemon/dist/routes/spec-library.js +7 -3
  294. package/daemon/dist/routes/spec-library.js.map +1 -1
  295. package/daemon/dist/server.d.ts +2 -0
  296. package/daemon/dist/server.d.ts.map +1 -1
  297. package/daemon/dist/server.js +5 -0
  298. package/daemon/dist/server.js.map +1 -1
  299. package/daemon/dist/startup.d.ts.map +1 -1
  300. package/daemon/dist/startup.js +16 -26
  301. package/daemon/dist/startup.js.map +1 -1
  302. package/daemon/docs/reference/agent-startup-guide.md +21 -13
  303. package/daemon/docs/reference/claude-status-line.md +25 -9
  304. package/daemon/docs/reference/getting-started.md +25 -13
  305. package/daemon/docs/reference/herdr-app.md +3 -2
  306. package/daemon/docs/reference/hosted-members.md +32 -2
  307. package/daemon/docs/reference/keeping-a-watch.md +28 -0
  308. package/daemon/docs/reference/network-connector.md +114 -0
  309. package/daemon/docs/reference/quickstart.md +4 -4
  310. package/daemon/docs/reference/rig-spec.md +14 -0
  311. package/daemon/docs/reference/rosters.md +5 -0
  312. package/daemon/docs/reference/tmux-servers.md +4 -1
  313. package/daemon/docs/reference/whats-new.md +164 -179
  314. package/daemon/specs/agents/shared/skills/core/watchdog/SKILL.md +5 -0
  315. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +42 -16
  316. package/dist/build-info.js +3 -3
  317. package/dist/commands/daemon.d.ts +8 -2
  318. package/dist/commands/daemon.d.ts.map +1 -1
  319. package/dist/commands/daemon.js +46 -4
  320. package/dist/commands/daemon.js.map +1 -1
  321. package/dist/commands/host.d.ts +4 -10
  322. package/dist/commands/host.d.ts.map +1 -1
  323. package/dist/commands/host.js +7 -34
  324. package/dist/commands/host.js.map +1 -1
  325. package/dist/commands/network.d.ts +12 -0
  326. package/dist/commands/network.d.ts.map +1 -0
  327. package/dist/commands/network.js +95 -0
  328. package/dist/commands/network.js.map +1 -0
  329. package/dist/commands/package.d.ts.map +1 -1
  330. package/dist/commands/package.js +5 -0
  331. package/dist/commands/package.js.map +1 -1
  332. package/dist/commands/queue.d.ts.map +1 -1
  333. package/dist/commands/queue.js +7 -0
  334. package/dist/commands/queue.js.map +1 -1
  335. package/dist/commands/roster.d.ts +17 -0
  336. package/dist/commands/roster.d.ts.map +1 -1
  337. package/dist/commands/roster.js +47 -2
  338. package/dist/commands/roster.js.map +1 -1
  339. package/dist/commands/seat.d.ts.map +1 -1
  340. package/dist/commands/seat.js +4 -3
  341. package/dist/commands/seat.js.map +1 -1
  342. package/dist/commands/watchdog.d.ts.map +1 -1
  343. package/dist/commands/watchdog.js +22 -2
  344. package/dist/commands/watchdog.js.map +1 -1
  345. package/dist/cross-host-executor.d.ts.map +1 -1
  346. package/dist/cross-host-executor.js +6 -1
  347. package/dist/cross-host-executor.js.map +1 -1
  348. package/dist/daemon-lifecycle.d.ts +11 -0
  349. package/dist/daemon-lifecycle.d.ts.map +1 -1
  350. package/dist/daemon-lifecycle.js +61 -9
  351. package/dist/daemon-lifecycle.js.map +1 -1
  352. package/dist/daemon-reachability.js +1 -1
  353. package/dist/daemon-reachability.js.map +1 -1
  354. package/dist/index.d.ts +2 -0
  355. package/dist/index.d.ts.map +1 -1
  356. package/dist/index.js +2 -0
  357. package/dist/index.js.map +1 -1
  358. package/dist/lazy-program.d.ts.map +1 -1
  359. package/dist/lazy-program.js +1 -0
  360. package/dist/lazy-program.js.map +1 -1
  361. package/package.json +1 -1
  362. package/tui/dist/attention/attention-model.d.ts.map +1 -1
  363. package/tui/dist/attention/attention-model.js +10 -5
  364. package/tui/dist/attention/attention-model.js.map +1 -1
  365. package/tui/dist/hydrate.d.ts.map +1 -1
  366. package/tui/dist/hydrate.js +8 -4
  367. package/tui/dist/hydrate.js.map +1 -1
  368. package/tui/dist/navigator.js +1 -1
  369. package/tui/dist/navigator.js.map +1 -1
  370. package/tui/dist/render.d.ts.map +1 -1
  371. package/tui/dist/render.js +44 -29
  372. package/tui/dist/render.js.map +1 -1
  373. package/tui/dist/state.js +2 -2
  374. package/tui/dist/state.js.map +1 -1
  375. package/tui/dist/stylize.d.ts.map +1 -1
  376. package/tui/dist/stylize.js +4 -0
  377. package/tui/dist/stylize.js.map +1 -1
  378. package/tui/dist/topology/host-label.d.ts +2 -0
  379. package/tui/dist/topology/host-label.d.ts.map +1 -1
  380. package/tui/dist/topology/host-label.js +7 -1
  381. package/tui/dist/topology/host-label.js.map +1 -1
  382. package/tui/dist/types.d.ts +2 -1
  383. package/tui/dist/types.d.ts.map +1 -1
package/README.md CHANGED
@@ -26,9 +26,9 @@ use:
26
26
 
27
27
  ```sh
28
28
  # Claude Code
29
- npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.12/skills/rigs --skill rigs --agent claude-code
29
+ npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.13/skills/rigs --skill rigs --agent claude-code
30
30
  # Codex
31
- npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.12/skills/rigs --skill rigs --agent codex
31
+ npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.13/skills/rigs --skill rigs --agent codex
32
32
  ```
33
33
 
34
34
  Then type `/rigs` in Claude Code, or `$rigs` in Codex, and say what you want built. The skill has your agent tell
@@ -68,11 +68,11 @@ Requires Node.js 22 or 24 and tmux, on macOS or Linux, and one working Claude Co
68
68
 
69
69
  ### Install it yourself
70
70
 
71
- This runs OpenRig's install script from the `v0.7.12` release. It checks Node.js and npm, installs the latest published `@openrig/cli` with `npm install -g`, runs the Node.js and SQLite check, then runs `rig setup --dry-run` and `rig setup`. The first line prints that plan and changes nothing:
71
+ This runs OpenRig's install script from the `v0.7.13` release. It checks Node.js and npm, installs the latest published `@openrig/cli` with `npm install -g`, runs the Node.js and SQLite check, then runs `rig setup --dry-run` and `rig setup`. The first line prints that plan and changes nothing:
72
72
 
73
73
  ```bash
74
- curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.12/scripts/install.sh | sh -s -- --dry-run
75
- curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.12/scripts/install.sh | sh
74
+ curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.13/scripts/install.sh | sh -s -- --dry-run
75
+ curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.13/scripts/install.sh | sh
76
76
  ```
77
77
 
78
78
  If the last step isn't ready, the installer reports `INSTALLED, SETUP NOT COMPLETE` and points to the details from `rig setup` above. Follow that output and any reported Fix, then rerun `rig setup`; the CLI does not need reinstalling. If the only remaining failures are provider sign-ins, sign in to each selected provider as below and continue.
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "openrig",
3
- "version": "0.1.0",
3
+ "version": "0.7.13",
4
4
  "description": "Work with your OpenRig team from your coding agent: hand it work, follow that work, answer its questions and read what it returns.",
5
5
  "author": {
6
6
  "name": "Mike Schwarz",
7
7
  "url": "https://github.com/mvschwarz"
8
8
  },
9
9
  "homepage": "https://github.com/mvschwarz/openrig",
10
- "repository": "github:mvschwarz/openrig",
10
+ "repository": "https://github.com/mvschwarz/openrig",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": ["openrig", "agents", "team", "delegation", "mcp"],
13
13
  "skills": "./skills",
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "openrig",
3
- "version": "0.1.0",
3
+ "version": "0.7.13",
4
4
  "description": "Work with your OpenRig team from your coding agent: hand it work, follow that work, answer its questions and read what it returns.",
5
5
  "author": {
6
6
  "name": "Mike Schwarz",
7
7
  "url": "https://github.com/mvschwarz"
8
8
  },
9
9
  "homepage": "https://github.com/mvschwarz/openrig",
10
- "repository": "github:mvschwarz/openrig",
10
+ "repository": "https://github.com/mvschwarz/openrig",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": [
13
13
  "openrig",
@@ -28,6 +28,8 @@
28
28
  "Write"
29
29
  ],
30
30
  "websiteURL": "https://github.com/mvschwarz/openrig",
31
+ "privacyPolicyURL": "https://openrig.dev/privacy",
32
+ "termsOfServiceURL": "https://openrig.dev/terms",
31
33
  "defaultPrompt": [
32
34
  "Ask my OpenRig team to look into the failing tests and tell me what they find.",
33
35
  "How is the work I gave my OpenRig team going?",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openrig",
3
- "version": "0.1.0",
3
+ "version": "0.7.13",
4
4
  "description": "Work with your OpenRig team from your coding agent: hand it work, follow that work, answer its questions and read what it returns.",
5
5
  "logo": "assets/logo.svg"
6
6
  }
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "openrig",
4
- "version": "0.1.0",
4
+ "version": "0.7.13",
5
5
  "description": "Work with your OpenRig team from your coding agent: hand it work, follow that work, answer its questions and read what it returns.",
6
6
  "author": {
7
7
  "name": "Mike Schwarz",
8
8
  "url": "https://github.com/mvschwarz"
9
9
  },
10
10
  "homepage": "https://github.com/mvschwarz/openrig",
11
- "repository": "github:mvschwarz/openrig",
11
+ "repository": "https://github.com/mvschwarz/openrig",
12
12
  "license": "Apache-2.0",
13
13
  "keywords": ["openrig", "agents", "team", "delegation", "mcp"]
14
14
  }
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "openrig-core",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "OpenRig canonical skills and hooks for cross-runtime agent topology coordination, continuity, and operating discipline.",
5
5
  "author": {
6
6
  "name": "Mike Schwarz",
7
7
  "url": "https://github.com/mvschwarz"
8
8
  },
9
9
  "homepage": "https://github.com/mvschwarz/openrig-plugins",
10
- "repository": "github:mvschwarz/openrig-plugins",
10
+ "repository": "https://github.com/mvschwarz/openrig-plugins",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": ["openrig", "agent", "topology", "rig", "continuity", "coordination", "compaction", "handoff"],
13
13
  "skills": "./skills",
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "openrig-core",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "OpenRig canonical skills and hooks for cross-runtime agent topology coordination, continuity, and operating discipline.",
5
5
  "author": {
6
6
  "name": "Mike Schwarz",
7
7
  "url": "https://github.com/mvschwarz"
8
8
  },
9
9
  "homepage": "https://github.com/mvschwarz/openrig-plugins",
10
- "repository": "github:mvschwarz/openrig-plugins",
10
+ "repository": "https://github.com/mvschwarz/openrig-plugins",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": ["openrig", "agent", "topology", "rig", "continuity", "coordination", "compaction", "handoff"],
13
13
  "skills": "./skills",
@@ -19,6 +19,8 @@
19
19
  "developerName": "Mike Schwarz",
20
20
  "category": "Productivity",
21
21
  "capabilities": ["Read"],
22
- "websiteURL": "https://github.com/mvschwarz/openrig-plugins"
22
+ "websiteURL": "https://github.com/mvschwarz/openrig-plugins",
23
+ "privacyPolicyURL": "https://openrig.dev/privacy",
24
+ "termsOfServiceURL": "https://openrig.dev/terms"
23
25
  }
24
26
  }
@@ -50,6 +50,12 @@ This plugin ships dual-manifest packaging — both `.claude-plugin/` and `.codex
50
50
  no-ops. The plugin supplies refocus and skills. Disabling an inline activity hook is not bypassed by the plugin.
51
51
  - **Seat scope:** the commands require both `OPENRIG_SEAT_PROJECT_DIR` and the executable `OPENRIG_NODE`. Personal and
52
52
  unselected sessions are no-ops. A nested Codex inheriting those seat variables still acts as that seat.
53
+ - **Refocus output:** the Codex prompt handler keeps its unchanged declaration and default 2,500-token budget
54
+ (10,000 UTF-8 bytes), preserving its native trust identity. Larger packets
55
+ send a prefix and an explicit shortening notice for the current attempt. After a claimed, successful render/write
56
+ and state save, the refocus record lists that attempt's omitted tail byte count and full packet's `.context.txt`
57
+ path, or says the full text could not be saved. A trace/content failure or unavailable final state guard/write can
58
+ leave older metadata or no record. The metadata describes the last successfully recorded attempt, not model receipt.
53
59
 
54
60
  Generated Claude settings commands for the activity relay and context collector use the daemon's absolute Node
55
61
  executable when its name is recognized (`node` or `node.exe`); other names keep the legacy bare `node` command and
@@ -144,10 +144,134 @@ function buildOpenRigPayload(providerPayload, env = process.env, now = () => new
144
144
  ...promptBoundaryFields(hookEvent, providerPayload),
145
145
  occurredAt: now().toISOString(),
146
146
  relayRoute: argv.includes("--from-plugin") ? "plugin" : "managed",
147
+ ...limitResetField(runtime, hookEvent, subtype, providerPayload, now),
147
148
  ...conversationFields(providerPayload, env),
148
149
  };
149
150
  }
150
151
 
152
+ // #99: a Claude usage limit says when it resets only in its rendered text ("You've hit your weekly limit ·
153
+ // resets Nov 10, 4pm (America/Sao_Paulo)"). The typed error still decides THAT the seat is limited; the text
154
+ // is read here, on the seat's machine and in its time zone, only for WHEN, and only the instant leaves the
155
+ // relay: never the text itself.
156
+ function limitResetField(runtime, hookEvent, subtype, providerPayload, now) {
157
+ if (runtime !== "claude-code" || hookEvent !== "StopFailure" || subtype !== "rate_limit") return {};
158
+ for (const value of [providerPayload.last_assistant_message, providerPayload.error_details]) {
159
+ if (typeof value !== "string") continue;
160
+ const resetsAt = claudeLimitResetAt(value.slice(0, 2000), now());
161
+ if (resetsAt) return { resetsAt };
162
+ }
163
+ return {};
164
+ }
165
+
166
+ const RESET_MAX_MS = 8 * 24 * 3600 * 1000;
167
+ const MONTHS = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"];
168
+ const RESET_EPOCH_RE = /usage limit reached\|(\d{10})\b/i;
169
+ // Each unit must be a whole word ("2 months" is not "2 m"), and a "resets in" fragment is read only this way.
170
+ const RESET_IN_LEAD_RE = /\bresets?\s+in\b/i;
171
+ const RESET_IN_RE = /\bresets?\s+in\s+(?:(\d+)\s*(?:d|days?)\b\s*)?(?:(\d+)\s*(?:h|hrs?|hours?)\b\s*)?(?:(\d+)\s*(?:m|mins?|minutes?)\b)?/i;
172
+ // A zone, when the text opens one, must be closed: "4pm (Not/AZone" is truncated, not local time.
173
+ const RESET_AT_RE = /\bresets?\s+(?:at\s+|on\s+)?(?:([a-z]{3})[a-z]*\.?\s+(\d{1,2}),?\s+(?:at\s+)?)?(\d{1,2})(?::(\d{2}))?\s*(am|pm)\b(?:\s*(\()([^)\n]{0,64})(\))?)?/i;
174
+
175
+ /** The reset instant a Claude usage-limit message states, as an ISO string, or null when it states none
176
+ * this can read. A wall-clock time without a zone is the seat's local time, which is what Claude renders. */
177
+ function claudeLimitResetAt(text, nowDate) {
178
+ const nowMs = nowDate.getTime();
179
+ if (!Number.isFinite(nowMs) || typeof text !== "string") return null;
180
+ let resetMs = null;
181
+ const epoch = RESET_EPOCH_RE.exec(text);
182
+ if (epoch) {
183
+ resetMs = Number(epoch[1]) * 1000;
184
+ } else if (RESET_IN_LEAD_RE.test(text)) {
185
+ const relative = RESET_IN_RE.exec(text);
186
+ // The whole fragment must be read: nothing numeric may follow what was, across a separator either
187
+ // ("in 2h 30x", "in 2h, 30x" and "in 2h and 30x" are not two hours).
188
+ if (!relative || !(relative[1] || relative[2] || relative[3])
189
+ || /^(?:\s|[,;&+]|and\b)*\d/i.test(text.slice(relative.index + relative[0].length))) return null;
190
+ resetMs = nowMs + ((Number(relative[1] || 0) * 24 + Number(relative[2] || 0)) * 60 + Number(relative[3] || 0)) * 60_000;
191
+ } else {
192
+ const wall = RESET_AT_RE.exec(text);
193
+ if (wall) resetMs = wallClockReset(wall, nowMs);
194
+ }
195
+ if (resetMs === null || !Number.isFinite(resetMs) || resetMs <= nowMs || resetMs > nowMs + RESET_MAX_MS) return null;
196
+ return new Date(resetMs).toISOString();
197
+ }
198
+
199
+ function wallClockReset(match, nowMs) {
200
+ const [, monthName, day, hourText, minuteText, meridiem, zoneOpen, zoneText, zoneClose] = match;
201
+ if (zoneOpen && (!zoneClose || !zoneText.trim())) return null; // a truncated or empty zone: no reset
202
+ const hour12 = Number(hourText);
203
+ const minute = Number(minuteText || 0);
204
+ if (hour12 < 1 || hour12 > 12 || minute > 59) return null;
205
+ const hour = (hour12 % 12) + (meridiem.toLowerCase() === "pm" ? 12 : 0);
206
+ const zone = zoneText ? zoneText.trim() : null;
207
+ let toUtc;
208
+ try {
209
+ toUtc = zone ? zonedClock(zone) : localClock();
210
+ } catch {
211
+ return null; // a zone this runtime doesn't know: no reset rather than a guessed one
212
+ }
213
+ const today = toUtc.partsAt(nowMs);
214
+ if (monthName) {
215
+ const month = MONTHS.indexOf(monthName.toLowerCase());
216
+ if (month < 0) return null;
217
+ for (const year of [today.year, today.year + 1]) {
218
+ if (!isCalendarDay(year, month, Number(day))) continue; // "Feb 30" names no day; never roll it into March
219
+ const at = toUtc.instant(year, month, Number(day), hour, minute);
220
+ if (Number.isNaN(at)) return null;
221
+ if (at > nowMs) return at;
222
+ }
223
+ return null;
224
+ }
225
+ const at = toUtc.instant(today.year, today.month, today.day, hour, minute);
226
+ if (Number.isNaN(at)) return null; // ambiguous today: never advance a day on a guess
227
+ return at > nowMs ? at : toUtc.instant(today.year, today.month, today.day + 1, hour, minute);
228
+ }
229
+
230
+ function isCalendarDay(year, month, day) {
231
+ return Number.isInteger(day) && day >= 1 && day <= new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
232
+ }
233
+
234
+ function localClock() {
235
+ return wallClock(
236
+ (ms) => { const d = new Date(ms); return { year: d.getFullYear(), month: d.getMonth(), day: d.getDate(), hour: d.getHours(), minute: d.getMinutes() }; },
237
+ (ms) => -new Date(ms).getTimezoneOffset() * 60_000,
238
+ );
239
+ }
240
+
241
+ function zonedClock(timeZone) {
242
+ const format = new Intl.DateTimeFormat("en-US", { timeZone, hourCycle: "h23", year: "numeric", month: "numeric",
243
+ day: "numeric", hour: "numeric", minute: "numeric", second: "numeric" });
244
+ const partsAt = (ms) => {
245
+ const parts = Object.fromEntries(format.formatToParts(new Date(ms)).map((part) => [part.type, Number(part.value)]));
246
+ return { year: parts.year, month: parts.month - 1, day: parts.day, hour: parts.hour, minute: parts.minute, second: parts.second };
247
+ };
248
+ const offsetAt = (ms) => {
249
+ const p = partsAt(ms);
250
+ return Date.UTC(p.year, p.month, p.day, p.hour, p.minute, p.second) - Math.floor(ms / 1000) * 1000;
251
+ };
252
+ return wallClock(partsAt, offsetAt);
253
+ }
254
+
255
+ /** A clock whose instant() is the one moment a wall time names, or NaN when it names none (skipped by a DST jump) or
256
+ * two (repeated by a DST fall-back): the message doesn't say which, so no reset rather than a guess a day off. */
257
+ function wallClock(partsAt, offsetAt) {
258
+ return {
259
+ partsAt,
260
+ instant: (year, month, day, hour, minute) => {
261
+ const asUtc = Date.UTC(year, month, day, hour, minute);
262
+ const want = new Date(asUtc); // normalizes a day past the month's end (tomorrow)
263
+ const matches = new Set();
264
+ for (const probe of [asUtc - 14 * 3600_000, asUtc, asUtc + 14 * 3600_000]) {
265
+ const candidate = asUtc - offsetAt(probe);
266
+ const p = partsAt(candidate);
267
+ if (p.year === want.getUTCFullYear() && p.month === want.getUTCMonth() && p.day === want.getUTCDate()
268
+ && p.hour === want.getUTCHours() && p.minute === want.getUTCMinutes()) matches.add(candidate);
269
+ }
270
+ return matches.size === 1 ? [...matches][0] : NaN;
271
+ },
272
+ };
273
+ }
274
+
151
275
  // OPR.0.4.3.28 B1+B3 — resolve the ingest base URL + token without depending on
152
276
  // the operator seeding OPENRIG_URL/OPENRIG_ACTIVITY_HOOK_TOKEN into the shell:
153
277
  // 1. env OPENRIG_URL / token (unchanged fast path).
@@ -390,6 +514,7 @@ if (require.main === module) {
390
514
 
391
515
  module.exports = {
392
516
  buildOpenRigPayload,
517
+ claudeLimitResetAt,
393
518
  claimFirstLaunchHook,
394
519
  buildSessionIdentityPayload,
395
520
  parseJson,
@@ -630,10 +630,30 @@ function runsForThisSeatsProject(env = process.env) {
630
630
  "",
631
631
  ...body,
632
632
  ]).join("\n");
633
+ let additionalContext = payload;
634
+ let contextOutput;
635
+ if (runtime() === "codex") {
636
+ // Keep the handler declaration unchanged; Codex's default is 2,500 tokens, ceil(UTF-8 bytes / 4).
637
+ const limitTokens = 2_500;
638
+ const bytes = Buffer.from(payload);
639
+ contextOutput = { status: "full", limitTokens, originalBytes: bytes.length, outputBytes: bytes.length, omittedBytes: 0 };
640
+ if (bytes.length > limitTokens * 4) {
641
+ let fullPath = `${stateFile}.${crypto.randomUUID()}.context.txt`;
642
+ try { fs.writeFileSync(fullPath, payload, { flag: "wx", mode: 0o600 }); }
643
+ catch { fullPath = null; }
644
+ const location = fullPath ? `Full text saved to: ${fullPath}` : "Full text could not be saved.";
645
+ // Reserve the notice before taking the prefix; streaming decode drops an incomplete final UTF-8 character.
646
+ const prefix = new TextDecoder().decode(bytes.subarray(0, Math.max(0, limitTokens * 4 - Buffer.byteLength(location) - 256)), { stream: true });
647
+ const prefixBytes = Buffer.byteLength(prefix);
648
+ const omittedBytes = bytes.length - prefixBytes;
649
+ additionalContext = `${prefix}\n\n[REFOCUS SHORTENED: omitted ${omittedBytes} trailing UTF-8 bytes from the assembled trace, role and standing instructions. ${location}]`;
650
+ contextOutput = { status: "shortened", limitTokens, originalBytes: bytes.length, outputBytes: Buffer.byteLength(additionalContext), prefixBytes, omittedBytes, fullPath };
651
+ }
652
+ }
633
653
  const output = JSON.stringify({
634
654
  hookSpecificOutput: {
635
655
  hookEventName: "UserPromptSubmit",
636
- additionalContext: payload,
656
+ additionalContext,
637
657
  },
638
658
  });
639
659
  process.stdout.write(output, (error) => {
@@ -661,6 +681,9 @@ function runsForThisSeatsProject(env = process.env) {
661
681
  if (size > 0 && latest.lastReset?.at === state.lastReset?.at) latest.lastBytes = size;
662
682
  latest.firedAt = new Date().toISOString();
663
683
  latest.firedOn = event;
684
+ // Writer completion, not a model-context receipt. A shortened output names its omitted tail and full-text file.
685
+ if (contextOutput) latest.contextOutput = contextOutput;
686
+ else delete latest.contextOutput;
664
687
  if (samePending) {
665
688
  delete latest.pendingOn;
666
689
  delete latest.pendingAt;
@@ -72,7 +72,8 @@ person needs in their project or home folder and name that path.
72
72
 
73
73
  - **Start OpenRig:** `rig daemon status`, and `rig daemon start` if it isn't running. `rig preflight` and `rig doctor`
74
74
  don't start it. Starting it also starts OpenRig's own team, the kernel, whose operator sets up the person's team.
75
- Keep it.
75
+ Keep it. If its output says no person is registered, make the offer it names before you go on, and register only on
76
+ the person's yes ("Who answers OpenRig's questions" below).
76
77
  - **If the person uses Codex:** now that OpenRig is running, make the one-time offer under "Codex: one offer, once,
77
78
  after OpenRig starts" at the end of this step.
78
79
  - **Show them OpenRig, the handoff:** once OpenRig is running, open the OpenRig TUI and operator for the person. Say
@@ -166,7 +167,7 @@ person needs in their project or home folder and name that path.
166
167
  (never the logical ID or a guessed name) and send:
167
168
  `rig send <canonicalSessionName> 'This is the agent that installed OpenRig. The person will answer in your pane. Goal: <goal>. Project folder: <absolute path>. Branch: <branch>.'`
168
169
  If the person stays here, replace "The person will answer in your pane" with "The person stays with me; send me your questions and
169
- results to relay." Carry their constraints and any declined permission choices in either handoff.
170
+ results to relay." Carry their constraints and any permission choice they made, chosen or declined, in either handoff.
170
171
  Or the person types the goal and folder in the operator's pane. If they give you a goal later, forward it the same
171
172
  way. The operator helps them pick a team that fits their logins, starts it (`rig up`) only on their yes to the plan it
172
173
  shows, and gives the goal to the team's lead. Before that yes, it says what launching into their folder changes for their own agent there; relay
@@ -190,7 +191,7 @@ person needs in their project or home folder and name that path.
190
191
  (`--dry-run` first). If it isn't, or you can't tell, say so and offer their choices: sign in to Claude Code, or give the
191
192
  seat a model their account can run with `rig seat set-model`, then start it again with
192
193
  `rig seat launch <seat> --fresh --stop --reason "…"` and check the model it reports. Either way the operator starts a
193
- new conversation without your handoff, so send it again: the goal, folder, branch, constraints and declined choices.
194
+ new conversation without your handoff, so send it again: the goal, folder, branch, constraints and permission choices.
194
195
  - **Installation is finished** when the operator is ready and the person is talking to it; a healthy daemon alone isn't
195
196
  that. If they'd rather talk later, keep that choice, leave them the exact connection step and say the handoff to the
196
197
  operator is still pending.
@@ -207,6 +208,9 @@ person needs in their project or home folder and name that path.
207
208
  whole action, answer only when it's clearly inside what they said, and tell them you answered under that instruction,
208
209
  not that they said yes. Bring anything unclear or outside it back to them; a command's name or a path that looks like
209
210
  their project doesn't show what the action touches. Their instruction changes no permission setting.
211
+ Don't send them to a bare `tmux attach` to answer: relay their choice this way, or point them to that seat in the
212
+ team's terminals the operator opened. If they want fewer prompts, the operator offers once to allow the commands
213
+ that keep asking, for their project only (`applying-a-permission-policy`); tell it what they chose.
210
214
  Another kind of menu you can answer with
211
215
  the key that screen shows, or ask the person. Capture it again before sending anything more.
212
216
  - **Replies:** in a plain shell, other agents can't type into this session. Read work sent to you with
@@ -1,6 +1,6 @@
1
1
  # Agent help: the single troubleshooting and escalation guide (docs/reference/help.md).
2
2
  name: help
3
- version: "0.7.12"
3
+ version: "0.7.13"
4
4
  taxonomy: world
5
5
  purpose: "What an agent does when its user says OpenRig isn't working: diagnose, fix within permissions, verify, and escalate to OpenRig support."
6
6
  files:
@@ -1,6 +1,6 @@
1
1
  # Public capability and source-map width for the default onboarding walk.
2
2
  name: onboarding-width
3
- version: "0.7.12"
3
+ version: "0.7.13"
4
4
  taxonomy: world
5
5
  purpose: "The public capability map and source map referenced by the default onboarding walk."
6
6
  files:
@@ -10,8 +10,8 @@ already does it, or two verbs crossed already answer it. **You cannot look up a
10
10
  not know exists.** So the point of what follows is not skill. It is recognition: that when a task
11
11
  lands, something rhymes, and you go check instead of building.
12
12
 
13
- Ninety-two top-level verbs ship (capability canon refreshed through
14
- `capability-delta-v0.7.12`). This marker describes the pack's teaching, not publication or live
13
+ Ninety-three top-level verbs ship (capability canon refreshed through
14
+ `capability-delta-v0.7.13`). This marker describes the pack's teaching, not publication or live
15
15
  adoption. Read this once for shape, and let it make you suspicious that a thing already exists.
16
16
  What changed in the installed version, and what to do about it, is one read away:
17
17
  `rig context get reference/whats-new.md`.
@@ -747,7 +747,10 @@ not have to tear one down to change it, and you rarely have to start from nothin
747
747
  conversation continuity stays unverified. Both refuse while typing protection is on.
748
748
  - **`rig unclaim` / `rig release`** — stop managing one adopted session, or all of them,
749
749
  **without killing the process or the agent inside it**. Handing something back to its human is a
750
- first-class move, not an abandonment.
750
+ first-class move, not an abandonment. To stop an adopted session after unclaiming it, end its
751
+ process and its tmux session; closing only the viewing window detaches it. Since 0.7.13 a fresh
752
+ `rig launch` after `rig unclaim` ended the server's last session reopens the server (a released
753
+ session that's still running blocks it, as before).
751
754
 
752
755
  > **Two words that mean different things at different altitudes.** `unclaim` and `release` each
753
756
  > exist both here — *stop managing a live session* — and in the queue — *put a work row back down*.
@@ -861,7 +864,9 @@ version, from checking the environment to a useful report to the OpenRig team.
861
864
  effectful handover path.** Both forms perform the operation by default; pass `--dry-run`
862
865
  to plan without changing the seat. Check the selected source and continuity evidence first. A
863
866
  seat can be handed over again into its own pane, so a seat left half-handed-over recovers by
864
- running the handover again. A Claude seat started through a `#!` wrapper that runs Claude without
867
+ running the handover again. A handover whose successor was launched but not ready says it may be
868
+ running: look at the pane before retrying. A handover cleans up the retiring occupant's own claims
869
+ and jobs. A Claude seat started through a `#!` wrapper that runs Claude without
865
870
  `exec`, or through the installer's `~/.local/bin/claude` symlink, rebuilds with `--source
866
871
  rebuild`; a failed rebuild leaves the resume target on the earlier conversation, so rebuild again
867
872
  rather than relaunching it fresh.
@@ -1226,6 +1231,9 @@ reaching them is ordinary work rather than an escalation.
1226
1231
  see which host you are acting on, and check a registered host is *actually* usable end to end.
1227
1232
  `rig host edit <id>` corrects an entry (its id and transport stay fixed), and `rig host remove <id>` deletes
1228
1233
  only the registry entry: credential files, the learned identity and the selection stay as they are.
1234
+ - **`rig network`** — **experimental, unsupported and at your own risk.** It connects one local seat
1235
+ to a hub you already have. The daemon starts the connector, sweeps leftover credential folders and
1236
+ schedules local rounds even with no binding, so it isn't inert, and its migrations apply on upgrade.
1229
1237
  - **A cross-host queue write that times out reads INDETERMINATE, not failed.** The CLI waits 15
1230
1238
  seconds for the daemon's answer, and `rig queue create` with no answer reads the row back once by
1231
1239
  its ID. Reconcile by that ID before any retry; don't send the write twice.
@@ -1270,6 +1278,11 @@ reaching them is ordinary work rather than an escalation.
1270
1278
  a person can decide directly in the TUI's pairing settings. A relay connector that can't accept
1271
1279
  incoming connections can pull instead (`OPENRIG_RELAY_MODE=pull` in the relay secrets file); push
1272
1280
  stays the default, and a person's connector binding can be unset.
1281
+ **Since 0.7.13 a person's runner answer gets a note back:** who decides and in what state, or that
1282
+ the answer is kept and the tool hasn't run, and a runner waiting on it wakes on the decision. Read
1283
+ that note before asking the person to answer again. The answer a receiving agent reads says what an
1284
+ answer typed at the machine's terminal means, to act on a clear one with the request's own decision
1285
+ command, and how to ask the person back, with a new ask to them, when it's unclear.
1273
1286
  - **`rig gateway channel add <id> --display-name <name> --binding
1274
1287
  slack:<connectorRef>:<secretsRef>:<channelId>`** — a Slack shared channel as one participant,
1275
1288
  `<id>@external` (Slack only). Anyone writing there reaches the team, registered or not. Each row
@@ -1402,7 +1415,8 @@ your circumstances is configuration, and the ones that are not, another agent ca
1402
1415
  conversation it is in the middle of. **`provider signals` reports anomalies rather than a
1403
1416
  listing** — unbound seats, accounts shared across several seats. A Codex seat showing its
1404
1417
  usage-limit banner reads activity `unknown` with reason `usage_limit`, and keeps it while its
1405
- screen redraws; `provider signals` can show a provider-event signal for that seat's account that
1418
+ screen redraws (a banner with a curly apostrophe included); a Claude seat whose usage-limit message
1419
+ states a reset time is parked until then, instead of being retried every few minutes; `provider signals` can show a provider-event signal for that seat's account that
1406
1420
  allows a switch decision. With `provider.usage_windows` on (off by default), `rig provider status`
1407
1421
  shows Codex's windows and Claude's 5-hour and weekly windows from the seats' status lines, each
1408
1422
  seat's configured account, and with `--all-hosts` or `--hosts <ids>` every registered machine's
@@ -1467,7 +1481,11 @@ your circumstances is configuration, and the ones that are not, another agent ca
1467
1481
  (empty, the default, means every signed-in one). `--router-line yes|no` decides whether OpenRig
1468
1482
  adds its one line to shared guidance files (`skills.router_line.enabled`).
1469
1483
  Setup offers to register the person when none is registered, and a team started from the
1470
- person's own assistant fits their own logins, with a review before anything is committed.
1484
+ person's own assistant fits their own logins, with a review before anything is committed. Since
1485
+ 0.7.13, `rig daemon start` ends with that offer, where the setup agent reads it, when the person
1486
+ registry can be read and holds nobody. A person who talks to the kernel operator first, with no
1487
+ other agent setting OpenRig up, isn't offered it yet; `rig gateway human add` always works, and
1488
+ nobody is registered without their yes.
1471
1489
  - **`rig usage series`** — what a seat's token curve has looked like over time: climbing steadily,
1472
1490
  reset, or stopped reporting entirely. The last one is a signal, not a gap.
1473
1491
  - **`rig usage top`** — which of this machine's seats used the most tokens over a window (`--window
@@ -1564,6 +1582,9 @@ your circumstances is configuration, and the ones that are not, another agent ca
1564
1582
  with secret names, never values): OpenRig then POSTs a pointer to the row when work lands, and a
1565
1583
  2xx records only that the ring was accepted, not that anything woke. When work waits for a
1566
1584
  member nothing can wake, or a rung member doesn't claim it in time, its person is told.
1585
+ A hosted member's roster entry shows whether it's checking in: its expected cadence and its last
1586
+ check-in, read as checking in, overdue, not yet checked in or checking in on request, and unknown
1587
+ when that can't be read. It's a status, never a gate on delivery.
1567
1588
  **Internet-facing hosted members are experimental, unsupported, off by default and at your
1568
1589
  own risk.** Local assistants can connect locally. Internet access needs your own TLS tunnel or
1569
1590
  proxy and a narrowly scoped, revocable token; see `reference/hosted-members.md`. Task terminal
@@ -1653,6 +1674,6 @@ deliberate writing.
1653
1674
 
1654
1675
  **`rig --help`**, then `rig <verb> --help`.
1655
1676
 
1656
- Ninety-two verbs ship, and this page named most of them once. **You will not remember which — you
1677
+ Ninety-three verbs ship, and this page named most of them once. **You will not remember which — you
1657
1678
  are meant to remember only that the list is long enough to be worth reading before you build
1658
1679
  anything.** The question is never *how do I write this*; it is **does this already exist**.
@@ -180,20 +180,22 @@ user.
180
180
 
181
181
  **Agents:** if you're setting OpenRig up for someone, load the `rigs` skill and follow it. It carries the install, the
182
182
  OpenRig view and the handoff to the operator as one procedure. From 0.6.7, OpenRig installs it as `rigs` in
183
- `~/.claude/skills` and `~/.agents/skills` when the daemon starts. To add it manually, use the release tag matching
184
- your installed `rig --version`: replace `<release-tag>` below with that tag, including its `v` prefix.
185
- `rig --version` prints the version and a commit, for example `0.6.11 (379f0a0d)`; the tag is `v0.6.11`.
186
- The skill is in the repository from v0.6.6; on an older install, use the v0.6.6 tag or upgrade first.
187
- Choose the command for the agent doing the setup:
183
+ `~/.claude/skills` and `~/.agents/skills` when the daemon starts. For a new install, add it with the command for the
184
+ agent doing the setup. Both use this release's tag:
188
185
 
189
186
  ```sh
190
187
  # Claude Code
191
- npx skills add "https://github.com/mvschwarz/openrig/tree/<release-tag>/skills/rigs" --skill rigs --agent claude-code
188
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.13/skills/rigs" --skill rigs --agent claude-code
192
189
 
193
190
  # Codex
194
- npx skills add "https://github.com/mvschwarz/openrig/tree/<release-tag>/skills/rigs" --skill rigs --agent codex
191
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.13/skills/rigs" --skill rigs --agent codex
195
192
  ```
196
193
 
194
+ If OpenRig is already installed, use the release tag matching your installed `rig --version` instead: replace the tag
195
+ after `tree/` with it, including its `v` prefix. `rig --version` prints the version and a commit, for example
196
+ `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
197
+ v0.6.6 tag or upgrade first.
198
+
197
199
  These are the pinned, per-agent forms used on the [rigs pages](https://openrig.dev/rigs).
198
200
  You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
199
201
 
@@ -201,11 +203,11 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
201
203
  script will do and changes nothing:
202
204
 
203
205
  ```sh
204
- curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.12/scripts/install.sh | sh -s -- --dry-run
206
+ curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.13/scripts/install.sh | sh -s -- --dry-run
205
207
  ```
206
208
 
207
209
  The same command without `--dry-run`,
208
- `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.12/scripts/install.sh | sh`, installs the
210
+ `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.13/scripts/install.sh | sh`, installs the
209
211
  latest published `@openrig/cli` with `npm install -g`,
210
212
  runs the Node.js and SQLite check, then `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
211
213
  Codex and may install a missing one, as described below. A failed step prints
@@ -342,9 +344,16 @@ startup reconcile leaves when every kernel terminal is gone, for example after a
342
344
  reboot. It does not detect a reboot as such. It uses the same restore as
343
345
  `rig up kernel --existing`, and `rig status` reports it as `Kernel: booting`
344
346
  until the seats are ready. A kernel stopped with `rig down kernel`, including
345
- one whose seats were already detached, stays down on later starts. So do a kernel
346
- with only some seats stopped and seats you unclaimed. Start one again with
347
- `rig up kernel --existing`.
347
+ one whose seats were already detached, stays down on later starts; start it again
348
+ with `rig up kernel --existing`. A seat you stopped or unclaimed also stays down.
349
+ While the kernel's other seats are running, `rig up kernel --existing` refuses
350
+ (it restores only a kernel with no live session), so start one stopped seat with
351
+ `rig launch kernel <logical id>` (`--plan` first). It restores that seat from the
352
+ kernel's latest restore-usable snapshot and resumes its saved conversation; a seat
353
+ it can't resume is reported as waiting for a decision, not as started.
354
+ `rig seat launch <seat> --fresh --reason "…"` instead starts a new conversation
355
+ with no continuity source: use it only when you want a fresh occupant, since the
356
+ seat's earlier conversation isn't carried.
348
357
  When the tmux server is gone, an explicit `rig down` of any rig can start an
349
358
  empty server and probe again. It records the stop and clears eligible bindings
350
359
  only after confirming the sessions are absent. This can leave an empty tmux
@@ -866,6 +875,9 @@ What it costs:
866
875
  ## Stop your teams
867
876
 
868
877
  `rig down <rig-name>` ends that rig's agent sessions and work in progress.
878
+ A terminal OpenRig didn't start, such as a seat joined with `rig attach --self`,
879
+ is left running: `rig down` names it with the commands to stop it by hand, and
880
+ exits 2.
869
881
  Read `rig ps --nodes --rig <rig-name>` first so you can see who will stop;
870
882
  `rig down` also prints the rig's recorded agent sessions and their activity
871
883
  before stopping them.
@@ -895,7 +907,7 @@ the lifecycle API without booting a new kernel, then stop the remaining rigs.
895
907
  | --- | --- |
896
908
  | Tool missing or login fails | Use the specific setup/auth hint; recheck that executable in the launch shell. Do not send work to an unready seat. |
897
909
  | "Startup attention" or "Startup details" names a prompt | Answer the login, trust or bypass prompt in that seat's terminal, then run the `rig seat continue <seat>` it shows. |
898
- | A restored seat still counts as needing attention after its prompt was answered | Its restore outcome is still `attention_required`, and answering the prompt or running `rig seat continue` doesn't change it. Once the agent is up in its pane, run `rig seat clear-attention <seat>`; see [After a restored seat's prompt](agent-startup-guide.md#after-a-restored-seats-prompt). |
910
+ | A restored seat still counts as needing attention after its prompt was answered | After a full restore of a Claude or Codex seat, the daemon clears this by itself once the seat reads running or idle and passes its check. If it still counts, check its `restoreOutcome` in `rig ps --nodes --json` (the RESTORE column): when it is `attention_required`, run `rig seat clear-attention <seat>`, which says which check failed; answering the prompt again or running `rig seat continue` doesn't change it. For a partial restore, submit any startup text left in the input box without sending it again, and wait for the agent to respond before clearing attention. See [After a restored seat's prompt](agent-startup-guide.md#after-a-restored-seats-prompt). |
899
911
  | "Readiness timeout after 30s — harness did not become interactive" | The harness took longer than the readiness window. Raise it for the next launch with `rig config set runtime.readiness_timeout_seconds <1-600>`, then relaunch that seat. |
900
912
  | "Claude resume did not finish within Ns; Claude may still be starting, so the launch was kept" | A restored Claude seat was not interactive when the wait ended. Its pane and resume token are kept. Look at the pane; once Claude is up, run `rig seat clear-attention <seat>`. The wait is about `runtime.readiness_timeout_seconds` in total for each seat (default 30 s), counting the first 3.2 s, and the time adds up seat by seat in a restore. Raising the setting for slow fresh launches lengthens it. If `rig up` or `rig launch` times out at 120 s, that is not a rollback: check `rig ps` before running it again. |
901
913
  | Daemon is healthy, kernel is still starting | Read `rig status` and `rig ps --nodes --rig kernel`; kernel readiness is separate. |
@@ -1,7 +1,7 @@
1
1
  # Reference guides the help pack and command help link to, loaded one file or section at a time by address
2
2
  # (rig context get reference/<file>#<section>). Each file is a symlink to docs/reference/.
3
3
  name: reference
4
- version: "0.7.12"
4
+ version: "0.7.13"
5
5
  taxonomy: world
6
6
  purpose: "Version-matched reference guides the help guide and command help link to. Load a single file or section by address; don't load the whole pack."
7
7
  files:
@@ -1088,6 +1088,20 @@ and returns `edge_not_found` (HTTP 404, exit 1), so a repeated removal reports n
1088
1088
  Rig names resolve only among unarchived rigs, and an ambiguous name requires an
1089
1089
  explicit ID. These commands target the local daemon, as `rig add` does.
1090
1090
 
1091
+ Managed Claude compaction also uses the delegation parent for two diagnostic notices: repeated
1092
+ unsent preparation attempts and repeated restore-delivery failures. If the seat has no recorded
1093
+ parent session (including when it is outside the recorded topology), these notices go to the
1094
+ configured registered human operator, or the default registered person when no operator is set.
1095
+ If no registered person can be selected, OpenRig creates no notice rather than inventing a
1096
+ destination: `rig compact <seat> --state` reports a restore-delivery notice failure, while a
1097
+ preparation notice is tried again on later polls. A parent is the source of a `delegates_to` edge
1098
+ to the seat; declare one when an agent should receive these notices. With multiple parents, the
1099
+ parent session with the latest creation time is selected; `escalates_to` is not used for these
1100
+ notices. The restore-delivery notice to a person omits local paths and
1101
+ points to `rig compact <seat> --state` on the host; the preparation notice includes its state-file
1102
+ evidence reference and attempt details. Treat these notices and any chat relay accordingly. Existing
1103
+ notices retain their destination when the topology changes.
1104
+
1091
1105
  A `delegates_to` edge also decides routing. A seat's stuck-row findings and recovery go to its most
1092
1106
  recently started parent. A person's top-level Slack message in the rig's mapped channel goes to the rig's
1093
1107
  representative, its one delegation root, unless that channel names an `inbound` seat; with no single root it