mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
2253d05618
Remove the nested v3/ subdirectory by moving all active source code, tests, configs, and assets directly to the project root. Archive v2/ (dead code, 847MB) to v2-archive.tar.gz. Key changes: - Move v3/src/ → src/, v3/tests/ → tests/, v3/packages/ → packages/ - Move v3/tsconfig.json, v3/vitest.config.ts to root - Merge v3/package.json into root package.json (ESM, scripts, deps, exports) - Merge v3/scripts/ into scripts/, v3/implementation/ into docs/implementation/ - Update all CI workflows to remove "cd v3 &&" and v3/ path prefixes - Fix all init installer path resolution (3-level-up → 2-level-up) - Fix hooks to use "node ./dist/cli/bundle.js" instead of bare "aqe" - Update settings.json ADR/DDD directories to docs/implementation/ - Fix helper scripts (statusline, adr-compliance, ddd-tracker, guidance-hooks) - Update 58 agent definitions: aqe/v3/ → aqe/ memory namespaces - Update 15 guidance shards: v3/src/ → src/ path references - Fix sync interfaces: remove v3/ and v2/ path references - Fix test path calculations (process.cwd() + '..' no longer needed) - Fix flaky perf test threshold (500ms → 1000ms for CI environments) - Fix complexity-analyzer test to match ADR-051 keyword-based eligibility Build passes, 17,901 tests pass, CLI and MCP bundles verified. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
96 lines
2.5 KiB
TypeScript
96 lines
2.5 KiB
TypeScript
/**
|
|
* Coherence Test Suite Index
|
|
* ADR-052: A1.4 - Unit Tests for CoherenceService and All 6 Engines
|
|
*
|
|
* This module exports test utilities, mocks, and types for the coherence
|
|
* testing infrastructure based on the prime-radiant-advanced-wasm module.
|
|
*
|
|
* Test Files:
|
|
* - wasm-loader.test.ts: WASM module loader with retry logic
|
|
* - coherence-service.test.ts: Main coherence orchestration service
|
|
* - engines/cohomology-adapter.test.ts: Sheaf Laplacian energy calculations
|
|
* - engines/spectral-adapter.test.ts: Eigenvalue analysis and risk assessment
|
|
* - engines/causal-adapter.test.ts: Causal relationship verification
|
|
* - engines/category-adapter.test.ts: Category theory morphisms
|
|
* - engines/homotopy-adapter.test.ts: Path equivalence and topology
|
|
* - engines/witness-adapter.test.ts: Audit trails and witness records
|
|
*
|
|
* Total Tests: 209
|
|
* Coverage Target: 80%+
|
|
*/
|
|
|
|
// Re-export from wasm-loader
|
|
export {
|
|
WasmLoader,
|
|
createMockWasmModule,
|
|
type WasmModule,
|
|
type WasmLoaderConfig,
|
|
} from './wasm-loader.test';
|
|
|
|
// Re-export from coherence-service
|
|
export {
|
|
CoherenceService,
|
|
createMockEngines,
|
|
type ComputeLane,
|
|
type BeliefState,
|
|
type SwarmState,
|
|
type CoherenceCheckResult,
|
|
type ContradictionResult,
|
|
type CollapseRiskResult,
|
|
type CausalRelationship,
|
|
type CausalVerificationResult,
|
|
type WitnessRecord,
|
|
type WitnessReplayResult,
|
|
type AgentVote,
|
|
type ConsensusResult,
|
|
} from './coherence-service.test';
|
|
|
|
// Re-export from engine adapters
|
|
export {
|
|
CohomologyAdapter,
|
|
type NodeData,
|
|
type EdgeData,
|
|
type CohomologyResult,
|
|
type CohomologyEngineConfig,
|
|
} from './engines/cohomology-adapter.test';
|
|
|
|
export {
|
|
SpectralAdapter,
|
|
type SpectralNodeData,
|
|
type SpectralEdgeData,
|
|
type SpectralResult,
|
|
type SpectralEngineConfig,
|
|
} from './engines/spectral-adapter.test';
|
|
|
|
export {
|
|
CausalAdapter,
|
|
type CausalNodeData,
|
|
type CausalEdgeData,
|
|
type CausalResult,
|
|
type CausalDiscoveryResult,
|
|
} from './engines/causal-adapter.test';
|
|
|
|
export {
|
|
CategoryAdapter,
|
|
type CategoryNodeData,
|
|
type CategoryEdgeData,
|
|
type MorphismResult,
|
|
type CategoryResult,
|
|
} from './engines/category-adapter.test';
|
|
|
|
export {
|
|
HomotopyAdapter,
|
|
type HomotopyNodeData,
|
|
type HomotopyEdgeData,
|
|
type HomotopyResult,
|
|
type PathEquivalenceResult,
|
|
} from './engines/homotopy-adapter.test';
|
|
|
|
export {
|
|
WitnessAdapter,
|
|
type WitnessNodeData,
|
|
type WitnessEdgeData,
|
|
type WitnessVerificationResult,
|
|
// Note: WitnessRecord and WitnessReplayResult are also in coherence-service
|
|
} from './engines/witness-adapter.test';
|