← Back to Pull requests

UCT/UD: Do not complete an endpoint check on a simultaneous CREQ #12409

Open
unknown opened this pull request with 183 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 20, 2026 20:17 UTC
Author

What


An endpoint check on a UD endpoint no longer completes when a simultaneous CREQ from the peer is handled as the ACK of our CREQ. The check now waits for the ACK of our CREP.

Why


A simultaneous CREQ shows only that we received the peer's packet, not that the peer received ours. UCP gates the recovery of a failed lane by such a check on an aux UD endpoint. When a link drops the packets of one side only, the probe of that side completed on the peer's CREQ, so the side put the lane back while its packets were still dropped. The lane then failed again and flapped.

On a NIXL disaggregated-inference test (KV cache PUSH, fault tolerance on, one NIC plane of the prefill node drops its TX traffic), the flapping lane stalled KV transfers for 35-40 s at a time while the drop lasted: -50% to -83% tok/s/GPU. With this fix, throughput during the drop is the same as with KV PULL (187k vs 108k tok/s/GPU before the fix), and no requests fail.

How


  • uct_ud_ep_rx_creq(): before the incoming CREQ is handled as the ACK of our CREQ, uct_ud_ep_comp_psn_move() moves the completions waiting for our CREQ to the PSN of our CREP.

  • uct_ud_ep_purge() and uct_ud_ep_flush() with UCT_FLUSH_FLAG_CANCEL do not wait for a CREP that is not sent yet, so they move those completions back to the last PSN sent.

  • Tests: test_ud.ep_check_simultaneous_creq_tx_lost, test_ud.ep_check_simultaneous_creq_destroy and test_ud.ep_check_simultaneous_creq_cancel.
  • Diff: 183 lines (+137 / -46) across 2 files Reviewer: tvegas1 Review duration: 10059m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 183 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.312
    Real PR Conversation Timeline
    1 comments
    "Review active on #12409"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 35.6% (MEDIUM) · Higher = larger blast radius
    35.6%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 19% · Safe to merge
    19%
    Repository