// engine/paradigm-drift-detector.ts — Batch paradigm drift detection (SPEC-035b)
// Thin wrapper around paradigm-advisor for checking drift across multiple specs.
import { detectParadigmDrift } from './paradigm-advisor.js';
/** Default drift threshold — signals must exceed this to be reported. */
const DEFAULT_DRIFT_THRESHOLD = 0.6;
/**
 * Detects paradigm drift across a collection of specs.
 *
 * @param specs - Array of spec entries with id and content to analyse.
 * @param dominantParadigm - The established paradigm to check against.
 * @param threshold - Optional drift threshold (defaults to 0.6).
 * @returns Array of per-spec drift results.
 */
export function detectDriftAcrossSpecs(specs, dominantParadigm, threshold = DEFAULT_DRIFT_THRESHOLD) {
    return specs.map((spec) => ({
        specId: spec.id,
        drift: detectParadigmDrift(spec.content, dominantParadigm, threshold),
    }));
}
//# sourceMappingURL=paradigm-drift-detector.js.map