/** * Atlas-category doctor checks. * * Investigates atlas.json existence, parsing, schema version, * symbol/claim presence, and v1.3 provenance fields. Requires * `ctx.config` to be non-null (atlas.path lives in config); the * runner gates this category in limited mode. */ import type { CheckContext, DoctorCheck } from "../types.js"; export declare function atlasChecks(ctx: CheckContext): DoctorCheck[]; /** * Compute per-symbol attached-claims counts from the atlas claim * array. Each claim's `symbol_ids` is an array of symbol-ID strings; * a claim contributes +1 to each of its referenced symbols. Returns * (totalClaims, qualifyingSymbols, maxCount, maxSymbol) where * `qualifyingSymbols` is the count of symbols meeting * BM25_RECOMMENDATION_THRESHOLD. * * Exported for direct unit testing — keeps the recommendation * logic and the counting logic separately verifiable. */ export declare function computeBM25DensitySignal(claims: readonly unknown[]): { totalClaims: number; perSymbolCount: ReadonlyMap; qualifyingSymbols: number; maxCount: number; maxSymbol: string | null; }; /** * Build the doctor check that advises on `mcp.symbol_context_bm25` * enablement. Four outcome shapes per ADDENDUM AJ: * * - flag-on + dense → PASS (already enabled at density that benefits) * - flag-on + sparse → PASS with note (enabled but density below threshold) * - flag-off + dense → WARN with RECOMMEND ENABLE message * - flag-off + sparse → PASS with SKIP rationale * * Exported for direct unit testing without going through the full * atlasChecks orchestrator. */ export declare function bm25RecommendationCheck(claims: readonly unknown[], ctx: CheckContext): DoctorCheck; //# sourceMappingURL=atlas.d.ts.map