Pass ListenerSet conflict and ReferenceGrant conformance tests (ListenerSet part 2a) #623
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 277 lines diff across 3 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.337
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #623"
general
weight: 0.35
justinsb
This PR implements conflict detection (hostname and protocol), precedence merging, ReferenceGrant support, and aggregate status calculation for
ListenerSetresources (ListenerSet part 2a).Summary of Changes
1. Precedence Ordering & Precedence Merging:
- Merge Gateway listeners and attached ListenerSets in
CompileModelin strict precedence order: Gateway listeners first, followed by allowed ListenerSets ordered byCreationTimestamp(oldest first), breaking ties bynamespace/name.2. Conflict Detection Pass:
- Add a conflict detection pass over effective listeners in
CompileModel. Lower-precedence listeners on the same port that have conflicting protocols (ProtocolConflict) or identical hostnames on compatible protocols (HostnameConflict) are markedAccepted=False,Programmed=False, andConflicted=True.3. Data Plane Isolation:
- Exclude conflicted listeners from data-plane proxy generation (
BuildProxyConfig,ExtractCertificates) and route binding candidate selection (bindRouteParentRef).4. ListenerSet-Level Status Aggregation & Gateway
attachedListenerSets:- If all listeners in a ListenerSet are invalid or conflicted, mark the ListenerSet top-level conditions as
Accepted=False/Programmed=Falsewith reasonListenersNotValid, while populating per-listener statuses.- If at least one listener is valid, mark
Accepted=True/Programmed=True.- Gateway
status.attachedListenerSetscounts only accepted ListenerSets.5. ReferenceGrant Support:
- Cross-namespace Secret references on ListenerSets without a matching ReferenceGrant get
ResolvedRefs=False(RefNotPermitted) and propagate to ListenerSetListenersNotValid.6. Controller Watches:
- Add watches in
ListenerSetReconcilerfor siblingListenerSets,ReferenceGrants, andSecrets.7. Tests & Journal:
- Add table-driven unit tests in
pkg/state/compiled_test.go.- Enable
ListenerSetHostnameConflict,ListenerSetProtocolConflict, andListenerSetReferenceGrantintests/e2e/conformance_test.go.- Update conformance skill journal at
.agents/skills/implement-conformance-test/journal/listenerset.md.Fixes #618