@openrig/cli 0.5.5 → 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 (915) hide show
  1. package/daemon/assets/continuity/apprentice-cutover.md +19 -0
  2. package/daemon/assets/continuity/apprentice-prepare.md +17 -0
  3. package/daemon/assets/plugins/openrig-core/README.md +1 -1
  4. package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +81 -4
  5. package/daemon/assets/plugins/openrig-core/skills/applying-a-permission-policy/SKILL.md +3 -3
  6. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/precompact-hook.mjs +0 -0
  7. package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +0 -0
  8. package/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model/SKILL.md +4 -9
  9. package/daemon/assets/plugins/openrig-core/skills/loading-addressable-markdown/SKILL.md +34 -0
  10. package/daemon/assets/plugins/openrig-core/skills/loading-addressable-markdown/scripts/resolve-markdown.mjs +170 -0
  11. package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +82 -118
  12. package/daemon/assets/plugins/openrig-core/skills/mission-slice-sop/SKILL.md +24 -25
  13. package/daemon/assets/plugins/openrig-core/skills/openrig-operating-model/SKILL.md +5 -12
  14. package/daemon/assets/plugins/openrig-core/skills/openrig-operating-model/scripts/compose.py +36 -117
  15. package/daemon/assets/plugins/openrig-core/skills/openrig-skills/SKILL.md +10 -10
  16. package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +1 -12
  17. package/daemon/assets/plugins/openrig-core/skills/orienting-to-an-inherited-seat/CHANGELOG.md +1 -1
  18. package/daemon/assets/plugins/openrig-core/skills/orienting-to-an-inherited-seat/SKILL.md +15 -0
  19. package/daemon/assets/plugins/openrig-core/skills/queue-handoff/SKILL.md +4 -16
  20. package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +50 -7
  21. package/daemon/assets/plugins/openrig-core/skills/retiring-and-inheriting-a-seat/SKILL.md +26 -6
  22. package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/SKILL.md +3 -0
  23. package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/references/apprentice-evidence-toolkit.md +32 -0
  24. package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/references/apprentice-successor-seat-cutover.md +256 -0
  25. package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/references/orchestrator-role.md +40 -0
  26. package/daemon/assets/vm-preview-fixtures/README.md +16 -38
  27. package/daemon/assets/vm-preview-fixtures/workflows/sample-basic-loop.yaml +7 -8
  28. package/daemon/context-packs/onboarding-width/manifest.yaml +4 -1
  29. package/daemon/context-packs/onboarding-width/public-reference-material.md +1 -1
  30. package/daemon/context-packs/skills/applying-a-permission-policy/SKILL.md +120 -0
  31. package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +10 -0
  32. package/daemon/context-packs/skills/claude-compaction-restore/SKILL.md +166 -0
  33. package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +18 -0
  34. package/daemon/context-packs/skills/claude-compaction-restore/scripts/precompact-hook.mjs +174 -0
  35. package/daemon/context-packs/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +487 -0
  36. package/daemon/context-packs/skills/claude-compaction-restore/templates/compact-instruction.md +1 -0
  37. package/daemon/context-packs/skills/claude-compaction-restore/templates/post-compact-restore-instruction.md +1 -0
  38. package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +2 -1
  39. package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +2 -1
  40. package/daemon/context-packs/skills/core/cross-host-rig-commands/SKILL.md +6 -13
  41. package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +2 -1
  42. package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +2 -1
  43. package/daemon/context-packs/skills/core/messaging-the-human/SKILL.md +98 -0
  44. package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +10 -0
  45. package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +2 -1
  46. package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +2 -1
  47. package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +2 -1
  48. package/daemon/context-packs/skills/core/openrig-skills/SKILL.md +115 -0
  49. package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +10 -0
  50. package/daemon/context-packs/skills/core/openrig-upgrade/SKILL.md +19 -75
  51. package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +2 -1
  52. package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +2 -1
  53. package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +2 -1
  54. package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +2 -1
  55. package/daemon/context-packs/skills/core/specification-system/manifest.yaml +2 -1
  56. package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +2 -1
  57. package/daemon/context-packs/skills/core/watchdog/SKILL.md +4 -10
  58. package/daemon/context-packs/skills/core/watchdog/manifest.yaml +2 -1
  59. package/daemon/context-packs/skills/delegating-work/SKILL.md +43 -0
  60. package/daemon/context-packs/skills/delegating-work/manifest.yaml +10 -0
  61. package/daemon/context-packs/skills/forming-an-openrig-mental-model/SKILL.md +318 -0
  62. package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +10 -0
  63. package/daemon/context-packs/skills/loading-addressable-markdown/SKILL.md +34 -0
  64. package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +12 -0
  65. package/daemon/context-packs/skills/loading-addressable-markdown/scripts/resolve-markdown.mjs +170 -0
  66. package/daemon/context-packs/skills/mission-slice-sop/SKILL.md +94 -0
  67. package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +10 -0
  68. package/daemon/context-packs/skills/openrig-operating-model/SKILL.md +397 -0
  69. package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +30 -0
  70. package/daemon/context-packs/skills/openrig-operating-model/scripts/compose.py +572 -0
  71. package/daemon/context-packs/skills/openrig-operating-model/scripts/scaffold.sh +34 -0
  72. package/daemon/context-packs/skills/openrig-operating-model/scripts/trace-due.sh +32 -0
  73. package/daemon/context-packs/skills/openrig-operating-model/scripts/trace-stamp.sh +5 -0
  74. package/daemon/context-packs/skills/openrig-operating-model/scripts/trunk-diff.sh +18 -0
  75. package/daemon/context-packs/skills/openrig-operating-model/templates/LEARNED.md +40 -0
  76. package/daemon/context-packs/skills/openrig-operating-model/templates/NOTES.md +9 -0
  77. package/daemon/context-packs/skills/openrig-operating-model/templates/PLAYBOOK.md +5 -0
  78. package/daemon/context-packs/skills/openrig-operating-model/templates/SOP.md +24 -0
  79. package/daemon/context-packs/skills/openrig-operating-model/templates/SPEC.md +54 -0
  80. package/daemon/context-packs/skills/openrig-user/SKILL.md +1374 -0
  81. package/daemon/context-packs/skills/openrig-user/manifest.yaml +10 -0
  82. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/CHANGELOG.md +64 -0
  83. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/SKILL.md +250 -0
  84. package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +12 -0
  85. package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +2 -1
  86. package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +2 -1
  87. package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +2 -1
  88. package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +2 -1
  89. package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +2 -1
  90. package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +2 -1
  91. package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +2 -1
  92. package/daemon/context-packs/skills/pods/development-team/manifest.yaml +2 -1
  93. package/daemon/context-packs/skills/pods/orchestration-team/SKILL.md +1 -1
  94. package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +2 -1
  95. package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +2 -1
  96. package/daemon/context-packs/skills/pods/review-team/SKILL.md +1 -1
  97. package/daemon/context-packs/skills/pods/review-team/manifest.yaml +2 -1
  98. package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +2 -1
  99. package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +2 -1
  100. package/daemon/context-packs/skills/process/dogfood/manifest.yaml +2 -1
  101. package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +2 -1
  102. package/daemon/context-packs/skills/process/systematic-debugging/find-polluter.sh +0 -0
  103. package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +2 -1
  104. package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +2 -1
  105. package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +2 -1
  106. package/daemon/context-packs/skills/queue-handoff/SKILL.md +192 -0
  107. package/daemon/context-packs/skills/queue-handoff/manifest.yaml +10 -0
  108. package/daemon/context-packs/skills/refocusing/SKILL.md +31 -0
  109. package/daemon/context-packs/skills/refocusing/manifest.yaml +14 -0
  110. package/daemon/context-packs/skills/refocusing/references/refocus.md +22 -0
  111. package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +264 -0
  112. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/CHANGELOG.md +48 -0
  113. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/SKILL.md +231 -0
  114. package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +12 -0
  115. package/daemon/context-packs/skills/seat-continuity-and-handover/SKILL.md +151 -0
  116. package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +16 -0
  117. package/daemon/context-packs/skills/seat-continuity-and-handover/references/apprentice-evidence-toolkit.md +32 -0
  118. package/daemon/context-packs/skills/seat-continuity-and-handover/references/apprentice-successor-seat-cutover.md +256 -0
  119. package/daemon/context-packs/skills/seat-continuity-and-handover/references/orchestrator-role.md +40 -0
  120. package/daemon/context-packs/skills/session-compaction-and-restore/SKILL.md +163 -0
  121. package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +10 -0
  122. package/daemon/context-packs/skills/software-for-agents/SKILL.md +187 -0
  123. package/daemon/context-packs/skills/software-for-agents/manifest.yaml +10 -0
  124. package/daemon/context-packs/world-example/manifest.yaml +15 -2
  125. package/daemon/context-packs/world-example/your-world.md +19 -2
  126. package/daemon/context-packs/world-public/boundaries.md +33 -0
  127. package/daemon/context-packs/world-public/build-your-world.md +84 -0
  128. package/daemon/context-packs/world-public/claims.yaml +205 -0
  129. package/daemon/context-packs/world-public/manifest.yaml +59 -0
  130. package/daemon/context-packs/world-public/start-here.md +51 -0
  131. package/daemon/context-packs/world-public/verify-world.sh +522 -0
  132. package/daemon/dist/build-info.js +3 -3
  133. package/daemon/dist/builtins/workflow-specs/basic-loop.yaml +3 -3
  134. package/daemon/dist/builtins/workflow-specs/conveyor.yaml +1 -1
  135. package/daemon/dist/builtins/workflow-specs/factory-rsi.yaml +1 -1
  136. package/daemon/dist/context-pack-taxonomy-surface.d.ts +2 -0
  137. package/daemon/dist/context-pack-taxonomy-surface.d.ts.map +1 -0
  138. package/daemon/dist/context-pack-taxonomy-surface.js +6 -0
  139. package/daemon/dist/context-pack-taxonomy-surface.js.map +1 -0
  140. package/daemon/dist/db/all-migrations.d.ts +1 -1
  141. package/daemon/dist/db/all-migrations.d.ts.map +1 -1
  142. package/daemon/dist/db/all-migrations.js +10 -2
  143. package/daemon/dist/db/all-migrations.js.map +1 -1
  144. package/daemon/dist/db/migrations/074_context_usage_watchdog.d.ts +4 -0
  145. package/daemon/dist/db/migrations/074_context_usage_watchdog.d.ts.map +1 -0
  146. package/daemon/dist/db/migrations/074_context_usage_watchdog.js +11 -0
  147. package/daemon/dist/db/migrations/074_context_usage_watchdog.js.map +1 -0
  148. package/daemon/dist/db/migrations/075_context_usage_watchdog_generation.d.ts +4 -0
  149. package/daemon/dist/db/migrations/075_context_usage_watchdog_generation.d.ts.map +1 -0
  150. package/daemon/dist/db/migrations/075_context_usage_watchdog_generation.js +8 -0
  151. package/daemon/dist/db/migrations/075_context_usage_watchdog_generation.js.map +1 -0
  152. package/daemon/dist/db/migrations/076_owner_notification_levels.d.ts +8 -0
  153. package/daemon/dist/db/migrations/076_owner_notification_levels.d.ts.map +1 -0
  154. package/daemon/dist/db/migrations/076_owner_notification_levels.js +15 -0
  155. package/daemon/dist/db/migrations/076_owner_notification_levels.js.map +1 -0
  156. package/daemon/dist/db/migrations/077_node_session_source.d.ts +4 -0
  157. package/daemon/dist/db/migrations/077_node_session_source.d.ts.map +1 -0
  158. package/daemon/dist/db/migrations/077_node_session_source.js +6 -0
  159. package/daemon/dist/db/migrations/077_node_session_source.js.map +1 -0
  160. package/daemon/dist/domain/active-occupant.d.ts +44 -0
  161. package/daemon/dist/domain/active-occupant.d.ts.map +1 -0
  162. package/daemon/dist/domain/active-occupant.js +72 -0
  163. package/daemon/dist/domain/active-occupant.js.map +1 -0
  164. package/daemon/dist/domain/agent-manifest.d.ts +6 -0
  165. package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
  166. package/daemon/dist/domain/agent-manifest.js +77 -15
  167. package/daemon/dist/domain/agent-manifest.js.map +1 -1
  168. package/daemon/dist/domain/agent-resolver.d.ts +11 -0
  169. package/daemon/dist/domain/agent-resolver.d.ts.map +1 -1
  170. package/daemon/dist/domain/agent-resolver.js +55 -0
  171. package/daemon/dist/domain/agent-resolver.js.map +1 -1
  172. package/daemon/dist/domain/bundle-context-packs-router.d.ts +9 -2
  173. package/daemon/dist/domain/bundle-context-packs-router.d.ts.map +1 -1
  174. package/daemon/dist/domain/bundle-context-packs-router.js +18 -0
  175. package/daemon/dist/domain/bundle-context-packs-router.js.map +1 -1
  176. package/daemon/dist/domain/claude-compaction-enforcer.d.ts +7 -0
  177. package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  178. package/daemon/dist/domain/claude-compaction-enforcer.js +10 -0
  179. package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  180. package/daemon/dist/domain/context-packs/context-pack-library-service.d.ts.map +1 -1
  181. package/daemon/dist/domain/context-packs/context-pack-library-service.js +7 -0
  182. package/daemon/dist/domain/context-packs/context-pack-library-service.js.map +1 -1
  183. package/daemon/dist/domain/context-packs/context-pack-types.d.ts +11 -0
  184. package/daemon/dist/domain/context-packs/context-pack-types.d.ts.map +1 -1
  185. package/daemon/dist/domain/context-packs/context-pack-types.js +11 -0
  186. package/daemon/dist/domain/context-packs/context-pack-types.js.map +1 -1
  187. package/daemon/dist/domain/context-packs/manifest-parser.d.ts.map +1 -1
  188. package/daemon/dist/domain/context-packs/manifest-parser.js +18 -7
  189. package/daemon/dist/domain/context-packs/manifest-parser.js.map +1 -1
  190. package/daemon/dist/domain/context-packs/profile-composer.d.ts +1 -1
  191. package/daemon/dist/domain/context-packs/profile-composer.d.ts.map +1 -1
  192. package/daemon/dist/domain/context-packs/profile-composer.js +2 -2
  193. package/daemon/dist/domain/context-packs/profile-composer.js.map +1 -1
  194. package/daemon/dist/domain/context-packs/profile-source-resolver.d.ts +3 -1
  195. package/daemon/dist/domain/context-packs/profile-source-resolver.d.ts.map +1 -1
  196. package/daemon/dist/domain/context-packs/profile-source-resolver.js +3 -2
  197. package/daemon/dist/domain/context-packs/profile-source-resolver.js.map +1 -1
  198. package/daemon/dist/domain/continuity-policy-materializer.d.ts +88 -0
  199. package/daemon/dist/domain/continuity-policy-materializer.d.ts.map +1 -0
  200. package/daemon/dist/domain/continuity-policy-materializer.js +290 -0
  201. package/daemon/dist/domain/continuity-policy-materializer.js.map +1 -0
  202. package/daemon/dist/domain/continuity-stack-packets.d.ts +65 -0
  203. package/daemon/dist/domain/continuity-stack-packets.d.ts.map +1 -0
  204. package/daemon/dist/domain/continuity-stack-packets.js +99 -0
  205. package/daemon/dist/domain/continuity-stack-packets.js.map +1 -0
  206. package/daemon/dist/domain/execution-view.d.ts +39 -0
  207. package/daemon/dist/domain/execution-view.d.ts.map +1 -0
  208. package/daemon/dist/domain/execution-view.js +707 -0
  209. package/daemon/dist/domain/execution-view.js.map +1 -0
  210. package/daemon/dist/domain/gateway/delivery-rules-engine.d.ts +60 -0
  211. package/daemon/dist/domain/gateway/delivery-rules-engine.d.ts.map +1 -0
  212. package/daemon/dist/domain/gateway/delivery-rules-engine.js +144 -0
  213. package/daemon/dist/domain/gateway/delivery-rules-engine.js.map +1 -0
  214. package/daemon/dist/domain/gateway/destination-resolver.d.ts +20 -0
  215. package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -0
  216. package/daemon/dist/domain/gateway/destination-resolver.js +52 -0
  217. package/daemon/dist/domain/gateway/destination-resolver.js.map +1 -0
  218. package/daemon/dist/domain/gateway/dispatcher.d.ts +3 -1
  219. package/daemon/dist/domain/gateway/dispatcher.d.ts.map +1 -1
  220. package/daemon/dist/domain/gateway/dispatcher.js +9 -2
  221. package/daemon/dist/domain/gateway/dispatcher.js.map +1 -1
  222. package/daemon/dist/domain/gateway/gateway-subsystem.d.ts +6 -2
  223. package/daemon/dist/domain/gateway/gateway-subsystem.d.ts.map +1 -1
  224. package/daemon/dist/domain/gateway/gateway-subsystem.js +5 -3
  225. package/daemon/dist/domain/gateway/gateway-subsystem.js.map +1 -1
  226. package/daemon/dist/domain/gateway/human-registry.d.ts +9 -1
  227. package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
  228. package/daemon/dist/domain/gateway/human-registry.js +32 -1
  229. package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
  230. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts +32 -0
  231. package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -0
  232. package/daemon/dist/domain/gateway/operator-delivery-engine.js +86 -0
  233. package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -0
  234. package/daemon/dist/domain/gateway/slack/config.d.ts +3 -2
  235. package/daemon/dist/domain/gateway/slack/config.d.ts.map +1 -1
  236. package/daemon/dist/domain/gateway/slack/config.js +20 -4
  237. package/daemon/dist/domain/gateway/slack/config.js.map +1 -1
  238. package/daemon/dist/domain/gateway/slack/inbound.d.ts +34 -6
  239. package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  240. package/daemon/dist/domain/gateway/slack/inbound.js +60 -9
  241. package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  242. package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts +3 -0
  243. package/daemon/dist/domain/gateway/slack/outbound-driver.d.ts.map +1 -1
  244. package/daemon/dist/domain/gateway/slack/outbound-driver.js +12 -5
  245. package/daemon/dist/domain/gateway/slack/outbound-driver.js.map +1 -1
  246. package/daemon/dist/domain/gateway/slack/queue-access.d.ts +10 -5
  247. package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
  248. package/daemon/dist/domain/gateway/slack/queue-access.js +46 -19
  249. package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  250. package/daemon/dist/domain/gateway/slack/slack-api.d.ts +29 -6
  251. package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
  252. package/daemon/dist/domain/gateway/slack/slack-api.js +41 -3
  253. package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
  254. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +9 -3
  255. package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
  256. package/daemon/dist/domain/gateway/slack/slack-delivery.js +132 -12
  257. package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
  258. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +10 -0
  259. package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  260. package/daemon/dist/domain/gateway/slack/slack-subsystem.js +286 -11
  261. package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  262. package/daemon/dist/domain/graph-projection.d.ts +6 -0
  263. package/daemon/dist/domain/graph-projection.d.ts.map +1 -1
  264. package/daemon/dist/domain/graph-projection.js +6 -0
  265. package/daemon/dist/domain/graph-projection.js.map +1 -1
  266. package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  267. package/daemon/dist/domain/mission-control/mission-control-write-contract.js +1 -0
  268. package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  269. package/daemon/dist/domain/node-inventory.d.ts +41 -3
  270. package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  271. package/daemon/dist/domain/node-inventory.js +45 -48
  272. package/daemon/dist/domain/node-inventory.js.map +1 -1
  273. package/daemon/dist/domain/parked-query.d.ts +1 -0
  274. package/daemon/dist/domain/parked-query.d.ts.map +1 -1
  275. package/daemon/dist/domain/parked-query.js +1 -0
  276. package/daemon/dist/domain/parked-query.js.map +1 -1
  277. package/daemon/dist/domain/pod-bundle-assembler.d.ts.map +1 -1
  278. package/daemon/dist/domain/pod-bundle-assembler.js +12 -5
  279. package/daemon/dist/domain/pod-bundle-assembler.js.map +1 -1
  280. package/daemon/dist/domain/policies/context-usage-threshold.d.ts +7 -0
  281. package/daemon/dist/domain/policies/context-usage-threshold.d.ts.map +1 -0
  282. package/daemon/dist/domain/policies/context-usage-threshold.js +99 -0
  283. package/daemon/dist/domain/policies/context-usage-threshold.js.map +1 -0
  284. package/daemon/dist/domain/policies/delivery-deferral.d.ts +54 -0
  285. package/daemon/dist/domain/policies/delivery-deferral.d.ts.map +1 -0
  286. package/daemon/dist/domain/policies/delivery-deferral.js +153 -0
  287. package/daemon/dist/domain/policies/delivery-deferral.js.map +1 -0
  288. package/daemon/dist/domain/policies/delivery-digest-flush.d.ts +45 -0
  289. package/daemon/dist/domain/policies/delivery-digest-flush.d.ts.map +1 -0
  290. package/daemon/dist/domain/policies/delivery-digest-flush.js +94 -0
  291. package/daemon/dist/domain/policies/delivery-digest-flush.js.map +1 -0
  292. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +65 -0
  293. package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -0
  294. package/daemon/dist/domain/policies/parked-owner-consumer.js +244 -0
  295. package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -0
  296. package/daemon/dist/domain/policies/types.d.ts +8 -0
  297. package/daemon/dist/domain/policies/types.d.ts.map +1 -1
  298. package/daemon/dist/domain/profile-resolver.d.ts +4 -0
  299. package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
  300. package/daemon/dist/domain/profile-resolver.js +58 -0
  301. package/daemon/dist/domain/profile-resolver.js.map +1 -1
  302. package/daemon/dist/domain/provider/provider-signals.d.ts +20 -1
  303. package/daemon/dist/domain/provider/provider-signals.d.ts.map +1 -1
  304. package/daemon/dist/domain/provider/provider-signals.js +64 -0
  305. package/daemon/dist/domain/provider/provider-signals.js.map +1 -1
  306. package/daemon/dist/domain/ps-projection.d.ts +7 -5
  307. package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
  308. package/daemon/dist/domain/ps-projection.js +19 -32
  309. package/daemon/dist/domain/ps-projection.js.map +1 -1
  310. package/daemon/dist/domain/queue-pickup.d.ts.map +1 -1
  311. package/daemon/dist/domain/queue-pickup.js +5 -0
  312. package/daemon/dist/domain/queue-pickup.js.map +1 -1
  313. package/daemon/dist/domain/queue-repository.d.ts +55 -18
  314. package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  315. package/daemon/dist/domain/queue-repository.js +387 -83
  316. package/daemon/dist/domain/queue-repository.js.map +1 -1
  317. package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
  318. package/daemon/dist/domain/queue-retention.js +8 -2
  319. package/daemon/dist/domain/queue-retention.js.map +1 -1
  320. package/daemon/dist/domain/queue-stuck-sweep.d.ts +24 -1
  321. package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  322. package/daemon/dist/domain/queue-stuck-sweep.js +161 -24
  323. package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  324. package/daemon/dist/domain/queue-transition-log.d.ts +10 -0
  325. package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  326. package/daemon/dist/domain/queue-transition-log.js +49 -11
  327. package/daemon/dist/domain/queue-transition-log.js.map +1 -1
  328. package/daemon/dist/domain/queue-wake-ladder.d.ts +20 -2
  329. package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  330. package/daemon/dist/domain/queue-wake-ladder.js +187 -15
  331. package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  332. package/daemon/dist/domain/queue-wake-repository.d.ts +16 -0
  333. package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
  334. package/daemon/dist/domain/queue-wake-repository.js +52 -3
  335. package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
  336. package/daemon/dist/domain/restore-check-service.js +1 -1
  337. package/daemon/dist/domain/restore-check-service.js.map +1 -1
  338. package/daemon/dist/domain/restore-orchestrator.d.ts +2 -1
  339. package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  340. package/daemon/dist/domain/restore-orchestrator.js +88 -15
  341. package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  342. package/daemon/dist/domain/restore-plan-preview.d.ts +6 -2
  343. package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
  344. package/daemon/dist/domain/restore-plan-preview.js +37 -19
  345. package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
  346. package/daemon/dist/domain/rig-expansion-service.d.ts.map +1 -1
  347. package/daemon/dist/domain/rig-expansion-service.js +10 -9
  348. package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
  349. package/daemon/dist/domain/rig-lifecycle-service.d.ts +24 -4
  350. package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
  351. package/daemon/dist/domain/rig-lifecycle-service.js +116 -6
  352. package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
  353. package/daemon/dist/domain/rig-repository.d.ts +6 -1
  354. package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  355. package/daemon/dist/domain/rig-repository.js +28 -3
  356. package/daemon/dist/domain/rig-repository.js.map +1 -1
  357. package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
  358. package/daemon/dist/domain/rigspec-codec.js +74 -4
  359. package/daemon/dist/domain/rigspec-codec.js.map +1 -1
  360. package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  361. package/daemon/dist/domain/rigspec-exporter.js +2 -0
  362. package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  363. package/daemon/dist/domain/rigspec-instantiator.d.ts +4 -0
  364. package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  365. package/daemon/dist/domain/rigspec-instantiator.js +16 -0
  366. package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  367. package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  368. package/daemon/dist/domain/rigspec-schema.js +32 -4
  369. package/daemon/dist/domain/rigspec-schema.js.map +1 -1
  370. package/daemon/dist/domain/scope/node-file.d.ts +8 -0
  371. package/daemon/dist/domain/scope/node-file.d.ts.map +1 -1
  372. package/daemon/dist/domain/scope/node-file.js +18 -0
  373. package/daemon/dist/domain/scope/node-file.js.map +1 -1
  374. package/daemon/dist/domain/scope/scope-audit.d.ts +5 -2
  375. package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
  376. package/daemon/dist/domain/scope/scope-audit.js +3 -3
  377. package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
  378. package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
  379. package/daemon/dist/domain/snapshot-capture.js +6 -0
  380. package/daemon/dist/domain/snapshot-capture.js.map +1 -1
  381. package/daemon/dist/domain/types.d.ts +28 -4
  382. package/daemon/dist/domain/types.d.ts.map +1 -1
  383. package/daemon/dist/domain/types.js.map +1 -1
  384. package/daemon/dist/domain/view-projector.d.ts +5 -1
  385. package/daemon/dist/domain/view-projector.d.ts.map +1 -1
  386. package/daemon/dist/domain/view-projector.js +24 -0
  387. package/daemon/dist/domain/view-projector.js.map +1 -1
  388. package/daemon/dist/domain/watchdog-jobs-repository.d.ts +25 -6
  389. package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
  390. package/daemon/dist/domain/watchdog-jobs-repository.js +115 -32
  391. package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
  392. package/daemon/dist/domain/watchdog-policy-engine.d.ts +40 -1
  393. package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  394. package/daemon/dist/domain/watchdog-policy-engine.js +112 -6
  395. package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  396. package/daemon/dist/domain/watchdog-scheduler.d.ts.map +1 -1
  397. package/daemon/dist/domain/watchdog-scheduler.js +3 -2
  398. package/daemon/dist/domain/watchdog-scheduler.js.map +1 -1
  399. package/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
  400. package/daemon/dist/domain/workspace/default-workspace-scaffold.js +37 -2
  401. package/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
  402. package/daemon/dist/domain/workspace/workspace-doctor.d.ts.map +1 -1
  403. package/daemon/dist/domain/workspace/workspace-doctor.js +2 -4
  404. package/daemon/dist/domain/workspace/workspace-doctor.js.map +1 -1
  405. package/daemon/dist/index.d.ts +9 -0
  406. package/daemon/dist/index.d.ts.map +1 -1
  407. package/daemon/dist/index.js +24 -1
  408. package/daemon/dist/index.js.map +1 -1
  409. package/daemon/dist/routes/agent-images.d.ts.map +1 -1
  410. package/daemon/dist/routes/agent-images.js +9 -0
  411. package/daemon/dist/routes/agent-images.js.map +1 -1
  412. package/daemon/dist/routes/bundles.d.ts.map +1 -1
  413. package/daemon/dist/routes/bundles.js +61 -1
  414. package/daemon/dist/routes/bundles.js.map +1 -1
  415. package/daemon/dist/routes/context-packs.d.ts.map +1 -1
  416. package/daemon/dist/routes/context-packs.js +146 -6
  417. package/daemon/dist/routes/context-packs.js.map +1 -1
  418. package/daemon/dist/routes/gateway.js +1 -1
  419. package/daemon/dist/routes/gateway.js.map +1 -1
  420. package/daemon/dist/routes/queue.d.ts.map +1 -1
  421. package/daemon/dist/routes/queue.js +22 -11
  422. package/daemon/dist/routes/queue.js.map +1 -1
  423. package/daemon/dist/routes/rigs.js +45 -5
  424. package/daemon/dist/routes/rigs.js.map +1 -1
  425. package/daemon/dist/routes/scope-audit.js +6 -6
  426. package/daemon/dist/routes/scope-audit.js.map +1 -1
  427. package/daemon/dist/routes/sessions.js +7 -3
  428. package/daemon/dist/routes/sessions.js.map +1 -1
  429. package/daemon/dist/routes/views.d.ts.map +1 -1
  430. package/daemon/dist/routes/views.js +4 -1
  431. package/daemon/dist/routes/views.js.map +1 -1
  432. package/daemon/dist/routes/watchdog.d.ts.map +1 -1
  433. package/daemon/dist/routes/watchdog.js +40 -3
  434. package/daemon/dist/routes/watchdog.js.map +1 -1
  435. package/daemon/dist/server.d.ts.map +1 -1
  436. package/daemon/dist/server.js +5 -0
  437. package/daemon/dist/server.js.map +1 -1
  438. package/daemon/dist/startup.d.ts.map +1 -1
  439. package/daemon/dist/startup.js +197 -6
  440. package/daemon/dist/startup.js.map +1 -1
  441. package/daemon/docs/reference/agent-spec.md +5 -5
  442. package/daemon/docs/reference/agent-state-taxonomy.md +8 -13
  443. package/daemon/docs/reference/chain-file-convention.md +2 -2
  444. package/daemon/docs/reference/knowledge-maturity.md +123 -0
  445. package/daemon/docs/reference/lore-routing.md +173 -0
  446. package/daemon/docs/reference/mission-install.md +215 -0
  447. package/daemon/docs/reference/planning-dial.md +55 -0
  448. package/daemon/docs/reference/product-journey-sdlc.md +305 -0
  449. package/daemon/docs/reference/product-management-pass.md +139 -0
  450. package/daemon/docs/reference/release-boundary.md +88 -0
  451. package/daemon/docs/reference/sdlc-conventions.md +49 -69
  452. package/daemon/docs/reference/wave-sdlc.md +113 -0
  453. package/daemon/policies/builtin/standard.policy.md +3 -3
  454. package/daemon/policies/builtin/yolo.policy.md +7 -2
  455. package/daemon/specs/agents/apps/vault-specialist/agent.yaml +1 -1
  456. package/daemon/specs/agents/apps/vault-specialist/guidance/role.md +0 -1
  457. package/daemon/specs/agents/conveyor/builder/agent.yaml +1 -1
  458. package/daemon/specs/agents/conveyor/builder/guidance/role.md +0 -1
  459. package/daemon/specs/agents/conveyor/lead/agent.yaml +1 -1
  460. package/daemon/specs/agents/conveyor/lead/guidance/role.md +0 -3
  461. package/daemon/specs/agents/conveyor/planner/agent.yaml +1 -1
  462. package/daemon/specs/agents/conveyor/planner/guidance/role.md +0 -1
  463. package/daemon/specs/agents/design/product-designer/agent.yaml +3 -4
  464. package/daemon/specs/agents/design/product-designer/guidance/role.md +0 -3
  465. package/daemon/specs/agents/development/implementer/agent.yaml +3 -4
  466. package/daemon/specs/agents/development/implementer/guidance/role.md +0 -3
  467. package/daemon/specs/agents/development/qa/agent.yaml +4 -4
  468. package/daemon/specs/agents/development/qa/guidance/role.md +1 -4
  469. package/daemon/specs/agents/factory-rsi/dogfood/agent.yaml +1 -1
  470. package/daemon/specs/agents/factory-rsi/release-manager/agent.yaml +1 -1
  471. package/daemon/specs/agents/orchestration/orchestrator/agent.yaml +3 -4
  472. package/daemon/specs/agents/orchestration/orchestrator/guidance/role.md +0 -4
  473. package/daemon/specs/agents/review/independent-reviewer/agent.yaml +3 -4
  474. package/daemon/specs/agents/review/independent-reviewer/guidance/role.md +0 -3
  475. package/daemon/specs/agents/shared/agent.yaml +2 -10
  476. package/daemon/specs/agents/shared/skills/core/cross-host-rig-commands/SKILL.md +6 -13
  477. package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +98 -0
  478. package/daemon/specs/agents/shared/skills/core/openrig-skills/SKILL.md +115 -0
  479. package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +19 -75
  480. package/daemon/specs/agents/shared/skills/core/watchdog/SKILL.md +4 -10
  481. package/daemon/specs/agents/shared/skills/pods/orchestration-team/SKILL.md +1 -1
  482. package/daemon/specs/agents/shared/skills/pods/review-team/SKILL.md +1 -1
  483. package/daemon/specs/agents/shared/skills/process/systematic-debugging/find-polluter.sh +0 -0
  484. package/daemon/specs/rigs/launch/kernel/agents/advisor/lead/agent.yaml +1 -1
  485. package/daemon/specs/rigs/launch/kernel/agents/advisor/lead/guidance/role.md +4 -5
  486. package/daemon/specs/rigs/launch/kernel/agents/advisor/lead/startup/context.md +3 -3
  487. package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +3 -3
  488. package/daemon/specs/rigs/launch/kernel/agents/queue/worker/guidance/role.md +1 -1
  489. package/daemon/specs/rigs/launch/kernel/agents/queue/worker/startup/context.md +1 -1
  490. package/daemon/substance-surfaces.json +8 -0
  491. package/dist/build-info.js +3 -3
  492. package/dist/commands/broadcast.d.ts.map +1 -1
  493. package/dist/commands/broadcast.js +6 -1
  494. package/dist/commands/broadcast.js.map +1 -1
  495. package/dist/commands/capture.js +1 -1
  496. package/dist/commands/config-init-workspace.d.ts.map +1 -1
  497. package/dist/commands/config-init-workspace.js +38 -3
  498. package/dist/commands/config-init-workspace.js.map +1 -1
  499. package/dist/commands/context.d.ts.map +1 -1
  500. package/dist/commands/context.js +49 -1
  501. package/dist/commands/context.js.map +1 -1
  502. package/dist/commands/create.d.ts +4 -0
  503. package/dist/commands/create.d.ts.map +1 -0
  504. package/dist/commands/create.js +84 -0
  505. package/dist/commands/create.js.map +1 -0
  506. package/dist/commands/expand.d.ts.map +1 -1
  507. package/dist/commands/expand.js +9 -13
  508. package/dist/commands/expand.js.map +1 -1
  509. package/dist/commands/grow.d.ts +4 -0
  510. package/dist/commands/grow.d.ts.map +1 -0
  511. package/dist/commands/grow.js +182 -0
  512. package/dist/commands/grow.js.map +1 -0
  513. package/dist/commands/ps.d.ts +4 -0
  514. package/dist/commands/ps.d.ts.map +1 -1
  515. package/dist/commands/ps.js +15 -7
  516. package/dist/commands/ps.js.map +1 -1
  517. package/dist/commands/remove.d.ts.map +1 -1
  518. package/dist/commands/remove.js +9 -1
  519. package/dist/commands/remove.js.map +1 -1
  520. package/dist/commands/rig.d.ts.map +1 -1
  521. package/dist/commands/rig.js +48 -1
  522. package/dist/commands/rig.js.map +1 -1
  523. package/dist/commands/scope.d.ts.map +1 -1
  524. package/dist/commands/scope.js +61 -13
  525. package/dist/commands/scope.js.map +1 -1
  526. package/dist/commands/send.d.ts +2 -0
  527. package/dist/commands/send.d.ts.map +1 -1
  528. package/dist/commands/send.js +24 -2
  529. package/dist/commands/send.js.map +1 -1
  530. package/dist/commands/shrink.d.ts.map +1 -1
  531. package/dist/commands/shrink.js +6 -1
  532. package/dist/commands/shrink.js.map +1 -1
  533. package/dist/commands/slack.d.ts.map +1 -1
  534. package/dist/commands/slack.js +4 -2
  535. package/dist/commands/slack.js.map +1 -1
  536. package/dist/commands/topology-default-agent.d.ts +4 -0
  537. package/dist/commands/topology-default-agent.d.ts.map +1 -0
  538. package/dist/commands/topology-default-agent.js +13 -0
  539. package/dist/commands/topology-default-agent.js.map +1 -0
  540. package/dist/commands/view.d.ts.map +1 -1
  541. package/dist/commands/view.js +3 -0
  542. package/dist/commands/view.js.map +1 -1
  543. package/dist/commands/walk.d.ts.map +1 -1
  544. package/dist/commands/walk.js +3 -0
  545. package/dist/commands/walk.js.map +1 -1
  546. package/dist/commands/watchdog.d.ts.map +1 -1
  547. package/dist/commands/watchdog.js +64 -9
  548. package/dist/commands/watchdog.js.map +1 -1
  549. package/dist/cross-host-target.js +1 -1
  550. package/dist/cross-host-target.js.map +1 -1
  551. package/dist/host-registry.d.ts +2 -2
  552. package/dist/host-registry.js +2 -2
  553. package/dist/index.d.ts +2 -0
  554. package/dist/index.d.ts.map +1 -1
  555. package/dist/index.js +4 -0
  556. package/dist/index.js.map +1 -1
  557. package/dist/lib/scope/scope-audit.d.ts +4 -1
  558. package/dist/lib/scope/scope-audit.d.ts.map +1 -1
  559. package/dist/lib/scope/scope-audit.js +3 -3
  560. package/dist/lib/scope/scope-audit.js.map +1 -1
  561. package/dist/lib/scope/scope-fs.d.ts +8 -0
  562. package/dist/lib/scope/scope-fs.d.ts.map +1 -1
  563. package/dist/lib/scope/scope-fs.js +18 -0
  564. package/dist/lib/scope/scope-fs.js.map +1 -1
  565. package/dist/lib/scope-templates/backlog-deprecation.md +1 -1
  566. package/dist/lib/scope-templates/backlog-tech-debt.md +1 -1
  567. package/dist/lib/scope-templates/bug-fix.md +1 -1
  568. package/dist/lib/scope-templates/capability-delta.md +1 -0
  569. package/dist/lib/scope-templates/placeholder.md +1 -1
  570. package/dist/lib/scope-templates/release-feature.md +1 -1
  571. package/dist/lib/scope-templates/research.md +1 -1
  572. package/dist/lib/work-install.d.ts +39 -0
  573. package/dist/lib/work-install.d.ts.map +1 -0
  574. package/dist/lib/work-install.js +278 -0
  575. package/dist/lib/work-install.js.map +1 -0
  576. package/node_modules/@openrig/daemon/dist/build-info.js +3 -3
  577. package/node_modules/@openrig/daemon/dist/builtins/workflow-specs/basic-loop.yaml +3 -3
  578. package/node_modules/@openrig/daemon/dist/builtins/workflow-specs/conveyor.yaml +1 -1
  579. package/node_modules/@openrig/daemon/dist/builtins/workflow-specs/factory-rsi.yaml +1 -1
  580. package/node_modules/@openrig/daemon/dist/context-pack-taxonomy-surface.d.ts +2 -0
  581. package/node_modules/@openrig/daemon/dist/context-pack-taxonomy-surface.d.ts.map +1 -0
  582. package/node_modules/@openrig/daemon/dist/context-pack-taxonomy-surface.js +6 -0
  583. package/node_modules/@openrig/daemon/dist/context-pack-taxonomy-surface.js.map +1 -0
  584. package/node_modules/@openrig/daemon/dist/db/all-migrations.d.ts +1 -1
  585. package/node_modules/@openrig/daemon/dist/db/all-migrations.d.ts.map +1 -1
  586. package/node_modules/@openrig/daemon/dist/db/all-migrations.js +10 -2
  587. package/node_modules/@openrig/daemon/dist/db/all-migrations.js.map +1 -1
  588. package/node_modules/@openrig/daemon/dist/db/migrations/074_context_usage_watchdog.d.ts +4 -0
  589. package/node_modules/@openrig/daemon/dist/db/migrations/074_context_usage_watchdog.d.ts.map +1 -0
  590. package/node_modules/@openrig/daemon/dist/db/migrations/074_context_usage_watchdog.js +11 -0
  591. package/node_modules/@openrig/daemon/dist/db/migrations/074_context_usage_watchdog.js.map +1 -0
  592. package/node_modules/@openrig/daemon/dist/db/migrations/075_context_usage_watchdog_generation.d.ts +4 -0
  593. package/node_modules/@openrig/daemon/dist/db/migrations/075_context_usage_watchdog_generation.d.ts.map +1 -0
  594. package/node_modules/@openrig/daemon/dist/db/migrations/075_context_usage_watchdog_generation.js +8 -0
  595. package/node_modules/@openrig/daemon/dist/db/migrations/075_context_usage_watchdog_generation.js.map +1 -0
  596. package/node_modules/@openrig/daemon/dist/db/migrations/076_owner_notification_levels.d.ts +8 -0
  597. package/node_modules/@openrig/daemon/dist/db/migrations/076_owner_notification_levels.d.ts.map +1 -0
  598. package/node_modules/@openrig/daemon/dist/db/migrations/076_owner_notification_levels.js +15 -0
  599. package/node_modules/@openrig/daemon/dist/db/migrations/076_owner_notification_levels.js.map +1 -0
  600. package/node_modules/@openrig/daemon/dist/db/migrations/077_node_session_source.d.ts +4 -0
  601. package/node_modules/@openrig/daemon/dist/db/migrations/077_node_session_source.d.ts.map +1 -0
  602. package/node_modules/@openrig/daemon/dist/db/migrations/077_node_session_source.js +6 -0
  603. package/node_modules/@openrig/daemon/dist/db/migrations/077_node_session_source.js.map +1 -0
  604. package/node_modules/@openrig/daemon/dist/domain/active-occupant.d.ts +44 -0
  605. package/node_modules/@openrig/daemon/dist/domain/active-occupant.d.ts.map +1 -0
  606. package/node_modules/@openrig/daemon/dist/domain/active-occupant.js +72 -0
  607. package/node_modules/@openrig/daemon/dist/domain/active-occupant.js.map +1 -0
  608. package/node_modules/@openrig/daemon/dist/domain/agent-manifest.d.ts +6 -0
  609. package/node_modules/@openrig/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
  610. package/node_modules/@openrig/daemon/dist/domain/agent-manifest.js +77 -15
  611. package/node_modules/@openrig/daemon/dist/domain/agent-manifest.js.map +1 -1
  612. package/node_modules/@openrig/daemon/dist/domain/agent-resolver.d.ts +11 -0
  613. package/node_modules/@openrig/daemon/dist/domain/agent-resolver.d.ts.map +1 -1
  614. package/node_modules/@openrig/daemon/dist/domain/agent-resolver.js +55 -0
  615. package/node_modules/@openrig/daemon/dist/domain/agent-resolver.js.map +1 -1
  616. package/node_modules/@openrig/daemon/dist/domain/bundle-context-packs-router.d.ts +9 -2
  617. package/node_modules/@openrig/daemon/dist/domain/bundle-context-packs-router.d.ts.map +1 -1
  618. package/node_modules/@openrig/daemon/dist/domain/bundle-context-packs-router.js +18 -0
  619. package/node_modules/@openrig/daemon/dist/domain/bundle-context-packs-router.js.map +1 -1
  620. package/node_modules/@openrig/daemon/dist/domain/claude-compaction-enforcer.d.ts +7 -0
  621. package/node_modules/@openrig/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
  622. package/node_modules/@openrig/daemon/dist/domain/claude-compaction-enforcer.js +10 -0
  623. package/node_modules/@openrig/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
  624. package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-library-service.d.ts.map +1 -1
  625. package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-library-service.js +7 -0
  626. package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-library-service.js.map +1 -1
  627. package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-types.d.ts +11 -0
  628. package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-types.d.ts.map +1 -1
  629. package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-types.js +11 -0
  630. package/node_modules/@openrig/daemon/dist/domain/context-packs/context-pack-types.js.map +1 -1
  631. package/node_modules/@openrig/daemon/dist/domain/context-packs/manifest-parser.d.ts.map +1 -1
  632. package/node_modules/@openrig/daemon/dist/domain/context-packs/manifest-parser.js +18 -7
  633. package/node_modules/@openrig/daemon/dist/domain/context-packs/manifest-parser.js.map +1 -1
  634. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.d.ts +1 -1
  635. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.d.ts.map +1 -1
  636. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.js +2 -2
  637. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-composer.js.map +1 -1
  638. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.d.ts +3 -1
  639. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.d.ts.map +1 -1
  640. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.js +3 -2
  641. package/node_modules/@openrig/daemon/dist/domain/context-packs/profile-source-resolver.js.map +1 -1
  642. package/node_modules/@openrig/daemon/dist/domain/continuity-policy-materializer.d.ts +88 -0
  643. package/node_modules/@openrig/daemon/dist/domain/continuity-policy-materializer.d.ts.map +1 -0
  644. package/node_modules/@openrig/daemon/dist/domain/continuity-policy-materializer.js +290 -0
  645. package/node_modules/@openrig/daemon/dist/domain/continuity-policy-materializer.js.map +1 -0
  646. package/node_modules/@openrig/daemon/dist/domain/continuity-stack-packets.d.ts +65 -0
  647. package/node_modules/@openrig/daemon/dist/domain/continuity-stack-packets.d.ts.map +1 -0
  648. package/node_modules/@openrig/daemon/dist/domain/continuity-stack-packets.js +99 -0
  649. package/node_modules/@openrig/daemon/dist/domain/continuity-stack-packets.js.map +1 -0
  650. package/node_modules/@openrig/daemon/dist/domain/execution-view.d.ts +39 -0
  651. package/node_modules/@openrig/daemon/dist/domain/execution-view.d.ts.map +1 -0
  652. package/node_modules/@openrig/daemon/dist/domain/execution-view.js +707 -0
  653. package/node_modules/@openrig/daemon/dist/domain/execution-view.js.map +1 -0
  654. package/node_modules/@openrig/daemon/dist/domain/gateway/delivery-rules-engine.d.ts +60 -0
  655. package/node_modules/@openrig/daemon/dist/domain/gateway/delivery-rules-engine.d.ts.map +1 -0
  656. package/node_modules/@openrig/daemon/dist/domain/gateway/delivery-rules-engine.js +144 -0
  657. package/node_modules/@openrig/daemon/dist/domain/gateway/delivery-rules-engine.js.map +1 -0
  658. package/node_modules/@openrig/daemon/dist/domain/gateway/destination-resolver.d.ts +20 -0
  659. package/node_modules/@openrig/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -0
  660. package/node_modules/@openrig/daemon/dist/domain/gateway/destination-resolver.js +52 -0
  661. package/node_modules/@openrig/daemon/dist/domain/gateway/destination-resolver.js.map +1 -0
  662. package/node_modules/@openrig/daemon/dist/domain/gateway/dispatcher.d.ts +3 -1
  663. package/node_modules/@openrig/daemon/dist/domain/gateway/dispatcher.d.ts.map +1 -1
  664. package/node_modules/@openrig/daemon/dist/domain/gateway/dispatcher.js +9 -2
  665. package/node_modules/@openrig/daemon/dist/domain/gateway/dispatcher.js.map +1 -1
  666. package/node_modules/@openrig/daemon/dist/domain/gateway/gateway-subsystem.d.ts +6 -2
  667. package/node_modules/@openrig/daemon/dist/domain/gateway/gateway-subsystem.d.ts.map +1 -1
  668. package/node_modules/@openrig/daemon/dist/domain/gateway/gateway-subsystem.js +5 -3
  669. package/node_modules/@openrig/daemon/dist/domain/gateway/gateway-subsystem.js.map +1 -1
  670. package/node_modules/@openrig/daemon/dist/domain/gateway/human-registry.d.ts +9 -1
  671. package/node_modules/@openrig/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
  672. package/node_modules/@openrig/daemon/dist/domain/gateway/human-registry.js +32 -1
  673. package/node_modules/@openrig/daemon/dist/domain/gateway/human-registry.js.map +1 -1
  674. package/node_modules/@openrig/daemon/dist/domain/gateway/operator-delivery-engine.d.ts +32 -0
  675. package/node_modules/@openrig/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -0
  676. package/node_modules/@openrig/daemon/dist/domain/gateway/operator-delivery-engine.js +86 -0
  677. package/node_modules/@openrig/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -0
  678. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/config.d.ts +3 -2
  679. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/config.d.ts.map +1 -1
  680. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/config.js +20 -4
  681. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/config.js.map +1 -1
  682. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/inbound.d.ts +34 -6
  683. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
  684. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/inbound.js +60 -9
  685. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
  686. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/outbound-driver.d.ts +3 -0
  687. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/outbound-driver.d.ts.map +1 -1
  688. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/outbound-driver.js +12 -5
  689. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/outbound-driver.js.map +1 -1
  690. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/queue-access.d.ts +10 -5
  691. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
  692. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/queue-access.js +46 -19
  693. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
  694. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/slack-api.d.ts +29 -6
  695. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
  696. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/slack-api.js +41 -3
  697. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
  698. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +9 -3
  699. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
  700. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/slack-delivery.js +132 -12
  701. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
  702. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +10 -0
  703. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
  704. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/slack-subsystem.js +286 -11
  705. package/node_modules/@openrig/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
  706. package/node_modules/@openrig/daemon/dist/domain/graph-projection.d.ts +6 -0
  707. package/node_modules/@openrig/daemon/dist/domain/graph-projection.d.ts.map +1 -1
  708. package/node_modules/@openrig/daemon/dist/domain/graph-projection.js +6 -0
  709. package/node_modules/@openrig/daemon/dist/domain/graph-projection.js.map +1 -1
  710. package/node_modules/@openrig/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
  711. package/node_modules/@openrig/daemon/dist/domain/mission-control/mission-control-write-contract.js +1 -0
  712. package/node_modules/@openrig/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
  713. package/node_modules/@openrig/daemon/dist/domain/node-inventory.d.ts +41 -3
  714. package/node_modules/@openrig/daemon/dist/domain/node-inventory.d.ts.map +1 -1
  715. package/node_modules/@openrig/daemon/dist/domain/node-inventory.js +45 -48
  716. package/node_modules/@openrig/daemon/dist/domain/node-inventory.js.map +1 -1
  717. package/node_modules/@openrig/daemon/dist/domain/parked-query.d.ts +1 -0
  718. package/node_modules/@openrig/daemon/dist/domain/parked-query.d.ts.map +1 -1
  719. package/node_modules/@openrig/daemon/dist/domain/parked-query.js +1 -0
  720. package/node_modules/@openrig/daemon/dist/domain/parked-query.js.map +1 -1
  721. package/node_modules/@openrig/daemon/dist/domain/pod-bundle-assembler.d.ts.map +1 -1
  722. package/node_modules/@openrig/daemon/dist/domain/pod-bundle-assembler.js +12 -5
  723. package/node_modules/@openrig/daemon/dist/domain/pod-bundle-assembler.js.map +1 -1
  724. package/node_modules/@openrig/daemon/dist/domain/policies/context-usage-threshold.d.ts +7 -0
  725. package/node_modules/@openrig/daemon/dist/domain/policies/context-usage-threshold.d.ts.map +1 -0
  726. package/node_modules/@openrig/daemon/dist/domain/policies/context-usage-threshold.js +99 -0
  727. package/node_modules/@openrig/daemon/dist/domain/policies/context-usage-threshold.js.map +1 -0
  728. package/node_modules/@openrig/daemon/dist/domain/policies/delivery-deferral.d.ts +54 -0
  729. package/node_modules/@openrig/daemon/dist/domain/policies/delivery-deferral.d.ts.map +1 -0
  730. package/node_modules/@openrig/daemon/dist/domain/policies/delivery-deferral.js +153 -0
  731. package/node_modules/@openrig/daemon/dist/domain/policies/delivery-deferral.js.map +1 -0
  732. package/node_modules/@openrig/daemon/dist/domain/policies/delivery-digest-flush.d.ts +45 -0
  733. package/node_modules/@openrig/daemon/dist/domain/policies/delivery-digest-flush.d.ts.map +1 -0
  734. package/node_modules/@openrig/daemon/dist/domain/policies/delivery-digest-flush.js +94 -0
  735. package/node_modules/@openrig/daemon/dist/domain/policies/delivery-digest-flush.js.map +1 -0
  736. package/node_modules/@openrig/daemon/dist/domain/policies/parked-owner-consumer.d.ts +65 -0
  737. package/node_modules/@openrig/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -0
  738. package/node_modules/@openrig/daemon/dist/domain/policies/parked-owner-consumer.js +244 -0
  739. package/node_modules/@openrig/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -0
  740. package/node_modules/@openrig/daemon/dist/domain/policies/types.d.ts +8 -0
  741. package/node_modules/@openrig/daemon/dist/domain/policies/types.d.ts.map +1 -1
  742. package/node_modules/@openrig/daemon/dist/domain/profile-resolver.d.ts +4 -0
  743. package/node_modules/@openrig/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
  744. package/node_modules/@openrig/daemon/dist/domain/profile-resolver.js +58 -0
  745. package/node_modules/@openrig/daemon/dist/domain/profile-resolver.js.map +1 -1
  746. package/node_modules/@openrig/daemon/dist/domain/provider/provider-signals.d.ts +20 -1
  747. package/node_modules/@openrig/daemon/dist/domain/provider/provider-signals.d.ts.map +1 -1
  748. package/node_modules/@openrig/daemon/dist/domain/provider/provider-signals.js +64 -0
  749. package/node_modules/@openrig/daemon/dist/domain/provider/provider-signals.js.map +1 -1
  750. package/node_modules/@openrig/daemon/dist/domain/ps-projection.d.ts +7 -5
  751. package/node_modules/@openrig/daemon/dist/domain/ps-projection.d.ts.map +1 -1
  752. package/node_modules/@openrig/daemon/dist/domain/ps-projection.js +19 -32
  753. package/node_modules/@openrig/daemon/dist/domain/ps-projection.js.map +1 -1
  754. package/node_modules/@openrig/daemon/dist/domain/queue-pickup.d.ts.map +1 -1
  755. package/node_modules/@openrig/daemon/dist/domain/queue-pickup.js +5 -0
  756. package/node_modules/@openrig/daemon/dist/domain/queue-pickup.js.map +1 -1
  757. package/node_modules/@openrig/daemon/dist/domain/queue-repository.d.ts +55 -18
  758. package/node_modules/@openrig/daemon/dist/domain/queue-repository.d.ts.map +1 -1
  759. package/node_modules/@openrig/daemon/dist/domain/queue-repository.js +387 -83
  760. package/node_modules/@openrig/daemon/dist/domain/queue-repository.js.map +1 -1
  761. package/node_modules/@openrig/daemon/dist/domain/queue-retention.d.ts.map +1 -1
  762. package/node_modules/@openrig/daemon/dist/domain/queue-retention.js +8 -2
  763. package/node_modules/@openrig/daemon/dist/domain/queue-retention.js.map +1 -1
  764. package/node_modules/@openrig/daemon/dist/domain/queue-stuck-sweep.d.ts +24 -1
  765. package/node_modules/@openrig/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
  766. package/node_modules/@openrig/daemon/dist/domain/queue-stuck-sweep.js +161 -24
  767. package/node_modules/@openrig/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
  768. package/node_modules/@openrig/daemon/dist/domain/queue-transition-log.d.ts +10 -0
  769. package/node_modules/@openrig/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
  770. package/node_modules/@openrig/daemon/dist/domain/queue-transition-log.js +49 -11
  771. package/node_modules/@openrig/daemon/dist/domain/queue-transition-log.js.map +1 -1
  772. package/node_modules/@openrig/daemon/dist/domain/queue-wake-ladder.d.ts +20 -2
  773. package/node_modules/@openrig/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
  774. package/node_modules/@openrig/daemon/dist/domain/queue-wake-ladder.js +187 -15
  775. package/node_modules/@openrig/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
  776. package/node_modules/@openrig/daemon/dist/domain/queue-wake-repository.d.ts +16 -0
  777. package/node_modules/@openrig/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
  778. package/node_modules/@openrig/daemon/dist/domain/queue-wake-repository.js +52 -3
  779. package/node_modules/@openrig/daemon/dist/domain/queue-wake-repository.js.map +1 -1
  780. package/node_modules/@openrig/daemon/dist/domain/restore-check-service.js +1 -1
  781. package/node_modules/@openrig/daemon/dist/domain/restore-check-service.js.map +1 -1
  782. package/node_modules/@openrig/daemon/dist/domain/restore-orchestrator.d.ts +2 -1
  783. package/node_modules/@openrig/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
  784. package/node_modules/@openrig/daemon/dist/domain/restore-orchestrator.js +88 -15
  785. package/node_modules/@openrig/daemon/dist/domain/restore-orchestrator.js.map +1 -1
  786. package/node_modules/@openrig/daemon/dist/domain/restore-plan-preview.d.ts +6 -2
  787. package/node_modules/@openrig/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
  788. package/node_modules/@openrig/daemon/dist/domain/restore-plan-preview.js +37 -19
  789. package/node_modules/@openrig/daemon/dist/domain/restore-plan-preview.js.map +1 -1
  790. package/node_modules/@openrig/daemon/dist/domain/rig-expansion-service.d.ts.map +1 -1
  791. package/node_modules/@openrig/daemon/dist/domain/rig-expansion-service.js +10 -9
  792. package/node_modules/@openrig/daemon/dist/domain/rig-expansion-service.js.map +1 -1
  793. package/node_modules/@openrig/daemon/dist/domain/rig-lifecycle-service.d.ts +24 -4
  794. package/node_modules/@openrig/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
  795. package/node_modules/@openrig/daemon/dist/domain/rig-lifecycle-service.js +116 -6
  796. package/node_modules/@openrig/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
  797. package/node_modules/@openrig/daemon/dist/domain/rig-repository.d.ts +6 -1
  798. package/node_modules/@openrig/daemon/dist/domain/rig-repository.d.ts.map +1 -1
  799. package/node_modules/@openrig/daemon/dist/domain/rig-repository.js +28 -3
  800. package/node_modules/@openrig/daemon/dist/domain/rig-repository.js.map +1 -1
  801. package/node_modules/@openrig/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
  802. package/node_modules/@openrig/daemon/dist/domain/rigspec-codec.js +74 -4
  803. package/node_modules/@openrig/daemon/dist/domain/rigspec-codec.js.map +1 -1
  804. package/node_modules/@openrig/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
  805. package/node_modules/@openrig/daemon/dist/domain/rigspec-exporter.js +2 -0
  806. package/node_modules/@openrig/daemon/dist/domain/rigspec-exporter.js.map +1 -1
  807. package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.d.ts +4 -0
  808. package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
  809. package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.js +16 -0
  810. package/node_modules/@openrig/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
  811. package/node_modules/@openrig/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
  812. package/node_modules/@openrig/daemon/dist/domain/rigspec-schema.js +32 -4
  813. package/node_modules/@openrig/daemon/dist/domain/rigspec-schema.js.map +1 -1
  814. package/node_modules/@openrig/daemon/dist/domain/scope/node-file.d.ts +8 -0
  815. package/node_modules/@openrig/daemon/dist/domain/scope/node-file.d.ts.map +1 -1
  816. package/node_modules/@openrig/daemon/dist/domain/scope/node-file.js +18 -0
  817. package/node_modules/@openrig/daemon/dist/domain/scope/node-file.js.map +1 -1
  818. package/node_modules/@openrig/daemon/dist/domain/scope/scope-audit.d.ts +5 -2
  819. package/node_modules/@openrig/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
  820. package/node_modules/@openrig/daemon/dist/domain/scope/scope-audit.js +3 -3
  821. package/node_modules/@openrig/daemon/dist/domain/scope/scope-audit.js.map +1 -1
  822. package/node_modules/@openrig/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
  823. package/node_modules/@openrig/daemon/dist/domain/snapshot-capture.js +6 -0
  824. package/node_modules/@openrig/daemon/dist/domain/snapshot-capture.js.map +1 -1
  825. package/node_modules/@openrig/daemon/dist/domain/types.d.ts +28 -4
  826. package/node_modules/@openrig/daemon/dist/domain/types.d.ts.map +1 -1
  827. package/node_modules/@openrig/daemon/dist/domain/types.js.map +1 -1
  828. package/node_modules/@openrig/daemon/dist/domain/view-projector.d.ts +5 -1
  829. package/node_modules/@openrig/daemon/dist/domain/view-projector.d.ts.map +1 -1
  830. package/node_modules/@openrig/daemon/dist/domain/view-projector.js +24 -0
  831. package/node_modules/@openrig/daemon/dist/domain/view-projector.js.map +1 -1
  832. package/node_modules/@openrig/daemon/dist/domain/watchdog-jobs-repository.d.ts +25 -6
  833. package/node_modules/@openrig/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
  834. package/node_modules/@openrig/daemon/dist/domain/watchdog-jobs-repository.js +115 -32
  835. package/node_modules/@openrig/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
  836. package/node_modules/@openrig/daemon/dist/domain/watchdog-policy-engine.d.ts +40 -1
  837. package/node_modules/@openrig/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
  838. package/node_modules/@openrig/daemon/dist/domain/watchdog-policy-engine.js +112 -6
  839. package/node_modules/@openrig/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
  840. package/node_modules/@openrig/daemon/dist/domain/watchdog-scheduler.d.ts.map +1 -1
  841. package/node_modules/@openrig/daemon/dist/domain/watchdog-scheduler.js +3 -2
  842. package/node_modules/@openrig/daemon/dist/domain/watchdog-scheduler.js.map +1 -1
  843. package/node_modules/@openrig/daemon/dist/domain/workspace/default-workspace-scaffold.d.ts.map +1 -1
  844. package/node_modules/@openrig/daemon/dist/domain/workspace/default-workspace-scaffold.js +37 -2
  845. package/node_modules/@openrig/daemon/dist/domain/workspace/default-workspace-scaffold.js.map +1 -1
  846. package/node_modules/@openrig/daemon/dist/domain/workspace/workspace-doctor.d.ts.map +1 -1
  847. package/node_modules/@openrig/daemon/dist/domain/workspace/workspace-doctor.js +2 -4
  848. package/node_modules/@openrig/daemon/dist/domain/workspace/workspace-doctor.js.map +1 -1
  849. package/node_modules/@openrig/daemon/dist/index.d.ts +9 -0
  850. package/node_modules/@openrig/daemon/dist/index.d.ts.map +1 -1
  851. package/node_modules/@openrig/daemon/dist/index.js +24 -1
  852. package/node_modules/@openrig/daemon/dist/index.js.map +1 -1
  853. package/node_modules/@openrig/daemon/dist/routes/agent-images.d.ts.map +1 -1
  854. package/node_modules/@openrig/daemon/dist/routes/agent-images.js +9 -0
  855. package/node_modules/@openrig/daemon/dist/routes/agent-images.js.map +1 -1
  856. package/node_modules/@openrig/daemon/dist/routes/bundles.d.ts.map +1 -1
  857. package/node_modules/@openrig/daemon/dist/routes/bundles.js +61 -1
  858. package/node_modules/@openrig/daemon/dist/routes/bundles.js.map +1 -1
  859. package/node_modules/@openrig/daemon/dist/routes/context-packs.d.ts.map +1 -1
  860. package/node_modules/@openrig/daemon/dist/routes/context-packs.js +146 -6
  861. package/node_modules/@openrig/daemon/dist/routes/context-packs.js.map +1 -1
  862. package/node_modules/@openrig/daemon/dist/routes/gateway.js +1 -1
  863. package/node_modules/@openrig/daemon/dist/routes/gateway.js.map +1 -1
  864. package/node_modules/@openrig/daemon/dist/routes/queue.d.ts.map +1 -1
  865. package/node_modules/@openrig/daemon/dist/routes/queue.js +22 -11
  866. package/node_modules/@openrig/daemon/dist/routes/queue.js.map +1 -1
  867. package/node_modules/@openrig/daemon/dist/routes/rigs.js +45 -5
  868. package/node_modules/@openrig/daemon/dist/routes/rigs.js.map +1 -1
  869. package/node_modules/@openrig/daemon/dist/routes/scope-audit.js +6 -6
  870. package/node_modules/@openrig/daemon/dist/routes/scope-audit.js.map +1 -1
  871. package/node_modules/@openrig/daemon/dist/routes/sessions.js +7 -3
  872. package/node_modules/@openrig/daemon/dist/routes/sessions.js.map +1 -1
  873. package/node_modules/@openrig/daemon/dist/routes/views.d.ts.map +1 -1
  874. package/node_modules/@openrig/daemon/dist/routes/views.js +4 -1
  875. package/node_modules/@openrig/daemon/dist/routes/views.js.map +1 -1
  876. package/node_modules/@openrig/daemon/dist/routes/watchdog.d.ts.map +1 -1
  877. package/node_modules/@openrig/daemon/dist/routes/watchdog.js +40 -3
  878. package/node_modules/@openrig/daemon/dist/routes/watchdog.js.map +1 -1
  879. package/node_modules/@openrig/daemon/dist/server.d.ts.map +1 -1
  880. package/node_modules/@openrig/daemon/dist/server.js +5 -0
  881. package/node_modules/@openrig/daemon/dist/server.js.map +1 -1
  882. package/node_modules/@openrig/daemon/dist/startup.d.ts.map +1 -1
  883. package/node_modules/@openrig/daemon/dist/startup.js +197 -6
  884. package/node_modules/@openrig/daemon/dist/startup.js.map +1 -1
  885. package/node_modules/@openrig/daemon/package.json +5 -1
  886. package/package.json +1 -1
  887. package/tui/dist/demo-data.js +2 -2
  888. package/tui/dist/demo-data.js.map +1 -1
  889. package/daemon/assets/plugins/openrig-core/skills/openrig-operating-model/CHANGELOG.md +0 -92
  890. package/daemon/assets/plugins/openrig-core/skills/openrig-operating-model/REVISION-GUIDE.md +0 -34
  891. package/daemon/assets/plugins/openrig-core/skills/openrig-operating-model/ROADMAP.md +0 -23
  892. package/daemon/assets/plugins/openrig-core/skills/openrig-operating-model/ROLLOUT.md +0 -234
  893. package/daemon/context-packs/skills/core/attention-queue/SKILL.md +0 -264
  894. package/daemon/context-packs/skills/core/attention-queue/manifest.yaml +0 -9
  895. package/daemon/context-packs/skills/process/brainstorming/OPENRIG.md +0 -48
  896. package/daemon/context-packs/skills/process/brainstorming/SKILL.md +0 -107
  897. package/daemon/context-packs/skills/process/brainstorming/manifest.yaml +0 -11
  898. package/daemon/context-packs/skills/process/executing-plans/OPENRIG.md +0 -56
  899. package/daemon/context-packs/skills/process/executing-plans/SKILL.md +0 -94
  900. package/daemon/context-packs/skills/process/executing-plans/manifest.yaml +0 -11
  901. package/daemon/context-packs/skills/process/using-superpowers/OPENRIG.md +0 -48
  902. package/daemon/context-packs/skills/process/using-superpowers/SKILL.md +0 -106
  903. package/daemon/context-packs/skills/process/using-superpowers/manifest.yaml +0 -11
  904. package/daemon/context-packs/skills/process/writing-plans/OPENRIG.md +0 -52
  905. package/daemon/context-packs/skills/process/writing-plans/SKILL.md +0 -126
  906. package/daemon/context-packs/skills/process/writing-plans/manifest.yaml +0 -11
  907. package/daemon/specs/agents/shared/skills/core/attention-queue/SKILL.md +0 -264
  908. package/daemon/specs/agents/shared/skills/process/brainstorming/OPENRIG.md +0 -48
  909. package/daemon/specs/agents/shared/skills/process/brainstorming/SKILL.md +0 -107
  910. package/daemon/specs/agents/shared/skills/process/executing-plans/OPENRIG.md +0 -56
  911. package/daemon/specs/agents/shared/skills/process/executing-plans/SKILL.md +0 -94
  912. package/daemon/specs/agents/shared/skills/process/using-superpowers/OPENRIG.md +0 -48
  913. package/daemon/specs/agents/shared/skills/process/using-superpowers/SKILL.md +0 -106
  914. package/daemon/specs/agents/shared/skills/process/writing-plans/OPENRIG.md +0 -52
  915. package/daemon/specs/agents/shared/skills/process/writing-plans/SKILL.md +0 -126
@@ -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"
@@ -0,0 +1,170 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { readFile } from "node:fs/promises";
4
+ import { realpathSync } from "node:fs";
5
+ import path from "node:path";
6
+ import { fileURLToPath } from "node:url";
7
+
8
+ const MIN_LEVEL = 2;
9
+ const MAX_LEVEL = 3;
10
+
11
+ export class AddressResolutionError extends Error {
12
+ constructor(message) {
13
+ super(message);
14
+ this.name = "AddressResolutionError";
15
+ }
16
+ }
17
+
18
+ export function slugifyHeader(title) {
19
+ return title
20
+ .toLowerCase()
21
+ .replace(/[`*_~]/g, "")
22
+ .replace(/[^a-z0-9]+/g, "-")
23
+ .replace(/^-+|-+$/g, "");
24
+ }
25
+
26
+ export function parseAddress(address) {
27
+ const hashCount = (address.match(/#/g) ?? []).length;
28
+ if (hashCount > 1) {
29
+ throw new AddressResolutionError(`address '${address}' must contain at most one '#' separator`);
30
+ }
31
+
32
+ const [ref, headerPart] = hashCount === 1 ? address.split("#") : [address, undefined];
33
+ if (!ref) throw new AddressResolutionError(`address '${address}' has no file before '#'`);
34
+ if (headerPart === undefined) return { ref, headerPath: [] };
35
+
36
+ const headerPath = headerPart.split("/");
37
+ if (headerPath.some((segment) => segment.length === 0)) {
38
+ throw new AddressResolutionError(`address '${address}' has an empty header segment`);
39
+ }
40
+ if (headerPath.length > MAX_LEVEL - MIN_LEVEL + 1) {
41
+ throw new AddressResolutionError(`address '${address}' is too deep; addresses target H2 and H3 only`);
42
+ }
43
+ return { ref, headerPath };
44
+ }
45
+
46
+ function scanHeaders(lines) {
47
+ const hits = [];
48
+ let fence = null;
49
+
50
+ for (let lineNumber = 0; lineNumber < lines.length; lineNumber++) {
51
+ const line = lines[lineNumber];
52
+ const fenceMatch = line.match(/^\s{0,3}(`{3,}|~{3,})/);
53
+ if (fenceMatch) {
54
+ const marker = fenceMatch[1][0];
55
+ const length = fenceMatch[1].length;
56
+ if (!fence) fence = { marker, length };
57
+ else if (fence.marker === marker && length >= fence.length) fence = null;
58
+ continue;
59
+ }
60
+ if (fence) continue;
61
+
62
+ const heading = line.match(/^(#{1,6})\s+(.*\S)\s*$/);
63
+ if (heading) hits.push({ level: heading[1].length, title: heading[2], line: lineNumber });
64
+ }
65
+ return hits;
66
+ }
67
+
68
+ export function parseMarkdownSections(text) {
69
+ const lines = text.split("\n");
70
+ const headers = scanHeaders(lines);
71
+ const sections = [];
72
+ let currentH2 = null;
73
+
74
+ for (let index = 0; index < headers.length; index++) {
75
+ const heading = headers[index];
76
+ if (heading.level < MIN_LEVEL || heading.level > MAX_LEVEL) {
77
+ if (heading.level < MIN_LEVEL) currentH2 = null;
78
+ continue;
79
+ }
80
+
81
+ const slug = slugifyHeader(heading.title);
82
+ if (heading.level === 2) currentH2 = slug;
83
+ const headerPath = heading.level === 2
84
+ ? [slug]
85
+ : currentH2 !== null
86
+ ? [currentH2, slug]
87
+ : [slug];
88
+ const fullEnd = headers.slice(index + 1).find((next) => next.level <= heading.level)?.line ?? lines.length;
89
+ const ownEnd = headers[index + 1]?.line ?? lines.length;
90
+
91
+ sections.push({
92
+ level: heading.level,
93
+ title: heading.title,
94
+ headerPath,
95
+ headerLine: heading.line,
96
+ text: lines.slice(heading.line, fullEnd).join("\n"),
97
+ ownText: lines.slice(heading.line, ownEnd).join("\n"),
98
+ });
99
+ }
100
+ return sections;
101
+ }
102
+
103
+ export function resolveAddress(text, headerPath) {
104
+ if (headerPath.length === 0) {
105
+ throw new AddressResolutionError("a bare file resolves without section lookup");
106
+ }
107
+
108
+ const sections = parseMarkdownSections(text);
109
+ const wanted = headerPath.join("/");
110
+ const hits = sections.filter((section) => section.headerPath.join("/") === wanted);
111
+ if (hits.length > 1) {
112
+ throw new AddressResolutionError(
113
+ `address '#${wanted}' is AMBIGUOUS: ${hits.length} sections match at lines ${hits.map((hit) => hit.headerLine + 1).join(", ")}`,
114
+ );
115
+ }
116
+ if (hits.length === 1) return hits[0];
117
+
118
+ const parentPath = headerPath.slice(0, -1).join("/");
119
+ const candidates = sections
120
+ .filter((section) => section.headerPath.slice(0, -1).join("/") === parentPath)
121
+ .map((section) => section.headerPath.join("/"));
122
+ throw new AddressResolutionError(
123
+ `address '#${wanted}' matches no header. ` +
124
+ (candidates.length > 0
125
+ ? `Addressable sections under '${parentPath || "(top)"}': ${candidates.join(", ")}.`
126
+ : `Addressable sections: ${sections.map((section) => section.headerPath.join("/")).join(", ") || "(none)"}.`),
127
+ );
128
+ }
129
+
130
+ function usage() {
131
+ return "Usage: resolve-markdown.mjs [--root DIR] FILE[#h2-slug[/h3-slug]]\n";
132
+ }
133
+
134
+ async function main(argv) {
135
+ let root = process.cwd();
136
+ const args = [...argv];
137
+
138
+ if (args[0] === "--help" || args[0] === "-h") {
139
+ process.stdout.write(usage());
140
+ return;
141
+ }
142
+ if (args[0] === "--root") {
143
+ if (!args[1]) throw new AddressResolutionError("--root needs a directory");
144
+ root = path.resolve(args[1]);
145
+ args.splice(0, 2);
146
+ }
147
+ if (args.length !== 1) throw new AddressResolutionError(usage().trim());
148
+
149
+ const { ref, headerPath } = parseAddress(args[0]);
150
+ const filePath = path.isAbsolute(ref) ? ref : path.resolve(root, ref);
151
+ const text = await readFile(filePath, "utf8");
152
+ process.stdout.write(headerPath.length === 0 ? text : resolveAddress(text, headerPath).text);
153
+ }
154
+
155
+ function isMainModule() {
156
+ const entry = process.argv[1];
157
+ if (!entry) return false;
158
+ try {
159
+ return realpathSync(entry) === realpathSync(fileURLToPath(import.meta.url));
160
+ } catch {
161
+ return false;
162
+ }
163
+ }
164
+
165
+ if (isMainModule()) {
166
+ main(process.argv.slice(2)).catch((error) => {
167
+ process.stderr.write(`${error.name ?? "Error"}: ${error.message}\n`);
168
+ process.exitCode = 1;
169
+ });
170
+ }
@@ -0,0 +1,94 @@
1
+ ---
2
+ name: mission-slice-sop
3
+ description: >-
4
+ Use when starting, building, handing off, restoring, or closing a mission or slice under the default lightweight SDLC.
5
+ metadata:
6
+ openrig:
7
+ stage: shipped
8
+ sibling_skills:
9
+ - queue-handoff
10
+ - seat-continuity-and-handover
11
+ - claude-compaction-restore
12
+ ---
13
+
14
+ # Mission/Slice SOP — Part A
15
+
16
+ Use this skill to actually **do** mission/slice work: track on the canonical files, record what you proved, hand off through them, and survive compaction on them. **Do the work described here; do not merely explain the protocol.**
17
+
18
+ **Full convention SSOT:** repo `docs/reference/sdlc-conventions.md`; installed `$OPENRIG_HOME/reference/sdlc-conventions.md`. This skill is the concise Part-A teaching surface and does not replace the full convention.
19
+
20
+ ## THIS IS THE LIGHT DEFAULT — read this before anything else
21
+
22
+ **The default for any slice is the inner loop:** ground yourself → build → **test with your own eyes** → iterate → **ONE** full-breadth review at the end. That is the whole process. It is not a reduced form of a better process; it IS the process.
23
+
24
+ **Part B is defined in the SSOT above and applies only when the human operator — or an orchestrator explicitly relaying that decision — assigns it to a named piece of work.** You may not select it yourself. If you believe something earns it, say so in one sentence and **continue on Part A** until told otherwise.
25
+
26
+ ## Proportionality — this SOP serves shipping; it is not the work itself
27
+
28
+ The working product is the deliverable. This bookkeeping exists so the work survives handoff, compaction, and review — nothing more. **Match it to stakes.** The `rig scope audit` backstop is **advisory and fail-open**: it never blocks a build and is not a gate you clear before proceeding. If you're spending more time on the convention files or the audit than on the running product, stop and go build. Running the full apparatus on a small change is the letter-worship failure, not diligence.
29
+
30
+ ## The three role contracts
31
+
32
+ - **Planning agent:** records what the slice is for and what "done" looks like, in the slice's own words; produces mockups for UI deliverables so the builder has something to look at (a UI slice with no mockup is an incomplete plan; non-UI slices have none — not a gate).
33
+ - **Build agent:** builds it, and **looks at the mockups**. Verifies by running the thing.
34
+ - **QA agent (owns the compare):** compares planned vs delivered per deliverable, records the verdict and the note. On mismatch: fix-and-re-review, or kick back with the reason — never escalate a raw mismatch to the human.
35
+
36
+ These three are a division of labour, not a chain of gates. One agent may hold all three on a small slice.
37
+
38
+ ## The current file contract
39
+
40
+ > These files are the **operating surface of the work** — you track on them, record on them, hand off through them, and survive compaction on them. Keep them current because that is what lets the work survive. But they **serve** the product; they are not the product. If you're polishing files while the actual thing isn't shipping, you've inverted it: go build, then update them.
41
+
42
+ - **Slice:** `SPEC.md`, `PROGRESS.md`, `PROOF.md`, and `proof/`.
43
+ - **Mission:** `SPEC.md` and `NOTES.md`.
44
+
45
+ ## Per-file rules — WHO / WHEN / HOW
46
+
47
+ ### SPEC.md
48
+ - **WHO:** the planning owner authors it; builders and reviewers read it as the scope and intent source.
49
+ - **WHEN:** at creation and whenever scope changes.
50
+ - **HOW:** a slice carries `intent:` in frontmatter and opens with `## Intent`, `## Mini-requirements`, and `## Proof contract`. A mission carries its intent and mission-level specification in the same authored node file. Keep depth proportional to the work.
51
+
52
+ ### PROGRESS.md
53
+ - **WHO:** the orchestrator owns `§1` (current state); every agent logs its own outcomes.
54
+ - **WHEN:** on material delivery-state changes and at acceptance.
55
+ - **HOW:** one line per outcome (checkbox), link down for detail; keep frontmatter `stage`/`verified` honest.
56
+
57
+ ### PROOF.md + proof/
58
+ - **WHO:** the impl/QA pair that worked the slice.
59
+ - **WHEN:** before you call a slice done.
60
+ - **HOW:** say what you verified and how you verified it — **by effect**: you ran it and looked at the result. Put supporting media under `proof/`. State plainly what is proven and what is **not**; an honest "this half is untested" is worth more than a checkmark. If a drop verb is in play for this slice, prefer it over hand-placing files so the artifact carries its own provenance.
61
+
62
+ ### NOTES.md
63
+ - **WHO:** any agent updates `§1` (top-of-mind); each seat owns and appends to its own `§A–§X`.
64
+ - **WHEN:** on material mission-context changes; a compacting agent **files its state here BEFORE compaction and reads it on restore.**
65
+ - **HOW:** accruing tribal knowledge — `§1` ≤ 5–15 lines (gates, open decisions, surprises); per-seat continuation entries (latest = truth; other seats read-only). Pointer-first; don't duplicate.
66
+
67
+ ## The lifecycle (4 legs)
68
+
69
+ **SCAFFOLD** (`rig scope` creates the files from templates) → **POPULATE** (agents fill them as work happens) → **PROJECT** (the Living Notes UI reads them into INTENT → PLAN → DELIVERED) → **VERIFY** (`rig scope audit`, advisory). "Loose freeform write + deterministic verify."
70
+
71
+ ## Hot-potato (handoffs)
72
+
73
+ End every turn by passing the ball — a `rig queue handoff` to the next agent. The handoff verb is **transactional**: it closes the source as handed-off and mints the successor owned by `--to`, so the baton cannot be dropped. A handoff terminates only at the orchestrator seat, which holds the context to judge whether a park is legitimate.
74
+
75
+ **A plain `rig queue create` row is informational** — a durable message. It is not a baton and does not carry this obligation. Use `handoff` when you are passing real work; use `create` when you are informing.
76
+
77
+ Never go idle holding a baton.
78
+
79
+ ## Verify (deterministic backstop)
80
+
81
+ Run `rig scope audit` at slice-close. Every convention check is **advisory / fail-open** — it records and advises, never blocks a write. Fix what's real, skip what isn't, keep moving. **A clean audit score is not required to proceed.**
82
+
83
+ ## Reading terminal captures — KNOWN GOTCHA: ghost-text autocomplete is NOT real
84
+
85
+ When you `rig capture` a pane, **greyed / ghost autocomplete suggestions are NOT real content** — they are autocomplete *previews*, not typed, staged, or committed input. **This has been faking agents out a lot**: reading a ghost suggestion in a peer's input box as "staged text they're about to send," then reasoning on a string that was never there.
86
+
87
+ **Rule:** ignore ghost/autosuggest text entirely. Only *committed/rendered* pane output is real. When it matters, verify at source (git, the queue, the actual event) — never off a capture's ghost line.
88
+
89
+ ## Moment-of-truth checklist
90
+
91
+ - **Starting a slice?** → do you know what it's for and what done looks like? mockups attached (UI slices)? **Are you on the light path?** (You are, unless the mission owner assigned the overlay.)
92
+ - **Finishing a slice?** → does `PROOF.md` say what you actually verified, by effect, including what is NOT covered? `PROGRESS.md` updated? mission `NOTES.md` refreshed? handed off via `rig queue handoff`?
93
+ - **Compacting?** → file your state in mission `NOTES.md`; on restore, read it plus the active slice's `SPEC.md`, `PROGRESS.md`, and `PROOF.md`.
94
+ - **Starting on a mission?** → read mission `SPEC.md`, `NOTES.md`, and the conventions SSOT.
@@ -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: "mission-slice-sop"
4
+ version: "0.5.7"
5
+ taxonomy: "skills"
6
+ purpose: "Use when starting, building, handing off, restoring, or closing a mission or slice under the default lightweight SDLC."
7
+ files:
8
+ - path: "SKILL.md"
9
+ role: "instruction"
10
+ summary: "Use when starting, building, handing off, restoring, or closing a mission or slice under the default lightweight SDLC."