版本口径:v2.0
状态:已签收
实现范围:Java/MCP minimum
Experience Recipe 是可治理的经验方案资产。它把已经签收的分析方案、必要参数、证据和治理条件沉淀下来,让 router / planner 在合适上下文中复用,而不是每次都重新发明复杂计划。
Experience Recipe 适合:
Recipe 不能绕过 TM/QM、权限、validator 或 signed contract。
| 能力 | 说明 |
|---|---|
| exact registry lookup | registryKey 精确解析 |
| discoverable gate | 只从 validated 且 activeForDiscovery 的记录选择 |
| governance filter | namespace、tenant、permission、owner 过滤 |
| lifecycle gate | draft / candidate / rejected / deprecated 不进入运行时路由 |
| publish gate | 发布门要求状态和证据满足条件 |
| artifact refs | evidence artifact refs 可记录和回显 |
| hash / URI validation | artifact hash 格式和 URI 形态校验 |
| signature verifier SPI | strict 模式下缺 verifier 或 invalid signature fail closed |
| governance context injection | MCP 请求上下文可进入治理链路 |
dataset.search_experience_recipes 的 registryKey exact lookup 仍然执行治理过滤:
精确 key 不会绕过权限,也不会让 draft、candidate、rejected 或 deprecated recipe 被返回。
v2.0 记录的是 artifact reference 和基础校验,不等于完整对象存储可信链路。
可记录:
不承诺:
以下情况应返回空结果或阻断发布:
Experience Recipe v2.0 不承诺:
Recipe 可以给 planner 提供结构化经验,但 planner 仍必须输出受治理 plan。命中 recipe 后仍要经过模型、权限、字段、规模和 signed contract 校验。