fix(openapi): give a service report run's vehicle the shared VehicleID schema #563
All Vouch review confidence checks passed
Residual risk 0.14 = 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 · 120 lines diff across 1 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
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.287
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #563"
general
weight: 0.35
aaronbrethorst
ServiceReportRun.vehicle_idwas the lastvehicle_idin openapi.yaml still typed as a plain string. Every other one, including the bunched alert'sahead.vehicle_idfrom #559, points at the sharedVehicleIDschema, so a client generated from the spec gets the same type and the same length and pattern rules everywhere.The value is a trip's vehicle, and every path that creates a vehicle checks it against
vehicleIDPatternfirst, so the schema describes what the endpoint already returns. Nothing in the Go code changes.go test ./...passes, including the OpenAPI checks that compare each schema with its Go type.<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Updates
Vehicle identifiers in service report runs now follow the same validation rules used elsewhere in the API.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->