@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
|
@@ -11,11 +11,22 @@ from __future__ import annotations
|
|
|
11
11
|
|
|
12
12
|
import json
|
|
13
13
|
import os
|
|
14
|
+
import re
|
|
14
15
|
from pathlib import Path
|
|
15
16
|
from typing import Any
|
|
16
17
|
|
|
18
|
+
import yaml
|
|
19
|
+
|
|
20
|
+
from runtime.profile_io import profile_version_from_map
|
|
21
|
+
|
|
17
22
|
_MAX_SUMMARY_CHARS = 1000
|
|
23
|
+
_MAX_CLARIFICATION_PROMPT_CHARS = 180
|
|
24
|
+
_PROFILE_SUMMARY_MAX_CHARS = 120
|
|
25
|
+
_PROFILE_DIGEST_TAG_MAX = 5
|
|
26
|
+
_PROFILE_DIGEST_ARCH_MAX = 3
|
|
27
|
+
_PROFILE_DIGEST_CONSTRAINT_MAX = 5
|
|
18
28
|
_PACKET_REL_PATH = Path(".omg") / "state" / "context_engine_packet.json"
|
|
29
|
+
_PROFILE_REL_PATH = Path(".omg") / "state" / "profile.yaml"
|
|
19
30
|
|
|
20
31
|
_STATE_PATHS = {
|
|
21
32
|
"architecture_signal": Path(".omg") / "state" / "architecture_signal" / "latest.json",
|
|
@@ -23,6 +34,203 @@ _STATE_PATHS = {
|
|
|
23
34
|
"background_verification": Path(".omg") / "state" / "background-verification.json",
|
|
24
35
|
"context_pressure": Path(".omg") / "state" / ".context-pressure.json",
|
|
25
36
|
}
|
|
37
|
+
_COUNCIL_REL_BASE = Path(".omg") / "state" / "council_verdicts"
|
|
38
|
+
_INTENT_GATE_REL_BASE = Path(".omg") / "state" / "intent_gate"
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def load_profile_digest(project_dir: str | Path) -> dict[str, Any]:
|
|
42
|
+
root = Path(project_dir)
|
|
43
|
+
profile_path = root / _PROFILE_REL_PATH
|
|
44
|
+
if not profile_path.exists():
|
|
45
|
+
return _empty_profile_digest()
|
|
46
|
+
|
|
47
|
+
raw_profile = ""
|
|
48
|
+
parsed: dict[str, Any] = {}
|
|
49
|
+
try:
|
|
50
|
+
raw_profile = profile_path.read_text(encoding="utf-8")
|
|
51
|
+
except OSError:
|
|
52
|
+
return _empty_profile_digest()
|
|
53
|
+
|
|
54
|
+
try:
|
|
55
|
+
payload = yaml.safe_load(raw_profile)
|
|
56
|
+
except Exception:
|
|
57
|
+
payload = None
|
|
58
|
+
if isinstance(payload, dict):
|
|
59
|
+
parsed = payload
|
|
60
|
+
|
|
61
|
+
digest = _profile_digest_from_map(parsed, raw_profile)
|
|
62
|
+
return digest
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def render_profile_digest_text(project_dir: str | Path, *, max_chars: int) -> str:
|
|
66
|
+
digest = load_profile_digest(project_dir)
|
|
67
|
+
arch_items = digest.get("architecture_requests")
|
|
68
|
+
arch_list = arch_items if isinstance(arch_items, list) else []
|
|
69
|
+
arch = ",".join(str(item)[:18] for item in arch_list if str(item).strip())
|
|
70
|
+
constraints_obj = digest.get("constraints", {})
|
|
71
|
+
constraints = constraints_obj if isinstance(constraints_obj, dict) else {}
|
|
72
|
+
constraint_tokens = []
|
|
73
|
+
for key, value in constraints.items():
|
|
74
|
+
if len(constraint_tokens) >= _PROFILE_DIGEST_CONSTRAINT_MAX:
|
|
75
|
+
break
|
|
76
|
+
value_text = str(value).strip()
|
|
77
|
+
if not value_text:
|
|
78
|
+
continue
|
|
79
|
+
constraint_tokens.append(f"{str(key)[:14]}={value_text[:14]}")
|
|
80
|
+
cons = ",".join(constraint_tokens)
|
|
81
|
+
tags_items = digest.get("tags")
|
|
82
|
+
tags_list = tags_items if isinstance(tags_items, list) else []
|
|
83
|
+
tags = ",".join(str(item)[:14] for item in tags_list if str(item).strip())
|
|
84
|
+
try:
|
|
85
|
+
confidence = round(float(digest.get("confidence", 0.0)), 2)
|
|
86
|
+
except (TypeError, ValueError):
|
|
87
|
+
confidence = 0.0
|
|
88
|
+
version = str(digest.get("profile_version", "")).strip()[:24]
|
|
89
|
+
summary = str(digest.get("summary", "")).strip()
|
|
90
|
+
|
|
91
|
+
prefix = f"arch[{arch}]|cons[{cons}]|tags[{tags}]|conf={confidence}|ver={version}|sum="
|
|
92
|
+
if len(prefix) >= max_chars:
|
|
93
|
+
return prefix[:max_chars]
|
|
94
|
+
remaining = max_chars - len(prefix)
|
|
95
|
+
if len(summary) > remaining:
|
|
96
|
+
if remaining <= 3:
|
|
97
|
+
summary = summary[:remaining]
|
|
98
|
+
else:
|
|
99
|
+
summary = summary[: remaining - 3] + "..."
|
|
100
|
+
return prefix + summary
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def _empty_profile_digest() -> dict[str, Any]:
|
|
104
|
+
return {
|
|
105
|
+
"architecture_requests": [],
|
|
106
|
+
"constraints": {},
|
|
107
|
+
"tags": [],
|
|
108
|
+
"summary": "",
|
|
109
|
+
"confidence": 0.0,
|
|
110
|
+
"profile_version": "",
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
def _profile_digest_from_map(profile: dict[str, Any], raw_profile: str) -> dict[str, Any]:
|
|
115
|
+
preferences_obj = profile.get("preferences")
|
|
116
|
+
preferences: dict[str, Any] = preferences_obj if isinstance(preferences_obj, dict) else {}
|
|
117
|
+
user_vector_obj = profile.get("user_vector")
|
|
118
|
+
user_vector: dict[str, Any] = user_vector_obj if isinstance(user_vector_obj, dict) else {}
|
|
119
|
+
provenance_obj = profile.get("profile_provenance")
|
|
120
|
+
provenance: dict[str, Any] = provenance_obj if isinstance(provenance_obj, dict) else {}
|
|
121
|
+
|
|
122
|
+
architecture_obj = preferences.get("architecture_requests")
|
|
123
|
+
architecture_raw: list[Any] = architecture_obj if isinstance(architecture_obj, list) else []
|
|
124
|
+
architecture_requests = [
|
|
125
|
+
_clean_single_line(item)
|
|
126
|
+
for item in architecture_raw
|
|
127
|
+
if _clean_single_line(item)
|
|
128
|
+
][:_PROFILE_DIGEST_ARCH_MAX]
|
|
129
|
+
|
|
130
|
+
constraints_obj = preferences.get("constraints")
|
|
131
|
+
constraints_raw: dict[str, Any] = constraints_obj if isinstance(constraints_obj, dict) else {}
|
|
132
|
+
constraints = _normalize_constraints(constraints_raw)
|
|
133
|
+
|
|
134
|
+
tags_obj = user_vector.get("tags")
|
|
135
|
+
tags_raw: list[Any] = tags_obj if isinstance(tags_obj, list) else []
|
|
136
|
+
tags = [_normalize_tag(item) for item in tags_raw if _normalize_tag(item)][:_PROFILE_DIGEST_TAG_MAX]
|
|
137
|
+
|
|
138
|
+
summary = _clean_single_line(
|
|
139
|
+
user_vector.get("summary")
|
|
140
|
+
or profile.get("summary")
|
|
141
|
+
or profile.get("name")
|
|
142
|
+
)[:_PROFILE_SUMMARY_MAX_CHARS]
|
|
143
|
+
|
|
144
|
+
confidence = _resolve_profile_confidence(profile, user_vector, provenance)
|
|
145
|
+
profile_version = _resolve_profile_version_pointer(profile, provenance, raw_profile)
|
|
146
|
+
|
|
147
|
+
return {
|
|
148
|
+
"architecture_requests": architecture_requests,
|
|
149
|
+
"constraints": constraints,
|
|
150
|
+
"tags": tags,
|
|
151
|
+
"summary": summary,
|
|
152
|
+
"confidence": confidence,
|
|
153
|
+
"profile_version": profile_version,
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
def _normalize_constraints(raw: dict[str, Any]) -> dict[str, str | int | float | bool | None]:
|
|
158
|
+
out: dict[str, str | int | float | bool | None] = {}
|
|
159
|
+
for key, value in raw.items():
|
|
160
|
+
if len(out) >= _PROFILE_DIGEST_CONSTRAINT_MAX:
|
|
161
|
+
break
|
|
162
|
+
normalized_key = _normalize_constraint_key(key)
|
|
163
|
+
normalized_value = _normalize_constraint_value(value)
|
|
164
|
+
if not normalized_key or normalized_value is None:
|
|
165
|
+
continue
|
|
166
|
+
out[normalized_key] = normalized_value
|
|
167
|
+
return out
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
def _normalize_constraint_key(value: object) -> str:
|
|
171
|
+
token = re.sub(r"\s+", "_", str(value).strip().lower())
|
|
172
|
+
token = "".join(ch for ch in token if ch.isalnum() or ch == "_")
|
|
173
|
+
return token[:40]
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
def _normalize_constraint_value(value: object) -> str | int | float | bool | None:
|
|
177
|
+
if isinstance(value, bool):
|
|
178
|
+
return value
|
|
179
|
+
if isinstance(value, int):
|
|
180
|
+
return value
|
|
181
|
+
if isinstance(value, float):
|
|
182
|
+
return round(value, 3)
|
|
183
|
+
if value is None:
|
|
184
|
+
return None
|
|
185
|
+
text = _clean_single_line(value).lower()
|
|
186
|
+
return text[:80] if text else None
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
def _normalize_tag(value: object) -> str:
|
|
190
|
+
token = re.sub(r"\s+", "_", str(value).strip().lower())
|
|
191
|
+
token = "".join(ch for ch in token if ch.isalnum() or ch in {"_", "-"})
|
|
192
|
+
return token[:24]
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
def _clean_single_line(value: object) -> str:
|
|
196
|
+
return " ".join(str(value).strip().split())
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
def _resolve_profile_confidence(
|
|
200
|
+
profile: dict[str, Any],
|
|
201
|
+
user_vector: dict[str, Any],
|
|
202
|
+
provenance: dict[str, Any],
|
|
203
|
+
) -> float:
|
|
204
|
+
candidates = [
|
|
205
|
+
profile.get("confidence"),
|
|
206
|
+
user_vector.get("confidence"),
|
|
207
|
+
provenance.get("confidence"),
|
|
208
|
+
]
|
|
209
|
+
for candidate in candidates:
|
|
210
|
+
if not isinstance(candidate, (int, float, str)):
|
|
211
|
+
continue
|
|
212
|
+
try:
|
|
213
|
+
value = float(candidate)
|
|
214
|
+
except (TypeError, ValueError):
|
|
215
|
+
continue
|
|
216
|
+
return round(max(0.0, min(1.0, value)), 2)
|
|
217
|
+
return 0.0
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
def _resolve_profile_version_pointer(profile: dict[str, Any], provenance: dict[str, Any], raw_profile: str) -> str:
|
|
221
|
+
for candidate in (
|
|
222
|
+
profile.get("profile_version"),
|
|
223
|
+
profile.get("version"),
|
|
224
|
+
provenance.get("checksum"),
|
|
225
|
+
provenance.get("version"),
|
|
226
|
+
):
|
|
227
|
+
if candidate is None:
|
|
228
|
+
continue
|
|
229
|
+
text = _clean_single_line(candidate)
|
|
230
|
+
if text:
|
|
231
|
+
return text[:64]
|
|
232
|
+
# Deterministic: hash the parsed dict, not the raw text
|
|
233
|
+
return profile_version_from_map(profile)
|
|
26
234
|
|
|
27
235
|
|
|
28
236
|
class ContextEngine:
|
|
@@ -61,12 +269,13 @@ class ContextEngine:
|
|
|
61
269
|
# ------------------------------------------------------------------
|
|
62
270
|
|
|
63
271
|
def _build(self, run_id: str, *, delta_only: bool) -> dict[str, Any]:
|
|
64
|
-
raw = self._read_all_state()
|
|
65
|
-
artifact_pointers = self._collect_artifact_pointers()
|
|
272
|
+
raw = self._read_all_state(run_id)
|
|
273
|
+
artifact_pointers = self._collect_artifact_pointers(run_id)
|
|
66
274
|
|
|
67
275
|
if not artifact_pointers and all(v == {} for v in raw.values()):
|
|
68
276
|
pkt = self._fallback(run_id)
|
|
69
277
|
pkt["delta_only"] = delta_only
|
|
278
|
+
pkt["profile_digest"] = load_profile_digest(self.project_dir)
|
|
70
279
|
self._persist_packet(pkt)
|
|
71
280
|
return pkt
|
|
72
281
|
|
|
@@ -88,6 +297,8 @@ class ContextEngine:
|
|
|
88
297
|
packet: dict[str, Any] = {
|
|
89
298
|
"summary": summary,
|
|
90
299
|
"artifact_pointers": artifact_pointers,
|
|
300
|
+
"clarification_status": self._compose_clarification_status(raw),
|
|
301
|
+
"profile_digest": load_profile_digest(self.project_dir),
|
|
91
302
|
"budget": {
|
|
92
303
|
"max_chars": _MAX_SUMMARY_CHARS,
|
|
93
304
|
"used_chars": len(summary),
|
|
@@ -99,11 +310,13 @@ class ContextEngine:
|
|
|
99
310
|
self._persist_packet(packet)
|
|
100
311
|
return packet
|
|
101
312
|
|
|
102
|
-
def _read_all_state(self) -> dict[str, Any]:
|
|
313
|
+
def _read_all_state(self, run_id: str) -> dict[str, Any]:
|
|
103
314
|
"""Read all state files, returning empty dicts for missing ones."""
|
|
104
315
|
result: dict[str, Any] = {}
|
|
105
316
|
for name, rel_path in _STATE_PATHS.items():
|
|
106
317
|
result[name] = self._read_json(self.project_dir / rel_path)
|
|
318
|
+
result["council_verdicts"] = self._read_json(self.project_dir / _COUNCIL_REL_BASE / f"{run_id}.json")
|
|
319
|
+
result["intent_gate"] = self._read_json(self.project_dir / _INTENT_GATE_REL_BASE / f"{run_id}.json")
|
|
107
320
|
return result
|
|
108
321
|
|
|
109
322
|
def _read_json(self, path: Path) -> dict[str, Any]:
|
|
@@ -115,15 +328,43 @@ class ContextEngine:
|
|
|
115
328
|
return {}
|
|
116
329
|
return payload if isinstance(payload, dict) else {}
|
|
117
330
|
|
|
118
|
-
def _collect_artifact_pointers(self) -> list[str]:
|
|
331
|
+
def _collect_artifact_pointers(self, run_id: str) -> list[str]:
|
|
119
332
|
"""Collect relative paths to existing state artifacts — NO raw content."""
|
|
120
333
|
pointers: list[str] = []
|
|
121
334
|
for rel_path in _STATE_PATHS.values():
|
|
122
335
|
full = self.project_dir / rel_path
|
|
123
336
|
if full.exists():
|
|
124
337
|
pointers.append(str(rel_path))
|
|
338
|
+
|
|
339
|
+
council_rel = _COUNCIL_REL_BASE / f"{run_id}.json"
|
|
340
|
+
if (self.project_dir / council_rel).exists():
|
|
341
|
+
pointers.append(str(council_rel))
|
|
342
|
+
|
|
343
|
+
intent_gate_rel = _INTENT_GATE_REL_BASE / f"{run_id}.json"
|
|
344
|
+
if (self.project_dir / intent_gate_rel).exists():
|
|
345
|
+
pointers.append(str(intent_gate_rel))
|
|
125
346
|
return pointers
|
|
126
347
|
|
|
348
|
+
def _compose_clarification_status(self, raw: dict[str, Any]) -> dict[str, Any]:
|
|
349
|
+
intent_gate = raw.get("intent_gate", {})
|
|
350
|
+
if not isinstance(intent_gate, dict):
|
|
351
|
+
intent_gate = {}
|
|
352
|
+
|
|
353
|
+
prompt = str(intent_gate.get("clarification_prompt", "")).strip().replace("\n", " ")
|
|
354
|
+
confidence_raw = intent_gate.get("confidence", 0.0)
|
|
355
|
+
try:
|
|
356
|
+
confidence = float(confidence_raw)
|
|
357
|
+
except (TypeError, ValueError):
|
|
358
|
+
confidence = 0.0
|
|
359
|
+
confidence = max(0.0, min(1.0, confidence))
|
|
360
|
+
|
|
361
|
+
return {
|
|
362
|
+
"requires_clarification": bool(intent_gate.get("requires_clarification") is True),
|
|
363
|
+
"intent_class": str(intent_gate.get("intent_class", "")).strip()[:48],
|
|
364
|
+
"clarification_prompt": prompt[:_MAX_CLARIFICATION_PROMPT_CHARS],
|
|
365
|
+
"confidence": round(confidence, 2),
|
|
366
|
+
}
|
|
367
|
+
|
|
127
368
|
def _compose_summary(self, raw: dict[str, Any]) -> str:
|
|
128
369
|
"""Compose a bounded summary from state signals."""
|
|
129
370
|
parts: list[str] = []
|
|
@@ -157,6 +398,15 @@ class ContextEngine:
|
|
|
157
398
|
if tool_count is not None:
|
|
158
399
|
parts.append(f"pressure: tools={tool_count} high={is_high}")
|
|
159
400
|
|
|
401
|
+
council = raw.get("council_verdicts", {})
|
|
402
|
+
if isinstance(council, dict):
|
|
403
|
+
verdicts = council.get("verdicts")
|
|
404
|
+
if isinstance(verdicts, dict) and verdicts:
|
|
405
|
+
evidence = verdicts.get("evidence_completeness")
|
|
406
|
+
if isinstance(evidence, dict):
|
|
407
|
+
token = str(evidence.get("verdict", "")).strip().lower() or "unknown"
|
|
408
|
+
parts.append(f"council: evidence_completeness={token}")
|
|
409
|
+
|
|
160
410
|
if not parts:
|
|
161
411
|
return "no context signals available"
|
|
162
412
|
|
|
@@ -188,6 +438,13 @@ class ContextEngine:
|
|
|
188
438
|
return {
|
|
189
439
|
"summary": "no context signals available",
|
|
190
440
|
"artifact_pointers": [],
|
|
441
|
+
"clarification_status": {
|
|
442
|
+
"requires_clarification": False,
|
|
443
|
+
"intent_class": "",
|
|
444
|
+
"clarification_prompt": "",
|
|
445
|
+
"confidence": 0.0,
|
|
446
|
+
},
|
|
447
|
+
"profile_digest": _empty_profile_digest(),
|
|
191
448
|
"budget": {"max_chars": _MAX_SUMMARY_CHARS, "used_chars": 0},
|
|
192
449
|
"delta_only": False,
|
|
193
450
|
"run_id": run_id,
|