agentic-qe 3.2.2 → 3.3.0
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/.claude/agents/v3/qe-accessibility-auditor.md +90 -0
- package/.claude/helpers/github-safe.js +10 -10
- package/README.md +43 -5
- package/package.json +4 -2
- package/scripts/cloud-db-config.json +37 -0
- package/scripts/cloud-db-connect.sh +37 -0
- package/scripts/cloud-db-tunnel.sh +23 -0
- package/v3/CHANGELOG.md +165 -0
- package/v3/README.md +59 -1
- package/v3/assets/agents/v3/qe-accessibility-auditor.md +90 -0
- package/v3/dist/adapters/claude-flow/index.d.ts +54 -0
- package/v3/dist/adapters/claude-flow/index.d.ts.map +1 -0
- package/v3/dist/adapters/claude-flow/index.js +79 -0
- package/v3/dist/adapters/claude-flow/index.js.map +1 -0
- package/v3/dist/adapters/claude-flow/model-router-bridge.d.ts +70 -0
- package/v3/dist/adapters/claude-flow/model-router-bridge.d.ts.map +1 -0
- package/v3/dist/adapters/claude-flow/model-router-bridge.js +203 -0
- package/v3/dist/adapters/claude-flow/model-router-bridge.js.map +1 -0
- package/v3/dist/adapters/claude-flow/pretrain-bridge.d.ts +73 -0
- package/v3/dist/adapters/claude-flow/pretrain-bridge.d.ts.map +1 -0
- package/v3/dist/adapters/claude-flow/pretrain-bridge.js +276 -0
- package/v3/dist/adapters/claude-flow/pretrain-bridge.js.map +1 -0
- package/v3/dist/adapters/claude-flow/trajectory-bridge.d.ts +70 -0
- package/v3/dist/adapters/claude-flow/trajectory-bridge.d.ts.map +1 -0
- package/v3/dist/adapters/claude-flow/trajectory-bridge.js +205 -0
- package/v3/dist/adapters/claude-flow/trajectory-bridge.js.map +1 -0
- package/v3/dist/adapters/claude-flow/types.d.ts +99 -0
- package/v3/dist/adapters/claude-flow/types.d.ts.map +1 -0
- package/v3/dist/adapters/claude-flow/types.js +6 -0
- package/v3/dist/adapters/claude-flow/types.js.map +1 -0
- package/v3/dist/causal-discovery/causal-graph.d.ts +80 -1
- package/v3/dist/causal-discovery/causal-graph.d.ts.map +1 -1
- package/v3/dist/causal-discovery/causal-graph.js +111 -1
- package/v3/dist/causal-discovery/causal-graph.js.map +1 -1
- package/v3/dist/cli/bundle.js +12486 -5503
- package/v3/dist/cli/commands/claude-flow-setup.d.ts +82 -0
- package/v3/dist/cli/commands/claude-flow-setup.d.ts.map +1 -0
- package/v3/dist/cli/commands/claude-flow-setup.js +334 -0
- package/v3/dist/cli/commands/claude-flow-setup.js.map +1 -0
- package/v3/dist/cli/commands/hooks.d.ts +2 -0
- package/v3/dist/cli/commands/hooks.d.ts.map +1 -1
- package/v3/dist/cli/commands/hooks.js +13 -2
- package/v3/dist/cli/commands/hooks.js.map +1 -1
- package/v3/dist/cli/commands/init.d.ts +19 -0
- package/v3/dist/cli/commands/init.d.ts.map +1 -0
- package/v3/dist/cli/commands/init.js +345 -0
- package/v3/dist/cli/commands/init.js.map +1 -0
- package/v3/dist/cli/index.js +110 -2
- package/v3/dist/cli/index.js.map +1 -1
- package/v3/dist/coordination/cross-domain-router.d.ts.map +1 -1
- package/v3/dist/coordination/cross-domain-router.js +2 -0
- package/v3/dist/coordination/cross-domain-router.js.map +1 -1
- package/v3/dist/coordination/mincut/interfaces.d.ts +8 -2
- package/v3/dist/coordination/mincut/interfaces.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/interfaces.js.map +1 -1
- package/v3/dist/coordination/mincut/mincut-health-monitor.d.ts +5 -0
- package/v3/dist/coordination/mincut/mincut-health-monitor.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/mincut-health-monitor.js +22 -4
- package/v3/dist/coordination/mincut/mincut-health-monitor.js.map +1 -1
- package/v3/dist/coordination/mincut/queen-integration.d.ts +4 -0
- package/v3/dist/coordination/mincut/queen-integration.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/queen-integration.js +14 -1
- package/v3/dist/coordination/mincut/queen-integration.js.map +1 -1
- package/v3/dist/coordination/queen-coordinator.d.ts +5 -0
- package/v3/dist/coordination/queen-coordinator.d.ts.map +1 -1
- package/v3/dist/coordination/queen-coordinator.js +45 -7
- package/v3/dist/coordination/queen-coordinator.js.map +1 -1
- package/v3/dist/domains/learning-optimization/coordinator.d.ts +5 -0
- package/v3/dist/domains/learning-optimization/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/coordinator.js +79 -0
- package/v3/dist/domains/learning-optimization/coordinator.js.map +1 -1
- package/v3/dist/domains/security-compliance/services/semgrep-integration.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/services/semgrep-integration.js +16 -12
- package/v3/dist/domains/security-compliance/services/semgrep-integration.js.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e-runner.d.ts +1 -0
- package/v3/dist/domains/test-execution/services/e2e-runner.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e-runner.js +9 -12
- package/v3/dist/domains/test-execution/services/e2e-runner.js.map +1 -1
- package/v3/dist/domains/test-generation/coherence-gate.d.ts +245 -0
- package/v3/dist/domains/test-generation/coherence-gate.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/coherence-gate.js +454 -0
- package/v3/dist/domains/test-generation/coherence-gate.js.map +1 -0
- package/v3/dist/domains/test-generation/coordinator.d.ts +32 -1
- package/v3/dist/domains/test-generation/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/coordinator.js +70 -1
- package/v3/dist/domains/test-generation/coordinator.js.map +1 -1
- package/v3/dist/domains/test-generation/index.d.ts +1 -0
- package/v3/dist/domains/test-generation/index.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/index.js +4 -0
- package/v3/dist/domains/test-generation/index.js.map +1 -1
- package/v3/dist/domains/test-generation/services/index.d.ts +1 -0
- package/v3/dist/domains/test-generation/services/index.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/services/index.js +2 -0
- package/v3/dist/domains/test-generation/services/index.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/index.d.ts +2 -1
- package/v3/dist/domains/visual-accessibility/index.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/index.js +1 -0
- package/v3/dist/domains/visual-accessibility/index.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/interfaces.d.ts +131 -0
- package/v3/dist/domains/visual-accessibility/interfaces.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/plugin.d.ts +26 -0
- package/v3/dist/domains/visual-accessibility/plugin.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/plugin.js +151 -0
- package/v3/dist/domains/visual-accessibility/plugin.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.d.ts +42 -1
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js +69 -0
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/eu-compliance.d.ts +138 -0
- package/v3/dist/domains/visual-accessibility/services/eu-compliance.d.ts.map +1 -0
- package/v3/dist/domains/visual-accessibility/services/eu-compliance.js +830 -0
- package/v3/dist/domains/visual-accessibility/services/eu-compliance.js.map +1 -0
- package/v3/dist/domains/visual-accessibility/services/index.d.ts +1 -0
- package/v3/dist/domains/visual-accessibility/services/index.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/index.js +1 -0
- package/v3/dist/domains/visual-accessibility/services/index.js.map +1 -1
- package/v3/dist/init/enhancements/claude-flow-adapter.d.ts +84 -0
- package/v3/dist/init/enhancements/claude-flow-adapter.d.ts.map +1 -0
- package/v3/dist/init/enhancements/claude-flow-adapter.js +250 -0
- package/v3/dist/init/enhancements/claude-flow-adapter.js.map +1 -0
- package/v3/dist/init/enhancements/detector.d.ts +10 -0
- package/v3/dist/init/enhancements/detector.d.ts.map +1 -0
- package/v3/dist/init/enhancements/detector.js +87 -0
- package/v3/dist/init/enhancements/detector.js.map +1 -0
- package/v3/dist/init/enhancements/index.d.ts +13 -0
- package/v3/dist/init/enhancements/index.d.ts.map +1 -0
- package/v3/dist/init/enhancements/index.js +25 -0
- package/v3/dist/init/enhancements/index.js.map +1 -0
- package/v3/dist/init/enhancements/types.d.ts +93 -0
- package/v3/dist/init/enhancements/types.d.ts.map +1 -0
- package/v3/dist/init/enhancements/types.js +6 -0
- package/v3/dist/init/enhancements/types.js.map +1 -0
- package/v3/dist/init/index.d.ts +8 -0
- package/v3/dist/init/index.d.ts.map +1 -1
- package/v3/dist/init/index.js +4 -0
- package/v3/dist/init/index.js.map +1 -1
- package/v3/dist/init/migration/config-migrator.d.ts +31 -0
- package/v3/dist/init/migration/config-migrator.d.ts.map +1 -0
- package/v3/dist/init/migration/config-migrator.js +133 -0
- package/v3/dist/init/migration/config-migrator.js.map +1 -0
- package/v3/dist/init/migration/data-migrator.d.ts +72 -0
- package/v3/dist/init/migration/data-migrator.d.ts.map +1 -0
- package/v3/dist/init/migration/data-migrator.js +233 -0
- package/v3/dist/init/migration/data-migrator.js.map +1 -0
- package/v3/dist/init/migration/detector.d.ts +44 -0
- package/v3/dist/init/migration/detector.d.ts.map +1 -0
- package/v3/dist/init/migration/detector.js +106 -0
- package/v3/dist/init/migration/detector.js.map +1 -0
- package/v3/dist/init/migration/index.d.ts +8 -0
- package/v3/dist/init/migration/index.d.ts.map +1 -0
- package/v3/dist/init/migration/index.js +8 -0
- package/v3/dist/init/migration/index.js.map +1 -0
- package/v3/dist/init/orchestrator.d.ts +68 -0
- package/v3/dist/init/orchestrator.d.ts.map +1 -0
- package/v3/dist/init/orchestrator.js +239 -0
- package/v3/dist/init/orchestrator.js.map +1 -0
- package/v3/dist/init/phases/01-detection.d.ts +30 -0
- package/v3/dist/init/phases/01-detection.d.ts.map +1 -0
- package/v3/dist/init/phases/01-detection.js +143 -0
- package/v3/dist/init/phases/01-detection.js.map +1 -0
- package/v3/dist/init/phases/02-analysis.d.ts +18 -0
- package/v3/dist/init/phases/02-analysis.d.ts.map +1 -0
- package/v3/dist/init/phases/02-analysis.js +28 -0
- package/v3/dist/init/phases/02-analysis.js.map +1 -0
- package/v3/dist/init/phases/03-configuration.d.ts +26 -0
- package/v3/dist/init/phases/03-configuration.d.ts.map +1 -0
- package/v3/dist/init/phases/03-configuration.js +98 -0
- package/v3/dist/init/phases/03-configuration.js.map +1 -0
- package/v3/dist/init/phases/04-database.d.ts +22 -0
- package/v3/dist/init/phases/04-database.d.ts.map +1 -0
- package/v3/dist/init/phases/04-database.js +88 -0
- package/v3/dist/init/phases/04-database.js.map +1 -0
- package/v3/dist/init/phases/05-learning.d.ts +28 -0
- package/v3/dist/init/phases/05-learning.d.ts.map +1 -0
- package/v3/dist/init/phases/05-learning.js +98 -0
- package/v3/dist/init/phases/05-learning.js.map +1 -0
- package/v3/dist/init/phases/06-code-intelligence.d.ts +33 -0
- package/v3/dist/init/phases/06-code-intelligence.d.ts.map +1 -0
- package/v3/dist/init/phases/06-code-intelligence.js +115 -0
- package/v3/dist/init/phases/06-code-intelligence.js.map +1 -0
- package/v3/dist/init/phases/07-hooks.d.ts +27 -0
- package/v3/dist/init/phases/07-hooks.d.ts.map +1 -0
- package/v3/dist/init/phases/07-hooks.js +209 -0
- package/v3/dist/init/phases/07-hooks.js.map +1 -0
- package/v3/dist/init/phases/08-mcp.d.ts +22 -0
- package/v3/dist/init/phases/08-mcp.d.ts.map +1 -0
- package/v3/dist/init/phases/08-mcp.js +62 -0
- package/v3/dist/init/phases/08-mcp.js.map +1 -0
- package/v3/dist/init/phases/09-assets.d.ts +23 -0
- package/v3/dist/init/phases/09-assets.d.ts.map +1 -0
- package/v3/dist/init/phases/09-assets.js +82 -0
- package/v3/dist/init/phases/09-assets.js.map +1 -0
- package/v3/dist/init/phases/10-workers.d.ts +23 -0
- package/v3/dist/init/phases/10-workers.d.ts.map +1 -0
- package/v3/dist/init/phases/10-workers.js +111 -0
- package/v3/dist/init/phases/10-workers.js.map +1 -0
- package/v3/dist/init/phases/11-claude-md.d.ts +26 -0
- package/v3/dist/init/phases/11-claude-md.d.ts.map +1 -0
- package/v3/dist/init/phases/11-claude-md.js +121 -0
- package/v3/dist/init/phases/11-claude-md.js.map +1 -0
- package/v3/dist/init/phases/12-verification.d.ts +38 -0
- package/v3/dist/init/phases/12-verification.d.ts.map +1 -0
- package/v3/dist/init/phases/12-verification.js +187 -0
- package/v3/dist/init/phases/12-verification.js.map +1 -0
- package/v3/dist/init/phases/index.d.ts +46 -0
- package/v3/dist/init/phases/index.d.ts.map +1 -0
- package/v3/dist/init/phases/index.js +64 -0
- package/v3/dist/init/phases/index.js.map +1 -0
- package/v3/dist/init/phases/phase-interface.d.ts +193 -0
- package/v3/dist/init/phases/phase-interface.d.ts.map +1 -0
- package/v3/dist/init/phases/phase-interface.js +119 -0
- package/v3/dist/init/phases/phase-interface.js.map +1 -0
- package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.d.ts +9 -3
- package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.js +103 -26
- package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.js.map +1 -1
- package/v3/dist/integrations/coherence/coherence-service.d.ts +323 -0
- package/v3/dist/integrations/coherence/coherence-service.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/coherence-service.js +799 -0
- package/v3/dist/integrations/coherence/coherence-service.js.map +1 -0
- package/v3/dist/integrations/coherence/engines/category-adapter.d.ts +170 -0
- package/v3/dist/integrations/coherence/engines/category-adapter.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/engines/category-adapter.js +403 -0
- package/v3/dist/integrations/coherence/engines/category-adapter.js.map +1 -0
- package/v3/dist/integrations/coherence/engines/causal-adapter.d.ts +159 -0
- package/v3/dist/integrations/coherence/engines/causal-adapter.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/engines/causal-adapter.js +348 -0
- package/v3/dist/integrations/coherence/engines/causal-adapter.js.map +1 -0
- package/v3/dist/integrations/coherence/engines/cohomology-adapter.d.ts +174 -0
- package/v3/dist/integrations/coherence/engines/cohomology-adapter.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/engines/cohomology-adapter.js +401 -0
- package/v3/dist/integrations/coherence/engines/cohomology-adapter.js.map +1 -0
- package/v3/dist/integrations/coherence/engines/homotopy-adapter.d.ts +201 -0
- package/v3/dist/integrations/coherence/engines/homotopy-adapter.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/engines/homotopy-adapter.js +324 -0
- package/v3/dist/integrations/coherence/engines/homotopy-adapter.js.map +1 -0
- package/v3/dist/integrations/coherence/engines/index.d.ts +20 -0
- package/v3/dist/integrations/coherence/engines/index.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/engines/index.js +26 -0
- package/v3/dist/integrations/coherence/engines/index.js.map +1 -0
- package/v3/dist/integrations/coherence/engines/spectral-adapter.d.ts +193 -0
- package/v3/dist/integrations/coherence/engines/spectral-adapter.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/engines/spectral-adapter.js +476 -0
- package/v3/dist/integrations/coherence/engines/spectral-adapter.js.map +1 -0
- package/v3/dist/integrations/coherence/engines/witness-adapter.d.ts +175 -0
- package/v3/dist/integrations/coherence/engines/witness-adapter.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/engines/witness-adapter.js +377 -0
- package/v3/dist/integrations/coherence/engines/witness-adapter.js.map +1 -0
- package/v3/dist/integrations/coherence/index.d.ts +84 -0
- package/v3/dist/integrations/coherence/index.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/index.js +114 -0
- package/v3/dist/integrations/coherence/index.js.map +1 -0
- package/v3/dist/integrations/coherence/threshold-tuner.d.ts +396 -0
- package/v3/dist/integrations/coherence/threshold-tuner.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/threshold-tuner.js +538 -0
- package/v3/dist/integrations/coherence/threshold-tuner.js.map +1 -0
- package/v3/dist/integrations/coherence/types.d.ts +879 -0
- package/v3/dist/integrations/coherence/types.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/types.js +134 -0
- package/v3/dist/integrations/coherence/types.js.map +1 -0
- package/v3/dist/integrations/coherence/wasm-loader.d.ts +351 -0
- package/v3/dist/integrations/coherence/wasm-loader.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/wasm-loader.js +842 -0
- package/v3/dist/integrations/coherence/wasm-loader.js.map +1 -0
- package/v3/dist/integrations/embeddings/base/EmbeddingGenerator.d.ts.map +1 -1
- package/v3/dist/integrations/embeddings/base/EmbeddingGenerator.js +1 -0
- package/v3/dist/integrations/embeddings/base/EmbeddingGenerator.js.map +1 -1
- package/v3/dist/integrations/embeddings/base/types.d.ts +1 -1
- package/v3/dist/integrations/embeddings/base/types.d.ts.map +1 -1
- package/v3/dist/integrations/embeddings/cache/EmbeddingCache.d.ts.map +1 -1
- package/v3/dist/integrations/embeddings/cache/EmbeddingCache.js +1 -0
- package/v3/dist/integrations/embeddings/cache/EmbeddingCache.js.map +1 -1
- package/v3/dist/integrations/embeddings/index/HNSWIndex.d.ts.map +1 -1
- package/v3/dist/integrations/embeddings/index/HNSWIndex.js +4 -1
- package/v3/dist/integrations/embeddings/index/HNSWIndex.js.map +1 -1
- package/v3/dist/kernel/interfaces.d.ts +8 -1
- package/v3/dist/kernel/interfaces.d.ts.map +1 -1
- package/v3/dist/learning/aqe-learning-engine.d.ts +272 -0
- package/v3/dist/learning/aqe-learning-engine.d.ts.map +1 -0
- package/v3/dist/learning/aqe-learning-engine.js +708 -0
- package/v3/dist/learning/aqe-learning-engine.js.map +1 -0
- package/v3/dist/learning/causal-verifier.d.ts +244 -0
- package/v3/dist/learning/causal-verifier.d.ts.map +1 -0
- package/v3/dist/learning/causal-verifier.js +300 -0
- package/v3/dist/learning/causal-verifier.js.map +1 -0
- package/v3/dist/learning/experience-capture.d.ts +266 -0
- package/v3/dist/learning/experience-capture.d.ts.map +1 -0
- package/v3/dist/learning/experience-capture.js +647 -0
- package/v3/dist/learning/experience-capture.js.map +1 -0
- package/v3/dist/learning/index.d.ts +8 -0
- package/v3/dist/learning/index.d.ts.map +1 -1
- package/v3/dist/learning/index.js +16 -0
- package/v3/dist/learning/index.js.map +1 -1
- package/v3/dist/learning/memory-auditor.d.ts +235 -0
- package/v3/dist/learning/memory-auditor.d.ts.map +1 -0
- package/v3/dist/learning/memory-auditor.js +478 -0
- package/v3/dist/learning/memory-auditor.js.map +1 -0
- package/v3/dist/learning/pattern-store.d.ts.map +1 -1
- package/v3/dist/learning/pattern-store.js +27 -6
- package/v3/dist/learning/pattern-store.js.map +1 -1
- package/v3/dist/learning/qe-patterns.d.ts +15 -1
- package/v3/dist/learning/qe-patterns.d.ts.map +1 -1
- package/v3/dist/learning/qe-patterns.js +26 -5
- package/v3/dist/learning/qe-patterns.js.map +1 -1
- package/v3/dist/learning/qe-reasoning-bank.d.ts +38 -2
- package/v3/dist/learning/qe-reasoning-bank.d.ts.map +1 -1
- package/v3/dist/learning/qe-reasoning-bank.js +86 -4
- package/v3/dist/learning/qe-reasoning-bank.js.map +1 -1
- package/v3/dist/learning/real-qe-reasoning-bank.d.ts +32 -2
- package/v3/dist/learning/real-qe-reasoning-bank.d.ts.map +1 -1
- package/v3/dist/learning/real-qe-reasoning-bank.js +61 -6
- package/v3/dist/learning/real-qe-reasoning-bank.js.map +1 -1
- package/v3/dist/learning/token-tracker.d.ts.map +1 -1
- package/v3/dist/learning/token-tracker.js +5 -2
- package/v3/dist/learning/token-tracker.js.map +1 -1
- package/v3/dist/mcp/bundle.js +6698 -303
- package/v3/dist/mcp/tools/coherence/audit.d.ts +107 -0
- package/v3/dist/mcp/tools/coherence/audit.d.ts.map +1 -0
- package/v3/dist/mcp/tools/coherence/audit.js +236 -0
- package/v3/dist/mcp/tools/coherence/audit.js.map +1 -0
- package/v3/dist/mcp/tools/coherence/check.d.ts +106 -0
- package/v3/dist/mcp/tools/coherence/check.d.ts.map +1 -0
- package/v3/dist/mcp/tools/coherence/check.js +205 -0
- package/v3/dist/mcp/tools/coherence/check.js.map +1 -0
- package/v3/dist/mcp/tools/coherence/collapse.d.ts +123 -0
- package/v3/dist/mcp/tools/coherence/collapse.d.ts.map +1 -0
- package/v3/dist/mcp/tools/coherence/collapse.js +279 -0
- package/v3/dist/mcp/tools/coherence/collapse.js.map +1 -0
- package/v3/dist/mcp/tools/coherence/consensus.d.ts +100 -0
- package/v3/dist/mcp/tools/coherence/consensus.d.ts.map +1 -0
- package/v3/dist/mcp/tools/coherence/consensus.js +201 -0
- package/v3/dist/mcp/tools/coherence/consensus.js.map +1 -0
- package/v3/dist/mcp/tools/coherence/index.d.ts +31 -0
- package/v3/dist/mcp/tools/coherence/index.d.ts.map +1 -0
- package/v3/dist/mcp/tools/coherence/index.js +42 -0
- package/v3/dist/mcp/tools/coherence/index.js.map +1 -0
- package/v3/dist/mcp/tools/contract-testing/validate.d.ts +1 -1
- package/v3/dist/mcp/tools/contract-testing/validate.d.ts.map +1 -1
- package/v3/dist/mcp/tools/contract-testing/validate.js +66 -0
- package/v3/dist/mcp/tools/contract-testing/validate.js.map +1 -1
- package/v3/dist/mcp/tools/index.d.ts +6 -1
- package/v3/dist/mcp/tools/index.d.ts.map +1 -1
- package/v3/dist/mcp/tools/index.js +9 -1
- package/v3/dist/mcp/tools/index.js.map +1 -1
- package/v3/dist/mcp/tools/mincut/index.d.ts +1 -1
- package/v3/dist/mcp/tools/mincut/index.d.ts.map +1 -1
- package/v3/dist/mcp/tools/mincut/index.js.map +1 -1
- package/v3/dist/mcp/tools/registry.d.ts +4 -0
- package/v3/dist/mcp/tools/registry.d.ts.map +1 -1
- package/v3/dist/mcp/tools/registry.js +5 -0
- package/v3/dist/mcp/tools/registry.js.map +1 -1
- package/v3/dist/mcp/types.d.ts +1 -1
- package/v3/dist/mcp/types.d.ts.map +1 -1
- package/v3/dist/shared/utils/safe-expression-evaluator.d.ts +61 -0
- package/v3/dist/shared/utils/safe-expression-evaluator.d.ts.map +1 -0
- package/v3/dist/shared/utils/safe-expression-evaluator.js +365 -0
- package/v3/dist/shared/utils/safe-expression-evaluator.js.map +1 -0
- package/v3/dist/strange-loop/belief-reconciler.d.ts +357 -0
- package/v3/dist/strange-loop/belief-reconciler.d.ts.map +1 -0
- package/v3/dist/strange-loop/belief-reconciler.js +696 -0
- package/v3/dist/strange-loop/belief-reconciler.js.map +1 -0
- package/v3/dist/strange-loop/index.d.ts +1 -0
- package/v3/dist/strange-loop/index.d.ts.map +1 -1
- package/v3/dist/strange-loop/index.js +2 -0
- package/v3/dist/strange-loop/index.js.map +1 -1
- package/v3/dist/strange-loop/strange-loop.d.ts +177 -5
- package/v3/dist/strange-loop/strange-loop.d.ts.map +1 -1
- package/v3/dist/strange-loop/strange-loop.js +452 -9
- package/v3/dist/strange-loop/strange-loop.js.map +1 -1
- package/v3/dist/strange-loop/types.d.ts +205 -1
- package/v3/dist/strange-loop/types.d.ts.map +1 -1
- package/v3/dist/strange-loop/types.js +5 -0
- package/v3/dist/strange-loop/types.js.map +1 -1
- package/v3/dist/test-scheduling/executors/vitest-executor.d.ts.map +1 -1
- package/v3/dist/test-scheduling/executors/vitest-executor.js +7 -2
- package/v3/dist/test-scheduling/executors/vitest-executor.js.map +1 -1
- package/v3/dist/workflows/browser/workflow-loader.d.ts +1 -0
- package/v3/dist/workflows/browser/workflow-loader.d.ts.map +1 -1
- package/v3/dist/workflows/browser/workflow-loader.js +11 -16
- package/v3/dist/workflows/browser/workflow-loader.js.map +1 -1
- package/v3/package.json +5 -1
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agentic QE v3 - Homotopy Engine Adapter
|
|
3
|
+
*
|
|
4
|
+
* Wraps the Prime Radiant HomotopyEngine for homotopy type theory operations.
|
|
5
|
+
* Used for formal verification and path equivalence checking.
|
|
6
|
+
*
|
|
7
|
+
* Homotopy Type Theory (HoTT) in QE:
|
|
8
|
+
* - Types are spaces
|
|
9
|
+
* - Terms are points
|
|
10
|
+
* - Equalities are paths
|
|
11
|
+
* - Higher equalities are paths between paths
|
|
12
|
+
*
|
|
13
|
+
* This enables formal verification of agent reasoning paths and
|
|
14
|
+
* proof that different execution strategies lead to equivalent results.
|
|
15
|
+
*
|
|
16
|
+
* @module integrations/coherence/engines/homotopy-adapter
|
|
17
|
+
*/
|
|
18
|
+
import type { IWasmLoader, CoherenceLogger } from '../types';
|
|
19
|
+
/**
|
|
20
|
+
* A proposition for formal verification
|
|
21
|
+
*/
|
|
22
|
+
export interface Proposition {
|
|
23
|
+
/** Unique proposition identifier */
|
|
24
|
+
id: string;
|
|
25
|
+
/** Formal statement/formula */
|
|
26
|
+
formula: string;
|
|
27
|
+
/** Natural language description */
|
|
28
|
+
description?: string;
|
|
29
|
+
/** Whether this has been proven */
|
|
30
|
+
proven: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Result of a path equivalence check
|
|
34
|
+
*/
|
|
35
|
+
export interface PathEquivalenceResult {
|
|
36
|
+
/** Whether the paths are equivalent */
|
|
37
|
+
equivalent: boolean;
|
|
38
|
+
/** The first path */
|
|
39
|
+
path1: string[];
|
|
40
|
+
/** The second path */
|
|
41
|
+
path2: string[];
|
|
42
|
+
/** Explanation of the result */
|
|
43
|
+
explanation: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Verification status for the proof system
|
|
47
|
+
*/
|
|
48
|
+
export interface VerificationStatus {
|
|
49
|
+
/** Total propositions registered */
|
|
50
|
+
totalPropositions: number;
|
|
51
|
+
/** Number of proven propositions */
|
|
52
|
+
provenCount: number;
|
|
53
|
+
/** List of unproven proposition IDs */
|
|
54
|
+
unprovenIds: string[];
|
|
55
|
+
/** Overall verification percentage */
|
|
56
|
+
verificationPercentage: number;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Interface for the homotopy adapter
|
|
60
|
+
*/
|
|
61
|
+
export interface IHomotopyAdapter {
|
|
62
|
+
/** Initialize the adapter */
|
|
63
|
+
initialize(): Promise<void>;
|
|
64
|
+
/** Check if initialized */
|
|
65
|
+
isInitialized(): boolean;
|
|
66
|
+
/** Add a proposition to verify */
|
|
67
|
+
addProposition(id: string, formula: string): void;
|
|
68
|
+
/** Attempt to prove a proposition */
|
|
69
|
+
addProof(propositionId: string, proof: string): boolean;
|
|
70
|
+
/** Check if two execution paths are equivalent */
|
|
71
|
+
verifyPathEquivalence(path1: string[], path2: string[]): PathEquivalenceResult;
|
|
72
|
+
/** Get all unproven propositions */
|
|
73
|
+
getUnprovenPropositions(): string[];
|
|
74
|
+
/** Get verification status */
|
|
75
|
+
getVerificationStatus(): VerificationStatus;
|
|
76
|
+
/** Clear all propositions and proofs */
|
|
77
|
+
clear(): void;
|
|
78
|
+
/** Dispose of resources */
|
|
79
|
+
dispose(): void;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Adapter for the Prime Radiant HomotopyEngine
|
|
83
|
+
*
|
|
84
|
+
* Provides homotopy type theory operations for formal verification
|
|
85
|
+
* of agent behavior and reasoning path equivalence.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```typescript
|
|
89
|
+
* const adapter = new HomotopyAdapter(wasmLoader, logger);
|
|
90
|
+
* await adapter.initialize();
|
|
91
|
+
*
|
|
92
|
+
* // Add propositions about test generation
|
|
93
|
+
* adapter.addProposition('gen_complete', 'forall f. exists t. covers(t, f)');
|
|
94
|
+
* adapter.addProposition('gen_sound', 'forall t. valid(t) implies passes(t)');
|
|
95
|
+
*
|
|
96
|
+
* // Provide proofs
|
|
97
|
+
* adapter.addProof('gen_complete', 'by induction on structure of f...');
|
|
98
|
+
*
|
|
99
|
+
* // Check path equivalence
|
|
100
|
+
* const result = adapter.verifyPathEquivalence(
|
|
101
|
+
* ['parse', 'analyze', 'generate'],
|
|
102
|
+
* ['parse', 'simplify', 'analyze', 'generate']
|
|
103
|
+
* );
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
export declare class HomotopyAdapter implements IHomotopyAdapter {
|
|
107
|
+
private readonly wasmLoader;
|
|
108
|
+
private readonly logger;
|
|
109
|
+
private engine;
|
|
110
|
+
private initialized;
|
|
111
|
+
private readonly propositions;
|
|
112
|
+
/**
|
|
113
|
+
* Create a new HomotopyAdapter
|
|
114
|
+
*
|
|
115
|
+
* @param wasmLoader - WASM module loader
|
|
116
|
+
* @param logger - Optional logger for diagnostics
|
|
117
|
+
*/
|
|
118
|
+
constructor(wasmLoader: IWasmLoader, logger?: CoherenceLogger);
|
|
119
|
+
/**
|
|
120
|
+
* Initialize the adapter by loading the WASM module
|
|
121
|
+
*/
|
|
122
|
+
initialize(): Promise<void>;
|
|
123
|
+
/**
|
|
124
|
+
* Check if the adapter is initialized
|
|
125
|
+
*/
|
|
126
|
+
isInitialized(): boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Ensure the adapter is initialized before use
|
|
129
|
+
*/
|
|
130
|
+
private ensureInitialized;
|
|
131
|
+
/**
|
|
132
|
+
* Add a proposition to verify
|
|
133
|
+
*
|
|
134
|
+
* @param id - Unique identifier for the proposition
|
|
135
|
+
* @param formula - Formal statement in the proof language
|
|
136
|
+
*/
|
|
137
|
+
addProposition(id: string, formula: string): void;
|
|
138
|
+
/**
|
|
139
|
+
* Attempt to prove a proposition
|
|
140
|
+
*
|
|
141
|
+
* @param propositionId - ID of the proposition to prove
|
|
142
|
+
* @param proof - The proof term/script
|
|
143
|
+
* @returns True if the proof is valid
|
|
144
|
+
*/
|
|
145
|
+
addProof(propositionId: string, proof: string): boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Verify that two execution paths are equivalent
|
|
148
|
+
*
|
|
149
|
+
* In HoTT, paths represent equalities. This checks if two different
|
|
150
|
+
* execution strategies lead to the same result (up to homotopy).
|
|
151
|
+
*
|
|
152
|
+
* @param path1 - First execution path (sequence of operations)
|
|
153
|
+
* @param path2 - Second execution path
|
|
154
|
+
* @returns Path equivalence result
|
|
155
|
+
*/
|
|
156
|
+
verifyPathEquivalence(path1: string[], path2: string[]): PathEquivalenceResult;
|
|
157
|
+
/**
|
|
158
|
+
* Generate an explanation for path equivalence result
|
|
159
|
+
*/
|
|
160
|
+
private generateEquivalenceExplanation;
|
|
161
|
+
/**
|
|
162
|
+
* Get all unproven propositions
|
|
163
|
+
*
|
|
164
|
+
* @returns Array of unproven proposition IDs
|
|
165
|
+
*/
|
|
166
|
+
getUnprovenPropositions(): string[];
|
|
167
|
+
/**
|
|
168
|
+
* Get overall verification status
|
|
169
|
+
*
|
|
170
|
+
* @returns Verification status summary
|
|
171
|
+
*/
|
|
172
|
+
getVerificationStatus(): VerificationStatus;
|
|
173
|
+
/**
|
|
174
|
+
* Get a proposition by ID
|
|
175
|
+
*
|
|
176
|
+
* @param id - Proposition ID
|
|
177
|
+
* @returns The proposition or undefined
|
|
178
|
+
*/
|
|
179
|
+
getProposition(id: string): Proposition | undefined;
|
|
180
|
+
/**
|
|
181
|
+
* Clear all propositions and proofs
|
|
182
|
+
*/
|
|
183
|
+
clear(): void;
|
|
184
|
+
/**
|
|
185
|
+
* Dispose of adapter resources
|
|
186
|
+
*/
|
|
187
|
+
dispose(): void;
|
|
188
|
+
/**
|
|
189
|
+
* Get the number of propositions
|
|
190
|
+
*/
|
|
191
|
+
getPropositionCount(): number;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Create and initialize a HomotopyAdapter
|
|
195
|
+
*
|
|
196
|
+
* @param wasmLoader - WASM module loader
|
|
197
|
+
* @param logger - Optional logger
|
|
198
|
+
* @returns Initialized adapter
|
|
199
|
+
*/
|
|
200
|
+
export declare function createHomotopyAdapter(wasmLoader: IWasmLoader, logger?: CoherenceLogger): Promise<HomotopyAdapter>;
|
|
201
|
+
//# sourceMappingURL=homotopy-adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"homotopy-adapter.d.ts","sourceRoot":"","sources":["../../../../src/integrations/coherence/engines/homotopy-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAGV,WAAW,EACX,eAAe,EAChB,MAAM,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AsB,qBAAqB,CACzC,UAAU,EAAE,WAAW,EACvB,MAAM,CAAC,EAAE,eAAe,GACvB,OAAO,CAAC,eAAe,CAAC,CAI1B"}
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agentic QE v3 - Homotopy Engine Adapter
|
|
3
|
+
*
|
|
4
|
+
* Wraps the Prime Radiant HomotopyEngine for homotopy type theory operations.
|
|
5
|
+
* Used for formal verification and path equivalence checking.
|
|
6
|
+
*
|
|
7
|
+
* Homotopy Type Theory (HoTT) in QE:
|
|
8
|
+
* - Types are spaces
|
|
9
|
+
* - Terms are points
|
|
10
|
+
* - Equalities are paths
|
|
11
|
+
* - Higher equalities are paths between paths
|
|
12
|
+
*
|
|
13
|
+
* This enables formal verification of agent reasoning paths and
|
|
14
|
+
* proof that different execution strategies lead to equivalent results.
|
|
15
|
+
*
|
|
16
|
+
* @module integrations/coherence/engines/homotopy-adapter
|
|
17
|
+
*/
|
|
18
|
+
import { WasmNotLoadedError, DEFAULT_COHERENCE_LOGGER } from '../types';
|
|
19
|
+
// ============================================================================
|
|
20
|
+
// WASM Engine Wrapper
|
|
21
|
+
// ============================================================================
|
|
22
|
+
/**
|
|
23
|
+
* Creates an IHomotopyEngine wrapper around the raw HoTT WASM engine
|
|
24
|
+
*/
|
|
25
|
+
function createHomotopyEngineWrapper(rawEngine) {
|
|
26
|
+
const propositions = new Map();
|
|
27
|
+
const proofs = new Map();
|
|
28
|
+
return {
|
|
29
|
+
add_proposition(id, formula) {
|
|
30
|
+
propositions.set(id, { formula, proven: false });
|
|
31
|
+
},
|
|
32
|
+
add_proof(propositionId, proof) {
|
|
33
|
+
const prop = propositions.get(propositionId);
|
|
34
|
+
if (!prop)
|
|
35
|
+
return false;
|
|
36
|
+
// Use HoTT engine to type-check the proof
|
|
37
|
+
const proofTerm = { id: propositionId, proof };
|
|
38
|
+
const expectedType = { formula: prop.formula };
|
|
39
|
+
const result = rawEngine.typeCheck(proofTerm, expectedType);
|
|
40
|
+
if (result?.valid) {
|
|
41
|
+
prop.proven = true;
|
|
42
|
+
proofs.set(propositionId, proof);
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
return false;
|
|
46
|
+
},
|
|
47
|
+
verify_path_equivalence(path1, path2) {
|
|
48
|
+
// Create path representations
|
|
49
|
+
const pathObj1 = { steps: path1 };
|
|
50
|
+
const pathObj2 = { steps: path2 };
|
|
51
|
+
// Check if paths are equivalent using HoTT type equivalence
|
|
52
|
+
return rawEngine.checkTypeEquivalence(pathObj1, pathObj2);
|
|
53
|
+
},
|
|
54
|
+
get_unproven_propositions() {
|
|
55
|
+
const unproven = [];
|
|
56
|
+
propositions.forEach((prop, id) => {
|
|
57
|
+
if (!prop.proven) {
|
|
58
|
+
unproven.push(id);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
return unproven;
|
|
62
|
+
},
|
|
63
|
+
clear() {
|
|
64
|
+
propositions.clear();
|
|
65
|
+
proofs.clear();
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
// ============================================================================
|
|
70
|
+
// Homotopy Adapter Implementation
|
|
71
|
+
// ============================================================================
|
|
72
|
+
/**
|
|
73
|
+
* Adapter for the Prime Radiant HomotopyEngine
|
|
74
|
+
*
|
|
75
|
+
* Provides homotopy type theory operations for formal verification
|
|
76
|
+
* of agent behavior and reasoning path equivalence.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```typescript
|
|
80
|
+
* const adapter = new HomotopyAdapter(wasmLoader, logger);
|
|
81
|
+
* await adapter.initialize();
|
|
82
|
+
*
|
|
83
|
+
* // Add propositions about test generation
|
|
84
|
+
* adapter.addProposition('gen_complete', 'forall f. exists t. covers(t, f)');
|
|
85
|
+
* adapter.addProposition('gen_sound', 'forall t. valid(t) implies passes(t)');
|
|
86
|
+
*
|
|
87
|
+
* // Provide proofs
|
|
88
|
+
* adapter.addProof('gen_complete', 'by induction on structure of f...');
|
|
89
|
+
*
|
|
90
|
+
* // Check path equivalence
|
|
91
|
+
* const result = adapter.verifyPathEquivalence(
|
|
92
|
+
* ['parse', 'analyze', 'generate'],
|
|
93
|
+
* ['parse', 'simplify', 'analyze', 'generate']
|
|
94
|
+
* );
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
export class HomotopyAdapter {
|
|
98
|
+
wasmLoader;
|
|
99
|
+
logger;
|
|
100
|
+
engine = null;
|
|
101
|
+
initialized = false;
|
|
102
|
+
propositions = new Map();
|
|
103
|
+
/**
|
|
104
|
+
* Create a new HomotopyAdapter
|
|
105
|
+
*
|
|
106
|
+
* @param wasmLoader - WASM module loader
|
|
107
|
+
* @param logger - Optional logger for diagnostics
|
|
108
|
+
*/
|
|
109
|
+
constructor(wasmLoader, logger = DEFAULT_COHERENCE_LOGGER) {
|
|
110
|
+
this.wasmLoader = wasmLoader;
|
|
111
|
+
this.logger = logger;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Initialize the adapter by loading the WASM module
|
|
115
|
+
*/
|
|
116
|
+
async initialize() {
|
|
117
|
+
if (this.initialized)
|
|
118
|
+
return;
|
|
119
|
+
this.logger.debug('Initializing HomotopyAdapter');
|
|
120
|
+
const isAvailable = await this.wasmLoader.isAvailable();
|
|
121
|
+
if (!isAvailable) {
|
|
122
|
+
throw new WasmNotLoadedError('WASM module is not available. Cannot initialize HomotopyAdapter.');
|
|
123
|
+
}
|
|
124
|
+
const module = await this.wasmLoader.load();
|
|
125
|
+
// Create wrapper around raw HoTT WASM engine
|
|
126
|
+
const rawEngine = new module.HoTTEngine();
|
|
127
|
+
this.engine = createHomotopyEngineWrapper(rawEngine);
|
|
128
|
+
this.initialized = true;
|
|
129
|
+
this.logger.info('HomotopyAdapter initialized successfully');
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Check if the adapter is initialized
|
|
133
|
+
*/
|
|
134
|
+
isInitialized() {
|
|
135
|
+
return this.initialized;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Ensure the adapter is initialized before use
|
|
139
|
+
*/
|
|
140
|
+
ensureInitialized() {
|
|
141
|
+
if (!this.initialized || !this.engine) {
|
|
142
|
+
throw new WasmNotLoadedError('HomotopyAdapter not initialized. Call initialize() first.');
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Add a proposition to verify
|
|
147
|
+
*
|
|
148
|
+
* @param id - Unique identifier for the proposition
|
|
149
|
+
* @param formula - Formal statement in the proof language
|
|
150
|
+
*/
|
|
151
|
+
addProposition(id, formula) {
|
|
152
|
+
this.ensureInitialized();
|
|
153
|
+
const proposition = {
|
|
154
|
+
id,
|
|
155
|
+
formula,
|
|
156
|
+
proven: false,
|
|
157
|
+
};
|
|
158
|
+
this.propositions.set(id, proposition);
|
|
159
|
+
this.engine.add_proposition(id, formula);
|
|
160
|
+
this.logger.debug('Added proposition', { id, formula });
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Attempt to prove a proposition
|
|
164
|
+
*
|
|
165
|
+
* @param propositionId - ID of the proposition to prove
|
|
166
|
+
* @param proof - The proof term/script
|
|
167
|
+
* @returns True if the proof is valid
|
|
168
|
+
*/
|
|
169
|
+
addProof(propositionId, proof) {
|
|
170
|
+
this.ensureInitialized();
|
|
171
|
+
const proposition = this.propositions.get(propositionId);
|
|
172
|
+
if (!proposition) {
|
|
173
|
+
this.logger.warn('Proposition not found', { propositionId });
|
|
174
|
+
return false;
|
|
175
|
+
}
|
|
176
|
+
const isValid = this.engine.add_proof(propositionId, proof);
|
|
177
|
+
if (isValid) {
|
|
178
|
+
proposition.proven = true;
|
|
179
|
+
this.logger.info('Proposition proven', { propositionId });
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
this.logger.warn('Proof rejected', { propositionId });
|
|
183
|
+
}
|
|
184
|
+
return isValid;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Verify that two execution paths are equivalent
|
|
188
|
+
*
|
|
189
|
+
* In HoTT, paths represent equalities. This checks if two different
|
|
190
|
+
* execution strategies lead to the same result (up to homotopy).
|
|
191
|
+
*
|
|
192
|
+
* @param path1 - First execution path (sequence of operations)
|
|
193
|
+
* @param path2 - Second execution path
|
|
194
|
+
* @returns Path equivalence result
|
|
195
|
+
*/
|
|
196
|
+
verifyPathEquivalence(path1, path2) {
|
|
197
|
+
this.ensureInitialized();
|
|
198
|
+
const equivalent = this.engine.verify_path_equivalence(path1, path2);
|
|
199
|
+
const explanation = this.generateEquivalenceExplanation(path1, path2, equivalent);
|
|
200
|
+
const result = {
|
|
201
|
+
equivalent,
|
|
202
|
+
path1,
|
|
203
|
+
path2,
|
|
204
|
+
explanation,
|
|
205
|
+
};
|
|
206
|
+
this.logger.debug('Verified path equivalence', {
|
|
207
|
+
path1Length: path1.length,
|
|
208
|
+
path2Length: path2.length,
|
|
209
|
+
equivalent,
|
|
210
|
+
});
|
|
211
|
+
return result;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Generate an explanation for path equivalence result
|
|
215
|
+
*/
|
|
216
|
+
generateEquivalenceExplanation(path1, path2, equivalent) {
|
|
217
|
+
if (equivalent) {
|
|
218
|
+
if (path1.length === path2.length) {
|
|
219
|
+
return (`The execution paths are homotopically equivalent. ` +
|
|
220
|
+
`Both paths traverse the same abstract structure and will produce equivalent results.`);
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
const longer = path1.length > path2.length ? 'first' : 'second';
|
|
224
|
+
return (`The execution paths are equivalent despite different lengths. ` +
|
|
225
|
+
`The ${longer} path contains redundant steps that can be contracted ` +
|
|
226
|
+
`without changing the result (homotopy contraction).`);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
// Find divergence point
|
|
231
|
+
let divergeIndex = 0;
|
|
232
|
+
const minLen = Math.min(path1.length, path2.length);
|
|
233
|
+
while (divergeIndex < minLen && path1[divergeIndex] === path2[divergeIndex]) {
|
|
234
|
+
divergeIndex++;
|
|
235
|
+
}
|
|
236
|
+
if (divergeIndex === 0) {
|
|
237
|
+
return (`The execution paths diverge immediately. ` +
|
|
238
|
+
`Path 1 starts with '${path1[0]}' while Path 2 starts with '${path2[0]}'. ` +
|
|
239
|
+
`These lead to fundamentally different computation spaces.`);
|
|
240
|
+
}
|
|
241
|
+
return (`The execution paths diverge at step ${divergeIndex + 1}. ` +
|
|
242
|
+
`After '${path1[divergeIndex - 1]}', Path 1 proceeds to '${path1[divergeIndex]}' ` +
|
|
243
|
+
`while Path 2 proceeds to '${path2[divergeIndex]}'. ` +
|
|
244
|
+
`No homotopy exists between these paths.`);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Get all unproven propositions
|
|
249
|
+
*
|
|
250
|
+
* @returns Array of unproven proposition IDs
|
|
251
|
+
*/
|
|
252
|
+
getUnprovenPropositions() {
|
|
253
|
+
this.ensureInitialized();
|
|
254
|
+
return this.engine.get_unproven_propositions();
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Get overall verification status
|
|
258
|
+
*
|
|
259
|
+
* @returns Verification status summary
|
|
260
|
+
*/
|
|
261
|
+
getVerificationStatus() {
|
|
262
|
+
const totalPropositions = this.propositions.size;
|
|
263
|
+
const provenCount = Array.from(this.propositions.values()).filter(p => p.proven).length;
|
|
264
|
+
const unprovenIds = this.getUnprovenPropositions();
|
|
265
|
+
return {
|
|
266
|
+
totalPropositions,
|
|
267
|
+
provenCount,
|
|
268
|
+
unprovenIds,
|
|
269
|
+
verificationPercentage: totalPropositions > 0 ? (provenCount / totalPropositions) * 100 : 100,
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Get a proposition by ID
|
|
274
|
+
*
|
|
275
|
+
* @param id - Proposition ID
|
|
276
|
+
* @returns The proposition or undefined
|
|
277
|
+
*/
|
|
278
|
+
getProposition(id) {
|
|
279
|
+
return this.propositions.get(id);
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Clear all propositions and proofs
|
|
283
|
+
*/
|
|
284
|
+
clear() {
|
|
285
|
+
this.ensureInitialized();
|
|
286
|
+
this.propositions.clear();
|
|
287
|
+
this.engine.clear();
|
|
288
|
+
this.logger.debug('Cleared homotopy engine');
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Dispose of adapter resources
|
|
292
|
+
*/
|
|
293
|
+
dispose() {
|
|
294
|
+
if (this.engine) {
|
|
295
|
+
this.engine.clear();
|
|
296
|
+
this.engine = null;
|
|
297
|
+
}
|
|
298
|
+
this.propositions.clear();
|
|
299
|
+
this.initialized = false;
|
|
300
|
+
this.logger.info('HomotopyAdapter disposed');
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Get the number of propositions
|
|
304
|
+
*/
|
|
305
|
+
getPropositionCount() {
|
|
306
|
+
return this.propositions.size;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
// ============================================================================
|
|
310
|
+
// Factory Function
|
|
311
|
+
// ============================================================================
|
|
312
|
+
/**
|
|
313
|
+
* Create and initialize a HomotopyAdapter
|
|
314
|
+
*
|
|
315
|
+
* @param wasmLoader - WASM module loader
|
|
316
|
+
* @param logger - Optional logger
|
|
317
|
+
* @returns Initialized adapter
|
|
318
|
+
*/
|
|
319
|
+
export async function createHomotopyAdapter(wasmLoader, logger) {
|
|
320
|
+
const adapter = new HomotopyAdapter(wasmLoader, logger);
|
|
321
|
+
await adapter.initialize();
|
|
322
|
+
return adapter;
|
|
323
|
+
}
|
|
324
|
+
//# sourceMappingURL=homotopy-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"homotopy-adapter.js","sourceRoot":"","sources":["../../../../src/integrations/coherence/engines/homotopy-adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAQH,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,UAAU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AAM,OAAO,GAAG,IAAI,eAAe,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IACxD,MAAM,OAAO,CAAC,UAAU,EAAE,CAAC;IAC3B,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agentic QE v3 - Coherence Engine Adapters
|
|
3
|
+
*
|
|
4
|
+
* Exports all Prime Radiant engine adapters:
|
|
5
|
+
* - CohomologyAdapter: Sheaf cohomology for contradiction detection
|
|
6
|
+
* - SpectralAdapter: Spectral analysis for collapse prediction
|
|
7
|
+
* - CausalAdapter: Causal inference for spurious correlation detection
|
|
8
|
+
* - CategoryAdapter: Category theory for type verification
|
|
9
|
+
* - HomotopyAdapter: Homotopy type theory for formal verification
|
|
10
|
+
* - WitnessAdapter: Blake3 witness chain for audit trails
|
|
11
|
+
*
|
|
12
|
+
* @module integrations/coherence/engines
|
|
13
|
+
*/
|
|
14
|
+
export { CohomologyAdapter, createCohomologyAdapter, type ICohomologyAdapter, } from './cohomology-adapter';
|
|
15
|
+
export { SpectralAdapter, createSpectralAdapter, type ISpectralAdapter, } from './spectral-adapter';
|
|
16
|
+
export { CausalAdapter, createCausalAdapter, type ICausalAdapter, } from './causal-adapter';
|
|
17
|
+
export { CategoryAdapter, createCategoryAdapter, type ICategoryAdapter, } from './category-adapter';
|
|
18
|
+
export { HomotopyAdapter, createHomotopyAdapter, type IHomotopyAdapter, type Proposition, type PathEquivalenceResult, type VerificationStatus, } from './homotopy-adapter';
|
|
19
|
+
export { WitnessAdapter, createWitnessAdapter, type IWitnessAdapter, } from './witness-adapter';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/integrations/coherence/engines/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,kBAAkB,GACxB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,KAAK,gBAAgB,GACtB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,KAAK,cAAc,GACpB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,KAAK,gBAAgB,GACtB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,GACxB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,KAAK,eAAe,GACrB,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agentic QE v3 - Coherence Engine Adapters
|
|
3
|
+
*
|
|
4
|
+
* Exports all Prime Radiant engine adapters:
|
|
5
|
+
* - CohomologyAdapter: Sheaf cohomology for contradiction detection
|
|
6
|
+
* - SpectralAdapter: Spectral analysis for collapse prediction
|
|
7
|
+
* - CausalAdapter: Causal inference for spurious correlation detection
|
|
8
|
+
* - CategoryAdapter: Category theory for type verification
|
|
9
|
+
* - HomotopyAdapter: Homotopy type theory for formal verification
|
|
10
|
+
* - WitnessAdapter: Blake3 witness chain for audit trails
|
|
11
|
+
*
|
|
12
|
+
* @module integrations/coherence/engines
|
|
13
|
+
*/
|
|
14
|
+
// Cohomology Engine (Contradiction Detection)
|
|
15
|
+
export { CohomologyAdapter, createCohomologyAdapter, } from './cohomology-adapter';
|
|
16
|
+
// Spectral Engine (Collapse Prediction)
|
|
17
|
+
export { SpectralAdapter, createSpectralAdapter, } from './spectral-adapter';
|
|
18
|
+
// Causal Engine (Spurious Correlation Detection)
|
|
19
|
+
export { CausalAdapter, createCausalAdapter, } from './causal-adapter';
|
|
20
|
+
// Category Engine (Type Verification)
|
|
21
|
+
export { CategoryAdapter, createCategoryAdapter, } from './category-adapter';
|
|
22
|
+
// Homotopy Engine (Formal Verification)
|
|
23
|
+
export { HomotopyAdapter, createHomotopyAdapter, } from './homotopy-adapter';
|
|
24
|
+
// Witness Engine (Audit Trails)
|
|
25
|
+
export { WitnessAdapter, createWitnessAdapter, } from './witness-adapter';
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/integrations/coherence/engines/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,8CAA8C;AAC9C,OAAO,EACL,iBAAiB,EACjB,uBAAuB,GAExB,MAAM,sBAAsB,CAAC;AAE9B,wCAAwC;AACxC,OAAO,EACL,eAAe,EACf,qBAAqB,GAEtB,MAAM,oBAAoB,CAAC;AAE5B,iDAAiD;AACjD,OAAO,EACL,aAAa,EACb,mBAAmB,GAEpB,MAAM,kBAAkB,CAAC;AAE1B,sCAAsC;AACtC,OAAO,EACL,eAAe,EACf,qBAAqB,GAEtB,MAAM,oBAAoB,CAAC;AAE5B,wCAAwC;AACxC,OAAO,EACL,eAAe,EACf,qBAAqB,GAKtB,MAAM,oBAAoB,CAAC;AAE5B,gCAAgC;AAChC,OAAO,EACL,cAAc,EACd,oBAAoB,GAErB,MAAM,mBAAmB,CAAC"}
|