@openrig/cli 0.7.14 → 0.7.16

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 (573) 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/README.md +28 -7
  6. package/daemon/assets/plugins/openrig/plugin.json +1 -1
  7. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
  8. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
  9. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +8 -5
  10. package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +13 -4
  11. package/daemon/assets/plugins/openrig-core/skills/orienting-to-an-inherited-seat/CHANGELOG.md +10 -0
  12. package/daemon/assets/plugins/openrig-core/skills/orienting-to-an-inherited-seat/SKILL.md +12 -13
  13. package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/SKILL.md +1 -1
  14. package/daemon/assets/skills/rigs/SKILL.md +105 -30
  15. package/daemon/context-packs/help/manifest.yaml +1 -1
  16. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  17. package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +127 -16
  18. package/daemon/context-packs/reference/getting-started.md +17 -15
  19. package/daemon/context-packs/reference/manifest.yaml +4 -1
  20. package/daemon/context-packs/reference/product-journey-sdlc.md +348 -0
  21. package/daemon/context-packs/reference/rig-spec.md +92 -4
  22. package/daemon/context-packs/reference/whats-new.md +355 -5
  23. package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/claude-compaction-restore/SKILL.md +8 -5
  27. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +13 -4
  33. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  36. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  37. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  38. package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
  39. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  40. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  41. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  42. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  43. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  44. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  45. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  46. package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
  47. package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
  48. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
  49. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
  50. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
  51. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
  52. package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
  53. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/CHANGELOG.md +10 -0
  54. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/SKILL.md +12 -13
  55. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +3 -3
  56. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  57. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  58. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  59. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  60. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  61. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  67. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  68. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  71. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  74. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
  77. package/daemon/context-packs/skills/seat-continuity-and-handover/SKILL.md +1 -1
  78. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
  79. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
  80. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
  81. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  82. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  83. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  84. package/daemon/dist/adapters/claude-code-adapter.js +6 -3
  85. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  86. package/daemon/dist/adapters/codex-resume.d.ts +2 -0
  87. package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
  88. package/daemon/dist/adapters/codex-resume.js +28 -11
  89. package/daemon/dist/adapters/codex-resume.js.map +1 -1
  90. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +15 -0
  91. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  92. package/daemon/dist/adapters/codex-runtime-adapter.js +88 -31
  93. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  94. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +2 -0
  95. package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
  96. package/daemon/dist/adapters/community-harness-runtime-adapter.js +93 -36
  97. package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
  98. package/daemon/dist/adapters/pi-resume.d.ts +3 -0
  99. package/daemon/dist/adapters/pi-resume.d.ts.map +1 -1
  100. package/daemon/dist/adapters/pi-resume.js +99 -51
  101. package/daemon/dist/adapters/pi-resume.js.map +1 -1
  102. package/daemon/dist/adapters/pi-runner.d.ts +2 -1
  103. package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
  104. package/daemon/dist/adapters/pi-runner.js +15 -9
  105. package/daemon/dist/adapters/pi-runner.js.map +1 -1
  106. package/daemon/dist/adapters/pi-runtime-adapter.d.ts +4 -0
  107. package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
  108. package/daemon/dist/adapters/pi-runtime-adapter.js +133 -75
  109. package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
  110. package/daemon/dist/adapters/tmux.d.ts +10 -0
  111. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  112. package/daemon/dist/adapters/tmux.js +42 -7
  113. package/daemon/dist/adapters/tmux.js.map +1 -1
  114. package/daemon/dist/build-info.js +3 -3
  115. package/daemon/dist/daemon-shutdown.d.ts +3 -0
  116. package/daemon/dist/daemon-shutdown.d.ts.map +1 -1
  117. package/daemon/dist/daemon-shutdown.js +6 -0
  118. package/daemon/dist/daemon-shutdown.js.map +1 -1
  119. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  120. package/daemon/dist/db/all-migrations.js +6 -0
  121. package/daemon/dist/db/all-migrations.js.map +1 -1
  122. package/daemon/dist/db/migrations/165_run_bound_activity_grants.d.ts +4 -0
  123. package/daemon/dist/db/migrations/165_run_bound_activity_grants.d.ts.map +1 -0
  124. package/daemon/dist/db/migrations/165_run_bound_activity_grants.js +14 -0
  125. package/daemon/dist/db/migrations/165_run_bound_activity_grants.js.map +1 -0
  126. package/daemon/dist/db/migrations/167_seat_handover_attempts.d.ts +14 -0
  127. package/daemon/dist/db/migrations/167_seat_handover_attempts.d.ts.map +1 -0
  128. package/daemon/dist/db/migrations/167_seat_handover_attempts.js +54 -0
  129. package/daemon/dist/db/migrations/167_seat_handover_attempts.js.map +1 -0
  130. package/daemon/dist/db/migrations/169_seat_runtime_home_records.d.ts +5 -0
  131. package/daemon/dist/db/migrations/169_seat_runtime_home_records.d.ts.map +1 -0
  132. package/daemon/dist/db/migrations/169_seat_runtime_home_records.js +25 -0
  133. package/daemon/dist/db/migrations/169_seat_runtime_home_records.js.map +1 -0
  134. package/daemon/dist/domain/activity-grants.d.ts +36 -3
  135. package/daemon/dist/domain/activity-grants.d.ts.map +1 -1
  136. package/daemon/dist/domain/activity-grants.js +188 -7
  137. package/daemon/dist/domain/activity-grants.js.map +1 -1
  138. package/daemon/dist/domain/applied-launch-observation-store.d.ts +2 -0
  139. package/daemon/dist/domain/applied-launch-observation-store.d.ts.map +1 -1
  140. package/daemon/dist/domain/applied-launch-observation-store.js +27 -16
  141. package/daemon/dist/domain/applied-launch-observation-store.js.map +1 -1
  142. package/daemon/dist/domain/claim-service.d.ts +1 -3
  143. package/daemon/dist/domain/claim-service.d.ts.map +1 -1
  144. package/daemon/dist/domain/claim-service.js +3 -1
  145. package/daemon/dist/domain/claim-service.js.map +1 -1
  146. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +11 -0
  147. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  148. package/daemon/dist/domain/claude-compaction-enforcer.js +85 -38
  149. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  150. package/daemon/dist/domain/codex-filesystem-preflight.d.ts +33 -0
  151. package/daemon/dist/domain/codex-filesystem-preflight.d.ts.map +1 -0
  152. package/daemon/dist/domain/codex-filesystem-preflight.js +255 -0
  153. package/daemon/dist/domain/codex-filesystem-preflight.js.map +1 -0
  154. package/daemon/dist/domain/codex-member-permissions.d.ts +25 -2
  155. package/daemon/dist/domain/codex-member-permissions.d.ts.map +1 -1
  156. package/daemon/dist/domain/codex-member-permissions.js +72 -18
  157. package/daemon/dist/domain/codex-member-permissions.js.map +1 -1
  158. package/daemon/dist/domain/codex-network-default.d.ts +13 -0
  159. package/daemon/dist/domain/codex-network-default.d.ts.map +1 -1
  160. package/daemon/dist/domain/codex-network-default.js +37 -30
  161. package/daemon/dist/domain/codex-network-default.js.map +1 -1
  162. package/daemon/dist/domain/codex-owned-plugin-trust.d.ts +6 -1
  163. package/daemon/dist/domain/codex-owned-plugin-trust.d.ts.map +1 -1
  164. package/daemon/dist/domain/codex-owned-plugin-trust.js +30 -9
  165. package/daemon/dist/domain/codex-owned-plugin-trust.js.map +1 -1
  166. package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
  167. package/daemon/dist/domain/compaction-restore-notice.js +59 -13
  168. package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
  169. package/daemon/dist/domain/destination-successor.d.ts +3 -0
  170. package/daemon/dist/domain/destination-successor.d.ts.map +1 -0
  171. package/daemon/dist/domain/destination-successor.js +49 -0
  172. package/daemon/dist/domain/destination-successor.js.map +1 -0
  173. package/daemon/dist/domain/execution-candidate-reader.d.ts +15 -5
  174. package/daemon/dist/domain/execution-candidate-reader.d.ts.map +1 -1
  175. package/daemon/dist/domain/execution-candidate-reader.js +36 -25
  176. package/daemon/dist/domain/execution-candidate-reader.js.map +1 -1
  177. package/daemon/dist/domain/execution-view.d.ts.map +1 -1
  178. package/daemon/dist/domain/execution-view.js +34 -11
  179. package/daemon/dist/domain/execution-view.js.map +1 -1
  180. package/daemon/dist/domain/gateway/destination-resolver.js +3 -3
  181. package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -1
  182. package/daemon/dist/domain/gateway/slack/config.d.ts +2 -0
  183. package/daemon/dist/domain/gateway/slack/config.d.ts.map +1 -1
  184. package/daemon/dist/domain/gateway/slack/config.js +4 -0
  185. package/daemon/dist/domain/gateway/slack/config.js.map +1 -1
  186. package/daemon/dist/domain/gateway/slack/inbound.d.ts +11 -0
  187. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  188. package/daemon/dist/domain/gateway/slack/inbound.js +3 -0
  189. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  190. package/daemon/dist/domain/gateway/slack/slack-api.d.ts +2 -0
  191. package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
  192. package/daemon/dist/domain/gateway/slack/slack-api.js +4 -0
  193. package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
  194. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +2 -0
  195. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
  196. package/daemon/dist/domain/gateway/slack/slack-delivery.js +2 -1
  197. package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
  198. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  199. package/daemon/dist/domain/gateway/slack/slack-subsystem.js +36 -2
  200. package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  201. package/daemon/dist/domain/gateway/slack/thread-routing.d.ts +5 -0
  202. package/daemon/dist/domain/gateway/slack/thread-routing.d.ts.map +1 -1
  203. package/daemon/dist/domain/gateway/slack/thread-routing.js +1 -1
  204. package/daemon/dist/domain/gateway/slack/thread-routing.js.map +1 -1
  205. package/daemon/dist/domain/health-passive-ceremony.d.ts +3 -0
  206. package/daemon/dist/domain/health-passive-ceremony.d.ts.map +1 -1
  207. package/daemon/dist/domain/health-passive-ceremony.js +58 -11
  208. package/daemon/dist/domain/health-passive-ceremony.js.map +1 -1
  209. package/daemon/dist/domain/hosts/fleet-scopes.d.ts +111 -0
  210. package/daemon/dist/domain/hosts/fleet-scopes.d.ts.map +1 -0
  211. package/daemon/dist/domain/hosts/fleet-scopes.js +231 -0
  212. package/daemon/dist/domain/hosts/fleet-scopes.js.map +1 -0
  213. package/daemon/dist/domain/hosts/read-through.d.ts +1 -1
  214. package/daemon/dist/domain/hosts/read-through.d.ts.map +1 -1
  215. package/daemon/dist/domain/hosts/read-through.js +4 -0
  216. package/daemon/dist/domain/hosts/read-through.js.map +1 -1
  217. package/daemon/dist/domain/native-permission-store.d.ts +40 -0
  218. package/daemon/dist/domain/native-permission-store.d.ts.map +1 -1
  219. package/daemon/dist/domain/native-permission-store.js +115 -29
  220. package/daemon/dist/domain/native-permission-store.js.map +1 -1
  221. package/daemon/dist/domain/native-process-lineage.d.ts +11 -1
  222. package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
  223. package/daemon/dist/domain/native-process-lineage.js +25 -4
  224. package/daemon/dist/domain/native-process-lineage.js.map +1 -1
  225. package/daemon/dist/domain/native-resume-probe.d.ts +33 -1
  226. package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
  227. package/daemon/dist/domain/native-resume-probe.js +143 -4
  228. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  229. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  230. package/daemon/dist/domain/node-inventory.js +214 -30
  231. package/daemon/dist/domain/node-inventory.js.map +1 -1
  232. package/daemon/dist/domain/node-launcher.d.ts +3 -0
  233. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  234. package/daemon/dist/domain/node-launcher.js +6 -0
  235. package/daemon/dist/domain/node-launcher.js.map +1 -1
  236. package/daemon/dist/domain/permission-account.d.ts.map +1 -1
  237. package/daemon/dist/domain/permission-account.js +8 -6
  238. package/daemon/dist/domain/permission-account.js.map +1 -1
  239. package/daemon/dist/domain/permission-drift.d.ts +2 -1
  240. package/daemon/dist/domain/permission-drift.d.ts.map +1 -1
  241. package/daemon/dist/domain/permission-drift.js +1 -1
  242. package/daemon/dist/domain/permission-drift.js.map +1 -1
  243. package/daemon/dist/domain/permission-policy/persisted-restore-posture.d.ts +62 -0
  244. package/daemon/dist/domain/permission-policy/persisted-restore-posture.d.ts.map +1 -0
  245. package/daemon/dist/domain/permission-policy/persisted-restore-posture.js +117 -0
  246. package/daemon/dist/domain/permission-policy/persisted-restore-posture.js.map +1 -0
  247. package/daemon/dist/domain/policies/context-usage-threshold.d.ts.map +1 -1
  248. package/daemon/dist/domain/policies/context-usage-threshold.js +5 -1
  249. package/daemon/dist/domain/policies/context-usage-threshold.js.map +1 -1
  250. package/daemon/dist/domain/policies/types.d.ts +2 -0
  251. package/daemon/dist/domain/policies/types.d.ts.map +1 -1
  252. package/daemon/dist/domain/queue-destination-check.d.ts +2 -0
  253. package/daemon/dist/domain/queue-destination-check.d.ts.map +1 -1
  254. package/daemon/dist/domain/queue-destination-check.js +8 -11
  255. package/daemon/dist/domain/queue-destination-check.js.map +1 -1
  256. package/daemon/dist/domain/queue-repository.d.ts +29 -16
  257. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  258. package/daemon/dist/domain/queue-repository.js +61 -55
  259. package/daemon/dist/domain/queue-repository.js.map +1 -1
  260. package/daemon/dist/domain/queue-transition-log.d.ts +6 -0
  261. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  262. package/daemon/dist/domain/queue-transition-log.js +9 -0
  263. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  264. package/daemon/dist/domain/queue-waiting.d.ts +4 -4
  265. package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
  266. package/daemon/dist/domain/queue-waiting.js +30 -16
  267. package/daemon/dist/domain/queue-waiting.js.map +1 -1
  268. package/daemon/dist/domain/queue-wake-ladder.d.ts +12 -0
  269. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  270. package/daemon/dist/domain/queue-wake-ladder.js +27 -7
  271. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  272. package/daemon/dist/domain/receiver-context.js +1 -1
  273. package/daemon/dist/domain/receiver-context.js.map +1 -1
  274. package/daemon/dist/domain/rehydrate-eligibility.d.ts.map +1 -1
  275. package/daemon/dist/domain/rehydrate-eligibility.js +3 -2
  276. package/daemon/dist/domain/rehydrate-eligibility.js.map +1 -1
  277. package/daemon/dist/domain/reply-to-choice.d.ts +10 -0
  278. package/daemon/dist/domain/reply-to-choice.d.ts.map +1 -1
  279. package/daemon/dist/domain/reply-to-choice.js +23 -0
  280. package/daemon/dist/domain/reply-to-choice.js.map +1 -1
  281. package/daemon/dist/domain/restore-check-service.d.ts +5 -0
  282. package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
  283. package/daemon/dist/domain/restore-check-service.js +31 -6
  284. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  285. package/daemon/dist/domain/restore-orchestrator.d.ts +1 -1
  286. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  287. package/daemon/dist/domain/restore-orchestrator.js +88 -98
  288. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  289. package/daemon/dist/domain/restore-preconditions.d.ts +2 -0
  290. package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
  291. package/daemon/dist/domain/restore-preconditions.js +6 -0
  292. package/daemon/dist/domain/restore-preconditions.js.map +1 -1
  293. package/daemon/dist/domain/resume-metadata-refresher.d.ts +21 -4
  294. package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
  295. package/daemon/dist/domain/resume-metadata-refresher.js +65 -14
  296. package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
  297. package/daemon/dist/domain/resume-token-capture.d.ts +6 -0
  298. package/daemon/dist/domain/resume-token-capture.d.ts.map +1 -1
  299. package/daemon/dist/domain/resume-token-capture.js +14 -8
  300. package/daemon/dist/domain/resume-token-capture.js.map +1 -1
  301. package/daemon/dist/domain/rig-edge-ops.js +1 -1
  302. package/daemon/dist/domain/rig-edge-ops.js.map +1 -1
  303. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  304. package/daemon/dist/domain/rigspec-instantiator.js +8 -3
  305. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  306. package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
  307. package/daemon/dist/domain/rigspec-preflight.js +21 -1
  308. package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
  309. package/daemon/dist/domain/rosters.d.ts +19 -0
  310. package/daemon/dist/domain/rosters.d.ts.map +1 -1
  311. package/daemon/dist/domain/rosters.js +69 -12
  312. package/daemon/dist/domain/rosters.js.map +1 -1
  313. package/daemon/dist/domain/runner-grant-launch.d.ts +16 -0
  314. package/daemon/dist/domain/runner-grant-launch.d.ts.map +1 -0
  315. package/daemon/dist/domain/runner-grant-launch.js +86 -0
  316. package/daemon/dist/domain/runner-grant-launch.js.map +1 -0
  317. package/daemon/dist/domain/runtime-adapter.d.ts +17 -0
  318. package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
  319. package/daemon/dist/domain/runtime-adapter.js.map +1 -1
  320. package/daemon/dist/domain/seat-delivery-guard.d.ts +21 -3
  321. package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
  322. package/daemon/dist/domain/seat-delivery-guard.js +91 -4
  323. package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
  324. package/daemon/dist/domain/seat-handover-attempts.d.ts +50 -0
  325. package/daemon/dist/domain/seat-handover-attempts.d.ts.map +1 -0
  326. package/daemon/dist/domain/seat-handover-attempts.js +75 -0
  327. package/daemon/dist/domain/seat-handover-attempts.js.map +1 -0
  328. package/daemon/dist/domain/seat-handover-service.d.ts +64 -1
  329. package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
  330. package/daemon/dist/domain/seat-handover-service.js +450 -35
  331. package/daemon/dist/domain/seat-handover-service.js.map +1 -1
  332. package/daemon/dist/domain/seat-identity-reconciler.d.ts +3 -0
  333. package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
  334. package/daemon/dist/domain/seat-identity-reconciler.js +34 -2
  335. package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
  336. package/daemon/dist/domain/seat-lifecycle-service.d.ts +47 -2
  337. package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
  338. package/daemon/dist/domain/seat-lifecycle-service.js +53 -3
  339. package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
  340. package/daemon/dist/domain/seat-runtime-home-record-types.d.ts +16 -0
  341. package/daemon/dist/domain/seat-runtime-home-record-types.d.ts.map +1 -0
  342. package/daemon/dist/domain/seat-runtime-home-record-types.js +2 -0
  343. package/daemon/dist/domain/seat-runtime-home-record-types.js.map +1 -0
  344. package/daemon/dist/domain/seat-runtime-home-record.d.ts +173 -0
  345. package/daemon/dist/domain/seat-runtime-home-record.d.ts.map +1 -0
  346. package/daemon/dist/domain/seat-runtime-home-record.js +317 -0
  347. package/daemon/dist/domain/seat-runtime-home-record.js.map +1 -0
  348. package/daemon/dist/domain/seat-runtime-switch-service.d.ts +7 -0
  349. package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
  350. package/daemon/dist/domain/seat-runtime-switch-service.js +62 -2
  351. package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
  352. package/daemon/dist/domain/seat-skill-storage.d.ts +16 -1
  353. package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -1
  354. package/daemon/dist/domain/seat-skill-storage.js +178 -1
  355. package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
  356. package/daemon/dist/domain/session-registry.d.ts +2 -0
  357. package/daemon/dist/domain/session-registry.d.ts.map +1 -1
  358. package/daemon/dist/domain/session-registry.js +16 -0
  359. package/daemon/dist/domain/session-registry.js.map +1 -1
  360. package/daemon/dist/domain/session-transport.d.ts +1 -0
  361. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  362. package/daemon/dist/domain/session-transport.js +7 -3
  363. package/daemon/dist/domain/session-transport.js.map +1 -1
  364. package/daemon/dist/domain/skill-catalog.d.ts +3 -0
  365. package/daemon/dist/domain/skill-catalog.d.ts.map +1 -1
  366. package/daemon/dist/domain/skill-catalog.js +7 -3
  367. package/daemon/dist/domain/skill-catalog.js.map +1 -1
  368. package/daemon/dist/domain/skill-discovery.d.ts.map +1 -1
  369. package/daemon/dist/domain/skill-discovery.js +2 -1
  370. package/daemon/dist/domain/skill-discovery.js.map +1 -1
  371. package/daemon/dist/domain/slow-op-recorder.d.ts +3 -0
  372. package/daemon/dist/domain/slow-op-recorder.d.ts.map +1 -1
  373. package/daemon/dist/domain/slow-op-recorder.js +5 -0
  374. package/daemon/dist/domain/slow-op-recorder.js.map +1 -1
  375. package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
  376. package/daemon/dist/domain/snapshot-capture.js +5 -0
  377. package/daemon/dist/domain/snapshot-capture.js.map +1 -1
  378. package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
  379. package/daemon/dist/domain/startup-orchestrator.js +9 -0
  380. package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
  381. package/daemon/dist/domain/successor-session-launcher.d.ts +19 -1
  382. package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
  383. package/daemon/dist/domain/successor-session-launcher.js +81 -39
  384. package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
  385. package/daemon/dist/domain/sync-site-wrap.d.ts +13 -1
  386. package/daemon/dist/domain/sync-site-wrap.d.ts.map +1 -1
  387. package/daemon/dist/domain/sync-site-wrap.js +38 -0
  388. package/daemon/dist/domain/sync-site-wrap.js.map +1 -1
  389. package/daemon/dist/domain/terminal/terminal-service.d.ts +3 -1
  390. package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
  391. package/daemon/dist/domain/terminal/terminal-service.js +17 -12
  392. package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
  393. package/daemon/dist/domain/types.d.ts +37 -1
  394. package/daemon/dist/domain/types.d.ts.map +1 -1
  395. package/daemon/dist/domain/types.js.map +1 -1
  396. package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
  397. package/daemon/dist/domain/user-settings/settings-browser.js +3 -1
  398. package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
  399. package/daemon/dist/domain/watchdog-policy-engine.d.ts +5 -0
  400. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  401. package/daemon/dist/domain/watchdog-policy-engine.js +4 -0
  402. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  403. package/daemon/dist/domain/workflow-exception-escalation.d.ts.map +1 -1
  404. package/daemon/dist/domain/workflow-exception-escalation.js +13 -8
  405. package/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
  406. package/daemon/dist/domain/workflow-instance-store.d.ts +11 -0
  407. package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
  408. package/daemon/dist/domain/workflow-instance-store.js +35 -0
  409. package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
  410. package/daemon/dist/domain/workflow-projector.d.ts +7 -0
  411. package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
  412. package/daemon/dist/domain/workflow-projector.js +202 -91
  413. package/daemon/dist/domain/workflow-projector.js.map +1 -1
  414. package/daemon/dist/domain/workflow-runtime.d.ts +8 -2
  415. package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
  416. package/daemon/dist/domain/workflow-runtime.js +116 -26
  417. package/daemon/dist/domain/workflow-runtime.js.map +1 -1
  418. package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
  419. package/daemon/dist/lib/pane-envelope.js +12 -7
  420. package/daemon/dist/lib/pane-envelope.js.map +1 -1
  421. package/daemon/dist/routes/activity.d.ts.map +1 -1
  422. package/daemon/dist/routes/activity.js +34 -2
  423. package/daemon/dist/routes/activity.js.map +1 -1
  424. package/daemon/dist/routes/compaction.d.ts.map +1 -1
  425. package/daemon/dist/routes/compaction.js +6 -3
  426. package/daemon/dist/routes/compaction.js.map +1 -1
  427. package/daemon/dist/routes/queue.d.ts.map +1 -1
  428. package/daemon/dist/routes/queue.js +44 -27
  429. package/daemon/dist/routes/queue.js.map +1 -1
  430. package/daemon/dist/routes/scopes.d.ts.map +1 -1
  431. package/daemon/dist/routes/scopes.js +102 -19
  432. package/daemon/dist/routes/scopes.js.map +1 -1
  433. package/daemon/dist/routes/seat.d.ts.map +1 -1
  434. package/daemon/dist/routes/seat.js +50 -2
  435. package/daemon/dist/routes/seat.js.map +1 -1
  436. package/daemon/dist/routes/sessions.d.ts.map +1 -1
  437. package/daemon/dist/routes/sessions.js +63 -16
  438. package/daemon/dist/routes/sessions.js.map +1 -1
  439. package/daemon/dist/routes/startup.d.ts.map +1 -1
  440. package/daemon/dist/routes/startup.js +116 -18
  441. package/daemon/dist/routes/startup.js.map +1 -1
  442. package/daemon/dist/routes/transport.d.ts.map +1 -1
  443. package/daemon/dist/routes/transport.js +36 -2
  444. package/daemon/dist/routes/transport.js.map +1 -1
  445. package/daemon/dist/routes/watchdog.d.ts.map +1 -1
  446. package/daemon/dist/routes/watchdog.js +7 -1
  447. package/daemon/dist/routes/watchdog.js.map +1 -1
  448. package/daemon/dist/routes/workflow.d.ts.map +1 -1
  449. package/daemon/dist/routes/workflow.js +22 -4
  450. package/daemon/dist/routes/workflow.js.map +1 -1
  451. package/daemon/dist/startup.d.ts.map +1 -1
  452. package/daemon/dist/startup.js +132 -46
  453. package/daemon/dist/startup.js.map +1 -1
  454. package/daemon/docs/reference/agent-startup-guide.md +88 -1
  455. package/daemon/docs/reference/bundle-formats.md +6 -4
  456. package/daemon/docs/reference/daemon-http-clients.md +3 -1
  457. package/daemon/docs/reference/developing.md +1 -1
  458. package/daemon/docs/reference/gateway-participants.md +5 -3
  459. package/daemon/docs/reference/getting-started.md +17 -15
  460. package/daemon/docs/reference/harness-runner-contract.md +27 -1
  461. package/daemon/docs/reference/health-diagnosis.md +5 -3
  462. package/daemon/docs/reference/keeping-a-watch.md +14 -9
  463. package/daemon/docs/reference/quickstart.md +2 -2
  464. package/daemon/docs/reference/rig-spec.md +92 -4
  465. package/daemon/docs/reference/rosters.md +26 -0
  466. package/daemon/docs/reference/seat-delivery.md +7 -1
  467. package/daemon/docs/reference/slack-app-setup.md +4 -0
  468. package/daemon/docs/reference/whats-new.md +355 -5
  469. package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +13 -4
  470. package/dist/build-info.js +3 -3
  471. package/dist/client.d.ts +7 -3
  472. package/dist/client.d.ts.map +1 -1
  473. package/dist/client.js +11 -2
  474. package/dist/client.js.map +1 -1
  475. package/dist/commands/down.d.ts.map +1 -1
  476. package/dist/commands/down.js +2 -1
  477. package/dist/commands/down.js.map +1 -1
  478. package/dist/commands/launch.d.ts.map +1 -1
  479. package/dist/commands/launch.js +8 -0
  480. package/dist/commands/launch.js.map +1 -1
  481. package/dist/commands/mcp.d.ts.map +1 -1
  482. package/dist/commands/mcp.js +18 -1
  483. package/dist/commands/mcp.js.map +1 -1
  484. package/dist/commands/ps.d.ts +1 -0
  485. package/dist/commands/ps.d.ts.map +1 -1
  486. package/dist/commands/ps.js +13 -6
  487. package/dist/commands/ps.js.map +1 -1
  488. package/dist/commands/queue.d.ts.map +1 -1
  489. package/dist/commands/queue.js +6 -2
  490. package/dist/commands/queue.js.map +1 -1
  491. package/dist/commands/roster.d.ts +4 -2
  492. package/dist/commands/roster.d.ts.map +1 -1
  493. package/dist/commands/roster.js +2 -2
  494. package/dist/commands/roster.js.map +1 -1
  495. package/dist/commands/seat.d.ts +2 -0
  496. package/dist/commands/seat.d.ts.map +1 -1
  497. package/dist/commands/seat.js +198 -11
  498. package/dist/commands/seat.js.map +1 -1
  499. package/dist/commands/send.d.ts.map +1 -1
  500. package/dist/commands/send.js +31 -6
  501. package/dist/commands/send.js.map +1 -1
  502. package/dist/commands/slack.d.ts.map +1 -1
  503. package/dist/commands/slack.js +2 -0
  504. package/dist/commands/slack.js.map +1 -1
  505. package/dist/commands/walk.d.ts.map +1 -1
  506. package/dist/commands/walk.js +4 -0
  507. package/dist/commands/walk.js.map +1 -1
  508. package/dist/commands/workflow.d.ts.map +1 -1
  509. package/dist/commands/workflow.js +25 -1
  510. package/dist/commands/workflow.js.map +1 -1
  511. package/dist/daemon-lifecycle.d.ts.map +1 -1
  512. package/dist/daemon-lifecycle.js +10 -5
  513. package/dist/daemon-lifecycle.js.map +1 -1
  514. package/dist/lib/work-install.d.ts.map +1 -1
  515. package/dist/lib/work-install.js +7 -3
  516. package/dist/lib/work-install.js.map +1 -1
  517. package/dist/mcp-http.d.ts +3 -0
  518. package/dist/mcp-http.d.ts.map +1 -1
  519. package/dist/mcp-http.js +13 -0
  520. package/dist/mcp-http.js.map +1 -1
  521. package/dist/mcp-server.d.ts +9 -2
  522. package/dist/mcp-server.d.ts.map +1 -1
  523. package/dist/mcp-server.js +269 -76
  524. package/dist/mcp-server.js.map +1 -1
  525. package/package.json +1 -1
  526. package/tui/dist/commands/registry.d.ts.map +1 -1
  527. package/tui/dist/commands/registry.js +1 -0
  528. package/tui/dist/commands/registry.js.map +1 -1
  529. package/tui/dist/connected-assistants.js +1 -1
  530. package/tui/dist/connected-assistants.js.map +1 -1
  531. package/tui/dist/crash-cart/start-daemon.d.ts.map +1 -1
  532. package/tui/dist/crash-cart/start-daemon.js +4 -2
  533. package/tui/dist/crash-cart/start-daemon.js.map +1 -1
  534. package/tui/dist/daemon-client.d.ts +9 -0
  535. package/tui/dist/daemon-client.d.ts.map +1 -1
  536. package/tui/dist/daemon-client.js +40 -0
  537. package/tui/dist/daemon-client.js.map +1 -1
  538. package/tui/dist/hydrate.d.ts +1 -1
  539. package/tui/dist/hydrate.d.ts.map +1 -1
  540. package/tui/dist/hydrate.js +12 -0
  541. package/tui/dist/hydrate.js.map +1 -1
  542. package/tui/dist/main.js +7 -3
  543. package/tui/dist/main.js.map +1 -1
  544. package/tui/dist/page-read.d.ts.map +1 -1
  545. package/tui/dist/page-read.js +2 -1
  546. package/tui/dist/page-read.js.map +1 -1
  547. package/tui/dist/render.d.ts.map +1 -1
  548. package/tui/dist/render.js +8 -2
  549. package/tui/dist/render.js.map +1 -1
  550. package/tui/dist/scopes/fleet-scopes-model.d.ts +73 -0
  551. package/tui/dist/scopes/fleet-scopes-model.d.ts.map +1 -0
  552. package/tui/dist/scopes/fleet-scopes-model.js +102 -0
  553. package/tui/dist/scopes/fleet-scopes-model.js.map +1 -0
  554. package/tui/dist/scopes/scopes-model.d.ts +2 -0
  555. package/tui/dist/scopes/scopes-model.d.ts.map +1 -1
  556. package/tui/dist/scopes/scopes-model.js +7 -4
  557. package/tui/dist/scopes/scopes-model.js.map +1 -1
  558. package/tui/dist/sections.d.ts.map +1 -1
  559. package/tui/dist/sections.js +5 -0
  560. package/tui/dist/sections.js.map +1 -1
  561. package/tui/dist/startup.d.ts +5 -0
  562. package/tui/dist/startup.d.ts.map +1 -1
  563. package/tui/dist/startup.js +12 -0
  564. package/tui/dist/startup.js.map +1 -1
  565. package/tui/dist/state.d.ts.map +1 -1
  566. package/tui/dist/state.js +12 -5
  567. package/tui/dist/state.js.map +1 -1
  568. package/tui/dist/types.d.ts +16 -1
  569. package/tui/dist/types.d.ts.map +1 -1
  570. package/ui/dist/assets/index-BX8TUZ0E.css +32 -0
  571. package/ui/dist/assets/{index-BOYrLyfQ.js → index-BvUEh33d.js} +1 -1
  572. package/ui/dist/index.html +2 -2
  573. package/ui/dist/assets/index-DqSRu4OY.css +0 -32
@@ -292,6 +292,32 @@ guidance names that pane and the result carries `replacementStarted` and `succes
292
292
  already ended, the new one may be working there without being registered as the seat's occupant, and another
293
293
  handover or `rig seat launch <seat> --fresh --stop --reason <why>` ends it if it goes ahead.
294
294
 
295
+ **Adopting the successor of a failed handover.** When a handover fails after its successor was launched in the
296
+ respawned pane (the readiness window closed, the context packet didn't land, or the final binding step refused for a
297
+ reason that can change), it records the attempt for a Claude Code successor whose launch named its session id, and its
298
+ guidance leads with `rig seat handover <seat> --recover --reason <why>` and says not to retry the handover, which
299
+ would end that successor. The recovery adopts the successor that is running there and keeps its conversation. It
300
+ first proves, reading only, that the attempt still replaces the seat's current occupant and that the pane is the seat
301
+ session's only pane, with exactly one foreground Claude that names the session id OpenRig generated for that launch,
302
+ the same process in two samples, proven as the launch's readiness proves it (a `#!` wrapper that starts Claude without
303
+ exec included, when the launch recorded its executable: a launch in a native Claude permission mode, `auto` or another
304
+ mode the harness advertises). A classic launch records no executable, and the `floor` and `full_bypass` postures
305
+ launch classically too. A wrapper whose Claude runs as `node cli.js` or under another name is then not proven; when a
306
+ second sample, a few seconds later, finds the same foreground, the refusal says `--recover` can't prove it, and to run
307
+ it again only once the pane shows a waiting wrapper has started Claude (a wrapper still starting, which the second
308
+ sample sees exec Claude or start it, is proven). A
309
+ `/clear` in the successor before the recovery is followed: the conversation it adopts is the one Claude's own session
310
+ file for that process names, when it is newer than the process, even when that is the retiring occupant's conversation
311
+ or a fork parent's. The result says so; a fork successor on its parent's or the retiring occupant's conversation is
312
+ reported as no distinct fork (`forkId: "none"`, continuity `resumed`), and the parent seat is left as it was: both seats
313
+ then name the same conversation, so restoring both opens it twice. Then it commits
314
+ the handover with the occupant generation the attempt reserved, so the successor's identity hooks are accepted from
315
+ then on. It types nothing into the pane, and a packet the failed handover didn't deliver is not delivered: the result
316
+ says so, and a rebuild whose priming never arrived is recorded as fresh. Anything it can't prove, such as another
317
+ conversation, two Claudes or a changed pane, refuses with `successor_identity_unproven` and changes nothing; an
318
+ attempt that another occupant has replaced since is closed as `handover_attempt_superseded`. It adopts Claude Code
319
+ successors only (`recover_runtime_unsupported` otherwise).
320
+
295
321
  **Claude submission check.** For each startup message to a Claude seat, OpenRig makes a bounded check that the prompt
296
322
  was submitted. When the capture can't tell, it records the submission as unverified and carries on. When it sees the
297
323
  same prompt still sitting in the input, it presses Enter once more; if it's still there, it warns "Startup prompt still
@@ -423,7 +449,7 @@ Each startup file and action specifies when it applies:
423
449
  - a launch replaces it, as launches always did, and names it (`guidance_block_refreshed_unrecorded`);
424
450
  - an exact resume or a handover leaves it, and names it as possibly stale (`guidance_block_may_be_stale`).
425
451
 
426
- **A file keeps one copy of each distinct block text, and nothing you wrote is removed.**
452
+ **A file keeps one copy of each distinct block text, and tidying the copies never removes a text you wrote.**
427
453
  - **Touched markers:** a marker an editor or formatter rewrapped, with spaces or line breaks inside the comment, still reads as its block, and the next write puts it back in OpenRig's form.
428
454
  - **Collected copies:** a copy that repeats an earlier one exactly is removed. Beside a copy you edited, OpenRig's own unedited copies are removed too, and every different edited copy stays (`guidance_block_copies_removed`).
429
455
  - **A marker that lost its pair:** OpenRig can't tell where that block starts or ends, so it adds no copy beside it and names it (`guidance_block_markers_damaged`). Put back the missing marker or remove the partial block, and OpenRig's next write treats that block like any other. `rig package install` leaves such a file as it is, names it in its result (`notes`), and installs the rest. A marker without its pair beside a complete block is named too (`guidance_block_marker_unpaired`), and the block is written.
@@ -447,6 +473,7 @@ running seat only through the action in the last column.
447
473
  | Reasoning effort | `rig seat set-effort` | `rig seat effort <seat>`: requested, saved, sent at launch, and what the session recorded, which is not verified until it takes a turn | Its next managed continuation; nothing restarts |
448
474
  | Permissions | `rig seat set-permissions` (`--mode`, `--rules`, or for Codex `--codex-permissions` or `--codex-profile`), shown by `rig seat status` | What it launched with; a status read doesn't prove the running process enforces the selection | Its next managed launch or resume ([per-seat permission mode](getting-started.md#per-seat-permission-mode)) |
449
475
  | Working directory | `rig seat set-cwd`, shown by `rig seat status` as **Working directory for future launches** | The directory it started in | `rig seat launch --fresh --stop` (a blank conversation) or `rig handover --source rebuild` (durable context); [details](#change-an-existing-seats-working-directory) |
476
+ | Runtime home (`CLAUDE_CONFIG_DIR`, `CODEX_HOME`) of an existing seat | `rig seat record-runtime-home`, shown by `rig seat runtime-home` | The home it started with; whether a running process uses the recorded one isn't checked | Its next resume, restore or launch; [details](#record-where-an-existing-seats-conversation-lives) |
450
477
  | Launch wrapper (`launch_wrapper`) | Member `launch_wrapper` in `rig.yaml` (`pi`, `codex` and `claude-code` only; `launch_wrapper: []` clears, omitting retains on existing-seat apply; surfaced as `launchWrapper` in `rig ps --nodes --json` when set; no live `rig seat` edit verb) | The literal wrapper argv that prefixes the resolved Codex entry or Claude executable (preserving TTY stdio) or the resolved Pi child executable inside OpenRig's host runner (preserving RPC pipes and runner lifecycle) when that session launched; a configured prefix is not proof of isolation, tooling, memory or governance | Supported spec create/recreate/apply flow, then the seat's next managed launch, resume, restore or handover (fails closed when wrapper support is unavailable; never falls back to bare child launch; [details](rig-spec.md#launch-wrapper-runtime-pi-and-codex)) |
451
478
  | Startup files and skills | The spec's startup files, skills and actions | What its conversation read when it started; editing a file afterwards doesn't reach it | A fresh launch or a handover delivers them again; for the running seat, send or walk the change (`rig walk <seat> --through <files>`) |
452
479
  | Guidance blocks (`CLAUDE.md`, `AGENTS.md`) | The seat's startup selection, which OpenRig merges into its guidance file as managed blocks at each start and restore | `rig seat status` **Guidance**: when OpenRig wrote each of its blocks, before or after the session's recorded startup finish (for a claimed session, when OpenRig recorded it). That's chronology, not what the agent has: the harness reads the file earlier in startup, Claude Code reloads it after `/compact` or `/clear`, Codex reads it at session start, and the agent can read it, or be sent it, at any time. OpenRig doesn't record what an agent read | Claude: its next compaction, `/clear` or restart. Codex: its next start. Without either, [tell it](#new-guidance-for-a-running-seat) |
@@ -612,6 +639,66 @@ This separates provider files, not OS users or accounts. Project-local resources
612
639
  still use the selected project directory; shared project and system settings
613
640
  remain shared.
614
641
 
642
+ ### Record where an existing seat's conversation lives
643
+
644
+ When an existing seat's conversation lives under a different runtime home from the one OpenRig has for it (after a
645
+ recovery, say, or a move between homes), record that home so the seat's next resume or restore launches from it, with
646
+ the same conversation and no successor:
647
+
648
+ ```bash
649
+ rig seat runtime-home dev-impl@my-rig
650
+ rig seat record-runtime-home dev-impl@my-rig --home /home/me/.codex-b \
651
+ --expect-occupant <generation> --expect-original <conversation id> --expect-revision <n> --reason "home after recovery"
652
+ ```
653
+
654
+ `rig seat runtime-home` shows the home the next launch uses and where it comes from, with the seat's current occupant
655
+ generation, its original conversation and the revision of its latest recorded home (0 when none), and prints the
656
+ record command with those values. It works for Claude Code and Codex seats.
657
+
658
+ - **What it's recorded against.** The occupant, original conversation and revision you read. If any of them changed
659
+ since, because a successor took the seat or someone else recorded a home, nothing is applied and the current values
660
+ are shown, so a replacement occupant is never changed by mistake.
661
+ - **Retrying is safe.** Each recording has an operation id, generated and printed when you don't pass
662
+ `--operation-id`. If the result is unknown (a timeout, a lost connection or an unreadable answer), run the same
663
+ command with that id: it returns what was recorded, or records it once, even if the seat's runtime changed since. The
664
+ same id with a different request applies nothing.
665
+ - **What changes.** Only the seat's home and an audit record (`seat.runtime_home_recorded`). No running process,
666
+ pane, login, credential, conversation, model, effort or cwd changes; nothing is copied, switched or launched.
667
+ - **Where it's stored, and credentials.** In the place that decides the seat's home today, so credential handling
668
+ stays as it is. A seat on a home chosen by an account switch keeps that, with provider credentials still unset at
669
+ launch, and gets the new path. Any other seat gets its own `env:` value for the home variable, as a seat that declares
670
+ one in its spec has, and nothing is unset.
671
+ - **What it says, and doesn't.** The result says whether the home exists and whether the original conversation's
672
+ record was found in it; a path it can't read leaves that unknown, never "not found". That doesn't show one copy of a conversation is fresher than another, and whether a running
673
+ process uses the home isn't checked (the result says `runningProcess: unverified`).
674
+ - **Restore.** Snapshots carry each seat's recorded home. Reviewing a selected history shows the current record beside
675
+ the snapshot's, whether it was recorded for the selected conversation or another one, and which home the resume
676
+ uses (`uses`):
677
+ - the home recorded for the selected conversation, when the latest record is its own and the seat's home is still
678
+ that record's (the same path, set in the same place the record wrote it);
679
+ - the newest home recorded for the selected conversation, when a later record is for another one and the seat's home
680
+ is still that later record's. The resume writes it back as a new revision for the selected conversation before it
681
+ launches. It's put back, as a new revision, only when the launch is known to have been rolled back and the seat's
682
+ conversation is the one it had before: OpenRig undid the launch and its terminal is known to be gone (none was
683
+ created, or tmux confirmed the stop), or it stopped before starting one, so no session was registered and no resume
684
+ was sent. A terminal registered without a resume, a creation or stop tmux couldn't confirm, or a launch that failed
685
+ with an error isn't known to be undone, so the home stays. After a confirmed resume it stays, a Claude
686
+ conversation continued under a new id included, and when what the launch left isn't known it stays too and the
687
+ result says so;
688
+ - otherwise the seat's home as set, with no record revision for the selected conversation: when nothing was recorded,
689
+ when the home changed since the latest record (an account or runtime switch, say, including one that leaves the
690
+ same path coming from the rig's declaration), which isn't undone, or when no home was recorded for this
691
+ conversation.
692
+
693
+ The review also says whether the selected conversation's record is found in that home, as context. The result
694
+ names the home the resume was bound to and attempted, and whether OpenRig registered a terminal session for it
695
+ (`sessionRegistered`). That isn't the native resume: whether that ran and took is the result's `ok` and `code`. For a
696
+ written-back home, it says whether it was put back (`putBack`), or why not (`notPutBack`). A launch that fails with an
697
+ error returns `launch_error`, with the same home named and nothing put back, since what it left isn't known.
698
+
699
+ A recording made after the review, even to the same home, changes the review's revision, so a resume reviewed before
700
+ it doesn't run. Review again and decide.
701
+
615
702
  ### Codex guidance at launch
616
703
 
617
704
  On a fresh launch of Codex 0.164.0 or later, OpenRig passes a seat's managed guidance (OpenRig's start file and the
@@ -84,12 +84,14 @@ Shared test vectors are in `schemas/fixtures/identity-vectors.json`.
84
84
 
85
85
  `seats` gives a `pod.member` the runtimes it may use, and the profile each runtime uses. A member it doesn't list keeps
86
86
  the runtime `rig.yaml` gives it. `presets` names full mappings, and `recommended` names one of them, which must be
87
- `rig.yaml` as written. `rig bundle create`, `rig bundle configurations` and `rig bundle check` refuse a file that breaks
88
- these rules.
87
+ `rig.yaml` as written. `rig bundle check` reports a file that breaks these rules as a finding, and
88
+ `rig bundle configurations` names the problem instead of listing.
89
89
 
90
90
  `--preset` and `--seat` choose a configuration (see the [rig bundle reference](rig-bundle.md)). Any mix of each seat's
91
- declared runtimes can be built, not only the presets; a runtime a seat doesn't declare is refused, and nothing is built.
92
- Without either flag, create builds `rig.yaml` as written. The built archive's manifest records
91
+ declared runtimes can be built, not only the presets. A runtime a seat doesn't declare, or a choice from a file that
92
+ breaks these rules, is refused, and nothing is built. Without either flag, `rig bundle create`, and `rig bundle inspect`,
93
+ `rig bundle install` and `rig up` of a GitHub folder link, use `rig.yaml` as written and don't check
94
+ `configurations.yaml`. The built archive's manifest records
93
95
  `configuration: { id, preset }` outside the package digest; `preset` is there only when `--preset` or `--seat` chose a
94
96
  mapping that matches a declared preset.
95
97
 
@@ -20,7 +20,8 @@ The CLI itself finds the daemon in these orders:
20
20
  `$OPENRIG_HOME/daemon.json` when it holds a valid `pid` and `port`; else the config keys `daemon.host` and
21
21
  `daemon.port` (environment `OPENRIG_HOST` and `OPENRIG_PORT`), which default to `127.0.0.1:7433`.
22
22
  - **Status** (`rig status`, `rig daemon status`): `OPENRIG_URL` (or `RIGGED_URL`) first, probed directly; else
23
- the state file below.
23
+ the state file below. If no state is read, probe the configured `daemon.host` and `daemon.port` instead (defaulting
24
+ to `127.0.0.1:7433`).
24
25
  - **Start and stop** (`rig daemon start`, `stop`): the state file, `$OPENRIG_HOME/daemon.json`, then the legacy
25
26
  `~/.rigged/daemon.json`.
26
27
 
@@ -231,6 +232,7 @@ With `needs-me.read` supported:
231
232
  Success is 201 with `instance`, `spec`, `entryQitemId` and `entryOwnerSession`, any `advisories`, and
232
233
  `scopeIgnored` when a scope wasn't applied. The instance keeps `rootObjective`, which every instance read returns
233
234
  (`/api/workflow/list`, `/api/workflow/<id>` and its `trace`). An instance started before it was kept reads `null`.
235
+ - **`GET /api/workflow/list`** accepts exact `project`, `mission`, `slice`, `rig` (the bound rig), and `name` (the workflow name) filters, repeatable `tag` filters on the instance's free-form scope tags, and `limit` from 1 to 10,000. Filters combine with AND and apply before the limit; results keep their existing oldest-first order. Instances without the requested scope or binding do not match. Without these filters, existing list behavior is unchanged.
234
236
  - **`GET /api/provider/usage`** returns `{ hostUsage }`, this host's usage rows (`host: "local"`, a `provider`
235
237
  and a `state`). A Claude row's `windows` are the seats' status-line readings, one entry per reading, each with
236
238
  its `window`, `usedPercent`, `resetsAt`, `asOf` and `seatSession`. A Codex row has `windows: []`. Treating the
@@ -33,7 +33,7 @@ suite. Both sets are readable in the root `package.json` scripts.
33
33
 
34
34
  | Lane | Command | Meaning |
35
35
  |---|---|---|
36
- | Portability report | `node scripts/portability-report.mjs` | lists added lines with machine-specific values; findings never fail it (`.github/workflows/portability-report.yml`) |
36
+ | Portability report | `node scripts/portability-report.mjs` | lists added lines with machine-specific values; findings don't fail it by default, and `--strict` exits 1 when it finds any. The workflow (`.github/workflows/portability-report.yml`) runs it without `--strict`. |
37
37
 
38
38
  ## The norm (web-UI freeze at 0.5.0)
39
39
 
@@ -26,9 +26,11 @@ A person can also bind to a local bridge adapter using a `relay` binding:
26
26
  `rig gateway human add bob --display-name "Bob" --delivery-class B --binding "relay:local-bridge:file:/etc/openrig/relay.env:primary:handle=bob-ops"`
27
27
  (see [Gateway Relay Reference](gateway-relay.md) for endpoint, secret provisioning, and custody architecture).
28
28
  `human@host` is the unnamed person at the terminal; `human@kernel` is also accepted as a human/gate address.
29
- These aliases (including `human-<name>@host` and `human-<name>@kernel`) are not agent sessions: reply with
30
- `rig queue create --destination human@host --human-intent update --summary "<one line>" --evidence-ref "<path>" --body "..." --verify`,
31
- substituting the sender's address and your summary, evidence path and reply. A reply destination doesn't identify
29
+ These aliases (including `human-<name>@host` and `human-<name>@kernel`) are not agent sessions. A row addressed to
30
+ `human@host` names no person: it asks no one, waits on Steering and in the Feed, and OpenRig reports it as undeliverable. To reply to a person, use
31
+ their registered address:
32
+ `rig queue create --destination <their address> --human-intent update --summary "<one line>" --evidence-ref "<path>" --body "..." --verify`,
33
+ substituting your summary, evidence path and reply. A reply destination doesn't identify
32
34
  who acted or determine who may answer an ask. Clients acting as a registered person name that person's
33
35
  `actorSession`; a seat identity header takes precedence. The terminal's primary-user authority records the unnamed
34
36
  `human@host` actor, not the person whose queue is being viewed.
@@ -112,8 +112,9 @@ including its `bwrap` AppArmor profile guidance; changes to AppArmor are the own
112
112
  **Choose permissions before starting the team.** Ordinary OpenRig launches use
113
113
  Codex's `-s workspace-write`, with approval policy from your native configuration,
114
114
  or Claude Code's `acceptEdits`, which still leaves commands subject to native
115
- rules and prompts. A team seat with no permission policy, per-seat choice or
116
- (for Codex) named profile also gets a per-launch
115
+ rules and prompts. A team seat with no permission policy (or with `standard` or
116
+ `open`, whose rules aren't applied at launch), per-seat choice or (for Codex)
117
+ named profile also gets a per-launch
117
118
  [team default](rig-spec.md#team-launch-defaults): Claude runs ordinary `rig`
118
119
  commands, project reads and common tests without prompting, while lifecycle
119
120
  commands such as `rig up` and `rig down` still ask; Codex also gets the OpenRig
@@ -185,10 +186,10 @@ agent doing the setup. Both use this release's tag:
185
186
 
186
187
  ```sh
187
188
  # Claude Code
188
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.14/skills/rigs" --skill rigs --agent claude-code
189
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.16/skills/rigs" --skill rigs --agent claude-code
189
190
 
190
191
  # Codex
191
- npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.14/skills/rigs" --skill rigs --agent codex
192
+ npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.16/skills/rigs" --skill rigs --agent codex
192
193
  ```
193
194
 
194
195
  If OpenRig is already installed, use the release tag matching your installed `rig --version` instead: replace the tag
@@ -203,13 +204,13 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
203
204
  script will do and changes nothing:
204
205
 
205
206
  ```sh
206
- curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.14/scripts/install.sh | sh -s -- --dry-run
207
+ curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.16/scripts/install.sh | sh -s -- --dry-run
207
208
  ```
208
209
 
209
210
  The same command without `--dry-run`,
210
- `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.14/scripts/install.sh | sh`, installs the
211
- latest published `@openrig/cli` with `npm install -g`,
212
- runs the Node.js and SQLite check, then `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
211
+ `curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.16/scripts/install.sh | sh`, installs the
212
+ latest published `@openrig/cli` with `npm install -g`, runs the Node.js and SQLite check if the installed checker is
213
+ present (otherwise it reports the check skipped), then runs `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
213
214
  Codex and may install a missing one, as described below. A failed step prints
214
215
  `FAILED [n/4] <command or check> (exit <code>)` for steps 1–3. If step 4 is not ready, it reports
215
216
  `INSTALLED, SETUP NOT COMPLETE` and points to the details from `rig setup` above. Follow that output and any Fix, then rerun
@@ -308,11 +309,12 @@ team. `rig daemon start --no-kernel` is for automation or an explicit request to
308
309
  omit the kernel; it leaves you without that operator.
309
310
 
310
311
  On a fresh instance, explicit daemon startup chooses the kernel variant from
311
- successful native auth probes: Claude alone, Codex alone, or both. It starts the
312
- kernel in the background without a project starter. An absent unused provider is
313
- fine; if both accounts are authenticated, the kernel uses both even when your
314
- later project uses just one. A request to use only one provider for everything
315
- is a separate choice.
312
+ the providers selected by `rig setup --providers` that pass native auth probes:
313
+ Claude alone, Codex alone, or both. If no choice was recorded, it considers every
314
+ signed-in provider. `OPENRIG_PROVIDER_SELECTED` in the daemon's environment
315
+ overrides the saved choice. It starts the kernel in the background without a
316
+ project starter. An absent unused provider is fine. The kernel choice and a
317
+ later project's provider choice are separate.
316
318
 
317
319
  `/api/kernel/status` retains the chosen template (`rig.yaml`,
318
320
  `rig-claude-only.yaml` or `rig-codex-only.yaml`) across daemon restarts and
@@ -670,7 +672,7 @@ rig ps --nodes --rig starter
670
672
  Preview the selected seats, models and resources. Plan checks resolution and
671
673
  preflight for the working directory. The kernel is already your entry point; this step starts the chosen project
672
674
  team. Read readiness for the project seats, not only daemon health. Have the person answer a named authentication, trust, hook-review or
673
- permission prompt before giving that seat work; a launch default, or their answer for another seat, isn't their answer to this one. When a seat stops at such a prompt, `rig up` reports
675
+ permission prompt before giving that seat work; a launch default, or their answer for another seat, isn't their answer to this one. When the person works through their own agent, the agent brings each trust, hook-review or permission prompt to them as a question and sends their choice, so they don't need to open that seat's terminal; a sign-in still needs the person. When a seat stops at such a prompt, `rig up` reports
674
676
  `Status: partial`, prints `Startup attention (<seat>): <reason>` and exits 1;
675
677
  `rig ps --nodes` repeats it as "Startup details". The reason ends with the command
676
678
  to run once the prompt is answered: `rig seat continue <seat>`, which delivers the
@@ -1287,7 +1289,7 @@ and `off` for ordinary automatic sends (`--enabled false`).
1287
1289
  In the shipped `starter`, `dev-build` runs Claude Code. For a **Claude Code** seat,
1288
1290
  OpenRig normally passes `--permission-mode acceptEdits`: edits can proceed, while
1289
1291
  other actions follow native rules and prompts. For a seat with no permission
1290
- policy or per-seat choice it also passes the per-launch team default (`--settings` allowing ordinary
1292
+ policy (or with `standard` or `open`) and no per-seat choice it also passes the per-launch team default (`--settings` allowing ordinary
1291
1293
  `rig` commands, project reads and common tests, with a session hook asking for
1292
1294
  lifecycle commands while allowing literal help forms such as `rig down --help`);
1293
1295
  personal and project rules still apply. Nothing is written to your settings files. To explicitly select the bypass launch flag for that rig:
@@ -10,7 +10,9 @@
10
10
  > runner is qualified beyond that.
11
11
  > - **Existing interfaces with author obligations:** launch-result identity, exact resume, first input and model
12
12
  > handoff. These interfaces do not establish that a particular runner implements them correctly.
13
- > - **Unchanged:** plain community presets and the built-in runtimes (Claude Code, Codex, Pi, OMP, terminal).
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.
15
+ > - **Unchanged:** plain community presets and the other built-in runtimes (Claude Code, Codex, OMP, terminal).
14
16
  >
15
17
  > **What has run natively, in 0.7.8's release testing, against a Claude Haiku model:**
16
18
  > - **dsh-seat 0.3.0**, an outside runner for dsh 0.2.1-rc.2 over ACP: launch and first input, useful queue work, a
@@ -127,6 +129,29 @@ immediately before the preset's native command, after OpenRig's launcher assignm
127
129
 
128
130
  ## 4. Activity: report turn boundaries
129
131
 
132
+ Managed hosted Pi, Pi-RPC presets and declared community runners can receive an actual-launch credential in
133
+ `OPENRIG_ACTIVITY_HOOK_TOKEN`, with their attempt in `OPENRIG_RUN_ID`. Keep this credential in the runner's own
134
+ process; remove it from the native agent and tool environment. It is delivered through tmux's private environment,
135
+ never as a literal launch argument or launch-result field. A report that supplies `runId` requires this bound
136
+ credential; knowing a generation or the install token does not supply run authority.
137
+
138
+ Issuing or delivering this optional credential never blocks an otherwise supported launch or restore. If the launch
139
+ anchor, PID, generation or private credential channel is unavailable, the existing unbound install-token path remains;
140
+ that path adds no new run-authority claim and is not attributed to a selected run. A refused bound report stays
141
+ refused: it is never silently retried with the install token. If native dispatch already occurred before activation
142
+ failed, Core preserves the dispatched outcome and does not replay input; cleanup addresses only that launch's grant.
143
+ Unreadable observations cannot revoke a grant. Confirmed exit/replacement or intentional lifecycle cleanup still can.
144
+
145
+ Core activates a pending credential after dispatch against its selected session, pane and recorded runner. A staged
146
+ successor waits for the existing binding cutover; pending posts receive `activity_grant_pending` and must retry.
147
+ An unreadable binding is `activity_grant_unverified` (409, retryable): it could not be verified now, not proven stale.
148
+ Nothing is recorded and the grant is retained; retry when its binding can be checked again.
149
+ Failed launches revoke their own credential. Relaunch replaces the active run; an explicit no-launch adoption can
150
+ retain it only with the original concrete pane/process evidence and an adoption-only tenure continuation. These
151
+ checks bind a runner's reports to its launch; they do not independently verify its claimed native identity. Existing
152
+ host hooks, contained guest grants and install-token Pi usage keep their legacy behavior. Pi usage also accepts a
153
+ current bound Pi credential. No native input channel or cancellation capability is implied by this credential.
154
+
130
155
  Post each event to `POST <base>/api/activity/hooks` with `Authorization: Bearer <token>`.
131
156
  - **Finding the base and token:** take them from `OPENRIG_URL` (or `OPENRIG_PORT`, with `OPENRIG_HOST` defaulting to
132
157
  `127.0.0.1`) and `OPENRIG_ACTIVITY_HOOK_TOKEN`, or else from `$OPENRIG_HOME/activity-endpoint.json`.
@@ -401,6 +426,7 @@ answer. Only the seat's opt-in refuses and holds attention.
401
426
  | `stale_generation` | 409 | With the activity token: the post isn't from the seat's current occupant. | answers `cancelled` |
402
427
  | `activity_grant_wrong_seat` | 403 | The grant speaks for another seat. | answers `cancelled` |
403
428
  | `activity_grant_stale` | 409 | The grant's launch generation no longer occupies the seat. | answers `cancelled` |
429
+ | `activity_grant_unverified` | 409 | The binding could not be verified now; this is retryable, not evidence of replacement or cancellation. | permits under the existing unavailable-answer policy |
404
430
  | `activity_grant_revoked` | 401 | The grant was revoked while its launch generation still occupies the seat, or before it has registered, so this may still be the live request; a replaced occupant's grant reads `activity_grant_stale` instead, even once revoked. | permits |
405
431
  | `activity_grant_pending` | 409 | The grant's launch hasn't registered its occupant yet. | permits |
406
432
  | `duplicate_request` | 409 | This request id was already submitted in another turn; an agent may reuse an id. | permits |
@@ -92,8 +92,9 @@ warning. Enabled diagnosis policy admits one bounded packet even though the
92
92
  product denominator is unknown. Ordinary unavailable/stale detector records
93
93
  remain ineligible. Diagnosis and human-notification traffic are excluded from
94
94
  the numerator and cannot recursively generate another investigation. So is the
95
- daemon's own bookkeeping: transitions by system actors (`*@system` and the
96
- bare `system` of claim handover) and daemon notes recorded under any actor
95
+ daemon's own bookkeeping: transitions by system actors (`*@system`, the
96
+ bare `system` of claim handover, `daemon@kernel` and every `system:*` actor;
97
+ other kernel seats such as `human@kernel` still count) and daemon notes recorded under any actor
97
98
  (`auto-unparked:`, `blocker custody moved `, `park wake `, `parked-owner `).
98
99
  The reported `transitionIds` are the counted transitions.
99
100
 
@@ -143,7 +144,8 @@ explicitly linked project or mission work resolves a scope. Its bounds: at most
143
144
  qitems, 1,000 members / 10,000 transitions per family, 200 workflow
144
145
  receipts, 200 declared slices, and 100 proof files per selected slice. Overflow
145
146
  refuses visibly. When more than 200 families (roots) were touched, it evaluates the
146
- 200 with the most transitions in the window, then by lineage ID, and reports the
147
+ 200 with the most transitions in the window (every transition, daemon bookkeeping
148
+ included, which bounds the counted ones), then by lineage ID, and reports the
147
149
  result as partial coverage with the total and omitted counts. Omitted families
148
150
  were not evaluated, so having no finding for them is not a healthy verdict.
149
151
  Context files are bounded to 64 KiB. A lineage beginning before
@@ -124,10 +124,12 @@ manual replay. A recurring reminder keeps its next normal cycle under a new occu
124
124
  finishing its accounting does not type the same occurrence twice.
125
125
 
126
126
  Exhausted retries end only the failed occurrence, with its cause and next action; a recurring
127
- reminder keeps its next normal cycle. A permanent transport failure leaves a terminal job:
128
- correct the destination and register a replacement reminder. A one-shot park timer records its
129
- failed or unconfirmed wake on the parked row before it ends. A retryable failure is recorded
130
- there while the timer stays armed. Deliberately held
127
+ reminder keeps its next normal cycle, and a permanent transport failure leaves it a terminal job:
128
+ correct the destination and register a replacement reminder. A one-shot park timer (`--wake-after`)
129
+ has no later cycle, so neither the retry limit nor a permanent transport failure ends it while its
130
+ task is still set aside: each failure before input is recorded on the parked row while the timer
131
+ stays armed, and it retries until it's delivered or the park ends. If input may have reached the
132
+ seat, it records the unconfirmed wake on the parked row and ends. Deliberately held
131
133
  input keeps its existing retained-message custody. Condition watches and parked-owner policy
132
134
  behavior are unchanged. This does not replay failed occurrences recorded by older versions.
133
135
 
@@ -289,11 +291,14 @@ Unknown: not said yet.
289
291
  stopped (the first fire comes one interval after you register it), and it stops when the agent that registered it
290
292
  is replaced. It's fine for agent-to-agent reminders. Your own watch timers also show as `periodic-reminder` in
291
293
  `rig watchdog list`: that's the one-shot timer `--wake-after` arms, not a registered repeating reminder. It's retired
292
- when it fires or when the task stops being set aside. A wake held back because you were typing (a retained
293
- delivery) wasn't delivered, so it doesn't use the timer up: it's tried again at each interval until an attempt goes
294
- through (delivered or failed), which retires it. A timer another task shares through `--wake-watchdog` stays live
295
- for that task when this task is handed off or stopped, and the same rule applies to its wake. None of this is a
296
- delivery guarantee.
294
+ after delivery, when the occurrence ends, or when the task stops being set aside. A wake held back because you were typing (a retained
295
+ delivery) wasn't delivered, so it doesn't use the timer up. A failure known to have happened before input reached
296
+ the seat also keeps the same wake owed and retries on the existing cadence until delivery or the park ends. If input
297
+ may have reached the seat, the occurrence ends without automatic replay; inspect the receipt before retrying.
298
+ A timer another task shares through `--wake-watchdog` stays live for that task when this task is
299
+ handed off or stopped, and a held-back wake doesn't use it up. Once this task's park has ended, though,
300
+ a failure before input to that task is retried only up to `queue.wake_retry_cap` times (a permanent
301
+ transport failure ends it at once), and then the timer ends. None of this is a delivery guarantee.
297
302
  - **Transcript bytes as "usage".** `context-usage-threshold` measures an agent's transcript, not an account's
298
303
  allowance. For an allowance, see "A usage warning" above.
299
304
 
@@ -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.14/skills/rigs --skill rigs --agent claude-code
15
+ npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.16/skills/rigs --skill rigs --agent claude-code
16
16
  # Codex
17
- npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.14/skills/rigs --skill rigs --agent codex
17
+ npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.16/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
@@ -324,6 +324,89 @@ envelope. An OpenRig older than 0.7.3 doesn't read a recorded envelope, so after
324
324
  the seat launches without it. The field is also supported on legacy flat Codex nodes; other
325
325
  runtimes reject it.
326
326
 
327
+ For an explicit filesystem policy, use `filesystem` **instead of** `sandbox` and its
328
+ workspace-write fields. This is the same per-seat selection and audited setter:
329
+
330
+ ```yaml
331
+ cwd: /workspace/shared
332
+ env:
333
+ CODEX_HOME: /accounts/codex # existing account home; never copied
334
+ codex_permissions:
335
+ approval: never
336
+ filesystem:
337
+ ":minimal": read
338
+ ":workspace_roots": write
339
+ "/workspace/shared/private": deny
340
+ network_access: false
341
+ ```
342
+
343
+ The mapping accepts native `read`, `write` and `deny` values at absolute paths,
344
+ `~/path`, or `:root`, `:minimal`, `:workspace_roots` (alias `:project_roots`),
345
+ `:tmpdir` and `:slash_tmp`.
346
+ It must be nonempty; nested subpath maps and arbitrary Codex settings are not part
347
+ of this option. Omitted network access becomes `false`. Include the read access
348
+ your tools and installed Codex executable need; this custom profile adds no
349
+ workspace, temporary, queue-state, seat-folder or Git-directory write grants of
350
+ its own. Native Codex decides whether the host can enforce the supplied rules.
351
+ Filesystem approval accepts `never` or `on-request`; the retired `untrusted`
352
+ approval is rejected before the selection is saved.
353
+
354
+ OpenRig emits the policy as invocation-local `permissions.openrig-seat` and
355
+ `default_permissions` overrides, with the selected approval. It writes no policy
356
+ file, so two seats can share both `CODEX_HOME` and `cwd` without overwriting each
357
+ other. Clearing the selection changes only that seat's record. Existing
358
+ account-scoped `codex_config_fragment` resources and their root-key rejection
359
+ stay unchanged.
360
+
361
+ Before dispatch, OpenRig compares Codex's native configuration with the seat's
362
+ selection. Positive evidence of access widening, a conflicting profile or
363
+ approval choice, an excluding managed allowlist, or a missing/empty selected
364
+ profile refuses launch. Compatible managed defaults and allowlists, harmless
365
+ descriptions and provably narrower flat rules are accepted. Legacy sandbox
366
+ settings are inert under the invocation's explicit permission-profile selection.
367
+ Null fields are treated as absent, including unfamiliar optional fields.
368
+ Managed `defaultPermissions` is a fallback, not a forced selection; the
369
+ effective profile and managed allowlist determine whether the agent's choice holds.
370
+
371
+ A timeout, reader failure, unfamiliar representation or unsupported managed
372
+ requirement continues with the authored flags and reports `policy not verified:
373
+ <reason>` in the launch observation and status. The policy is never dropped or
374
+ swapped, and account/project settings are never edited to make the check pass.
375
+ Absent selection or approval fields, unfamiliar approval strings or profile formats,
376
+ and unclear overlap between native selectors and authored path rules are also unverified.
377
+ An authored selector that may cover an extra grant is considered before a literal
378
+ ancestor would reject that grant, except that an explicit non-root deny ancestor
379
+ always takes precedence over possible selector coverage. A full-root deny, written
380
+ as `/` or `:root`, is a default narrower grants may refine: possible authored
381
+ selector coverage stays unverified, while a proven outside grant still refuses.
382
+ Codex 0.167.2's `:minimal` adds system read defaults, not `/home` or `/Users`
383
+ user-data coverage; extra grants there under a root deny or with no root rule still refuse unless
384
+ another authored rule may cover them. Other minimal-path coverage stays unexpanded.
385
+ Duplicate aliases from a
386
+ lower layer leave their own coverage unverified; they do not hide a known widening
387
+ at another path.
388
+ Inconclusive coverage warnings name the extra rule and access. An excluding managed
389
+ allowlist is reported before an effective selection or approval mismatch.
390
+ Concrete refusals name the conflicting rule and offer a remedy; handover preserves
391
+ that remedy while leaving the predecessor running.
392
+ Without an explicit `CODEX_HOME`, OpenRig resolves the normal account home and
393
+ pins it for both the read and launch; an unresolvable home is reported as
394
+ unverified. A named `codex_config_profile` is retained but unverified because the
395
+ native reader cannot load that layer on this path. A `launch_wrapper` is also
396
+ retained and unverified: it may change the effective home/configuration, so a
397
+ read without that wrapper cannot certify the launch.
398
+
399
+ The filesystem selection replaces permission-mode and team/kernel defaults,
400
+ including ambient YOLO. Fresh launches, both resume paths and restore emit the
401
+ same selection. A rebuild uses the saved filesystem policy ahead of an observed
402
+ predecessor sandbox; clearing or replacing the policy after a snapshot takes
403
+ effect on restore. Status reports the plan and its limits, not observed native
404
+ enforcement. Handover checks the successor's filesystem selection before
405
+ signaling the predecessor; a concrete conflict leaves that predecessor running.
406
+ Configuration can change between the preflight and native startup;
407
+ the read and launch are not atomic. Codex's sandbox governs local command
408
+ execution, not every connector, account or external service.
409
+
327
410
  For an existing seat, put the envelope in a JSON file, or change its profile, with the existing
328
411
  audited permission command:
329
412
 
@@ -369,8 +452,12 @@ the Codex version and configuration being used.
369
452
 
370
453
  A non-kernel Claude or Codex seat with no authored permission policy, explicit
371
454
  seat permission selection, or named Codex profile receives the team launch
372
- default. An explicit policy, including `none` or `builtin:locked`, keeps its
373
- existing meaning. The default is derived again for fresh launch, resume, fork
455
+ default. So does one whose policy is `builtin:standard` or `builtin:open`, with
456
+ no seat permission selection, Claude rules of its own, or named Codex profile:
457
+ those policies default to allow, and their rules aren't applied at launch, so
458
+ recording one doesn't leave the seat stricter than recording none. The member's
459
+ own policy decides over the rig's. Any other explicit policy, including `none`
460
+ or `builtin:locked`, keeps its existing meaning. The default is derived again for fresh launch, resume, fork
374
461
  and handover; it is not saved as a user choice. Kernel, Pi and terminal behavior
375
462
  is unchanged.
376
463
 
@@ -472,7 +559,8 @@ launches with `-s danger-full-access -a never`, plus per-launch `-c` overrides t
472
559
  full-access and GPT-5.1 migration notices, whatever the rig's non-interruptive choice.
473
560
 
474
561
  **Config-surface policies are recorded, not applied at launch.** The seat still starts at
475
- the floor. The `allow`, `ask` and `deny` rules take effect once they are translated into the
562
+ the floor: with the [team launch default](#team-launch-defaults) for `standard` and `open`,
563
+ and without it for any other. The plan's line for that seat says which. The `allow`, `ask` and `deny` rules take effect once they are translated into the
476
564
  runtime's native settings. The `applying-a-permission-policy` skill in `openrig-core` does
477
565
  that translation, with per-runtime limits. For example, Claude's prefix rules can't
478
566
  reliably tell `git push --force` from `git push`. An `ask` waits for a person, so it pauses
@@ -798,7 +886,7 @@ directory's `CLAUDE.md`, including blocks written by other rigs.
798
886
  | `restore_policy` | string | no | the AgentSpec's | Restore behavior. One of: `resume_if_possible`, `relaunch_fresh`, `checkpoint_only`. The default comes from the AgentSpec's `defaults.lifecycle` (else `resume_if_possible`) as narrowed by its profile; a member value may only narrow it further, in that order. |
799
887
  | `compaction_strategy` | string | no | — | `default-compaction`, `managed-compaction`, `handover` or `apprentice-handover`; `harness_native` and `pod_continuity` are accepted as deprecated aliases, and `custom_prompt` is refused. `managed-compaction` and `apprentice-handover` create their jobs only for `claude-code` seats; see [Codex compaction and sizing](agent-startup-guide.md#codex-compaction-and-sizing). |
800
888
  | `mechanic` | string | no | — | A canonical `seat@rig` session address, for `apprentice-handover`. |
801
- | `session_source` | object | no | — | Start the seat from an existing session: `fork` with `native_id`, `rebuild` with `artifact_set`, or `agent_image` with `image_name`. A Claude Code `fork` needs Claude Code 2.0.73 or later. Not valid on terminal members. |
889
+ | `session_source` | object | no | — | Start the seat from an existing session: `fork` with `native_id`, `rebuild` with `artifact_set`, or `agent_image` with `image_name`. A Claude Code `fork` needs Claude Code 2.0.73 or later. Not valid on terminal members. Rebuild `artifact_set` paths are read as given, relative to the daemon's working directory, so an absolute path is the reliable form. |
802
890
  | `starter_ref` | object | no | — | `{ name }` of an agent starter (`^[a-zA-Z0-9][a-zA-Z0-9_-]*$`) whose files lead the seat's startup. Not valid on terminal members or with a fork. |
803
891
  | `startup` | StartupBlock | no | — | Member-level startup files and actions. Applied only to this member. |
804
892
 
@@ -89,6 +89,9 @@ labelled observation.
89
89
 
90
90
  A member marked `"hosted": true` is a hosted member: a tool outside the terminal that reaches the team over MCP, with no node or pane.
91
91
  `rig_team` lists it with its capabilities and caveat, no pane and activity unknown, unless its seat is one of the rig's nodes.
92
+ For a caller on an external grant, a node seat on a roster keeps its own `rig_team` entry, with that entry's label,
93
+ capabilities, `use_when`, caveat and presence added, so an assistant can see a disconnected seat for what it is. A seat
94
+ on no roster reads as before, and so does every seat for an internal caller.
92
95
  `show` and `find` say it's hosted rather than unmatched. See [Hosted members](hosted-members.md).
93
96
  Its entry can declare `wake.webhook`, the secret names for a trigger OpenRig rings when work lands for it
94
97
  (see [Ring it when work lands](hosted-members.md#ring-it-when-work-lands)).
@@ -97,3 +100,26 @@ an hourly schedule is `60`), or `check_in_on_request: true` when it checks in on
97
100
  its person set up, not something OpenRig observes. With neither, its check-in status reads unknown: OpenRig doesn't
98
101
  assume a cadence. A value that can't be used doesn't stop the roster loading: that member's check-in
99
102
  status reads unknown, with the reason. See [Check-in status](hosted-members.md#check-in-status).
103
+
104
+ Any member can declare a `label`: how the person knows it, which an assistant can say back, such as
105
+ `"claude (Sam's assistant, invited)"`. It's plain text of at most 200 characters, with no control characters, line or
106
+ paragraph separators, bidirectional embeddings, overrides or isolates, word joiner or invisible operators (U+2060 to
107
+ U+2064), byte-order mark (U+FEFF), or angle brackets. The zero-width space, the zero-width joiner and non-joiner, and
108
+ the direction marks are allowed, as names need them. A label that breaks those rules doesn't stop the roster
109
+ loading: it's ignored with `label_problem`, and the member is named by its seat as before. An external caller's entry
110
+ carries that `label_problem`, so an unusable label doesn't read as absent.
111
+
112
+ The roster at `rosters/network-<rig>.json` names that rig's team. Without that file, the roster whose `id` is the
113
+ rig's name does (the `<rig>.json` the starter and factory leads write; the first by file name if several do). For an
114
+ external caller, `rig_team` reports its `name` as `rig.displayName`, beside the rig's own name. The name follows the
115
+ label rule; one that breaks it isn't shown, and
116
+ `rig.displayNameProblem` says why. When an external caller's default list of its own open items is empty,
117
+ `rig_queue_list` adds a line its assistant can repeat, such as
118
+ `No open requests are addressed to you on the team "Sam's team".` (a list of every state says `No requests …`).
119
+ If the owner hasn't named the team, the name is `Your OpenRig team`, and the line says `on your OpenRig team`. Without
120
+ that roster, or with a name that can't be shown, there's no display name, and the line says `on your OpenRig team`.
121
+
122
+ Labels, names and caveats are as the roster's writer last authored them, not live observations. Presence is OpenRig's
123
+ own reading. When some rosters can't be read, or this daemon's host id isn't known yet, `rig_team` says so in
124
+ `hostedMembersNote`: hosted members, and the roster entries of the team's seats, may be missing. The seats themselves
125
+ are still listed.
@@ -24,9 +24,15 @@ a shell prompt holds them. Keep the default for a seat that may fall back to a s
24
24
 
25
25
  Runtime permissions are separate. Recipient and interactive-prompt checks still
26
26
  apply. `--raw` and `--force` do not bypass the typing guard. A deliberate
27
- `--dangerously-interact --reason` remains available at every interruption level
27
+ `--dangerously-interact --reason` remains available in every mode, `hold` included,
28
28
  and uses the existing-input check below. Direct human input remains available.
29
29
 
30
+ An ordinary `rig send` types the message inside its From/To envelope, whose first
31
+ line is `From:`, so a message that starts with `/` stays literal text rather than
32
+ running as the agent's slash command. `--raw` and `--dangerously-interact` type the
33
+ exact text, with no envelope. Claude Code (2.1.322) turns a pasted tab into four
34
+ spaces, so tabs reach a Claude Code seat as spaces.
35
+
30
36
  A message sent to a busy Codex seat joins its running turn and may redirect it.
31
37
  For separate work, create a queue row instead:
32
38
  `rig queue create --destination <seat> --summary "<one line>" --body-file <file>`.
@@ -132,6 +132,10 @@ reaction on any other message, including a person's reply in the thread, is igno
132
132
  `reaction_added` event: add both under **OAuth & Permissions** and **Event Subscriptions**, then
133
133
  reinstall the app to the workspace.
134
134
 
135
+ Human-row posts suppress link and media previews by default. Run `rig slack setup --unfurl on` to
136
+ allow Slack previews, or `rig slack setup --unfurl off` to suppress them again. The selection reaches
137
+ the running connector on its next rewire or daemon restart; it does not remove already posted previews.
138
+
135
139
  To have reactions ignored instead, run `rig slack setup --reactions off`. The agent that asked
136
140
  never hears of a reaction, including one still waiting to be retried, and a person answers an ask by
137
141
  typing a reply in its thread. Slack still sends the event and the manifest keeps it, so switching