@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
@@ -13,9 +13,9 @@ import { SEAT_SKILLS_BOOTSTRAP_BLOCK_ID, ensureSeatSkillPlugin, followSeatSkills
13
13
  import { NativePermissionStore } from "./native-permission-store.js";
14
14
  import { readSeatClaudeMcp } from "./claude-mcp.js";
15
15
  import { isLaunchWrapperRuntime, readSeatLaunchWrapper } from "./launch-wrapper.js";
16
- import { resolvePermissionPolicyAttachment } from "./permission-policy/policy-ref.js";
16
+ import { resolvePersistedRestorePosture } from "./permission-policy/persisted-restore-posture.js";
17
17
  import { claudeResumeRotation } from "./session-registry.js";
18
- import { NOTHING_STOPPED_LAUNCH_CODES } from "./node-launcher.js";
18
+ import { NO_TERMINAL_LAUNCH_CODES, NOTHING_STOPPED_LAUNCH_CODES } from "./node-launcher.js";
19
19
  import { seatRuntimeHome } from "./seat-runtime-home.js";
20
20
  import { readFreshOccupantRelations } from "./fresh-occupant-relation.js";
21
21
  import { assessNativeResumeProbe } from "./native-resume-probe.js";
@@ -279,6 +279,9 @@ export class RestoreOrchestrator {
279
279
  servicesRecord: this.rigRepo.getServicesRecord(rigId),
280
280
  freshLogicalIds: opts?.freshLogicalIds,
281
281
  currentRuntimes: Object.fromEntries((this.rigRepo.getRig(rigId)?.nodes ?? []).map((current) => [current.logicalId, current.runtime])),
282
+ currentCodexProfiles: Object.fromEntries((this.rigRepo.getRig(rigId)?.nodes ?? [])
283
+ .filter((current) => current.codexConfigProfile !== undefined)
284
+ .map((current) => [current.logicalId, current.codexConfigProfile])),
282
285
  });
283
286
  const topology = resolveSnapshotRestoreTopology(snapshot.data);
284
287
  // A required startup file that is missing holds only its own seat. That seat isn't launched, because it would start
@@ -495,10 +498,14 @@ export class RestoreOrchestrator {
495
498
  const nonTargetNodes = opts.nonTargetMode === "detach_and_hold"
496
499
  ? allNodes.filter((node) => !targetNodes.some((target) => target.id === node.id))
497
500
  : [];
501
+ // Targets are written to, so they take lifecycle leases. A non-target is only recorded (a dead session marked
502
+ // detached, node.held), so it takes a custody lease in the same sorted pass: a paused or draft-aware seat isn't
503
+ // refused, and its pane, draft, mode and binding stay as they are.
498
504
  const guard = this.tmuxAdapter.deliveryGuard;
499
- const guardedIds = [...targetNodes, ...nonTargetNodes].map(node => node.id);
500
- if (guard && guardedIds.some(id => !guard.ownsLifecycle(id))) {
501
- return guard.lifecycle(guardedIds, () => this.launchNodeTargets(rigId, logicalIds, opts));
505
+ const targetIds = targetNodes.map(node => node.id);
506
+ const recordedIds = nonTargetNodes.map(node => node.id);
507
+ if (guard && (targetIds.some(id => !guard.ownsLifecycle(id)) || recordedIds.some(id => !guard.ownsCustody(id)))) {
508
+ return guard.lifecycle(targetIds, () => this.launchNodeTargets(rigId, logicalIds, opts), recordedIds);
502
509
  }
503
510
  // Per-target tmux-liveness classification (runtime truth, fail-closed)
504
511
  const launched = [];
@@ -891,12 +898,14 @@ export class RestoreOrchestrator {
891
898
  const nodeId = node.id;
892
899
  const selectedHistory = opts?.selectedHistory;
893
900
  if (selectedHistory && (!liveNode || selectedHistory.nodeId !== nodeId || !selectedHistory.beforeEffect())) {
894
- return { nodeId, logicalId: node.logicalId, status: "failed", error: "The selected seat or history changed before launch." };
901
+ return { nodeId, logicalId: node.logicalId, status: "failed", error: "The selected seat or history changed before launch.", notStarted: true };
895
902
  }
903
+ // A selected restore that returns before its launch says so, as a known fact for the startup that selected it.
904
+ const notStarted = selectedHistory ? { notStarted: true } : {};
896
905
  // A seat joined with `rig attach` as an external CLI keeps its attachment: launching here would replace it.
897
906
  const external = this.sessionRegistry.getBindingForNode(nodeId);
898
907
  if (external && seatProcessOwner(resolveSeatKind(external.attachmentType)) === "external") {
899
- return { nodeId, logicalId: node.logicalId, status: "left_attached", error: leftAttachedReason(external.externalSessionName ?? node.logicalId) };
908
+ return { nodeId, logicalId: node.logicalId, status: "left_attached", error: leftAttachedReason(external.externalSessionName ?? node.logicalId), ...notStarted };
900
909
  }
901
910
  // OPR.0.5.7.1 (bought ordering blocker, baton 0efd154d): D1 present-map
902
911
  // ambiguity must be DETECTED before any continuity_state short-circuit —
@@ -906,7 +915,7 @@ export class RestoreOrchestrator {
906
915
  // fall through to absent-history classification and the continuity check.
907
916
  const selectedRows = selectedHistory ? data.sessions.filter(row => row.nodeId === nodeId && row.id === selectedHistory.historySessionId) : [];
908
917
  if (selectedHistory && selectedRows.length !== 1) {
909
- return { nodeId, logicalId: node.logicalId, status: "failed", error: "The selected history is no longer in this snapshot." };
918
+ return { nodeId, logicalId: node.logicalId, status: "failed", error: "The selected history is no longer in this snapshot.", notStarted: true };
910
919
  }
911
920
  const occupantResolution = selectedHistory
912
921
  ? { kind: "resolved", session: selectedRows[0] }
@@ -941,7 +950,7 @@ export class RestoreOrchestrator {
941
950
  }
942
951
  const runtimeError = restoreRuntimeCompatibilityError(liveNode ? liveNode.runtime : node.runtime, data.nodeStartupContext?.[nodeId]?.runtime);
943
952
  if (runtimeError) {
944
- return { nodeId, logicalId: node.logicalId, status: "awaiting-decision", error: runtimeError };
953
+ return { nodeId, logicalId: node.logicalId, status: "awaiting-decision", error: runtimeError, ...notStarted };
945
954
  }
946
955
  // Classify absent-seat history before the continuity short-circuit: a
947
956
  // restoring seat must not report fresh while its forecast awaits a decision.
@@ -957,7 +966,7 @@ export class RestoreOrchestrator {
957
966
  if (continuityRow) {
958
967
  if (continuityRow.status === "restoring") {
959
968
  if (selectedHistory)
960
- return { nodeId, logicalId: node.logicalId, status: "failed", error: "Continuity recovery already owns this seat." };
969
+ return { nodeId, logicalId: node.logicalId, status: "failed", error: "Continuity recovery already owns this seat.", notStarted: true };
961
970
  if (opts?.automaticReplacements?.some(target => target.nodeId === nodeId)) {
962
971
  return { nodeId, logicalId: node.logicalId, status: "awaiting-decision", error: "Continuity recovery owns this seat; its startup occupant was left unchanged." };
963
972
  }
@@ -1032,7 +1041,7 @@ export class RestoreOrchestrator {
1032
1041
  // Clear stale state so NodeLauncher doesn't see already_bound. A kept pane keeps its binding through the takeover: the
1033
1042
  // delivery guard resolves the pane through it.
1034
1043
  if (selectedHistory && !selectedHistory.beforeEffect()) {
1035
- return { nodeId, logicalId: node.logicalId, status: "failed", error: "The selected seat or history changed before launch." };
1044
+ return { nodeId, logicalId: node.logicalId, status: "failed", error: "The selected seat or history changed before launch.", notStarted: true };
1036
1045
  }
1037
1046
  this.clearStaleState(nodeId, rigId, { keepBinding: keptPane !== null });
1038
1047
  this.tmuxAdapter.deliveryGuard?.rebindLifecycle(nodeId);
@@ -1183,14 +1192,19 @@ export class RestoreOrchestrator {
1183
1192
  });
1184
1193
  if (!launchResult.ok) {
1185
1194
  // Launch failed — restore prior state (compensating action)
1186
- if (!selectedHistory || (launchResult.code !== "selection_changed_after_creation" && selectedHistory.beforeRegistration()))
1195
+ const compensate = !selectedHistory || (launchResult.code !== "selection_changed_after_creation" && selectedHistory.beforeRegistration());
1196
+ if (compensate)
1187
1197
  this.restoreNodeState(nodeId, priorState);
1198
+ // Known compensation needs a failure that left no terminal: one before its creation, or tmux reporting none was
1199
+ // created. An unconfirmed creation, a failed write or a later failure isn't known to have left nothing.
1200
+ const compensated = compensate && NO_TERMINAL_LAUNCH_CODES.has(launchResult.code);
1188
1201
  return {
1189
1202
  nodeId,
1190
1203
  logicalId: node.logicalId,
1191
1204
  status: selectedHistory && launchResult.code === "selection_changed_after_creation" ? "attention_required" : "failed",
1192
1205
  error: launchResult.message,
1193
1206
  ...(keptPane && NOTHING_STOPPED_LAUNCH_CODES.has(launchResult.code) ? { nothingStopped: true } : {}),
1207
+ ...(selectedHistory && compensated ? { compensated: true } : {}),
1194
1208
  };
1195
1209
  }
1196
1210
  // Launch succeeded — do NOT compensate on post-launch failures
@@ -1199,11 +1213,14 @@ export class RestoreOrchestrator {
1199
1213
  if (launchResult.warnings?.length) {
1200
1214
  warnings?.push(...launchResult.warnings);
1201
1215
  }
1202
- const restored = await this.postLaunchRestore(entry, rigId, data, launchResult.sessionName, launchResult, { ...opts, ...(claudeExecutable ? { claudeExecutable } : {}), ...(claudeLaunch ? { claudeLaunch } : {}) }, warnings, priorState, seatRehydration, resumeSession, activityHookGaps, restoredSkillCatalog);
1216
+ // A selected launch's own blank rolled back after the shell started (postLaunchRestore has many return points).
1217
+ const compensation = { ran: false };
1218
+ const restored = await this.postLaunchRestore(entry, rigId, data, launchResult.sessionName, launchResult, { ...opts, ...(claudeExecutable ? { claudeExecutable } : {}), ...(claudeLaunch ? { claudeLaunch } : {}), compensation }, warnings, priorState, seatRehydration, resumeSession, activityHookGaps, restoredSkillCatalog);
1203
1219
  const checked = { ...this.checkRestoredGuidance(restored, entry.node, rigId, data, warnings),
1204
1220
  ...(activityHookGaps.length > 0 ? { restoreGaps: activityHookGaps } : {}),
1205
1221
  ...(keptPane ? { launchStarted: true } : {}) };
1206
- return selectedHistory ? { ...checked, sourceSessionId: selectedHistory.historySessionId, resultSessionId: launchResult.session.id } : checked;
1222
+ return selectedHistory ? { ...checked, sourceSessionId: selectedHistory.historySessionId, resultSessionId: launchResult.session.id,
1223
+ ...(compensation.ran ? { compensated: true } : {}) } : checked;
1207
1224
  }
1208
1225
  async claudeContinuationExecutable(pane, keepLaunch = false, session) {
1209
1226
  const native = await verifyClaudePaneRuntime({ target: pane, tmux: this.tmuxAdapter,
@@ -1428,15 +1445,17 @@ export class RestoreOrchestrator {
1428
1445
  * unknown-but-possibly-valid continuity. */
1429
1446
  async rollbackToZeroSession(nodeId, sessionName, launchedSessionId, priorState, assertCurrent, keepPane = false) {
1430
1447
  if (assertCurrent && !assertCurrent())
1431
- return false;
1448
+ return { rolledBack: false, terminalStopped: false };
1449
+ // Whether tmux confirmed the stop: best effort here, and a fact for a caller that needs a known compensation.
1450
+ let terminalStopped = false;
1432
1451
  if (!keepPane) {
1433
1452
  try {
1434
- await this.tmuxAdapter.killSession(sessionName);
1453
+ terminalStopped = (await this.tmuxAdapter.killSession(sessionName)).ok === true;
1435
1454
  }
1436
1455
  catch { /* best-effort — the row + projection rollback below is the source of truth */ }
1437
1456
  }
1438
1457
  if (assertCurrent && !assertCurrent())
1439
- return false;
1458
+ return { rolledBack: false, terminalStopped };
1440
1459
  if (launchedSessionId) {
1441
1460
  try {
1442
1461
  this.sessionRegistry.updateStatus(launchedSessionId, "superseded");
@@ -1447,7 +1466,7 @@ export class RestoreOrchestrator {
1447
1466
  // Pane takeover already ended the predecessor; keep its retired status.
1448
1467
  this.restoreNodeState(nodeId, keepPane ? { ...priorState, sessions: [] } : priorState);
1449
1468
  }
1450
- return true;
1469
+ return { rolledBack: true, terminalStopped };
1451
1470
  }
1452
1471
  /** Retire only the provisional session created by this restore attempt. The prior
1453
1472
  * binding must stay cleared while a replacement launch is handed off. */
@@ -1534,7 +1553,13 @@ export class RestoreOrchestrator {
1534
1553
  // row ordering (cite site 2 of 2; "latest = max id" was the incident's
1535
1554
  // defect: a superseded row with a newer ULID defeated the real occupant).
1536
1555
  const selected = opts?.selectedHistory;
1537
- const rollbackOwnBlank = async () => this.rollbackToZeroSession(node.id, sessionName, launchResult?.session.id, priorState, selected ? () => selected.beforeNative(launchResult?.session.id, launchResult?.binding.id) : undefined, opts?.keepPane);
1556
+ const rollbackOwnBlank = async () => {
1557
+ const { rolledBack, terminalStopped } = await this.rollbackToZeroSession(node.id, sessionName, launchResult?.session.id, priorState, selected ? () => selected.beforeNative(launchResult?.session.id, launchResult?.binding.id) : undefined, opts?.keepPane);
1558
+ // Known compensation: tmux confirmed the terminal stopped, and the earlier state was put back.
1559
+ if (rolledBack && terminalStopped && priorState && !opts?.keepPane && opts?.compensation)
1560
+ opts.compensation.ran = true;
1561
+ return rolledBack;
1562
+ };
1538
1563
  const changedDuringRollback = () => ({ nodeId: node.id, logicalId: node.logicalId,
1539
1564
  status: "attention_required", error: "The selected terminal or source changed during cleanup. Its current owner was preserved; inspect the partial launch before retrying." });
1540
1565
  const selectedRows = selected ? data.sessions.filter(row => row.nodeId === node.id && row.id === selected.historySessionId) : [];
@@ -1602,7 +1627,8 @@ export class RestoreOrchestrator {
1602
1627
  // runtime and write Claude hooks into another agent's working folder
1603
1628
  // (with a saved context, the compatibility gate already stops that
1604
1629
  // mismatch), and a pod-aware agent must get no write from this recovery
1605
- // at all — it still ends at the "Harness not started" gate, unchanged.
1630
+ // at all. With no saved context and a resume token, restore tries its resume
1631
+ // on an empty plan (replayCtx below), still without this recovery.
1606
1632
  const activityAdapter = opts?.adapters?.["claude-code"];
1607
1633
  const recoveryRuntime = startupCtx?.runtime
1608
1634
  ?? (!isPodAware && liveRuntime === node.runtime ? node.runtime : null);
@@ -1847,6 +1873,20 @@ export class RestoreOrchestrator {
1847
1873
  const replayContained = resumeRequested && !!resumeToken;
1848
1874
  const startupRuntime = startupCtx?.runtime ?? node.runtime ?? null;
1849
1875
  const startupAdapter = seatAdapter(opts?.adapters, startupRuntime, session?.communityHarness);
1876
+ // A seat that only ever resumed or was attached (attach, adopt, reconcile-session, a set resume token) has a resume
1877
+ // token but no saved startup context. A resume replays none anyway (replayContained), so restore tries the resume
1878
+ // with an empty plan and names the gap, rather than stopping on data the resume doesn't use. Guidance, activity hooks
1879
+ // and the guidance record read the saved context only, so no guidance is put back and no startup context is written
1880
+ // for this seat; the adapter's ordinary bootstrap and the seat's existing skill restoration still run, as on any resume.
1881
+ const resumeWithoutContext = isPodAware && !startupCtx && replayContained && startupRuntime !== null && startupRuntime !== "terminal";
1882
+ // A fresh seat launch reads the saved startup context and refuses without one, so a rollback names none for this seat.
1883
+ const noContextFresh = "This seat has no saved startup context, and no command records one for it yet, so no fresh start is offered here.";
1884
+ const replayCtx = startupCtx
1885
+ ?? (resumeWithoutContext ? { runtime: startupRuntime, projectionEntries: [], resolvedStartupFiles: [], startupActions: [] } : null);
1886
+ if (resumeWithoutContext && startupAdapter && launchResult) {
1887
+ warnings?.push(`Restore: ${node.logicalId}: no saved startup context, so restore tries its saved conversation without replaying a saved startup plan.`);
1888
+ activityHookGaps?.push("startup_context: no saved startup context; restore tried the saved conversation without replaying a saved startup plan.");
1889
+ }
1850
1890
  // New compute has no retained context filesystem. Restore the saved file selection, never conversation actions.
1851
1891
  const restoreEnvironmentContext = replayContained && !!startupAdapter?.environment && !!data.environmentBindingsByNode?.[node.id];
1852
1892
  // A new pod-aware agent needs a startup context to run StartupOrchestrator.
@@ -1857,12 +1897,13 @@ export class RestoreOrchestrator {
1857
1897
  && baseStatus !== "resumed"
1858
1898
  && startupRuntime !== null
1859
1899
  && startupRuntime !== "terminal"
1860
- && (!startupCtx || !startupAdapter)) {
1900
+ && (!replayCtx || !startupAdapter)) {
1861
1901
  // A deliberate fresh launch with no captured startup context is the
1862
1902
  // never-occupied-seat case from #49. The restore launcher has already
1863
1903
  // created a shell, so remove that provisional session before handing the
1864
- // seat to the normal recipe-backed launch path. Resume requests stay on
1865
- // the fail-closed path below: no durable context means no safe resume.
1904
+ // seat to the normal recipe-backed launch path. A resume with a token
1905
+ // goes on with an empty plan (replayCtx above); a resume without one stays
1906
+ // on the fail-closed path below: no durable context means no safe resume.
1866
1907
  if (!startupCtx && !resumeRequested && this.freshLaunch) {
1867
1908
  // Keep the usable provisional shell when the callback exists but its
1868
1909
  // recipe/member inputs are unavailable. A callback being present alone
@@ -1903,22 +1944,22 @@ export class RestoreOrchestrator {
1903
1944
  };
1904
1945
  }
1905
1946
  }
1906
- const cause = startupCtx ? `no ${startupRuntime} runtime adapter` : "no startup context";
1947
+ const cause = replayCtx ? `no ${startupRuntime} runtime adapter` : "no startup context";
1907
1948
  const error = `Harness not started: ${cause} for ${node.logicalId}.`;
1908
1949
  warnings?.push(`Restore: ${error}`);
1909
1950
  return { nodeId: node.id, logicalId: node.logicalId, status: "attention_required", error };
1910
1951
  }
1911
1952
  // Attempt restore-safe startup replay if context available
1912
- if (data.nodeStartupContext && opts?.adapters && launchResult) {
1913
- if (startupCtx) {
1914
- const adapter = seatAdapter(opts.adapters, startupCtx.runtime, session?.communityHarness);
1953
+ if ((data.nodeStartupContext || replayCtx) && opts?.adapters && launchResult) {
1954
+ if (replayCtx) {
1955
+ const adapter = seatAdapter(opts.adapters, replayCtx.runtime, session?.communityHarness);
1915
1956
  if (adapter) {
1916
1957
  // Prefilter: check which files/entries still exist
1917
1958
  const existsFn = opts.fsOps?.exists ?? (() => true);
1918
- const sourceEntries = replayContained && !restoreEnvironmentContext ? [] : startupCtx.projectionEntries.map((e) => reanchorShippedProjectionEntry(e, undefined, existsFn));
1959
+ const sourceEntries = replayContained && !restoreEnvironmentContext ? [] : replayCtx.projectionEntries.map((e) => reanchorShippedProjectionEntry(e, undefined, existsFn));
1919
1960
  // #261: recognized built-in startup files follow the running install.
1920
- const sourceFiles = replayContained && !restoreEnvironmentContext ? launchGuidance ?? [] : withContextEntryFloor(startupCtx.resolvedStartupFiles.map((f) => reanchorBuiltinStartupFile(f, undefined, undefined, existsFn)));
1921
- const sourceActions = replayContained ? [] : startupCtx.startupActions;
1961
+ const sourceFiles = replayContained && !restoreEnvironmentContext ? launchGuidance ?? [] : withContextEntryFloor(replayCtx.resolvedStartupFiles.map((f) => reanchorBuiltinStartupFile(f, undefined, undefined, existsFn)));
1962
+ const sourceActions = replayContained ? [] : replayCtx.startupActions;
1922
1963
  const filteredEntries = sourceEntries.filter((e) => {
1923
1964
  if (!existsFn(e.absolutePath)) {
1924
1965
  warnings?.push(`Restore: missing projection entry ${e.absolutePath} (skipped)`);
@@ -1954,7 +1995,7 @@ export class RestoreOrchestrator {
1954
1995
  // it is, an edited one is named, and a missing one whose recorded source is gone or has changed is not put back
1955
1996
  // with today's bytes. Only the rest is projected or installed. Nothing is re-resolved from today's spec. Native
1956
1997
  // resume replays nothing (sourceEntries is empty). The whole selection stays in the saved startup context.
1957
- const seatSkills = (startupCtx.runtime === "claude-code" || startupCtx.runtime === "codex") && !replayContained ? seatSkillPathsForNode(this.db, node.id) : undefined;
1998
+ const seatSkills = (replayCtx.runtime === "claude-code" || replayCtx.runtime === "codex") && !replayContained ? seatSkillPathsForNode(this.db, node.id) : undefined;
1958
1999
  let replaySkip;
1959
2000
  if (seatSkills) {
1960
2001
  const replay = seatSkillReplay({ entries: filteredEntries, files: filteredFiles, paths: seatSkills,
@@ -1964,7 +2005,7 @@ export class RestoreOrchestrator {
1964
2005
  }
1965
2006
  // Build fresh projection plan (all safe_projection; replaySkip says which seat skills are left alone)
1966
2007
  const plan = {
1967
- runtime: startupCtx.runtime,
2008
+ runtime: replayCtx.runtime,
1968
2009
  cwd: launchCwd,
1969
2010
  entries: filteredEntries.map((e) => ({
1970
2011
  ...e,
@@ -1980,7 +2021,7 @@ export class RestoreOrchestrator {
1980
2021
  const binding = {
1981
2022
  ...launchResult.binding,
1982
2023
  // #875: the guidance file this seat's launch recorded; an older snapshot recorded none, so its file stays the rule's.
1983
- guidanceFile: startupCtx.guidanceFile ?? null,
2024
+ guidanceFile: replayCtx.guidanceFile ?? null,
1984
2025
  // #3039: the resumed launch carries the guidance chosen above, so startup doesn't ask again and the adapter queues it.
1985
2026
  ...(launchGuidance ? { guidanceLaunchInstructions: true } : {}),
1986
2027
  ...(data.environmentBindingsByNode?.[node.id] ? { environmentRestore: data.environmentBindingsByNode[node.id] } : {}),
@@ -2051,7 +2092,9 @@ export class RestoreOrchestrator {
2051
2092
  nodeId: node.id,
2052
2093
  logicalId: node.logicalId,
2053
2094
  status: "awaiting-decision",
2054
- error: `Original session unresumable: resume attempted but the runtime reported fresh continuity. The blank session was rolled back; no session is running. If that degradation is acceptable, start only this seat fresh: ${this.freshSeatCommand(rigId, data, node.logicalId)}.`,
2095
+ error: resumeWithoutContext
2096
+ ? `Original session unresumable: resume attempted but the runtime reported fresh continuity. The blank session was rolled back; no session is running. ${noContextFresh}`
2097
+ : `Original session unresumable: resume attempted but the runtime reported fresh continuity. The blank session was rolled back; no session is running. If that degradation is acceptable, start only this seat fresh: ${this.freshSeatCommand(rigId, data, node.logicalId)}.`,
2055
2098
  };
2056
2099
  }
2057
2100
  const finalStatus = (isPodAware && resumeRequested)
@@ -2096,7 +2139,9 @@ export class RestoreOrchestrator {
2096
2139
  nodeId: node.id,
2097
2140
  logicalId: node.logicalId,
2098
2141
  status: "awaiting-decision",
2099
- error: `Original session unresumable: ${startupResult.errors.join("; ")}. The blank session was rolled back; no session is running. OpenRig's records can't tell whether this conversation was ever used. If you know this seat was never used, nothing is lost by starting only this seat fresh, ${steps}. Otherwise restore the original session manually.`,
2142
+ error: resumeWithoutContext
2143
+ ? `Original session unresumable: ${startupResult.errors.join("; ")}. The blank session was rolled back; no session is running. ${noContextFresh} Restore the original session manually.`
2144
+ : `Original session unresumable: ${startupResult.errors.join("; ")}. The blank session was rolled back; no session is running. OpenRig's records can't tell whether this conversation was ever used. If you know this seat was never used, nothing is lost by starting only this seat fresh, ${steps}. Otherwise restore the original session manually.`,
2100
2145
  };
2101
2146
  }
2102
2147
  return {
@@ -2250,70 +2295,13 @@ export class RestoreOrchestrator {
2250
2295
  * 3. Nothing attached (or a resolution error) → EXPLICIT "floor" — the locked
2251
2296
  * minimum-floor absence contract; never undefined/env-delegation for managed seats.
2252
2297
  */
2253
- /** Pure, read-only policy resolution shared with selected startup review. */
2298
+ /** Pure, read-only policy resolution shared with selected startup review and node-inventory display. */
2254
2299
  resolveRestorePosture(nodeId, rigId) {
2255
- try {
2256
- const prov = this.rigRepo.getNodePolicyProvenance(nodeId);
2257
- if (prov) {
2258
- // Guard-F3: the resolver swallows read errors internally (advisory floor), so the
2259
- // fallback must be decided BEFORE re-resolution: probe readability of the persisted
2260
- // resolvedTarget first — readable → REOPEN + re-derive (the ruling); unreadable /
2261
- // invalid → the PERSISTED posture carries (restart-stable), never a silent floor.
2262
- if (prov.origin === "custom" && prov.declaringDir && prov.resolvedTarget) {
2263
- const ref = prov.nodeRef ?? this.rigRepo.getRigPermissionPolicy(rigId);
2264
- if (ref) {
2265
- let content = null;
2266
- try {
2267
- content = readFileSync(prov.resolvedTarget, "utf-8");
2268
- }
2269
- catch {
2270
- content = null;
2271
- }
2272
- if (content !== null) {
2273
- const body = content;
2274
- const rederived = resolvePermissionPolicyAttachment(ref, prov.declaringDir, {
2275
- readFile: () => body,
2276
- });
2277
- // Guard round-2: trust the re-derivation ONLY when content resolution
2278
- // genuinely succeeded with usable semantics (parse OK + valid flag
2279
- // contract) — readable-but-malformed/unusable carries the PERSISTED
2280
- // posture, exactly like unreadable. Advisory only; no enforcement.
2281
- if (rederived.contentResolved)
2282
- return rederived.launchPosture;
2283
- }
2284
- }
2285
- }
2286
- return prov.launchPosture;
2287
- }
2288
- // Guard-F1: no node provenance (organic claim/self-attach seats) → the PERSISTED
2289
- // rig-level attachment is authoritative — same readable-probe discipline; NEVER
2290
- // resolve the raw relative rig ref against this process's cwd.
2291
- const rigProv = this.rigRepo.getRigPolicyProvenance(rigId);
2292
- if (rigProv) {
2293
- if (rigProv.origin === "custom" && rigProv.declaringDir && rigProv.resolvedTarget && rigProv.rigRef) {
2294
- let content = null;
2295
- try {
2296
- content = readFileSync(rigProv.resolvedTarget, "utf-8");
2297
- }
2298
- catch {
2299
- content = null;
2300
- }
2301
- if (content !== null) {
2302
- const body = content;
2303
- const rederived = resolvePermissionPolicyAttachment(rigProv.rigRef, rigProv.declaringDir, {
2304
- readFile: () => body,
2305
- });
2306
- if (rederived.contentResolved)
2307
- return rederived.launchPosture; // same rule as node-level
2308
- }
2309
- }
2310
- return rigProv.launchPosture;
2311
- }
2312
- }
2313
- catch { /* posture resolution must never block a restore */ }
2314
- // R2 terminal (954d97a0): NO provenance anywhere (and the error path) = the locked
2315
- // minimum floor, explicitly — never undefined (which would delegate to ambient YOLO).
2316
- return "floor";
2300
+ return resolvePersistedRestorePosture({
2301
+ getNodeProvenance: () => this.rigRepo.getNodePolicyProvenance(nodeId),
2302
+ getFallbackRigRef: () => this.rigRepo.getRigPermissionPolicy(rigId),
2303
+ getRigProvenance: () => this.rigRepo.getRigPolicyProvenance(rigId),
2304
+ });
2317
2305
  }
2318
2306
  /** The live seat's current model: `rig seat set-model` saves it on the live node after the snapshot, and every
2319
2307
  * managed resume reads it at call time, so an older snapshot can't bring back the model it replaced. Found by logical
@@ -2461,6 +2449,8 @@ export class RestoreOrchestrator {
2461
2449
  if (this.piResume?.canResume(resumeType, resumeToken)) {
2462
2450
  const result = await this.piResume.resume(sessionName, resumeType, resumeToken, cwd, model, resolvedPosture, effort, ...(launchWrapper?.length ? [launchWrapper] : []));
2463
2451
  if (result.ok) {
2452
+ for (const note of result.warnings ?? [])
2453
+ warnings?.push(`${sessionName}: ${note}`);
2464
2454
  if (result.appliedLaunch && launchGeneration)
2465
2455
  this.appliedLaunchStore.recordGeneration(launchGeneration, result.appliedLaunch);
2466
2456
  return { kind: "resumed" };