/**
 * @sanity/ailf-core — Domain types
 *
 * Core types for the AI Literacy Framework evaluation pipeline.
 * These define the contracts between pipeline steps, domain services,
 * and port adapters.
 *
 * Extracted from packages/eval/src/pipeline/types.ts during the
 * Ports & Adapters migration (Phase 0c). The original file is now a
 * re-export barrel that preserves backward compatibility.
 */
export { CURRENT_SCHEMA_VERSION, isSchemaVersioned, migrateDocument, } from "./storage-schema.js";
export { InMemoryPluginRegistry } from "./plugin-registry.js";
// Note: DocSourceConfig is NOT re-exported here — it conflicts with the
// existing DocSourceConfig in ports/doc-fetcher.ts. The eval-mode-config
// version is used internally by LiteracyModeConfig. If consumers need
// the mode-specific version, they import from "./eval-mode-config.js".
export { evalModeType } from "./eval-mode-config.js";
export { DEFAULT_PREFLIGHT_CODE_CORRECTNESS_WEIGHT, } from "./preflight-scoring.js";
export { CONVENTIONAL_DERIVATIONS, isConfidence } from "./confidence.js";
export { err, fixtureId, generateJudgmentId, generateRunId, judgmentId, ok, providerId, resultId, runId, suiteId, taskId, traceId, } from "./branded-ids.js";
/** Set of canonical legacy modes — exported for report-formatter use. */
export const LEGACY_FAILURE_MODES = [
    "api-error",
    "incorrect-docs",
    "missing-docs",
    "model-limitation",
    "outdated-docs",
    "poor-structure",
    "unclassified",
];
/** Type guard for legacy modes. */
export function isLegacyFailureMode(mode) {
    return LEGACY_FAILURE_MODES.includes(mode);
}
// ---------------------------------------------------------------------------
// Comparison (Approach 2: structured comparison output)
// ---------------------------------------------------------------------------
/**
 * Default noise threshold — re-exported from @sanity/ailf-shared.
 * Named DEFAULT_NOISE_THRESHOLD here for backward compatibility with eval code
 * that imports it from @sanity/ailf-core.
 */
export { NOISE_THRESHOLD as DEFAULT_NOISE_THRESHOLD } from "../../ailf-shared/index.js";
/**
 * Enrichment surfaces that gap-analysis writes onto a report. When a full
 * eval scores tests but these are absent, the report renders as "no tests"
 * despite carrying a score — the degraded condition `ReportDegradation`
 * records.
 */
export const DEGRADED_ENRICHMENT_FIELDS = [
    "documentManifest",
    "failureModes",
    "lowScoringJudgments",
    "recommendations",
    "testResults",
];
