@trac3er/oh-my-god 2.1.0 → 2.1.4

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 (371) hide show
  1. package/.agents/skills/omg/AGENTS.fragment.md +2 -2
  2. package/.agents/skills/omg/algorithms/SKILL.md +1 -1
  3. package/.agents/skills/omg/algorithms/openai.yaml +1 -1
  4. package/.agents/skills/omg/api-twin/SKILL.md +1 -1
  5. package/.agents/skills/omg/api-twin/openai.yaml +1 -1
  6. package/.agents/skills/omg/claim-judge/SKILL.md +1 -1
  7. package/.agents/skills/omg/claim-judge/openai.yaml +1 -1
  8. package/.agents/skills/omg/codex-rules.md +1 -1
  9. package/.agents/skills/omg/control-plane/SKILL.md +1 -1
  10. package/.agents/skills/omg/control-plane/openai.yaml +1 -1
  11. package/.agents/skills/omg/data-lineage/SKILL.md +1 -1
  12. package/.agents/skills/omg/data-lineage/openai.yaml +1 -1
  13. package/.agents/skills/omg/delta-classifier/SKILL.md +1 -1
  14. package/.agents/skills/omg/delta-classifier/openai.yaml +1 -1
  15. package/.agents/skills/omg/eval-gate/SKILL.md +1 -1
  16. package/.agents/skills/omg/eval-gate/openai.yaml +1 -1
  17. package/.agents/skills/omg/health/SKILL.md +1 -1
  18. package/.agents/skills/omg/health/openai.yaml +1 -1
  19. package/.agents/skills/omg/hook-governor/SKILL.md +1 -1
  20. package/.agents/skills/omg/hook-governor/openai.yaml +1 -1
  21. package/.agents/skills/omg/incident-replay/SKILL.md +1 -1
  22. package/.agents/skills/omg/incident-replay/openai.yaml +1 -1
  23. package/.agents/skills/omg/lsp-pack/SKILL.md +1 -1
  24. package/.agents/skills/omg/lsp-pack/openai.yaml +1 -1
  25. package/.agents/skills/omg/mcp-fabric/SKILL.md +1 -1
  26. package/.agents/skills/omg/mcp-fabric/openai.yaml +1 -1
  27. package/.agents/skills/omg/plan-council/SKILL.md +1 -1
  28. package/.agents/skills/omg/plan-council/openai.yaml +1 -1
  29. package/.agents/skills/omg/preflight/SKILL.md +1 -1
  30. package/.agents/skills/omg/preflight/openai.yaml +1 -1
  31. package/.agents/skills/omg/proof-gate/SKILL.md +1 -1
  32. package/.agents/skills/omg/proof-gate/openai.yaml +1 -1
  33. package/.agents/skills/omg/remote-supervisor/SKILL.md +1 -1
  34. package/.agents/skills/omg/remote-supervisor/openai.yaml +1 -1
  35. package/.agents/skills/omg/robotics/SKILL.md +1 -1
  36. package/.agents/skills/omg/robotics/openai.yaml +1 -1
  37. package/.agents/skills/omg/secure-worktree-pipeline/SKILL.md +1 -1
  38. package/.agents/skills/omg/secure-worktree-pipeline/openai.yaml +1 -1
  39. package/.agents/skills/omg/security-check/SKILL.md +1 -1
  40. package/.agents/skills/omg/security-check/openai.yaml +1 -1
  41. package/.agents/skills/omg/test-intent-lock/SKILL.md +1 -1
  42. package/.agents/skills/omg/test-intent-lock/openai.yaml +1 -1
  43. package/.agents/skills/omg/tracebank/SKILL.md +1 -1
  44. package/.agents/skills/omg/tracebank/openai.yaml +1 -1
  45. package/.agents/skills/omg/vision/SKILL.md +1 -1
  46. package/.agents/skills/omg/vision/openai.yaml +1 -1
  47. package/.claude-plugin/marketplace.json +3 -3
  48. package/.claude-plugin/plugin.json +1 -1
  49. package/CHANGELOG.md +16 -0
  50. package/CLI-ADAPTER-MAP.md +3 -3
  51. package/OMG-setup.sh +114 -1
  52. package/OMG_COMPAT_CONTRACT.md +1 -1
  53. package/README.md +2 -1
  54. package/artifacts/release/.claude-plugin/marketplace.json +3 -3
  55. package/artifacts/release/.claude-plugin/plugin.json +1 -1
  56. package/artifacts/release/OMG_COMPAT_CONTRACT.md +1 -1
  57. package/artifacts/release/dist/enterprise/bundle/.claude-plugin/marketplace.json +3 -3
  58. package/artifacts/release/dist/enterprise/bundle/.claude-plugin/plugin.json +1 -1
  59. package/artifacts/release/dist/enterprise/bundle/OMG_COMPAT_CONTRACT.md +1 -1
  60. package/artifacts/release/dist/enterprise/bundle/plugins/advanced/plugin.json +26 -9
  61. package/artifacts/release/dist/enterprise/bundle/registry/bundles/algorithms.yaml +1 -1
  62. package/artifacts/release/dist/enterprise/bundle/registry/bundles/api-twin.yaml +1 -1
  63. package/artifacts/release/dist/enterprise/bundle/registry/bundles/claim-judge.yaml +1 -1
  64. package/artifacts/release/dist/enterprise/bundle/registry/bundles/control-plane.yaml +1 -1
  65. package/artifacts/release/dist/enterprise/bundle/registry/bundles/data-lineage.yaml +1 -1
  66. package/artifacts/release/dist/enterprise/bundle/registry/bundles/delta-classifier.yaml +1 -1
  67. package/artifacts/release/dist/enterprise/bundle/registry/bundles/eval-gate.yaml +1 -1
  68. package/artifacts/release/dist/enterprise/bundle/registry/bundles/health.yaml +1 -1
  69. package/artifacts/release/dist/enterprise/bundle/registry/bundles/hook-governor.yaml +1 -1
  70. package/artifacts/release/dist/enterprise/bundle/registry/bundles/incident-replay.yaml +1 -1
  71. package/artifacts/release/dist/enterprise/bundle/registry/bundles/lsp-pack.yaml +1 -1
  72. package/artifacts/release/dist/enterprise/bundle/registry/bundles/mcp-fabric.yaml +1 -1
  73. package/artifacts/release/dist/enterprise/bundle/registry/bundles/plan-council.yaml +1 -1
  74. package/artifacts/release/dist/enterprise/bundle/registry/bundles/preflight.yaml +1 -1
  75. package/artifacts/release/dist/enterprise/bundle/registry/bundles/proof-gate.yaml +1 -1
  76. package/artifacts/release/dist/enterprise/bundle/registry/bundles/remote-supervisor.yaml +1 -1
  77. package/artifacts/release/dist/enterprise/bundle/registry/bundles/robotics.yaml +1 -1
  78. package/artifacts/release/dist/enterprise/bundle/registry/bundles/secure-worktree-pipeline.yaml +1 -1
  79. package/artifacts/release/dist/enterprise/bundle/registry/bundles/security-check.yaml +1 -1
  80. package/artifacts/release/dist/enterprise/bundle/registry/bundles/test-intent-lock.yaml +1 -1
  81. package/artifacts/release/dist/enterprise/bundle/registry/bundles/tracebank.yaml +1 -1
  82. package/artifacts/release/dist/enterprise/bundle/registry/bundles/vision.yaml +1 -1
  83. package/artifacts/release/dist/enterprise/bundle/registry/omg-capability.schema.json +1 -1
  84. package/artifacts/release/dist/enterprise/bundle/settings.json +3 -3
  85. package/artifacts/release/dist/enterprise/manifest.json +30 -40
  86. package/artifacts/release/dist/public/bundle/.claude-plugin/marketplace.json +3 -3
  87. package/artifacts/release/dist/public/bundle/.claude-plugin/plugin.json +1 -1
  88. package/artifacts/release/dist/public/bundle/OMG_COMPAT_CONTRACT.md +1 -1
  89. package/artifacts/release/dist/public/bundle/plugins/advanced/plugin.json +26 -9
  90. package/artifacts/release/dist/public/bundle/registry/bundles/algorithms.yaml +1 -1
  91. package/artifacts/release/dist/public/bundle/registry/bundles/api-twin.yaml +1 -1
  92. package/artifacts/release/dist/public/bundle/registry/bundles/claim-judge.yaml +1 -1
  93. package/artifacts/release/dist/public/bundle/registry/bundles/control-plane.yaml +1 -1
  94. package/artifacts/release/dist/public/bundle/registry/bundles/data-lineage.yaml +1 -1
  95. package/artifacts/release/dist/public/bundle/registry/bundles/delta-classifier.yaml +1 -1
  96. package/artifacts/release/dist/public/bundle/registry/bundles/eval-gate.yaml +1 -1
  97. package/artifacts/release/dist/public/bundle/registry/bundles/health.yaml +1 -1
  98. package/artifacts/release/dist/public/bundle/registry/bundles/hook-governor.yaml +1 -1
  99. package/artifacts/release/dist/public/bundle/registry/bundles/incident-replay.yaml +1 -1
  100. package/artifacts/release/dist/public/bundle/registry/bundles/lsp-pack.yaml +1 -1
  101. package/artifacts/release/dist/public/bundle/registry/bundles/mcp-fabric.yaml +1 -1
  102. package/artifacts/release/dist/public/bundle/registry/bundles/plan-council.yaml +1 -1
  103. package/artifacts/release/dist/public/bundle/registry/bundles/preflight.yaml +1 -1
  104. package/artifacts/release/dist/public/bundle/registry/bundles/proof-gate.yaml +1 -1
  105. package/artifacts/release/dist/public/bundle/registry/bundles/remote-supervisor.yaml +1 -1
  106. package/artifacts/release/dist/public/bundle/registry/bundles/robotics.yaml +1 -1
  107. package/artifacts/release/dist/public/bundle/registry/bundles/secure-worktree-pipeline.yaml +1 -1
  108. package/artifacts/release/dist/public/bundle/registry/bundles/security-check.yaml +1 -1
  109. package/artifacts/release/dist/public/bundle/registry/bundles/test-intent-lock.yaml +1 -1
  110. package/artifacts/release/dist/public/bundle/registry/bundles/tracebank.yaml +1 -1
  111. package/artifacts/release/dist/public/bundle/registry/bundles/vision.yaml +1 -1
  112. package/artifacts/release/dist/public/bundle/registry/omg-capability.schema.json +1 -1
  113. package/artifacts/release/dist/public/bundle/settings.json +3 -3
  114. package/artifacts/release/dist/public/manifest.json +30 -40
  115. package/artifacts/release/plugins/advanced/plugin.json +26 -9
  116. package/artifacts/release/registry/bundles/algorithms.yaml +1 -1
  117. package/artifacts/release/registry/bundles/api-twin.yaml +1 -1
  118. package/artifacts/release/registry/bundles/claim-judge.yaml +1 -1
  119. package/artifacts/release/registry/bundles/control-plane.yaml +1 -1
  120. package/artifacts/release/registry/bundles/data-lineage.yaml +1 -1
  121. package/artifacts/release/registry/bundles/delta-classifier.yaml +1 -1
  122. package/artifacts/release/registry/bundles/eval-gate.yaml +1 -1
  123. package/artifacts/release/registry/bundles/health.yaml +1 -1
  124. package/artifacts/release/registry/bundles/hook-governor.yaml +1 -1
  125. package/artifacts/release/registry/bundles/incident-replay.yaml +1 -1
  126. package/artifacts/release/registry/bundles/lsp-pack.yaml +1 -1
  127. package/artifacts/release/registry/bundles/mcp-fabric.yaml +1 -1
  128. package/artifacts/release/registry/bundles/plan-council.yaml +1 -1
  129. package/artifacts/release/registry/bundles/preflight.yaml +1 -1
  130. package/artifacts/release/registry/bundles/proof-gate.yaml +1 -1
  131. package/artifacts/release/registry/bundles/remote-supervisor.yaml +1 -1
  132. package/artifacts/release/registry/bundles/robotics.yaml +1 -1
  133. package/artifacts/release/registry/bundles/secure-worktree-pipeline.yaml +1 -1
  134. package/artifacts/release/registry/bundles/security-check.yaml +1 -1
  135. package/artifacts/release/registry/bundles/test-intent-lock.yaml +1 -1
  136. package/artifacts/release/registry/bundles/tracebank.yaml +1 -1
  137. package/artifacts/release/registry/bundles/vision.yaml +1 -1
  138. package/artifacts/release/registry/omg-capability.schema.json +1 -1
  139. package/artifacts/release/settings.json +3 -3
  140. package/build/lib/commands/OMG:profile-review.md +43 -0
  141. package/build/lib/commands/OMG:validate.md +59 -0
  142. package/build/lib/control_plane/service.py +40 -1
  143. package/build/lib/hooks/_agent_registry.py +2 -0
  144. package/build/lib/hooks/firewall.py +263 -4
  145. package/build/lib/hooks/intentgate-keyword-detector.py +15 -3
  146. package/build/lib/hooks/policy_engine.py +77 -0
  147. package/build/lib/hooks/prompt-enhancer.py +146 -0
  148. package/build/lib/hooks/session-end-capture.py +374 -6
  149. package/build/lib/hooks/session-start.py +13 -35
  150. package/build/lib/hooks/setup_wizard.py +333 -1
  151. package/build/lib/hooks/shadow_manager.py +111 -2
  152. package/build/lib/hooks/stop_dispatcher.py +108 -4
  153. package/build/lib/plugins/advanced/plugin.json +26 -9
  154. package/build/lib/plugins/core/plugin.json +44 -11
  155. package/build/lib/registry/bundles/algorithms.yaml +1 -1
  156. package/build/lib/registry/bundles/api-twin.yaml +1 -1
  157. package/build/lib/registry/bundles/claim-judge.yaml +1 -1
  158. package/build/lib/registry/bundles/control-plane.yaml +1 -1
  159. package/build/lib/registry/bundles/data-lineage.yaml +1 -1
  160. package/build/lib/registry/bundles/delta-classifier.yaml +1 -1
  161. package/build/lib/registry/bundles/eval-gate.yaml +1 -1
  162. package/build/lib/registry/bundles/health.yaml +1 -1
  163. package/build/lib/registry/bundles/hook-governor.yaml +1 -1
  164. package/build/lib/registry/bundles/incident-replay.yaml +1 -1
  165. package/build/lib/registry/bundles/lsp-pack.yaml +1 -1
  166. package/build/lib/registry/bundles/mcp-fabric.yaml +1 -1
  167. package/build/lib/registry/bundles/plan-council.yaml +1 -1
  168. package/build/lib/registry/bundles/preflight.yaml +1 -1
  169. package/build/lib/registry/bundles/proof-gate.yaml +1 -1
  170. package/build/lib/registry/bundles/remote-supervisor.yaml +1 -1
  171. package/build/lib/registry/bundles/robotics.yaml +1 -1
  172. package/build/lib/registry/bundles/secure-worktree-pipeline.yaml +1 -1
  173. package/build/lib/registry/bundles/security-check.yaml +1 -1
  174. package/build/lib/registry/bundles/test-intent-lock.yaml +1 -1
  175. package/build/lib/registry/bundles/tracebank.yaml +1 -1
  176. package/build/lib/registry/bundles/vision.yaml +1 -1
  177. package/build/lib/registry/omg-capability.schema.json +1 -1
  178. package/build/lib/runtime/adoption.py +1 -1
  179. package/build/lib/runtime/background_verification.py +62 -0
  180. package/build/lib/runtime/claim_judge.py +165 -5
  181. package/build/lib/runtime/compat.py +15 -1
  182. package/build/lib/runtime/context_engine.py +261 -4
  183. package/build/lib/runtime/contract_compiler.py +370 -93
  184. package/build/lib/runtime/defense_state.py +79 -8
  185. package/build/lib/runtime/delta_classifier.py +80 -2
  186. package/build/lib/runtime/evidence_query.py +56 -4
  187. package/build/lib/runtime/evidence_registry.py +16 -0
  188. package/build/lib/runtime/evidence_requirements.py +47 -0
  189. package/build/lib/runtime/forge_agents.py +179 -9
  190. package/build/lib/runtime/forge_contracts.py +208 -2
  191. package/build/lib/runtime/interaction_journal.py +318 -42
  192. package/build/lib/runtime/memory_store.py +134 -1
  193. package/build/lib/runtime/mutation_gate.py +57 -11
  194. package/build/lib/runtime/omg_compat_contract_snapshot.json +2 -2
  195. package/build/lib/runtime/omg_mcp_server.py +14 -4
  196. package/build/lib/runtime/preflight.py +14 -0
  197. package/build/lib/runtime/profile_io.py +294 -0
  198. package/build/lib/runtime/proof_gate.py +122 -7
  199. package/build/lib/runtime/release_run_coordinator.py +339 -0
  200. package/build/lib/runtime/release_surfaces.py +243 -0
  201. package/build/lib/runtime/rollback_manifest.py +136 -0
  202. package/build/lib/runtime/router_critics.py +50 -0
  203. package/build/lib/runtime/runtime_contracts.py +137 -0
  204. package/build/lib/runtime/security_check.py +16 -0
  205. package/build/lib/runtime/session_health.py +60 -16
  206. package/build/lib/runtime/team_router.py +156 -13
  207. package/build/lib/runtime/test_intent_lock.py +102 -0
  208. package/build/lib/runtime/tool_plan_gate.py +249 -24
  209. package/build/lib/runtime/validate.py +194 -0
  210. package/build/lib/runtime/verification_controller.py +52 -2
  211. package/commands/OMG:diagnose-plugins.md +33 -0
  212. package/commands/OMG:profile-review.md +43 -0
  213. package/commands/OMG:setup.md +4 -1
  214. package/commands/OMG:validate.md +59 -0
  215. package/control_plane/service.py +40 -1
  216. package/dist/enterprise/bundle/.claude-plugin/marketplace.json +3 -3
  217. package/dist/enterprise/bundle/.claude-plugin/plugin.json +1 -1
  218. package/dist/enterprise/bundle/OMG_COMPAT_CONTRACT.md +1 -1
  219. package/dist/enterprise/bundle/plugins/advanced/plugin.json +26 -9
  220. package/dist/enterprise/bundle/registry/bundles/algorithms.yaml +1 -1
  221. package/dist/enterprise/bundle/registry/bundles/api-twin.yaml +1 -1
  222. package/dist/enterprise/bundle/registry/bundles/claim-judge.yaml +1 -1
  223. package/dist/enterprise/bundle/registry/bundles/control-plane.yaml +1 -1
  224. package/dist/enterprise/bundle/registry/bundles/data-lineage.yaml +1 -1
  225. package/dist/enterprise/bundle/registry/bundles/delta-classifier.yaml +1 -1
  226. package/dist/enterprise/bundle/registry/bundles/eval-gate.yaml +1 -1
  227. package/dist/enterprise/bundle/registry/bundles/health.yaml +1 -1
  228. package/dist/enterprise/bundle/registry/bundles/hook-governor.yaml +1 -1
  229. package/dist/enterprise/bundle/registry/bundles/incident-replay.yaml +1 -1
  230. package/dist/enterprise/bundle/registry/bundles/lsp-pack.yaml +1 -1
  231. package/dist/enterprise/bundle/registry/bundles/mcp-fabric.yaml +1 -1
  232. package/dist/enterprise/bundle/registry/bundles/plan-council.yaml +1 -1
  233. package/dist/enterprise/bundle/registry/bundles/preflight.yaml +1 -1
  234. package/dist/enterprise/bundle/registry/bundles/proof-gate.yaml +1 -1
  235. package/dist/enterprise/bundle/registry/bundles/remote-supervisor.yaml +1 -1
  236. package/dist/enterprise/bundle/registry/bundles/robotics.yaml +1 -1
  237. package/dist/enterprise/bundle/registry/bundles/secure-worktree-pipeline.yaml +1 -1
  238. package/dist/enterprise/bundle/registry/bundles/security-check.yaml +1 -1
  239. package/dist/enterprise/bundle/registry/bundles/test-intent-lock.yaml +1 -1
  240. package/dist/enterprise/bundle/registry/bundles/tracebank.yaml +1 -1
  241. package/dist/enterprise/bundle/registry/bundles/vision.yaml +1 -1
  242. package/dist/enterprise/bundle/registry/omg-capability.schema.json +1 -1
  243. package/dist/enterprise/bundle/settings.json +3 -3
  244. package/dist/enterprise/manifest.json +30 -40
  245. package/dist/oh_my_god-2.1.4-py3-none-any.whl +0 -0
  246. package/dist/oh_my_god-2.1.4.tar.gz +0 -0
  247. package/dist/public/bundle/.claude-plugin/marketplace.json +3 -3
  248. package/dist/public/bundle/.claude-plugin/plugin.json +1 -1
  249. package/dist/public/bundle/OMG_COMPAT_CONTRACT.md +1 -1
  250. package/dist/public/bundle/plugins/advanced/plugin.json +26 -9
  251. package/dist/public/bundle/registry/bundles/algorithms.yaml +1 -1
  252. package/dist/public/bundle/registry/bundles/api-twin.yaml +1 -1
  253. package/dist/public/bundle/registry/bundles/claim-judge.yaml +1 -1
  254. package/dist/public/bundle/registry/bundles/control-plane.yaml +1 -1
  255. package/dist/public/bundle/registry/bundles/data-lineage.yaml +1 -1
  256. package/dist/public/bundle/registry/bundles/delta-classifier.yaml +1 -1
  257. package/dist/public/bundle/registry/bundles/eval-gate.yaml +1 -1
  258. package/dist/public/bundle/registry/bundles/health.yaml +1 -1
  259. package/dist/public/bundle/registry/bundles/hook-governor.yaml +1 -1
  260. package/dist/public/bundle/registry/bundles/incident-replay.yaml +1 -1
  261. package/dist/public/bundle/registry/bundles/lsp-pack.yaml +1 -1
  262. package/dist/public/bundle/registry/bundles/mcp-fabric.yaml +1 -1
  263. package/dist/public/bundle/registry/bundles/plan-council.yaml +1 -1
  264. package/dist/public/bundle/registry/bundles/preflight.yaml +1 -1
  265. package/dist/public/bundle/registry/bundles/proof-gate.yaml +1 -1
  266. package/dist/public/bundle/registry/bundles/remote-supervisor.yaml +1 -1
  267. package/dist/public/bundle/registry/bundles/robotics.yaml +1 -1
  268. package/dist/public/bundle/registry/bundles/secure-worktree-pipeline.yaml +1 -1
  269. package/dist/public/bundle/registry/bundles/security-check.yaml +1 -1
  270. package/dist/public/bundle/registry/bundles/test-intent-lock.yaml +1 -1
  271. package/dist/public/bundle/registry/bundles/tracebank.yaml +1 -1
  272. package/dist/public/bundle/registry/bundles/vision.yaml +1 -1
  273. package/dist/public/bundle/registry/omg-capability.schema.json +1 -1
  274. package/dist/public/bundle/settings.json +3 -3
  275. package/dist/public/manifest.json +30 -40
  276. package/docs/install/opencode.md +30 -0
  277. package/docs/proof.md +11 -0
  278. package/docs/release-checklist.md +14 -1
  279. package/hooks/_agent_registry.py +2 -0
  280. package/hooks/firewall.py +263 -4
  281. package/hooks/intentgate-keyword-detector.py +15 -3
  282. package/hooks/policy_engine.py +77 -0
  283. package/hooks/prompt-enhancer.py +146 -0
  284. package/hooks/session-end-capture.py +374 -6
  285. package/hooks/session-start.py +13 -35
  286. package/hooks/setup_wizard.py +342 -2
  287. package/hooks/shadow_manager.py +111 -2
  288. package/hooks/stop_dispatcher.py +108 -4
  289. package/hud/omg-hud.mjs +30 -6
  290. package/lab/pipeline.py +197 -26
  291. package/package.json +1 -1
  292. package/plugins/advanced/plugin.json +26 -9
  293. package/plugins/core/plugin.json +51 -12
  294. package/pyproject.toml +10 -2
  295. package/registry/bundles/algorithms.yaml +1 -1
  296. package/registry/bundles/api-twin.yaml +1 -1
  297. package/registry/bundles/claim-judge.yaml +1 -1
  298. package/registry/bundles/control-plane.yaml +1 -1
  299. package/registry/bundles/data-lineage.yaml +1 -1
  300. package/registry/bundles/delta-classifier.yaml +1 -1
  301. package/registry/bundles/eval-gate.yaml +1 -1
  302. package/registry/bundles/health.yaml +1 -1
  303. package/registry/bundles/hook-governor.yaml +1 -1
  304. package/registry/bundles/incident-replay.yaml +1 -1
  305. package/registry/bundles/lsp-pack.yaml +1 -1
  306. package/registry/bundles/mcp-fabric.yaml +1 -1
  307. package/registry/bundles/plan-council.yaml +1 -1
  308. package/registry/bundles/preflight.yaml +1 -1
  309. package/registry/bundles/proof-gate.yaml +1 -1
  310. package/registry/bundles/remote-supervisor.yaml +1 -1
  311. package/registry/bundles/robotics.yaml +1 -1
  312. package/registry/bundles/secure-worktree-pipeline.yaml +1 -1
  313. package/registry/bundles/security-check.yaml +1 -1
  314. package/registry/bundles/test-intent-lock.yaml +1 -1
  315. package/registry/bundles/tracebank.yaml +1 -1
  316. package/registry/bundles/vision.yaml +1 -1
  317. package/registry/omg-capability.schema.json +1 -1
  318. package/runtime/adoption.py +7 -5
  319. package/runtime/background_verification.py +62 -0
  320. package/runtime/claim_judge.py +165 -5
  321. package/runtime/compat.py +48 -1
  322. package/runtime/context_engine.py +261 -4
  323. package/runtime/contract_compiler.py +370 -93
  324. package/runtime/defense_state.py +79 -8
  325. package/runtime/delta_classifier.py +80 -2
  326. package/runtime/evidence_query.py +56 -4
  327. package/runtime/evidence_registry.py +16 -0
  328. package/runtime/evidence_requirements.py +47 -0
  329. package/runtime/forge_agents.py +179 -9
  330. package/runtime/forge_contracts.py +208 -2
  331. package/runtime/hook_governor.py +19 -1
  332. package/runtime/interaction_journal.py +318 -42
  333. package/runtime/memory_store.py +134 -1
  334. package/runtime/mutation_gate.py +57 -11
  335. package/runtime/omg_compat_contract_snapshot.json +2 -2
  336. package/runtime/omg_mcp_server.py +14 -4
  337. package/runtime/plugin_diagnostics.py +248 -0
  338. package/runtime/plugin_interop.py +1007 -0
  339. package/runtime/preflight.py +14 -0
  340. package/runtime/profile_io.py +294 -0
  341. package/runtime/proof_gate.py +122 -7
  342. package/runtime/providers/opencode_provider.py +94 -0
  343. package/runtime/release_run_coordinator.py +339 -0
  344. package/runtime/release_surfaces.py +243 -0
  345. package/runtime/rollback_manifest.py +136 -0
  346. package/runtime/router_critics.py +50 -0
  347. package/runtime/runtime_contracts.py +137 -0
  348. package/runtime/security_check.py +16 -0
  349. package/runtime/session_health.py +60 -16
  350. package/runtime/team_router.py +156 -13
  351. package/runtime/test_intent_lock.py +102 -0
  352. package/runtime/tool_plan_gate.py +218 -19
  353. package/runtime/validate.py +289 -0
  354. package/runtime/verification_controller.py +52 -2
  355. package/scripts/omg.py +306 -3
  356. package/scripts/prepare-release-proof-fixtures.py +191 -7
  357. package/scripts/print-canonical-version.py +80 -0
  358. package/scripts/sync-release-identity.py +476 -0
  359. package/scripts/validate-release-identity.py +246 -0
  360. package/scripts/verify-standalone.sh +3 -0
  361. package/settings.json +3 -3
  362. package/templates/plugins-allowlist.yaml +19 -0
  363. package/artifacts/release/dist/enterprise/bundle/.gemini/settings.json +0 -11
  364. package/artifacts/release/dist/enterprise/bundle/.kimi/mcp.json +0 -11
  365. package/artifacts/release/dist/public/bundle/.gemini/settings.json +0 -11
  366. package/artifacts/release/dist/public/bundle/.kimi/mcp.json +0 -11
  367. package/build/lib/yaml.py +0 -321
  368. package/dist/enterprise/bundle/.gemini/settings.json +0 -11
  369. package/dist/enterprise/bundle/.kimi/mcp.json +0 -11
  370. package/dist/public/bundle/.gemini/settings.json +0 -11
  371. package/dist/public/bundle/.kimi/mcp.json +0 -11
package/scripts/omg.py CHANGED
@@ -16,6 +16,7 @@ from __future__ import annotations
16
16
 
17
17
  import argparse
18
18
  from datetime import datetime, timezone
19
+ import importlib.util
19
20
  import json
20
21
  import os
21
22
  from pathlib import Path
@@ -59,9 +60,12 @@ from runtime.compat import (
59
60
  list_compat_skills,
60
61
  run_doctor,
61
62
  )
63
+ from runtime.validate import run_validate, format_text as validate_format_text
64
+ from runtime.plugin_diagnostics import approve_plugin, run_plugin_diagnostics
62
65
  from runtime.adoption import CANONICAL_VERSION, VALID_PRESETS
63
66
  from runtime.ecosystem import ecosystem_status, list_ecosystem_repos, sync_ecosystem_repos
64
67
  from runtime.team_router import TeamDispatchRequest, dispatch_team, execute_ccg_mode, execute_crazy_mode
68
+ from runtime.release_run_coordinator import resolve_current_run_id
65
69
 
66
70
 
67
71
  def _now_run_id() -> str:
@@ -213,9 +217,11 @@ def cmd_secure(args: argparse.Namespace) -> int:
213
217
  def cmd_undo(args: argparse.Namespace) -> int:
214
218
  from runtime.interaction_journal import InteractionJournal
215
219
 
216
- result = InteractionJournal(".").undo(args.step_id)
220
+ project_dir = _ensure_project_dir()
221
+ run_id = resolve_current_run_id(project_dir=project_dir)
222
+ result = InteractionJournal(project_dir).undo(args.step_id, run_id=run_id)
217
223
  print(json.dumps(result, indent=2))
218
- return 0
224
+ return 2 if result.get("status") == "rollback_failed" else 0
219
225
 
220
226
 
221
227
  def cmd_security_check(args: argparse.Namespace) -> int:
@@ -230,6 +236,40 @@ def cmd_security_check(args: argparse.Namespace) -> int:
230
236
  return 0
231
237
 
232
238
 
239
+ def _sanitize_token(value: str) -> str:
240
+ cleaned = "".join(ch if ch.isalnum() or ch in {"-", "_"} else "-" for ch in str(value).strip())
241
+ return cleaned or "unknown"
242
+
243
+
244
+ def cmd_waive_tests(args: argparse.Namespace) -> int:
245
+ project_dir = _ensure_project_dir()
246
+ issued_at = datetime.now(timezone.utc).isoformat()
247
+ lock_id = str(args.lock_id).strip()
248
+ reason = str(args.reason).strip()
249
+ run_id = resolve_current_run_id(project_dir=project_dir)
250
+
251
+ evidence_dir = Path(project_dir) / ".omg" / "evidence"
252
+ evidence_dir.mkdir(parents=True, exist_ok=True)
253
+
254
+ artifact_name = f"waiver-tests-{_sanitize_token(lock_id)}-{_now_run_id()}.json"
255
+ artifact_path = evidence_dir / artifact_name
256
+ artifact_rel_path = str(artifact_path.relative_to(project_dir)).replace("\\", "/")
257
+
258
+ payload = {
259
+ "schema": "WaiverEvidence",
260
+ "schema_version": 1,
261
+ "lock_id": lock_id,
262
+ "run_id": run_id,
263
+ "reason": reason,
264
+ "issued_at": issued_at,
265
+ "artifact_path": artifact_rel_path,
266
+ }
267
+ artifact_path.write_text(json.dumps(payload, indent=2, sort_keys=True), encoding="utf-8")
268
+
269
+ print(json.dumps(payload, indent=2))
270
+ return 0
271
+
272
+
233
273
  def cmd_api_twin_ingest(args: argparse.Namespace) -> int:
234
274
  result = ingest_contract(_ensure_project_dir(), name=args.name, source_path=args.source)
235
275
  print(json.dumps(result, indent=2))
@@ -648,10 +688,73 @@ def cmd_ecosystem_sync(args: argparse.Namespace) -> int:
648
688
  return 0 if not errors else 2
649
689
 
650
690
 
691
+ def _load_release_identity_validator() -> Any:
692
+ validator_path = ROOT_DIR / "scripts" / "validate-release-identity.py"
693
+ spec = importlib.util.spec_from_file_location("validate_release_identity", validator_path)
694
+ if spec is None or spec.loader is None:
695
+ raise RuntimeError("unable to load validate-release-identity.py")
696
+ module = importlib.util.module_from_spec(spec)
697
+ spec.loader.exec_module(module)
698
+ return module
699
+
700
+
651
701
  def cmd_contract_validate(args: argparse.Namespace) -> int:
652
702
  result = validate_contract_registry(ROOT_DIR)
703
+
704
+ release_identity_scope = getattr(args, "release_identity_scope", "all")
705
+ forbid_version = getattr(args, "forbid_version", "") or None
706
+
707
+ try:
708
+ validator = _load_release_identity_validator()
709
+ canonical = validator.extract_canonical_version(ROOT_DIR / "runtime" / "adoption.py")
710
+ if canonical is None:
711
+ release_identity = {
712
+ "canonical_version": None,
713
+ "scope": release_identity_scope,
714
+ "forbid_version": forbid_version,
715
+ "overall_status": "fail",
716
+ "error": "CANONICAL_VERSION not found",
717
+ }
718
+ else:
719
+ authored_result = (
720
+ validator.validate_authored(ROOT_DIR, canonical)
721
+ if release_identity_scope in {"authored", "all"}
722
+ else {"status": "skipped", "blockers": []}
723
+ )
724
+ derived_result = (
725
+ validator.validate_derived(ROOT_DIR, canonical)
726
+ if release_identity_scope in {"derived", "all"}
727
+ else {"status": "skipped", "blockers": []}
728
+ )
729
+ residue_result = (
730
+ validator.scan_scoped_residue(ROOT_DIR, forbid_version)
731
+ if forbid_version
732
+ else None
733
+ )
734
+ release_identity = validator.build_report(
735
+ canonical=canonical,
736
+ scope=release_identity_scope,
737
+ forbid_version=forbid_version,
738
+ authored=authored_result,
739
+ derived=derived_result,
740
+ scoped_residue=residue_result,
741
+ )
742
+ except Exception as exc:
743
+ release_identity = {
744
+ "canonical_version": None,
745
+ "scope": release_identity_scope,
746
+ "forbid_version": forbid_version,
747
+ "overall_status": "fail",
748
+ "error": f"release identity validator failed: {exc}",
749
+ }
750
+
751
+ result["release_identity"] = release_identity
752
+ status_ok = result.get("status") == "ok" and release_identity.get("overall_status") == "ok"
753
+ if not status_ok:
754
+ result["status"] = "error"
755
+
653
756
  print(json.dumps(result, indent=2))
654
- return 0 if result.get("status") == "ok" else 2
757
+ return 0 if status_ok else 2
655
758
 
656
759
 
657
760
  def cmd_contract_compile(args: argparse.Namespace) -> int:
@@ -722,6 +825,17 @@ def _add_contract_subcommands(parent: argparse.ArgumentParser, *, dest: str) ->
722
825
  contract_sub = parent.add_subparsers(dest=dest, required=True)
723
826
 
724
827
  contract_validate = contract_sub.add_parser("validate", help="Validate contract doc, schema, and bundle registry")
828
+ contract_validate.add_argument(
829
+ "--release-identity-scope",
830
+ default="all",
831
+ choices=["authored", "derived", "all"],
832
+ help="Scope for embedded release identity validation",
833
+ )
834
+ contract_validate.add_argument(
835
+ "--forbid-version",
836
+ default="",
837
+ help="Optional stale version to reject in scoped residue targets",
838
+ )
725
839
  contract_validate.set_defaults(func=cmd_contract_validate)
726
840
 
727
841
  contract_compile = contract_sub.add_parser(
@@ -740,6 +854,115 @@ def _add_contract_subcommands(parent: argparse.ArgumentParser, *, dest: str) ->
740
854
  contract_compile.set_defaults(func=cmd_contract_compile)
741
855
 
742
856
 
857
+ def cmd_profile_review(args: argparse.Namespace) -> int:
858
+ """Read-only review of governed profile state."""
859
+ from runtime.profile_io import load_profile, ensure_governed_preferences, profile_version_from_map
860
+
861
+ project_dir = _ensure_project_dir()
862
+ profile_path = os.path.join(project_dir, ".omg", "state", "profile.yaml")
863
+ profile = load_profile(profile_path)
864
+
865
+ # Ensure governed_preferences structure exists (in-memory only, no write)
866
+ ensure_governed_preferences(profile)
867
+ governed = profile.get("governed_preferences", {})
868
+ governed = governed if isinstance(governed, dict) else {}
869
+
870
+ style_entries = governed.get("style", [])
871
+ style_entries = style_entries if isinstance(style_entries, list) else []
872
+ safety_entries = governed.get("safety", [])
873
+ safety_entries = safety_entries if isinstance(safety_entries, list) else []
874
+
875
+ pending = []
876
+ for entry in style_entries + safety_entries:
877
+ if isinstance(entry, dict) and entry.get("confirmation_state") == "pending_confirmation":
878
+ pending.append({
879
+ "field": entry.get("field", ""),
880
+ "value": entry.get("value", ""),
881
+ "section": entry.get("section", ""),
882
+ })
883
+
884
+ decay_candidates = []
885
+ for entry in style_entries:
886
+ if not isinstance(entry, dict):
887
+ continue
888
+ dm = entry.get("decay_metadata")
889
+ if isinstance(dm, dict):
890
+ score = 0.0
891
+ try:
892
+ score = float(dm.get("decay_score", 0.0))
893
+ except (TypeError, ValueError):
894
+ pass
895
+ if score > 0:
896
+ decay_candidates.append({
897
+ "field": entry.get("field", ""),
898
+ "value": entry.get("value", ""),
899
+ "decay_score": score,
900
+ "last_seen_at": dm.get("last_seen_at", ""),
901
+ "decay_reason": dm.get("decay_reason", ""),
902
+ })
903
+
904
+ provenance_obj = profile.get("profile_provenance")
905
+ provenance = provenance_obj if isinstance(provenance_obj, dict) else {}
906
+ recent_updates = provenance.get("recent_updates", [])
907
+ recent_updates = recent_updates if isinstance(recent_updates, list) else []
908
+ provenance_summary = [
909
+ {
910
+ "run_id": str(u.get("run_id", "")),
911
+ "source": str(u.get("source", "")),
912
+ "field": str(u.get("field", "")),
913
+ "updated_at": str(u.get("updated_at", "")),
914
+ }
915
+ for u in recent_updates
916
+ if isinstance(u, dict)
917
+ ]
918
+
919
+ version = profile_version_from_map(profile) if profile else ""
920
+
921
+ result: dict[str, Any] = {
922
+ "schema": "ProfileReview",
923
+ "style": style_entries,
924
+ "safety": safety_entries,
925
+ "pending_confirmations": pending,
926
+ "decay_candidates": decay_candidates,
927
+ "provenance_summary": provenance_summary,
928
+ "profile_version": version,
929
+ }
930
+
931
+ fmt = getattr(args, "format", "json")
932
+ if fmt == "json":
933
+ print(json.dumps(result, indent=2))
934
+ else:
935
+ print("=== Profile Review ===")
936
+ print(f"Profile version: {version[:16]}..." if version else "Profile version: (none)")
937
+ print(f"\n--- Style preferences ({len(style_entries)}) ---")
938
+ for e in style_entries:
939
+ if isinstance(e, dict):
940
+ print(f" {e.get('field', '?')}: {e.get('value', '?')} [{e.get('confirmation_state', '?')}]")
941
+ print(f"\n--- Safety preferences ({len(safety_entries)}) ---")
942
+ for e in safety_entries:
943
+ if isinstance(e, dict):
944
+ print(f" {e.get('field', '?')}: {e.get('value', '?')} [{e.get('confirmation_state', '?')}]")
945
+ if pending:
946
+ print(f"\n--- Pending confirmations ({len(pending)}) ---")
947
+ for p in pending:
948
+ print(f" {p['section']}/{p['field']}: {p['value']}")
949
+ else:
950
+ print("\n--- Pending confirmations: none ---")
951
+ if decay_candidates:
952
+ print(f"\n--- Decay candidates ({len(decay_candidates)}) ---")
953
+ for d in decay_candidates:
954
+ print(f" {d['field']}: score={d['decay_score']:.3f} reason={d['decay_reason']}")
955
+ else:
956
+ print("\n--- Decay candidates: none ---")
957
+ if provenance_summary:
958
+ print(f"\n--- Provenance ({len(provenance_summary)} recent updates) ---")
959
+ for p in provenance_summary:
960
+ print(f" [{p['updated_at']}] {p['source']} -> {p['field']}")
961
+ else:
962
+ print("\n--- Provenance: no recent updates ---")
963
+ return 0
964
+
965
+
743
966
  def cmd_doctor(args: argparse.Namespace) -> int:
744
967
  fmt = getattr(args, "format", "text")
745
968
  result = run_doctor(root_dir=ROOT_DIR)
@@ -757,6 +980,60 @@ def cmd_doctor(args: argparse.Namespace) -> int:
757
980
  return 0 if result["status"] == "pass" else 1
758
981
 
759
982
 
983
+
984
+ def cmd_validate(args: argparse.Namespace) -> int:
985
+ fmt = getattr(args, "format", "text")
986
+ result = run_validate(root_dir=ROOT_DIR)
987
+ if fmt == "json":
988
+ print(json.dumps(result, indent=2))
989
+ else:
990
+ print(validate_format_text(result))
991
+ return 0 if result["status"] == "pass" else 1
992
+
993
+
994
+ def _format_plugin_diagnostics_text(result: dict[str, Any]) -> str:
995
+ summary = result.get("summary", {})
996
+ lines = [
997
+ "Plugin Diagnostics",
998
+ f"Status: {result.get('status', 'unknown').upper()}",
999
+ (
1000
+ "Records: "
1001
+ f"{summary.get('total_records', 0)} | Conflicts: {summary.get('total_conflicts', 0)} "
1002
+ f"(blockers={summary.get('blockers', 0)}, warnings={summary.get('warnings', 0)}, infos={summary.get('infos', 0)})"
1003
+ ),
1004
+ ]
1005
+
1006
+ next_actions = result.get("next_actions", [])
1007
+ if isinstance(next_actions, list) and next_actions:
1008
+ lines.append("Next Actions:")
1009
+ for action in next_actions:
1010
+ lines.append(f"- {action}")
1011
+
1012
+ elapsed_ms = result.get("elapsed_ms", 0.0)
1013
+ lines.append(f"Elapsed: {elapsed_ms:.2f}ms")
1014
+ return "\n".join(lines)
1015
+
1016
+
1017
+ def cmd_diagnose_plugins(args: argparse.Namespace) -> int:
1018
+ fmt = getattr(args, "format", "text")
1019
+ result = run_plugin_diagnostics(root=str(ROOT_DIR), live=bool(getattr(args, "live", False)))
1020
+ if fmt == "json":
1021
+ print(json.dumps(result, indent=2))
1022
+ else:
1023
+ print(_format_plugin_diagnostics_text(result))
1024
+ return 0
1025
+
1026
+
1027
+ def cmd_diagnose_plugins_approve(args: argparse.Namespace) -> int:
1028
+ fmt = getattr(args, "format", "json")
1029
+ result = approve_plugin(args.source, args.host, args.reason, root=str(ROOT_DIR))
1030
+ if fmt == "json":
1031
+ print(json.dumps(result, indent=2))
1032
+ else:
1033
+ print(f"Approval status: {result.get('status', 'unknown')}")
1034
+ print(str(result.get("message", "")))
1035
+ return 0 if result.get("status") == "ok" else 2
1036
+
760
1037
  def _add_release_subcommands(parent: argparse.ArgumentParser, *, dest: str) -> None:
761
1038
  release_sub = parent.add_subparsers(dest=dest, required=True)
762
1039
 
@@ -797,6 +1074,11 @@ def build_parser() -> argparse.ArgumentParser:
797
1074
  security_check.add_argument("--waivers-json", default="")
798
1075
  security_check.set_defaults(func=cmd_security_check)
799
1076
 
1077
+ waive_tests = sub.add_parser("waive-tests", help="Emit structured waiver evidence for test-intent lock exceptions")
1078
+ waive_tests.add_argument("--lock-id", required=True)
1079
+ waive_tests.add_argument("--reason", required=True)
1080
+ waive_tests.set_defaults(func=cmd_waive_tests)
1081
+
800
1082
  api_twin = sub.add_parser("api-twin", help="Contract replay and fixture-based API simulation")
801
1083
  api_twin_sub = api_twin.add_subparsers(dest="api_twin_command", required=True)
802
1084
  api_twin_ingest = api_twin_sub.add_parser("ingest", help="Ingest OpenAPI/Postman/example contract input")
@@ -973,6 +1255,27 @@ def build_parser() -> argparse.ArgumentParser:
973
1255
  doctor.add_argument("--format", default="text", choices=["text", "json"], dest="format")
974
1256
  doctor.set_defaults(func=cmd_doctor)
975
1257
 
1258
+ validate = sub.add_parser("validate", help="Canonical validation — doctor + contract + profile + install")
1259
+ validate.add_argument("--format", default="text", choices=["text", "json"], dest="format")
1260
+ validate.set_defaults(func=cmd_validate)
1261
+
1262
+ diagnose_plugins = sub.add_parser("diagnose-plugins", help="Diagnose plugin interoperability and conflicts")
1263
+ diagnose_plugins.add_argument("--format", default="text", choices=["text", "json"], dest="format")
1264
+ diagnose_plugins.add_argument("--live", action="store_true", help="Enable live probing mode")
1265
+ diagnose_plugins.set_defaults(func=cmd_diagnose_plugins)
1266
+ diagnose_plugins_sub = diagnose_plugins.add_subparsers(dest="diagnose_plugins_command")
1267
+
1268
+ diagnose_plugins_approve = diagnose_plugins_sub.add_parser("approve", help="Approve a plugin source for host use")
1269
+ diagnose_plugins_approve.add_argument("--source", required=True)
1270
+ diagnose_plugins_approve.add_argument("--host", required=True)
1271
+ diagnose_plugins_approve.add_argument("--reason", required=True)
1272
+ diagnose_plugins_approve.add_argument("--format", default="json", choices=["text", "json"], dest="format")
1273
+ diagnose_plugins_approve.set_defaults(func=cmd_diagnose_plugins_approve)
1274
+
1275
+ profile_review = sub.add_parser("profile-review", help="Review governed profile state")
1276
+ profile_review.add_argument("--format", default="json", choices=["json", "text"], dest="format")
1277
+ profile_review.set_defaults(func=cmd_profile_review)
1278
+
976
1279
  return parser
977
1280
 
978
1281
 
@@ -2,6 +2,7 @@
2
2
  from __future__ import annotations
3
3
 
4
4
  import argparse
5
+ import hashlib
5
6
  import json
6
7
  from pathlib import Path
7
8
 
@@ -16,9 +17,23 @@ def _write_text(path: Path, content: str) -> None:
16
17
  path.write_text(content, encoding="utf-8")
17
18
 
18
19
 
20
+ def _context_checksum(*, run_id: str, profile_version: str, intent_gate_version: str) -> str:
21
+ material = f"{run_id}|{profile_version}|{intent_gate_version}"
22
+ return hashlib.sha256(material.encode("utf-8", errors="ignore")).hexdigest()
23
+
24
+
19
25
  def prepare_release_proof_fixtures(output_root: Path) -> None:
20
26
  trace_id = "trace-1"
21
27
  eval_id = "eval-1"
28
+ run_id = "run-1"
29
+ lock_id = "lock-1"
30
+ profile_version = "profile-v1"
31
+ intent_gate_version = "1.0.0"
32
+ context_checksum = _context_checksum(
33
+ run_id=run_id,
34
+ profile_version=profile_version,
35
+ intent_gate_version=intent_gate_version,
36
+ )
22
37
 
23
38
  junit_path = output_root / ".omg" / "evidence" / "junit.xml"
24
39
  coverage_path = output_root / ".omg" / "evidence" / "coverage.xml"
@@ -28,6 +43,14 @@ def prepare_release_proof_fixtures(output_root: Path) -> None:
28
43
  eval_path = output_root / ".omg" / "evals" / "latest.json"
29
44
  security_path = output_root / ".omg" / "evidence" / "security-check.json"
30
45
  evidence_path = output_root / ".omg" / "evidence" / "run-1.json"
46
+ forge_path = output_root / ".omg" / "evidence" / "forge-specialists-run-1.json"
47
+ release_run_path = output_root / ".omg" / "state" / "release_run_coordinator" / "run-1.json"
48
+ lock_path = output_root / ".omg" / "state" / "test-intent-lock" / "lock-1.json"
49
+ rollback_path = output_root / ".omg" / "state" / "rollback_manifest" / "run-1-step-1.json"
50
+ session_health_path = output_root / ".omg" / "state" / "session_health" / "run-1.json"
51
+ council_verdicts_path = output_root / ".omg" / "state" / "council_verdicts" / "run-1.json"
52
+ intent_gate_path = output_root / ".omg" / "state" / "intent_gate" / "run-1.json"
53
+ profile_path = output_root / ".omg" / "state" / "profile.yaml"
31
54
  tracebank_path = output_root / ".omg" / "tracebank" / "events.jsonl"
32
55
 
33
56
  _write_text(
@@ -89,16 +112,22 @@ def prepare_release_proof_fixtures(output_root: Path) -> None:
89
112
  "schema": "SecurityCheckResult",
90
113
  "status": "ok",
91
114
  "evidence": {"sarif_path": ".omg/evidence/results.sarif"},
115
+ "context_checksum": context_checksum,
116
+ "profile_version": profile_version,
117
+ "intent_gate_version": intent_gate_version,
92
118
  },
93
119
  )
94
120
  _write_json(
95
121
  evidence_path,
96
- {
97
- "schema": "EvidencePack",
98
- "run_id": "run-1",
99
- "timestamp": "2026-03-07T00:00:00Z",
100
- "executor": {"user": "release-bot", "pid": 1},
101
- "environment": {"hostname": "localhost", "platform": "linux"},
122
+ {
123
+ "schema": "EvidencePack",
124
+ "run_id": run_id,
125
+ "timestamp": "2026-03-07T00:00:00Z",
126
+ "executor": {"user": "release-bot", "pid": 1},
127
+ "environment": {"hostname": "localhost", "platform": "linux"},
128
+ "context_checksum": context_checksum,
129
+ "profile_version": profile_version,
130
+ "intent_gate_version": intent_gate_version,
102
131
  "tests": [{"name": "release_readiness", "passed": True}],
103
132
  "security_scans": [{"tool": "security-check", "path": ".omg/evidence/security-check.json"}],
104
133
  "diff_summary": {"files": 1},
@@ -120,9 +149,164 @@ def prepare_release_proof_fixtures(output_root: Path) -> None:
120
149
  ],
121
150
  "trace_ids": [trace_id],
122
151
  "lineage": {"trace_id": trace_id, "path": ".omg/lineage/lineage-1.json"},
123
- "test_delta": {"override": {"approved_by": "release-bot"}},
152
+ "test_delta": {
153
+ "override": {"approved_by": "release-bot"},
154
+ "lock_id": lock_id,
155
+ "waiver_artifact": {
156
+ "artifact_path": ".omg/evidence/waiver-tests-lock-1.json",
157
+ "reason": "approved release fixture",
158
+ },
159
+ },
160
+ "intent_gate_state": {
161
+ "path": ".omg/state/intent_gate/run-1.json",
162
+ "run_id": run_id,
163
+ },
164
+ "profile_digest": {
165
+ "path": ".omg/state/profile.yaml",
166
+ "profile_version": profile_version,
167
+ },
168
+ "session_health_state": {
169
+ "path": ".omg/state/session_health/run-1.json",
170
+ "run_id": run_id,
171
+ },
172
+ "council_verdicts": {
173
+ "path": ".omg/state/council_verdicts/run-1.json",
174
+ "run_id": run_id,
175
+ },
176
+ "forge_starter_proof": {
177
+ "path": ".omg/evidence/forge-specialists-run-1.json",
178
+ "run_id": run_id,
179
+ },
180
+ },
181
+ )
182
+ _write_json(
183
+ forge_path,
184
+ {
185
+ "schema": "ForgeSpecialistDispatchEvidence",
186
+ "schema_version": "1.0.0",
187
+ "run_id": run_id,
188
+ "generated_at": "2026-03-07T00:00:00Z",
189
+ "status": "ok",
190
+ "proof_backed": True,
191
+ "specialists_dispatched": ["training-architect"],
192
+ "context_checksum": context_checksum,
193
+ "profile_version": profile_version,
194
+ "intent_gate_version": intent_gate_version,
195
+ },
196
+ )
197
+ _write_json(
198
+ release_run_path,
199
+ {
200
+ "schema": "ReleaseRunCoordinatorState",
201
+ "schema_version": "1.0.0",
202
+ "run_id": run_id,
203
+ "status": "ok",
204
+ "phase": "finalize",
205
+ "resolution_source": "fixtures",
206
+ "resolution_reason": "deterministic_release_seed",
207
+ "updated_at": "2026-03-07T00:00:00Z",
208
+ "context_checksum": context_checksum,
209
+ "profile_version": profile_version,
210
+ "intent_gate_version": intent_gate_version,
124
211
  },
125
212
  )
213
+ _write_json(
214
+ lock_path,
215
+ {
216
+ "schema": "TestIntentLock",
217
+ "schema_version": "1.0.0",
218
+ "lock_id": lock_id,
219
+ "status": "ok",
220
+ "intent": {"run_id": run_id},
221
+ "context_checksum": context_checksum,
222
+ "profile_version": profile_version,
223
+ "intent_gate_version": intent_gate_version,
224
+ },
225
+ )
226
+ _write_json(
227
+ rollback_path,
228
+ {
229
+ "schema": "RollbackManifest",
230
+ "schema_version": "1.0.0",
231
+ "run_id": run_id,
232
+ "status": "ok",
233
+ "step_id": "step-1",
234
+ "local_restores": [],
235
+ "compensating_actions": [],
236
+ "side_effects": [],
237
+ "updated_at": "2026-03-07T00:00:00Z",
238
+ },
239
+ )
240
+ _write_json(
241
+ session_health_path,
242
+ {
243
+ "schema": "SessionHealth",
244
+ "schema_version": "1.0.0",
245
+ "run_id": run_id,
246
+ "status": "ok",
247
+ "contamination_risk": 0.0,
248
+ "overthinking_score": 0.0,
249
+ "context_health": 1.0,
250
+ "verification_status": "ok",
251
+ "recommended_action": "continue",
252
+ "updated_at": "2026-03-07T00:00:00Z",
253
+ "context_checksum": context_checksum,
254
+ "profile_version": profile_version,
255
+ "intent_gate_version": intent_gate_version,
256
+ },
257
+ )
258
+ _write_json(
259
+ council_verdicts_path,
260
+ {
261
+ "schema": "CouncilVerdicts",
262
+ "schema_version": "1.0.0",
263
+ "run_id": run_id,
264
+ "status": "ok",
265
+ "verification_status": "ok",
266
+ "context_checksum": context_checksum,
267
+ "profile_version": profile_version,
268
+ "intent_gate_version": intent_gate_version,
269
+ "verdicts": {
270
+ "skeptic": {"verdict": "pass"},
271
+ "hallucination_auditor": {"verdict": "pass"},
272
+ "evidence_completeness": {"verdict": "pass"},
273
+ },
274
+ "updated_at": "2026-03-07T00:00:00Z",
275
+ },
276
+ )
277
+ _write_json(
278
+ intent_gate_path,
279
+ {
280
+ "schema": "IntentGateDecision",
281
+ "schema_version": intent_gate_version,
282
+ "run_id": run_id,
283
+ "intent_gate_version": intent_gate_version,
284
+ "requires_clarification": False,
285
+ "intent_class": "release_readiness",
286
+ "clarification_prompt": "",
287
+ "confidence": 0.98,
288
+ "context_checksum": context_checksum,
289
+ "profile_version": profile_version,
290
+ "updated_at": "2026-03-07T00:00:00Z",
291
+ },
292
+ )
293
+ _write_text(
294
+ profile_path,
295
+ """profile_version: profile-v1
296
+ preferences:
297
+ architecture_requests:
298
+ - release_readiness
299
+ constraints:
300
+ release_mode: dual
301
+ user_vector:
302
+ tags:
303
+ - proof
304
+ - readiness
305
+ summary: deterministic fixture profile digest
306
+ profile_provenance:
307
+ checksum: profile-v1
308
+ """,
309
+ )
126
310
  tracebank_path.parent.mkdir(parents=True, exist_ok=True)
127
311
  tracebank_path.write_text(
128
312
  json.dumps(