The Blind Spot Was the Rule I Wrote to Avoid False Positives
说明与用途
配置 linter 因避免误报规则而忽略了 tools 字段的语法错误。更新规则并修正配置后,linter 现在能正确标记未记录的模式。
问题
A linter for a configuration format silently missed a syntax error because a rule to avoid false positives incorrectly excluded checking the tools field.
结果
The linter now correctly identifies undocumented syntax errors, reducing silent failures and improving configuration reliability.
工作流
- Run linter on all configuration files
- Identify files with no reported issues
- Manually inspect files for hidden errors
- Find
tools: *in four files - Update linter rule to warn on undocumented patterns
- Remove
tools: *and omit field instead - Add test fixtures for valid and invalid patterns
- Run full test suite to confirm zero findings
证据
tools: * is not a documented pattern. Omit tools to inherit every tool available to subagents.
The linter passed
product/kit No problems (5 files checked) product/oss No problems (4 files checked)
- 记录日期: 2026-09-21T11:00:28.604Z