Fix native CPU metric reflection and document ATP/UCP metrics workaround #1413
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 · 290 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 #1413"
general
weight: 0.35
lissam1
Native CPU metric reads can throw
MissingReflectionRegistrationErrorforOperatingSystemMXBean.getProcessCpuTime()with the Micrometer 6.1.x artifacts used here. Add the missing reflection entry and a CPU-metric smoke test that runs without OCI credentials.The ATP wallet + UCP metrics initialization cycle is fixed at its source in micronaut-micrometer#1298, which defers JDBC pool binding until startup. Registry lookups from executor metrics during HTTP-client construction, OCI SDK requests, or HTTP responses can otherwise force the datasource that is still initializing. Depending on lookup order and thread, this causes
Recursive update,StackOverflowError, or a deadlock. The UCP metadata added in micronaut-sql#1833 closes that cycle; SQL 6.3.4 had no UCP pool metadata.Keep the SDK filter unchanged: the shared fix handles both paths without dropping startup SDK metrics. The guide documents disabling
micronaut.metrics.binders.jdbc.enableduntil a Micrometer release includes #1298. This keeps HTTP and SDK metrics enabled; disabling web metrics alone leaves the SDK lookup path active. Vault fixtures explicitly disable OCI export so they also work with Micrometer's startup registry initialization.The native entry is a temporary bridge. The same registration was merged into Micrometer 6.0.x in micronaut-micrometer#1239, but is absent from 6.1.0/6.1.1. The upstream upgrade is tracked by micronaut-core#13110. Remove this module's
reflect-config.jsononce its Micrometer dependency supplies the registration after merge-up to 6.1.x/6.2.x; retain the native smoke test.Validation: affected module checks and the CPU smoke test pass locally, both with the released Micrometer dependency and with #1298's fixed source substituted through an isolated composite build. The same reflection entry and smoke test passed in GraalVM 25 locally and in Oracle Cloud CI, including the live native
MicrometerTest. The shared initialization fix has its real HTTP-client regression in #1298, where all 249 core tests pass.