Require maintainers' approval for metadata.json changes #3036
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 138 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.295
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3036"
general
weight: 0.35
Wyverald
Issue description
reviewPR()built the set of modules whose maintainers must approve a PR only from files inside a module's version directory. A change tomodules/<name>/metadata.jsonwas not counted when the PR did not also touch a version directory of<name>, so such a PR could be approved and merged without<name>'s maintainers.How this PR solves it
Every module whose
metadata.jsonis changed is added to that set before the maintainers are looked up and the approvals are checked. A PR that changes onlymetadata.jsonfiles still goes to a BCR maintainer, as before.Testing
Local test run:
node actions/bcr-pr-reviewer/index.test.jsversionslist is changed, and a sensitive field is changed with a BCR maintainer's approval. Both cases fail without theindex.jschange and pass with it.