/** * omk 所有 LLM prompt 的单一编目 —— 发现入口 + 测量学冻结入口。 * * 解决「prompt 散在多个目录、难管理」与「只有 2 个 prompt 被冻结」两个问题: * - 每条登记 prompt 的位置(module)+ 用途,一处可查全。 * - measurementInvariant 为 true 的(直接决定分数的评委 prompt)带 getHash, * 由 test/shared/prompt-registry-freeze.test.ts 统一冻结,文本漂移即 CI 红。 * * 注意:hash 形状按各自历史口径,不强行统一 —— * - rubric 评委:12 位(getJudgePromptHash,持久化进 report.meta.judgePromptHash 的同口径); * - RAG / semantic:12 位(getRagJudgePromptHash / getSemanticPromptHash,仅供冻结 drift 检测); * - observe 复盘:64 位(readPromptDocument 读 .md 全文 sha256)。 * 用限定名 `promptId`(非裸 `kind`,见 terminology-spec §5.4)。 */ export interface PromptRegistryEntry { /** 稳定标识(冻结表的 key)。 */ promptId: string; /** 人类可读用途。 */ purpose: string; /** 定义位置(发现用,相对仓库根的源文件路径)。 */ module: string; /** 是否直接决定分数 → 须冻结防漂移。 */ measurementInvariant: boolean; /** 仅 measurementInvariant 条目提供:当前 prompt 的 hash。 */ getHash?: () => string; } export declare const PROMPT_REGISTRY: PromptRegistryEntry[];