D3深度语义(可选)级别: 扩展权重: 1修复方式: 手动修改
D3: 改写缺少判断边界的模糊规则(可选 AI 深度检查)
为什么设立这条规则(一手实证依据)
像「遵循安全最佳实践」这类没有客观判定边界的句子,Agent READMEs 研究显示其模型理解 F1 只有 0.42,远低于具体可执行规则的 0.94。
修复建议给每条规则加上可观察的通过/失败边界(如具体工具、路径、阈值或命令)。
Agent READMEs:LLM 软件工程代理文档实证研究 (2026)
反例(会触发 D3 告警)
# Anti-pattern triggering D3 (Vague rules without decision boundary) # Rule or repository configuration violates this check without verification.
推荐写法(通过 D3 检查)
# Compliant harness passing D3 (Vague rules without decision boundary) # Concrete, verifiable repository configuration backed by anthropic-265, agent-readmes.
本地 CLI 或浏览器一键验证
npm install -g agentlint-ai && agentlint check --check D3