Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.47 KB

File metadata and controls

40 lines (27 loc) · 1.47 KB
domain contrib
title phase 0 output gate
verification metadata-normalized
{"title" Phase 0 Output Gate — Agent 的硬性知识检索规则", "domain": "methodology", "tags": ["output-gate", "knowledge-reuse", "methodology", "core"], "domain_expert": "unknown"}
created 2026-07-06
source unknown

背景

Agent 在 context 中看到了知识但不一定会用。即使指令写了"不可跳过",Agent 的惯性行为是直接执行任务、跳过检索。

根因

"搜 lessons/" "搜 reference/" 等指令是建议,Agent 可以跳过而不产生任何可见后果。

修复

把知识检索从"建议"改为硬性 Output gate

  1. 列出可用知识并输出文件名
  2. 用搜索工具检索相关条目,读取匹配内容
  3. 输出检索结论(可复用内容、核心风险)
  4. 未输出 = 不准进入下一步

验证

在专利交底书修改任务中部署曳光弹。首次使用即发现 Phase 0 检索到 reference 文件,发现了 3 个之前修改遗漏的问题,其中 2 个是 P0 硬伤。

原理

Agent 可以忽略上下文的建议,但不能凭空编出完整的检索报告。用户能看到输出结果——如果没读文件,摘要就是空的。

限制

  • 依赖 Agent 加载规则后遵守 Output gate(但规则本身设计了可见的输出约束)
  • 没有自动化验证(未来方向:post-task hook 检测是否引用了知识内容)