@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.
- package/.agents/skills/omg/AGENTS.fragment.md +2 -2
- package/.agents/skills/omg/algorithms/SKILL.md +1 -1
- package/.agents/skills/omg/algorithms/openai.yaml +1 -1
- package/.agents/skills/omg/api-twin/SKILL.md +1 -1
- package/.agents/skills/omg/api-twin/openai.yaml +1 -1
- package/.agents/skills/omg/claim-judge/SKILL.md +1 -1
- package/.agents/skills/omg/claim-judge/openai.yaml +1 -1
- package/.agents/skills/omg/codex-rules.md +1 -1
- package/.agents/skills/omg/control-plane/SKILL.md +1 -1
- package/.agents/skills/omg/control-plane/openai.yaml +1 -1
- package/.agents/skills/omg/data-lineage/SKILL.md +1 -1
- package/.agents/skills/omg/data-lineage/openai.yaml +1 -1
- package/.agents/skills/omg/delta-classifier/SKILL.md +1 -1
- package/.agents/skills/omg/delta-classifier/openai.yaml +1 -1
- package/.agents/skills/omg/eval-gate/SKILL.md +1 -1
- package/.agents/skills/omg/eval-gate/openai.yaml +1 -1
- package/.agents/skills/omg/health/SKILL.md +1 -1
- package/.agents/skills/omg/health/openai.yaml +1 -1
- package/.agents/skills/omg/hook-governor/SKILL.md +1 -1
- package/.agents/skills/omg/hook-governor/openai.yaml +1 -1
- package/.agents/skills/omg/incident-replay/SKILL.md +1 -1
- package/.agents/skills/omg/incident-replay/openai.yaml +1 -1
- package/.agents/skills/omg/lsp-pack/SKILL.md +1 -1
- package/.agents/skills/omg/lsp-pack/openai.yaml +1 -1
- package/.agents/skills/omg/mcp-fabric/SKILL.md +1 -1
- package/.agents/skills/omg/mcp-fabric/openai.yaml +1 -1
- package/.agents/skills/omg/plan-council/SKILL.md +1 -1
- package/.agents/skills/omg/plan-council/openai.yaml +1 -1
- package/.agents/skills/omg/preflight/SKILL.md +1 -1
- package/.agents/skills/omg/preflight/openai.yaml +1 -1
- package/.agents/skills/omg/proof-gate/SKILL.md +1 -1
- package/.agents/skills/omg/proof-gate/openai.yaml +1 -1
- package/.agents/skills/omg/remote-supervisor/SKILL.md +1 -1
- package/.agents/skills/omg/remote-supervisor/openai.yaml +1 -1
- package/.agents/skills/omg/robotics/SKILL.md +1 -1
- package/.agents/skills/omg/robotics/openai.yaml +1 -1
- package/.agents/skills/omg/secure-worktree-pipeline/SKILL.md +1 -1
- package/.agents/skills/omg/secure-worktree-pipeline/openai.yaml +1 -1
- package/.agents/skills/omg/security-check/SKILL.md +1 -1
- package/.agents/skills/omg/security-check/openai.yaml +1 -1
- package/.agents/skills/omg/test-intent-lock/SKILL.md +1 -1
- package/.agents/skills/omg/test-intent-lock/openai.yaml +1 -1
- package/.agents/skills/omg/tracebank/SKILL.md +1 -1
- package/.agents/skills/omg/tracebank/openai.yaml +1 -1
- package/.agents/skills/omg/vision/SKILL.md +1 -1
- package/.agents/skills/omg/vision/openai.yaml +1 -1
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +16 -0
- package/CLI-ADAPTER-MAP.md +3 -3
- package/OMG-setup.sh +114 -1
- package/OMG_COMPAT_CONTRACT.md +1 -1
- package/README.md +2 -1
- package/artifacts/release/.claude-plugin/marketplace.json +3 -3
- package/artifacts/release/.claude-plugin/plugin.json +1 -1
- package/artifacts/release/OMG_COMPAT_CONTRACT.md +1 -1
- package/artifacts/release/dist/enterprise/bundle/.claude-plugin/marketplace.json +3 -3
- package/artifacts/release/dist/enterprise/bundle/.claude-plugin/plugin.json +1 -1
- package/artifacts/release/dist/enterprise/bundle/OMG_COMPAT_CONTRACT.md +1 -1
- package/artifacts/release/dist/enterprise/bundle/plugins/advanced/plugin.json +26 -9
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/algorithms.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/api-twin.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/claim-judge.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/control-plane.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/data-lineage.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/delta-classifier.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/eval-gate.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/health.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/hook-governor.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/incident-replay.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/lsp-pack.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/mcp-fabric.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/plan-council.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/preflight.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/proof-gate.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/remote-supervisor.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/robotics.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/secure-worktree-pipeline.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/security-check.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/test-intent-lock.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/tracebank.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/bundles/vision.yaml +1 -1
- package/artifacts/release/dist/enterprise/bundle/registry/omg-capability.schema.json +1 -1
- package/artifacts/release/dist/enterprise/bundle/settings.json +3 -3
- package/artifacts/release/dist/enterprise/manifest.json +30 -40
- package/artifacts/release/dist/public/bundle/.claude-plugin/marketplace.json +3 -3
- package/artifacts/release/dist/public/bundle/.claude-plugin/plugin.json +1 -1
- package/artifacts/release/dist/public/bundle/OMG_COMPAT_CONTRACT.md +1 -1
- package/artifacts/release/dist/public/bundle/plugins/advanced/plugin.json +26 -9
- package/artifacts/release/dist/public/bundle/registry/bundles/algorithms.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/api-twin.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/claim-judge.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/control-plane.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/data-lineage.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/delta-classifier.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/eval-gate.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/health.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/hook-governor.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/incident-replay.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/lsp-pack.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/mcp-fabric.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/plan-council.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/preflight.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/proof-gate.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/remote-supervisor.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/robotics.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/secure-worktree-pipeline.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/security-check.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/test-intent-lock.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/tracebank.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/bundles/vision.yaml +1 -1
- package/artifacts/release/dist/public/bundle/registry/omg-capability.schema.json +1 -1
- package/artifacts/release/dist/public/bundle/settings.json +3 -3
- package/artifacts/release/dist/public/manifest.json +30 -40
- package/artifacts/release/plugins/advanced/plugin.json +26 -9
- package/artifacts/release/registry/bundles/algorithms.yaml +1 -1
- package/artifacts/release/registry/bundles/api-twin.yaml +1 -1
- package/artifacts/release/registry/bundles/claim-judge.yaml +1 -1
- package/artifacts/release/registry/bundles/control-plane.yaml +1 -1
- package/artifacts/release/registry/bundles/data-lineage.yaml +1 -1
- package/artifacts/release/registry/bundles/delta-classifier.yaml +1 -1
- package/artifacts/release/registry/bundles/eval-gate.yaml +1 -1
- package/artifacts/release/registry/bundles/health.yaml +1 -1
- package/artifacts/release/registry/bundles/hook-governor.yaml +1 -1
- package/artifacts/release/registry/bundles/incident-replay.yaml +1 -1
- package/artifacts/release/registry/bundles/lsp-pack.yaml +1 -1
- package/artifacts/release/registry/bundles/mcp-fabric.yaml +1 -1
- package/artifacts/release/registry/bundles/plan-council.yaml +1 -1
- package/artifacts/release/registry/bundles/preflight.yaml +1 -1
- package/artifacts/release/registry/bundles/proof-gate.yaml +1 -1
- package/artifacts/release/registry/bundles/remote-supervisor.yaml +1 -1
- package/artifacts/release/registry/bundles/robotics.yaml +1 -1
- package/artifacts/release/registry/bundles/secure-worktree-pipeline.yaml +1 -1
- package/artifacts/release/registry/bundles/security-check.yaml +1 -1
- package/artifacts/release/registry/bundles/test-intent-lock.yaml +1 -1
- package/artifacts/release/registry/bundles/tracebank.yaml +1 -1
- package/artifacts/release/registry/bundles/vision.yaml +1 -1
- package/artifacts/release/registry/omg-capability.schema.json +1 -1
- package/artifacts/release/settings.json +3 -3
- package/build/lib/commands/OMG:profile-review.md +43 -0
- package/build/lib/commands/OMG:validate.md +59 -0
- package/build/lib/control_plane/service.py +40 -1
- package/build/lib/hooks/_agent_registry.py +2 -0
- package/build/lib/hooks/firewall.py +263 -4
- package/build/lib/hooks/intentgate-keyword-detector.py +15 -3
- package/build/lib/hooks/policy_engine.py +77 -0
- package/build/lib/hooks/prompt-enhancer.py +146 -0
- package/build/lib/hooks/session-end-capture.py +374 -6
- package/build/lib/hooks/session-start.py +13 -35
- package/build/lib/hooks/setup_wizard.py +333 -1
- package/build/lib/hooks/shadow_manager.py +111 -2
- package/build/lib/hooks/stop_dispatcher.py +108 -4
- package/build/lib/plugins/advanced/plugin.json +26 -9
- package/build/lib/plugins/core/plugin.json +44 -11
- package/build/lib/registry/bundles/algorithms.yaml +1 -1
- package/build/lib/registry/bundles/api-twin.yaml +1 -1
- package/build/lib/registry/bundles/claim-judge.yaml +1 -1
- package/build/lib/registry/bundles/control-plane.yaml +1 -1
- package/build/lib/registry/bundles/data-lineage.yaml +1 -1
- package/build/lib/registry/bundles/delta-classifier.yaml +1 -1
- package/build/lib/registry/bundles/eval-gate.yaml +1 -1
- package/build/lib/registry/bundles/health.yaml +1 -1
- package/build/lib/registry/bundles/hook-governor.yaml +1 -1
- package/build/lib/registry/bundles/incident-replay.yaml +1 -1
- package/build/lib/registry/bundles/lsp-pack.yaml +1 -1
- package/build/lib/registry/bundles/mcp-fabric.yaml +1 -1
- package/build/lib/registry/bundles/plan-council.yaml +1 -1
- package/build/lib/registry/bundles/preflight.yaml +1 -1
- package/build/lib/registry/bundles/proof-gate.yaml +1 -1
- package/build/lib/registry/bundles/remote-supervisor.yaml +1 -1
- package/build/lib/registry/bundles/robotics.yaml +1 -1
- package/build/lib/registry/bundles/secure-worktree-pipeline.yaml +1 -1
- package/build/lib/registry/bundles/security-check.yaml +1 -1
- package/build/lib/registry/bundles/test-intent-lock.yaml +1 -1
- package/build/lib/registry/bundles/tracebank.yaml +1 -1
- package/build/lib/registry/bundles/vision.yaml +1 -1
- package/build/lib/registry/omg-capability.schema.json +1 -1
- package/build/lib/runtime/adoption.py +1 -1
- package/build/lib/runtime/background_verification.py +62 -0
- package/build/lib/runtime/claim_judge.py +165 -5
- package/build/lib/runtime/compat.py +15 -1
- package/build/lib/runtime/context_engine.py +261 -4
- package/build/lib/runtime/contract_compiler.py +370 -93
- package/build/lib/runtime/defense_state.py +79 -8
- package/build/lib/runtime/delta_classifier.py +80 -2
- package/build/lib/runtime/evidence_query.py +56 -4
- package/build/lib/runtime/evidence_registry.py +16 -0
- package/build/lib/runtime/evidence_requirements.py +47 -0
- package/build/lib/runtime/forge_agents.py +179 -9
- package/build/lib/runtime/forge_contracts.py +208 -2
- package/build/lib/runtime/interaction_journal.py +318 -42
- package/build/lib/runtime/memory_store.py +134 -1
- package/build/lib/runtime/mutation_gate.py +57 -11
- package/build/lib/runtime/omg_compat_contract_snapshot.json +2 -2
- package/build/lib/runtime/omg_mcp_server.py +14 -4
- package/build/lib/runtime/preflight.py +14 -0
- package/build/lib/runtime/profile_io.py +294 -0
- package/build/lib/runtime/proof_gate.py +122 -7
- package/build/lib/runtime/release_run_coordinator.py +339 -0
- package/build/lib/runtime/release_surfaces.py +243 -0
- package/build/lib/runtime/rollback_manifest.py +136 -0
- package/build/lib/runtime/router_critics.py +50 -0
- package/build/lib/runtime/runtime_contracts.py +137 -0
- package/build/lib/runtime/security_check.py +16 -0
- package/build/lib/runtime/session_health.py +60 -16
- package/build/lib/runtime/team_router.py +156 -13
- package/build/lib/runtime/test_intent_lock.py +102 -0
- package/build/lib/runtime/tool_plan_gate.py +249 -24
- package/build/lib/runtime/validate.py +194 -0
- package/build/lib/runtime/verification_controller.py +52 -2
- package/commands/OMG:diagnose-plugins.md +33 -0
- package/commands/OMG:profile-review.md +43 -0
- package/commands/OMG:setup.md +4 -1
- package/commands/OMG:validate.md +59 -0
- package/control_plane/service.py +40 -1
- package/dist/enterprise/bundle/.claude-plugin/marketplace.json +3 -3
- package/dist/enterprise/bundle/.claude-plugin/plugin.json +1 -1
- package/dist/enterprise/bundle/OMG_COMPAT_CONTRACT.md +1 -1
- package/dist/enterprise/bundle/plugins/advanced/plugin.json +26 -9
- package/dist/enterprise/bundle/registry/bundles/algorithms.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/api-twin.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/claim-judge.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/control-plane.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/data-lineage.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/delta-classifier.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/eval-gate.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/health.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/hook-governor.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/incident-replay.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/lsp-pack.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/mcp-fabric.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/plan-council.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/preflight.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/proof-gate.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/remote-supervisor.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/robotics.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/secure-worktree-pipeline.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/security-check.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/test-intent-lock.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/tracebank.yaml +1 -1
- package/dist/enterprise/bundle/registry/bundles/vision.yaml +1 -1
- package/dist/enterprise/bundle/registry/omg-capability.schema.json +1 -1
- package/dist/enterprise/bundle/settings.json +3 -3
- package/dist/enterprise/manifest.json +30 -40
- package/dist/oh_my_god-2.1.4-py3-none-any.whl +0 -0
- package/dist/oh_my_god-2.1.4.tar.gz +0 -0
- package/dist/public/bundle/.claude-plugin/marketplace.json +3 -3
- package/dist/public/bundle/.claude-plugin/plugin.json +1 -1
- package/dist/public/bundle/OMG_COMPAT_CONTRACT.md +1 -1
- package/dist/public/bundle/plugins/advanced/plugin.json +26 -9
- package/dist/public/bundle/registry/bundles/algorithms.yaml +1 -1
- package/dist/public/bundle/registry/bundles/api-twin.yaml +1 -1
- package/dist/public/bundle/registry/bundles/claim-judge.yaml +1 -1
- package/dist/public/bundle/registry/bundles/control-plane.yaml +1 -1
- package/dist/public/bundle/registry/bundles/data-lineage.yaml +1 -1
- package/dist/public/bundle/registry/bundles/delta-classifier.yaml +1 -1
- package/dist/public/bundle/registry/bundles/eval-gate.yaml +1 -1
- package/dist/public/bundle/registry/bundles/health.yaml +1 -1
- package/dist/public/bundle/registry/bundles/hook-governor.yaml +1 -1
- package/dist/public/bundle/registry/bundles/incident-replay.yaml +1 -1
- package/dist/public/bundle/registry/bundles/lsp-pack.yaml +1 -1
- package/dist/public/bundle/registry/bundles/mcp-fabric.yaml +1 -1
- package/dist/public/bundle/registry/bundles/plan-council.yaml +1 -1
- package/dist/public/bundle/registry/bundles/preflight.yaml +1 -1
- package/dist/public/bundle/registry/bundles/proof-gate.yaml +1 -1
- package/dist/public/bundle/registry/bundles/remote-supervisor.yaml +1 -1
- package/dist/public/bundle/registry/bundles/robotics.yaml +1 -1
- package/dist/public/bundle/registry/bundles/secure-worktree-pipeline.yaml +1 -1
- package/dist/public/bundle/registry/bundles/security-check.yaml +1 -1
- package/dist/public/bundle/registry/bundles/test-intent-lock.yaml +1 -1
- package/dist/public/bundle/registry/bundles/tracebank.yaml +1 -1
- package/dist/public/bundle/registry/bundles/vision.yaml +1 -1
- package/dist/public/bundle/registry/omg-capability.schema.json +1 -1
- package/dist/public/bundle/settings.json +3 -3
- package/dist/public/manifest.json +30 -40
- package/docs/install/opencode.md +30 -0
- package/docs/proof.md +11 -0
- package/docs/release-checklist.md +14 -1
- package/hooks/_agent_registry.py +2 -0
- package/hooks/firewall.py +263 -4
- package/hooks/intentgate-keyword-detector.py +15 -3
- package/hooks/policy_engine.py +77 -0
- package/hooks/prompt-enhancer.py +146 -0
- package/hooks/session-end-capture.py +374 -6
- package/hooks/session-start.py +13 -35
- package/hooks/setup_wizard.py +342 -2
- package/hooks/shadow_manager.py +111 -2
- package/hooks/stop_dispatcher.py +108 -4
- package/hud/omg-hud.mjs +30 -6
- package/lab/pipeline.py +197 -26
- package/package.json +1 -1
- package/plugins/advanced/plugin.json +26 -9
- package/plugins/core/plugin.json +51 -12
- package/pyproject.toml +10 -2
- package/registry/bundles/algorithms.yaml +1 -1
- package/registry/bundles/api-twin.yaml +1 -1
- package/registry/bundles/claim-judge.yaml +1 -1
- package/registry/bundles/control-plane.yaml +1 -1
- package/registry/bundles/data-lineage.yaml +1 -1
- package/registry/bundles/delta-classifier.yaml +1 -1
- package/registry/bundles/eval-gate.yaml +1 -1
- package/registry/bundles/health.yaml +1 -1
- package/registry/bundles/hook-governor.yaml +1 -1
- package/registry/bundles/incident-replay.yaml +1 -1
- package/registry/bundles/lsp-pack.yaml +1 -1
- package/registry/bundles/mcp-fabric.yaml +1 -1
- package/registry/bundles/plan-council.yaml +1 -1
- package/registry/bundles/preflight.yaml +1 -1
- package/registry/bundles/proof-gate.yaml +1 -1
- package/registry/bundles/remote-supervisor.yaml +1 -1
- package/registry/bundles/robotics.yaml +1 -1
- package/registry/bundles/secure-worktree-pipeline.yaml +1 -1
- package/registry/bundles/security-check.yaml +1 -1
- package/registry/bundles/test-intent-lock.yaml +1 -1
- package/registry/bundles/tracebank.yaml +1 -1
- package/registry/bundles/vision.yaml +1 -1
- package/registry/omg-capability.schema.json +1 -1
- package/runtime/adoption.py +7 -5
- package/runtime/background_verification.py +62 -0
- package/runtime/claim_judge.py +165 -5
- package/runtime/compat.py +48 -1
- package/runtime/context_engine.py +261 -4
- package/runtime/contract_compiler.py +370 -93
- package/runtime/defense_state.py +79 -8
- package/runtime/delta_classifier.py +80 -2
- package/runtime/evidence_query.py +56 -4
- package/runtime/evidence_registry.py +16 -0
- package/runtime/evidence_requirements.py +47 -0
- package/runtime/forge_agents.py +179 -9
- package/runtime/forge_contracts.py +208 -2
- package/runtime/hook_governor.py +19 -1
- package/runtime/interaction_journal.py +318 -42
- package/runtime/memory_store.py +134 -1
- package/runtime/mutation_gate.py +57 -11
- package/runtime/omg_compat_contract_snapshot.json +2 -2
- package/runtime/omg_mcp_server.py +14 -4
- package/runtime/plugin_diagnostics.py +248 -0
- package/runtime/plugin_interop.py +1007 -0
- package/runtime/preflight.py +14 -0
- package/runtime/profile_io.py +294 -0
- package/runtime/proof_gate.py +122 -7
- package/runtime/providers/opencode_provider.py +94 -0
- package/runtime/release_run_coordinator.py +339 -0
- package/runtime/release_surfaces.py +243 -0
- package/runtime/rollback_manifest.py +136 -0
- package/runtime/router_critics.py +50 -0
- package/runtime/runtime_contracts.py +137 -0
- package/runtime/security_check.py +16 -0
- package/runtime/session_health.py +60 -16
- package/runtime/team_router.py +156 -13
- package/runtime/test_intent_lock.py +102 -0
- package/runtime/tool_plan_gate.py +218 -19
- package/runtime/validate.py +289 -0
- package/runtime/verification_controller.py +52 -2
- package/scripts/omg.py +306 -3
- package/scripts/prepare-release-proof-fixtures.py +191 -7
- package/scripts/print-canonical-version.py +80 -0
- package/scripts/sync-release-identity.py +476 -0
- package/scripts/validate-release-identity.py +246 -0
- package/scripts/verify-standalone.sh +3 -0
- package/settings.json +3 -3
- package/templates/plugins-allowlist.yaml +19 -0
- package/artifacts/release/dist/enterprise/bundle/.gemini/settings.json +0 -11
- package/artifacts/release/dist/enterprise/bundle/.kimi/mcp.json +0 -11
- package/artifacts/release/dist/public/bundle/.gemini/settings.json +0 -11
- package/artifacts/release/dist/public/bundle/.kimi/mcp.json +0 -11
- package/build/lib/yaml.py +0 -321
- package/dist/enterprise/bundle/.gemini/settings.json +0 -11
- package/dist/enterprise/bundle/.kimi/mcp.json +0 -11
- package/dist/public/bundle/.gemini/settings.json +0 -11
- package/dist/public/bundle/.kimi/mcp.json +0 -11
|
@@ -5,9 +5,58 @@ import os
|
|
|
5
5
|
from collections.abc import Mapping
|
|
6
6
|
from datetime import datetime, timezone
|
|
7
7
|
from pathlib import Path
|
|
8
|
+
from time import monotonic
|
|
8
9
|
from typing import cast
|
|
9
10
|
|
|
10
11
|
from lab.policies import validate_job_request
|
|
12
|
+
from runtime.runtime_contracts import read_defense_state, read_session_health
|
|
13
|
+
|
|
14
|
+
FORGE_STAGE_ORDER: tuple[str, ...] = (
|
|
15
|
+
"data_prepare",
|
|
16
|
+
"synthetic_refine",
|
|
17
|
+
"train_distill",
|
|
18
|
+
"evaluate",
|
|
19
|
+
"regression_test",
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
DEFAULT_STAGE_TIMEOUT_MS: dict[str, int] = {
|
|
23
|
+
"data_prepare": 5_000,
|
|
24
|
+
"synthetic_refine": 5_000,
|
|
25
|
+
"train_distill": 5_000,
|
|
26
|
+
"evaluate": 5_000,
|
|
27
|
+
"regression_test": 5_000,
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
ADAPTER_REGISTRY: dict[str, dict[str, object]] = {
|
|
32
|
+
"axolotl": {
|
|
33
|
+
"kind": "training",
|
|
34
|
+
"module": "axolotl",
|
|
35
|
+
"hook": "lab.axolotl_adapter.run",
|
|
36
|
+
"specialist": "training-architect",
|
|
37
|
+
},
|
|
38
|
+
"pybullet": {
|
|
39
|
+
"kind": "simulator",
|
|
40
|
+
"module": "pybullet",
|
|
41
|
+
"hook": "lab.pybullet_adapter.run",
|
|
42
|
+
"specialist": "simulator-engineer",
|
|
43
|
+
"primary": True,
|
|
44
|
+
},
|
|
45
|
+
"gazebo": {
|
|
46
|
+
"kind": "simulator",
|
|
47
|
+
"module": "gazebo",
|
|
48
|
+
"hook": "lab.gazebo_adapter.run",
|
|
49
|
+
"specialist": "simulator-engineer",
|
|
50
|
+
"primary": False,
|
|
51
|
+
},
|
|
52
|
+
"isaac_gym": {
|
|
53
|
+
"kind": "simulator",
|
|
54
|
+
"module": "isaacgym",
|
|
55
|
+
"hook": "lab.isaac_gym_adapter.run",
|
|
56
|
+
"specialist": "simulator-engineer",
|
|
57
|
+
"primary": False,
|
|
58
|
+
},
|
|
59
|
+
}
|
|
11
60
|
|
|
12
61
|
|
|
13
62
|
def load_forge_mvp() -> dict[str, object]:
|
|
@@ -19,7 +68,7 @@ def load_forge_mvp() -> dict[str, object]:
|
|
|
19
68
|
"required": ["dataset", "base_model", "target_metric"],
|
|
20
69
|
"dataset_required": ["name", "license", "source"],
|
|
21
70
|
"base_model_required": ["name", "source", "allow_distill"],
|
|
22
|
-
"optional": ["simulated_metric", "evaluation_notes"],
|
|
71
|
+
"optional": ["simulated_metric", "evaluation_notes", "simulator_backend", "require_backend"],
|
|
23
72
|
},
|
|
24
73
|
"evaluation_schema": {
|
|
25
74
|
"required": ["status", "stage", "evaluation_report", "published"],
|
|
@@ -29,8 +78,67 @@ def load_forge_mvp() -> dict[str, object]:
|
|
|
29
78
|
"specialist_dispatch": {
|
|
30
79
|
"axolotl": ["dataset", "base_model", "target_metric"],
|
|
31
80
|
"pybullet": ["dataset", "target_metric", "simulated_metric"],
|
|
81
|
+
"forge-cybersecurity": ["dataset", "base_model", "target_metric", "evaluation_notes"],
|
|
82
|
+
},
|
|
83
|
+
"stage_aliases": {
|
|
84
|
+
"security_review": "regression_test",
|
|
85
|
+
"threat_model": "evaluate",
|
|
32
86
|
},
|
|
87
|
+
"specialist_contracts": {
|
|
88
|
+
"forge-cybersecurity": {
|
|
89
|
+
"labs_only": True,
|
|
90
|
+
"allowed_domains": ["cybersecurity"],
|
|
91
|
+
"evidence_profile": "forge-run",
|
|
92
|
+
"proof_backed_dispatch": True,
|
|
93
|
+
"stage_alias": "regression_test",
|
|
94
|
+
"evidence_outputs": {
|
|
95
|
+
"sarif": ".omg/evidence/security-*.sarif",
|
|
96
|
+
"sbom": ".omg/evidence/sbom-*.cdx.json",
|
|
97
|
+
"license": ".omg/evidence/license-*.json",
|
|
98
|
+
"security_json": ".omg/evidence/security-*.json",
|
|
99
|
+
},
|
|
100
|
+
"reuses_scanner": "runtime.security_check",
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
"adapter_registry": dict(ADAPTER_REGISTRY),
|
|
33
104
|
"evidence_output_path": ".omg/evidence/forge-<run_id>.json",
|
|
105
|
+
"starter_templates": {
|
|
106
|
+
"vision-agent": {
|
|
107
|
+
"domain": "vision-agent",
|
|
108
|
+
"specialists": ["data-curator", "training-architect", "simulator-engineer"],
|
|
109
|
+
"dataset": {"name": "vision-agent", "license": "apache-2.0", "source": "internal-curated"},
|
|
110
|
+
"base_model": {"name": "distill-base-v1", "source": "approved-registry", "allow_distill": True},
|
|
111
|
+
"target_metric": 0.8,
|
|
112
|
+
},
|
|
113
|
+
"robotics": {
|
|
114
|
+
"domain": "robotics",
|
|
115
|
+
"specialists": ["training-architect", "simulator-engineer"],
|
|
116
|
+
"dataset": {"name": "robotics", "license": "apache-2.0", "source": "internal-curated"},
|
|
117
|
+
"base_model": {"name": "distill-base-v1", "source": "approved-registry", "allow_distill": True},
|
|
118
|
+
"target_metric": 0.8,
|
|
119
|
+
},
|
|
120
|
+
"algorithms": {
|
|
121
|
+
"domain": "algorithms",
|
|
122
|
+
"specialists": ["training-architect"],
|
|
123
|
+
"dataset": {"name": "algorithms", "license": "apache-2.0", "source": "internal-curated"},
|
|
124
|
+
"base_model": {"name": "distill-base-v1", "source": "approved-registry", "allow_distill": True},
|
|
125
|
+
"target_metric": 0.8,
|
|
126
|
+
},
|
|
127
|
+
"health": {
|
|
128
|
+
"domain": "health",
|
|
129
|
+
"specialists": ["data-curator", "training-architect"],
|
|
130
|
+
"dataset": {"name": "health", "license": "apache-2.0", "source": "internal-curated"},
|
|
131
|
+
"base_model": {"name": "distill-base-v1", "source": "approved-registry", "allow_distill": True},
|
|
132
|
+
"target_metric": 0.8,
|
|
133
|
+
},
|
|
134
|
+
"cybersecurity": {
|
|
135
|
+
"domain": "cybersecurity",
|
|
136
|
+
"specialists": ["forge-cybersecurity"],
|
|
137
|
+
"dataset": {"name": "cybersecurity", "license": "apache-2.0", "source": "internal-curated"},
|
|
138
|
+
"base_model": {"name": "distill-base-v1", "source": "approved-registry", "allow_distill": True},
|
|
139
|
+
"target_metric": 0.8,
|
|
140
|
+
},
|
|
141
|
+
},
|
|
34
142
|
}
|
|
35
143
|
|
|
36
144
|
|
|
@@ -66,20 +174,118 @@ def validate_forge_job(job: dict[str, object]) -> tuple[bool, str]:
|
|
|
66
174
|
return True, "ok"
|
|
67
175
|
|
|
68
176
|
|
|
69
|
-
def
|
|
177
|
+
def read_stage_runtime_snapshots(project_dir: str, run_id: str) -> tuple[dict[str, object], dict[str, object]]:
|
|
178
|
+
defense_payload = read_defense_state(project_dir, run_id=run_id, compat=True)
|
|
179
|
+
health_payload = read_session_health(project_dir, run_id=run_id, compat=True)
|
|
180
|
+
defense_snapshot: dict[str, object] = {}
|
|
181
|
+
session_health_snapshot: dict[str, object] = {}
|
|
182
|
+
if isinstance(defense_payload, dict):
|
|
183
|
+
defense_snapshot = cast(dict[str, object], dict(defense_payload))
|
|
184
|
+
if isinstance(health_payload, dict):
|
|
185
|
+
session_health_snapshot = cast(dict[str, object], dict(health_payload))
|
|
186
|
+
return defense_snapshot, session_health_snapshot
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
def resolve_stage_timeout_ms(job: Mapping[str, object], stage: str) -> int:
|
|
190
|
+
timeout_value: object | None = None
|
|
191
|
+
stage_timeouts = job.get("stage_timeouts_ms")
|
|
192
|
+
if isinstance(stage_timeouts, Mapping):
|
|
193
|
+
timeout_value = stage_timeouts.get(stage)
|
|
194
|
+
if timeout_value is None:
|
|
195
|
+
timeout_value = DEFAULT_STAGE_TIMEOUT_MS.get(stage, 5_000)
|
|
196
|
+
|
|
197
|
+
if isinstance(timeout_value, bool):
|
|
198
|
+
return DEFAULT_STAGE_TIMEOUT_MS.get(stage, 5_000)
|
|
199
|
+
if isinstance(timeout_value, int):
|
|
200
|
+
parsed = timeout_value
|
|
201
|
+
elif isinstance(timeout_value, float):
|
|
202
|
+
parsed = int(timeout_value)
|
|
203
|
+
elif isinstance(timeout_value, str):
|
|
204
|
+
try:
|
|
205
|
+
parsed = int(timeout_value)
|
|
206
|
+
except ValueError:
|
|
207
|
+
return DEFAULT_STAGE_TIMEOUT_MS.get(stage, 5_000)
|
|
208
|
+
else:
|
|
209
|
+
return DEFAULT_STAGE_TIMEOUT_MS.get(stage, 5_000)
|
|
210
|
+
return max(0, parsed)
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
def build_stage_evidence(
|
|
214
|
+
*,
|
|
215
|
+
stage: str,
|
|
216
|
+
run_id: str,
|
|
217
|
+
status: str,
|
|
218
|
+
started_at_ms: float,
|
|
219
|
+
defense_snapshot: Mapping[str, object],
|
|
220
|
+
session_health_snapshot: Mapping[str, object],
|
|
221
|
+
artifacts: list[str],
|
|
222
|
+
adapter_evidence: list[dict[str, object]] | None = None,
|
|
223
|
+
) -> dict[str, object]:
|
|
224
|
+
duration_ms = max(0, int((monotonic() - started_at_ms) * 1000))
|
|
225
|
+
result: dict[str, object] = {
|
|
226
|
+
"stage": stage,
|
|
227
|
+
"run_id": run_id,
|
|
228
|
+
"status": status,
|
|
229
|
+
"duration_ms": duration_ms,
|
|
230
|
+
"defense_snapshot": dict(defense_snapshot),
|
|
231
|
+
"session_health_snapshot": dict(session_health_snapshot),
|
|
232
|
+
"artifacts": list(artifacts),
|
|
233
|
+
"timestamp": datetime.now(timezone.utc).isoformat(),
|
|
234
|
+
}
|
|
235
|
+
if adapter_evidence is not None:
|
|
236
|
+
result["adapter_evidence"] = list(adapter_evidence)
|
|
237
|
+
return result
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
def build_forge_evidence(
|
|
241
|
+
project_dir: str,
|
|
242
|
+
run_id: str,
|
|
243
|
+
job: Mapping[str, object],
|
|
244
|
+
result: Mapping[str, object],
|
|
245
|
+
*,
|
|
246
|
+
stage_evidence: list[Mapping[str, object]] | None = None,
|
|
247
|
+
) -> str:
|
|
70
248
|
out_path = Path(project_dir) / ".omg" / "evidence" / f"forge-{run_id}.json"
|
|
71
249
|
out_path.parent.mkdir(parents=True, exist_ok=True)
|
|
72
250
|
|
|
251
|
+
domain = str(job.get("domain", "")).strip()
|
|
252
|
+
specialists_raw = job.get("specialists")
|
|
253
|
+
specialist_str = ",".join(str(s) for s in specialists_raw) if isinstance(specialists_raw, list) else ""
|
|
254
|
+
|
|
255
|
+
merged_stage_evidence: list[Mapping[str, object]] = []
|
|
256
|
+
if stage_evidence is not None:
|
|
257
|
+
merged_stage_evidence = list(stage_evidence)
|
|
258
|
+
else:
|
|
259
|
+
existing_stage_evidence = result.get("stage_evidence")
|
|
260
|
+
if isinstance(existing_stage_evidence, list):
|
|
261
|
+
merged_stage_evidence = [
|
|
262
|
+
cast(Mapping[str, object], item)
|
|
263
|
+
for item in existing_stage_evidence
|
|
264
|
+
if isinstance(item, Mapping)
|
|
265
|
+
]
|
|
266
|
+
|
|
73
267
|
payload = {
|
|
74
268
|
"schema": "ForgeMVPEvidence",
|
|
75
269
|
"schema_version": "1.0.0",
|
|
76
270
|
"run_id": run_id,
|
|
77
271
|
"generated_at": datetime.now(timezone.utc).isoformat(),
|
|
272
|
+
"labs_only": True,
|
|
273
|
+
"proof_backed": True,
|
|
274
|
+
"specialist": specialist_str,
|
|
275
|
+
"domain": domain,
|
|
78
276
|
"contract": load_forge_mvp(),
|
|
79
277
|
"job": job,
|
|
80
278
|
"result": result,
|
|
81
279
|
"status": result.get("status", "unknown"),
|
|
82
280
|
"evaluation_report": result.get("evaluation_report"),
|
|
281
|
+
"stages": result.get("stages", []),
|
|
282
|
+
"stage_evidence": merged_stage_evidence,
|
|
283
|
+
"causal_chain": {
|
|
284
|
+
"lock_id": "",
|
|
285
|
+
"waiver_artifact_path": str(out_path),
|
|
286
|
+
"delta_summary": {"forge_run": run_id, "domain": domain, "specialist": specialist_str},
|
|
287
|
+
"verification_status": str(result.get("status", "unknown")),
|
|
288
|
+
},
|
|
83
289
|
}
|
|
84
290
|
|
|
85
291
|
tmp_path = out_path.with_name(f"{out_path.name}.tmp")
|
package/runtime/hook_governor.py
CHANGED
|
@@ -14,6 +14,7 @@ except Exception: # pragma: no cover - json fallback path
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
DEFAULT_BUNDLE_PATH = Path("registry") / "bundles" / "hook-governor.yaml"
|
|
17
|
+
_MODULE_DIR = Path(__file__).resolve().parent.parent # project root (runtime/ → project root)
|
|
17
18
|
SECURITY_REQUIRED_BY_EVENT: dict[str, tuple[str, ...]] = {
|
|
18
19
|
"PreToolUse": ("firewall", "secret-guard"),
|
|
19
20
|
}
|
|
@@ -49,6 +50,12 @@ def _load_compiled_hooks(
|
|
|
49
50
|
) -> tuple[dict[str, list[str]], str | None]:
|
|
50
51
|
root = _resolve_project_dir(project_dir)
|
|
51
52
|
candidate = Path(bundle_path) if bundle_path else (root / DEFAULT_BUNDLE_PATH)
|
|
53
|
+
if not bundle_path and not candidate.exists():
|
|
54
|
+
# Fallback: resolve relative to this module's installed location (robust to cwd changes
|
|
55
|
+
# and CLAUDE_PROJECT_DIR pointing to temp dirs in parallel test runs).
|
|
56
|
+
module_relative = _MODULE_DIR / DEFAULT_BUNDLE_PATH
|
|
57
|
+
if module_relative.exists():
|
|
58
|
+
candidate = module_relative
|
|
52
59
|
try:
|
|
53
60
|
raw = candidate.read_text(encoding="utf-8")
|
|
54
61
|
except FileNotFoundError:
|
|
@@ -123,10 +130,21 @@ def validate_order(
|
|
|
123
130
|
blockers: list[str] = []
|
|
124
131
|
expected_positions = {name: idx for idx, name in enumerate(canonical)}
|
|
125
132
|
|
|
126
|
-
|
|
133
|
+
required_security_hooks = SECURITY_REQUIRED_BY_EVENT.get(event, ())
|
|
134
|
+
for required in required_security_hooks:
|
|
127
135
|
if required not in hooks_list:
|
|
128
136
|
blockers.append(f"missing required security hook: {required}")
|
|
129
137
|
|
|
138
|
+
if required_security_hooks:
|
|
139
|
+
for expected_index, required in enumerate(required_security_hooks):
|
|
140
|
+
if required not in hooks_list:
|
|
141
|
+
continue
|
|
142
|
+
actual_index = hooks_list.index(required)
|
|
143
|
+
if actual_index != expected_index:
|
|
144
|
+
blockers.append(
|
|
145
|
+
f"hook order violation for {event}: {required} must run before non-security hooks"
|
|
146
|
+
)
|
|
147
|
+
|
|
130
148
|
filtered_hooks = [hook for hook in hooks_list if hook in expected_positions]
|
|
131
149
|
for left, right in zip(filtered_hooks, filtered_hooks[1:]):
|
|
132
150
|
if expected_positions[left] > expected_positions[right]:
|