Enforce API contract checks #780
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 220 lines diff across 2 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.323
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #780"
general
weight: 0.35
pboyd
Summary
Switches both CRD contract jobs in
.github/workflows/api-contract.ymlfromreporttoenforcemode:v0.3.17): breaking CRD changes (removed CRDs/API versions, served or storage-version changes, removed fields, newly required fields, type/enum/default changes) now fail the check instead of only being annotated.The workflow header comment is updated to document the new mode and to point at moving
baseline-refsforward as the path for agreed intentional breaks.docs/api-contract-checks.mdis updated to match (enforce wording, and the local-run section now explains the--report-onlyflag as a local-only convenience).Context
Part of the API contract testing initiative (RHOAIENG-100662), companion to opendatahub-io/model-registry#1959. The report-mode rollout in this repository is complete — no findings on recent PRs — and the provider and consumers have agreed on the policy, which is the documented switch condition in the workflow header.
🤖 Generated with Claude Code
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Documentation
Clarified that API compatibility findings fail pull-request checks, and that local report-only checks do not match CI enforcement.
Documented how to handle intentional compatibility breaks by updating the agreed baseline.
Chores
* CI now enforces API compatibility checks instead of reporting findings without failing checks.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->