@openrig/cli 0.3.0 → 0.3.2

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 (482) hide show
  1. package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +15 -0
  2. package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +24 -0
  3. package/daemon/assets/plugins/openrig-core/LICENSE +200 -0
  4. package/daemon/assets/plugins/openrig-core/README.md +42 -0
  5. package/daemon/assets/plugins/openrig-core/hooks/claude.json +78 -0
  6. package/daemon/assets/plugins/openrig-core/hooks/codex.json +37 -0
  7. package/daemon/assets/{openrig-activity-hook-relay.cjs → plugins/openrig-core/hooks/scripts/activity-relay.cjs} +12 -0
  8. package/daemon/assets/plugins/openrig-core/hooks/scripts/compaction-restore-bridge.cjs +172 -0
  9. package/daemon/assets/plugins/openrig-core/skills/agent-startup-and-context-ingestion/SKILL.md +104 -0
  10. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +131 -0
  11. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/precompact-hook.mjs +174 -0
  12. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +433 -0
  13. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/templates/compact-instruction.md +1 -0
  14. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/templates/post-compact-restore-instruction.md +1 -0
  15. package/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model/SKILL.md +305 -0
  16. package/daemon/{specs/agents/shared/skills/rig-architect → assets/plugins/openrig-core/skills/openrig-architect}/SKILL.md +38 -19
  17. package/daemon/assets/plugins/openrig-core/skills/openrig-operator/SKILL.md +222 -0
  18. package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +597 -0
  19. package/daemon/assets/plugins/openrig-core/skills/queue-handoff/SKILL.md +122 -0
  20. package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/SKILL.md +137 -0
  21. package/daemon/assets/vm-preview-fixtures/README.md +48 -0
  22. package/daemon/assets/vm-preview-fixtures/workflows/sample-basic-loop.yaml +79 -0
  23. package/daemon/dist/adapters/claude-code-adapter.d.ts +1 -3
  24. package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
  25. package/daemon/dist/adapters/claude-code-adapter.js +17 -57
  26. package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
  27. package/daemon/dist/adapters/cmux-transport.d.ts.map +1 -1
  28. package/daemon/dist/adapters/cmux-transport.js +81 -2
  29. package/daemon/dist/adapters/cmux-transport.js.map +1 -1
  30. package/daemon/dist/adapters/cmux.d.ts +4 -0
  31. package/daemon/dist/adapters/cmux.d.ts.map +1 -1
  32. package/daemon/dist/adapters/cmux.js +87 -0
  33. package/daemon/dist/adapters/cmux.js.map +1 -1
  34. package/daemon/dist/adapters/codex-runtime-adapter.d.ts +14 -3
  35. package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
  36. package/daemon/dist/adapters/codex-runtime-adapter.js +45 -58
  37. package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
  38. package/daemon/dist/adapters/tmux.d.ts +36 -0
  39. package/daemon/dist/adapters/tmux.d.ts.map +1 -1
  40. package/daemon/dist/adapters/tmux.js +66 -0
  41. package/daemon/dist/adapters/tmux.js.map +1 -1
  42. package/daemon/dist/db/migrations/037_mission_control_actions.d.ts +5 -1
  43. package/daemon/dist/db/migrations/037_mission_control_actions.d.ts.map +1 -1
  44. package/daemon/dist/db/migrations/037_mission_control_actions.js +5 -1
  45. package/daemon/dist/db/migrations/037_mission_control_actions.js.map +1 -1
  46. package/daemon/dist/db/migrations/040_workflow_specs_diagnostic.d.ts +32 -0
  47. package/daemon/dist/db/migrations/040_workflow_specs_diagnostic.d.ts.map +1 -0
  48. package/daemon/dist/db/migrations/040_workflow_specs_diagnostic.js +37 -0
  49. package/daemon/dist/db/migrations/040_workflow_specs_diagnostic.js.map +1 -0
  50. package/daemon/dist/db/migrations/041_rig_policy.d.ts +32 -0
  51. package/daemon/dist/db/migrations/041_rig_policy.d.ts.map +1 -0
  52. package/daemon/dist/db/migrations/041_rig_policy.js +47 -0
  53. package/daemon/dist/db/migrations/041_rig_policy.js.map +1 -0
  54. package/daemon/dist/domain/agent-images/resume-token-discovery.js +1 -1
  55. package/daemon/dist/domain/agent-images/resume-token-discovery.js.map +1 -1
  56. package/daemon/dist/domain/agent-images/snapshot-capturer.d.ts.map +1 -1
  57. package/daemon/dist/domain/agent-images/snapshot-capturer.js +2 -1
  58. package/daemon/dist/domain/agent-images/snapshot-capturer.js.map +1 -1
  59. package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
  60. package/daemon/dist/domain/agent-manifest.js +143 -37
  61. package/daemon/dist/domain/agent-manifest.js.map +1 -1
  62. package/daemon/dist/domain/agent-resolver.js +1 -1
  63. package/daemon/dist/domain/agent-resolver.js.map +1 -1
  64. package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
  65. package/daemon/dist/domain/bootstrap-orchestrator.js +86 -6
  66. package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
  67. package/daemon/dist/domain/bundle-agent-images-router.d.ts +95 -0
  68. package/daemon/dist/domain/bundle-agent-images-router.d.ts.map +1 -0
  69. package/daemon/dist/domain/bundle-agent-images-router.js +140 -0
  70. package/daemon/dist/domain/bundle-agent-images-router.js.map +1 -0
  71. package/daemon/dist/domain/bundle-assembler.d.ts +18 -1
  72. package/daemon/dist/domain/bundle-assembler.d.ts.map +1 -1
  73. package/daemon/dist/domain/bundle-assembler.js +11 -1
  74. package/daemon/dist/domain/bundle-assembler.js.map +1 -1
  75. package/daemon/dist/domain/bundle-audit.d.ts +89 -0
  76. package/daemon/dist/domain/bundle-audit.d.ts.map +1 -0
  77. package/daemon/dist/domain/bundle-audit.js +87 -0
  78. package/daemon/dist/domain/bundle-audit.js.map +1 -0
  79. package/daemon/dist/domain/bundle-conflict-detector.d.ts +57 -0
  80. package/daemon/dist/domain/bundle-conflict-detector.d.ts.map +1 -0
  81. package/daemon/dist/domain/bundle-conflict-detector.js +49 -0
  82. package/daemon/dist/domain/bundle-conflict-detector.js.map +1 -0
  83. package/daemon/dist/domain/bundle-context-packs-router.d.ts +100 -0
  84. package/daemon/dist/domain/bundle-context-packs-router.d.ts.map +1 -0
  85. package/daemon/dist/domain/bundle-context-packs-router.js +158 -0
  86. package/daemon/dist/domain/bundle-context-packs-router.js.map +1 -0
  87. package/daemon/dist/domain/bundle-plugins-router.d.ts +69 -0
  88. package/daemon/dist/domain/bundle-plugins-router.d.ts.map +1 -0
  89. package/daemon/dist/domain/bundle-plugins-router.js +87 -0
  90. package/daemon/dist/domain/bundle-plugins-router.js.map +1 -0
  91. package/daemon/dist/domain/bundle-skills-router.d.ts +62 -0
  92. package/daemon/dist/domain/bundle-skills-router.d.ts.map +1 -0
  93. package/daemon/dist/domain/bundle-skills-router.js +90 -0
  94. package/daemon/dist/domain/bundle-skills-router.js.map +1 -0
  95. package/daemon/dist/domain/bundle-types.d.ts +106 -0
  96. package/daemon/dist/domain/bundle-types.d.ts.map +1 -1
  97. package/daemon/dist/domain/bundle-types.js +375 -0
  98. package/daemon/dist/domain/bundle-types.js.map +1 -1
  99. package/daemon/dist/domain/bundle-workflow-specs-router.d.ts +94 -0
  100. package/daemon/dist/domain/bundle-workflow-specs-router.d.ts.map +1 -0
  101. package/daemon/dist/domain/bundle-workflow-specs-router.js +144 -0
  102. package/daemon/dist/domain/bundle-workflow-specs-router.js.map +1 -0
  103. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +81 -0
  104. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -0
  105. package/daemon/dist/domain/claude-compaction-enforcer.js +242 -0
  106. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -0
  107. package/daemon/dist/domain/cmux-layout-service.d.ts +41 -0
  108. package/daemon/dist/domain/cmux-layout-service.d.ts.map +1 -0
  109. package/daemon/dist/domain/cmux-layout-service.js +184 -0
  110. package/daemon/dist/domain/cmux-layout-service.js.map +1 -0
  111. package/daemon/dist/domain/context-monitor.d.ts +19 -1
  112. package/daemon/dist/domain/context-monitor.d.ts.map +1 -1
  113. package/daemon/dist/domain/context-monitor.js +62 -14
  114. package/daemon/dist/domain/context-monitor.js.map +1 -1
  115. package/daemon/dist/domain/graph-projection.d.ts +6 -0
  116. package/daemon/dist/domain/graph-projection.d.ts.map +1 -1
  117. package/daemon/dist/domain/graph-projection.js +6 -0
  118. package/daemon/dist/domain/graph-projection.js.map +1 -1
  119. package/daemon/dist/domain/kernel-boot-tracker.d.ts +74 -0
  120. package/daemon/dist/domain/kernel-boot-tracker.d.ts.map +1 -0
  121. package/daemon/dist/domain/kernel-boot-tracker.js +213 -0
  122. package/daemon/dist/domain/kernel-boot-tracker.js.map +1 -0
  123. package/daemon/dist/domain/kernel-boot.d.ts +50 -0
  124. package/daemon/dist/domain/kernel-boot.d.ts.map +1 -0
  125. package/daemon/dist/domain/kernel-boot.js +147 -0
  126. package/daemon/dist/domain/kernel-boot.js.map +1 -0
  127. package/daemon/dist/domain/mission-control/mission-control-read-layer.d.ts +5 -0
  128. package/daemon/dist/domain/mission-control/mission-control-read-layer.d.ts.map +1 -1
  129. package/daemon/dist/domain/mission-control/mission-control-read-layer.js +16 -2
  130. package/daemon/dist/domain/mission-control/mission-control-read-layer.js.map +1 -1
  131. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  132. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +3 -1
  133. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  134. package/daemon/dist/domain/native-resume-probe.js +7 -7
  135. package/daemon/dist/domain/native-resume-probe.js.map +1 -1
  136. package/daemon/dist/domain/node-inventory.d.ts +18 -0
  137. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  138. package/daemon/dist/domain/node-inventory.js +98 -0
  139. package/daemon/dist/domain/node-inventory.js.map +1 -1
  140. package/daemon/dist/domain/node-launcher.d.ts +12 -0
  141. package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
  142. package/daemon/dist/domain/node-launcher.js +25 -1
  143. package/daemon/dist/domain/node-launcher.js.map +1 -1
  144. package/daemon/dist/domain/plugin-discovery-service.d.ts +150 -0
  145. package/daemon/dist/domain/plugin-discovery-service.d.ts.map +1 -0
  146. package/daemon/dist/domain/plugin-discovery-service.js +468 -0
  147. package/daemon/dist/domain/plugin-discovery-service.js.map +1 -0
  148. package/daemon/dist/domain/plugin-vendor-service.d.ts +54 -0
  149. package/daemon/dist/domain/plugin-vendor-service.d.ts.map +1 -0
  150. package/daemon/dist/domain/plugin-vendor-service.js +111 -0
  151. package/daemon/dist/domain/plugin-vendor-service.js.map +1 -0
  152. package/daemon/dist/domain/pod-bundle-assembler.d.ts +16 -1
  153. package/daemon/dist/domain/pod-bundle-assembler.d.ts.map +1 -1
  154. package/daemon/dist/domain/pod-bundle-assembler.js +11 -1
  155. package/daemon/dist/domain/pod-bundle-assembler.js.map +1 -1
  156. package/daemon/dist/domain/profile-resolver.d.ts +13 -3
  157. package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
  158. package/daemon/dist/domain/profile-resolver.js +11 -7
  159. package/daemon/dist/domain/profile-resolver.js.map +1 -1
  160. package/daemon/dist/domain/projection-planner.d.ts +7 -1
  161. package/daemon/dist/domain/projection-planner.d.ts.map +1 -1
  162. package/daemon/dist/domain/projection-planner.js +44 -4
  163. package/daemon/dist/domain/projection-planner.js.map +1 -1
  164. package/daemon/dist/domain/ps-projection.d.ts +22 -0
  165. package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
  166. package/daemon/dist/domain/ps-projection.js +57 -0
  167. package/daemon/dist/domain/ps-projection.js.map +1 -1
  168. package/daemon/dist/domain/queue-repository.d.ts +44 -1
  169. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  170. package/daemon/dist/domain/queue-repository.js +112 -6
  171. package/daemon/dist/domain/queue-repository.js.map +1 -1
  172. package/daemon/dist/domain/restore-check-service.d.ts +4 -0
  173. package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
  174. package/daemon/dist/domain/restore-check-service.js +16 -7
  175. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  176. package/daemon/dist/domain/rig-policy/rig-policy-defaults.d.ts +48 -0
  177. package/daemon/dist/domain/rig-policy/rig-policy-defaults.d.ts.map +1 -0
  178. package/daemon/dist/domain/rig-policy/rig-policy-defaults.js +96 -0
  179. package/daemon/dist/domain/rig-policy/rig-policy-defaults.js.map +1 -0
  180. package/daemon/dist/domain/rig-policy/rig-policy-store.d.ts +46 -0
  181. package/daemon/dist/domain/rig-policy/rig-policy-store.d.ts.map +1 -0
  182. package/daemon/dist/domain/rig-policy/rig-policy-store.js +171 -0
  183. package/daemon/dist/domain/rig-policy/rig-policy-store.js.map +1 -0
  184. package/daemon/dist/domain/rig-policy/rig-policy-types.d.ts +145 -0
  185. package/daemon/dist/domain/rig-policy/rig-policy-types.d.ts.map +1 -0
  186. package/daemon/dist/domain/rig-policy/rig-policy-types.js +52 -0
  187. package/daemon/dist/domain/rig-policy/rig-policy-types.js.map +1 -0
  188. package/daemon/dist/domain/rig-policy/rig-policy-validator.d.ts +58 -0
  189. package/daemon/dist/domain/rig-policy/rig-policy-validator.d.ts.map +1 -0
  190. package/daemon/dist/domain/rig-policy/rig-policy-validator.js +211 -0
  191. package/daemon/dist/domain/rig-policy/rig-policy-validator.js.map +1 -0
  192. package/daemon/dist/domain/rigspec-instantiator.d.ts +1 -1
  193. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  194. package/daemon/dist/domain/rigspec-instantiator.js +109 -18
  195. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  196. package/daemon/dist/domain/seat-activity-service.d.ts +79 -0
  197. package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -0
  198. package/daemon/dist/domain/seat-activity-service.js +123 -0
  199. package/daemon/dist/domain/seat-activity-service.js.map +1 -0
  200. package/daemon/dist/domain/session-transport.d.ts.map +1 -1
  201. package/daemon/dist/domain/session-transport.js +33 -0
  202. package/daemon/dist/domain/session-transport.js.map +1 -1
  203. package/daemon/dist/domain/skill-library-discovery.d.ts +68 -0
  204. package/daemon/dist/domain/skill-library-discovery.d.ts.map +1 -0
  205. package/daemon/dist/domain/skill-library-discovery.js +144 -0
  206. package/daemon/dist/domain/skill-library-discovery.js.map +1 -0
  207. package/daemon/dist/domain/slices/slice-indexer.d.ts +31 -0
  208. package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
  209. package/daemon/dist/domain/slices/slice-indexer.js +111 -6
  210. package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
  211. package/daemon/dist/domain/spec-library-service.d.ts +6 -0
  212. package/daemon/dist/domain/spec-library-service.d.ts.map +1 -1
  213. package/daemon/dist/domain/spec-library-service.js +19 -0
  214. package/daemon/dist/domain/spec-library-service.js.map +1 -1
  215. package/daemon/dist/domain/spec-library-workflow-scanner.d.ts +43 -0
  216. package/daemon/dist/domain/spec-library-workflow-scanner.d.ts.map +1 -1
  217. package/daemon/dist/domain/spec-library-workflow-scanner.js +157 -3
  218. package/daemon/dist/domain/spec-library-workflow-scanner.js.map +1 -1
  219. package/daemon/dist/domain/spec-review-service.d.ts +1 -1
  220. package/daemon/dist/domain/spec-review-service.d.ts.map +1 -1
  221. package/daemon/dist/domain/spec-review-service.js +14 -1
  222. package/daemon/dist/domain/spec-review-service.js.map +1 -1
  223. package/daemon/dist/domain/types.d.ts +106 -10
  224. package/daemon/dist/domain/types.d.ts.map +1 -1
  225. package/daemon/dist/domain/types.js.map +1 -1
  226. package/daemon/dist/domain/user-settings/settings-store.d.ts +25 -1
  227. package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
  228. package/daemon/dist/domain/user-settings/settings-store.js +186 -4
  229. package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
  230. package/daemon/dist/domain/workflow-spec-cache.d.ts +49 -0
  231. package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
  232. package/daemon/dist/domain/workflow-spec-cache.js +96 -0
  233. package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
  234. package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts +7 -0
  235. package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
  236. package/daemon/dist/domain/workspace/default-workspace-scaffold.js +201 -3
  237. package/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
  238. package/daemon/dist/domain/workspace/getting-started-narrative.d.ts +15 -0
  239. package/daemon/dist/domain/workspace/getting-started-narrative.d.ts.map +1 -0
  240. package/daemon/dist/domain/workspace/getting-started-narrative.js +237 -0
  241. package/daemon/dist/domain/workspace/getting-started-narrative.js.map +1 -0
  242. package/daemon/dist/domain/workspace/workspace-doctor.d.ts +197 -0
  243. package/daemon/dist/domain/workspace/workspace-doctor.d.ts.map +1 -0
  244. package/daemon/dist/domain/workspace/workspace-doctor.js +448 -0
  245. package/daemon/dist/domain/workspace/workspace-doctor.js.map +1 -0
  246. package/daemon/dist/index.d.ts +2 -1
  247. package/daemon/dist/index.d.ts.map +1 -1
  248. package/daemon/dist/index.js +63 -17
  249. package/daemon/dist/index.js.map +1 -1
  250. package/daemon/dist/lib/pane-envelope.d.ts +7 -0
  251. package/daemon/dist/lib/pane-envelope.d.ts.map +1 -0
  252. package/daemon/dist/lib/pane-envelope.js +38 -0
  253. package/daemon/dist/lib/pane-envelope.js.map +1 -0
  254. package/daemon/dist/middleware/auth-bearer-token.d.ts +47 -5
  255. package/daemon/dist/middleware/auth-bearer-token.d.ts.map +1 -1
  256. package/daemon/dist/middleware/auth-bearer-token.js +109 -8
  257. package/daemon/dist/middleware/auth-bearer-token.js.map +1 -1
  258. package/daemon/dist/routes/bundles.d.ts.map +1 -1
  259. package/daemon/dist/routes/bundles.js +966 -7
  260. package/daemon/dist/routes/bundles.js.map +1 -1
  261. package/daemon/dist/routes/config.d.ts.map +1 -1
  262. package/daemon/dist/routes/config.js +19 -2
  263. package/daemon/dist/routes/config.js.map +1 -1
  264. package/daemon/dist/routes/info.d.ts +3 -0
  265. package/daemon/dist/routes/info.d.ts.map +1 -0
  266. package/daemon/dist/routes/info.js +20 -0
  267. package/daemon/dist/routes/info.js.map +1 -0
  268. package/daemon/dist/routes/kernel-status.d.ts +3 -0
  269. package/daemon/dist/routes/kernel-status.d.ts.map +1 -0
  270. package/daemon/dist/routes/kernel-status.js +40 -0
  271. package/daemon/dist/routes/kernel-status.js.map +1 -0
  272. package/daemon/dist/routes/mission-control.d.ts.map +1 -1
  273. package/daemon/dist/routes/mission-control.js +25 -2
  274. package/daemon/dist/routes/mission-control.js.map +1 -1
  275. package/daemon/dist/routes/missions.d.ts +3 -0
  276. package/daemon/dist/routes/missions.d.ts.map +1 -0
  277. package/daemon/dist/routes/missions.js +195 -0
  278. package/daemon/dist/routes/missions.js.map +1 -0
  279. package/daemon/dist/routes/plugins.d.ts +3 -0
  280. package/daemon/dist/routes/plugins.d.ts.map +1 -0
  281. package/daemon/dist/routes/plugins.js +223 -0
  282. package/daemon/dist/routes/plugins.js.map +1 -0
  283. package/daemon/dist/routes/queue.d.ts +18 -0
  284. package/daemon/dist/routes/queue.d.ts.map +1 -1
  285. package/daemon/dist/routes/queue.js +97 -5
  286. package/daemon/dist/routes/queue.js.map +1 -1
  287. package/daemon/dist/routes/rig-cmux.d.ts +3 -0
  288. package/daemon/dist/routes/rig-cmux.d.ts.map +1 -0
  289. package/daemon/dist/routes/rig-cmux.js +121 -0
  290. package/daemon/dist/routes/rig-cmux.js.map +1 -0
  291. package/daemon/dist/routes/rig-policy.d.ts +9 -0
  292. package/daemon/dist/routes/rig-policy.d.ts.map +1 -0
  293. package/daemon/dist/routes/rig-policy.js +174 -0
  294. package/daemon/dist/routes/rig-policy.js.map +1 -0
  295. package/daemon/dist/routes/rigs.d.ts.map +1 -1
  296. package/daemon/dist/routes/rigs.js +10 -2
  297. package/daemon/dist/routes/rigs.js.map +1 -1
  298. package/daemon/dist/routes/sessions.d.ts.map +1 -1
  299. package/daemon/dist/routes/sessions.js +26 -3
  300. package/daemon/dist/routes/sessions.js.map +1 -1
  301. package/daemon/dist/routes/skills.d.ts +3 -0
  302. package/daemon/dist/routes/skills.d.ts.map +1 -0
  303. package/daemon/dist/routes/skills.js +147 -0
  304. package/daemon/dist/routes/skills.js.map +1 -0
  305. package/daemon/dist/routes/slices.d.ts.map +1 -1
  306. package/daemon/dist/routes/slices.js +15 -0
  307. package/daemon/dist/routes/slices.js.map +1 -1
  308. package/daemon/dist/routes/spec-library.d.ts.map +1 -1
  309. package/daemon/dist/routes/spec-library.js +16 -1
  310. package/daemon/dist/routes/spec-library.js.map +1 -1
  311. package/daemon/dist/routes/up.d.ts +25 -0
  312. package/daemon/dist/routes/up.d.ts.map +1 -1
  313. package/daemon/dist/routes/up.js +70 -3
  314. package/daemon/dist/routes/up.js.map +1 -1
  315. package/daemon/dist/routes/workspace.d.ts.map +1 -1
  316. package/daemon/dist/routes/workspace.js +80 -1
  317. package/daemon/dist/routes/workspace.js.map +1 -1
  318. package/daemon/dist/server.d.ts +41 -0
  319. package/daemon/dist/server.d.ts.map +1 -1
  320. package/daemon/dist/server.js +41 -0
  321. package/daemon/dist/server.js.map +1 -1
  322. package/daemon/dist/startup.d.ts.map +1 -1
  323. package/daemon/dist/startup.js +236 -6
  324. package/daemon/dist/startup.js.map +1 -1
  325. package/daemon/specs/agents/apps/vault-specialist/agent.yaml +0 -1
  326. package/daemon/specs/agents/conveyor/builder/agent.yaml +0 -1
  327. package/daemon/specs/agents/conveyor/lead/agent.yaml +0 -1
  328. package/daemon/specs/agents/conveyor/planner/agent.yaml +0 -1
  329. package/daemon/specs/agents/conveyor/reviewer/agent.yaml +0 -1
  330. package/daemon/specs/agents/design/product-designer/agent.yaml +0 -1
  331. package/daemon/specs/agents/development/implementer/agent.yaml +0 -1
  332. package/daemon/specs/agents/development/qa/agent.yaml +0 -1
  333. package/daemon/specs/agents/development/qa/guidance/role.md +0 -2
  334. package/daemon/specs/agents/orchestration/orchestrator/agent.yaml +0 -1
  335. package/daemon/specs/agents/orchestration/orchestrator/guidance/role.md +28 -4
  336. package/daemon/specs/agents/research/analyst/agent.yaml +0 -1
  337. package/daemon/specs/agents/research/synthesizer/agent.yaml +0 -1
  338. package/daemon/specs/agents/review/independent-reviewer/agent.yaml +0 -1
  339. package/daemon/specs/agents/shared/agent.yaml +6 -6
  340. package/daemon/specs/agents/shared/skills/core/openrig-architect/SKILL.md +361 -0
  341. package/daemon/specs/agents/shared/skills/core/openrig-installer/SKILL.md +142 -0
  342. package/daemon/specs/agents/shared/skills/core/openrig-user/SKILL.md +288 -6
  343. package/daemon/specs/agents/shared/skills/core/openrig-user-settings/SKILL.md +4 -4
  344. package/daemon/specs/agents/shared/skills/core/rig-lifecycle/SKILL.md +116 -0
  345. package/daemon/specs/agents/shared/skills/pods/development-team/SKILL.md +0 -1
  346. package/daemon/specs/agents/shared/skills/pods/orchestration-team/SKILL.md +2 -2
  347. package/daemon/specs/agents/shared/skills/process/agent-browser/LOCAL-INSIGHTS.md +6 -6
  348. package/daemon/specs/agents/shared/skills/process/agent-browser/OPENRIG.md +40 -0
  349. package/daemon/specs/agents/shared/skills/process/agent-browser/SKILL.md +10 -0
  350. package/daemon/specs/agents/shared/skills/process/brainstorming/OPENRIG.md +48 -0
  351. package/daemon/specs/agents/shared/skills/process/brainstorming/SKILL.md +11 -0
  352. package/daemon/specs/agents/shared/skills/process/dogfood/SKILL.md +5 -0
  353. package/daemon/specs/agents/shared/skills/process/executing-plans/OPENRIG.md +56 -0
  354. package/daemon/specs/agents/shared/skills/process/executing-plans/SKILL.md +10 -0
  355. package/daemon/specs/agents/shared/skills/process/frontend-design/SKILL.md +5 -0
  356. package/daemon/specs/agents/shared/skills/process/systematic-debugging/SKILL.md +5 -0
  357. package/daemon/specs/agents/shared/skills/process/test-driven-development/SKILL.md +5 -0
  358. package/daemon/specs/agents/shared/skills/process/using-superpowers/OPENRIG.md +48 -0
  359. package/daemon/specs/agents/shared/skills/process/using-superpowers/SKILL.md +11 -0
  360. package/daemon/specs/agents/shared/skills/process/verification-before-completion/SKILL.md +5 -0
  361. package/daemon/specs/agents/shared/skills/process/writing-plans/OPENRIG.md +52 -0
  362. package/daemon/specs/agents/shared/skills/process/writing-plans/SKILL.md +12 -2
  363. package/daemon/specs/rigs/launch/conveyor/rig.yaml +1 -1
  364. package/daemon/specs/rigs/launch/kernel/agents/advisor/lead/agent.yaml +35 -0
  365. package/daemon/specs/rigs/launch/kernel/agents/advisor/lead/guidance/role.md +50 -0
  366. package/daemon/specs/rigs/launch/kernel/agents/advisor/lead/startup/context.md +37 -0
  367. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/agent.yaml +35 -0
  368. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +49 -0
  369. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +63 -0
  370. package/daemon/specs/rigs/launch/kernel/agents/queue/worker/agent.yaml +35 -0
  371. package/daemon/specs/rigs/launch/kernel/agents/queue/worker/guidance/role.md +33 -0
  372. package/daemon/specs/rigs/launch/kernel/agents/queue/worker/startup/context.md +30 -0
  373. package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +69 -0
  374. package/daemon/specs/rigs/launch/kernel/rig-claude-only.yaml +59 -0
  375. package/daemon/specs/rigs/launch/kernel/rig-codex-only.yaml +59 -0
  376. package/daemon/specs/rigs/launch/kernel/rig.yaml +69 -0
  377. package/dist/client.d.ts +3 -0
  378. package/dist/client.d.ts.map +1 -1
  379. package/dist/client.js +13 -1
  380. package/dist/client.js.map +1 -1
  381. package/dist/commands/bundle.d.ts.map +1 -1
  382. package/dist/commands/bundle.js +123 -2
  383. package/dist/commands/bundle.js.map +1 -1
  384. package/dist/commands/config-init-workspace.d.ts.map +1 -1
  385. package/dist/commands/config-init-workspace.js +293 -5
  386. package/dist/commands/config-init-workspace.js.map +1 -1
  387. package/dist/commands/config.d.ts.map +1 -1
  388. package/dist/commands/config.js +11 -3
  389. package/dist/commands/config.js.map +1 -1
  390. package/dist/commands/daemon.d.ts.map +1 -1
  391. package/dist/commands/daemon.js +53 -1
  392. package/dist/commands/daemon.js.map +1 -1
  393. package/dist/commands/heartbeat.d.ts.map +1 -1
  394. package/dist/commands/heartbeat.js +0 -5
  395. package/dist/commands/heartbeat.js.map +1 -1
  396. package/dist/commands/plugin.d.ts +4 -0
  397. package/dist/commands/plugin.d.ts.map +1 -0
  398. package/dist/commands/plugin.js +395 -0
  399. package/dist/commands/plugin.js.map +1 -0
  400. package/dist/commands/ps.d.ts.map +1 -1
  401. package/dist/commands/ps.js +51 -8
  402. package/dist/commands/ps.js.map +1 -1
  403. package/dist/commands/queue.d.ts +6 -0
  404. package/dist/commands/queue.d.ts.map +1 -1
  405. package/dist/commands/queue.js +103 -5
  406. package/dist/commands/queue.js.map +1 -1
  407. package/dist/commands/rig-policy.d.ts +48 -0
  408. package/dist/commands/rig-policy.d.ts.map +1 -0
  409. package/dist/commands/rig-policy.js +429 -0
  410. package/dist/commands/rig-policy.js.map +1 -0
  411. package/dist/commands/scope.d.ts +6 -0
  412. package/dist/commands/scope.d.ts.map +1 -0
  413. package/dist/commands/scope.js +659 -0
  414. package/dist/commands/scope.js.map +1 -0
  415. package/dist/commands/send.d.ts +8 -0
  416. package/dist/commands/send.d.ts.map +1 -1
  417. package/dist/commands/send.js +8 -0
  418. package/dist/commands/send.js.map +1 -1
  419. package/dist/commands/up.d.ts.map +1 -1
  420. package/dist/commands/up.js +60 -1
  421. package/dist/commands/up.js.map +1 -1
  422. package/dist/commands/workflow.d.ts +9 -0
  423. package/dist/commands/workflow.d.ts.map +1 -1
  424. package/dist/commands/workflow.js +139 -1
  425. package/dist/commands/workflow.js.map +1 -1
  426. package/dist/commands/workspace.d.ts +20 -0
  427. package/dist/commands/workspace.d.ts.map +1 -1
  428. package/dist/commands/workspace.js +138 -7
  429. package/dist/commands/workspace.js.map +1 -1
  430. package/dist/config-store.d.ts +18 -1
  431. package/dist/config-store.d.ts.map +1 -1
  432. package/dist/config-store.js +167 -4
  433. package/dist/config-store.js.map +1 -1
  434. package/dist/daemon-lifecycle.d.ts +45 -2
  435. package/dist/daemon-lifecycle.d.ts.map +1 -1
  436. package/dist/daemon-lifecycle.js +90 -9
  437. package/dist/daemon-lifecycle.js.map +1 -1
  438. package/dist/host-registry.d.ts +1 -1
  439. package/dist/host-registry.js +1 -1
  440. package/dist/index.d.ts +3 -0
  441. package/dist/index.d.ts.map +1 -1
  442. package/dist/index.js +7 -0
  443. package/dist/index.js.map +1 -1
  444. package/dist/lib/scope/dot-id.d.ts +43 -0
  445. package/dist/lib/scope/dot-id.d.ts.map +1 -0
  446. package/dist/lib/scope/dot-id.js +165 -0
  447. package/dist/lib/scope/dot-id.js.map +1 -0
  448. package/dist/lib/scope/scope-fs.d.ts +79 -0
  449. package/dist/lib/scope/scope-fs.d.ts.map +1 -0
  450. package/dist/lib/scope/scope-fs.js +468 -0
  451. package/dist/lib/scope/scope-fs.js.map +1 -0
  452. package/dist/lib/scope/templates.d.ts +38 -0
  453. package/dist/lib/scope/templates.d.ts.map +1 -0
  454. package/dist/lib/scope/templates.js +109 -0
  455. package/dist/lib/scope/templates.js.map +1 -0
  456. package/dist/lib/scope/types.d.ts +61 -0
  457. package/dist/lib/scope/types.d.ts.map +1 -0
  458. package/dist/lib/scope/types.js +38 -0
  459. package/dist/lib/scope/types.js.map +1 -0
  460. package/dist/lib/scope-templates/backlog-deprecation.md +26 -0
  461. package/dist/lib/scope-templates/backlog-tech-debt.md +22 -0
  462. package/dist/lib/scope-templates/bug-fix.md +30 -0
  463. package/dist/lib/scope-templates/mission-notes.md +97 -0
  464. package/dist/lib/scope-templates/mission-placeholder.md +20 -0
  465. package/dist/lib/scope-templates/mission-release.md +25 -0
  466. package/dist/lib/scope-templates/placeholder.md +30 -0
  467. package/dist/lib/scope-templates/release-feature.md +26 -0
  468. package/dist/lib/scope-templates/research.md +22 -0
  469. package/package.json +2 -2
  470. package/ui/dist/assets/index-C_Q5FczU.css +1 -0
  471. package/ui/dist/assets/index-GjTxfi9S.js +547 -0
  472. package/ui/dist/index.html +2 -2
  473. package/daemon/specs/agents/shared/skills/claude-compact-in-place/SKILL.md +0 -100
  474. package/daemon/specs/agents/shared/skills/process/containerized-e2e/SKILL.md +0 -256
  475. package/daemon/specs/agents/shared/skills/process/containerized-e2e/scripts/Dockerfile +0 -39
  476. package/daemon/specs/agents/shared/skills/process/containerized-e2e/scripts/build-e2e-image.sh +0 -37
  477. package/daemon/specs/agents/shared/skills/process/containerized-e2e/templates/control-plane-test.yaml +0 -40
  478. package/daemon/specs/agents/shared/skills/process/containerized-e2e/templates/e2e-report-template.md +0 -94
  479. package/daemon/specs/agents/shared/skills/process/containerized-e2e/templates/expansion-collision-fragment.yaml +0 -13
  480. package/daemon/specs/agents/shared/skills/process/containerized-e2e/templates/expansion-pod-fragment.yaml +0 -14
  481. package/ui/dist/assets/index-BDHU1JUK.js +0 -412
  482. package/ui/dist/assets/index-DXTyJSqu.css +0 -1
@@ -14,7 +14,6 @@ profiles:
14
14
  skills: [using-superpowers, openrig-user, orchestration-team, systematic-debugging, verification-before-completion, writing-plans, executing-plans, brainstorming]
15
15
  guidance: []
16
16
  subagents: []
17
- hooks: []
18
17
  runtime_resources: [shared:claude-default-settings, shared:claude-default-mcp, shared:codex-default-config]
19
18
 
20
19
  resources:
@@ -38,10 +38,34 @@ Then run:
38
38
 
39
39
  ## Communication
40
40
 
41
- - Send messages to agents via tmux or `rig send`
42
- - Read agent output via `rig capture`
43
- - Use the chatroom for broadcast announcements
44
- - Keep the human informed of progress at natural milestones
41
+ You ship work through three coordination surfaces. See the
42
+ "Coordination primitives when to use which" section at the top of
43
+ the `openrig-user` skill for full definitions, runnable examples,
44
+ the §1b doctrine, and the anti-patterns list. Brief mental model:
45
+
46
+ - `rig send <seat> "<text>"` — intra-pod nudges and quick context.
47
+ **NOT for durable work.** No queue record; the message lands and
48
+ is gone.
49
+ - `rig queue create --source X --destination Y --tags ... --body ...`
50
+ — durable work item. Survives restarts. Tracked. Tag with
51
+ mission / slice / gate / checkpoint. Use this for any substantive
52
+ dispatch, verdict, or handoff.
53
+ - `rig queue handoff <qitem-id> --to <next> ...` — hot-potato
54
+ forward momentum. Chain-of-record preserved. **This is how a turn
55
+ ends — by passing the ball, never by going idle.**
56
+
57
+ Other operator surfaces:
58
+
59
+ - Read agent output via `rig capture`.
60
+ - Use the chatroom for broadcast announcements where the
61
+ audience is the whole rig.
62
+ - Keep the human informed of progress at natural milestones.
63
+
64
+ §1b reminder for orchestrators: a turn ends by passing the ball,
65
+ never by going idle holding the slice waiting on a confirmation
66
+ the process does not include. If work is authorized, dispatch it
67
+ via `rig queue create` and stand by for the verdict back; do not
68
+ phantom-gate the rig on an imagined operator confirmation.
45
69
 
46
70
  ## Principles
47
71
 
@@ -14,7 +14,6 @@ profiles:
14
14
  skills: [openrig-user]
15
15
  guidance: []
16
16
  subagents: []
17
- hooks: []
18
17
  runtime_resources: [shared:claude-default-settings, shared:claude-default-mcp, shared:codex-default-config]
19
18
 
20
19
  resources:
@@ -14,7 +14,6 @@ profiles:
14
14
  skills: [openrig-user]
15
15
  guidance: []
16
16
  subagents: []
17
- hooks: []
18
17
  runtime_resources: [shared:claude-default-settings, shared:claude-default-mcp, shared:codex-default-config]
19
18
 
20
19
  resources:
@@ -14,7 +14,6 @@ profiles:
14
14
  skills: [using-superpowers, openrig-user, review-team, systematic-debugging, verification-before-completion, writing-plans, brainstorming]
15
15
  guidance: []
16
16
  subagents: []
17
- hooks: []
18
17
  runtime_resources: [shared:claude-default-settings, shared:claude-default-mcp, shared:codex-default-config]
19
18
 
20
19
  resources:
@@ -8,8 +8,6 @@ resources:
8
8
  path: skills/process/agent-browser
9
9
  - id: brainstorming
10
10
  path: skills/process/brainstorming
11
- - id: containerized-e2e
12
- path: skills/process/containerized-e2e
13
11
  - id: dogfood
14
12
  path: skills/process/dogfood
15
13
  - id: executing-plans
@@ -22,8 +20,12 @@ resources:
22
20
  path: skills/core/openrig-user
23
21
  - id: openrig-operator
24
22
  path: skills/core/openrig-operator
25
- - id: claude-compact-in-place
26
- path: skills/claude-compact-in-place
23
+ - id: openrig-installer
24
+ path: skills/core/openrig-installer
25
+ - id: openrig-architect
26
+ path: skills/core/openrig-architect
27
+ - id: rig-lifecycle
28
+ path: skills/core/rig-lifecycle
27
29
  - id: systematic-debugging
28
30
  path: skills/process/systematic-debugging
29
31
  - id: test-driven-development
@@ -38,8 +40,6 @@ resources:
38
40
  path: skills/pods/development-team
39
41
  - id: review-team
40
42
  path: skills/pods/review-team
41
- - id: rig-architect
42
- path: skills/rig-architect
43
43
  # PM skills
44
44
  - id: office-hours
45
45
  path: skills/pm/office-hours
@@ -0,0 +1,361 @@
1
+ ---
2
+ name: openrig-architect
3
+ description: Use when designing multi-agent topologies that run ON OpenRig — authoring RigSpec and AgentSpec files for new rigs, creating agent startup content (guidance / skills / culture), or diagnosing why a launched rig's agents aren't behaving as intended. NOT for changing OpenRig itself (work in the openrig product repo); NOT for ordinary CLI operation of an existing rig (use openrig-user). Covers the full authoring lifecycle from user intent to validated, launchable rig.
4
+ metadata:
5
+ openrig:
6
+ stage: factory-approved
7
+ last_verified: "2026-05-04"
8
+ distribution_scope: product-bound
9
+ source_evidence: |
10
+ Bootstrap skill — NPM install lands this in personal homes (~/.claude/skills/, ~/.agents/skills/) for users authoring their own rigs.
11
+ sibling_skills:
12
+ - openrig-user
13
+ - openrig-operator
14
+ - forming-an-openrig-mental-model
15
+ transfer_test: pending
16
+ ---
17
+
18
+ # OpenRig Architect
19
+
20
+ You are now an OpenRig architect. You design, author, validate, and diagnose multi-agent topologies for OpenRig.
21
+
22
+ Your job is to take a user's intent — "I need a team that does X" — and produce a complete, functioning rig: the topology spec, the agent specs, the guidance files, the culture, the startup content, and everything else needed for the rig to boot and the agents to know what to do.
23
+
24
+ You also diagnose problems when a rig launches but agents aren't behaving as intended.
25
+
26
+ ## Before You Design: Required Reading
27
+
28
+ Load these before starting any design work. The quality of your output depends on the depth of knowledge you bring.
29
+
30
+ **Required (read all of these):**
31
+
32
+ 1. **`openrig-user` skill** — full OpenRig CLI surface. You must know the operator primitives. If your runtime supports skills, load it by name. Otherwise, look for it at `~/.openrig/skills/openrig-user/SKILL.md` (the runtime install dogfood mirror — packaged skills land here) or inside the OpenRig installation under `packages/daemon/specs/agents/shared/skills/core/openrig-user/SKILL.md`. The `~/.openrig/reference/` directory holds reference docs (rig-spec.md, agent-spec.md, etc.), NOT skills.
33
+
34
+ 2. **OpenRig reference docs** — these are installed at `~/.openrig/reference/` when the daemon starts. Read all of them:
35
+ - `~/.openrig/reference/rig-spec.md` — canonical RigSpec YAML reference. Every field, validation rule, default.
36
+ - `~/.openrig/reference/agent-spec.md` — canonical AgentSpec YAML reference. Same depth.
37
+ - `~/.openrig/reference/agent-startup-guide.md` — how to think about what goes into agent startup. Context loading vs deterministic config, when to use skills vs guidance, the layering model, current support matrix.
38
+ - `~/.openrig/reference/edge-types.md` — what edges do today vs what they're intended to do.
39
+
40
+ If `~/.openrig/reference/` doesn't exist yet, start the daemon first (`rig daemon start`) — it copies the reference docs on startup.
41
+
42
+ **Read as worked examples:**
43
+
44
+ 3. **Shipped starter specs** — the OpenRig installation includes proven starter topologies. Find them by running `rig specs ls`. Read the ones that are relevant to your design task, especially:
45
+ - `implementation-pair` — the smallest effective development unit (2 agents)
46
+ - `secrets-manager` — a managed-app rig with services integration and a specialist agent
47
+
48
+ **Read if present on this host:**
49
+
50
+ 4. **Host-level doctrine file** (if your team maintains one — e.g., a HOST-TOPOLOGY doc that defines canonical rig classes, context-sharing patterns, and authoring SOPs for high-stakes rigs). If present, it supersedes the baseline process below for complex or high-stakes rigs (≥4 members, HA, managed-app, or shared/copied). Solo operators and small/focused rigs use the baseline below directly.
51
+ 5. **Agent-facing software design principles** if your rig ships a new CLI, service, or managed app that agents will operate. Treat the operating surface as a context-engineering problem: every error message and help text gives the agent information to act on.
52
+
53
+ **Load as needed:**
54
+ - Domain-specific skills when designing specialist agents — find shipped skills inside the OpenRig installation under the `specs/agents/` tree
55
+ - If the design session is long and you're running inside a managed rig, use `rig whoami --json` to recover your identity after compaction
56
+
57
+ Do not skip the required reading. A rig architect who doesn't know the spec format will produce specs that don't validate. An architect who doesn't know the startup layering model will produce agents that boot without knowing their role. An architect who doesn't check for host-level doctrine will reinvent conventions the host has already established.
58
+
59
+ ## The Design Process
60
+
61
+ ### Step 1: Understand the User's Intent
62
+
63
+ Before touching YAML, understand what the user actually needs:
64
+
65
+ - **What is the goal?** Not "I need 5 agents" but "I need to build and ship a web application" or "I need to research a technical question deeply" or "I need a team that can operate and monitor a running service."
66
+ - **What are the workflows?** How does work flow from intent to completion? Who does what? Where are the handoffs?
67
+ - **What is the project?** What codebase, what tech stack, what domain? This shapes agent specialization and startup content.
68
+ - **What runtimes are available?** Does the user have Claude Code? Codex? Both? Runtime availability constrains topology design.
69
+ - **How autonomous should it be?** Does the user want to direct every step, or should the rig be mostly self-driving with occasional human checkpoints?
70
+
71
+ Ask clarifying questions if the intent is ambiguous. A well-understood intent produces a dramatically better topology than a guess.
72
+
73
+ ### Step 2: Identify Bounded Contexts → Pods
74
+
75
+ Every rig is organized into pods — bounded context groups where members share a workflow concern. The question is: what are the natural groupings?
76
+
77
+ **Common pod patterns:**
78
+
79
+ | Pod | Purpose | When to use |
80
+ |-----|---------|-------------|
81
+ | Orchestration | Coordination, dispatch, monitoring | Almost always — any rig with 3+ agents needs an orchestrator |
82
+ | Development | Implementation, testing, quality | Any rig that writes code |
83
+ | Review | Independent code review, architecture review | When quality gates matter (production code, security-sensitive work) |
84
+ | Research | Deep investigation, analysis, synthesis | When the work requires research before implementation |
85
+ | Design | UX, interaction design, product decisions | When the work has a user-facing interface |
86
+ | Specialist | Domain-specific operations (Vault, DB, infra) | When a specific technology needs dedicated expertise |
87
+
88
+ **Sizing principles:**
89
+
90
+ - **Solo agent:** Only when the task is genuinely single-person (quick script, simple question). No rig needed.
91
+ - **Pair (2 agents):** The minimum effective unit for quality work. One does, one verifies. The `implementation-pair` pattern.
92
+ - **Small team (3-5 agents):** Orchestrator + one or two working pods. Good starting point for focused projects.
93
+ - **Full team (6-10 agents):** Multiple bounded contexts with orchestration, development, review, and potentially research or design.
94
+ - **Large team (10-40+ agents):** Complex projects with many concerns. Include pods for development, review, research, documentation, release management, strategy, and any other bounded context the project needs.
95
+
96
+ **Important:** Agents do NOT all need to be busy at the same time. A rig is a network, not an assembly line. Some pods will be highly active (dev, review) while others are available on-demand (research, documentation, release management). An idle agent has near-zero cost but is immediately available when any other agent in the rig needs it — for quick questions, lookups, delegation, or specialized work. Design for availability, not constant utilization.
97
+
98
+ **Start small to increase the likelihood of success,** not because large rigs are wasteful. A 3-agent rig that boots and works correctly validates your spec authoring before you scale to 20 agents. Once the core topology works, expand with additional pods as needed.
99
+
100
+ ### Step 3: Design Agent Roles → Members
101
+
102
+ Each pod member needs a clear role. The role determines:
103
+ - What agent spec to reference (builtin or custom)
104
+ - What profile to use
105
+ - What guidance and startup content to provide
106
+
107
+ **Builtin agents shipped with OpenRig:**
108
+
109
+ | Agent | agent_ref (in shipped starters) | Purpose |
110
+ |-------|-------------------------------|---------|
111
+ | orchestrator | `local:agents/orchestration/orchestrator` | Rig orchestration lead |
112
+ | implementer | `local:agents/development/implementer` | TDD implementation agent |
113
+ | qa | `local:agents/development/qa` | Quality assurance agent |
114
+ | independent-reviewer | `local:agents/review/independent-reviewer` | Independent code reviewer |
115
+ | product-designer | `local:agents/design/product-designer` | Product designer |
116
+ | pm | `local:agents/product-management/pm` | Product manager |
117
+ | analyst | `local:agents/research/analyst` | Research analyst |
118
+ | synthesizer | `local:agents/research/synthesizer` | Research synthesizer |
119
+ | vault-specialist | `local:agents/apps/vault-specialist` | Vault domain specialist |
120
+
121
+ To verify the current builtin set on this host, run `rig specs ls` and look for entries with type `agent` and source `builtin`.
122
+
123
+ **Path resolution:** The `local:` prefix means relative to the rig spec file's directory. In shipped starters, these paths resolve against the builtin specs directory inside the OpenRig installation. When authoring a custom rig spec outside the installation, you have two options:
124
+ - **Reference your own agent specs** with `local:` paths relative to your rig spec file
125
+ - **Use `path:` with an absolute path** to reference builtins inside the OpenRig installation (look under the `specs/agents/` directory near where `rig` is installed)
126
+
127
+ **When to create a custom agent spec:**
128
+ - The builtin doesn't match the role (e.g., you need a documentation specialist, a security auditor, a data scientist)
129
+ - The role needs domain-specific skills that no builtin carries
130
+ - The role needs custom guidance that goes beyond what startup files can provide
131
+
132
+ **When to reuse a builtin:**
133
+ - The role maps cleanly to an existing builtin (most implementation, QA, review, and orchestration roles)
134
+ - You can customize behavior through startup files and culture without changing the agent spec
135
+
136
+ ### Step 4: Choose Runtimes and Models
137
+
138
+ Each member needs a `runtime` and optionally a `model`.
139
+
140
+ **Runtime selection:**
141
+ - `claude-code` — Claude Code. Best for: complex reasoning, architecture, code review, orchestration. Supports `/loop` for recurring tasks, rich hooks system, MCP servers.
142
+ - `codex` — Codex. Best for: parallel work, implementation, testing. Different approval model. Less reliable for recurring tasks.
143
+ - `terminal` — Infrastructure nodes. Servers, log tails, build watchers. Not an agent — a process.
144
+
145
+ **Runtime diversity is valuable.** Using both Claude Code and Codex in the same rig gives you different reasoning perspectives. The `product-team` starter uses Claude Code for the lead/impl/design/r1 roles and Codex for peer/qa/r2 roles. This is deliberate — model diversity catches different classes of issues.
146
+
147
+ **Model selection** is optional. The runtime's default model is usually fine. Override only when you have a specific reason (e.g., a complex architecture agent might benefit from a specific model).
148
+
149
+ ### Step 5: Design Edge Topology
150
+
151
+ Edges define relationships between members. See `~/.openrig/reference/edge-types.md` for the full reference.
152
+
153
+ **Practical rules:**
154
+ - Every working pod should have at least one `delegates_to` edge from the orchestrator
155
+ - Review pods should have `can_observe` edges to the pods they review
156
+ - Within a pod, the primary workflow direction should be expressed as `delegates_to` (e.g., impl → qa)
157
+ - `delegates_to` and `spawned_by` affect launch order. Use them for dependency chains.
158
+ - `can_observe`, `collaborates_with`, `escalates_to` are informational — they help agents understand the topology but don't constrain launch.
159
+
160
+ **Start simple.** You can always add edges later. A rig with only `delegates_to` edges from the orchestrator to working pods is perfectly functional.
161
+
162
+ ### Step 6: Design Startup Content Strategy
163
+
164
+ This is where most rigs succeed or fail. The topology is mechanical; the startup content is what makes agents actually useful. See `~/.openrig/reference/agent-startup-guide.md` for the full guide.
165
+
166
+ **Minimum for every rig:**
167
+ 1. Each agent has a `guidance/role.md` — who they are, what they do
168
+ 2. The rig has a `CULTURE.md` — how the team works together
169
+ 3. Each agent gets `openrig-user` skill — so they know how to use the rig primitives
170
+
171
+ **For serious rigs, also include:**
172
+ 4. `startup/context.md` per agent — boot-time grounding (project info, environment details)
173
+ 5. Pod SOP skills — how each pod operates (implementation-pair SOP, review-pair SOP, etc.)
174
+ 6. Project-specific documentation in rig-level startup files
175
+
176
+ **The key principle:** An agent that boots without knowing its role, its team's culture, and its project context will produce generic, unhelpful work. The startup content IS the product value. Invest in it.
177
+
178
+ ### Step 7: Services Integration (If Needed)
179
+
180
+ If the rig needs managed software (databases, API servers, etc.), add a `services` block. See `~/.openrig/reference/rig-spec.md` for the full services reference.
181
+
182
+ **When to add services:**
183
+ - The agents operate ON software (not just write code)
184
+ - The project needs a local dev environment (Postgres, Redis, etc.)
185
+ - You're building a managed-app rig (software + specialist agent)
186
+
187
+ **Services boot before agents.** If health checks fail, no agents start. This is the hard gate — the environment must be healthy before agents can work.
188
+
189
+ ## Authoring: The File Creation Workflow
190
+
191
+ ### Directory Layout
192
+
193
+ ```
194
+ my-rig/
195
+ rig.yaml # The RigSpec — required
196
+ culture/
197
+ CULTURE.md # Rig-wide culture — strongly recommended
198
+ agents/
199
+ my-custom-agent/
200
+ agent.yaml # AgentSpec — if custom agent needed
201
+ guidance/
202
+ role.md # Role guidance
203
+ startup/
204
+ context.md # Boot-time context
205
+ skills/
206
+ my-skill/
207
+ SKILL.md # Custom skill if needed
208
+ docker-compose.yaml # Only if services block is used
209
+ ```
210
+
211
+ For rigs that reuse builtin agents, the agents directory is often unnecessary — the rig spec references the builtins directly.
212
+
213
+ ### Workflow
214
+
215
+ 1. **Write the rig spec** (`rig.yaml`) — define pods, members, edges, optionally services
216
+ 2. **Write or reference agent specs** — builtins for standard roles, custom for specialized roles
217
+ 3. **Write CULTURE.md** — the team operating manual
218
+ 4. **Write role guidance** for each custom agent — who they are, what they do
219
+ 5. **Write startup context** for agents that need environment grounding
220
+ 6. **Validate:** `rig spec validate rig.yaml` and `rig agent validate agents/*/agent.yaml`
221
+ 7. **Confirm the runtime cwd** — do not assume agents should work from the directory where the rig spec is stored. The spec root controls file resolution; the runtime cwd controls trust, project guidance, permissions, and repo context.
222
+ 8. **Launch:** `rig up rig.yaml --cwd /path/to/project`
223
+ 9. **Verify:** `rig ps --nodes` — all agents ready? Check `rig capture` on each agent.
224
+
225
+ ### Validation Is Non-Negotiable
226
+
227
+ Always validate before launching:
228
+
229
+ ```bash
230
+ rig spec validate rig.yaml
231
+ rig agent validate agents/my-agent/agent.yaml
232
+ ```
233
+
234
+ If validation fails, fix the errors. Do not try to launch an invalid spec — it will fail with a less helpful error.
235
+
236
+ ## Diagnosis: When Things Go Wrong
237
+
238
+ ### Agent doesn't know its role
239
+
240
+ **Symptom:** Agent produces generic output, doesn't follow team conventions.
241
+ **Root cause:** Missing or insufficient `guidance/role.md`.
242
+ **Fix:** Write a clear role guidance file. Include responsibilities, working rhythm, and principles. Reference it in both `resources.guidance` and `startup.files`.
243
+
244
+ ### Agent can't coordinate with peers
245
+
246
+ **Symptom:** Agent tries raw tmux commands instead of `rig send`, doesn't know peer session names.
247
+ **Root cause:** Agent didn't receive `openrig-user` skill or `openrig-start` overlay.
248
+ **Fix:** Ensure the agent's profile `uses.skills` includes `openrig-user`. Verify via `rig ps --nodes` that the agent shows expected startup status; check installed skills via direct startup/capture/transcript evidence or the UI node detail (the `rig ps --nodes` projection does not expose installed-resource counts).
249
+
250
+ ### Agent hits approval prompts on rig commands
251
+
252
+ **Symptom:** Agent stalls on `rig whoami`, `rig send`, etc.
253
+ **Root cause:** Claude Code permissions not configured for rig commands.
254
+ **Fix:** Describe the required permissions in startup context. The agent should configure `~/.claude/settings.json` with allowlisted rig commands. See `~/.openrig/reference/agent-startup-guide.md` for the current support matrix.
255
+
256
+ ### Agents idle — topology doesn't engage the team
257
+
258
+ **Symptom:** Orchestrator works with one or two agents, others sit idle.
259
+ **Root cause:** Missing `CULTURE.md` or pod SOP content that describes how the full team coordinates.
260
+ **Fix:** Write a culture file that explicitly describes the coordination protocol. Include delegation patterns, review gates, and when each pod should be engaged.
261
+
262
+ ### Services don't boot
263
+
264
+ **Symptom:** `rig up` fails before agents launch with a service health error.
265
+ **Root cause:** Docker Compose issue, health check failure, or port conflict.
266
+ **Fix:** Check `docker compose up` manually with the compose file. Verify health check URLs are correct. Check for port conflicts.
267
+
268
+ ### Agent boots from the wrong project context
269
+
270
+ **Symptom:** Agent misses expected guidance, trust settings, permissions, or repo context even though the spec validates.
271
+ **Root cause:** The rig spec directory was treated as the agent's runtime cwd by assumption.
272
+ **Fix:** Confirm the intended cwd before launch. The spec can live in a rig/spec shelf while the agent works from the project or hub directory that carries the relevant `AGENTS.md`, `CLAUDE.md`, trust, and permissions. Use member `cwd` or `rig up --cwd` deliberately.
273
+
274
+ ### Startup content not delivered
275
+
276
+ **Symptom:** Agent is missing expected guidance/skills.
277
+ **Root cause:** File paths in the spec don't resolve, or `delivery_hint` is wrong.
278
+ **Fix:** Verify file paths resolve relative to their owning artifact — AgentSpec resource paths are relative to the agent spec directory; RigSpec startup, culture, compose, cwd, and `local:` agent-ref paths are relative to the rig root. Check `delivery_hint` — use `guidance_merge` for pre-boot content, `send_text` for post-boot instructions.
279
+
280
+ ### Agent startup delivered but agent doesn't use skills
281
+
282
+ **Symptom:** Skills are projected but agent doesn't invoke them.
283
+ **Root cause:** Agent wasn't told to load them.
284
+ **Fix:** In the startup context or role guidance, explicitly tell the agent which skills to load. The belt-and-suspenders pattern: project the skills via the spec AND tell the agent to read them in the guidance.
285
+
286
+ ## Pattern Catalog
287
+
288
+ ### The Implementation Pair
289
+ **2 agents, 1 pod.** The smallest effective development unit. One implements (TDD), one does QA. The implementer proposes, QA approves or rejects, then the implementer commits.
290
+
291
+ ```yaml
292
+ pods:
293
+ - id: dev
294
+ label: Development
295
+ members:
296
+ - id: impl
297
+ agent_ref: "local:agents/development/implementer"
298
+ runtime: claude-code
299
+ profile: default
300
+ cwd: "."
301
+ - id: qa
302
+ agent_ref: "local:agents/development/qa"
303
+ runtime: codex
304
+ profile: default
305
+ cwd: "."
306
+ edges:
307
+ - kind: delegates_to
308
+ from: impl
309
+ to: qa
310
+ ```
311
+
312
+ **Use when:** Focused feature work, bug fixes, small-to-medium implementation tasks.
313
+
314
+ ### The Orchestrated Team
315
+ **5-7 agents, 3 pods.** Orchestration + development + review. The orchestrator dispatches work, the dev pair implements, the review pair validates independently.
316
+
317
+ **Use when:** Production-quality work that needs coordination and independent review.
318
+
319
+ ### The Research Team
320
+ **3 agents, 2 pods.** Orchestrator + research pair (analyst + synthesizer). The analyst investigates deeply, the synthesizer consolidates findings.
321
+
322
+ **Use when:** Technical research, competitive analysis, architecture exploration.
323
+
324
+ ### The Managed App
325
+ **1+ agents, 1 pod, services block.** Software infrastructure (Docker Compose) plus a specialist agent who knows how to operate it.
326
+
327
+ ```yaml
328
+ services:
329
+ kind: compose
330
+ compose_file: docker-compose.yaml
331
+ wait_for:
332
+ - url: http://127.0.0.1:8200/v1/sys/health
333
+
334
+ pods:
335
+ - id: vault
336
+ label: Vault
337
+ members:
338
+ - id: specialist
339
+ agent_ref: "local:agents/apps/vault-specialist"
340
+ runtime: claude-code
341
+ profile: default
342
+ cwd: "."
343
+ edges: []
344
+ ```
345
+
346
+ **Use when:** The work involves operating software, not just writing code.
347
+
348
+ ### The Full Product Team
349
+ **7 agents, 3 pods.** The kitchen-sink topology: orchestration pair, development pod (impl + qa + design), review pair. See the `product-team` starter spec for the complete worked example.
350
+
351
+ **Use when:** Full product development with design, implementation, QA, and independent review. Requires strong culture and SOP content to keep all agents engaged.
352
+
353
+ ## Final Notes
354
+
355
+ **Start simple, add complexity when needed.** A working implementation pair is better than a broken full team. Launch with the minimum viable topology, verify it works, then expand.
356
+
357
+ **Culture is not optional for team rigs.** Any rig with 3+ agents needs a CULTURE.md. Without it, agents will default to generic behavior and the topology will underperform.
358
+
359
+ **Validate early and often.** Run `rig spec validate` after every change. Run `rig agent validate` after every agent spec edit. Fix errors immediately — don't accumulate them.
360
+
361
+ **The startup content IS the product.** The YAML topology is scaffolding. What makes a rig actually useful is the guidance, culture, skills, and startup context that agents receive. Invest your authoring time there.
@@ -0,0 +1,142 @@
1
+ ---
2
+ name: openrig-installer
3
+ description: Use when installing or upgrading OpenRig on a host, especially the V0.3.1 upgrade flow which includes the substrate-kernel → daemon-managed-kernel migration ceremony. Covers npm install, rig setup, rig daemon start (auto-boots kernel), and the canonical verification commands. NOT for ordinary kernel operation post-install — use openrig-operator skill for that.
4
+ metadata:
5
+ openrig:
6
+ maturity: L2
7
+ distribution_scope: shipped
8
+ source_evidence: V0.3.1 slice 05-kernel-rig-as-default IMPLEMENTATION-PRD §8 + OQ-A=B migration-ceremony decision
9
+ ---
10
+
11
+ # OpenRig Installer
12
+
13
+ This skill teaches the operator agent how to install + upgrade
14
+ OpenRig cleanly. The V0.3.1 upgrade is the one with the migration
15
+ ceremony (substrate kernel → daemon-managed kernel); other upgrades
16
+ follow the same install / setup / start shape with no migration.
17
+
18
+ ## Fresh install
19
+
20
+ ```bash
21
+ npm install -g @openrig/cli
22
+ rig setup
23
+ ```
24
+
25
+ `rig setup` is idempotent — safe to re-run if a step fails. It probes
26
+ host prereqs (tmux present, Node version, writable state path,
27
+ optional cmux), then invokes `rig daemon start` per the L2 factoring
28
+ (OQ-B). The daemon's start path auto-boots the kernel rig per the
29
+ V0.3.1 slice 05 kernel-rig-as-default logic.
30
+
31
+ ## Verification after install
32
+
33
+ ```bash
34
+ rig ps --nodes --rig kernel --json
35
+ ```
36
+
37
+ Should report 4 members (advisor.lead + operator.agent +
38
+ operator.human + queue.worker) all ready. If a runtime is unavailable
39
+ the daemon picks the matching variant (`rig-claude-only.yaml` or
40
+ `rig-codex-only.yaml`); the topology stays the same shape with the
41
+ unavailable runtime omitted from the agent membership.
42
+
43
+ Entry point for chatting with the rig:
44
+
45
+ ```bash
46
+ rig capture advisor-lead@kernel
47
+ ```
48
+
49
+ Or click the CMUX button on the topology graph in the UI at
50
+ `/topology`.
51
+
52
+ ## V0.3.1 upgrade ceremony (one-time migration)
53
+
54
+ Operators with a kernel spec stored outside the daemon-managed
55
+ location (any pre-V0.3.1 layout, typically wherever you kept your
56
+ own `rigs/kernel/` directory) must migrate to
57
+ `~/.openrig/specs/rigs/kernel/` as a one-time step during the V0.3.1
58
+ upgrade. The V0.3.1 upgrade IS the migration moment; it's not a
59
+ separate ceremony.
60
+
61
+ ### Migration steps
62
+
63
+ 1. **Snapshot first.** Take a snapshot of the running substrate
64
+ kernel so the migration is reversible:
65
+
66
+ ```bash
67
+ rig snapshot kernel
68
+ ```
69
+
70
+ 2. **Stop the substrate kernel** (so the migration doesn't race a
71
+ running rig):
72
+
73
+ ```bash
74
+ rig down kernel --snapshot
75
+ ```
76
+
77
+ 3. **Copy your existing kernel spec** into the daemon-managed
78
+ location:
79
+
80
+ ```bash
81
+ mkdir -p ~/.openrig/specs/rigs/kernel
82
+ cp -r /path/to/old/kernel-spec/* ~/.openrig/specs/rigs/kernel/
83
+ ```
84
+
85
+ 4. **Upgrade the CLI + daemon**:
86
+
87
+ ```bash
88
+ npm install -g @openrig/cli@0.3.1
89
+ rig daemon stop
90
+ rig daemon start
91
+ ```
92
+
93
+ At this point the new daemon detects `~/.openrig/specs/rigs/kernel.yaml`
94
+ exists and skips the V0.3.1 builtin-kernel boot (the
95
+ already-managed-rig branch). The substrate-rooted topology
96
+ continues to run under daemon management.
97
+
98
+ 5. **Verify** the migrated kernel matches expectations:
99
+
100
+ ```bash
101
+ rig ps --nodes --rig kernel --json
102
+ ```
103
+
104
+ 6. **Decommission the old copy** (only after verifying the
105
+ daemon-managed copy works):
106
+
107
+ ```bash
108
+ rm -rf /path/to/old/kernel-spec
109
+ ```
110
+
111
+ ### If migration fails
112
+
113
+ The pre-step snapshot is the rollback. `rig restore <snapshot-id>
114
+ --rig kernel` revives the prior topology. Then `npm install -g
115
+ @openrig/cli@0.3.0` rolls the CLI back and you can retry later.
116
+
117
+ ## Operator agent's role in install + upgrade
118
+
119
+ The operator agent shepherds operators through these steps when the
120
+ user asks "how do I upgrade?" or "what's the V0.3.1 ceremony?". The
121
+ agent reads this skill on demand via `find-skills` — it does not
122
+ need to memorize the steps; it consults the canonical reference
123
+ (this file) and walks the operator through.
124
+
125
+ ## 3-part error remediation
126
+
127
+ | What failed | Why it matters | Fix |
128
+ |---|---|---|
129
+ | `npm install -g @openrig/cli` permission denied | Global install needs writable npm prefix; macOS Homebrew default is usually writable; some custom Node installs aren't | Either fix the npm prefix permissions or use `sudo npm install -g`; check `npm config get prefix` |
130
+ | `rig setup` host prereq fail | tmux, Node version, or writable state path missing | `rig doctor` lists each missing piece + the install command; run those, retry `rig setup` |
131
+ | `rig daemon start` auth-block error | Neither Claude Code nor Codex authenticated; kernel rig requires at least one | Run `claude auth login` OR `codex login`; then retry `rig daemon start` |
132
+ | `rig daemon start` "kernel already managed" | An existing managed rig named `kernel` exists; the daemon skips builtin-boot per design | This is the expected path after migration — no action needed |
133
+ | `rig ps --rig kernel --json` returns empty | Daemon healthy but no kernel rig managed; likely the migration step copied content but did not boot | `rig up kernel` from inside `~/.openrig/specs/rigs/kernel/`; or invoke the daemon's cold-boot path explicitly |
134
+
135
+ ## What this skill is NOT
136
+
137
+ - Not the canonical OpenRig command surface; that lives in the
138
+ `openrig-user` skill.
139
+ - Not the kernel-operating-procedure for post-install daily use;
140
+ that's `openrig-operator`.
141
+ - Not for project rigs; project rigs install themselves via `rig
142
+ up <spec>` after the kernel is in place.