fix(subagent): treat an explicit empty tools list as no tools #4016
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 117 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.285
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #4016"
general
weight: 0.35
tonydzi
What does this PR do?
If a subagent template says
tools: [], it was still getting every tool, because an empty list fell back to the*wildcard. The docs say you omittoolsto inherit everything, so now an empty list really means no tools, and leaving the field out still inherits all of them.Type of change
Checklist
Tests: added
test_empty_tools_list_disables_tools_while_omission_inheritsintests/test_subagent.py(fails before, passes after).tests/test_subagent.pypasses (60), andruff check --select Fis clean on the changed files.🤖 Generated with Claude Code