@openrig/cli 0.5.6 → 0.5.7

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 (303) hide show
  1. package/daemon/assets/plugins/openrig-core/README.md +1 -1
  2. package/daemon/assets/plugins/openrig-core/skills/loading-addressable-markdown/SKILL.md +34 -0
  3. package/daemon/assets/plugins/openrig-core/skills/loading-addressable-markdown/scripts/resolve-markdown.mjs +170 -0
  4. package/daemon/assets/plugins/openrig-core/skills/openrig-skills/SKILL.md +1 -4
  5. package/daemon/assets/plugins/openrig-core/skills/retiring-and-inheriting-a-seat/SKILL.md +3 -3
  6. package/daemon/assets/plugins/openrig-core/skills/software-for-agents/SKILL.md +4 -9
  7. package/daemon/assets/vm-preview-fixtures/workflows/sample-basic-loop.yaml +3 -3
  8. package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
  9. package/daemon/context-packs/skills/applying-a-permission-policy/SKILL.md +120 -0
  10. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +10 -0
  11. package/daemon/context-packs/skills/claude-compaction-restore/SKILL.md +166 -0
  12. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +18 -0
  13. package/daemon/context-packs/skills/claude-compaction-restore/scripts/precompact-hook.mjs +174 -0
  14. package/daemon/context-packs/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +487 -0
  15. package/daemon/context-packs/skills/claude-compaction-restore/templates/compact-instruction.md +1 -0
  16. package/daemon/context-packs/skills/claude-compaction-restore/templates/post-compact-restore-instruction.md +1 -0
  17. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
  18. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/SKILL.md +1 -1
  19. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
  20. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
  21. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
  22. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
  23. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
  24. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
  25. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
  26. package/daemon/context-packs/skills/core/openrig-skills/SKILL.md +1 -4
  27. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
  28. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
  29. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
  30. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
  31. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
  32. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
  33. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
  34. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
  35. package/daemon/context-packs/skills/delegating-work/SKILL.md +43 -0
  36. package/daemon/context-packs/skills/delegating-work/manifest.yaml +10 -0
  37. package/daemon/context-packs/skills/forming-an-openrig-mental-model/SKILL.md +318 -0
  38. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +10 -0
  39. package/daemon/context-packs/skills/loading-addressable-markdown/SKILL.md +34 -0
  40. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +12 -0
  41. package/daemon/context-packs/skills/loading-addressable-markdown/scripts/resolve-markdown.mjs +170 -0
  42. package/daemon/context-packs/skills/mission-slice-sop/SKILL.md +94 -0
  43. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +10 -0
  44. package/daemon/context-packs/skills/openrig-operating-model/SKILL.md +397 -0
  45. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +30 -0
  46. package/daemon/context-packs/skills/openrig-operating-model/scripts/compose.py +572 -0
  47. package/daemon/context-packs/skills/openrig-operating-model/scripts/scaffold.sh +34 -0
  48. package/daemon/context-packs/skills/openrig-operating-model/scripts/trace-due.sh +32 -0
  49. package/daemon/context-packs/skills/openrig-operating-model/scripts/trace-stamp.sh +5 -0
  50. package/daemon/context-packs/skills/openrig-operating-model/scripts/trunk-diff.sh +18 -0
  51. package/daemon/context-packs/skills/openrig-operating-model/templates/LEARNED.md +40 -0
  52. package/daemon/context-packs/skills/openrig-operating-model/templates/NOTES.md +9 -0
  53. package/daemon/context-packs/skills/openrig-operating-model/templates/PLAYBOOK.md +5 -0
  54. package/daemon/context-packs/skills/openrig-operating-model/templates/SOP.md +24 -0
  55. package/daemon/context-packs/skills/openrig-operating-model/templates/SPEC.md +54 -0
  56. package/daemon/context-packs/skills/openrig-user/SKILL.md +1374 -0
  57. package/daemon/context-packs/skills/openrig-user/manifest.yaml +10 -0
  58. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/CHANGELOG.md +64 -0
  59. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/SKILL.md +250 -0
  60. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +12 -0
  61. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
  62. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
  63. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
  64. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
  65. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
  66. package/daemon/context-packs/skills/pm/requirements-writer/SKILL.md +21 -15
  67. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +3 -3
  68. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
  69. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
  70. package/daemon/context-packs/skills/pods/orchestration-team/SKILL.md +1 -1
  71. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
  72. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
  73. package/daemon/context-packs/skills/pods/review-team/SKILL.md +1 -1
  74. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
  75. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
  76. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
  77. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
  78. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
  79. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
  80. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
  81. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
  82. package/daemon/context-packs/skills/queue-handoff/SKILL.md +192 -0
  83. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +10 -0
  84. package/daemon/context-packs/skills/refocusing/SKILL.md +31 -0
  85. package/daemon/context-packs/skills/refocusing/manifest.yaml +14 -0
  86. package/daemon/context-packs/skills/refocusing/references/refocus.md +22 -0
  87. package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +264 -0
  88. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/CHANGELOG.md +48 -0
  89. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/SKILL.md +231 -0
  90. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +12 -0
  91. package/daemon/context-packs/skills/seat-continuity-and-handover/SKILL.md +151 -0
  92. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +16 -0
  93. package/daemon/context-packs/skills/seat-continuity-and-handover/references/apprentice-evidence-toolkit.md +32 -0
  94. package/daemon/context-packs/skills/seat-continuity-and-handover/references/apprentice-successor-seat-cutover.md +256 -0
  95. package/daemon/context-packs/skills/seat-continuity-and-handover/references/orchestrator-role.md +40 -0
  96. package/daemon/context-packs/skills/session-compaction-and-restore/SKILL.md +163 -0
  97. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +10 -0
  98. package/daemon/context-packs/skills/software-for-agents/SKILL.md +187 -0
  99. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +10 -0
  100. package/daemon/context-packs/world-example/manifest.yaml +1 -1
  101. package/daemon/context-packs/world-public/manifest.yaml +1 -1
  102. package/daemon/dist/build-info.js +3 -3
  103. package/daemon/dist/builtins/workflow-specs/basic-loop.yaml +3 -3
  104. package/daemon/dist/builtins/workflow-specs/conveyor.yaml +1 -1
  105. package/daemon/dist/builtins/workflow-specs/factory-rsi.yaml +1 -1
  106. package/daemon/dist/db/all-migrations.d.ts +1 -1
  107. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  108. package/daemon/dist/db/all-migrations.js +4 -2
  109. package/daemon/dist/db/all-migrations.js.map +1 -1
  110. package/daemon/dist/db/migrations/077_node_session_source.d.ts +4 -0
  111. package/daemon/dist/db/migrations/077_node_session_source.d.ts.map +1 -0
  112. package/daemon/dist/db/migrations/077_node_session_source.js +6 -0
  113. package/daemon/dist/db/migrations/077_node_session_source.js.map +1 -0
  114. package/daemon/dist/domain/context-packs/manifest-parser.d.ts.map +1 -1
  115. package/daemon/dist/domain/context-packs/manifest-parser.js +5 -6
  116. package/daemon/dist/domain/context-packs/manifest-parser.js.map +1 -1
  117. package/daemon/dist/domain/context-packs/profile-composer.d.ts +1 -1
  118. package/daemon/dist/domain/context-packs/profile-composer.d.ts.map +1 -1
  119. package/daemon/dist/domain/context-packs/profile-composer.js +2 -2
  120. package/daemon/dist/domain/context-packs/profile-composer.js.map +1 -1
  121. package/daemon/dist/domain/context-packs/profile-source-resolver.d.ts +3 -1
  122. package/daemon/dist/domain/context-packs/profile-source-resolver.d.ts.map +1 -1
  123. package/daemon/dist/domain/context-packs/profile-source-resolver.js +3 -2
  124. package/daemon/dist/domain/context-packs/profile-source-resolver.js.map +1 -1
  125. package/daemon/dist/domain/rig-lifecycle-service.d.ts +24 -4
  126. package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
  127. package/daemon/dist/domain/rig-lifecycle-service.js +116 -6
  128. package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
  129. package/daemon/dist/domain/rig-repository.d.ts +2 -1
  130. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  131. package/daemon/dist/domain/rig-repository.js +7 -0
  132. package/daemon/dist/domain/rig-repository.js.map +1 -1
  133. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  134. package/daemon/dist/domain/rigspec-exporter.js +2 -0
  135. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  136. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  137. package/daemon/dist/domain/rigspec-instantiator.js +2 -0
  138. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  139. package/daemon/dist/domain/types.d.ts +2 -0
  140. package/daemon/dist/domain/types.d.ts.map +1 -1
  141. package/daemon/dist/domain/types.js.map +1 -1
  142. package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
  143. package/daemon/dist/domain/workspace/default-workspace-scaffold.js +37 -2
  144. package/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
  145. package/daemon/dist/routes/context-packs.d.ts.map +1 -1
  146. package/daemon/dist/routes/context-packs.js +146 -6
  147. package/daemon/dist/routes/context-packs.js.map +1 -1
  148. package/daemon/dist/routes/rigs.js +7 -3
  149. package/daemon/dist/routes/rigs.js.map +1 -1
  150. package/daemon/dist/routes/sessions.js +7 -3
  151. package/daemon/dist/routes/sessions.js.map +1 -1
  152. package/daemon/dist/startup.d.ts.map +1 -1
  153. package/daemon/dist/startup.js +3 -1
  154. package/daemon/dist/startup.js.map +1 -1
  155. package/daemon/docs/reference/agent-spec.md +1 -1
  156. package/daemon/docs/reference/mission-install.md +23 -2
  157. package/daemon/docs/reference/product-journey-sdlc.md +305 -0
  158. package/daemon/docs/reference/sdlc-conventions.md +9 -2
  159. package/daemon/specs/agents/apps/vault-specialist/agent.yaml +1 -1
  160. package/daemon/specs/agents/apps/vault-specialist/guidance/role.md +0 -1
  161. package/daemon/specs/agents/conveyor/builder/agent.yaml +1 -1
  162. package/daemon/specs/agents/conveyor/builder/guidance/role.md +0 -1
  163. package/daemon/specs/agents/conveyor/lead/agent.yaml +1 -1
  164. package/daemon/specs/agents/conveyor/lead/guidance/role.md +0 -3
  165. package/daemon/specs/agents/conveyor/planner/agent.yaml +1 -1
  166. package/daemon/specs/agents/conveyor/planner/guidance/role.md +0 -1
  167. package/daemon/specs/agents/design/product-designer/agent.yaml +3 -4
  168. package/daemon/specs/agents/design/product-designer/guidance/role.md +0 -3
  169. package/daemon/specs/agents/development/implementer/agent.yaml +3 -4
  170. package/daemon/specs/agents/development/implementer/guidance/role.md +0 -3
  171. package/daemon/specs/agents/development/qa/agent.yaml +4 -4
  172. package/daemon/specs/agents/development/qa/guidance/role.md +1 -4
  173. package/daemon/specs/agents/factory-rsi/dogfood/agent.yaml +1 -1
  174. package/daemon/specs/agents/factory-rsi/release-manager/agent.yaml +1 -1
  175. package/daemon/specs/agents/orchestration/orchestrator/agent.yaml +3 -4
  176. package/daemon/specs/agents/orchestration/orchestrator/guidance/role.md +0 -4
  177. package/daemon/specs/agents/review/independent-reviewer/agent.yaml +3 -4
  178. package/daemon/specs/agents/review/independent-reviewer/guidance/role.md +0 -3
  179. package/daemon/specs/agents/shared/agent.yaml +2 -10
  180. package/daemon/specs/agents/shared/skills/core/agent-startup-and-context-ingestion/SKILL.md +1 -1
  181. package/daemon/specs/agents/shared/skills/core/openrig-skills/SKILL.md +1 -4
  182. package/daemon/specs/agents/shared/skills/pm/requirements-writer/SKILL.md +21 -15
  183. package/daemon/specs/agents/shared/skills/pods/orchestration-team/SKILL.md +1 -1
  184. package/daemon/specs/agents/shared/skills/pods/review-team/SKILL.md +1 -1
  185. package/daemon/specs/rigs/launch/kernel/agents/advisor/lead/agent.yaml +1 -1
  186. package/daemon/specs/rigs/launch/kernel/agents/advisor/lead/guidance/role.md +2 -3
  187. package/dist/build-info.js +3 -3
  188. package/dist/commands/config-init-workspace.d.ts.map +1 -1
  189. package/dist/commands/config-init-workspace.js +38 -3
  190. package/dist/commands/config-init-workspace.js.map +1 -1
  191. package/dist/commands/context.d.ts.map +1 -1
  192. package/dist/commands/context.js +37 -0
  193. package/dist/commands/context.js.map +1 -1
  194. package/dist/commands/create.d.ts +4 -0
  195. package/dist/commands/create.d.ts.map +1 -0
  196. package/dist/commands/create.js +84 -0
  197. package/dist/commands/create.js.map +1 -0
  198. package/dist/commands/grow.d.ts +4 -0
  199. package/dist/commands/grow.d.ts.map +1 -0
  200. package/dist/commands/grow.js +182 -0
  201. package/dist/commands/grow.js.map +1 -0
  202. package/dist/commands/remove.d.ts.map +1 -1
  203. package/dist/commands/remove.js +9 -1
  204. package/dist/commands/remove.js.map +1 -1
  205. package/dist/commands/rig.d.ts.map +1 -1
  206. package/dist/commands/rig.js +48 -1
  207. package/dist/commands/rig.js.map +1 -1
  208. package/dist/commands/scope.d.ts.map +1 -1
  209. package/dist/commands/scope.js +21 -2
  210. package/dist/commands/scope.js.map +1 -1
  211. package/dist/commands/shrink.d.ts.map +1 -1
  212. package/dist/commands/shrink.js +6 -1
  213. package/dist/commands/shrink.js.map +1 -1
  214. package/dist/commands/topology-default-agent.d.ts +4 -0
  215. package/dist/commands/topology-default-agent.d.ts.map +1 -0
  216. package/dist/commands/topology-default-agent.js +13 -0
  217. package/dist/commands/topology-default-agent.js.map +1 -0
  218. package/dist/commands/walk.d.ts.map +1 -1
  219. package/dist/commands/walk.js +3 -0
  220. package/dist/commands/walk.js.map +1 -1
  221. package/dist/index.d.ts +2 -0
  222. package/dist/index.d.ts.map +1 -1
  223. package/dist/index.js +4 -0
  224. package/dist/index.js.map +1 -1
  225. package/dist/lib/work-install.d.ts +39 -0
  226. package/dist/lib/work-install.d.ts.map +1 -0
  227. package/dist/lib/work-install.js +278 -0
  228. package/dist/lib/work-install.js.map +1 -0
  229. package/node_modules/@openrig/daemon/dist/build-info.js +3 -3
  230. package/node_modules/@openrig/daemon/dist/builtins/workflow-specs/basic-loop.yaml +3 -3
  231. package/node_modules/@openrig/daemon/dist/builtins/workflow-specs/conveyor.yaml +1 -1
  232. package/node_modules/@openrig/daemon/dist/builtins/workflow-specs/factory-rsi.yaml +1 -1
  233. package/node_modules/@openrig/daemon/dist/db/all-migrations.d.ts +1 -1
  234. package/node_modules/@openrig/daemon/dist/db/all-migrations.d.ts.map +1 -1
  235. package/node_modules/@openrig/daemon/dist/db/all-migrations.js +4 -2
  236. package/node_modules/@openrig/daemon/dist/db/all-migrations.js.map +1 -1
  237. package/node_modules/@openrig/daemon/dist/db/migrations/077_node_session_source.d.ts +4 -0
  238. package/node_modules/@openrig/daemon/dist/db/migrations/077_node_session_source.d.ts.map +1 -0
  239. package/node_modules/@openrig/daemon/dist/db/migrations/077_node_session_source.js +6 -0
  240. package/node_modules/@openrig/daemon/dist/db/migrations/077_node_session_source.js.map +1 -0
  241. package/node_modules/@openrig/daemon/dist/domain/context-packs/manifest-parser.d.ts.map +1 -1
  242. package/node_modules/@openrig/daemon/dist/domain/context-packs/manifest-parser.js +5 -6
  243. package/node_modules/@openrig/daemon/dist/domain/context-packs/manifest-parser.js.map +1 -1
  244. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.d.ts +1 -1
  245. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.d.ts.map +1 -1
  246. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.js +2 -2
  247. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.js.map +1 -1
  248. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.d.ts +3 -1
  249. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.d.ts.map +1 -1
  250. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.js +3 -2
  251. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.js.map +1 -1
  252. package/node_modules/@openrig/daemon/dist/domain/rig-lifecycle-service.d.ts +24 -4
  253. package/node_modules/@openrig/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
  254. package/node_modules/@openrig/daemon/dist/domain/rig-lifecycle-service.js +116 -6
  255. package/node_modules/@openrig/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
  256. package/node_modules/@openrig/daemon/dist/domain/rig-repository.d.ts +2 -1
  257. package/node_modules/@openrig/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  258. package/node_modules/@openrig/daemon/dist/domain/rig-repository.js +7 -0
  259. package/node_modules/@openrig/daemon/dist/domain/rig-repository.js.map +1 -1
  260. package/node_modules/@openrig/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  261. package/node_modules/@openrig/daemon/dist/domain/rigspec-exporter.js +2 -0
  262. package/node_modules/@openrig/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  263. package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  264. package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.js +2 -0
  265. package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  266. package/node_modules/@openrig/daemon/dist/domain/types.d.ts +2 -0
  267. package/node_modules/@openrig/daemon/dist/domain/types.d.ts.map +1 -1
  268. package/node_modules/@openrig/daemon/dist/domain/types.js.map +1 -1
  269. package/node_modules/@openrig/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
  270. package/node_modules/@openrig/daemon/dist/domain/workspace/default-workspace-scaffold.js +37 -2
  271. package/node_modules/@openrig/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
  272. package/node_modules/@openrig/daemon/dist/routes/context-packs.d.ts.map +1 -1
  273. package/node_modules/@openrig/daemon/dist/routes/context-packs.js +146 -6
  274. package/node_modules/@openrig/daemon/dist/routes/context-packs.js.map +1 -1
  275. package/node_modules/@openrig/daemon/dist/routes/rigs.js +7 -3
  276. package/node_modules/@openrig/daemon/dist/routes/rigs.js.map +1 -1
  277. package/node_modules/@openrig/daemon/dist/routes/sessions.js +7 -3
  278. package/node_modules/@openrig/daemon/dist/routes/sessions.js.map +1 -1
  279. package/node_modules/@openrig/daemon/dist/startup.d.ts.map +1 -1
  280. package/node_modules/@openrig/daemon/dist/startup.js +3 -1
  281. package/node_modules/@openrig/daemon/dist/startup.js.map +1 -1
  282. package/node_modules/@openrig/daemon/package.json +1 -1
  283. package/package.json +1 -1
  284. package/daemon/context-packs/skills/process/brainstorming/OPENRIG.md +0 -48
  285. package/daemon/context-packs/skills/process/brainstorming/SKILL.md +0 -107
  286. package/daemon/context-packs/skills/process/brainstorming/manifest.yaml +0 -12
  287. package/daemon/context-packs/skills/process/executing-plans/OPENRIG.md +0 -56
  288. package/daemon/context-packs/skills/process/executing-plans/SKILL.md +0 -94
  289. package/daemon/context-packs/skills/process/executing-plans/manifest.yaml +0 -12
  290. package/daemon/context-packs/skills/process/using-superpowers/OPENRIG.md +0 -48
  291. package/daemon/context-packs/skills/process/using-superpowers/SKILL.md +0 -106
  292. package/daemon/context-packs/skills/process/using-superpowers/manifest.yaml +0 -12
  293. package/daemon/context-packs/skills/process/writing-plans/OPENRIG.md +0 -52
  294. package/daemon/context-packs/skills/process/writing-plans/SKILL.md +0 -126
  295. package/daemon/context-packs/skills/process/writing-plans/manifest.yaml +0 -12
  296. package/daemon/specs/agents/shared/skills/process/brainstorming/OPENRIG.md +0 -48
  297. package/daemon/specs/agents/shared/skills/process/brainstorming/SKILL.md +0 -107
  298. package/daemon/specs/agents/shared/skills/process/executing-plans/OPENRIG.md +0 -56
  299. package/daemon/specs/agents/shared/skills/process/executing-plans/SKILL.md +0 -94
  300. package/daemon/specs/agents/shared/skills/process/using-superpowers/OPENRIG.md +0 -48
  301. package/daemon/specs/agents/shared/skills/process/using-superpowers/SKILL.md +0 -106
  302. package/daemon/specs/agents/shared/skills/process/writing-plans/OPENRIG.md +0 -52
  303. package/daemon/specs/agents/shared/skills/process/writing-plans/SKILL.md +0 -126
@@ -1,7 +1,7 @@
1
1
  # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
2
  # Package-time projection of a canonical skill; regenerated every build.
3
3
  name: "agent-startup-and-context-ingestion"
4
- version: "0.5.6"
4
+ version: "0.5.7"
5
5
  taxonomy: "skills"
6
6
  purpose: "Use when designing or auditing how an agent becomes useful after launch — AGENTS.md overlays, role files, skills, rig specs, workflow specs, startup checklists, refocus messages, \"rig context\" surface. Covers the 4 failure modes that make startup context fail (old rig spec misses current operating mode; current agents never told about new guidance; startup file as dumping ground; orchestrator transmits implementation without preserving product intent)."
7
7
  files:
@@ -1,7 +1,7 @@
1
1
  # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
2
  # Package-time projection of a canonical skill; regenerated every build.
3
3
  name: "cross-host-rig-commands"
4
- version: "0.5.6"
4
+ version: "0.5.7"
5
5
  taxonomy: "skills"
6
6
  purpose: "Use when issuing `rig` commands against a remote host via `--host <id>` flag (single-hop SSH to a host declared in `~/.openrig/hosts.yaml`). Covers the 4 structured failure modes (ssh-unreachable / permission-gate / remote-daemon-unreachable / remote-command-failed), the `--verify` honest pass-through (SSH success is NOT verify success), and the host-registry shape. v0 supports `rig send / capture / ps / whoami --host <id>`."
7
7
  files:
@@ -1,7 +1,7 @@
1
1
  # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
2
  # Package-time projection of a canonical skill; regenerated every build.
3
3
  name: "human-in-the-loop"
4
- version: "0.5.6"
4
+ version: "0.5.7"
5
5
  taxonomy: "skills"
6
6
  purpose: "Use when classifying a slice closeout (auto-continue / human gate / park), routing a real decision to a human, or designing a human queue/dashboard surface. Treats humans as durable network participants with attention surfaces, queues, and decision records — escalation lands as a durable attention item, not a chat message. Approval is NOT required for every clean closeout; the default RSI conveyor continues unless an explicit human gate is reached."
7
7
  files:
@@ -1,7 +1,7 @@
1
1
  # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
2
  # Package-time projection of a canonical skill; regenerated every build.
3
3
  name: "messaging-the-human"
4
- version: "0.5.6"
4
+ version: "0.5.7"
5
5
  taxonomy: "skills"
6
6
  purpose: "Use when a human decision, access grant, external action, or escalation must survive the operator's absence, or when an orchestrator or PM has a judgment-worthy update for the operator."
7
7
  files:
@@ -1,7 +1,7 @@
1
1
  # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
2
  # Package-time projection of a canonical skill; regenerated every build.
3
3
  name: "openrig-architect"
4
- version: "0.5.6"
4
+ version: "0.5.7"
5
5
  taxonomy: "skills"
6
6
  purpose: "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 (use openrig-builder); NOT for ordinary CLI operation of an existing rig (use openrig-user). Covers the full authoring lifecycle from user intent to validated, launchable rig."
7
7
  files:
@@ -1,7 +1,7 @@
1
1
  # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
2
  # Package-time projection of a canonical skill; regenerated every build.
3
3
  name: "openrig-cmux"
4
- version: "0.5.6"
4
+ version: "0.5.7"
5
5
  taxonomy: "skills"
6
6
  purpose: "Use when opening OpenRig fleet terminals into cmux — turning a rig, pod, mission, slice, or saved view into live agent tiles via `rig terminal --provider cmux`, or driving cmux on an agent's request. Same OpenRig view semantics as openrig-herdr (the verbs, honest-partial/degrade, read-only cross-rig, scroll/copy, same-size-only duplicates); cmux is the **best-effort** provider (herdr is the default and the proof-gated one). Prefer openrig-herdr unless cmux is specifically wanted."
7
7
  files:
@@ -1,7 +1,7 @@
1
1
  # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
2
  # Package-time projection of a canonical skill; regenerated every build.
3
3
  name: "openrig-herdr"
4
- version: "0.5.6"
4
+ version: "0.5.7"
5
5
  taxonomy: "skills"
6
6
  purpose: "Use when opening OpenRig fleet terminals as a herdr wall — turning a rig, pod, mission, slice, or saved view into live interactive agent tiles via `rig terminal`, watching another rig read-only, or driving herdr on an agent's request (\"open all my rigs + a mission as views\"). Covers the `rig terminal open|views|status` verbs, the honest-partial/degrade reading of the result, the read-only-by-construction rail for cross-rig views, scroll/copy out of the box, and the same-size-only duplicate-pane "
7
7
  files:
@@ -54,6 +54,7 @@ These are auto-delivered to every rig; their name+description are already in you
54
54
  - **applying-a-permission-policy** — a rig or seat has a permission policy attached, or you're setting one up: translate it into the live harness configuration.
55
55
  - **claude-compaction-restore** — you just compacted (Claude). Restore from durable evidence before resuming real work.
56
56
  - **delegating-work** — deciding who should do a task: you, a spawned subagent, or a durable peer seat that already holds the context.
57
+ - **loading-addressable-markdown** — a task names Markdown as `path#h2-slug` or `path#h2-slug/h3-slug` outside the context-pack library.
57
58
  - **session-compaction-and-restore** — preparing for, or recovering from, compaction (any runtime). The write- and read-side protocol.
58
59
  - **queue-handoff** — you're passing durable work to another seat or ending your turn. The queue is the work ledger, not chat.
59
60
  - **refocusing** — a long-running seat may have lost the product outcome, crossed a major boundary, or compacted and needs a fresh path-based trace.
@@ -105,10 +106,6 @@ General engineering skills OpenRig ships as vendored copies. Open when the task
105
106
  - **test-driven-development** — implementing a feature or bugfix: write the failing test first.
106
107
  - **verification-before-completion** — about to claim done / passing / fixed: run the check and read the output first.
107
108
  - **systematic-debugging** — debugging: find the root cause before the fix.
108
- - **writing-plans** — writing an implementation plan.
109
- - **executing-plans** — working through a written plan.
110
- - **brainstorming** — divergent ideation before converging.
111
- - **using-superpowers** — discovering and using the vendored "superpowers" skill set.
112
109
  - **agent-browser** — driving a browser (screenshot / screencast) from an agent.
113
110
  - **frontend-design** — designing frontend / UI.
114
111
  - **dogfood** — web-QA / dogfooding a shipped UI.
@@ -1,7 +1,7 @@
1
1
  # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
2
  # Package-time projection of a canonical skill; regenerated every build.
3
3
  name: "openrig-skills"
4
- version: "0.5.6"
4
+ version: "0.5.7"
5
5
  taxonomy: "skills"
6
6
  purpose: "Use when you're operating OpenRig and need the right skill or context for fleet recovery, seat handover, new-seat orientation, a watchdog wake, cross-host reach to an agent on another machine, rig packaging, an OpenRig upgrade, systematic debugging, queue triage, or implementation planning; also use when you don't know what applies or nothing is projected on cold boot."
7
7
  files:
@@ -1,7 +1,7 @@
1
1
  # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
2
  # Package-time projection of a canonical skill; regenerated every build.
3
3
  name: "openrig-upgrade"
4
- version: "0.5.6"
4
+ version: "0.5.7"
5
5
  taxonomy: "skills"
6
6
  purpose: "Use when upgrading the OpenRig CLI/daemon on a host with running rigs, especially when preserving tmux-backed agent sessions through a daemon restart or documenting hot-upgrade SOP evidence."
7
7
  files:
@@ -1,7 +1,7 @@
1
1
  # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
2
  # Package-time projection of a canonical skill; regenerated every build.
3
3
  name: "rig-bundles-and-shareable-artifacts"
4
- version: "0.5.6"
4
+ version: "0.5.7"
5
5
  taxonomy: "skills"
6
6
  purpose: "Use when authoring or installing a rig bundle (packaged, shareable artifact that instantiates an opinionated OpenRig topology + workflow), reasoning about the bundle vs extension boundary, or auditing a bundle for portability. Covers the 4 failure modes that prevent bundles from working anywhere but the operator's machine, and the inspect-before-install discipline."
7
7
  files:
@@ -1,7 +1,7 @@
1
1
  # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
2
  # Package-time projection of a canonical skill; regenerated every build.
3
3
  name: "rig-lifecycle"
4
- version: "0.5.6"
4
+ version: "0.5.7"
5
5
  taxonomy: "skills"
6
6
  purpose: "Use when reasoning about the rig lifecycle operations family (create / start / stop / resume / restore / snapshot / release / unclaim / destroy), reading or trusting `rig ps` / lifecycle projections after recovery, or designing proof for a lifecycle scenario. Covers the 4 failure modes (auto-restore creates partial rig; projections report healthier than reality; provider auth treated as impl work; resume succeeds for one runtime fails another) plus the restore-honesty rule (failed resume is FAIL"
7
7
  files:
@@ -1,7 +1,7 @@
1
1
  # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
2
  # Package-time projection of a canonical skill; regenerated every build.
3
3
  name: "session-source-fork"
4
- version: "0.5.6"
4
+ version: "0.5.7"
5
5
  taxonomy: "skills"
6
6
  purpose: "Use when authoring a rig spec member or `rig expand` payload that needs to start a new managed seat from a prior runtime conversation source — `session_source: { mode: fork, ref: { kind, value } }`. v1 supports `mode: fork` with `ref.kind: native_id` for Claude and Codex. The new seat persists a NEW post-fork token; the parent token is NEVER written onto the new seat. NOT for restoring an existing seat or for artifact-backed mental-model rebuild."
7
7
  files:
@@ -1,7 +1,7 @@
1
1
  # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
2
  # Package-time projection of a canonical skill; regenerated every build.
3
3
  name: "specification-system"
4
- version: "0.5.6"
4
+ version: "0.5.7"
5
5
  taxonomy: "skills"
6
6
  purpose: "Use when authoring rig specs, agent specs, workflow specs, startup/context fragments, operating-mode declarations, or designing the user spec library. Covers the 4 failure modes (spec instantiates topology but not workflow/mode; spec depends on local paths and fails on another host; agents modify specs as one-off files instead of preserving reusable intent; validation proves YAML shape but not whether topology can run) and the validation-vs-runtime-realization distinction."
7
7
  files:
@@ -1,7 +1,7 @@
1
1
  # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
2
  # Package-time projection of a canonical skill; regenerated every build.
3
3
  name: "topology-mutation-and-seat-management"
4
- version: "0.5.6"
4
+ version: "0.5.7"
5
5
  taxonomy: "skills"
6
6
  purpose: "Use when changing a rig while it is alive — `rig expand` / `rig shrink` / `rig launch` / `rig remove` / `rig discover` / `rig bind` / `rig adopt` / `rig attach`. Covers the 4 failure modes (newly created seat lacks queue/startup/role; edges and permissions not updated; adopt/bind succeeds at tmux but not OpenRig identity; shrink/remove leaves stale topology references) and the rule that mutation must work while the rig is active, not just in clean fixtures."
7
7
  files:
@@ -1,7 +1,7 @@
1
1
  # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
2
  # Package-time projection of a canonical skill; regenerated every build.
3
3
  name: "watchdog"
4
- version: "0.5.6"
4
+ version: "0.5.7"
5
5
  taxonomy: "skills"
6
6
  purpose: "Use when configuring `rig watchdog` policies, authoring wake/refocus/alignment-checkpoint messages, or choosing the right intervention level for a stale-owner situation. The 3-level continuity-check stack (wake / refocus / alignment-checkpoint), the discipline that prevents cadence pollution and bureaucracy theater, and the artifact-pool loop-edge pattern for evidence-aware waking."
7
7
  files:
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: delegating-work
3
+ description: "Use when you have a task and must decide WHO does it — yourself, a spawned subagent, or another agent in the topology that already holds the context. The rule: how much would a blank slate have to read in to do this correctly? A lot → route to a context-holding agent; a little → subagent; unsure → a real agent or yourself. NOT the mechanics of fanning out (that's dispatching-parallel-agents / subagent-driven-development) — this is the who/whether decision, and the failure mode that makes teams abandon subagents."
4
+ metadata:
5
+ openrig:
6
+ stage: field-captured
7
+ ---
8
+
9
+ # Delegating work — who should do this task?
10
+
11
+ ## The core question: context performance
12
+ Getting work done well is a context problem. The agent best suited to a task is **the one who already holds the context that task requires.** Before you spawn a subagent or grind it out yourself, ask who that is.
13
+
14
+ ## The decision
15
+ **Ask: how much would a blank slate have to read in before it could do this correctly?**
16
+
17
+ - **A lot to read in → route to a real agent in the topology that already holds it.** This is what the role structure is FOR — reviewers, QA, implementers who have been on a project over time. An agent that already understands the work produces a better, safer result than any amount of briefing.
18
+ - **A little — a prompt plus light grounding is enough → spawn a subagent.**
19
+ - **Genuinely unsure → err toward a real agent, or do it yourself.**
20
+
21
+ ## Subagents are underused — reach for them far more
22
+ For self-contained work that is fully specifiable in the prompt, spawn a subagent instead of spending your own context: tracing, research, grounding passes, summarizing, scanning log files, searching, fetching, web search, mechanical extraction with citations. This is the common shape and it is under-used.
23
+
24
+ ## The failure mode — the part that matters most
25
+ **Subagents start as blank slates, and you cannot anticipate everything they need to know.** Give one a task where there is a lot to understand and it will have blind spots it does not know it has — it will complete the task and **return a false conclusion**, not from weakness but because it lacked the context to know what "correct" even looked like.
26
+
27
+ This is the unknown-unknowns problem, and it is the single most common subagent failure: **a poorly-contextualized summary is worse than no summary, because it arrives looking like an answer.** Overreliance on subagents for context-heavy work causes more problems than it solves — and a team burned by it stops using subagents at all, which is the wrong correction. The fix is not "avoid subagents"; it is "match the task to the context it needs."
28
+
29
+ ## The practical test
30
+ Before delegating to a blank slate, ask: **would a wrong-but-plausible answer here be detectable?** If the requester cannot check the result against something they already know — a citation they can open, a count they can re-run — the blind-spot risk is unacceptable, and that task belongs with an agent that holds the context.
31
+
32
+ ## Worked examples
33
+ - **GOOD (→ subagent):** extract how four apps implement a UI mechanism, with `file:line` citations and an explicit instruction to report facts, not recommendations. Self-contained; the requester can verify the citations.
34
+ - **BAD to delegate blind (→ routed to the context-holder):** an independent security re-sweep of a rewritten git branch, where knowing which commit range must stay byte-identical, and that "lightly obfuscated real values" is the thing to hunt, takes a paragraph to explain and one sentence to get wrong. It went to the agent already holding the context.
35
+
36
+ ## It generalizes
37
+ This is really **"route work to whoever holds the context,"** with subagents as the option for work that needs none. The audience is **every agent** — implementers and QA seats make this call as much as orchestrators do.
38
+
39
+ ## Once you've decided
40
+ - Decided on subagents for 2+ independent tasks → `dispatching-parallel-agents` (the fan-out mechanics).
41
+ - Subagents executing a plan's independent tasks → `subagent-driven-development`.
42
+ - Routing to a real agent you will direct over multiple rounds → `directing-partner-agents`.
43
+ - The right context-holder is the human → `human-in-the-loop`.
@@ -0,0 +1,10 @@
1
+ # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
+ # Package-time projection of a canonical skill; regenerated every build.
3
+ name: "delegating-work"
4
+ version: "0.5.7"
5
+ taxonomy: "skills"
6
+ purpose: "Use when you have a task and must decide WHO does it — yourself, a spawned subagent, or another agent in the topology that already holds the context. The rule: how much would a blank slate have to read in to do this correctly? A lot → route to a context-holding agent; a little → subagent; unsure → a real agent or yourself. NOT the mechanics of fanning out (that's dispatching-parallel-agents / subagent-driven-development) — this is the who/whether decision, and the failure mode that makes teams a"
7
+ files:
8
+ - path: "SKILL.md"
9
+ role: "instruction"
10
+ summary: "Use when you have a task and must decide WHO does it — yourself, a spawned subagent, or another agent in the topology that already holds the context. The rule: how much would a blank slate have to read in to do this correctly? A lot → route to a context-holding agent; a little → subagent; unsure → a real agent or yourself. NOT the mechanics of fanning out (that's dispatching-parallel-agents / subagent-driven-development) — this is the who/whether decision, and the failure mode that makes teams a"
@@ -0,0 +1,318 @@
1
+ ---
2
+ name: forming-an-openrig-mental-model
3
+ description: >-
4
+ Use when the system around you does not make sense yet: you just booted into a seat and do not
5
+ know how the pieces fit; someone said rig, pod, seat, fleet, topology, or slice and you are not
6
+ certain what they mean here; you are unsure what kind of rig you are in or what it is for; you do
7
+ not know how skills reach you or where context comes from; or you are about to act on a guess
8
+ about how OpenRig works. Gives the runtime mental model fast, so you stop guessing.
9
+ metadata:
10
+ cli_surfaces_referenced:
11
+ - ask
12
+ - capture
13
+ - down
14
+ - ps
15
+ - send
16
+ - transcript
17
+ - up
18
+ - whoami
19
+ openrig:
20
+ stage: factory-approved
21
+ sibling_skills:
22
+ - openrig-user
23
+ - openrig-operator
24
+ - openrig-builder
25
+ - openrig-architect
26
+ - openrig-upgrade
27
+ - ai-dev-workflows
28
+ - software-for-agents
29
+ ---
30
+
31
+ # Forming an OpenRig Mental Model
32
+
33
+ You're new to OpenRig — or returning after time away — and you need to
34
+ quickly understand what kind of system this is, what your seat is, and what
35
+ the moves are. This skill is the fast on-ramp.
36
+
37
+ For depth, read the canonical reference docs the skill points to. This
38
+ skill's job is to get you *oriented* — accurate enough to operate, fast
39
+ enough to be useful — not to replace the canonical docs.
40
+
41
+ ---
42
+
43
+ ## The 60-second mental model
44
+
45
+ OpenRig is a **local control plane for multi-agent coding topologies**. You
46
+ declare a topology of agents in YAML, boot it with one command, and OpenRig
47
+ manages tmux sessions, harness lifecycles, transcripts, snapshots, and
48
+ restoration. When the system goes down, OpenRig snapshots; when it comes
49
+ back, agents resume their conversations.
50
+
51
+ The product loop:
52
+
53
+ ```
54
+ down (auto-snapshot) → up <rig-name> (auto-restore) → work → repeat
55
+ ```
56
+
57
+ The unit of work is the **rig** — a topology of agents working together as
58
+ a single system.
59
+
60
+ ---
61
+
62
+ ## The four-layer model (where you live)
63
+
64
+ Everything in agent engineering happens at one of four layers. **OpenRig
65
+ operates at Layer 3.**
66
+
67
+ | Layer | Name | Analogy | What it is |
68
+ |---|---|---|---|
69
+ | L0 | Model | CPU | Foundation model — Claude, GPT, Gemini. Stateless tokens-in/tokens-out. |
70
+ | L1 | Agent Core | Process loop | The reason-and-act cycle: observe, plan, choose, act, repeat. |
71
+ | L2 | Harness | Container / OS | Tools, memory, lifecycle around the model. Examples: Claude Code, Codex CLI. |
72
+ | L3 | Rig | Docker Compose / Terraform | Multi-agent topology — what agents exist, how they relate. **OpenRig.** |
73
+
74
+ You are an agent at L1 inside an L2 harness, configured by L3 OpenRig.
75
+ OpenRig manages your harness; the harness wraps the model; the model
76
+ generates your tokens.
77
+
78
+ ---
79
+
80
+ ## Three pillars of context
81
+
82
+ OpenRig is built on three context-engineering pillars. When you're oriented,
83
+ you should know which pillar you're operating in:
84
+
85
+ | Pillar | What it is | Where it lives |
86
+ |---|---|---|
87
+ | **Ontology** | What exists. Curated knowledge — facts, code maps, as-built docs. | Corpus (planned future system). Today: substrate prose docs. |
88
+ | **Epistemology** | Why an agent believes what it believes — reasoning, instincts, decisions. | Transcripts (auto-captured). Session logs. ADRs. |
89
+ | **Topology** | How agents are connected — pods, edges, communication paths. | OpenRig itself. RigSpec YAML. |
90
+
91
+ OpenRig **manages the topology pillar**. The other two are filled by Corpus
92
+ (future) and transcripts (now). Most of your work probably touches multiple
93
+ pillars; knowing which one you're operating in helps you reach for the right
94
+ artifacts.
95
+
96
+ ---
97
+
98
+ ## The core vocabulary (read these terms literally)
99
+
100
+ | Term | What it means |
101
+ |---|---|
102
+ | **Rig** | A topology of agents working together as a single system. Defined in YAML (RigSpec). The top-level object. |
103
+ | **Pod** | A bounded context group within a rig. Members of a pod share a context domain and continuity responsibility. Think Kubernetes pod for knowledge. |
104
+ | **Member / Node** | A single agent (or terminal-node service) within a pod. |
105
+ | **Edge** | A relationship between members or pods. Kinds: `delegates_to`, `spawned_by`, `can_observe`, `collaborates_with`, `escalates_to`. |
106
+ | **Topology** | The shape of the rig — how agents are grouped into pods, how edges connect them, how the whole thing fits together. |
107
+ | **AgentSpec** | A reusable agent blueprint. Defines skills, guidance, hooks, profiles, startup. File: `agent.yaml`. |
108
+ | **RigSpec** | The topology YAML. Defines pods, members, edges, culture. File: `rig.yaml`. |
109
+ | **RigBundle** | A portable archive of a RigSpec + vendored AgentSpecs. Move topologies across machines. |
110
+ | **Agent Starter** | A named, reusable starting context bundle. RigSpec member can declare `starter_ref`. |
111
+ | **Skill** | A markdown file with frontmatter that an agent loads at boot or on activation. Cross-runtime standard at `agentskills.io`. |
112
+ | **Profile** | A named configuration within an AgentSpec. The rig spec's member field selects which profile to use. |
113
+ | **Culture** | Rig-wide constitution — how the team communicates, what "done" means, escalation rules. File: `CULTURE.md`. |
114
+ | **Snapshot** | Point-in-time capture of a rig — sessions, conversations, state. Restorable. |
115
+ | **Session name** | `{pod}-{member}@{rig}`. The canonical address for tmux sessions and agent-to-agent messaging. |
116
+
117
+ The session-name format `{pod}-{member}@{rig}` is your address. When you
118
+ run `rig whoami --json`, you get back your full topology context: rig name,
119
+ pod, member, peers, edges, transcript path.
120
+
121
+ ---
122
+
123
+ ## Rig classes (what kind of rig am I in?)
124
+
125
+ OpenRig has five rig classes. The class determines authoring discipline,
126
+ supervision, and lifecycle policy.
127
+
128
+ | Class | Purpose | Lifecycle |
129
+ |---|---|---|
130
+ | **kernel** | Host-level supervision, intake, authoring. One per host. | Always on; never auto-hibernated. |
131
+ | **project** | Long-lived team bound to a codebase. | Stays hot when active; hibernates on explicit request. |
132
+ | **ephemeral** | Short-lived mission (research, build, migration, spike). | Spawn → work → retire. |
133
+ | **infra-build** | Subclass of ephemeral whose output becomes permanent infrastructure. | Retired only after output verified in place. |
134
+ | **managed-app** | Services-backed rig with specialist agents (e.g., a vault specialist, a skill librarian). | Long-lived; accessed by other rigs. |
135
+
136
+ You're probably in a project rig or managed-app rig if you're doing
137
+ substantive work. Knowing your class helps you understand the supervisory
138
+ expectations on your seat.
139
+
140
+ ---
141
+
142
+ ## How skills load (the most important thing to get right)
143
+
144
+ Skills are an **established cross-runtime standard** at
145
+ `https://agentskills.io/specification`. Both Claude Code and Codex build on it.
146
+
147
+ ### The shape
148
+
149
+ A skill is a directory containing `SKILL.md` (uppercase). The SKILL.md has
150
+ YAML frontmatter (`name`, `description`) and a Markdown body. Optional
151
+ sibling directories: `references/`, `scripts/`, `assets/`.
152
+
153
+ ### Progressive disclosure (why skills scale)
154
+
155
+ The harness reads frontmatter cheaply at boot — names + descriptions of all
156
+ available skills. Body content loads only when a skill activates. This is
157
+ **ambient awareness** — you know all the skills exist; you only pay token
158
+ cost when you reach for one.
159
+
160
+ ### Where skills come from in OpenRig
161
+
162
+ - **Per-agent loadout:** your AgentSpec's `profile.uses.skills: [...]`
163
+ determines what skills get projected into your runtime skill folder
164
+ (`.claude/skills/` or `.agents/skills/`) before your harness boots. This
165
+ is the **structural composition** layer.
166
+ - **Cross-pod sharing:** AgentSpecs can `imports: [shared]` to access a
167
+ shared skill pool. Built-in agents commonly do this.
168
+ - **Belt-and-suspenders:** the spec projects skill files; startup guidance
169
+ also tells you to load specific skills. Both paths matter — if the
170
+ projection silently fails, the guidance still tells you what to read.
171
+
172
+ ### Where skills live (sources of truth)
173
+
174
+ | Home | Purpose |
175
+ |---|---|
176
+ | `<rig-cwd>/.claude/skills/`, `<rig-cwd>/.agents/skills/` | Where the harness actually loads from. Populated by `rig up`. |
177
+ | `~/.claude/skills/`, `~/.agents/skills/` | Your personal / user-installed global skills, loaded by the harness itself (independent of OpenRig). NOT where OpenRig's own bootstrap skills live — those ship in the product (below) and project into the cwd `.claude/skills/` at `rig up`. |
178
+ | `openrig/packages/daemon/{specs/agents/shared/skills,assets/plugins/*/skills}/` | Product skills that ship with OpenRig — the spec pool + the bundled plugin assets (openrig-user, openrig-operator, openrig-architect, forming-an-openrig-mental-model, queue-handoff, claude-compaction-restore, …). |
179
+ | `~/.openrig/skills/` | Future runtime install home for OpenRig-shipped skills. |
180
+ | the skills authoring workspace | Skill authoring source (not runtime-loaded). |
181
+
182
+ The harness only sees the first two. Other locations are authoring,
183
+ shipping, and source-of-truth — they reach the harness via projection or
184
+ NPM install, not directly.
185
+
186
+ ---
187
+
188
+ ## The product loop (your day-to-day)
189
+
190
+ ```
191
+ rig up <rig-name> # boot or restore the topology
192
+ rig ps --nodes # see what's running
193
+ rig whoami --json # know who you are
194
+ rig send <session> "msg" # talk to a peer
195
+ rig capture <session> # see a peer's terminal
196
+ rig transcript <session> # read a peer's history
197
+ rig down <rigId> # snapshot and tear down
198
+ rig up <rig-name> # restore from snapshot
199
+ ```
200
+
201
+ The first command in any new seat is `rig whoami --json`. It tells you your
202
+ rig, pod, member, peers, edges, and transcript path. **Treat it as ground
203
+ truth — your CLAUDE.md or AGENTS.md startup overlay can be wrong; whoami
204
+ is authoritative.**
205
+
206
+ ---
207
+
208
+ ## Cultural posture (how to behave)
209
+
210
+ OpenRig has a few load-bearing cultural principles. Internalize these:
211
+
212
+ - **Honesty over convenience.** If resume fails, say so loudly. Don't
213
+ silently launch fresh.
214
+ - **The agent is the power user.** The CLI is designed for a 10x staff
215
+ engineer at the terminal. You're that user.
216
+ - **CLI is context engineering.** Every error message and help text gives
217
+ you information to act on. Read errors carefully.
218
+ - **Convention over invention.** Follow docker/git/kubectl patterns. Agent
219
+ muscle memory is real.
220
+ - **Semi-deterministic is OK.** Core contracts are solid; edge cases are
221
+ agent-handled.
222
+ - **Pets, not cattle (today).** OpenRig is currently optimized for long-lived
223
+ agents that develop instincts over sessions. Cattle support is on the
224
+ roadmap.
225
+
226
+ ---
227
+
228
+ ## What you should do in your first 10 minutes
229
+
230
+ If you're booting into a new seat in an OpenRig rig:
231
+
232
+ 1. **`rig whoami --json`** — recover identity. Know your rig, pod, member,
233
+ peers.
234
+ 2. **Read your role guidance** — typically delivered via startup files.
235
+ `guidance/role.md` for your specific seat.
236
+ 3. **Read the rig's `CULTURE.md`** if it has one — the team operating
237
+ manual.
238
+ 4. **Check what skills you have** — list `.claude/skills/` or
239
+ `.agents/skills/` in your cwd. Each skill has a frontmatter description
240
+ that tells you when to reach for it.
241
+ 5. **Check your peers** — `rig capture <peer-session>` to see what they're
242
+ doing.
243
+ 6. **Check the transcripts** if you're returning to an in-flight workstream
244
+ — `rig transcript <session> --tail 100` for recent context.
245
+ 7. **Ask `rig ask <rig> "<question>"`** if you need cross-cutting evidence
246
+ from the rig's transcripts and chat.
247
+
248
+ You're now oriented enough to start doing useful work.
249
+
250
+ **Permission policy (at setup):** OpenRig sets only a minimal usability floor on your harness permissions, then offers recommended policies you opt into (Locked / Standard / Open — or YOLO to bypass). If you're creating or bringing up a rig, that's a choice you make, not something OpenRig decides for you — see openrig-user's "Permission policy — pick one at setup" and the `applying-a-permission-policy` skill.
251
+
252
+ ---
253
+
254
+ ## Going deeper (canonical references)
255
+
256
+ For real depth, these are the load-bearing canonical docs:
257
+
258
+ | Reference | What it covers |
259
+ |---|---|
260
+ | `openrig/docs/as-built/README.md` | As-built map of territory — daemon architecture, system overview, package boundaries; routes to the 13 `architecture/` + 4 `ui/` modules via `codemap.md` |
261
+ | `openrig/docs/as-built/cli-reference.md` | The full `rig` CLI surface with all subcommands and flags |
262
+ | `openrig/docs/reference/rig-spec.md` | The RigSpec YAML format — pods, members, edges, all fields |
263
+ | `openrig/docs/reference/agent-spec.md` | The AgentSpec YAML format — resources, profiles, imports |
264
+ | `openrig/docs/reference/agent-startup-guide.md` | The 7-layer startup layering model; delivery hints |
265
+ | the product taxonomy | Canonical vocabulary (read literally) |
266
+ | `openrig-operating-model` skill | Placement and operating-model guidance — topology and work trees, context altitude |
267
+ | `openrig-architect` skill | Rig and topology authoring |
268
+ | `https://agentskills.io/specification` | The cross-runtime skill standard |
269
+
270
+ If you're going to be authoring rigs, use the `openrig-architect` skill before
271
+ touching YAML.
272
+
273
+ ---
274
+
275
+ ## What this skill is NOT for
276
+
277
+ - **Compaction recovery.** That's `claude-compaction-restore`. Different
278
+ skill, different scenario.
279
+ - **Operating a specific rig.** Specific rigs have their own DESIGN.md and
280
+ CULTURE.md. Read those.
281
+ - **Authoring a new rig.** Use the `openrig-architect` skill for that.
282
+ - **Day-to-day OpenRig operation.** Use `openrig-user` for that.
283
+ - **Administering an OpenRig install.** Use `openrig-operator`.
284
+
285
+ This skill exists to **form your initial mental model of OpenRig as a
286
+ system**. Once oriented, reach for the role-specific or task-specific skills
287
+ that fit your actual work.
288
+
289
+ ---
290
+
291
+ ## Common misorientations to avoid
292
+
293
+ | Misorientation | Reality |
294
+ |---|---|
295
+ | "OpenRig is a chat interface or assistant" | No. OpenRig is a control plane that *manages* your harness sessions. The chat happens inside the harness; OpenRig is around it. |
296
+ | "Pods are workflow groups" | No. Pods are **context domains** — agents that share working context. If two agents communicate every turn, they should be in one pod; if they communicate rarely, they shouldn't be. |
297
+ | "Edges represent reporting hierarchy" | No. Edges describe *coordination shape* — who delegates to whom, who observes whom. Avoid hierarchy interpretations; they distort behavior. |
298
+ | "I should manage Codex's compaction the way I manage Claude's" | No. Codex auto-compacts cleanly; Claude doesn't. Different runtimes, different lifecycles. |
299
+ | "MEMORY.md auto-loads, so I don't need to read it" | Maybe. Sometimes MEMORY.md auto-loads via system reminders; sometimes not. Don't assume. If your work touches the topics it covers, read it explicitly. |
300
+ | "Skills inherit from a parent or compose like classes" | No. Skills are flat artifacts; composition happens via AgentSpec `profile.uses.skills` (structural) or soft cross-references in skill bodies (advisory). Not via OO-style inheritance. |
301
+ | "The substrate `shared-docs/skills/` folder is the canonical runtime path" | No. The harness doesn't read there. It's an authoring workspace. Runtime loads from `.claude/skills/`, `.agents/skills/`, and product built-in. |
302
+
303
+ ---
304
+
305
+ ## Disaster-recovery test for this skill
306
+
307
+ If you read only this skill, can you:
308
+
309
+ 1. State what kind of system OpenRig is, in one sentence?
310
+ 2. Name the four layers and where you live?
311
+ 3. Run `rig whoami --json` and interpret the output?
312
+ 4. Find your role guidance and your peers?
313
+ 5. Identify what kind of rig you're in (kernel / project / ephemeral / etc.)?
314
+ 6. Know where to look for a skill body (which folder)?
315
+ 7. Know what to read next for depth (the canonical references)?
316
+
317
+ If yes — you're oriented. If no — tell your peer or the human; missing
318
+ context is fixable, but only if surfaced.
@@ -0,0 +1,10 @@
1
+ # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
+ # Package-time projection of a canonical skill; regenerated every build.
3
+ name: "forming-an-openrig-mental-model"
4
+ version: "0.5.7"
5
+ taxonomy: "skills"
6
+ purpose: "Use when the system around you does not make sense yet: you just booted into a seat and do not know how the pieces fit; someone said rig, pod, seat, fleet, topology, or slice and you are not certain what they mean here; you are unsure what kind of rig you are in or what it is for; you do not know how skills reach you or where context comes from; or you are about to act on a guess about how OpenRig works. Gives the runtime mental model fast, so you stop guessing."
7
+ files:
8
+ - path: "SKILL.md"
9
+ role: "instruction"
10
+ summary: "Use when the system around you does not make sense yet: you just booted into a seat and do not know how the pieces fit; someone said rig, pod, seat, fleet, topology, or slice and you are not certain what they mean here; you are unsure what kind of rig you are in or what it is for; you do not know how skills reach you or where context comes from; or you are about to act on a guess about how OpenRig works. Gives the runtime mental model fast, so you stop guessing."
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: loading-addressable-markdown
3
+ description: Use when a mission, slice, dashboard, or task references Markdown as path#h2-slug or path#h2-slug/h3-slug outside the OpenRig context-pack library.
4
+ ---
5
+
6
+ # Loading Addressable Markdown
7
+
8
+ ## Overview
9
+
10
+ Load exactly one addressed Markdown section from any filesystem tree. The resolver mirrors OpenRig's shipped H2/H3 grammar without requiring the file to live in the context library.
11
+
12
+ ## Use
13
+
14
+ Run the bundled script. Relative file references resolve from `--root`; without it they resolve from the current directory.
15
+
16
+ ```bash
17
+ node ~/.agents/skills/loading-addressable-markdown/scripts/resolve-markdown.mjs \
18
+ --root /path/to/mission \
19
+ 'slices/09-source-cleanup/SPEC.md#proposal'
20
+ ```
21
+
22
+ The accepted forms are:
23
+
24
+ - `file.md` — whole file
25
+ - `file.md#h2-slug` — full H2 span, including child sections
26
+ - `file.md#h2-slug/h3-slug` — full H3 span
27
+
28
+ Slugs are lowercase; Markdown emphasis/code markers are removed; each other non-alphanumeric run becomes `-`. Duplicate or missing paths fail loudly. Headings inside fenced code blocks are ignored.
29
+
30
+ ## Common mistakes
31
+
32
+ - Do not use `rig context get` for an arbitrary filesystem path; that command resolves context-library refs.
33
+ - Do not hand-slice headings with `sed` or line numbers; the bundled resolver owns span and fence behavior.
34
+ - Quote addresses in shell commands.
@@ -0,0 +1,12 @@
1
+ # GENERATED by scripts/generate-context-packs.mjs — DO NOT EDIT.
2
+ # Package-time projection of a canonical skill; regenerated every build.
3
+ name: "loading-addressable-markdown"
4
+ version: "0.5.7"
5
+ taxonomy: "skills"
6
+ purpose: "Use when a mission, slice, dashboard, or task references Markdown as path#h2-slug or path#h2-slug/h3-slug outside the OpenRig context-pack library."
7
+ files:
8
+ - path: "SKILL.md"
9
+ role: "instruction"
10
+ summary: "Use when a mission, slice, dashboard, or task references Markdown as path#h2-slug or path#h2-slug/h3-slug outside the OpenRig context-pack library."
11
+ - path: "scripts/resolve-markdown.mjs"
12
+ role: "reference"