← Back to Pull requests

Add path validation lifecycle qlog event #23

Open
altanai opened this pull request with 58 lines diff across 1 files
View on GitHub
altanai altanai commented on Nov 19, 2026 18:49 UTC
Author

Add quic:path_validation_updated to report local path validation transitions, including optional trigger, failure reason, and PATH_ABANDON error code. Register the event type alongside the existing multipath path lifecycle events.

Diff: 58 lines (+58 / -0) across 1 files Reviewer: flub Review duration: 23361m
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.27) × (1 − Review Confidence (0.89)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.27 · 58 lines diff across 1 files
0.27
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.87 · 5 substantive comment(s)
0.87
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
89%
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.244
Real PR Conversation Timeline
20 items
altanai altanai commented on Nov 19, 2026 19:29 UTC
Author

gives qlog a way to record the endpoint’s validation state.

flub flub commented on code on Nov 19, 2026 20:21 UTC
Code Review
draft-huitema-quic-qlog-multipath.md:1
@@ -153,6 +153,23 @@ QUICPathCreated = {
 }
 ~~~
 
+## path_validation_updated
+
+`quic:path_validation_updated` records a change in the endpoint's validation state for the indicated Path ID. It complements `path_challenge` and `path_response` frame logging: those frames show wire activity, while this event records whether the local validation procedure started, succeeded, or failed. Log one event for each state transition. The result is local to the logging endpoint and does not assert that the peer has reached the same state.
+
+`trigger`, when present, identifies the observed cause of the transition. `failure_reason` is only present when `state` is `failed`. `error_code` MAY be included when failure is associated with a PATH_ABANDON frame; in that case it is the PATH_ABANDON error code defined by {{Section 4.2 of RFC10069}}.
+
+~~~ cddl
+QUICPathValidationUpdated = {
+    state: "started" / "succeeded" / "failed"

I'm not sure if "started" is needed here, but that's an opinion only held lightly.

flub flub approved these changes on Nov 19, 2026 20:22 UTC
Approved Reviewer

Approved these changes.

huitema huitema commented on Nov 20, 2026 02:00 UTC
Reviewer

I am not sure about that one. The validation really is by tuple, not by path. We already have a "migration state updated" event in the main QUIC schema:

5.21. migration_state_updated

Validation is not listed per se, but it is pretty much the same as "migration_complete".

Yanmei-Liu Yanmei-Liu commented on code on Nov 20, 2026 04:11 UTC
Code Review
draft-huitema-quic-qlog-multipath.md:1
@@ -153,6 +153,23 @@ QUICPathCreated = {
 }
 ~~~
 
+## path_validation_updated
+
+`quic:path_validation_updated` records a change in the endpoint's validation state for the indicated Path ID. It complements `path_challenge` and `path_response` frame logging: those frames show wire activity, while this event records whether the local validation procedure started, succeeded, or failed. Log one event for each state transition. The result is local to the logging endpoint and does not assert that the peer has reached the same state.

Could we log the tuple being validated alongside path_id? Migration can change the tuple under one Path ID, and a new Path ID can reuse a validated tuple. migration_complete implies the old path was discarded, but it can stay active when an additional path is validated. RFC 10069 §3.1, §3.1.2, qlog §5.21.

Yanmei-Liu Yanmei-Liu commented on code on Nov 20, 2026 04:11 UTC
Code Review
draft-huitema-quic-qlog-multipath.md:1
@@ -192,7 +209,7 @@ newer advertisement that repeats the current preference, produces no
 status change event ({{Section 4.3 of RFC10069}}).
 
 ~~~ cddl
-QUICPathStatusUpdated = {
+QUICPathStatusUpdated / QUICPathValidationUpdated = {

CDDL allows only one rule name to the left of =. QUICPathValidationUpdated already has its own definition above. RFC 8610, Appendix B.

QUICPathStatusUpdated = {

Yanmei-Liu Yanmei-Liu commented on Nov 20, 2026 04:11 UTC
Reviewer

Thank you for making the local endpoint’s validation outcome explicit. I’ve left three inline suggestions on identifying the tuple, keeping the CDDL parseable, and interpreting the outcome.

Yanmei-Liu Yanmei-Liu commented on code on Nov 20, 2026 04:11 UTC
Code Review
draft-huitema-quic-qlog-multipath.md:1
@@ -153,6 +153,23 @@ QUICPathCreated = {
 }
 ~~~
 
+## path_validation_updated
+
+`quic:path_validation_updated` records a change in the endpoint's validation state for the indicated Path ID. It complements `path_challenge` and `path_response` frame logging: those frames show wire activity, while this event records whether the local validation procedure started, succeeded, or failed. Log one event for each state transition. The result is local to the logging endpoint and does not assert that the peer has reached the same state.
+
+`trigger`, when present, identifies the observed cause of the transition. `failure_reason` is only present when `state` is `failed`. `error_code` MAY be included when failure is associated with a PATH_ABANDON frame; in that case it is the PATH_ABANDON error code defined by {{Section 4.2 of RFC10069}}.

Could succeeded require receiving a matching PATH_RESPONSE, and failed mean the endpoint gave up an outstanding validation attempt? A match can validate the address while the 1200-byte MTU check is still pending. PATH_ABANDON can close an unused Path ID, so its error code alone says why the path closed. RFC 9000 §8.2.3, §8.2.4, RFC 10069 §3.1, §3.4, §4.2.1.

huitema huitema commented on code on Nov 20, 2026 04:40 UTC
Code Review
draft-huitema-quic-qlog-multipath.md:1
@@ -153,6 +153,23 @@ QUICPathCreated = {
 }
 ~~~
 
+## path_validation_updated
+
+`quic:path_validation_updated` records a change in the endpoint's validation state for the indicated Path ID. It complements `path_challenge` and `path_response` frame logging: those frames show wire activity, while this event records whether the local validation procedure started, succeeded, or failed. Log one event for each state transition. The result is local to the logging endpoint and does not assert that the peer has reached the same state.
+
+`trigger`, when present, identifies the observed cause of the transition. `failure_reason` is only present when `state` is `failed`. `error_code` MAY be included when failure is associated with a PATH_ABANDON frame; in that case it is the PATH_ABANDON error code defined by {{Section 4.2 of RFC10069}}.
+
+~~~ cddl
+QUICPathValidationUpdated = {
+    state: "started" / "succeeded" / "failed"
+    ? trigger: "path_challenge_sent" / "path_response_received" /
+              "timeout" / "local_decision"
+    ? failure_reason: "timeout" / "path_abandoned" / "local_error" / "unknown"
+    ? error_code: uint64 .le 4611686018427387903

path abandoned is not a validation failure. It is recorded in its own event, so we should not duplicate it here.

huitema huitema commented on code on Nov 20, 2026 04:45 UTC
Code Review
draft-huitema-quic-qlog-multipath.md:1
@@ -153,6 +153,23 @@ QUICPathCreated = {
 }
 ~~~
 
+## path_validation_updated
+
+`quic:path_validation_updated` records a change in the endpoint's validation state for the indicated Path ID. It complements `path_challenge` and `path_response` frame logging: those frames show wire activity, while this event records whether the local validation procedure started, succeeded, or failed. Log one event for each state transition. The result is local to the logging endpoint and does not assert that the peer has reached the same state.

This should be tied to the section of 10069 defining validation. But I am dubious that we need a new event here, because we already have the quic event "migration_state_updated. We should not create duplicates of the quic level events. We may want to extend them with new information if needed. Don't we say that these events should carry a path ID in the event header?

huitema huitema commented on code on Nov 20, 2026 04:46 UTC
Code Review
draft-huitema-quic-qlog-multipath.md:1
@@ -153,6 +153,23 @@ QUICPathCreated = {
 }
 ~~~
 
+## path_validation_updated
+
+`quic:path_validation_updated` records a change in the endpoint's validation state for the indicated Path ID. It complements `path_challenge` and `path_response` frame logging: those frames show wire activity, while this event records whether the local validation procedure started, succeeded, or failed. Log one event for each state transition. The result is local to the logging endpoint and does not assert that the peer has reached the same state.
+
+`trigger`, when present, identifies the observed cause of the transition. `failure_reason` is only present when `state` is `failed`. `error_code` MAY be included when failure is associated with a PATH_ABANDON frame; in that case it is the PATH_ABANDON error code defined by {{Section 4.2 of RFC10069}}.
+
+~~~ cddl
+QUICPathValidationUpdated = {
+    state: "started" / "succeeded" / "failed"

We usually say "initiated". But we really should not attach this to the path. This is a tuple event.

huitema huitema requested changes on Nov 20, 2026 04:48 UTC
Changes Requested Reviewer

I don't think we should create a multipath event for the validation. Validation is per tuple, and we already have an event in the quic log definition. We should reuse that event, extend it if necessary, but not create our own.

flub flub requested changes on Nov 20, 2026 22:17 UTC
Changes Requested Reviewer

Only trying to change my review here, as said elsewhere I agree that that this is a 4-tuple event and not directly a multipath concern. Multipath only needs to map a 4-tuple to a path at all times.

altanai altanai commented on code on Nov 23, 2026 00:15 UTC
Code Review
draft-huitema-quic-qlog-multipath.md:1
@@ -153,6 +153,23 @@ QUICPathCreated = {
 }
 ~~~
 
+## path_validation_updated
+
+`quic:path_validation_updated` records a change in the endpoint's validation state for the indicated Path ID. It complements `path_challenge` and `path_response` frame logging: those frames show wire activity, while this event records whether the local validation procedure started, succeeded, or failed. Log one event for each state transition. The result is local to the logging endpoint and does not assert that the peer has reached the same state.

Yes can so. Reworking the examples.

altanai altanai commented on code on Nov 23, 2026 00:27 UTC
Code Review
draft-huitema-quic-qlog-multipath.md:1
@@ -153,6 +153,23 @@ QUICPathCreated = {
 }
 ~~~
 
+## path_validation_updated
+
+`quic:path_validation_updated` records a change in the endpoint's validation state for the indicated Path ID. It complements `path_challenge` and `path_response` frame logging: those frames show wire activity, while this event records whether the local validation procedure started, succeeded, or failed. Log one event for each state transition. The result is local to the logging endpoint and does not assert that the peer has reached the same state.

yes when it described a known path.
ok dropping the new event and reusing existing quic:migration_state_updated event.
If we still need an explicit validation outcome for the added path case, can we discuss extending the base QUIC qlog schema ?

altanai altanai commented on code on Nov 23, 2026 00:28 UTC
Code Review
draft-huitema-quic-qlog-multipath.md:1
@@ -153,6 +153,23 @@ QUICPathCreated = {
 }
 ~~~
 
+## path_validation_updated
+
+`quic:path_validation_updated` records a change in the endpoint's validation state for the indicated Path ID. It complements `path_challenge` and `path_response` frame logging: those frames show wire activity, while this event records whether the local validation procedure started, succeeded, or failed. Log one event for each state transition. The result is local to the logging endpoint and does not assert that the peer has reached the same state.
+
+`trigger`, when present, identifies the observed cause of the transition. `failure_reason` is only present when `state` is `failed`. `error_code` MAY be included when failure is associated with a PATH_ABANDON frame; in that case it is the PATH_ABANDON error code defined by {{Section 4.2 of RFC10069}}.
+
+~~~ cddl
+QUICPathValidationUpdated = {
+    state: "started" / "succeeded" / "failed"
+    ? trigger: "path_challenge_sent" / "path_response_received" /
+              "timeout" / "local_decision"
+    ? failure_reason: "timeout" / "path_abandoned" / "local_error" / "unknown"
+    ? error_code: uint64 .le 4611686018427387903

noted

altanai altanai commented on code on Nov 23, 2026 00:35 UTC
Code Review
draft-huitema-quic-qlog-multipath.md:1
@@ -153,6 +153,23 @@ QUICPathCreated = {
 }
 ~~~
 
+## path_validation_updated
+
+`quic:path_validation_updated` records a change in the endpoint's validation state for the indicated Path ID. It complements `path_challenge` and `path_response` frame logging: those frames show wire activity, while this event records whether the local validation procedure started, succeeded, or failed. Log one event for each state transition. The result is local to the logging endpoint and does not assert that the peer has reached the same state.

check the "Logging validation during migration" section
I added a use case for NAT rebinding

altanai altanai commented on code on Nov 23, 2026 01:10 UTC
Code Review
draft-huitema-quic-qlog-multipath.md:1
@@ -153,6 +153,23 @@ QUICPathCreated = {
 }
 ~~~
 
+## path_validation_updated
+
+`quic:path_validation_updated` records a change in the endpoint's validation state for the indicated Path ID. It complements `path_challenge` and `path_response` frame logging: those frames show wire activity, while this event records whether the local validation procedure started, succeeded, or failed. Log one event for each state transition. The result is local to the logging endpoint and does not assert that the peer has reached the same state.
+
+`trigger`, when present, identifies the observed cause of the transition. `failure_reason` is only present when `state` is `failed`. `error_code` MAY be included when failure is associated with a PATH_ABANDON frame; in that case it is the PATH_ABANDON error code defined by {{Section 4.2 of RFC10069}}.

we could've done that yes but following the review feedback, I revised the PR to use the existing migration_state_updated event for probing during migration. I’ll open an issue in quicwg/qlog and start a discussion thread about how to log explicit tuple validation outcomes

altanai altanai commented on code on Nov 23, 2026 01:11 UTC
Code Review
draft-huitema-quic-qlog-multipath.md:1
@@ -153,6 +153,23 @@ QUICPathCreated = {
 }
 ~~~
 
+## path_validation_updated
+
+`quic:path_validation_updated` records a change in the endpoint's validation state for the indicated Path ID. It complements `path_challenge` and `path_response` frame logging: those frames show wire activity, while this event records whether the local validation procedure started, succeeded, or failed. Log one event for each state transition. The result is local to the logging endpoint and does not assert that the peer has reached the same state.

aah I see it already exists https://github.com/quicwg/qlog/issues/659#issue-6521668431
thank you @huitema

Reviewers
Assignees
altanai altanai
Labels
risk: low confidence: 89.4% 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: 27.4% (LOW) · Higher = larger blast radius
27.4%
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: 89.4% · Lower = rushed or shallow review
89.4%
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: 2.9% · Safe to merge
2.9%