← Back to Pull requests

feat(tools): rebuild the cross-repo compatibility gate with explicit candidate binding (issue #229) #393

Open
unknown opened this pull request with 414 lines diff across 5 files
View on GitHub
unknown unknown commented on Nov 28, 2026 03:08 UTC
Author

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 legacy verify-extensions-compatibility.sh was 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, a dependency:list resolution 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-test mode 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 as make 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.version in 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-test passes 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 -n is clean, and make extensions-compat-self-test exposes 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-SNAPSHOT binding, 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

Diff: 414 lines (+310 / -104) across 5 files Reviewer: Aias00 Review duration: 4025m
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
0.45
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
42%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 43.0% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 44.9% (MEDIUM) · Higher = larger blast radius
44.9%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 43.0% · Lower = rushed or shallow review
43.0%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 25.6% · Safe to merge
25.6%