fix(config): apply walk/broadcast to nested configs once per call #642
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.56) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.56 · 135 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
Diff Size
diff_size
0.294
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.056
Real PR Conversation Timeline
1 comments
"Review active on #642"
general
weight: 0.35
CodersAcademy006
What changed
_try_set_allout of thefor key, val in kwargs.items()loop, so nested configs are visited once perwalk()/broadcast()callTestPartial.test_walk_multiple_keysandtest_walk_multiple_keys_two_levels_downWhy
The recursion into child
Config/Partialobjects sat inside the per-key loop, so each child was processed once for every key passed. Every recursive call applies all keys again, so withwalk()the transforms ran several times on nested configs:A single key was fine, which is why the existing
test_walkpassed.broadcast()gave the right values (setting a constant twice is harmless) but did the extra work.Checks
pytest test/test_config.py: 54 passed; on main the new tests fail withassert 40 == 20and, two levels down,assert 'x!!!!' == 'x!'ruff format --check nemo_run/config.py test/test_config.py