/** * 版本回归曲线的数据点构造(#236 Studio 决策史)。纯函数:report 由调用方按 evidence.reportId 读好传进来 * (Map,值可为 null = 报告已清 / 读不到),把受管记录的逐版证据拼成按时间从旧到新的 composite + 95%CI 序列。 * * 测量味:每版的可比性签名(评委 prompt hash + debias + 样本集 hash)与「当前内容那版」一致才算 comparable; * 换过评委 / 改过样本集的版本标 false —— 渲染据此把跨不可比的段画虚、点画空心,不糊一条误导的「在变好」线 * (spec evidence-gated-management.md §3「可比性必须可见」)。 */ import type { ManagedArtifactRecord } from '../types/index.js'; /** buildVersionScores 只需要报告里的这几样 —— 用结构化最小入参而非整个 ReportDocument,叶子可测、与 report schema 解耦。 */ export interface ReportScoreView { meta?: { artifactHashes?: Record; }; summary?: Record; } export interface VersionScorePoint { contentHash: string; recordedAt: string; composite: number; ciLow: number; ciHigh: number; verdict?: string; /** 与基线(当前内容那版)测量条件一致 → 可比;换过评委 / 改过样本集 → false。 */ comparable: boolean; } export declare function buildVersionScores(record: ManagedArtifactRecord, reportsById: Map): VersionScorePoint[];