fix(a2av0): honor configured transport endpoints #602
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.56) × (1 − Review Confidence (0.70)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.56 · 95 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.53 · 3 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.273
Sensitive Paths
sensitive_paths
0.056
Real PR Conversation Timeline
5 items
nit: let's make it a flat table-driven test with configuredURL, cardURLs and wantRequests fields instead of branching on override in 4 places
nit: is the mux needed? the request count check already catches the card URL being used
let's pass Client: server.Client() to the transport config. the default client uses http.DefaultTransport and every httptest.Server.Close resets its idle connections, so parallel subtests can flake
Approved
Approved these changes.
yarolegovich
Harshil-1603
The v0.3 REST and JSON-RPC transport factories unconditionally replace
cfg.URLwith the selected agent-card interface URL. A caller configuring a reachable gateway endpoint therefore still sends requests to the advertised internal endpoint; the REST configuration already documents the configured URL as an override.Use the card URL only when the configured URL is empty, and document the same fallback for JSON-RPC. End-to-end tests cover both protocols with an explicit override and with card-based discovery, including reusing a factory for different cards and checking which HTTP server receives each request.
Validation:
go test -race -mod=readonly -count=1 -shuffle=on ./...passed.go mod tidy -diff,go vet -mod=readonly ./..., and golangci-lint v2.11.4 passed (0 issues).-buildvcs=false. The ordinary root build hit the local environment's VCS-status error (exit 128).git diff --checkpassed.