/** * preflight 阶段的结构性 / 隔离性警告。 * * 两组互不相关的 warning,共用「执行前 stderr 提示,不是 verdict gate」的语义: * - power: 基于 sample 数 / repeat 的硬底线(n<5 不可靠, n<20 仅能测大效应, * repeat<2 无法测稳定性)。**不是 MDE / power analysis 预测** —— run 之前 * 还没有 σ,预测「CI 半宽 ~ ±0.4」是手挥;真正的 power 判定在 post-hoc * verdict(UNDERPOWERED state + saturation curve) * - isolation: 用户显式 `--no-strict-baseline` 且存在没有显式隔离声明的 * baseline-kind variant,并且当前 executor 可发现的全局 / 项目 skill 根里有内容 * —— baseline 可能被外部 skill 污染,verdict / Δ 不可信。默认 strict 时不出 warn * * `buildXxxWarnings` 是纯函数,export 给单测断言文案语义;`emitXxxWarnings` 是 * 写 stderr 的薄包装,只给 orchestrator 用。 */ import type { Artifact } from '../../types/index.js'; import type { Lang } from '../../types/shared.js'; export declare function buildPowerWarnings(sampleCount: number, repeat: number, lang?: Lang): string[]; export declare function emitPowerWarnings(sampleCount: number, repeat: number, lang: Lang): void; export declare function buildIsolationWarnings(artifacts: Artifact[], strictBaseline: boolean | undefined, options: { executorName: string; lang?: Lang; homeDir?: string; cwd?: string; }): string[]; export declare function emitIsolationWarnings(artifacts: Artifact[], strictBaseline: boolean | undefined, executorName: string, lang: Lang): void;