:seedling: Read experimental checks from their definitions in the MCP catalog #5421
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 287 lines diff across 3 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.339
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5421"
general
weight: 0.35
justaugustus
What kind of change does this PR introduce?
Internal refactor. The MCP catalog maintains its own list of experimental checks, duplicating the experimental flags on the check definitions.
What is the current behavior?
WebhooksandSBOMare marked experimental on their definitions ininternal/checkdef, and the catalog copies them into a hand-maintained map. A test detects disagreement, but adding or promoting an experimental check still requires updating both places.What is the new behavior (if this is a feature change)?
The checks package exposes
IsExperimental(name), which reads the flag from the registered check definitions, the same sourceGetAll()filters on. The catalog's experimental metadata uses it, and its map is removed.checks/write.mdno longer tells authors to edit the catalog.Check selection and catalog output stay the same. In particular, an empty but present
SCORECARD_EXPERIMENTALstill enables experimental checks; the catalog's experimental flag remains independent of that environment variable.Which issue(s) this PR fixes
Fixes #5406
Special notes for your reviewer
Rebased onto
mainafter the check-definition refactor (4fac1b8d), which moved the experimental flag onto definitions and replacedchecks/all_checks_test.gowithchecks/registry_test.go. The second commit derivesIsExperimentalfrom the definitions instead of a separate map, and addsTestIsExperimentaltoregistry_test.go;TestGetAllExperimentalalready covers theSCORECARD_EXPERIMENTALcases.TestExperimentalChecksMatchstill checks the catalog againstGetAllWithExperimental()minusGetAll().After the rebase:
go test ./checks/... ./cmd/internal/mcp/...passes, and golangci-lint v2.15.0 reports 0 issues on./checks/and./cmd/internal/mcp/catalog/.The catalog now imports
checks. It calls only the classification accessor, not a scan or remote API. Full-repository integration tests have not been run locally.Does this PR introduce a user-facing change?
``
release-note
``NONE