feat(tools): rebuild the cross-repo compatibility gate with explicit candidate binding (issue #229) #393
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.45) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 414 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.361
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #393"
general
weight: 0.35
Aias00
Describe what this PR does / why we need it
Issue #229 reports that the legacy cross-repo compatibility gate installed the candidate Core into an isolated Maven repository but built the Extensions repository without overriding
argi.version, so Extensions kept resolving its own default Core (2.1.0-RC1) while the candidate was 2.1.0-RC2-SNAPSHOT — the gate could verify the wrong artifacts or abort on their resolution. The legacyverify-extensions-compatibility.shwas removed in b51312054 ("remove legacy gates") and never replaced, while this issue stayed open with its acceptance list intact, so this PR rebuilds the gate with the version binding done right.What the rebuilt gate does
The candidate Core's effective version is extracted with
mvn help:evaluate -Dexpression=project.version -DforceStdout— published and SNAPSHOT versions alike, placeholders and blank outputs are rejected outright, and nothing is hardcoded. That version is then bound explicitly to every Extensions build via-Dargi.version. Before any test runs, adependency:listresolution must produce argi artifacts carrying exactly the candidate version: zero matches fail the gate with a "silently fell back" explanation and exit, and the matched coordinates are printed line by line as run-log evidence that the candidate artifacts were actually used. The isolated temporary Maven repository, the caller-owned repository validation and the cleanup trap are restored from the legacy structure.The offline acceptance scenarios run through a
--self-testmode that drives the pure helpers (version extraction from mixed output, placeholder rejection, coordinate verification with evidence printing, and silent-fallback rejection) with fixture files and no Maven at all, exposed asmake extensions-compat-self-test. The gate provides no module-exclusion option: incompatible modules must fail it and be fixed per module, as the issue's split list (argi-extensions #44–#49) already does.Why rebuild instead of patch
The legacy script's build step never contained
-Dargi.versionin any historical revision, and its CI job had already been unwired earlier; the removal commit classifies it as a legacy gate. Rebuilding it against the current five-point acceptance list keeps the surviving structure (argument validation, repository isolation, cleanup) while fixing the actual defect the issue documents, without reintroducing any CI wiring for a repository the build does not check out — the gate is a maintainer-facing, two-repository local entry point whose logic is regression-covered offline by the self-test.Testing
verify-extensions-compatibility.sh --self-testpasses all four scenarios (candidate version extracted from mixed output, placeholder and blank outputs rejected, a resolvable candidate verified with printed evidence, and a silent fallback rejected),bash -nis clean, andmake extensions-compat-self-testexposes the same check. The real end-to-end behavior is anchored by the issue author's manual verification quoted in the issue: with the explicit-Dargi.version=2.1.0-RC2-SNAPSHOTbinding, 67 of 73 Extensions modules compiled and 6 failed — the gate fails loudly on incompatible modules instead of silently verifying the wrong version. No Java module is touched.Fixes #229