@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
@@ -0,0 +1,348 @@
1
+ # Product-journey SDLC components
2
+
3
+ This is a reusable menu for building the smallest complete user outcome. A
4
+ mission or slice selects only the components its work needs and records them,
5
+ with any explicit edges between them, in mission/slice YAML. This is **not a mode, pipeline, topology, rig
6
+ shape, or mandatory gate set**. If no composition is present, use the light
7
+ Part A flow in `sdlc-conventions.md`.
8
+
9
+ ## The doghouse and the moon base
10
+
11
+ The **doghouse** is the actual product outcome the user asked for. A
12
+ **missing door** is an implementation that may be polished internally but
13
+ cannot perform its basic user job. A **moon base** is elaborate machinery—
14
+ often guards, abstractions, proof ceremony, security theatre, or process
15
+ scaffolding—that consumes most of the effort without making the doghouse work.
16
+
17
+ Use that disclosure ladder in this order:
18
+
19
+ 1. Name the doghouse in one sentence, without process vocabulary.
20
+ 2. Exercise its door through the public surface before admiring internals.
21
+ 3. Repair the smallest missing product seam.
22
+ 4. Consider deeper machinery only when evidence shows the layer below is
23
+ causing the visible failure.
24
+ 5. Remove or decline anything that does not protect or deliver a named user
25
+ outcome.
26
+
27
+ The same discipline works for a new mission and for rescuing one that drifted.
28
+ In a new mission, it prevents the moon base. In a rescue, it finds whether a
29
+ usable doghouse remains and separates it from machinery that should not be
30
+ carried forward.
31
+
32
+ ## Component contract
33
+
34
+ Every component below states:
35
+
36
+ - **Use when** — the evidence that admits it.
37
+ - **Skip when** — the cheapest reason not to run it.
38
+ - **Input** — what the responsible agent must actually read or observe.
39
+ - **Action** — the bounded work performed.
40
+ - **Output** — the artifact or observable result handed to the next component.
41
+ - **Stop** — the boundary that prevents the component expanding itself.
42
+ - **Next** — the normal successor; YAML may choose another explicit edge.
43
+
44
+ Component IDs are stable addresses. Their prose may improve without forcing
45
+ mission YAML to change.
46
+
47
+ ## Component catalog
48
+
49
+ ### context.fresh-start
50
+
51
+ - **Use when:** prior context may carry stale architecture, verdicts, or
52
+ implementation momentum.
53
+ - **Skip when:** the current agent can independently state the user outcome,
54
+ starting candidate, and boundaries from primary sources.
55
+ - **Input:** identity, project/mission/slice YAML, and the selected addresses.
56
+ - **Action:** load the selected context into a fresh session, or reorient the
57
+ current session from live sources. Clearing a seat requires its separate
58
+ continuity decision; selecting this component does not authorize it.
59
+ - **Output:** a one-paragraph readiness statement naming role, user outcome,
60
+ starting candidate, and boundaries.
61
+ - **Stop:** do not reconstruct old queue lore merely because it exists.
62
+ - **Next:** `intent.recover` or `journey.choose`.
63
+
64
+ ### intent.recover
65
+
66
+ - **Use when:** work already exists but may have drifted from its original user
67
+ intent.
68
+ - **Skip when:** this is greenfield work with one current, unambiguous intent.
69
+ - **Input:** the earliest authoritative intent, later mission/slice specs,
70
+ candidate code, and observed user behavior.
71
+ - **Action:** distinguish requirements from later planner elaboration; identify
72
+ the smallest still-required outcomes and explicit anti-goals.
73
+ - **Output:** a concise salvage map: keep, inspect, and not-required—never a
74
+ destructive verdict by itself.
75
+ - **Stop:** do not treat prior review intensity or sunk cost as product value.
76
+ - **Next:** `journey.probe`.
77
+
78
+ ### journey.choose
79
+
80
+ - **Use when:** a new mission has intent but no proven product path yet.
81
+ - **Skip when:** `intent.recover` already names the next smallest outcome.
82
+ - **Input:** authoritative intent and current public product surface.
83
+ - **Action:** select one end-to-end user journey whose completion provides
84
+ standalone value.
85
+ - **Output:** one observable outcome plus its smallest credible public probe.
86
+ - **Stop:** one outcome only; adjacent capability is another composition.
87
+ - **Next:** `journey.probe`.
88
+
89
+ ### journey.probe
90
+
91
+ - **Use when:** always, before product code is added or rescued.
92
+ - **Skip when:** never; scale the probe down instead.
93
+ - **Input:** the public CLI, API, UI, or other surface a real user operates.
94
+ - **Action:** run the smallest disposable end-to-end journey and inspect its
95
+ effects, not merely its exit status.
96
+ - **Output:** PASS with no code needed, or one concrete user-visible gap with
97
+ preserved evidence.
98
+ - **Stop:** a passing journey does not authorize speculative hardening.
99
+ - **Next:** finish on PASS; otherwise `depth.look-below` or
100
+ `build.minimal-gap`.
101
+
102
+ ### depth.look-below
103
+
104
+ - **Use when:** the public failure recurs, crosses a component boundary, is
105
+ contradicted by lower-level state, or a surface patch would duplicate logic
106
+ already owned below.
107
+ - **Skip when:** the failure is local, understood, and repairable at the public
108
+ seam without duplication; also skip when the only argument is “more robust.”
109
+ - **Input:** one observed public failure and the immediately responsible seam.
110
+ - **Action:** descend **one layer only**; state the causal hypothesis, name the
111
+ lower-layer observation that would falsify it, and inspect or probe that
112
+ layer.
113
+ - **Output:** one of three depth decisions:
114
+ - `LOCAL` — repair the public seam;
115
+ - `BELOW` — repair the named load-bearing seam and replay the public journey;
116
+ - `HOUSEKEEPING` — repair environment/data/topology hygiene before changing
117
+ product code.
118
+ - **Stop:** one descent per admission. A second descent requires new evidence
119
+ and a newly stated hypothesis. “While here,” generalized prevention, and
120
+ unrelated cleanup are out of scope.
121
+ - **Next:** `build.minimal-gap`, `research.before-build`, or housekeeping.
122
+
123
+ This component is the balance point. Refusing ever to look below produces
124
+ surface patches and recurring defects. Looking below without an evidence gate
125
+ produces a moon base. The aim is the first load-bearing seam, not the deepest
126
+ possible explanation.
127
+
128
+ ### research.before-build
129
+
130
+ - **Use when:** the causal hypothesis depends on an unstable external fact or
131
+ a product contract that cannot be derived locally.
132
+ - **Skip when:** source, runtime state, and the public probe already establish
133
+ the mechanism.
134
+ - **Input:** one answerable uncertainty and its decision consequence.
135
+ - **Action:** acquire only enough primary evidence to decide the implementation
136
+ shape.
137
+ - **Output:** decision, citations, and remaining uncertainty.
138
+ - **Stop:** research ends when the implementation decision is supported.
139
+ - **Next:** `build.minimal-gap`.
140
+
141
+ ### build.minimal-gap
142
+
143
+ - **Use when:** a failed journey and causal seam are established.
144
+ - **Skip when:** `journey.probe` passed or the finding is housekeeping rather
145
+ than code.
146
+ - **Input:** the user-visible gap, depth decision, existing seam, and explicit
147
+ boundaries.
148
+ - **Action:** add the shortest readable change that completes the journey,
149
+ reusing the existing product seam.
150
+ - **Output:** one clean candidate and focused evidence of the failure changing
151
+ for the stated reason.
152
+ - **Stop:** no new framework, security layer, schema, abstraction, or adjacent
153
+ verb unless the outcome cannot work without it.
154
+ - **Next:** `qa.public-journey`.
155
+
156
+ ### qa.public-journey
157
+
158
+ - **Use when:** a candidate claims a complete user outcome.
159
+ - **Skip when:** never before integration; it may be held by the builder on a
160
+ tiny change only when independence was not selected.
161
+ - **Input:** exact candidate, original public probe, and boundaries.
162
+ - **Action:** run the journey from the user surface in a disposable context;
163
+ inspect resulting state and partial-failure behavior.
164
+ - **Output:** CLEAR or one concrete mismatch.
165
+ - **Stop:** QA does not redesign the product or demand unselected ceremony.
166
+ - **Next:** `review.scope-maintainability` or back to `build.minimal-gap`.
167
+
168
+ ### review.scope-maintainability
169
+
170
+ - **Use when:** independent review is selected for the outcome.
171
+ - **Skip when:** the composition deliberately keeps a low-risk change within
172
+ the light single-agent path.
173
+ - **Input:** exact candidate, intent, public QA evidence, and base diff.
174
+ - **Action:** judge correctness, readability, necessity, reuse of existing
175
+ seams, and whether the public journey—not an internal proxy—works.
176
+ - **Output:** CLEAR or a bounded source/product finding.
177
+ - **Stop:** a reviewer may not ratchet rigor merely because prior review found
178
+ something; review the product, not the ceremony.
179
+ - **Next:** `integrate.one-outcome` or back to `build.minimal-gap`.
180
+
181
+ ### integrate.one-outcome
182
+
183
+ - **Use when:** the selected evidence for one outcome is complete.
184
+ - **Skip when:** the candidate is not clear or its base moved incompatibly.
185
+ - **Input:** exact candidate identity and selected QA/review results.
186
+ - **Action:** integrate the smallest coherent outcome and keep unrelated
187
+ candidates separate.
188
+ - **Output:** clean canonical source containing one additional user outcome.
189
+ - **Stop:** do not batch unrelated salvage because it shares a release label.
190
+ - **Next:** `runtime.adopt` or the next `journey.choose`.
191
+
192
+ ### runtime.adopt
193
+
194
+ - **Use when:** the outcome needs installed-runtime or migration proof.
195
+ - **Skip when:** source-level proof is sufficient and no live behavior changed.
196
+ - **Input:** clean canonical commit, rollback boundary, and runtime SOP.
197
+ - **Action:** build/package/install the exact commit, switch atomically, and
198
+ verify health plus continuity.
199
+ - **Output:** exact live version and preserved rollback point.
200
+ - **Stop:** adoption is deployment, not permission to change topology or data.
201
+ - **Next:** `qa.installed-smoke`.
202
+
203
+ ### qa.installed-smoke
204
+
205
+ - **Use when:** `runtime.adopt` ran or packaging/path resolution is part of the
206
+ product claim.
207
+ - **Skip when:** no installed artifact or runtime behavior is in scope.
208
+ - **Input:** exact live version and disposable public journey.
209
+ - **Action:** exercise the installed command path and verify effects and
210
+ cleanup.
211
+ - **Output:** installed-runtime CLEAR or one concrete mismatch.
212
+ - **Stop:** do not convert a smoke test into fleet-wide monitoring.
213
+ - **Next:** finish the outcome or return to `build.minimal-gap`.
214
+
215
+ ## Composition rules
216
+
217
+ 1. `project.yaml` may declare project defaults; `mission.yaml` may select the
218
+ catalog and override those defaults for the mission. Some file in that chain
219
+ must name the catalog: there is no default catalog.
220
+ 2. `slice.yaml` selects or overrides the components for that slice.
221
+ 3. Edges are explicit data. Array order is presentation, not dependency.
222
+ 4. Select the fewest components that honestly fit the work.
223
+ 5. A component may be held by the same seat as its neighbor unless independence
224
+ is an intentional property of the composition.
225
+ 6. YAML describes the work; it is not an enforcement engine and creates no
226
+ automatic gates.
227
+
228
+ Repository-address example:
229
+
230
+ ```yaml
231
+ sdlc:
232
+ catalog:
233
+ root: repository
234
+ address: docs/reference/product-journey-sdlc.md#component-catalog
235
+ components:
236
+ - id: journey.choose
237
+ owner: planner
238
+ - id: journey.probe
239
+ owner: qa
240
+ - id: depth.look-below
241
+ owner: builder
242
+ admission: evidence-gated
243
+ - id: build.minimal-gap
244
+ owner: builder
245
+ - id: qa.public-journey
246
+ owner: qa
247
+ edges:
248
+ - from: journey.choose
249
+ to: journey.probe
250
+ - from: journey.probe
251
+ to: depth.look-below
252
+ when: public failure needs causal discrimination
253
+ - from: journey.probe
254
+ to: build.minimal-gap
255
+ when: local gap is already established
256
+ - from: depth.look-below
257
+ to: build.minimal-gap
258
+ when: decision is LOCAL or BELOW
259
+ - from: build.minimal-gap
260
+ to: qa.public-journey
261
+ ```
262
+
263
+ Resolve repository addresses from `git rev-parse --show-toplevel`. Use the
264
+ `loading-addressable-markdown` skill for `path#h2-slug` and
265
+ `path#h2-slug/h3-slug` addresses outside the context library.
266
+
267
+ ## Example compositions
268
+
269
+ ### Greenfield product journey
270
+
271
+ `context.fresh-start → journey.choose → journey.probe →
272
+ build.minimal-gap → qa.public-journey → review.scope-maintainability →
273
+ integrate.one-outcome`
274
+
275
+ Add `depth.look-below` only when the probe meets its admission rule. A new
276
+ mission does not need rescue archaeology.
277
+
278
+ ### Drifted-mission rescue
279
+
280
+ `context.fresh-start → intent.recover → journey.probe →
281
+ depth.look-below? → build.minimal-gap → qa.public-journey →
282
+ review.scope-maintainability → integrate.one-outcome`
283
+
284
+ The question is not “which old commits pass review?” It is “which required
285
+ user outcome works, what prevents the next one, and how little code completes
286
+ it?”
287
+
288
+ ### Recurring cross-layer defect
289
+
290
+ `journey.probe → depth.look-below → research.before-build? →
291
+ build.minimal-gap → qa.public-journey → qa.installed-smoke?`
292
+
293
+ The recurrence admits one causal descent. It does not authorize a general
294
+ platform rewrite.
295
+
296
+ ## Resolve the selected path
297
+
298
+ On a fresh start, restore, or new assignment:
299
+
300
+ 1. Derive identity with `rig whoami --json`. Resolve the project's work root from
301
+ the assignment/workspace binding; `rig config get workspace.root` locates the
302
+ configured work tree, which may differ from the seat's code checkout.
303
+ 2. Read `project.yaml` and its project-authority context. Follow its mission root
304
+ to the assigned `mission.yaml`, then its composition ref to the active
305
+ `slice.yaml`. Read the current intent and acceptance files those records name.
306
+ Do not choose a mission from an old onboarding packet or a folder's recency.
307
+ 3. Resolve SDLC selection in order: project defaults, mission defaults, then the
308
+ active slice's explicit selection/override. A narrower explicit selection
309
+ replaces the broader component list and its edges; it does not append every
310
+ ancestor's gates. Follow an addressed wave map for its membership, review model and
311
+ boundary; an explicit named-slice exception applies only to that slice.
312
+ 4. Read only the selected components and additional addressed context. Repository
313
+ references resolve from the Git root of the repository that holds the YAML
314
+ declaring the catalog, which may not be the code checkout; installed references from
315
+ `$OPENRIG_HOME/reference`; context-pack refs use `rig context get`. For a
316
+ Markdown `#section` address, use `loading-addressable-markdown` rather than
317
+ loading an entire unrelated manual. Expand the investigation when the task's
318
+ evidence requires it: the address map is a starting point, not a search limit.
319
+ For work running as a workflow instance, `rig workflow guidance <instance>`
320
+ reads the effective selection, the selected catalog sections and the original
321
+ intent; add `--component <id>` or `--full` to expand.
322
+ 5. State briefly the user outcome, current role, candidate, selected path and
323
+ next completion boundary. No composition means the light Part A flow in
324
+ `sdlc-conventions.md#a1-the-flow-in-one-pass`. Do not author a
325
+ composition merely to have one, or mint QA, guard, review, lock or proof gates
326
+ because those roles exist. On a tiny change the builder can verify the whole
327
+ outcome; independent review happens only when selected.
328
+
329
+ A missing referenced file is a named gap, not evidence of no selection. Inspect
330
+ or ask the owner to resolve a consequential ambiguity; do not silently fall back
331
+ from an explicitly selected rigorous path. An owner can explicitly amend the
332
+ selection for named work; record that decision at the work's authority. Current
333
+ command/source reality outranks stale YAML as a factual claim: record the
334
+ mismatch, re-derive, and preserve the distinction between scope and observed state.
335
+
336
+ Startup overlays, role guidance, available seats, old mode names and historical
337
+ packets cannot add steps to this selection. They supply capabilities. Skills load
338
+ when the selected work calls for them; there is no quiz, per-file ACK gate or
339
+ universal preloading requirement.
340
+
341
+ ## Blank-agent start
342
+
343
+ Follow **Resolve the selected path** above before choosing work. For an authored
344
+ wave, build and verify each slice with its local discipline and integrate serially
345
+ where required; request independent review once when the authored wave boundary
346
+ arrives. Do not start per-slice reviews while waiting. A separately selected
347
+ rigorous slice retains its named checks. Review findings justify bounded repairs,
348
+ not an automatic increase in process for the next round.
@@ -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