Repository navigation
Fix false and over-broad checks in the expert-reviewer agent - #14533
Conversation
🔍 Skill Validator Results✅ All checks passed
Summary
Full validator output```text Found 1 agent(s) Validated 1 agent(s) ✅ All checks passed (1 agent(s)) ``` |
There was a problem hiding this comment.
Pull request overview
This PR updates the .github/agents/expert-reviewer.agent.md guidance to eliminate rules that were demonstrably incorrect for this repo (or too over-broad), and to reduce duplicate inline comments produced by overlapping dimensions.
Changes:
- Tightened two checklists to avoid false positives: “breaking change” now requires a specific scenario, and “LINQ” findings are limited to hot paths.
- Corrected logging guidance to match the actual
MessageImportanceenum (noDiagnosticmember) and clarified the distinction between importance vs logger verbosity. - Removed duplicated dependency/version-pinning guidance from Build Infrastructure and added a “deduplicate before posting” step to preserve the 30-comment budget.
There was a problem hiding this comment.
Expert Review — .github/agents/expert-reviewer.agent.md
24-Dimension Scan
| # | Dimension | Verdict |
|---|---|---|
| 1 | Backwards Compatibility | ✅ LGTM |
| 10 | Design | ✅ LGTM |
| 12 | Code Simplification | ✅ LGTM |
| 14 | Naming Precision | ✅ LGTM |
| 18 | Documentation Accuracy | ✅ LGTM |
| 20 | Scope & PR Discipline | ✅ LGTM |
| 22 | Correctness | ✅ LGTM |
Details:
- Backwards Compat: Narrowing LINQ flags to hot paths reduces false positives without missing real issues.
- Documentation Accuracy: Verified
MessageImportanceenum insrc/Framework/BuildMessageEventArgs.cs— exactly 3 members (High, Normal, Low). NoDiagnosticmember. Claim is correct. - Correctness: Darc rule relocated to Dependency Management (not deleted); dedup guidance references correct dimension overlaps; typo fix (percieved→perceived) correct.
- Design: Dedup step, hot-path scoping, and build/test trust-boundary clarification are well-reasoned.
Dimensions 2–9, 11, 13, 15–17, 19, 21, 23–24: N/A for documentation. All clean.
Result: 0 actionable findings across 24 dimensions.
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpg
To allow these domains, add them to the
network.allowedlist in your workflow frontmatter:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
Generated by Expert Code Review (on open) for #14533 · sonnet46 · 77 AIC · ⌖ 7.56 AIC · ⊞ 4.9K
Rules that don't match this repo, so the reviewer flags correct code: - Dimension 6 listed a `Diagnostic` MessageImportance. The enum only has High, Normal, Low (src/Framework/BuildMessageEventArgs.cs). - Dimension 3's check was the bare word "LINQ". 181 non-test files use System.Linq, so it fires on nearly every PR. Scoped to hot paths. - Dimension 1's first check was unbounded (and misspelled). It is BLOCKING, which makes REQUEST_CHANGES the default verdict. - Wave 2 said to build the PR branch locally. review-on-open.agent.md checks out only the base repo and never runs PR code, so this was impossible where the reviewer actually runs. - Dimensions 19 and 23 had the same eng/Versions.props check; removed the copy in 19. Also deduplicate findings before posting: dimensions overlap, so one defect could produce several comments against a 30-comment budget. Co-authored-by: Copilot <[email protected]> Copilot-Session: d205cff8-23b3-4dd7-9b51-416173f342b0
0fb103a to
20396b5
Compare
Rules that don't match this repo, so the reviewer flags correct code. Each fix is a one-liner.
Low= detailed,Diagnostic= debugLow= detailedHigh,Normal,Low—src/Framework/BuildMessageEventArgs.cs:22,27,32.logging.instructions.md:25(auto-applied tosrc/Build/Logging/**) already states it correctly, so the reviewer was contradicting an always-loaded file.- [ ] LINQ- [ ] LINQ on a hot pathSystem.Linq; the bare check fires on nearly every PR.can be percieved by customers as breaking...(name the specific scenario)REQUEST_CHANGES(line 685) as the default verdict.review-on-open.agent.md:38-40checks out only the trusted base repo atbase.shaand never executes PR code. The instruction was impossible where the reviewer actually runs.eng/Versions.props-without-Darc check in bothPlus one addition to Wave 3: deduplicate findings before posting. Dimensions overlap and each runs as an independent sub-agent, so one defect can produce several comments against a 30-comment budget (
review-shared.md:23).10 insertions / 10 deletions, one file. No dimension removed, no severity lowered. The
PublicAPI.Unshipped.txtrule in dimension 8 is untouched.No
.lock.ymlregeneration needed —expert-reviewer.agent.mdis read from the checked-out repo at run time.