Commit 8035b86
fix(doctor): emit tool-policy profile audit at debug level
When tools.profile is set to a named profile (e.g. "coding"), the tool-policy
pipeline removes tools that don't belong to that profile. The resulting audit
lines ("tool policy removed N tool(s) via tools.profile (coding): ...") are
expected behavior, not actionable doctor findings.
These lines were emitted at info level, causing normal doctor output to look
noisy when a profile filter is active. Now they are emitted at debug level so
they appear in verbose/debug logs but not in regular doctor output.
The fix is isolated to auditToolPolicyFilter in tool-policy-audit.ts. Only
steps whose label starts with "tools.profile" are affected; other audit paths
(agents.allow, tools.deny, etc.) continue to log at info level.1 parent c237de5 commit 8035b86
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
| |||
0 commit comments