/**
 * @sanity/ailf-core — Domain services
 *
 * Pure computation functions with zero I/O. These operate on typed
 * inputs and return typed outputs.
 *
 * Extracted from packages/eval/src/lib/ during the Ports & Adapters
 * migration (Phase 4e).
 */
export { classifyRubric, detectFeatureArea, extractDimensions, extractUrlMetadata, mergeScores, parseRubricScore, } from "./scoring.js";
export { formatComparisonMarkdown, formatComparisonTable, } from "./comparison-formatters.js";
export { aggregateAreas, aggregateDimensions, computeEnsembleScore, computeTaskScore, normalizeScore, } from "./scoring-engine.js";
export { extractModelName, extractProvider, mergeConfig, modelMatchesMode, resolveModelVariants, } from "./config-helpers.js";
export { buildSlimReportSummary } from "./slim-report-summary.js";
export { reportToMarkdown, } from "./report-to-markdown.js";
// ---------------------------------------------------------------------------
// Report-validity detector (D0059) — pure, versioned trustworthiness engine
// ---------------------------------------------------------------------------
export { assessReportValidity, REPORT_VALIDITY_RULESET_VERSION, } from "./report-validity-detector.js";
// ---------------------------------------------------------------------------
// Actionability ladder Phase 1 + Phase 5 — diagnosis runner + card registry
// ---------------------------------------------------------------------------
export { createDiagnosisRunner, diagnosisVersion, } from "./diagnosis-runner.js";
export { cardRegistry } from "./diagnosis/registry.js";
// ---------------------------------------------------------------------------
// Phase 5 — LLM client factory (D-01 hoist)
// ---------------------------------------------------------------------------
export { createLLMClient, } from "./llm-client-factory.js";
// ---------------------------------------------------------------------------
// Phase 5 — card validators (D-05 refine helpers)
// ---------------------------------------------------------------------------
export { buildFailureModeRefinement, isFailureModeInDimensionTaxonomy, } from "./diagnosis/card-validators.js";
// ---------------------------------------------------------------------------
// Phase 5 Plan 05 — card generators barrel + prompt builders
// ---------------------------------------------------------------------------
export { CARD_REGISTRY_VERSION, DIAGNOSIS_CARD_GENERATORS, generateAreaSummary, generateFailureModeSummary, generateNoIssues, generateTopRecommendations, generateWeakestArea, generateLowConfidenceAttribution, generateDocAttributionSpotlight, generateRegressionVsBaseline, } from "./diagnosis/cards/index.js";
export { buildTopRecommendationsPrompt, buildWeakestAreaPrompt, buildLowConfidenceAttributionPrompt, buildDocAttributionSpotlightPrompt, buildRegressionVsBaselinePrompt, buildDocSlugAllowList, } from "./diagnosis/prompt-builders.js";
// ---------------------------------------------------------------------------
// Run-provenance ownership policy evaluator (M1.1) — pure, shared by both
// enforcement gates (T1 gateway, T2 pre-publish).
// ---------------------------------------------------------------------------
export { evaluateProvenance, mergeProvenancePolicy, OWNER_TEAM_SLUG_PATTERN, SERVER_FLOOR, suggestKnownTeam, } from "./provenance-policy.js";
// ---------------------------------------------------------------------------
// External task registration — shared team resolution + error builder
// (one source of truth for the gateway pre-flight and the pipeline mirror gate)
// ---------------------------------------------------------------------------
export { buildRegistrationError, resolveActiveTeam, } from "./resolve-active-team.js";
