build: guard root pom and published BOM version alignment with a consumer-level check (issue #295) #357
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 357 lines diff across 4 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.352
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #357"
general
weight: 0.35
yuluo-yx
Describe what this PR does / why we need it
Issue #295 reported that the BouncyCastle and Tomcat upgrades in the root pom did not reach the separately published
argi-bom, so BOM consumers resolved older versions (bcprov 1.85 vs 1.86, tomcat-embed 11.0.26 vs 11.0.27). On currentmainthe versions themselves are already aligned — this PR delivers the part of the acceptance criteria that keeps them aligned without relying on hand-maintained duplicated properties, and validates the result the way the issue asks for: as a consumer sees it.What is delivered
tools/scripts/check-bom-consistency.py(standard library only, no new Maven module, per the issue's constraint):Source-level alignment check (default mode)
Compares the properties of the root
pom.xmlandargi-bom/pom.xmldirectly —revisionand the five shared security families (jackson-2-bom, jackson-bom, bouncycastle, jsoup, tomcat). Any drift is reported line by line and fails with exit code 1. Because it reads the source poms, it runs on every CI build without requiring a release package or a flattened POM, which the existingverify-release-artifacts.py(release build only,io.github.agentic-ai-javagroup only) does not cover.Consumer-level effective-version check (--verify-consumer)
Generates a minimal out-of-repo consumer whose dependencyManagement imports only
argi-bom, declares the full managed BouncyCastle family (bcprov/bcpkix/bcutil) and the managed Tomcat embed family (core/el/jasper/websocket) without versions, and resolves them throughmaven-dependency-plugin:list. The effective versions are asserted to equal what the BOM manages — effective versions as a consumer sees them, not reactor property strings. The BOM keeps plain dependencyManagement entries, so a consumer's explicit override keeps working.Wiring
build-and-test.yml: thecheck-stylejob gainsmake bom-consistency-check, so every PR catches "root upgraded, BOM not upgraded"; thebuildjob gainsmake bom-consumer-verifyafter the release-artifact verification (installs argi-bom, then runs the consumer check).tools/make/java.mk: the two targets above.Red/green evidence
Green: on this branch the script reports all six shared properties aligned and, with
--verify-consumer, all seven managed artifacts resolving to the BOM versions through the out-of-repo consumer. Red: reverting the BOM'sbouncycastle.versionto 1.85 makes the check fail withDRIFT bouncycastle.version: root pom has 1.86, argi-bom has 1.85(exit 1); restoring it goes back to green.Scope note
This covers the core repository, where the BOM lives; consumers of the extensions repository inherit the fix through the same BOM. Cross-repository candidate version selection remains issue #229's scope, and no package names or coordinates change.
Fixes #295