GitHub Notification Triage Dashboard

Priority Triage: ๐Ÿ”ด P0 (Prod/Workload Bugs & Critical) → ๐ŸŸก P1 (Active Bugs & Features) → ๐ŸŸข P2 (Chores & Docs) • Open PRs >3d Bumped +1 Level
๐Ÿ•’ Last updated: 2026-12-04 16:45 PT ๐Ÿ“ฑ Read-Only Mobile
โšก Maintainer Triage Queue (Sorted by Priority P0 → P2, Prod Bugs & >3d Open PRs First): Case 1 (0): Approved & later rebased (restamp) • Case 2 (15): Reviewed & suggests approve • Case 3 (58): Actual comments to make • Toggle ๐Ÿ—‚๏ธ Group by Category & Priority anytime to inspect Bug Fixes vs Feature Requests across P0/P1/P2.

๐Ÿ”ด P0: High Priority

90

๐ŸŸก P1: Medium Priority

36

๐ŸŸข P2: Low Priority

7

๐Ÿšจ Prod / Workload Bugs

6

๐Ÿ› Bug Fixes (Issues & PRs)

41

โœจ Features & Requests

82

๐Ÿ”ง Chores / Docs

10

โฐ >3d Age Bumped

74

๐ŸŸข Case 1: Restamp Approve

0

โœ… Case 2: Suggest Approve

15

๐Ÿ’ฌ Case 3: Has Comments

58

3.1 Total Needs Response

73

3.2 Priority User

9

3.3 Big Feature

16

3.4 Need Author Response

26

๐Ÿ“ฃ Mentions & Replies

35

โœ… Comments Addressed

1

โณ No Author Response (>5d)

1

๐ŸŸ  Merge Conflicts

49
๐ŸŽฏ Priority Filter (composes with active tab/case/section): |

3.1 Needs My Response

Split into 3 distinct cases so you can bulk select, bulk edit, and bulk publish them separately: (Case 1) Simply needs approval because someone already approved and later rebased, (Case 2) After review the tool suggests to just approve, and (Case 3) You have actual comments to make.
๐ŸŽฏ Section Priority Filter:

3.1.1 Case 1: Approved & Rebased - Simply Needs Restamp Approval (0)

Someone already approved and later someone rebased their code (or addressed nits / trivial fix), with no open/un-LGTM'd discussions from others. Bulk-approve in one batch.
No items currently in Case 1.

    3.1.2 Case 2: Reviewed - Tool Suggests to Just Approve (15)

    After deep code review, the tool found no blocking issues AND either nobody else has commented on the PR or all comments/threads are resolved and other commenters have given LGTM (`Verdict: Approve`). Bulk-edit approval message or approve separately from restamps.
    ๐ŸŽฏ Filter Case 2 by Priority:
    • 1. PR [OPEN] fix(epp): give each P/D target its own no-hit-lru cold verdict ๐Ÿ“„ Diff (llm-d/llm-d-router#4748 by @bhargavchintam) ๐Ÿ”” Unread @mention ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 5d (>3d Priority Bump) ๐ŸŸข DEEP REVIEW [No Review Yet]: Verdict Approve ๐ŸŸข Low Effort ๐Ÿ“ฃ Directly @mentioned
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (P/D disaggregation, sidecar, & coordinator); sitting 5d (>3d bump P1 -> P0); ๐Ÿ”” Unread @mention
      ๐Ÿ“Œ Change Summary: [+97/-16 lines across 2 file(s)] no-hit-lru-scorer decides in Score whether a request is cold, meaning no candidate reports a matched block, and kept that one verdict per request ID (Fixes #4747).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind bug

      What this PR does / why we need it:

      no-hit-lru-scorer decides in Score whether a request is cold, meaning no candidate reports a matched block, and kept that one verdict per request ID. In P/D one instance sits in both the decode and the prefill profile and scores each request twice, each time with that profile's candidates, so the second call replaced the first. PreRequest then applied the last verdict to both targets. A cold decode stage next to a cached prefill stage never entered the LRU, and a decode pod that served a cached stage was recorded as cold. The README says a pod joins the LRU "when it serves a cold request, not when it serves a cached one".

      The two stages disagree when only one pool is credited with a prompt's prefix. precise-prefix-cache-producer seeds a disaggregated request on the prefill endpoint only (#4403), and approx-prefix-cache-producer does the same with excludeDecodeWhenDisaggregated (#3760), so a repeat sees a cached prefill stage and a cold decode stage. The reverse happens when prefix-based-pd-decider keeps a short turn decode-only and then sends a longer turn with the same prefix to prefill.

      Score now adds the candidates of each cold call to a set in the request's state, and PreRequest moves a target only when it is in that set, so each target follows the verdict of the profile that scored it, in both stage orders. A prefill-decode pod that is a candidate in both profiles stays in the set when only one call was cold, because that call shows the pod had no matched block. A warm call writes no state, so a request without a cold call takes the existing missing-state path in PreRequest. The diff is coldRequestState, Score, a new recordColdCandidates helper, PreRequest (its early return for a warm verdict goes) and the check in moveTargetPodToFront, all in no_hit_lru.go, plus the tests below in no_hit_lru_test.go. No parameter or config changes.

      Which issue(s) this PR fixes:

      Fixes #4747

      Release note _(write NONE if no user-facing change)_:

      Fixed no-hit-lru-scorer in P/D deployments: the decode and prefill pods each join the cold-request LRU only when their own scheduling profile found no prefix-cache hit, instead of both following the profile that was scored last.

      Test plan:

      • ☑ With one scorer in both profiles, a cold decode stage next to a cached prefill stage records only the decode pod, and a cached decode stage next to a cold prefill stage records only the prefill pod.
      • ☑ A prefill-decode pod picked by the cold decode stage stays recorded when the prefill stage, which also had it as a candidate, finds a hit on another pod.

      The three cases fail on main caab1619 and pass with this change:

      $ GOTOOLCHAIN=auto go test -race -p 2 -count=1 -run 'TestNoHitLRUPrefillDecodeTracking|TestNoHitLRUEndpointInBothProfiles' ./pkg/epp/framework/plugins/scheduling/scorer/nohitlru/
      # main caab1619
      --- FAIL: TestNoHitLRUPrefillDecodeTracking (0.00s)
          --- FAIL: TestNoHitLRUPrefillDecodeTracking/cold_decode_cached_prefill (0.00s)
              no_hit_lru_test.go:565: LRU after P/D request (-want +got):
                    []string{
                  - 	"default/decode-a",
                    }
          --- FAIL: TestNoHitLRUPrefillDecodeTracking/cached_decode_cold_prefill (0.00s)
              no_hit_lru_test.go:565: LRU after P/D request (-want +got):
                    []string{
                  + 	"default/decode-a",
                    	"default/prefill-a",
                    }
      --- FAIL: TestNoHitLRUEndpointInBothProfiles (0.00s)
          no_hit_lru_test.go:595: LRU after P/D request (-want +got):
                []string{
              - 	"default/pd-a",
                }
      FAIL
      # with this change
      ok  	github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/scheduling/scorer/nohitlru	1.550s
      
      $ GOTOOLCHAIN=auto go test -race -p 2 -count=20 ./pkg/epp/framework/plugins/scheduling/scorer/nohitlru/
      ok  	github.com/llm-d/llm-d-router/pkg/epp/framework/plugins/scheduling/scorer/nohitlru	1.592s

      go test -race -p 2 -count=1 ./pkg/epp/framework/plugins/scheduling/... ./pkg/epp/scheduling/... passes in all 42 packages that have tests, and go vet ./pkg/epp/framework/plugins/scheduling/... and gofmt -l on the package report nothing.

      A throwaway harness on the real scheduler (not in this PR) shows the effect on placement. It uses the disagg profile handler, the role filters, max-score-picker, and prefix-cache-scorer (weight 3) next to one no-hit-lru-scorer (weight 2) in both profiles, with 4 decode and 4 prefill pods, 12 requests with a 100-token prompt, 50 blocks cached on pod 0 of one pool, no load signal, and the scorer's PreRequest after each request:

      $ GOTOOLCHAIN=auto go test -p 2 -count=1 -run TestZZNoHitLRUPDHarness -v ./pkg/epp/framework/plugins/scheduling/scorer/nohitlru/
      # main caab1619
      decode_first_cold_decode_cached_prefill: cold decode stage on 1 of 4 pods (busiest 12 of 12)
      decode_first_cached_decode_cold_prefill: default/decode-0, which served only cached stages, in the LRU after 12 of 12 requests
      prefill_first_cold_prefill_cached_decode: cold prefill stage on 1 of 4 pods (busiest 12 of 12)
      prefill_first_cached_prefill_cold_decode: default/prefill-0, which served only cached stages, in the LRU after 12 of 12 requests
      # with this change
      decode_first_cold_decode_cached_prefill: cold decode stage on 4 of 4 pods (busiest 3 of 12)
      decode_first_cached_decode_cold_prefill: default/decode-0, which served only cached stages, in the LRU after 0 of 12 requests
      prefill_first_cold_prefill_cached_decode: cold prefill stage on 4 of 4 pods (busiest 3 of 12)
      prefill_first_cached_prefill_cold_decode: default/prefill-0, which served only cached stages, in the LRU after 0 of 12 requests

      These are four of the harness's eight lines; in the other four (the pod that served only cached stages in the first and third cases, and the cold stage's spread in the second and fourth) main and this change print the same values.

      make -k presubmit passes every target except verify-review-playbook, which fails the same way on main caab1619 for two files this PR does not touch (#4616 routes them):

      $ make -k presubmit
      All commits are cryptographically signed and have DCO sign-offs.
      ==== Running go fmt ====
      ==== Running linting ====
      0 issues.
      ==== Running security linting ====
      0 issues.
      ==== Running govulncheck ====
      Your code is affected by 0 vulnerabilities.
      BUNDLE ERROR: playbooks/review_a_pull_request.md: unrouted production Go file 'pkg/epp/framework/common/duration/seconds.go' matches no production routing row
      BUNDLE ERROR: playbooks/review_a_pull_request.md: unrouted production Go file 'pkg/epp/framework/plugins/requesthandling/forwardtokens/plugin.go' matches no production routing row
      make: *** [verify-review-playbook] Error 1

      Not run: make test-unit, which runs every package in the module inside the builder container, and the e2e suites, which need a KIND cluster. The -race run above covers this package and the scheduler code that calls it.

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Fixes no-hit-lru-scorer in P/D deployments so decode and prefill targets independently join the cold-request LRU only when their own scoring pass found no KV cache hit. Previously, Score overwrote a single isCold boolean per request ID, causing the last scored profile's verdict to govern both targets in PreRequest. The scorer interface, configuration parameters, and LRU ranking logic remain unchanged.

      ๐Ÿ—๏ธ Design
      • Replaces isCold bool on coldRequestState (pkg/epp/framework/plugins/scheduling/scorer/nohitlru/no_hit_lru.go:71-73) with coldEndpoints sets.Set[fwkdl.ID].
      • In Score (no_hit_lru.go:303-316), warm calls return neutral 0.5 scores without writing or overwriting pluginState, while cold calls invoke recordColdCandidates (no_hit_lru.go:320-330) to insert all scored candidate IDs for that call into coldEndpoints.
      • In PreRequest (no_hit_lru.go:334-359) and moveTargetPodToFront (no_hit_lru.go:361-376), each profile's chosen TargetEndpoints[0] is added to lruCache only if its ID is present in coldEndpoints (missing state continues to return early).
      ๐Ÿงช Example (How It Works)
      1. Request req-1 runs the decode profile with cold candidates [decode-a, decode-b]: Score sees no matched blocks and inserts decode-a and decode-b into coldEndpoints.
      2. Next, req-1 runs the prefill profile with [prefill-a (5 matched blocks), prefill-b]: Score detects a cache hit, returns 0.5 for all candidates, and leaves coldEndpoints untouched.
      3. PreRequest receives targets decode-a and prefill-a: decode-a is in coldEndpoints and joins the LRU, while prefill-a is not in coldEndpoints and is skipped.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No reviewer discussion yet - Only author notes from @bhargavchintam (1 comment(s)); awaiting initial review.
      โš–๏ธ Verdict: โœ… Deep Review Verdict: APPROVE: No blocking issues found in deep review; ready to approve & merge.
    • 2. PR [OPEN] fix(sessionaffinity): keep the binding of a running request ๐Ÿ“„ Diff (llm-d/llm-d-router#4761 by @ptimizeroracle) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix ๐Ÿšจ Prod / Real Workload Bug โฐ Sitting 4d (>3d Priority Bump) ๐ŸŸข DEEP REVIEW [No Review Yet]: Verdict Approve ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Production/real-workload bug (Session affinity, SLO latency, & plugin DAG: runtime crash, panic, nil dereference, or segfault ('panics')); sitting 4d (>3d open PR, already P0)
      ๐Ÿ“Œ Change Summary: [+242/-14 lines across 6 file(s)] With the session_id strategy a binding expires evictionTtlSeconds after its last dispatch, also when that request is still running. so after a turn longer than the ttl (300s by default) the next turn is placed like a new... (Fixes #4760)
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind bug

      What this PR does / why we need it:

      with the session_id strategy a binding expires evictionTtlSeconds after its last dispatch, also when that request is still running. so after a turn longer than the ttl (300s by default) the next turn is placed like a new session, with the bound pod still a candidate.

      this counts the requests running for a session on a pod. the sweep keeps a binding that has one, and the ttl restarts when a request on the bound pod ends. a request left on the pod a session migrated away from doesn't hold or refresh the new binding.

      the end of the request is the end of the ext_proc stream context, same lifetime inflight-load-producer binds to (#2313), through context.AfterFunc like RequestEvictor. i tried a ResponseBody hook first, like session-state-producer. it made the filter and the scorer streaming plugins for both strategies, about 0.3us per chunk per instance in a director bench, and if no other streaming plugin is configured also the per response queue. with the context it's about 0.4us more in PreRequest, 2.1us more per request in total, and around 600 bytes while it runs, only for requests with a session id.

      i went through the paths from PreRequest to the end of the request (normal end, trailers, aborts, upstream errors, failing PreRequest plugin, 412, skipped response processing, eviction, panics) with the real handler and director, none leaves a count behind. the time in the flow control queue is before PreRequest and not covered.

      300 sessions on 4 pods, think time at most 60s, follow-ups more than 310s after the previous start: 2271 of 2987 moved before, 0 after.

      (ai-assisted, checked by me)

      Which issue(s) this PR fixes:

      Fixes #4760

      Release note _(write NONE if no user-facing change)_:

      Session affinity with the `session_id` strategy keeps a session's binding while one of its requests is running. `evictionTtlSeconds` counts from the end of the last request on the bound pod.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Prevents active session_id affinity bindings from expiring while a request is still running on the bound pod, and restarts evictionTtlSeconds when the request stream ends rather than when it was dispatched. SessionIDHeader tracks per-(sessionID, podName) in-flight counts tied to the ext_proc stream context lifetime via context.AfterFunc. Choose, ResponseHeader, encoded_endpoint_header behavior, and all plugin configuration schemas remain unchanged.

      ๐Ÿ—๏ธ Design
      • Tracks active requests per (sessionID, podName) placement in SessionIDHeader.running (map[placement]int), guarded by s.mu (session_id.go#L140-L163, session_id.go#L214-L218).
      • In PreRequest, when ctx.Done() != nil, increments s.running[{sessionID, podName}] under s.mu and registers context.AfterFunc(ctx, func() { s.requestDone(p) }) (session_id.go#L342-L347).
      • In requestDone, decrements and deletes the zero-count running entry under s.mu, and refreshes lastSeen only if s.bindings still maps sessionID to p.podName (session_id.go#L385-L401).
      • In runEviction, checks s.running[placement{sessionID, b.podName}] == 0 under s.mu before calling s.bindings.CompareAndDelete (session_id.go#L460-L466).
      ๐Ÿงช Example (How It Works)
      1. Turn 1 for session s1 is routed to pod-a at t = 0s with evictionTtlSeconds = 300; PreRequest binds s1 -> pod-a and increments running[{s1, pod-a}] to 1.
      2. At t = 320s, runEviction sees lastSeen is past 300s, acquires s.mu, observes running[{s1, pod-a}] == 1, and skips eviction.
      3. At t = 320s, Turn 1's ext_proc stream closes; requestDone decrements and deletes {s1, pod-a} from running and updates lastSeen to 320s.
      4. Turn 2 arriving at t = 610s (290s after Turn 1 ended) still routes to pod-a; if idle until t = 620s+, the next sweep evicts the binding.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: โœ… Deep Review Verdict: APPROVE: No blocking issues found in deep review; ready to approve & merge.
    • 3. PR [OPEN] fix(epp): reject request-attribute-reporter config without parameters ๐Ÿ“„ Diff (llm-d/llm-d-router#4910 by @chalshik) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix ๐Ÿšจ Prod / Real Workload Bug ๐ŸŸข DEEP REVIEW [No Review Yet]: Verdict Approve ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Production/real-workload bug (P/D disaggregation, sidecar, & coordinator: runtime crash, panic, nil dereference, or segfault ('crashed'))
      ๐Ÿ“Œ Change Summary: [+12/-0 lines across 2 file(s)] The config loader passes a nil decoder to a plugin factory when the plugin entry has no parameters block (Fixes #4907).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind bug

      What this PR does / why we need it:

      The config loader passes a nil decoder to a plugin factory when the plugin entry has no parameters block. The request-attribute-reporter factory decoded into it without a check, so such a config crashed the EPP with a nil pointer panic at startup and under --validate-config.

      The factory returns request-attribute-reporter: parameters are required, matching the other factories whose parameters are mandatory.

      Which issue(s) this PR fixes:
      Fixes #4907

      Release note _(write NONE if no user-facing change)_:

      The EPP reports a configuration error instead of crashing when a request-attribute-reporter plugin entry has no parameters.

      Test plan:

      • ☑ New test: building the plugin without parameters returns an error (panics on main)
      • ☑ go test -race ./pkg/epp/framework/plugins/requesthandling/requestattributereporter/...
      • ☑ gofmt -l and go vet clean; make git-branch-check signed-commits-check verify-boilerplate pass; make presubmit not run locally (Docker unavailable)
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Prevents a startup and --validate-config nil-pointer panic in RequestAttributeReporterPluginFactory when an EndpointPickerConfig plugin entry omits parameters. The factory now rejects a nil *json.Decoder with request-attribute-reporter: parameters are required before decoding, while behavior for configurations with parameters (including empty {} validated by New) remains unchanged.

      ๐Ÿ—๏ธ Design
      • Config loader calls instantiatePlugins, which passes fwkplugin.StrictDecoder(spec.Parameters) (nil when len(raw) == 0) to RequestAttributeReporterPluginFactory.
      • RequestAttributeReporterPluginFactory checks rawParameters == nil first and returns fmt.Errorf("%s: parameters are required", RequestAttributeReporterType) before calling rawParameters.Decode(&pluginConfig).
      • TestFactoryWithoutParameters exercises the nil decoder path directly.
      ๐Ÿงช Example (How It Works)
      1. An EndpointPickerConfig declares - name: reporter / type: request-attribute-reporter with no parameters field.
      2. StrictDecoder(spec.Parameters) returns nil and passes it to RequestAttributeReporterPluginFactory.
      3. rawParameters == nil triggers early return with request-attribute-reporter: parameters are required, which instantiatePlugins wraps as a configuration error instead of panicking.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: โœ… Deep Review Verdict: APPROVE: No blocking issues found in deep review; ready to approve & merge.
    • 4. PR [OPEN] fix(sessionaffinity): release the presence record in PreRequest ๐Ÿ“„ Diff (llm-d/llm-d-router#4018 by @ZeXi0308) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 29d (>3d Priority Bump) ๐ŸŸข DEEP REVIEW [No Review Yet]: Verdict Approve ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (Session affinity, SLO latency, & plugin DAG); sitting 29d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+79/-1 lines across 2 file(s)] SessionIDHeader.Choose records, per request, whether the session's bound pod was a candidate; PreRequest is its only reader and did not delete it, so the record of every bound-session request stayed in the PluginState until... (Fixes #4017)
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind bug

      What this PR does / why we need it:

      SessionIDHeader.Choose records, per request, whether the session's bound pod was a candidate; PreRequest is its only reader and did not delete it, so the record of every bound-session request stayed in the PluginState until the janitor reaped it five minutes later. PreRequest now releases the record on every exit, after the migration path has read it. Choose keys the record by request ID, and PreRequest registers the release before it resolves the session ID, so the release also runs when an earlier PreRequest plugin has removed or rewritten the session header. The filter and the scorer share this code, so both instances are covered.

      Which issue(s) this PR fixes:

      Fixes #4017

      Release note:

      `session-affinity-filter` and `session-affinity-scorer` (session_id strategy) release their per-request state in PreRequest instead of leaving it to the PluginState janitor.

      Testing

      TestSessionIDHeader_PreRequest_ReleasesPresenceRecord: after Choose and PreRequest the request has no entry left in the PluginState and the binding is as before, for a bound pod that was present and picked, a bound pod that was absent (the session migrates), a scheduling result without the profile, and a session header removed between Choose and PreRequest. All four fail on the base commit with the record still present. Releasing only once the session ID resolves makes the fourth fail, and releasing only below the profile check makes the third fail as well.

      go test for the util, filter and scorer packages and the TestSessionAffinity* integration tests, go vet, gofmt -l, golangci-lint run with the repo config, go test -race for the util package: clean.

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Releases the per-request bound-pod presence record in SessionIDHeader.PreRequest on every exit path, including nil-safe handling and cases where an earlier PreRequest plugin removes or rewrites the session header before PreRequest runs. Unbound requests still skip PluginState writes in Choose, and requests that abort before PreRequest continue to rely on the five-minute PluginState janitor.

      ๐Ÿ—๏ธ Design
      • Guards against a nil request at SessionIDHeader.PreRequest and immediately registers defer s.pluginState.Delete(request.RequestID) before resolveSessionID and pickedPodName.
      • Because each session-affinity-filter and session-affinity-scorer instance owns a private s.pluginState storing only s.pluginKey, Delete safely clears both storage and requestToLastAccessTime without affecting other plugins.
      • LIFO defer ordering runs s.mu.Unlock() before Delete, after any migration check reads ReadPluginStateKey at session_id.go:358.
      ๐Ÿงช Example (How It Works)
      1. A request with x-session-id: s1 enters Choose while s1 is bound to pod-a, writing &boundPodPresence{podName: "/pod-a", present: true} to s.pluginState under req.RequestID.
      2. During Director.runPreRequestPlugins, an earlier PreRequest plugin deletes or rewrites x-session-id, or SchedulingResult omits the target profile.
      3. When SessionIDHeader.PreRequest returns early after resolveSessionID or pickedPodName, the deferred s.pluginState.Delete(request.RequestID) removes both the presence record and LastAccessTime entry immediately.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: โœ… Deep Review Verdict: APPROVE: No blocking issues found in deep review; ready to approve & merge.
    • 5. PR [OPEN] Resend render requests when vLLM closes a reused connection ๐Ÿ“„ Diff (llm-d/llm-d-router#4231 by @sunilmehta-si) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 21d (>3d Priority Bump) ๐ŸŸข DEEP REVIEW: Verdict Approve ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (P/D disaggregation, sidecar, & coordinator); sitting 21d (>3d bump P1 -> P0); Open 21.5d (> 7d) with maintainer @vMaroon; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+90/-1 lines across 2 file(s)] The vLLM HTTP render transport kept idle connections for 90 seconds, and vLLM's HTTP server closes an idle keep-alive connection after 5 seconds (Fixes #4230).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind bug

      What this PR does / why we need it:

      The vLLM HTTP render transport kept idle connections for 90 seconds, and vLLM's HTTP server closes an idle keep-alive connection after 5 seconds. A render request written to a connection the server is closing failed with EOF or a broken pipe. postJSON retries only on a different endpoint, so with a single render sidecar the request failed.

      This sets the render transport's idle timeout to 4 seconds and marks render requests idempotent (Idempotency-Key with a nil value, so no header is sent). The transport then resends a render request on a new connection when the server closed a reused one. Render has no side effects.

      Tests:

      • ☑ A render request is resent on a new connection when the server closes a reused keep-alive connection without answering. It fails with EOF without the change.
      • ☑ The render transport's idle timeout is below vLLM's default 5 seconds.

      The tokenizer package tests pass with the host Go toolchain, and golangci-lint v2.14.0 (the builder's version) with .golangci.yml reports no issues in the package and no formatting changes. I could not run make presubmit, which needs the builder container.

      Which issue(s) this PR fixes:
      Fixes #4230

      Release note _(write NONE if no user-facing change)_:

      The vLLM HTTP tokenizer resends a render request on a new connection when the render server has closed an idle keep-alive connection, instead of failing the request.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Prevents spurious EOF and broken-pipe failures when vLLM closes an idle HTTP/1.1 keep-alive connection (default 5s) while the EPP tokenizer render client reuses it. The change lowers the render transport idle pool timeout to 4s and marks outbound POST render requests as idempotent for Go's transport layer without emitting an Idempotency-Key header on the wire. Endpoint-level retry logic, response decoding, and request payload construction stay unchanged.

      ๐Ÿ—๏ธ Design
      • Idle connection eviction (vllm_http.go#L269, vllm_http.go#L281): Sets t.IdleConnTimeout to renderIdleConnTimeout (4 * time.Second), below vLLM's 5s VLLM_HTTP_TIMEOUT_KEEP_ALIVE default so idle sockets are closed client-side first.
      • Transport-level POST replay (vllm_http.go#L606): Sets httpReq.Header["Idempotency-Key"] = nil in postJSONAttempt. Because http.NewRequestWithContext wraps bytes.NewReader(payload) (GetBody != nil), net/http treats the request as replayable (isReplayable() checks key presence) while Header.writeSubset writes zero header lines for a nil slice.
      • Regression coverage (vllm_http_test.go#L1036-L1054): Adds a raw TCP test server that accepts a second keep-alive POST and closes the socket without replying, verifying Render transparently resends on a second connection.
      ๐Ÿงช Example (How It Works)
      1. Request 1 calls r.Render -> postJSONAttempt sends POST /v1/completions/render on connection conn-1 and receives 200 OK; conn-1 returns to the idle pool.
      2. Before 4s elapses, vLLM's 5s keep-alive timer races and closes conn-1 while Request 2 writes its payload to conn-1 and receives EOF (errServerClosedIdle).
      3. net/http.Transport sees conn-1 was reused and httpReq.isReplayable() is true (via GetBody + Idempotency-Key map entry), rewinds the body, dials conn-2, and succeeds without failing the single-endpoint postJSON call.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข Consensus intact (post-rebase) - Previously approved by @vMaroon; rebased cleanly with no new debate or open questions.
      โš–๏ธ Verdict: โœ… Deep Review Verdict: APPROVE: No blocking issues found in deep review; ready to approve & merge.
    • 6. PR [OPEN] fix(models): cap model response reads ๐Ÿ“„ Diff (llm-d/llm-d-router#4738 by @Cindia-blue) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 5d (>3d Priority Bump) ๐ŸŸข DEEP REVIEW [No Review Yet]: Verdict Approve ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Standard correctness bug fix; sitting 5d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+88/-12 lines across 6 file(s)] The models data source buffers an entire model-server response before parsing JSON. Limit reads to the same 8 MiB cap used by the metrics source (Fixes #4733).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind bug

      What this PR does / why we need it:

      The models data source buffers an entire model-server response before parsing JSON. Limit reads to the same 8 MiB cap used by the metrics source. Move the existing cap to source/http so both parsers use one constant; metrics behavior is unchanged. DCGM and transport behavior remain outside this change.

      Which issue(s) this PR fixes:

      Fixes #4733

      Release note _(write NONE if no user-facing change)_:

      The models data source reads at most 8 MiB from each model-server response, limiting memory use when a server returns an oversized body.

      Validation:

      • ☑ Normal and exact-limit JSON responses parse successfully; oversized reads are bounded and truncated JSON fails parsing.
      • ☑ Malformed JSON, reader failure, and an oversized response through the exported HTTP source are covered.
      • ☑ Restoring the unbounded read in a separate test overlay fails the new parser and HTTP regression assertions.
      • ☑ Related source, models extractor, and models responder packages pass host race tests on latest main.
      • ☑ Related source, models extractor, and models responder packages pass Linux ARM64 builder race tests (three runs).
      • ☑ Container dependency, format, lint/typos, security lint, vulnerability scan, tags, boilerplate, and telemetry checks pass.
      • ☐ Full make presubmit exits 2 solely at verify-review-playbook: unchanged pkg/epp/framework/common/duration/seconds.go and pkg/epp/framework/plugins/requesthandling/forwardtokens/plugin.go have no routing row. The same errors reproduce on untouched main a4e84c4e in the same builder. No check was skipped and no unrelated policy file is changed.

      AI assistance: Codex assisted with the patch, review, local checks, and PR preparation. No GPU, model service, cluster, or end-to-end runtime/RSS measurements were performed.

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Prevents unbounded memory buffering when polling /v1/models on inference pods by capping parseModels reads at 8 MiB. Promotes the existing 8 MiB maxResponseBytes constant from the metrics source to http.MaxResponseBytes so both parsers share one limit. Metrics scraping, DCGM scraping, and HTTP transport configuration remain unchanged.

      ๐Ÿ—๏ธ Design
      • Shared limit (pkg/epp/framework/plugins/datalayer/source/http/datasource.go:52): Exports MaxResponseBytes = 8 << 20 (8 MiB) in the shared HTTP source package.
      • Metrics parser (pkg/epp/framework/plugins/datalayer/source/metrics/datasource.go:174): Replaces its local maxResponseBytes constant with http.MaxResponseBytes inside newMetricsParser.
      • Models parser (pkg/epp/framework/plugins/datalayer/source/models/datasource.go:112): Wraps the response io.Reader with io.LimitReader(data, http.MaxResponseBytes) before io.ReadAll and json.Unmarshal, covering both explicit models-data-source configs and the default source created by models-responder (pkg/epp/framework/plugins/requesthandling/responder/models/plugin.go:110).
      • Invariant: Reads stop at 8 MiB; valid JSON payloads up to 8 MiB succeed, while responses truncated mid-JSON at the 8 MiB boundary fail json.Unmarshal and surface a poll error.
      ๐Ÿงช Example (How It Works)
      1. HTTPDataSource.Poll receives an HTTP 200 /v1/models body larger than 8 MiB (for example, 8 MiB + 4 KiB) and passes resp.Body to parseModels (pkg/epp/framework/plugins/datalayer/source/models/datasource.go:111).
      2. io.ReadAll(io.LimitReader(data, http.MaxResponseBytes)) reads at most 8,388,608 bytes and hits io.EOF without reading the trailing bytes.
      3. Because the JSON payload is truncated before its closing delimiter, json.Unmarshal returns an error and Poll fails instead of buffering the full oversized body.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: โœ… Deep Review Verdict: APPROVE: No blocking issues found in deep review; ready to approve & merge.
    • 7. PR [OPEN] fix(approximateprefix): reuse BlockSize in PreRequest and copy in Clone ๐Ÿ“„ Diff (llm-d/llm-d-router#4737 by @Thundercloud12) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 5d (>3d Priority Bump) ๐ŸŸข DEEP REVIEW [No Review Yet]: Verdict Approve ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (KV-cache indexing, ZMQ events, & wire fidelity); sitting 5d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+136/-1 lines across 4 file(s)] This PR resolves two related bugs in the approximateprefix plugin: During Produce(), prompt hashes are derived using blockSize := p.GetBlockSize(pods), and this block size is stored in SchedulingContextState.BlockSize (Fixes #4721).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind bug

      What this PR does / why we need it:

      This PR resolves two related bugs in the approximateprefix plugin:

      1. PreRequest block size recalculation for metrics:

      During Produce(), prompt hashes are derived using blockSize := p.GetBlockSize(pods), and this block size is stored in SchedulingContextState.BlockSize. Later, in PreRequest(), prefix cache match byte metrics (matchedLength and totalLength) recalculated block size via p.GetBlockSize(primaryProfileResult.TargetEndpoints) instead of using state.BlockSize. If the scheduled endpoint has no metrics yet (GetMetrics() == nil), GetBlockSize falls back to minBlockSizeTokens (64), causing the byte calculations to mismatch the block counts derived during Produce(). PreRequest() now reuses state.BlockSize.

      1. SchedulingContextState.Clone() missing BlockSize:

      SchedulingContextState.Clone() omitted copying BlockSize, resetting it to 0 when state was cloned. Clone() now explicitly copies BlockSize: s.BlockSize.

      Which issue(s) this PR fixes:

      Fixes #4721

      Release note _(write NONE if no user-facing change)_:

      Fixed inaccurate prefix cache match byte metrics in the approximateprefix plugin by reusing the scheduling state's block size instead of recalculating from target endpoints.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Fixes a block-size mismatch in approximateprefix metrics and completes SchedulingContextState cloning. PreRequest now reuses state.BlockSize computed during Produce when recording prefix cache hit and total byte metrics instead of calling GetBlockSize on the scheduled target endpoints, and SchedulingContextState.Clone now copies BlockSize. Block hashing in Produce, continuation tracking in PreRequest, and scorer attributes remain unchanged.

      ๐Ÿ—๏ธ Design
      • Produce (https://github.com/llm-d/llm-d-router/blob/51af89f498b7294296341e3dd4bd4e838bcad3c1/pkg/epp/framework/plugins/requesthandling/dataproducer/approximateprefix/plugin.go#L374-L417) computes blockSize once via GetBlockSize(pods), derives PerPromptHashes at that block size, and persists BlockSize in SchedulingContextState.
      • PreRequest (https://github.com/llm-d/llm-d-router/blob/51af89f498b7294296341e3dd4bd4e838bcad3c1/pkg/epp/framework/plugins/requesthandling/dataproducer/approximateprefix/plugin.go#L690-L692) reuses state.BlockSize alongside matchLen and total block counts from state.PerPromptHashes when emitting byte metrics, matching trackContinuation at line 650.
      • SchedulingContextState.Clone (https://github.com/llm-d/llm-d-router/blob/51af89f498b7294296341e3dd4bd4e838bcad3c1/pkg/epp/framework/plugins/requesthandling/dataproducer/approximateprefix/types.go#L107-L128) copies all five struct fields including BlockSize.
      ๐Ÿงช Example (How It Works)
      1. With AutoTune: true and BlockSizeTokens: 64, Produce observes an endpoint reporting CacheBlockSize: 128 and hashes a 256-token prompt into 2 blocks, storing BlockSize: 128.
      2. PreRequest runs with a target endpoint whose GetMetrics() is nil (which would fall back to 64 in GetBlockSize).
      3. Reusing state.BlockSize (128), recordPrefixCacheMatch records 2 * 128 * 4 = 1024 matched bytes instead of 512 bytes.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: โœ… Deep Review Verdict: APPROVE: No blocking issues found in deep review; ready to approve & merge.
    • 8. PR [OPEN] Forward cache_salt to encoder requests ๐Ÿ“„ Diff (llm-d/llm-d-router#4771 by @pwntr) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 4d (>3d Priority Bump) ๐ŸŸข DEEP REVIEW [No Review Yet]: Verdict Approve ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity); sitting 4d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+37/-9 lines across 5 file(s)] The encode step's encoder requests now carry the client's cache_salt, like the prefill request already does (copyPrefillCacheFields).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind feature

      What this PR does / why we need it:

      The encode step's encoder requests now carry the client's cache_salt, like the prefill request already does (copyPrefillCacheFields). This covers both builders that let the encoder hash media itself:

      • NewEncoderPrimingBody (chat completions, responses, messages): cache_salt joins the passthrough fields, next to mm_processor_kwargs and media_io_kwargs, which are forwarded for the same reason.
      • buildEncodeContentPartsBody (generate format under mm_payload: none).

      The generate-format body that carries features is unchanged: it sends the render hash, so the encoder does not hash anything.

      Why: vllm-project/vllm#70850 mixes cache_salt into the cache identity of multimodal items, so tenants with different salts share no processor or encoder cache entries. With that change, an encoder primed without the salt stores its output under a hash the salted prefill request never looks up, and every encoder hand-off misses. Against a vLLM without that change, the forwarded salt only salts the encoder request's own KV blocks, which nothing reads, so this PR is safe to merge on its own.

      Tests (go test -race -count=1 ./pkg/common/request/ ./pkg/coordinator/steps/, both ok):

      • TestNewEncoderPrimingBody now expects cache_salt in the responses and messages bodies.
      • New TestEncodeAndPrefill_MMPayloadNoneForwardsCacheSalt: encode and prefill requests carry the same cache_salt.
      • Both fail with the change to content.go and encode.go reverted.

      make presubmit targets: format, lint (0 issues), lint-security (0 issues), govulncheck (no vulnerabilities), go-mod-check and verify-telemetry pass. verify-boilerplate and verify-review-playbook fail on files this PR does not touch (.github/scripts/merge-pr-onto-base*.sh; pkg/epp/framework/common/duration/seconds.go and pkg/epp/framework/plugins/requesthandling/forwardtokens/plugin.go unrouted), as on main.

      docs/communication.md states which encoder requests carry cache_salt.

      Which issue(s) this PR fixes:

      None filed; companion to vllm-project/vllm#70850.

      Release note _(write NONE if no user-facing change)_:

      Encoder requests in encode-disaggregated serving now carry the client's `cache_salt`, so encoder outputs stay reachable by prefill on vLLM versions that scope multimodal cache keys to `cache_salt`.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Encoder sub-requests previously omitted cache_salt, so on vLLM versions that scope multimodal item cache keys to cache_salt (vllm-project/vllm#70850), a salted prefill request would miss encoder entries stored without the salt. This change adds FieldCacheSalt to encoderPassthroughFields and messagesEncoderPassthroughFields for NewEncoderPrimingBody and copies cache_salt into buildEncodeContentPartsBody for generate-shaped content_parts encode requests. The generate features encoder path, RenderStep, PrefillStep, and gRPC vllmwire framing remain unchanged because they already forward cache_salt or use precomputed render hashes.

      ๐Ÿ—๏ธ Design
      • Shared OpenAI and sidecar encoder priming (pkg/common/request/content.go): Adds FieldCacheSalt to encoderPassthroughFields (Chat Completions and Responses) and messagesEncoderPassthroughFields (Messages, which still omits mm_processor_kwargs and media_io_kwargs), updating both coordinator EncodeStep and sidecar fanoutEncoder (NIXL, shared storage, and Mooncake) together.
      • Generate content_parts encoder leg (pkg/coordinator/steps/encode.go): Copies reqCtx.Body[reqcommon.FieldCacheSalt] into the sub-request body when mm_payload omits tensors (reqCtx.MMPayload != ""), matching copyPrefillCacheFields in pkg/coordinator/steps/prefill.go.
      • Invariants: DecodeRequestBody leaves cache_salt as json.RawMessage so its JSON representation passes through unchanged; the features branch of buildEncodeBody continues sending render-computed mm_hashes without re-hashing.
      ๐Ÿงช Example (How It Works)
      1. A client sends a multimodal Chat Completions request with "cache_salt": "salt" to a coordinator configured with mm_payload: none.
      2. RenderStep forwards reqCtx.Body (including cache_salt) to /render, receiving token_ids and salted mm_hashes without tensors.
      3. EncodeStep.buildEncodeContentPartsBody builds the /inference/v1/generate encode sub-request with content_parts and sets body["cache_salt"] = "salt" so the encoder stores its output under the same salted hash.
      4. PrefillStep copies cache_salt: "salt" via copyPrefillCacheFields (or maps.Clone under use_openai_format: true), matching the encoder's cache entry.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: โœ… Deep Review Verdict: APPROVE: No blocking issues found in deep review; ready to approve & merge.
    • 9. PR [OPEN] perf(epp): stream multimodal features directly into xxhash in prefixhash ๐Ÿ“„ Diff (llm-d/llm-d-router#4779 by @bustamonica) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 4d (>3d Priority Bump) ๐ŸŸข DEEP REVIEW [No Review Yet]: Verdict Approve ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Hot-path performance, zero-alloc, & resilience); sitting 4d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+64/-37 lines across 3 file(s)] Profiling BenchmarkGetBlockHashesMultiModal showed that 99.85% of allocations came from mmBlockExtra allocating and growing an intermediate []byte slice on every block that overlaps multimodal features, only to pass those...
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind performance

      What this PR does / why we need it:

      Profiling BenchmarkGetBlockHashesMultiModal showed that 99.85% of allocations came from mmBlockExtra allocating and growing an intermediate []byte slice on every block that overlaps multimodal features, only to pass those bytes immediately into xxhash.Digest.Write and discard the slice.

      This PR replaces mmBlockExtra with writeMMBlockExtra, streaming the 16-byte block prefix and each overlapping feature's length-prefixed hash and clamped block-relative offset directly into a reused stack xxhash.Digest via the existing writeLengthPrefixedString helper. The resulting hash bytes are bit-for-bit identical.

      • pkg/epp/framework/plugins/requesthandling/dataproducer/prefixhash/hashing.go: Replace mmBlockExtra with streaming writeMMBlockExtra, reuse the stack xxhash.Digest and lenBuf, compute blockStart/blockEnd once per block, and skip calling writeMMBlockExtra when len(features) == 0.
      • pkg/epp/framework/plugins/requesthandling/dataproducer/prefixhash/hashing_reference_test.go: Add TestGetBlockHashesMultiModalAllocs to cap multimodal hashing allocations (4 actual, ceiling 10).
      • pkg/epp/framework/plugins/requesthandling/parsers/vllmgrpc/vllmgrpc.go: Update comment referencing prefixhash.mmBlockExtra to prefixhash.writeMMBlockExtra.
      Benchmarks

      go test -run='^$' -bench='BenchmarkGetBlockHashes' -benchmem -count=10 ./pkg/epp/framework/plugins/requesthandling/dataproducer/prefixhash/ (medians, Linux amd64 Xeon):

      BenchmarkBefore (ns/op)After (ns/op)SpeedupBefore (B/op)After (B/op)ฮ” BytesBefore (allocs/op)After (allocs/op)ฮ” Allocs
      MultiModal/single66,351.566,649.51.00x16,59216,416-1.1%73-57.1%
      MultiModal/small966.2681.91.42x992288-71.0%204-80.0%
      MultiModal/sparse100,436.085,075.51.18x75,04029,984-60.0%1,0284-99.6%
      MultiModal/nested223,784.5139,654.51.60x291,80829,984-89.7%4,6104-99.9%
      GetBlockHashes (text-only)15,871.515,909.01.00x4,1284,1280.0%330.0%
      Verification
      • go test -race -v ./pkg/epp/framework/plugins/requesthandling/dataproducer/prefixhash/... (including 2,000-iteration TestGetBlockHashesMatchesReference fuzz comparison and TestGetBlockHashesMultiModalAllocs) โ€” PASS
      • go test -race ./pkg/epp/framework/plugins/requesthandling/parsers/vllmgrpc/... โ€” PASS
      • golangci-lint run ./pkg/epp/framework/plugins/requesthandling/dataproducer/prefixhash/... ./pkg/epp/framework/plugins/requesthandling/parsers/vllmgrpc/... โ€” 0 issues

      Which issue(s) this PR fixes:
      N/A (discovered via hot-path profiling).

      Release note _(write NONE if no user-facing change)_:

      NONE
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Eliminates per-block intermediate slice allocations when hashing multimodal prompts in prefixhash. Replaces mmBlockExtra with writeMMBlockExtra to stream the 16-byte block prefix, length-prefixed feature hashes, and clamped entry offsets directly into a single stack-allocated xxhash.Digest reused across the seed and block loop. Exported signatures, hash outputs, and featureless block handling stay unchanged.

      ๐Ÿ—๏ธ Design
      • Reuses a single stack xxhash.Digest (d) and [8]byte length buffer (lenBuf) from seed computation across all block iterations in computeBlockHashes.
      • Computes blockStart and blockEnd once per block and skips writeMMBlockExtra when len(features) == 0.
      • Inside writeMMBlockExtra, resets d and writes blockPrefix lazily only when the first overlapping, non-empty-hash feature is seen; otherwise returns false so the caller falls back to xxhash.Sum64(buf[:]) without touching d.
      • Adds TestGetBlockHashesMultiModalAllocs capping allocations at 10 per run (expected 4 for output slices and sorted feature copy).
      ๐Ÿงช Example (How It Works)
      1. A prompt with 256 multimodal features enters computeBlockHashes; d and lenBuf are initialized once for (TargetModel, CacheSalt).
      2. On block i overlapping a hashed feature, len(features) > 0 calls writeMMBlockExtra, which resets d, writes the 16-byte buf[:], streams each overlapping feature via writeLengthPrefixedString plus clamped offset, and returns true so d.Sum64() becomes prevBlockHash.
      3. On a block where features is empty or holds only hashless/non-overlapping entries, writeMMBlockExtra leaves d untouched and returns false (or is skipped), so xxhash.Sum64(buf[:]) produces the featureless block hash.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No reviewer discussion yet - Only author notes from @bustamonica (1 comment(s)); awaiting initial review.
      โš–๏ธ Verdict: โœ… Deep Review Verdict: APPROVE: No blocking issues found in deep review; ready to approve & merge.
    • 10. PR [OPEN] perf(epp): reduce predicted latency and scorer allocations ๐Ÿ“„ Diff (llm-d/llm-d-router#4777 by @cbof16) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 4d (>3d Priority Bump) ๐ŸŸข DEEP REVIEW [No Review Yet]: Verdict Approve ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Session affinity, SLO latency, & plugin DAG); sitting 4d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+123/-73 lines across 6 file(s)] Guard per-endpoint DEBUG and TRACE logging, key in-flight snapshots by fwkdl.ID, and reuse immutable scheduling metrics snapshots during streamed requests (Fixes #4776).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind performance

      What this PR does / why we need it:
      Guard per-endpoint DEBUG and TRACE logging, key in-flight snapshots by fwkdl.ID, and reuse immutable scheduling metrics snapshots during streamed requests. This removes avoidable logging, string, and metrics clone allocations from the predicted latency and latency scorer hot paths.

      Which issue(s) this PR fixes:
      Fixes #4776

      Release note _(write NONE if no user-facing change)_:

      NONE
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Eliminates per-endpoint and per-token heap, string, and logger allocations across the predictedlatency data producer, request-control hooks, and latency scorer hot paths. It guards DEBUG/TRACE logs behind hoisted .Enabled() checks, keys inFlightLoadForEndpoints directly by fwkdl.ID (types.NamespacedName), and reuses the immutable scheduling *fwkdl.Metrics snapshot captured once in PreRequest instead of cloning on every streamed token. Prediction math, SLO headroom validation, and training feature values remain unchanged.

      ๐Ÿ—๏ธ Design
      ๐Ÿงช Example (How It Works)
      1. During Produce for a request with 16 candidate endpoints at DEFAULT log level (DEBUG/TRACE off), PredictedLatency skips all DEBUG/TRACE Info calls and meta.String()/metrics.String() formatting, and stores inFlightLoadForEndpoints[meta.ID] without allocating ID.String().
      2. LatencyScorer.Score calls scoreBucket (or compositeScores on fallback) with traceEnabled == false, bypassing all per-endpoint TRACE log allocations.
      3. In PreRequest, refreshLastSeenMetrics records TargetEndpoints[0].GetMetrics() pointer once into lastSeenMetrics[profileName] without cloning ActiveModels/WaitingModels maps.
      4. Across 500 streamed ResponseBody chunks, processFirstTokenForLatencyPrediction and processTokenForLatencyPrediction update timestamps and token counts with zero refreshLastSeenMetrics clones and zero DEBUG duration allocations.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No reviewer discussion yet - Only author notes from @cbof16 (1 comment(s)); awaiting initial review.
      โš–๏ธ Verdict: โœ… Deep Review Verdict: APPROVE: No blocking issues found in deep review; ready to approve & merge.
    • 11. PR [OPEN] fix(request): sanitize client kv_cache_report_mode in vLLM extra args ๐Ÿ“„ Diff (llm-d/llm-d-router#4789 by @diaosj) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 3d (>3d Priority Bump) ๐ŸŸข DEEP REVIEW [No Review Yet]: Verdict Approve ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (KV-cache indexing, ZMQ events, & wire fidelity); sitting 3d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+188/-19 lines across 7 file(s)] When an untrusted client sends kv_cache_report_mode=full inside vllm_xargs or sampling_params.{extra_args,vllm_xargs} on HTTP routes, vLLM re-announces already-cached KV blocks on subsequent requests (Fixes #4770).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind bug

      What this PR does / why we need it:

      When an untrusted client sends kv_cache_report_mode=full inside vllm_xargs or sampling_params.{extra_args,vllm_xargs} on HTTP routes, vLLM re-announces already-cached KV blocks on subsequent requests. Because eventDedupFilter reference-counts every BlockStored announcement to handle overlapping chunks from vLLM's OffloadingConnector, those extra announcements leave positive reference counts after a block is evicted. Subsequent BlockRemoved events are suppressed and prefix-cache-scorer keeps crediting the evicted worker.

      This change adds FieldKVCacheReportMode (kv_cache_report_mode) to the shared nested request-body sanitization list (pkg/common/request/sanitize.go) so both EPP and Coordinator sanitize client-supplied copies in vllm_xargs, sampling_params.extra_args, and sampling_params.vllm_xargs:

      • Under strip (default): removes kv_cache_report_mode from vllm_xargs and sampling_params.{extra_args,vllm_xargs} on text, token, and other non-render JSON routes, including JSON-escaped and duplicate keys, while preserving sibling keys.
      • Under reject: returns HTTP 400 on external text routes and strips on other non-render routes.
      • Under trustCaller: preserves caller-supplied fields (still sanitized when the Coordinator marks passthrough traffic with x-llm-d-unsanitized-body: true), and EPP plugins running after sanitization can still set kv_cache_report_mode.
      • Documents the sanitized field in docs/architecture.md and docs/coordinator_architecture.md.

      Test plan:

      • ☑ Verified stripping and detection of kv_cache_report_mode in decoded and raw vllm_xargs, sampling_params.extra_args, and sampling_params.vllm_xargs, including escaped and duplicate keys, with zero allocations on clean raw objects.
      • ☑ Verified EPP director sanitization under strip, reject, and trustCaller policies across chat completions, string completions, token-array completions, /inference/v1/generate, and other non-render JSON routes.
      • ☑ Verified Coordinator HTTP handler sanitization under strip and reject policies across text and token routes.

      Which issue(s) this PR fixes:
      Fixes #4770

      Release note:

      EPP and Coordinator now sanitize client-supplied `kv_cache_report_mode` in `vllm_xargs`, `sampling_params.extra_args`, and `sampling_params.vllm_xargs` according to `bodyFieldsSanitizationPolicy`, preventing clients from triggering full KV-cache re-announcements that retain evicted blocks in the prefix-cache index.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Client-supplied kv_cache_report_mode=full inside vLLM extra-arg maps causes vLLM to re-announce already-cached KV blocks on subsequent requests, inflating eventDedupFilter reference counts (pkg/kvevents/event_dedup_filter.go:118-139) so later BlockRemoved events are suppressed and evicted blocks stay in the prefix-cache index. This change adds FieldKVCacheReportMode ("kv_cache_report_mode") to the shared nestedTransferParams table (pkg/common/request/sanitize.go:103-117) so both Coordinator and EPP strip or reject it alongside kv_transfer_params and ec_transfer_params. Top-level sanitization fields, /render request exemptions, and trustCaller passthrough behavior remain unchanged.

      ๐Ÿ—๏ธ Design
      • Shared constant and nested sanitization list: FieldKVCacheReportMode (pkg/common/request/constants.go#L96) is added to nestedTransferParams (pkg/common/request/sanitize.go#L103-L117) under vllm_xargs, sampling_params.extra_args, and sampling_params.vllm_xargs.
      • Shared callers across Coordinator and EPP: FindExternalTextFields/StripExternalTextFields and FindTransferParams/StripTransferParams all iterate nestedTransferParamsIn, so Coordinator ingress (pkg/coordinator/server/handlers.go:140-173) and EPP Director.sanitizeClientFields (pkg/epp/requestcontrol/director.go:517-545) automatically enforce strip, reject (400 on external text routes), and trustCaller (overridden by x-llm-d-unsanitized-body: true from Coordinator passthrough).
      • Invariants preserved: nestedKey (pkg/common/request/sanitize.go:123-171) skips unmarshaling clean json.RawMessage objects with zero heap allocations, decodes and deletes keys when literal or \-escaped keys appear, and leaves RenderRequest routes and post-sanitization EPP plugin mutations untouched.
      ๐Ÿงช Example (How It Works)
      1. An untrusted client sends POST /v1/chat/completions with {"vllm_xargs":{"kv_cache_report_mode":"full","k":"v"}}.
      2. Under default strip policy, StripExternalTextFields calls nestedKey, removes kv_cache_report_mode (including escaped or duplicate keys), and forwards {"vllm_xargs":{"k":"v"}}.
      3. Under reject policy on external text routes, FindExternalTextFields returns "vllm_xargs.kv_cache_report_mode" and Coordinator/EPP returns HTTP 400 before producers or workers see the request; on token routes (/inference/v1/generate, token-array /v1/completions), StripTransferParams strips the key instead of rejecting.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: โœ… Deep Review Verdict: APPROVE: No blocking issues found in deep review; ready to approve & merge.
    • 12. PR [OPEN] fix(epp): keep a qos-contract downgrade against agent-lineage band inheritance ๐Ÿ“„ Diff (llm-d/llm-d-router#4793 by @dmitripikus) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 3d (>3d Priority Bump) ๐ŸŸข DEEP REVIEW [No Review Yet]: Verdict Approve ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Standard correctness bug fix; sitting 3d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+127/-25 lines across 5 file(s)] A RequestHeader processor may declare a request's priority through requesthandling.PriorityKey, and another may publish a resolved band through agentlineage.ResolvedBandKey (Fixes #4728).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind bug

      What this PR does / why we need it:

      A RequestHeader processor may declare a request's priority through requesthandling.PriorityKey, and another may publish a resolved band through agentlineage.ResolvedBandKey. The Director applied the resolved band after the RequestHeader phase unconditionally, so with qos-contract in enforce-limits mode and agent-lineage enabled, a request carrying x-parent-session-id had its downgrade replaced by the parent's band:

      • qos-contract moves an over-commit request one class down and declares that priority;
      • agent-lineage resolves the stamped child to its parent's live band, which is the team's committed class, and publishes it;
      • the Director applied that band last, undoing the downgrade.

      The request was then served at the committed class while holding no concurrency slot and paying no daily charge, so a team could run past its commits.

      This PR makes a declared priority a ceiling on a resolved band: when a RequestHeader processor declared a priority through PriorityKey, the Director applies min(resolved band, declared priority). A resolved band can lower a declared priority but never raise it.

      The rule covers every declared priority, not only downgrades. In enforce-limits mode qos-contract declares the served class on every request, in contract or downgraded, so the team's class becomes the highest band any of its requests can get:

      • a downgraded request keeps its lower class, whatever band a resolver computes (the bug above);
      • an in-contract request can no longer be raised above its team's class by inheriting a higher parent band either.

      When no priority was declared, for example with qos-contract in report-only mode or not enabled, the resolved band still replaces the seeded objective priority, so agent-lineage inheritance can still raise a child above its own objective as designed.

      The qos-contract README limitation "do not combine enforce-limits with agent-lineage" is removed, and both plugin READMEs document the precedence.

      Which issue(s) this PR fixes:
      Fixes #4728

      Release note:

      A priority declared by a RequestHeader plugin through `request-priority` is now a ceiling on the band `agent-lineage` resolves: the Director applies the lower of the two, so band inheritance can lower a declared priority but no longer raise it. `qos-contract` in `enforce-limits` mode declares a class on every request, so no request is served above its team's class: a downgraded request keeps its lower class instead of inheriting its parent's committed class, and an in-contract request is not raised above its class. `qos-contract` in `enforce-limits` mode can now be combined with `agent-lineage`.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Caps any band resolved via agentlineage.ResolvedBandKey by a RequestHeader-declared fwkrh.PriorityKey in Director.HandleRequest (min(resolvedBand, declared)). This stops agent-lineage band inheritance from undoing a qos-contract downgrade when qos-contract runs in enforce-limits mode alongside agent-lineage. When no PriorityKey is declared (such as in report-only mode or when qos-contract is disabled), ResolvedBandKey still replaces the seeded objective priority unchanged.

      ๐Ÿ—๏ธ Design
      • Cap at application time (pkg/epp/requestcontrol/director.go:386-398): Before Admit, if both agentlineage.ResolvedBandKey and fwkrh.PriorityKey are present on reqCtx.SchedulingRequest, Director.HandleRequest computes resolvedBand = min(resolvedBand, declared) and writes it to priority, reqCtx.Priority, reqCtx.SchedulingRequest.Objectives.Priority, and the request_prio OTel span attribute.
      • Tree inheritance invariant: agent-lineage still records the uncapped inherited band on the child node in agent_lineage.go, so a later in-contract grandchild does not inherit a sibling/parent's temporary downgrade; each child is capped independently by its own PriorityKey declaration.
      • Plugin ordering: qos-contract produces TenantKey alongside PriorityKey, and agent-lineage consumes TenantKey optionally, so OrderPlugins orders qos-contract before agent-lineage.
      • Contract & docs: pkg/epp/framework/interface/requesthandling/keys.go:28-32 documents PriorityKey as a ceiling on resolved-band, and both agentlineage/README.md and qoscontract/README.md document the precedence and lift the incompatibility limitation.
      ๐Ÿงช Example (How It Works)
      1. Root request R under tenant-1 is within_contract for critical (priority 100): qos-contract sets PriorityKey=100, and agent-lineage records R at band 100.
      2. Child request C arrives with x-parent-session-id: R and exceeds team-1 concurrency, so qos-contract downgrades it to standard (PriorityKey=10, no slot or charge).
      3. agent-lineage resolves C from R's live node and publishes ResolvedBandKey=100.
      4. Director.HandleRequest reads resolvedBand=100 and declared=10, applies min(100, 10) = 10, and admits/schedules C at priority 10 instead of 100.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: โœ… Deep Review Verdict: APPROVE: No blocking issues found in deep review; ready to approve & merge.
    • 13. PR [OPEN] fix(epp): reject duplicate PriorityKey and TenantKey producers at startup ๐Ÿ“„ Diff (llm-d/llm-d-router#4797 by @dmitripikus) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 3d (>3d Priority Bump) ๐ŸŸข DEEP REVIEW [No Review Yet]: Verdict Approve ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Standard correctness bug fix; sitting 3d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+241/-1 lines across 5 file(s)] A RequestHeaderProcessor changes a request's priority or tenant by declaring requesthandling.PriorityKey or requesthandling.TenantKey in Produces() (Fixes #4729).
      ๐Ÿ“„ View Full PR Description

      What this changes

      A RequestHeaderProcessor changes a request's priority or tenant by declaring requesthandling.PriorityKey or requesthandling.TenantKey in Produces(). The Director copies the declared value onto the request after each processor runs (applyDeclaredOverrides). With two producers, the last one in plugin order wins, and nothing reports the overwrite, so reordering plugins silently changes the result.

      This adds Config.Validate() and calls it from the runner's config-load path. It rejects a configuration in which more than one RequestHeaderProcessor declares the same override key, naming the plugins in execution order:

      failed to load the configuration - requesthandling.PriorityKey is declared in Produces() by more than one RequestHeaderProcessor (qos-a/qos-contract, qos-b/qos-contract); at most one may produce it

      TenantKey gets the same check, since it has the same last-wins behavior.

      agentlineage.ResolvedBandKey sets the priority through a separate path; its precedence over PriorityKey stays tracked in #4728.

      Limitation

      The check reads the Produces() declaration, not what a plugin writes at runtime. qos-contract declares both keys in every mode, but in report-only mode it writes neither. So the EPP also rejects two report-only instances, or a report-only instance next to an enforcing one (for example, to trial a new contract beside the live one), even though they would not overwrite each other. This PR keeps the strict rule. Allowing those setups would mean making qos-contract's Produces() depend on its mode, which can follow if the setup turns out to be needed.

      The EPP now rejects at startup a configuration in which more than one RequestHeaderProcessor declares requesthandling.PriorityKey or requesthandling.TenantKey in Produces(). Previously the last producer in plugin order silently won.

      Changes

      • pkg/epp/requestcontrol/request_control_config.go: add Config.Validate, checking Produces() of each RequestHeaderProcessor.
      • cmd/epp/runner/runner.go: call Validate after OrderPlugins so the reported order matches execution order. All startup paths (Kubernetes, file discovery, --validate-config) go through this function.
      • pkg/epp/framework/interface/requesthandling/keys.go: document the one-producer rule.

      Tests

      • TestConfig_Validate_RequestOverrideProducers: unit matrix for duplicate PriorityKey, duplicate TenantKey, both duplicated, one producer per key, one plugin producing both, unrelated key, no producers.
      • TestTwoPriorityProducersRejectedAtStartup: two qos-contract instances fail through the production config path. The instances are report-only because that is the smallest valid configuration; the test exercises the declaration check described under Limitation, not a runtime overwrite.
      • TestSinglePriorityProducerAcceptedAtStartup: one qos-contract instance still loads.
      go test ./pkg/epp/requestcontrol/... ./cmd/epp/runner/... ./pkg/epp/datalayer/...
      go vet ./pkg/epp/requestcontrol/... ./cmd/epp/runner/...

      Fixes #4729

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Prevents silent last-writer-wins overwrites when multiple RequestHeaderProcessor plugins declare requesthandling.PriorityKey or requesthandling.TenantKey in Produces(). Adds (*requestcontrol.Config).Validate() and invokes it at startup in (*Runner).parseConfigurationPhaseTwo right after topological ordering (OrderPlugins), failing config load with the conflicting plugins listed in execution order. agentlineage.ResolvedBandKey precedence (#4728), datalayer.BuildRegistry multi-producer rules for namespaced keys, and qos-contract's unconditional Produces() in report-only mode remain unchanged.

      ๐Ÿ—๏ธ Design
      • **Validation method (request_control_config.go:133-165):** Config.Validate() checks c.requestHeaderPlugins for fwkrh.PriorityKey and fwkrh.TenantKey via requestHeaderProducers, joining errors with errors.Join when more than one processor declares either key.
      • **Startup wiring (runner.go:1017-1024):** parseConfigurationPhaseTwo calls r.requestControlConfig.Validate() immediately after r.requestControlConfig.OrderPlugins(dag), covering K8s setup, --validate-config, and runWithFileDiscovery while ensuring error output reflects execution order rather than map-iteration order.
      • **Interface contract (keys.go:24-29):** Documents the single-producer invariant on PriorityKey and TenantKey.
      ๐Ÿงช Example (How It Works)
      1. An EndpointPickerConfig configures two qos-contract plugins (qos-a and qos-b), both implementing RequestHeaderProcessor and declaring PriorityKey and TenantKey in Produces().
      2. parseConfigurationPhaseTwo builds the registry and DAG (BuildRegistry passes because both declare the same Go types), then OrderPlugins(dag) orders the unranked plugins alphabetically as qos-a/qos-contract, qos-b/qos-contract.
      3. r.requestControlConfig.Validate() detects two producers for both keys and returns joined errors, failing startup with failed to load the configuration - requesthandling.PriorityKey is declared in Produces() by more than one RequestHeaderProcessor (qos-a/qos-contract, qos-b/qos-contract); at most one may produce it (and likewise for requesthandling.TenantKey).
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: โœ… Deep Review Verdict: APPROVE: No blocking issues found in deep review; ready to approve & merge.
    • 14. PR [OPEN] sidecar: name the prefill rank in MoRI-IO bodies at --moriio-dp-size 1 ๐Ÿ“„ Diff (llm-d/llm-d-router#4803 by @satyamg1620) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 3d (>3d Priority Bump) ๐ŸŸข DEEP REVIEW [No Review Yet]: Verdict Approve ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (P/D disaggregation, sidecar, & coordinator); sitting 3d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+201/-39 lines across 7 file(s)] With --kv-connector nixlv2 --moriio-write-mode and the default --moriio-dp-size 1, the sidecar keeps the x-data-parallel-rank headers the EPP (or a gateway) set on each request, but writes remote_dp_rank: 0 with... (Fixes #4792)
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind bug

      What this PR does / why we need it:

      With --kv-connector nixlv2 --moriio-write-mode and the default --moriio-dp-size 1, the sidecar keeps the x-data-parallel-rank headers the EPP (or a gateway) set on each request, but writes remote_dp_rank: 0 with remote_dp_rank_override: true into both kv_transfer_params bodies. vLLM's MoRI-IO connector reads the decode body's remote_dp_rank as the prefill rank to send the "blocks ready" notify to, and with remote_dp_rank_override only the decode rank equal to it sends that notify. When the prefill request runs on rank 1, the decode side notifies prefill rank 0, or does not notify at all.

      At --moriio-dp-size 1 the sidecar picks no rank, so this PR leaves the headers as they are (the contract from #3821 and docs/disaggregation.md) and makes the bodies follow them:

      • Both write-mode bodies carry the rank the prefill request is sent to as remote_dp_rank, or 0 when the prefill request has no rank header. This is the EPP's x-llm-d-prefiller-data-parallel-rank, or the client's x-data-parallel-rank when the EPP sends none.
      • Serial dispatch uses a valid remote_dp_rank returned by the prefill response in place of that rank on the decode body. vLLM's MoRI-IO prefill returns the rank it ran on. At size 1 the sidecar used to replace it with 0.
      • The serial decode body always carries is_request_leader: true, as it already did above size 1 and as the parallel decode body already does. The EPP picks the decode and prefill ranks separately, so they can differ.

      Behavior with --moriio-dp-size above 1 is unchanged. MORIIO_README.md documents the size-1 behavior, and says that the prefill request's remote_dp_size of 1 makes the connector connect only to decode rank 0, so decode workers with more ranks still need --moriio-dp-size.

      Which issue(s) this PR fixes:

      Fixes #4792

      Release note _(write NONE if no user-facing change)_:

      pd-sidecar: with `--moriio-write-mode` and `--moriio-dp-size` 1, `kv_transfer_params.remote_dp_rank` on both MoRI-IO requests names the rank the prefill request is sent to, instead of 0, and serial decode requests carry `is_request_leader: true`.

      Test plan

      • ☑ Serial and parallel write mode at size 1: an EPP prefill rank, the none sentinel, and a gateway rank on both legs each produce bodies naming the prefill request's rank, with the headers unchanged and the decode leader flag set.
      • ☑ Serial write mode at size 1 keeps the rank the prefill response returns.
      • ☑ resolveDecodeDPRank accepts a returned rank at size 1 and falls back to the caller's rank otherwise.
      • ☑ Each part of the fix reverted on its own fails one of the tests above.
      • ☑ go test -race ./pkg/sidecar/...
      • ☑ make presubmit: format, lint, security lint, govulncheck and telemetry pass. verify-boilerplate (.github/scripts/merge-pr-onto-base*.sh from #4598) and verify-review-playbook (unrouted forwardtokens/duration files) fail on main as well.
      • ☑ Real P/D stack on two T4s: with EPP-picked ranks, the MoRI-IO notify computed from each decode body reaches the prefill rank that ran the request (details below).

      Real-stack check

      Stack: two Tesla T4s, vLLM 0.34.1rc1.dev450, NIXL 1.5.2, Qwen/Qwen3-0.6B. The prefill and decode engines each run vllm serve --data-parallel-size 2 across both GPUs. EPP file discovery lists their ranks as rank endpoints (rankByHeader: true), and Envoy, the EPP and the sidecar route each request. The sidecar runs with --moriio-write-mode --moriio-dp-size 1, serial and parallel, built from 3d81f830c and from this branch. Logging proxies in front of both engines capture each request, and engine metrics show which rank ran each leg. Each run sent 8 requests through Envoy.

      • On 3d81f830c, both bodies carry remote_dp_rank: 0 on every request. On this branch they carry the rank the prefill request was sent to, and the serial decode body carries is_request_leader: true. Every leg ran on the rank its header named.
      • Each captured decode body was passed to vLLM's MoRIIOConnectorScheduler.update_state_after_alloc at the decode rank that ran it. Results for "notify goes to the prefill rank that ran the request":
      Dispatch3d81f830cThis branch
      Serial2 of 8 (5 send no notify)8 of 8
      Parallel3 of 8 (the requests whose prefill ran on rank 0)8 of 8

      The engines run NixlConnector, which ignores these fields. Serial requests returned 200 and moved the prompt KV over NIXL on both builds. In parallel runs the decode proxy answered the decode request itself, because stock NixlConnector asserts on a write-parallel decode body (do_remote_prefill with empty remote_block_ids) and the engine exits. Without any rank header, the parallel bodies and the NIXL serial decode body name rank 0 even when the prefill engine's frontend picked another rank. A MoRI-IO prefill response returns its rank, which serial dispatch uses.

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Fixes MoRI-IO WRITE-mode (--kv-connector nixlv2 --moriio-write-mode) at the default --moriio-dp-size 1 so kv_transfer_params.remote_dp_rank names the prefill request's data-parallel rank instead of 0 and serial decode always sets is_request_leader: true. Serial dispatch also preserves any valid non-negative remote_dp_rank returned by the prefill engine at size 1. Request x-data-parallel-rank headers, READ-mode behavior, and --moriio-dp-size > 1 routing remain unchanged.

      ๐Ÿ—๏ธ Design
      • prefillDPRank resolves the effective prefill rank matching setPrefillDPRank: reads prefillDPRankKey from context (populated from x-llm-d-prefiller-data-parallel-rank in pkg/sidecar/proxy/dispatch.go:151-159, with none stored as ""), falls back to x-data-parallel-rank when absent, and defaults to 0 on empty or invalid values.
      • runNIXLV2Serial and buildNIXLV2ParallelKVParams (shared by HTTP and handleNIXLV2VLLMGRPC) use prefillDPRank when MoRIIODPSize <= 1 without overwriting x-data-parallel-rank headers.
      • resolveDecodeDPRank accepts any non-negative whole remote_dp_rank returned by prefill when dpSize <= 1 and falls back to the caller-supplied prefill rank otherwise; prepareNIXLV2SerialDecodeKVParams unconditionally sets is_request_leader: true in WRITE mode so decode rank mismatches still trigger the MoRI-IO notify.
      ๐Ÿงช Example (How It Works)
      1. A request arrives with x-data-parallel-rank: 2 and x-llm-d-prefiller-data-parallel-rank: 1 on a sidecar running --kv-connector nixlv2 --moriio-write-mode --moriio-dp-size 1.
      2. dispatch.go strips x-llm-d-prefiller-data-parallel-rank and stores "1" in context; setPrefillDPRank sets x-data-parallel-rank: 1 on the prefill leg while decode keeps x-data-parallel-rank: 2.
      3. prefillDPRank returns 1, so both prefill and parallel decode bodies (and serial prefill plus serial decode fallback) carry remote_dp_rank: 1 and remote_dp_rank_override: true, and decode carries is_request_leader: true.
      4. In serial mode, if the prefill response returns kv_transfer_params.remote_dp_rank: 3, resolveDecodeDPRank keeps 3 on the decode request instead of resetting it to 0.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: โœ… Deep Review Verdict: APPROVE: No blocking issues found in deep review; ready to approve & merge.
    • 15. PR [OPEN] test(perf): add a nightly target for the endpoint-attribute parity config ๐Ÿ“„ Diff (llm-d/llm-d-router#4560 by @MicheleCampi) ๐ŸŸก P1: Medium Priority ๐Ÿ”ง Chore / Docs โฐ Sitting 9d (>3d Priority Bump) ๐ŸŸข DEEP REVIEW [No Review Yet]: Verdict Approve ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Docs, chore, test, or dependency maintenance; sitting 9d (>3d bump P2 -> P1)
      ๐Ÿ“Œ Change Summary: [+106/-6 lines across 3 file(s)] Adds a nightly perf target for the endpoint-attribute parity config of #2059, so the nightly workflow can be dispatched with target: test/perf/config/targets/endpoint-attribute-parity-job1.yaml and give a run comparable with...
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind test

      What this PR does / why we need it:

      Adds a nightly perf target for the endpoint-attribute parity config of #2059, so the nightly workflow can be dispatched with target: test/perf/config/targets/endpoint-attribute-parity-job1.yaml and give a run comparable with optimized-baseline-job1.

      It fixes two problems of the parity config added in #2393:

      • The EPP did not start with it. endpoint-attribute-scorer is an Alpha plugin, and the config did not set allow-experimental-plugins. epp --validate-config on its plugin config returns plugin 'ea-kv-cache-scorer' (type: 'endpoint-attribute-scorer') has Alpha stability level, but command line flag --allow-experimental-plugins is not set.
      • It lacked the inferencePool, modelServers, proxy and tracing sections of optimized-baseline.yaml, so a run would have used the chart's default Envoy settings instead of the baseline's.

      The parity config now matches optimized-baseline.yaml except for the two scorers and the flag. The new target matches optimized-baseline-job1.yaml except for the router config. A test in test_run_nightly_perf.py fails when either pair drifts apart.

      No change under .github/: the nightly workflow already takes the target as a workflow_dispatch input.

      Which issue(s) this PR fixes:

      Part of #2059

      Release note _(write NONE if no user-facing change)_:

      NONE

      Testing

      • ☑ epp --validate-config --allow-experimental-plugins accepts the parity plugin config, built from main at 32a075e2.
      • ☑ The new test passes, and fails on the parity config as it is on main (missing flag), with the flag added but without the missing sections, and with a changed scorer weight.
      • ☑ python3 -m unittest in test/perf: 47 tests pass.
      • ☑ make signed-commits-check, check-latest-tags-strict, verify-boilerplate.

      I have not dispatched the nightly workflow (it needs the project's GKE credentials).

      I used an AI coding agent for the analysis and the change; I reviewed it and can answer for every line.

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Repairs the endpoint-attribute parity benchmark Helm values in test/perf/config/router-configs/endpoint-attribute-parity.yaml and adds a matching nightly target manifest so the nightly workflow can run an apples-to-apples comparison against optimized-baseline-job1. The existing baseline target, baseline router config, and scheduled workflow triggers remain unchanged.

      ๐Ÿ—๏ธ Design
      • Router parity config (test/perf/config/router-configs/endpoint-attribute-parity.yaml): Sets router.epp.flags.allow-experimental-plugins: "true" for the Alpha endpoint-attribute-scorer plugin and mirrors inferencePool, modelServers, proxy, and tracing from test/perf/config/router-configs/optimized-baseline.yaml.
      • Nightly target (test/perf/config/targets/endpoint-attribute-parity-job1.yaml): Mirrors test/perf/config/targets/optimized-baseline-job1.yaml with setup.router_config pointed at endpoint-attribute-parity.yaml; run_nightly_perf.py derives test_name = "endpoint-attribute-parity-job1" so results and trend state stay separate from optimized-baseline-job1.
      • Drift guard (test/perf/test_run_nightly_perf.py:590-617): Compares both targets and both router configs after popping allow-experimental-plugins, pluginsConfigFile, and pluginsCustomConfig, then verifies all non-swapped plugins and remapped schedulingProfiles match identically.
      ๐Ÿงช Example (How It Works)
      1. A maintainer dispatches .github/workflows/nightly-router-perf-test-optimized-baseline-10k-1k.yaml with target: test/perf/config/targets/endpoint-attribute-parity-job1.yaml.
      2. test/perf/run_nightly_perf.py loads endpoint-attribute-parity-job1.yaml, sets test_name to endpoint-attribute-parity-job1 and Helm release name to endpoint-attribute-parity, and config/charts/routerlib/templates/_epp-ha.tpl converts allow-experimental-plugins: "true" into --allow-experimental-plugins=true alongside Envoy proxy and pool settings matching optimized-baseline.yaml.
      3. run_nightly_perf.py and test/perf/trend.py store the run record under runs/endpoint-attribute-parity-job1/ and compare against prior endpoint-attribute-parity-job1 runs without affecting optimized-baseline-job1.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: โœ… Deep Review Verdict: APPROVE: No blocking issues found in deep review; ready to approve & merge.

    3.1.3 Case 3: Has Actual Comments to Make (58)

    You or the tool have actual review comments, inline diff suggestions, open comment threads, un-LGTM'd discussions from other reviewers, or issue follow-ups to make. Bulk-edit or customize comments separately before sending.
    ๐ŸŽฏ Filter Case 3 by Priority:
    • 1. PR [OPEN] fix(epp): rewrite the streamed model name across chunk boundaries ๐Ÿ“„ Diff (llm-d/llm-d-router#3921 by @SuperMarioYL) ๐Ÿ”” Unread @mention ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix ๐Ÿšจ Prod / Real Workload Bug โฐ Sitting 31d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: Hold / Comment on PR ๐Ÿ”ด High Effort ๐Ÿ“ฃ Directly @mentioned ๐Ÿ’ฌ New reply after your comment โœ… My comments addressed (Approve only)
      ๐ŸŽฏ TL Priority Triage: TL Triage: Production/real-workload bug (streaming SSE/proxy response framing or payload corruption ('partial SSE lines')); sitting 31d (>3d open PR, already P0); ๐Ÿ”” Unread @mention
      ๐Ÿ“Œ Change Summary: [+406/-5 lines across 4 file(s)] The streamed-response path rewrites the internal target model name back to the name the client asked for one ext_proc body chunk at a time, matching a whole "model":" " inside the chunk (Fixes #3849).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind bug

      What this PR does / why we need it:

      The streamed-response path rewrites the internal target model name back to the name the client asked for one ext_proc body chunk at a time, matching a whole "model":"<target>" inside the chunk. Envoy splits a streamed body at arbitrary byte offsets, so a boundary inside that pattern leaves both halves unmatched and the event reaches the client with the name picked by the InferenceModelRewrite rule.

      The parse side already carries partial SSE lines, but the forward path rewrites and sends raw per-chunk bytes, so that carry does not cover it.

      This PR adds a bounded per-request carry on the forward path. The tail of a forwarded chunk that could still become an occurrence once the next chunk arrives is held back and prepended to that chunk, and flushed on the end-of-stream chunk or before the trailers when the body ends there. The rewrite runs before the hold-back so a complete occurrence that ends exactly at the boundary stays intact, and the carry is skipped entirely when the names are equal or either is empty, so a deployment without a model rewrite forwards the bytes it forwards today.

      Bytes are held back only when a chunk ends inside the model-name pattern, and the hold-back is at most one byte shorter than the pattern, so the delay is one chunk for a tail of that size and zero otherwise.

      The test cuts a two-event stream at each of the 270 byte offsets and requires the client-facing name at every one. On main, 42 of those cuts leak the target name; with this change none do. A second test covers the trailer-terminated stream, and a third checks that a request with no rewrite active forwards every byte unchanged. A hermetic full-duplex case now drives the same trailer-terminated stream through the real server in all three execution modes, so the body-before-trailers ordering is not only proven against a mock stream; that harness scripts the Envoy side, so it still does not settle whether a real Envoy accepts a body mutation after it has sent the trailers, which needs a cluster e2e run.

      Which issue(s) this PR fixes:
      Fixes #3849

      Release note _(write NONE if no user-facing change)_:

      Fixed the streamed response model-name rewrite so a chunk boundary inside the model name no longer exposes the backend model name to the client.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Fixes streamed model-name rewriting in the EPP response path (pkg/epp/handlers/server.go) so target model names split across Envoy ext_proc body chunks are rewritten to the client-facing model name. Holds back any chunk-ending suffix that matches a proper prefix of "model":"<target>" or "model": "<target>" in per-request modelNameRewriteCarry, composes behind dropRequestedUsageFrame, and flushes on endOfStream or before ResponseTrailers. Non-streaming finishResponse rewriting and requests without active model rewriting remain unchanged.

      ๐Ÿ—๏ธ Design
      • RequestContext.modelNameRewriteCarry (https://github.com/llm-d/llm-d-router/blob/7977f219a803b4bd1174db32d850a694740d4305/pkg/epp/handlers/server.go#L264): bounded per-request byte slice holding a trailing suffix shorter than the compact or spaced model pattern.
      • modelNameRewriter.carryLen and RequestContext.rewriteStreamedModelName (https://github.com/llm-d/llm-d-router/blob/7977f219a803b4bd1174db32d850a694740d4305/pkg/epp/handlers/server.go#L1290-L1330): returns chunk untouched when TargetModelName == IncomingModelName or either is empty; otherwise prepends carry, runs rewriteModelName first so complete occurrences ending at the chunk boundary are rewritten immediately, and when !endOfStream, initializes needles if needed and stores any trailing proper-prefix suffix.
      • Streaming pipeline and trailer flush (https://github.com/llm-d/llm-d-router/blob/7977f219a803b4bd1174db32d850a694740d4305/pkg/epp/handlers/server.go#L1036-L1038, https://github.com/llm-d/llm-d-router/blob/7977f219a803b4bd1174db32d850a694740d4305/pkg/epp/handlers/server.go#L1064-L1070): runs after dropRequestedUsageFrame in ResponseBody, and on ResponseTrailers runs rewriteStreamedModelName(held, true) whenever held or modelNameRewriteCarry is non-empty so updateStateAndSendIfNeeded (pkg/epp/handlers/server.go:1411-1438) emits the body response before ResponseTrailers.
      ๐Ÿงช Example (How It Works)
      1. Request routes "llama" (IncomingModelName) to "llama-canary" (TargetModelName).
      2. Upstream chunk 1 ends with data: {"model":"llama- (endOfStream=false): rewriteStreamedModelName holds "model":"llama- in modelNameRewriteCarry and forwards data: {.
      3. Chunk 2 starts with canary","choices":[]}: rewriteStreamedModelName prepends the carry to form "model":"llama-canary"..., rewrites it to "model":"llama"..., and forwards the event.
      4. If the stream instead ends on ResponseTrailers after chunk 1, Process passes dropRequestedUsageFrame(nil, true) through rewriteStreamedModelName(held, true) with endOfStream=true and sends the held bytes (EndOfStream: false) ahead of TrailersResponse.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Active debate / open discussion (4 open, 1 resolved) - Back-and-forth between @blacksoxx, @satyamg1620 and @SuperMarioYL on server.go, server_model_rewrite_test.go:163; not yet resolved.
      โœ… Comments Addressed: All 1 inline comment(s) resolved; Unresolved review thread(s) from @blacksoxx, @satyamg1620
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: Hold / Comment on PR (manual review required; not cleared for auto-approve).
    • 2. Issue [OPEN] Migrate to generic endpoint attribute filter/scorer and deprecate legacy metrics code (llm-d/llm-d-router#2059 by @liu-cong) ๐Ÿ”” Unread @mention ๐Ÿ”ด P0: High Priority โœจ Feature Request ๐Ÿ”ต ISSUE: 3-PR Sequence Approved; Gate Defaults Migration on Nightly Perf ๐Ÿ”ด High Effort ๐Ÿ“ฃ Directly @mentioned ๐Ÿ’ฌ New reply after your comment
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Session affinity, SLO latency, & plugin DAG); ๐Ÿ”” Unread @mention
      ๐Ÿ“Œ Change Summary: Issue #2059 tracks graduating endpoint-attribute-filter and endpoint-attribute-scorer and deprecating legacy metric scorers (queue-scorer, kv-cache-utilization-scorer, running-requests-size-scorer). In the latest update, MicheleCampi confirmed the agreed 3-PR sequence (#4560 nightly perf target -> Beta promotion -> defaults/routerlib migration and N+2 deprecation), verified that #2848 eliminated the earlier never-scraped warmup divergence, added multi-zone EKS vLLM CPU parity numbers, and traced the earlier Envoy 503 to a keep-alive race (#4813).
      ๐Ÿ“„ View Full Issue Description

      We now support filter/scorer for arbitrary endpoint attributes:
      filter
      scorer

      They can replace legacy runningrequest, queuedepth and kvcaheutilization scorers.

      To graduate them, we should:

      • ☐ Benchmark using the generic scorer vs. legacy ones and confirm performance parity
      • ☐ Deprecate legacy filter/scorers
      ๐Ÿ’ฌ Discussion Summary: Earlier comments scoped out removing Metrics struct fields (used by 12 other consumers) and confirmed core-metrics-extractor publishes WaitingQueueSize, RunningRequestsSize, and KVCacheUsagePercent as ScalarMetricValue attributes (#3628). On 2026-11-30, liu-cong approved promoting endpoint-attribute-scorer and endpoint-attribute-filter to Beta first, deferring utilization-filter to #2275, and keeping multicluster scorers out of #2059. On 2026-12-02, MicheleCampi locked in the 3-PR rollout order, confirmed #2848 aligned never-scraped endpoint handling across legacy and generic scorers, reported EKS vLLM CPU parity (prefix-cache hit 0.747 legacy vs 0.762 endpoint-attribute; TTFT p50 0.449s vs 0.418s), and attributed the prior 503 to Envoy/vLLM keep-alive timing (#4813).
      โš–๏ธ Verdict: 3-PR Sequence Approved; Gate Defaults Migration on Nightly Perf
    • 3. PR [OPEN] Add SGLang HiCache with MooncakeStore over RoCE/RDMA ๐Ÿ“„ Diff (llm-d/llm-d#2630 by @bermanamit) ๐Ÿ”” Unread @mention ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 65d (>3d Priority Bump) ๐Ÿ”ด DEEP REVIEW: Request Changes (4 new comment(s)) ๐Ÿ”ด High Effort ๐Ÿ“ฃ Directly @mentioned ๐Ÿ’ฌ New reply after your comment
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity); sitting 65d (>3d bump P1 -> P0); ๐Ÿ”” Unread @mention
      ๐Ÿ“Œ Change Summary: [+646/-1 lines across 14 file(s)] Adds a tiered-prefix-cache path where SGLang HiCache uses MooncakeStore over RDMA (RoCE) as its L3 tier. Each pod gets its own SR-IOV VF, matched to its RDMA device at startup.
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind guide

      What this PR does / why we need it:
      Adds a tiered-prefix-cache path where SGLang HiCache uses MooncakeStore over RDMA (RoCE) as its L3 tier. Each pod gets its own SR-IOV VF, matched to its RDMA device at startup. Includes a per-namespace Mooncake master helper and an OpenShift SR-IOV network helper.

      Verification
      2 decode pods (Qwen3-32B, TP=2, H100), through the EPP with load-only scoring: the first time the second pod received a ~7.2k-token prompt, it loaded 7,168 tokens from Mooncake instead of recomputing.

      Limitations

      • Requires one RDMA-capable SR-IOV VF per pod (OpenShift helper included).
      • Tested only with aggregated serving.
      • Currently, the deployment uses one rail per node. .

      Benchmarking

      • Compared against the native/cpu baseline with the same CPU RAM size (200GB per tp-rank).
      • The workload profile was based on guide_tiered-prefix-cache_1 with three stages โ€” 5 req/s for 150s (warm-up), then 6 and 10 req/s for 120s each .
      • MooncakeStore reused 60% of prompt tokens from the shared L3 cache, compared to 35% reused from the native deployment's host-memory cache, reducing mean TTFT by 80% in steady state (after warmup).
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Active debate / open discussion (1 open, 1 resolved) - Back-and-forth between @liu-cong and @bermanamit on patch-sglang.yaml:43; not yet resolved.
      ๐Ÿงช Nightly CI: Guide changes do not affect test-nightly (changed guide content is not exercised by any nightly-e2e workflow (guides/tiered-prefix-cache/README.md: only changes README commands scoped to: CONNECTOR=mooncake, MODEL_SERVER=sglang; ACCELERATOR_TYPE=gpu, CONNECTOR=mooncake, MODEL_SERVER=sglang)).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 3 comment(s) on README.md:1, kustomization.yaml:1, README.md:1 - [high] Duplicating all 8 manifests of helpers/mooncake-master-store/ into helpers/mooncake-master-store-sglang/ creates a...
    • 4. PR [OPEN] Add opt-in vLLM tracing overlays for single-stage guides ๐Ÿ“„ Diff (llm-d/llm-d#2725 by @JaredTan95) ๐Ÿ”” Unread @mention ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 56d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: 1 Comment(s) to PR ๐Ÿ”ด High Effort ๐Ÿ“ฃ Directly @mentioned ๐Ÿ’ฌ New reply after your comment
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity); sitting 56d (>3d bump P1 -> P0); ๐Ÿ”” Unread @mention
      ๐Ÿ“Œ Change Summary: [+665/-122 lines across 17 file(s)] Adds 23 opt-in vLLM tracing overlays for optimized-baseline and precise-prefix-cache-routing. They keep the existing model/provider settings, so there's no need to edit each manifest by hand.
      ๐Ÿ“„ View Full PR Description

      Adds 23 opt-in vLLM tracing overlays for optimized-baseline and precise-prefix-cache-routing. They keep the existing model/provider settings, so there's no need to edit each manifest by hand. Also cleans up the tracing docs based on a real cluster run.

      Related to #2703. This covers vLLM Deployments for now.

      Tried this on 4ร— A100 with vLLM v0.31.0:

      • A successful completion returned HTTP 200 and 32 generated tokens. Its Jaeger trace had 10 spans: 9 from EPP and 1 from vLLM, covering routing, tokenization, and inference.
      • vLLM's llm_request had a CHILD_OF reference to EPP's request in the same trace, so the cross-service parent/child link checks out.
      • An unsampled upstream request still returned HTTP 200, with 0 exported traces.
      • After turning model tracing off, inference still returned HTTP 200 and the trace contained only the 9 EPP spans.

      423 Python tests, all 23 tracing overlay renders, README generation, and diff checks passed. Server dry-run passed 20/23; the other 3 need DRA APIs unavailable on Kubernetes 1.31.

      Users of optimized-baseline and precise-prefix-cache-routing can enable vLLM tracing through opt-in overlays without changing their existing model or provider settings.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Replaces commented-out vLLM tracing snippets across 11 patch-vllm.yaml files with a shared opt-in Kustomize Component (guides/recipes/observability/tracing/components/vllm-deployment/kustomization.yaml) and documents outer-overlay composition in docs/operations/observability/tracing.md. All existing modelserver overlays, tokenizer pools, guide matrices, and vllm serve behavior remain unchanged unless the operator composes and applies the tracing component.

      ๐Ÿ—๏ธ Design
      • Shared Kustomize Component (guides/recipes/observability/tracing/components/vllm-deployment/kustomization.yaml:1-63): Targets apps/v1 Deployment with llm-d.ai/role=decode, asserts containers[0].name == modelserver and containers[0].command == [vllm, serve] via JSON Patch test ops, appends --otlp-traces-endpoint=$(OTEL_EXPORTER_OTLP_ENDPOINT), and injects OTEL_SERVICE_NAME, OTEL_POD_NAME (fieldRef: metadata.name), OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_TRACES_EXPORTER, OTEL_TRACES_SAMPLER, OTEL_TRACES_SAMPLER_ARG, and OTEL_RESOURCE_ATTRIBUTES=k8s.pod.name=$(OTEL_POD_NAME).
      • Outer-overlay docs (docs/operations/observability/tracing.md:131-261): Guides operators to create a scratch kustomization.yaml under ${REPO_ROOT}/tracing-.../ referencing the guide's modelserver/<accel>/vllm/<provider> overlay in resources: and vllm-deployment in components:, with an optional GKE Managed OpenTelemetry patch overriding OTEL_EXPORTER_OTLP_ENDPOINT.
      • Dynamic test coverage (scripts/tests/test_modelserver_tracing.py:1-358): Discovers all vllm provider overlays across optimized-baseline and precise-prefix-cache-routing, verifies EXPECTED_INCOMPATIBLE (ocp, biren, iluvatar, LeaderWorkerSet dynamic slices, and */vllm/tokenizer pools) fail or stay untouched while all compatible overlays preserve non-tracing config and OTEL_POD_NAME ordering.
      ๐Ÿงช Example (How It Works)
      1. Operator sets GUIDE_NAME=optimized-baseline, ACCELERATOR_TYPE=gpu, MODEL_SERVER=vllm, INFRA_PROVIDER=base and runs the snippet in docs/operations/observability/tracing.md:161-171 to create ${REPO_ROOT}/tracing-optimized-baseline-gpu-vllm-base/kustomization.yaml.
      2. kubectl apply -k builds guides/optimized-baseline/modelserver/gpu/vllm/base first, then applies vllm-deployment after patch-vllm.yaml has set command: ["vllm", "serve"] and args, appending --otlp-traces-endpoint=$(OTEL_EXPORTER_OTLP_ENDPOINT) and injecting the OTEL_* env vars (expanding $(OTEL_POD_NAME) into k8s.pod.name at container start).
      3. To disable tracing later, the operator reapplies ${MODEL_SERVER_BASE} (docs/operations/observability/tracing.md:490), restoring the Deployment without the tracing flag or OTEL_* variables.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Feedback addressed, awaiting reviewer LGTM - All 14 review thread(s) with @gyliu513, @liu-cong resolved by @JaredTan95; no active debate, awaiting final LGTM from @gyliu513, @liu-cong.
      ๐Ÿงช Nightly CI: Guide changes do not affect test-nightly (guides/optimized-baseline/README.md: README edit leaves the commands and variables kustomize standup extracts unchanged; guides/optimized-baseline/modelserver/amd/vllm/base/patch-vllm.yaml: comment/whitespace-only change; guides/optimized-baseline/modelserver/cpu/vllm/base/patch-vllm.yaml: comment/whitespace-only change; guides/optimized-baseline/modelserver/gpu/vllm/base/patch-vllm.yaml: comment/whitespace-only change; +10 more).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 1 comment(s) on tracing.md:145 - [medium] The support table still lists npu (base) under Optimized Baseline only, even though Precise Prefix-Cache Routing now...
    • 5. Issue [OPEN] [RFC] native tokens-in/tokens-out (llm-d/llm-d-router#3617 by @sagearc) ๐Ÿ”” Unread @mention ๐Ÿ”ด P0: High Priority โœจ Feature Request ๐Ÿ”ต ISSUE: needs-body-update ๐Ÿ”ด High Effort ๐Ÿ“ฃ Directly @mentioned
      ๐ŸŽฏ TL Priority Triage: TL Triage: Architectural proposal / high-impact feature; ๐Ÿ”” Unread @mention
      ๐Ÿ“Œ Change Summary: RFC for native tokens-in/tokens-out execution via existing vLLM (vllm-rs) and SGLang (sgl-router) frontends. The original body describes routing client requests through a decoupled Rust frontend and an HTTP generation hop back to the gateway/Coordinator, whereas the thread converged on pod-local Loopback mode (frontend sidecar dialing a Coordinator loopback callback listener) as the cross-engine Coord-Text-Tok alternative to StageRPC (render.go / PR #3992).
      ๐Ÿ“„ View Full Issue Description

      Overview

      Recent work in vLLM and SGLang separates the frontend from the engine:

      <img width="2757" height="781" alt="Image" src="https://github.com/user-attachments/assets/0947ca20-47b8-47a2-8103-29b62821b097"; />

      This opens an opportunity to reuse their frontends for input and output processing, while inference gateways route native tokens-in/tokens-out requests to the engines.

      <img width="3301" height="1740" alt="Image" src="https://github.com/user-attachments/assets/6ef16e02-5094-47b6-87ac-2e5208963a21"; />

      For the proposed Rust frontend โ†’ HTTP generation โ†’ llm-d gateway โ†’ engine design:

      Pros:

      • Moves the existing preprocessing layer ahead of scheduling, preserving its logic.
      • Keeps parsing state in the frontend handling the request, reducing the context carried through the gateway and engine.
      • Gives EPP richer scheduling information from existing preprocessing, without adding new logic (reordering existing steps).
      • EPP focuses on routing canonized view of all api server requests.

      Cons:

      • Requires an HTTP generation adapter for vLLM.
      • EPP would need to be paired with frontends to test/simulate other api server endpoints.
      • Replaces the direct IPC connection (frontend->engine) with an HTTP hop through the gateway.

      The main tradeoff is greater reuse of the frontend pipeline in exchange for a maintained remote-generation contract. Full feature parity depends on what the generation endpoint can represent.

      SGLang
      No code changes expected. Set --worker-urls to the coordinator URL.

      [!NOTE]

      APIs like OAI/Anthorpic/ollama are being offloaded from sglang's server to sgl-router, keeping sglang-server focused on tokens-in/tokens-out @rainj-me

      vLLM
      Code changes needed to send generate requests over HTTP instead of ZMQ.

      Alternative approach

      <img width="3979" height="1100" alt="Image" src="https://github.com/user-attachments/assets/40dade84-7b45-4ab9-83eb-3dca76c2882d"; />

      Alternative approach - pros:

      • The renderer is tested and mature.
      • The stack already exists for vLLM.

      Alternative approach - cons:

      • Rendering and derendering require upstream maintenance.
      • They support only a subset of the APIs.
      • Since derendering is stateful, we need to attach request context to the generation request and carry it through derendering and possibly engine calls.
      • We have no equivalent for SGLang.
      [!NOTE]

      the same approach also applies when sending requests without coordinator.

      References

      cc @vMaroon @elevran @roytman @nilig @hickeyma @ahg-g @liu-cong

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Retains #3617 as the cross-engine Loopback RFC (vLLM and SGLang) under tokenize-once umbrella #3991, while #4828, #4829, #4830, #4838, #4839, and PR #4347 track concrete implementation gaps and parity work.

      ๐Ÿ—๏ธ Design

      In Loopback mode, Coordinator terminates public text routes (/v1/chat/completions, string /v1/completions, /v1/responses, /v1/messages), runs handlers.go validation and header/body sanitization, attaches an internal correlation ID (#4829), and forwards to a pod-local vllm-rs or sgl-router sidecar over 127.0.0.1 (or UDS). The sidecar renders and tokenizes once and calls back into Coordinator's vllm.Inference / sglang.api.v1 / /inference/v1/generate callback listener, which joins the client context, trace, and cancellation signal and runs EPP + P/D worker stages. Pre-tokenized Coord-Tok-Tok traffic bypasses the sidecar.

      ๐Ÿงช Example (How It Works)

      Client POST /v1/chat/completions -> Coordinator ingress (handlers.go sanitization + RejectStatefulResponsesFields + validRequestID + correlation ID) -> loopback forward to pod-local sidecar -> sidecar tokenizes once and dials Coordinator callback listener -> correlation-ID join -> EPP + encode/prefill/decode workers.

      ๐Ÿ’ฌ Discussion Summary: Maintainers (@ahg-g, @sagearc, @elevran) converged on co-locating the frontend as a pod-local sidecar inside the Coordinator pod using VLLM_RS_REQUEST_WORKER_THREADS for in-pod CPU scaling rather than a separate deployment. Following @ahg-g's audit against PR #3992, #4828 (SGLang Loopback), #4829 (correlation-ID join, headers, single trace, cancellation, unmatched-callback rejection), and #4830 (shared ingress sanitization, stateful /v1/responses rejection, token-route bypass) were filed alongside #4838/#4839 and PR #4347. After initially supporting re-scoping #3617 to vLLM, @hickeyma rolled back that +1 after talking with @sagearc, proposing to keep #3617 open as the cross-engine (vLLM + SGLang) Loopback RFC under #3991 while @sagearc updates the stale body.
      โš–๏ธ Verdict: needs-body-update
    • 6. PR [OPEN] feat(epp): replicate prefix windows as Redis streams ๐Ÿ“„ Diff (llm-d/llm-d-router#4019 by @smurthy024) ๐Ÿ”” Unread @mention ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 29d (>3d Priority Bump) ๐Ÿ”ด DEEP REVIEW: Request Changes (3 new comment(s)) ๐Ÿ”ด High Effort ๐Ÿ“ฃ Directly @mentioned
      ๐ŸŽฏ TL Priority Triage: TL Triage: Feature implementation / request; sitting 29d (>3d bump P1 -> P0); ๐Ÿ”” Unread @mention
      ๐Ÿ“Œ Change Summary: [+2810/-125 lines across 17 file(s)] redis-syncer writes each replica's whole approximate-prefix window to Redis every syncInterval and reads every peer's whole window back, even when nothing changed (Fixes #3971).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind performance
      /kind feature

      What this PR does / why we need it:

      redis-syncer writes each replica's whole approximate-prefix window to Redis every syncInterval and reads every peer's whole window back, even when nothing changed. The cost scales with endpoints x window size x replicas, independent of request rate.

      This PR adds windowReplication: incremental. A replica appends each new prompt once to a per-replica Redis stream next to the existing hash and keeps a small marker (epoch base tip size) in its hash field. Peers read only the prompts past the tip they already hold. maxBytesPerSecond (default 8 MiB/s per replica, each direction) caps stream bytes per second, so a cold window after a restart reaches peers over several ticks instead of in one large transfer.

      • full stays the default and its Redis commands are unchanged (covered by a test).
      • Readers in both modes merge stream peers and whole-value peers, so a fleet can switch one replica at a time.
      • A lost write, a missing or truncated stream, or a window regression starts a new epoch, and readers reread from base. A transaction with an unknown outcome is settled on the next tick from XLEN.
      • New Alpha metrics: redis_syncer_stream_bytes_total, redis_syncer_stream_budget_exhausted_total, redis_syncer_stream_resets_total, redis_syncer_stream_peer_lag_generations, redis_syncer_set_batch_duration_seconds.

      Values opt in by implementing datalayer.SequencedValue. PrefixHashSet implements it, with Base set to the generation of Prompts[0]. Other contributors are unaffected.

      Benchmarks

      Redis wire bytes (requests and replies) for two replicas, one endpoint, 2000-hash prompts with uniformly distributed hashes, miniredis, Apple M5 Pro. full is the main code path.

      Steady state, one tick (BenchmarkSyncerWireBytesPerTick):

      WindowTickfull: wire B/tickfull: time/opincremental: wire B/tickincremental: time/op
      72k hashesunchanged3,888,4552.98 ms1,4400.15 ms
      72k hashesone 128k-token prompt3,888,4313.01 ms65,4310.34 ms
      500k hashesunchanged26,994,07114.96 ms1,4540.15 ms
      500k hashesone 128k-token prompt26,994,04714.93 ms65,4540.36 ms

      In incremental mode the tick cost grows with the prompts added and is the same at 72k and 500k hashes. The 65 KB tick is the new 16 KB prompt written once and read once, plus command overhead.

      Cold catch-up, 20 endpoints x 500k hashes, a peer with nothing cached, 50 ms ticks, default budget (BenchmarkSyncerColdCatchUp):

      ModeTicks to convergeTotal wire bytesLargest tick
      full1269,952,720269,952,720
      incremental172164,868,12716,888,547

      The largest incremental tick is the one-second burst for each direction. Later ticks move about 0.4 MiB per direction.

      Not in this PR (O(window) local CPU that both modes share, tracked separately):

      • The approximate-prefix producer's Read copies the window twice per tick: 0.87 ms and 8.2 MB allocated per endpoint at 500k hashes.
      • The union Aggregate runs over all peer windows whenever any peer changes.
      • Get on the request path runs Read plus Aggregate.

      Which issue(s) this PR fixes:
      Fixes #3971

      Release note _(write NONE if no user-facing change)_:

      redis-syncer: add `windowReplication: incremental`, which publishes approximate-prefix windows as per-replica Redis streams and sends only new prompts each tick, and `maxBytesPerSecond` (default 8 MiB/s) to cap stream traffic per replica. The default `full` mode is unchanged.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Discussion replied by author, awaiting reviewer LGTM - @smurthy024 responded to feedback (Open review comment/discussion from @saylee21 (not yet LGTM'd/approved by @saylee21)); awaiting reviewer sign-off for consensus.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 3 comment(s) on cross_replica_syncer.go:134, redis_stream.go:152, redis_stream.go:118 - [high] SequencedValue leaks stream wire serialization and a 1 MiB transport retraction rule into...
    • 7. Issue [OPEN] [Flow Control] North Star Architecture & Cross-Pillar Interface Contracts (llm-d/llm-d-router#4021 by @LukeAVanDrie) ๐Ÿ”” Unread @mention ๐Ÿ”ด P0: High Priority โœจ Feature Request ๐Ÿ”ต ISSUE: Agree with Direction ๐Ÿ”ด High Effort ๐Ÿ“ฃ Directly @mentioned ๐Ÿ’ฌ New reply after your comment
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Admission, flow control, & saturation); ๐Ÿ”” Unread @mention
      ๐Ÿ“Œ Change Summary: Top-level Flow Control tracking issue and cross-pillar interface contract spanning Workload, Capacity, Sharing, Signals, and SessionStateRegistry across four seams: (A) structured (TenantID, ProgramID) carrier and session/lineage identity split; (B) two-level TenantNode -> ProgramQueue sharing with per-tenant program caps and weighted in-flight reclamation victim selection; (C) BandSelectionPolicy standardization and blocked higher-band Cold Hold precedence; and (D) shared response stop_reason, harness compaction hints, and cached-token credit in VTC accounting.
      ๐Ÿ“„ View Full Issue Description

      What would you like to be added:

      Establish a top-level tracking issue and shared cross-pillar interface contract for llm-d-router Flow Control across four pillars (Workload, Capacity, Sharing, and Signals) and SessionStateRegistry.

      Why is this needed:

      Contributors across Google, IBM, and Red Hat, and more have active RFCs and open PR stacks touching request identity, session state, fair sharing, cross-band scheduling, capacity admission, and in-flight reclamation. Several in-flight PRs (#3939, #3956, #3958, #3962, #3892, #3925, #3173) share request attributes, queue keys, and dispatch invariants. Locking down the boundary contracts in one public issue lets each pillar ship independently without rework.

      Architectural Baseline

      Flow Control governs admission, queueing, fairness, and overload reclamation upstream of endpoint scheduling under four shared constraints from Flow Control: North Star (Foundations & Client Wire Conventions):

      • Flow Control decides when a request may dispatch via a pre-placement pool Cold Hold, the scheduler decides where it lands, and PreRequest commits a prefix-discounted Endpoint Lease against the chosen endpoint.
      • Admission, attribution, and reclamation use standard inference engine APIs, response usage fields, and Prometheus metrics without custom engine patches.
      • Each EPP replica keeps local lineage, session, and lease state anchored by scraped endpoint metrics, avoiding any cross-replica store on the admission path.
      • Client-supplied workload and harness hints default to untrusted at ingress. Untrusted hints may lower standing inside a tenant's share or tighten deadlines, while tenant identity and priority-band elevation require trusted gateway stamping.
      Pillar Map, Design Docs & Tracking Epics
      Pillar / LayerPublic Design DocsTracking Epic & Active WorkContacts
      Foundations & Wire ConventionsFlow Control: North Star (North Star, Foundations, Client Wire Conventions tabs)This umbrella issue, #3632@LukeAVanDrie, @RishabhSaini
      WorkloadFlow Control: North Star (Workload tab)Epic #2794 (#3934, PR #3939)@RishabhSaini, @LukeAVanDrie
      SharingFlow-Control: SharingSharing Epic (to be linked) (#3471, #2920, #3734, PRs #3892, #3925)@praveingk, @D-Sai-Venkatesh
      CapacityCapacity RFC (in progress)Epic #3110 (PR #3111, #3154 / PR #3173, #3077, #3603)@LukeAVanDrie
      SignalsSignals RFC (open)#2485, #2487, #3491, #3438@LukeAVanDrie, @madhugoutham
      Session & Harness State (Cross-Cutting)Session State Unification, Extending Session State Producer / Harness SignalsEpic #3796 (#3957, PRs #3956, #3958, #3962, #3371)@zetxqx, @liu-cong, @D-Sai-Venkatesh, @praveingk, @satyamg1620
      Cross-Pillar Interface Contracts
      Seam A: Structured (TenantID, ProgramID) Carrier, Identity Split & Pre-Admission SessionState

      Owners: @RishabhSaini, @zetxqx, @liu-cong, @D-Sai-Venkatesh, @praveingk, @satyamg1620

      • Flow Control plugins read live session state before admission via RequestHeaderLayer (pkg/epp/datalayer/data_graph.go, PR #3956) and DynamicRequestAttribute (pkg/epp/framework/interface/scheduling/attributes.go, #3957), avoiding direct producer lookups across plugins.
      • agent-lineage (DerivedRootKey, PR #3939) publishes the program root for Flow Control fairness across parented sub-agent trees (Claude Code, Codex, opencode). agent-identity (pkg/epp/framework/plugins/requesthandling/requestheader/agentidentity/agent_identity.go, AgentIdentityKey) stays distinct as the leaf/thread identity for KV and endpoint session affinity.
      • In pkg/epp/requestcontrol/director.go, Director.HandleRequest sets InferenceRequest.FairnessID to the raw fairness header before runRequestHeaderProcessors and overwrites FairnessID with <escaped-tenant>/<program> afterward. Seeding immutable TenantID on scheduling.InferenceRequest (pkg/epp/framework/interface/scheduling/types.go) before RequestHeader runs, and setting ProgramID (DerivedRootKey falling back to AgentIdentityKey) right after RequestHeader, lets RequestHeader plugins, PreRequest / ResponseBody hooks, TenantNode queues, and EvictionItem policies read structured fields directly (FairnessID stays populated for flat single-level policies).
      • For #3958 and #3962, SessionStateRegistry (pkg/epp/framework/plugins/requesthandling/dataproducer/sessionstate/registry.go) keys program-level counters (TurnsTaken, ServedInputTokens, ServedOutputTokens, TotalCachedTokens) on (TenantID, ProgramID) so LASStrategy (pkg/epp/framework/plugins/flowcontrol/fairness/program-aware/strategy_las.go) and turn-priority (#3796) track multi-agent programs accurately under composeFairnessIDs. Phase 2 under #3796 nests per-thread state (thread_id, parent_id, WAITING-TOOL / IDLE) beneath the program record for thunder-agent (#3371) and KV residency.
      Seam B: Two-Level Tenant -> Program Sharing, Program Cap & Over-Share Reclamation

      Owners: @praveingk, @D-Sai-Venkatesh, @RishabhSaini, @LukeAVanDrie

      • weighted-fair-share-fairness-policy (pkg/epp/framework/plugins/flowcontrol/fairness/weightedfairshare/weightedfairshare.go, #3471) indexes flowWeights by flat FlowKey.ID (pkg/epp/framework/interface/flowcontrol/flow.go). Evolving Sharing into a two-level TenantNode -> ProgramQueue hierarchy keyed by (TenantID, ProgramID) enforces tenant weights regardless of how many concurrent agent roots a tenant spawns.
      • A configurable per-tenant program cap routes overflow roots into a per-tenant default program queue, bounding queue cardinality per tenant and retiring agent-lineage's interim global map cap.
      • Stage 2 reclamation (pkg/epp/flowcontrol/controller/internal/reclamation.go and pkg/epp/framework/interface/flowcontrol/eviction.go) picks the victim tenant inside the target sheddable band by highest instantaneous weighted in-flight share (running_tokens / weight), then delegates intra-tenant victim ordering to Workload's 4-class kind ordering (background > subagent_exploratory > subagent_critical > foreground).
      Seam C: BandSelectionPolicy Standard & Blocked Higher-Band Cold Hold Rule

      Owners: @loicmarchal, @praveingk, @LukeAVanDrie

      • Cross-band slot allocation standardizes on BandSelectionPolicy (pkg/epp/framework/interface/flowcontrol/plugins.go, #2920), avoiding a separate band-picker interface. PR #3892 (cross-band-fairness-policy) proceeds under existing monotonic scalar UsageLimit ceilings.
      • When Capacity Cold Hold lands in Processor.dispatchCycle (pkg/epp/flowcontrol/controller/internal/processor.go), a Cold Hold refusal on the selected head of any non-empty priority band blocks dispatch from all strictly lower bands for that cycle, including minimum-share and work-conserving fallback slots, and arms ReclamationController against evictable bands strictly below the blocked band.
      Seam D: Shared Response stop_reason, Harness compaction Hints & Cached-Token Credit

      Owners: @D-Sai-Venkatesh, @RishabhSaini, @zetxqx, @LukeAVanDrie

      • Normalized response stop_reason (tool_call | turn_ended | unknown) and stock harness compaction / fork hints are extracted once across parser and request-header layers to supply SessionState (WAITING-TOOL / IDLE), Workload foreground-join classification, and Capacity between-turns KV residency leases.
      • Because prefix-cache hit ratios depend on the scheduled endpoint, VTC accounting in Sharing charges raw prompt tokens at dispatch and credits cached prompt tokens post-placement / post-response (TotalCachedTokens in #3958 alongside capacity-ledger #3110).
      Immediate Tracking Checklist
      • ☐ Re-scope #2794 as the Workload pillar epic and land #3939 (@RishabhSaini)
      • ☐ Seed structured TenantID / ProgramID on scheduling.InferenceRequest and key #3958 program state on (TenantID, ProgramID) before #3962 and turn-priority merge (#3796, @zetxqx, @RishabhSaini)
      • ☐ Open the Sharing pillar epic covering TenantNode -> ProgramQueue, per-tenant program cap, and instantaneous weighted in-flight share victim selection (@praveingk, @D-Sai-Venkatesh)
      • ☐ Land cross-band-fairness-policy (#3892) on BandSelectionPolicy (@loicmarchal)
      • ☐ Publish Capacity Pillar RFC and Cold Hold -> Endpoint Lease integration under #3110 (@LukeAVanDrie)
      • ☐ Track normalized stop_reason and harness compaction hint plumbing under #3796 and #2794 (@D-Sai-Venkatesh, @zetxqx, @RishabhSaini)
      ๐Ÿ’ฌ Discussion Summary: Early threads aligned on Seam A sequencing (#3939 and #4051 have since landed on main) and leaving TenantID empty when unstamped, while @liu-cong and @D-Sai-Venkatesh argued to keep SessionStateRegistry keyed by leaf session ID (decoupling lineage, resource accounting, and thread state) and questioned whether flow-control queues should key on leaf session vs program. @madhugoutham flagged metric cardinality bounds (TenantID-only labels), within-band queue push-out (#4092), conformance gauge semantics, and conflicting 4-class victim orders between Seam B and the Workload doc. On cache warmth (#4161), @LukeAVanDrie and @smurthy024 converged on landing cache classification as measurement first and leaning toward cost-based release rather than flow splits or router residency leases. Most recently (Nov 30), @dongmin0204 benchmarked WFS and LAS on vLLM showing cached prompts are penalized (~11% share vs 50% equal uncached work) because PromptTokenDetails.CachedTokens is ignored, and proposed a WFS PR adding costPerCachedInputToken in ResponseBody.
      โš–๏ธ Verdict: Agree with Direction
    • 8. PR [OPEN] epp: Reserve at pick - close the concurrent-scheduling thundering-herd race ๐Ÿ“„ Diff (llm-d/llm-d-router#4313 by @DolevAdas) ๐Ÿ”” Unread @mention ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 17d (>3d Priority Bump) ๐Ÿ”ด DEEP REVIEW: Request Changes (2 new comment(s)) โณ Need Author Response ๐Ÿ“ฃ Directly @mentioned
      ๐ŸŽฏ TL Priority Triage: TL Triage: Feature implementation / request; sitting 17d (>3d bump P1 -> P0); ๐Ÿ”” Unread @mention
      ๐Ÿ“Œ Change Summary: [+1844/-40 lines across 24 file(s)] Every request is scheduled in its own goroutine as score -> pick -> PreRequest-increment (Part of #1598).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind feature

      What this PR does / why we need it:

      Every request is scheduled in its own goroutine as score -> pick -> PreRequest-increment. A burst of concurrent requests is therefore scored against the same pre-pick snapshot, and the least-loaded endpoint wins every pick: the whole burst lands on one pod (#1598).

      • G1 (pick to dispatch): the in-flight-load counters were only incremented at PreRequest, ~0.4 ms after the pick.
      • G2 (score to pick): request B reads the load, then spends time in other scorers and picking. Meanwhile request A picks. B's scores are already computed, so B never sees A - no matter how fast the accounting is. This is the race the issue describes as "scoring runs before picking ... we are at the mercy of the Go scheduler".

      This PR closes both gaps:
      1. Reserve at pick (closes G1). The scheduler reserves the picked endpoints immediately after each profile run, through the inflight-load-producer. The reservation is added to the InFlightLoad the scorers read, so the next concurrently-scheduled request sees each pick without waiting for dispatch. Reservations are request-scoped plugin-state entries: PreRequest converts them into the real counters, and abandonment rolls them back - a request cannot release a reservation it did not make.
      The reservation is unconditional: it is an accounting fix, not a policy change - the pick is recorded when it happens (not ~0.4 ms later at dispatch), and it alters no scoring or picking decision.

      Reservations count toward the InFlightLoad attribute every consumer reads, not only the load scorers: the utilization filter's
      active-requests conditions and the flow-control saturation detectors also see them, so scheduled-but-not-dispatched requests
      now count toward filtering and shedding thresholds (documented in the producer's README).

      2. Pick-time scoring (closes G2). A load scorer can opt in with scoreAtPick: true:

      filters, other scorers            (concurrent, as before)
      lock(pickMu)                      (one mutex per Scheduler)
          re-run the pick-time scorers  (read the LIVE load: every earlier pick's reservation is already in it)
          picker.Pick                   (unchanged, tie rotation intact)
          reserve the picked endpoint
      unlock

      The critical section holds only the opted-in scorers (token-load-scorer and active-request-scorer), the picker (a sort) and the reservation; filters, prefix hashing and the other scorers stay outside. Measured under full contention: ~12 us per request. Profiles with no opted-in scorer take no lock at all.

      token-load-scorer and active-request-scorer implement scoreAtPick (off by default). Scorers that read scraped model-server metrics cannot benefit - their inputs do not change at pick time (that staleness is the metrics scrape interval, a separate problem).

      Configuration (opt-in):

      plugins:
        - type: inflight-load-producer
        - type: token-load-scorer
          parameters:
            scoreAtPick: true
        - type: max-score-picker

      Validation

      In-process (real producer, scorers, picker, Scheduler.Schedule; a barrier scorer holds a fully concurrent burst at the scoring step - the worst case for G2): with scoreAtPick a burst ends with exactly the per-endpoint load of one-at-a-time scheduling; without it, 0/0/0/16 on the least-loaded endpoint. Non-overlapping requests pick identically ON vs OFF (no behavior change outside bursts). Exactly one reservation per profile run. Mutation checks (lock removed / flag off ) fail the tests. Full suites pass -race.

      Live setup:

      • 4 x Qwen3-14B behind the full Envoy gateway.
      • Each run: 6 bursts of 16 requests with 30k-token prompts, fired on top of 7 long-running loader requests placed 2/2/2/1.
      • A new prompt seed for every run; OFF and ON runs in ABBA order (OFF, ON, ON, OFF, OFF, ON (3 runs per arm)).
      • Placement read from the EPP in-flight gauges.

      Definitions:

      • Excess: requests on the busiest pod above the ideal ceil(total/4). 0 is the one-at-a-time greedy placement.
      • Max TTFT: the slowest TTFT of each burst, averaged over bursts.
      • p: permutation test over bursts. n.s. = not significant.
      profile, EPP log levelexcess OFF -> ONbursts at ideal OFF -> ONmax TTFT OFF -> ON
      token-load, --v=41.83 -> 0.00 (p < 0.0001)2/18 -> 18/189.77 s -> 7.40 s (p < 0.0001)
      active-request, --v=40.67 -> 0.00 (p = 0.004)5/12 -> 12/128.28 s -> 7.41 s (p = 0.002)
      token-load, --v=20.11 -> 0.00 (n.s.)16/18 -> 18/187.52 s -> 7.40 s (n.s.)
      active-request, --v=20.08 -> 0.00 (n.s.)11/12 -> 12/127.53 s -> 7.39 s (p = 0.009)

      Debug logging (--v=4) widens the score-to-pick window to ~1.4 ms per request, which reproduces the race. There, pick-time scoring places every burst exactly like one-at-a-time scheduling and removes ~2.4 s from the slowest request of each burst.

      At production verbosity on this small rig (4 endpoints, one load scorer, idle CPUs), the race left after the reservation is too small to measure, and ON matches OFF. The same holds with the real tokenizer and with a token-load + queue + KV-utilization profile.

      The window size sets the herd's magnitude: a request that reads the load while another is still between its own read and its pick cannot see that pick, so the herd is bounded by how many requests are mid-window at once. This rig is the best case for the unfixed code - one load scorer, 4 endpoints, idle CPUs - and production stacks (several scorers, larger endpoint sets, busier CPUs) sit between the two log levels above; the race also reappears at --v=2 as bursts grow (excess 0.50 at 256 requests). Pick-time scoring does not shrink the window; it makes it irrelevant, because the read happens inside the lock, after every earlier pick's reservation.

      Stock main (no reservation) at --v=4 measured excess 2.08 and max TTFT 10.07 s. That is not distinguishable from reservation-only (1.83, 9.77 s): the live gain comes from pick-time scoring, and the reservation is its accounting prerequisite.

      No regressions:

      • Steady traffic (Poisson 2 req/s, 4k-token prompts): per-pod share and TTFT are identical (p50 0.151 s in both). Scheduler e2e latency averaged 55.6 us OFF vs 47.3 us ON, so the lock adds no measurable cost.
      • Larger bursts (64/128/256 requests, --v=2, one run per arm): ON was ideal in every burst. OFF had one non-ideal burst each at 128 (+1) and 256 (+2), too few bursts for significance.
      • Prefix/P2P profile (4 shared-prefix groups): prefix-cache hit rate 6.3% vs 6.2% and TTFT p50 2.67 s in both. With a prefix scorer in the profile, placement follows cache affinity by design.

      Not addressed by this PR: the default profile (queue, kv-cache-utilization and prefix-cache scorers, no inflight-load-producer) herds on the same rig, with up to 48% of tokens on one pod and the worst TTFT around 25 s. All of its inputs are scraped model-server metrics that stay the same for the whole burst, and pick-time scoring cannot help scorers whose inputs do not change at pick time.

      Which issue(s) this PR fixes:
      Part of #1598 (the scheduling races; the default profile's metric-staleness herd is a separate follow-up)

      Release note _(write NONE if no user-facing change)_:

      the EPP now reserves picked endpoints at scheduling time, and load-based scorers (token-load-scorer, active-request-scorer) can opt in to `scoreAtPick: true`, which re-scores the live in-flight load inside the picker's critical section. Together these close the two races that made concurrent bursts converge on a single endpoint: each pick is visible to the next request immediately, and the burst is placed exactly as one-at-a-time scheduling under the scorer's own cost model. The reservation is always on when the inflight-load-producer is configured; `scoreAtPick` is opt-in and off by default.
      ๐Ÿ’ฌ Discussion Summary: ๐Ÿ”ด Changes requested (no consensus) - Changes requested by @elevran, @ahg-g (3 open thread(s), 23 resolved); debate/feedback not yet resolved.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 2 comment(s) on plugins.go:103, scheduler.go:55 - The test rewrite in TestAddPluginsProfileRunsPickTimeScorers, removal of HasPickTimeScorersForTest, and temporal-prose...
    • 9. PR [OPEN] fix(epp): sum sglang parallel sample usage across stream chunks ๐Ÿ“„ Diff (llm-d/llm-d-router#4799 by @dundysm) ๐Ÿ”” Unread @mention ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 3d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: 2 Comment(s) to PR ๐ŸŸก Medium Effort ๐Ÿ“ฃ Directly @mentioned
      ๐ŸŽฏ TL Priority Triage: TL Triage: Standard correctness bug fix; sitting 3d (>3d bump P1 -> P0); ๐Ÿ”” Unread @mention
      ๐Ÿ“Œ Change Summary: [+296/-11 lines across 10 file(s)] With sampling_params.n above 1, sglang streams each sample of a /generate request as its own sequence: every event carries the sample index, and each sample reports only its own completion_tokens on its final event...
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind bug

      What this PR does / why we need it:

      with sampling_params.n above 1, sglang streams each sample of a /generate request as its own sequence: every event carries the sample index, and each sample reports only its own completion_tokens on its final event (_stream_batch_responses in sglang's tokenizer_manager.py). the sglanghttp and sglanggrpc parsers returned the usage of one finished sample per chunk, and HandleResponseBody merges chunks last-wins, so a streamed n=4 request recorded the output tokens of a single sample. the non-streaming path already sums the samples since #3897, which called out this streaming gap as a follow-up (also noted in #3896 and in the sglanggrpc ParseResponse doc comment).

      the fix:

      • ParsedResponse gets a SampleCompletionTokens map[int]int field: the completion tokens of every sample that finished in the parsed chunk, keyed by sample index. nil when no sample finished, so intermediate chunks are unchanged (the steady-state alloc test still passes).
      • sglanghttp keeps scanning the chunk after the first final event and lists each finished sample (a single-sample stream has no index and lands under 0). sglanggrpc lists each terminal frame by GenerateResponse.index.
      • the handler keeps the per-sample counts on the request context and sets Usage.CompletionTokens (and TotalTokens) to their sum after the other merges, so salvaged usage from an oversized line cannot overwrite the sum with one sample's count. a sample reported twice keeps its latest count instead of being double counted.

      prompt and cached tokens keep their current handling, since every sample shares the prompt. this affects the output token metrics, ntpot/tpot, and anything reading reqCtx.Usage for sglang /generate streams with n > 1; single-sample streams produce the same usage as before.

      tests:

      • TestHandleResponseBodySGLangParallelSamplingAcrossChunks drives http and grpc streams through HandleResponseBody with samples finishing in separate chunks and in one chunk, plus a single-sample stream. on main the parallel cases record 3 of 8, 4 of 13 and 7 of 10 completion tokens; with the fix they record the sums.
      • parser-level cases for SampleCompletionTokens in sglanghttp_test.go and sglanggrpc_test.go.
      go test ./pkg/epp/handlers/... ./pkg/epp/framework/plugins/requesthandling/... ./pkg/epp/framework/interface/... -count=1   # all ok
      golangci-lint run --config=./.golangci.yml ./pkg/epp/handlers/... ./pkg/epp/framework/plugins/requesthandling/parsers/... ./pkg/epp/framework/interface/requesthandling/...   # 0 issues (v2.14.0, same as the builder image)
      go build ./...

      Which issue(s) this PR fixes:

      follow-up to #3896 / #3897 (streaming n > 1 gap noted there; no separate issue).

      Release note _(write NONE if no user-facing change)_:

      the epp now counts the output tokens of every sample for streamed sglang /generate requests with sampling_params.n above 1, over http and grpc, instead of only one sample.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Adds per-sample completion token reporting via SampleCompletionTokens on ParsedResponse so streamed SGLang /generate responses with sampling_params.n > 1 sum completion tokens across all finished samples instead of keeping only one sample's count under last-wins chunk merging. Both sglanghttp and sglanggrpc populate SampleCompletionTokens keyed by sample index on terminal events while leaving intermediate chunks untouched, salvageDroppedSSELine accumulates unindexed counts from oversized (>4 MiB) final SSE events in salvagedCompletionTokens, and HandleResponseBody sums indexed and salvaged sample counts to compute Usage.CompletionTokens and Usage.TotalTokens. Prompt token counting, cached token reporting, and non-streaming /generate responses remain unchanged.

      ๐Ÿ—๏ธ Design
      • Interface (pkg/epp/framework/interface/requesthandling/parser.go): Adds SampleCompletionTokens map[int]int to ParsedResponse, left nil when no sample finishes in a chunk.
      • SGLang parsers: extractStreamingUsage scans every SSE data: line in a chunk and records each finished sample under event.Index (default 0). SGLangGRPCParser.ParseResponse records each finished GenerateStreamItem frame with completionTokens > 0 under int(item.Index).
      • Handler & salvage accumulation (pkg/epp/handlers/response.go, pkg/epp/handlers/usage_salvage.go, pkg/epp/handlers/server.go): Stores sampleCompletionTokens map[int]int and salvagedCompletionTokens int on RequestContext. salvageDroppedSSELine adds dropped oversized event completion tokens into reqCtx.salvagedCompletionTokens. After mergeUsage and salvagedUsage, mergeSampleCompletionTokens overwrites entries by index (preventing double-counting on duplicate reports) and sets Usage.CompletionTokens to salvagedCompletionTokens plus the map sum before metrics emission.
      ๐Ÿงช Example (How It Works)
      1. A streamed HTTP /generate request with sampling_params.n = 2 receives chunk 1 containing non-terminal events for indexes 0 and 1: SampleCompletionTokens is nil.
      2. Chunk 2 delivers an oversized (>4 MiB) terminal event for index 1 (completion_tokens: 5): salvageDroppedSSELine records reqCtx.salvagedCompletionTokens = 5 and reqCtx.salvagedUsage sets PromptTokens: 10, CompletionTokens: 5.
      3. Chunk 3 delivers the terminal event for index 0 (completion_tokens: 3, endOfStream: true): SampleCompletionTokens is {0: 3}, mergeSampleCompletionTokens computes 5 + 3 = 8 for reqCtx.Usage.CompletionTokens (TotalTokens = 18), and end-of-stream output/TPOT metrics record 8.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Discussion replied by author, awaiting reviewer LGTM - @dundysm responded to feedback (Open discussion/comment from @satyamg1620 (not yet LGTM'd/approved by @satyamg1620)); awaiting reviewer sign-off for consensus.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 2 comment(s) on response.go:132, sglanggrpc.go:261 - [low] Once one sample finishes, reqCtx.sampleCompletionTokens != nil stays true for the rest of the stream, so...
    • 10. Issue [OPEN] [RFC] Session-centric prefix-cache affinity and KV-lifecycle orchestration (llm-d/llm-d-router#1979 by @vMaroon) ๐Ÿ”ด P0: High Priority โœจ Feature Request ๐Ÿ”ต ISSUE: Needs Scope & Design Update ๐Ÿ”ด High Effort ๐Ÿ“ฃ Directly @mentioned
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity); ๐Ÿ“ฃ Direct @mention
      ๐Ÿ“Œ Change Summary: Tracking RFC proposing two router-computed identifiers (session_tag and byte-derived continuation_id) and a 3-stage roadmap to replace block-hash visibility with session-level KV indexing, retention, and offload/move/prefetch directives to vLLM. On main (at #4419), significant session foundations have already landed: agent-identity and agent-lineage (AgentIdentityKey, DerivedRootKey), session-state-producer (SessionStateRegistry published as a DynamicRequestAttribute before flow control), session-id-producer / session-affinity-filter, thunder-agent working-set ledger, and kvevents BlockStoredEvent.SessionID/Locality/Ownership (#3910, #3975) alongside native /v1/responses/render and forward-prompt-token-ids. continuation_id, session_tag, V1b node-coordinate removals, and V2/L4 router-to-engine retention directives remain unimplemented.
      ๐Ÿ“„ View Full Issue Description

      Tracker doc https://docs.google.com/document/d/1tM2qI_ElFaIvBy5p564OmrqhLzFzB89P-N7Onhu3UbI/edit?tab=t.0

      What would you like to be added:

      A tracking issue for making a session the addressable unit the router and engine share, so prefix-cache affinity, eviction visibility, and retention all become expressible over one identity. This is the umbrella; each step below lands as its own issue and PR, and each is independently useful.

      The building blocks are two identifiers and three contracts, all computed by the router from request bytes โ€” no tokenization, no engine hashes on the wire:

      • session_tag โ€” policy scope. A router-minted handle for a lineage; declared client ids (prompt_cache_key, previous_response_id, session headers) alias it, content seeds it where they are absent.
      • continuation_id โ€” the addressable node. A content-derived chain position; hash-prefix equality holds exactly when content prefixes are byte-identical, the condition for KV reuse. Recomputable from any resent prefix.
      • Signals in (application -> llm-d): declared identity where present, derived from content where absent; external APIs untouched.
      • Visibility up (engine -> llm-d): session labels ride block-store events, so the index learns what the engine actually holds instead of guessing.
      • Directives down (llm-d -> engine): retain first, then offload / move / prefetch, all addressed in the same coordinates.

      Roadmap:

      • Stage 1 โ€” Affinity (router-only, stock engine)
      • ☐ L1 + L2: content-derived session identity, an estimate-seeded session -> {engine -> extent} index, and covered-fraction affinity through the existing prefix-cache-scorer slot. Tracked in #<L1L2-issue>.
      • Stage 2 โ€” Truth and keeping
      • ☐ L3: fold engine-labeled KV events into the index so extents are truthful under eviction.
      • ☐ L4: retention directives keyed on session identity โ€” keep continuing and declared sessions warm through pauses.
      • ☐ V1a (engine, vLLM): session_tag + continuation_id on the request, echoed on block-store events.
      • ☐ V2 (engine, vLLM): TTL-bounded eviction-priority input keyed by tag.
      • Stage 3 โ€” Session graph
      • ☐ V1b (engine, vLLM): removals reported in node coordinates so visibility survives recompute.
      • ☐ Session graph and program-aware prioritization over the index โ€” retention that reads lifecycle state, co-location that reads program structure.

      The end-state is session/continuation-id-driven communication between the router and the engine: eviction signals, retention, and prefetch all expressed at the session/node language level, with block hashes and token offsets kept engine-internal.

      Boundary that holds across every stage: the engine is the mechanism, llm-d is the meaning. State and policy live in the router; the engine exposes primitives and stays policy-unaware. Engine-side steps are proposals to raise with vLLM, tracked here for the shared picture; the router steps stand on their own against stock engines.

      Why is this needed:

      Prefix-cache routing is solved โ€” approx-prefix-cache-producer and precise-prefix-cache-producer both route to where a prefix is cached, precise truthfully from KV events. What the stack lacks is orchestration of session state: keeping a paused session warm, placing and moving it, prioritizing by program. The truthful visibility it has speaks block hashes โ€” the right level for reusing a prefix, the wrong level for these: a hash-keyed LRU cannot tell a paused session's KV from dead KV, and offload, move, and program-aware placement have no session to address. The root is one missing name โ€” the serving layer has no identity for a session's state. Naming it once, from content and aligned with what the Responses and Messages APIs already declare, lets the orchestration stack build over a single index instead of arriving as separate mechanisms.

      /kind feature
      cc @liu-cong @bongwoobak @hyeongyun0916

      ๐Ÿ’ฌ Discussion Summary: franciscojavierarceo commented twice (2026-07-14 and 2026-09-23) pushing back on the RFC's claims that prefix-cache routing is solved and that byte-identical request content establishes KV reuse. He notes that /v1/responses continuations use per-turn previous_response_id links that require lineage resolution (with conversation_id as a better session root) and rehydration plus renderer-exact tokenization, recommends separating exact token/block-hash placement from tenant-scoped session policy, and proposes aligning the distributed contract with agentic-api (#359, #360, #363, #364).
      โš–๏ธ Verdict: Needs Scope & Design Update
    • 11. Issue [OPEN] [Agentic] Experimental integration of Session Control Protocol (llm-d/llm-d-router#2003 by @liu-cong) ๐Ÿ”ด P0: High Priority โœจ Feature Request ๐Ÿ”ต ISSUE: Needs Architecture Alignment ๐Ÿ”ด High Effort ๐Ÿ“ฃ Directly @mentioned ๐Ÿ’ฌ New reply after your comment
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity); ๐Ÿ“ฃ Direct @mention
      ๐Ÿ“Œ Change Summary: Proposes an experimental EPP plugin integration for SGLang Session Control (/open_session, /close_session, session_params) and Dynamo-style session hints to isolate short-lived subagent KV caches and benchmark throughput/hit-rate gains before deciding on graduation.
      ๐Ÿ“„ View Full Issue Description

      1. Context

      Subagents are often short-lived: they spawn to execute a specific task or tool call, build up a large KV cache, run briefly, and terminate. When serving these workloads without explicit session isolation:

      • Radix Cache Pollution: Ephemeral subagent KV state fills the shared GPU radix tree, competing with and prematurely evicting the long-lived system prompts of primary agent loops.
      • Eviction Overhead: Under memory pressure, evicting temporary subagent chains in hierarchical KV caching systems (e.g., SGLang HiCache) incurs unnecessary PCIe transfer overhead when demoting pages to CPU host memory.

      Upstream open-source SGLang introduced explicit Session Control (/open_session, /close_session, session_params, SessionRadixCache), which isolates session KV caches into dedicated streaming slots outside the main radix tree, protecting them from LRU radix eviction and allowing deterministic memory release.

      NVIDIA Dynamo integrates this SGLang session control mechanism into its serving backend, wrapping session actions (open, close, bind) and routing hints (nvext.session_control, nvext.agent_hints) into OpenAI-compatible interfaces.


      3. Goals

      Provide an experimental plugin integration with this feature and validate with benchmark. The goal is to understand how much benefit this provides. Graduating to a stable plugin will come next depending on the results.

      1. Stateful Session Affinity: Guarantee that all turns belonging to a subagent session ID are pinned to the same backend worker pod hosting that session's KV state.
      2. Lifecycle Management Options:
      • [Preferred] Option 1 (Implicit Session Inference via Hints): Dynamically infer session creation and termination on the backend worker when clients supply request-level metadata/hints (e.g., x-session-control).
      • Option 2 (Explicit Lifecycle Endpoints): Proxy and manage SGLang's explicit session control endpoints (/open_session, /close_session) and session_params payload objects.
      1. Session Load & Capacity Awareness: Incorporate active session counts and worker GPU memory headroom into endpoint scheduling decisions when opening or inferring a new session.
      2. Resilience & Cleanup: Automatically invalidate router session mappings if a worker reaps an idle session or encounters a pod failure.
      3. Performance Validation: Demonstrate improved KV cache hit rates, and higher concurrent session throughput using an agentic trace replay benchmark.
      ๐Ÿ’ฌ Discussion Summary: Prasannajaga proposed both a single consolidated 5-interface session-control plugin and a 5-plugin split, raising open questions on pod-failure fallback (Q1) and SGLang HTTP 400 ambiguity (Q2). vMaroon pushed back against a monolithic plugin, pointing to #1979 to first establish a central session-state store with pluggable metadata. Meanwhile, agent-identity, session-id-producer, session-affinity-filter (session_id strategy), and session-state-producer (SessionStateRegistry, #2531) have already landed in llm-d-router.
      โš–๏ธ Verdict: Needs Architecture Alignment
    • 12. Issue [OPEN] [Test/Eval] Preset-based regression testing and perf trend gating for the router (llm-d/llm-d-router#2314 by @liu-cong) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix ๐Ÿ”ต ISSUE: Clarify Scope (#3580 Landed) & Split Remaining Phases ๐Ÿ”ด High Effort ๐Ÿ“ฃ Directly @mentioned ๐Ÿ’ฌ New reply after your comment
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (Session affinity, SLO latency, & plugin DAG); ๐Ÿ“ฃ Direct @mention
      ๐Ÿ“Œ Change Summary: Proposes a 5-component GPU-free regression and performance evaluation framework for llm-d-router: (1) router-owned config/presets/*.yaml shipped in the EPP image and Helm chart, (2) in-process test/replay/ decision-replay golden and invariant tests inside make test-unit, (3) a 2-5 minute kind + llm-d-inference-sim e2e preset smoke matrix, (4) test/perf/ extensions for preset coverage, 7-day trailing median trend alerting, and /perf-deep, and (5) CONTRIBUTING.md and PR template checklists.
      ๐Ÿ“„ View Full Issue Description
      Status: Initial brainstorming with an AI agent โ€” details are subject to change as implementation starts and maintainers weigh in.

      Problem

      PR volume is rising and we need to merge with high confidence. Per-PR CI today validates plumbing (unit / hermetic integration / sim e2e) but not:

      • Routing semantics โ€” whether the scheduler still makes the same decisions for shipped, workload-tuned plugin configurations.
      • Performance โ€” no per-PR perf signal; test/perf runs nightly but covers only optimized-baseline and performs no baseline comparison (it measures and records, nothing gates or alerts).

      Full E2E benchmarks are too slow and GPU-hungry to gate PRs, so we need fast, GPU-free evaluation.

      Proposal (TL;DR)

      Ship a small set of canned, router-owned presets (config/presets/*.yaml, delivered in the EPP image/chart like default-plugins.yaml) covering well-known workload patterns, and point all evaluation at exactly those presets:

      • Per-PR, seconds โ€” decision-replay goldens: load each preset through the real config loader + scheduler, drive with synthetic endpoint fleets and scripted request streams, and diff routing decisions (chosen endpoint, per-plugin scores, selected profile) against golden files. Invariant scenarios carry semantic properties; golden snapshots catch unintended drift. Updates only via an explicit make update-replay-goldens.
      • Per-PR, 2โ€“5 min โ€” sim e2e smoke matrix: kind + llm-d-inference-sim, one pass per preset with coarse assertions only (requests succeed, expected routing metrics move, no plugin errors). Catches wiring/lifecycle breakage that in-process replay can't see.
      • Nightly, non-blocking โ€” extend test/perf: (a) preset coverage in the nightly matrix (realign test/perf/config/router-configs/ to consume shipped presets), (b) trend comparison vs trailing GCS history โ€” >10% degradation vs 7-day median auto-files an issue, (c) a /perf-deep slash command to run the suite against a PR branch on demand.
      • Policy: CONTRIBUTING + PR template checklist per change type (new plugin / scheduling-behavior change / perf-sensitive path) โ€” reviewer-enforced, no new CI gates.

      Initial preset candidates (seeded from the well-lit-path guide configs, then router-owned): optimized-baseline, pd-disaggregation, precise-prefix-cache-routing, tiered-prefix-cache, predicted-latency-routing, flow-control.

      Phasing

      1. Presets + replay harness + goldens (the "fast dry run")
      2. Sim e2e preset matrix
      3. test/perf extensions (preset coverage, trend comparison, /perf-deep)
      4. CONTRIBUTING + PR template updates

      Non-goals

      • No coupling to the llm-d repo โ€” presets are seeded from guide configs but owned entirely by this repo; guides integration can be revisited later.
      • No per-PR perf gate for now โ€” a benchstat A/B gate over the in-repo Go benchmarks was considered and deferred in favor of nightly trend + /perf-deep.
      • No GPU jobs โ€” GPU nightlies in the llm-d repo continue unchanged.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Umbrella proposal spanning shipped EPP configuration presets, deterministic scheduler replay tests, kind e2e smoke coverage, nightly perf trend gating, and contributor checklists.

      ๐Ÿ—๏ธ Design

      On origin/main, #3580 implemented the 7-day trailing median trend check in test/perf/trend.py with per-metric thresholds in test/perf/config/targets/optimized-baseline-job1.yaml (0.10 CPU/mem, 0.25 scheduler latency), max-of-window plus 2-consecutive-run gating, and router_config exclusion from DIGEST_FILE_KEYS so router config updates preserve baselines. Remaining components (config/presets/, test/replay/, test/e2e/ Presets matrix, /perf-deep, and preset perf targets) remain unimplemented and should align with llm-d.ai/v1 (#2923), Runner config phases + ValidatePluginStability (#2384) + --validate-config (#4175), and chart vs. image packaging boundaries.

      ๐Ÿงช Example (How It Works)

      In cmd/epp/runner/stable_plugin_configs_test.go, TestStablePluginConfigs validates configs via r.parseConfigurationPhaseOne, r.parseConfigurationPhaseTwo, and fwkplugin.ValidatePluginStability(r.PluginHandle, false); test/replay/ should reuse that pipeline before driving pkg/epp/scheduling.

      ๐Ÿ’ฌ Discussion Summary: Opened by @liu-cong on 2026-08-06 with detailed design notes in the first comment. On 2026-10-18, @cne27 volunteered for the Component 4 trend check and merged PR #3580 on 2026-11-02 (implementing test/perf/trend.py, test/perf/config/targets/optimized-baseline-job1.yaml, and report-perf-trend in .github/workflows/nightly-router-perf-test-optimized-baseline-10k-1k.yaml), while open PR #4234 by @chethanuk adds failure-issue reporting when the nightly perf job fails. A 30-day assignment-reminder bot comment posted on 2026-11-19 will auto-unassign @liu-cong in 14 days without an update. On 2026-11-24, @hickeyma praised #3580 and @jtechapps for replay testing, noted that #3580 closes the end-to-end perf regression gap from #956 alongside #3562 (Go microbenchmarks), and emphasized threshold tuning for alert quality.
      โš–๏ธ Verdict: Clarify Scope (#3580 Landed) & Split Remaining Phases
    • 13. Issue [OPEN] [RFC] llm-d-router Profiler (llm-d/llm-d-router#2326 by @liu-cong) ๐Ÿ”ด P0: High Priority โœจ Feature Request ๐Ÿ”ต ISSUE: Clarify Ownership & Capture Schema Contract ๐Ÿ”ด High Effort ๐Ÿ“ฃ Directly @mentioned ๐Ÿ’ฌ New reply after your comment
      ๐ŸŽฏ TL Priority Triage: TL Triage: Architectural proposal / high-impact feature; ๐Ÿ“ฃ Direct @mention
      ๐Ÿ“Œ Change Summary: RFC #2326 proposes the dormant-by-default llm-d-router Profiler (doctor capture bounded in-memory ring buffer + offline doctor analyze Cache Hit Rate Ladder and counterfactual scorer sensitivity pass). Two open PRs carry related building blocks: #3916 (satyamg1620, #3229 Phase 2 /debug/scheduling/recent decision ring buffer with top-5 endpoint trimming by default) and #4205 (sohom-cs, initial pkg/epp/scheduling/capture.Record schema and tools/doctor ladder).
      ๐Ÿ“„ View Full Issue Description

      The google doc has more details.
      Feel free to comment on this issue or in the google doc.

      What is it?

      The llm-d Router Profiler is an on-demand diagnostic tool (analogous to Go's pprof) that solves the black-box routing problem: "Why is my cache hit rate lower than expected?" and "Are my scorers and filters conflicting?"

      How it works (2 Steps):
      1. Capture (5 min): Run doctor capture against router replicas. The router records lightweight, privacy-preserving decision traces (block hashes, filter drops, weights, scores) into a bounded in-memory ring buffer.
      2. Analyze (Offline): Run doctor analyze on the downloaded directory. It replays request fingerprints through mathematical cache simulations and counterfactual scoring to output root-cause findings and remediations.
      Example CLI Output & Actionable Findings:
      $ doctor run --replicas epp-0:9090,epp-1:9090 --duration 5m --fleet-kv-blocks 32768
      LADDER (cache hit rate breakdown)
        Ideal            unbounded shared cache                 74.2%  <-- Workload ceiling (max possible reuse)
        Capacity bound   fleet KV capacity, one shared cache    58.1%  <-- 16.1% lost to GPU RAM capacity limit
        Perfect routing  same capacity split per endpoint       55.4%  <--  2.7% lost to distributed sharding
        Observed         what the router achieved               41.8%  <-- 13.6% lost to router routing deficit
        records: 1420, endpoints: 4, blocks simulated: 28400, dropped: 0
      
      ACTIONABLE ROOT-CAUSE FINDINGS:
        [WARNING]  Hit rate is capacity-bound (16.1% gap)
                   --> Action: Enable CPU KV offloading or scale GPU RAM to stop premature prefix evictions.
        [CRITICAL] Router routing gap detected (13.6% gap)
                   --> Action: Raise 'prefix-cache-scorer' weight from 1.0 to 3.0 so cache affinity wins routing.
        [WARNING]  Dead scorer detected: 'queue-depth-scorer' (weight: 1.0)
                   --> Action: Removing or doubling it flips 0.0% of decisions. Remove to save CPU scheduling time.
      ๐Ÿ’ฌ Discussion Summary: sohom-cs claimed #2326 with a 3-step plan (shared capture buffer with #3229 Phase 2, offline analyze ladder, and counterfactual scorer pass) and opened #4205. liu-cong reviewed #4205 on Nov 23-24 requesting token alignment (PredictedCachedTokens vs EngineCachedTokens) and scheduling profile support for P/D. On Nov 19, tryambak2019 stepped back from the analyzer and offered to own the counterfactual pass once capture stabilizes. On Nov 25, sohom-cs noted counterfactual depends on capture having scorer weights and every candidate's per-scorer scores (#4205 has neither and #3916 trims to top 5 endpoints by default), preferring to keep item 3 with capture unless liu-cong decides otherwise.
      โš–๏ธ Verdict: Clarify Ownership & Capture Schema Contract
    • 14. Issue [OPEN] Anthropic parser: /v1/messages/count_tokens fails the ext_proc call (token-producer "unsupported request body type" + prefix state not found) โ†’ gateway 500 (llm-d/llm-d-router#2807 by @HipHoff) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix ๐Ÿ”ต ISSUE: Close (Fixed Upstream) ๐Ÿ”ด High Effort ๐Ÿ“ฃ Directly @mentioned ๐Ÿ’ฌ New reply after your comment
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (Session affinity, SLO latency, & plugin DAG); ๐Ÿ“ฃ Direct @mention
      ๐Ÿ“Œ Change Summary: POST /v1/messages/count_tokens is parsed by AnthropicParser as a RawPayload with SkipResponseProcessing: true (pkg/epp/framework/plugins/requesthandling/parsers/anthropic/anthropic.go). EPP routes the request and cleanly closes the ext_proc gRPC stream (pkg/epp/handlers/server.go), while DataProducer failures in pkg/epp/requestcontrol/director.go log and continue without failing routing. The HTTP 500 was caused by agentgateway dropping the cleanly closed ext_proc stream without marking processing complete and later failing when attempting to forward response headers on the closed stream.
      ๐Ÿ“„ View Full Issue Description

      What happened

      With the Anthropic parser enabled, every POST /v1/messages/count_tokens routed through the endpoint picker fails at the gateway with HTTP 500 ext_proc failed: failed to send request, while POST /v1/messages from the same clients (same conversations, same body sizes) succeeds. Measured on one production InferencePool over a 72-minute window:

      PathRequestsResult
      /v1/messages/count_tokens158158 ร— HTTP 500, 0 successes
      /v1/messages320320 ร— HTTP 200

      Each failing request lines up, to the second, with these EPP log lines:

      error  failed to prepare per request data  DataProducer "token-producer/token-producer" failed: unsupported request body type, skipping estimation
      error  failed to read prefix plugin state not found

      The Anthropic parser has supported count_tokens since #1509 ("the body is forwarded unchanged as a raw payload"), so the request is accepted โ€” but the raw payload has no typed body, estimateBytes (pkg/epp/framework/plugins/requestcontrol/dataproducer/tokenizer/estimate.go) lands in its default: arm, the prefix plugin finds no state, and the ext_proc stream ends in an error rather than a "skip scoring, pick any endpoint" outcome. The gateway's failureMode: FailOpen does not help because agentgateway only honours it before body bytes have been sent (agentgateway/agentgateway#3362), so the client sees a 500.

      Why it matters: Anthropic-protocol clients call count_tokens for context accounting late in long sessions (Claude Code does, once the conversation is large), so a pool that serves /v1/messages perfectly still kills every long-running client at ~100 turns.

      Environment

      • llm-d-router-endpoint-picker:v0.9.0 (I could not find a fix for this in the v0.10.0 notes; happy to be corrected)
      • agentgateway v1.2.1, InferencePool with endpointPickerRef.failureMode: FailOpen
      • vLLM backend serves /v1/messages/count_tokens directly (present in its /openapi.json); routing the path straight to the Service works.

      Expected

      A request the parser accepts as a raw payload should not fail the ext_proc call when a data producer or scorer cannot use it. For count_tokens specifically, "skip estimation and prefix scoring, choose an endpoint by the remaining scorers (or any healthy endpoint)" would be the right outcome โ€” the response is a token count and gains nothing from cache affinity, as the parser's own comment notes.

      Workaround we run

      An HTTPRoute rule ahead of the InferencePool rule that sends /v1/messages/count_tokens to the vLLM Service directly (bypassing the EPP). We will remove it when this is fixed and released.


      Disclosure: this issue was drafted by an AI coding agent (Claude) on behalf of @HipHoff, who approved filing it and owns it. Evidence is from our own production gateway/EPP logs, aggregated; no request content is included.

      ๐Ÿ’ฌ Discussion Summary: HipHoff reported 100% HTTP 500s on /v1/messages/count_tokens with agentgateway v1.2.1 and EPP v0.9.0 alongside token-producer and prefix plugin error logs. Iceber traced the EPP error logs to non-fatal log-and-continue paths and identified the 500 as an agentgateway bug in handling clean ext_proc stream closes (unlike Envoy). liu-cong asked if the issue should be closed in favor of an agentgateway bug, and Iceber confirmed the fix has landed in agentgateway and this issue can be closed.
      โš–๏ธ Verdict: Close (Fixed Upstream)
    • 15. Issue [OPEN] Support local dp-ranks discovery from kv events (llm-d/llm-d-router#3204 by @sagearc) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix ๐Ÿ”ต ISSUE: Confirmed Bug - Review Fix PR #4392 ๐ŸŸก Medium Effort ๐Ÿ“ฃ Directly @mentioned
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (KV-cache indexing, ZMQ events, & wire fidelity); ๐Ÿ“ฃ Direct @mention
      ๐Ÿ“Œ Change Summary: Confirmed multi-node DP rank mismatch in KV-event subscriber port derivation: EPP offsets ZMQ ports by node-local EndpointMetadata.RankIndex instead of global DP rank, with open fix PR #4392 (#3204) currently missing kv-events-source and replay/snapshot port offsets.
      ๐Ÿ“„ View Full Issue Description

      What:
      Each scheduler publishes KV-cache events on a ZMQ port numbered by its global DP rank (5557 + dp_rank), but the serving listeners on each node are numbered by local rank (30000 + local_index).

      Why it breaks:
      for each kv event, the serving port is guessed from the zmq port offset

      Example
      2 nodes, 4 DP ranks (2 per node), ZMQ base 5557, HTTP base 30000:

      Global DP rankZMQ PUB port (5557 + global)Rust listener (30000 + local)
      Node 00, 15557, 555830000, 30001
      Node 12, 35559, 556030000, 30001

      Ref:
      sglang fix: https://github.com/sgl-project/sglang/pull/39659
      vllm fix: -

      fyi @Amit-Berman @ahg-g @vMaroon @liu-cong @zetxqx

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      EPP maps each pod target port to a node-local RankIndex (0..N-1 per pod), whereas multi-node SGLang schedulers bind ZMQ KV-event PUB sockets at 5557 + global_dp_rank. Open PR #4392 introduces PodDiscoveryConfig.GrpcBasePort to query SGLang GetServerInfo for DeploymentInfo.DpRank, but leaves the newer shared kv-events-source (#3911) untouched and still uses RankIndex for replay/snapshot ports.

      ๐Ÿ—๏ธ Design

      In pkg/epp/datastore/datastore.go, podUpdateOrAddIfNotExist sets EndpointMetadata.RankIndex from the port index in pool.TargetPorts (0, 1 on every node). Both pkg/epp/framework/plugins/requesthandling/dataproducer/preciseprefixcache/extractor.go (subscriberEndpoints) and pkg/epp/framework/plugins/datalayer/source/kvevents/source.go (Extract, from #3911) add RankIndex to SocketPort, EffectiveReplayPort(), and SnapshotSocketPort (with extractor.go honoring meta.ZMQPort from #4288 for file discovery).

      Open PR #4392 adds GrpcBasePort to pkg/kvevents/pool.go (PodDiscoveryConfig) and dials apiv1.SglangServiceClient.GetServerInfo at GrpcBasePort + RankIndex in preciseprefixcache/server_info.go to read DeploymentInfo.DpRank and KvEventSources, retrying asynchronously until the server responds. Three gaps remain in #4392:

      • pkg/epp/framework/plugins/datalayer/source/kvevents/source.go (kv-events-source) is not updated, so shared KV-event pipelines remain broken.
      • finishGRPCSubscriber calls p.subscriberEndpoints(meta) for replayEndpoint and snapshotEndpoint, which still offsets by meta.GetRankIndex() instead of int(dpRank).
      • preciseprefixcache imports SGLang's generated gRPC client directly instead of isolating engine-specific metadata discovery behind pkg/kvevents / an adapter, and GrpcBasePort lacks 1..65535 startup validation.
      ๐Ÿงช Example (How It Works)

      With 2 nodes and 2 local ranks per node (TargetPorts: [30000, 30001], SocketPort: 5557, ReplaySocketPort: 5558), Node 1 runs global DP ranks 2 and 3. Currently EPP subscribes Node 1 endpoints (RankIndex 0 and 1) to 5557/5558 instead of 5559/5560. In PR #4392, GetServerInfo returns DpRank=2 on Node 1 rank 0 so zmqEndpoint becomes :5559, but replayEndpoint from subscriberEndpoints(meta) still computes 5558 + 0 = :5558 instead of 5558 + 2.

      ๐Ÿ’ฌ Discussion Summary: Opened by @sagearc referencing sglang#39659 (GetServerInfo DeploymentInfo.DpRank and KvEventSources) and tagging maintainers. @bermanamit self-assigned on 2026-11-03 and opened PR #4392 on 2026-11-20 (updated 2026-11-22) adding PodDiscoveryConfig.GrpcBasePort to query SGLang GetServerInfo; @paolo-perrone flagged transient error fallback and !publishes subscriber cleanup on #4392 (addressed in latest commit), while architectural gaps remain.
      โš–๏ธ Verdict: Confirmed Bug - Review Fix PR #4392
    • 16. Issue [OPEN] Warm start routing state for new or promoted EPP replicas (llm-d/llm-d-router#3345 by @ahg-g) ๐Ÿ”ด P0: High Priority โœจ Feature Request ๐Ÿ”ต ISSUE: Approve Direction with Refinements ๐ŸŸก Medium Effort ๐Ÿ“ฃ Directly @mentioned
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Session affinity, SLO latency, & plugin DAG); ๐Ÿ“ฃ Direct @mention
      ๐Ÿ“Œ Change Summary: Issue #3345 tracks warm-starting request-path routing state (approximate prefix index, no-hit-lru-scorer ordering, speculative seeds) for new or promoted EPP replicas. @delete-cloud proposes a 3-PR off-request-path CrossReplicaImporter design for approx-prefix: (1) #4141 adds peer-byte version hashing and CrossReplicaPeerReader.PeerSnapshot in redis-syncer; (2) a serial per-contributor importWorker in crossReplicaPublisher pushes changed peer snapshots to ImportCrossReplica off the request path; (3) CrossReplicaSpec.StateTTL (exposed as approx-prefix crossReplicaStateTTL, e.g., 15s) extends Redis field/key expiry to cover in-place restarts.
      ๐Ÿ“„ View Full Issue Description

      What would you like to be added:

      Warm start for a new or promoted EPP replica: bootstrap request-path state (approximate prefix index, no-hit-lru-scorer ordering, speculative seeds) from peers or a shared syncer instead of starting empty.

      Why is this needed:

      On active-passive failover, or when a replica joins an active-active set, the replica starts with no learned routing state, so routing quality drops until it relearns. Carried over from the snapshot bootstrap stage of #1892.

      Part of #1946.

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Replace request-path prefix peer merging with an off-path serial import worker in crossReplicaPublisher fed by versioned PeerSnapshot reads from CrossReplicaSyncer, plus opt-in per-spec StateTTL for rejoin.

      ๐Ÿ—๏ธ Design
      1. Syncer exposes CrossReplicaPeerReader.PeerSnapshot(spec, endpointID) -> (peer, version, ok) using xxhash over sorted peer bytes to skip unchanged decodes/aggregates.
      2. crossReplicaPublisher runs one serial importWorker per CrossReplicaImporter contributor, tracking per-endpoint generation (endpointGen) so deletes cancel in-flight imports and block same-ID re-registration until EventDelete cleanup completes.
      3. approximateprefix implements CrossReplicaImporter to fold peer prompts into its local indexer off-path while keeping Produce local-only, and adds CrossReplicaSpec.StateTTL via NX+GT PEXPIRE in Redis.
      ๐Ÿงช Example (How It Works)

      On failover or restart, SetBatch updates PeerSnapshot version -> importWorker calls approx-prefix.ImportCrossReplica off-path -> standby/restarted EPP matches prefixes against its local indexer in ~0.28 ms without running mergeRemoteHashes or Get+Aggregate during Produce.

      ๐Ÿ’ฌ Discussion Summary: Following measurements in #3678, @delete-cloud benchmarked priority-routing failover on tx_air (100 endpoints, full 31,248-hash windows) and showed three issues: (P1) cold standby Produce merges exceed the 400 ms producer timeout (623-633 ms), (P2) steady-state Produce spends 113-151 ms rebuilding the synced attribute via Get+Aggregate on every request, and (P3) in-place SIGKILL restarts race against the 2s stateTTL (0.3 ms worst margin). @delete-cloud opened #4141 (PR 1) and asked maintainers three questions: (1) whether crossReplicaPublisher should own importWorker, (2) whether StateTTL belongs on CrossReplicaSpec vs per-StateKey syncer config, and (3) whether the Helm chart should expose crossReplicaStateTTL.
      โš–๏ธ Verdict: Approve Direction with Refinements
    • 17. Issue [OPEN] [SGLang] Tiered KV-cache offloading on TPU (llm-d/llm-d#2951 by @tyuchn) ๐Ÿ”ด P0: High Priority โœจ Feature Request ๐Ÿ”ต ISSUE: Align Phase 2/3 & Unblock Release ๐Ÿ”ด High Effort ๐Ÿ“ฃ Directly @mentioned
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity); ๐Ÿ“ฃ Direct @mention
      ๐Ÿ“Œ Change Summary: Roadmap issue tracking SGLang on Google Cloud TPU (sglang-torchtpu) across llm-d well-lit paths. Phase 1 (optimized-baseline, tiered-prefix-cache host-DRAM HiCache on v5p/v7, and pd-disaggregation over raiden with HiCache on both roles) is merged as community with tpu/v5p nightlies for optimized-baseline and tiered-prefix-cache consistently green through 2026-11-26. Phase 2 (tpu/v7/sglang/native/fs on Managed Lustre) and precise-prefix-cache-routing (#2980) remain blocked because v0.1.0-tpu (2026-10-19) is still the only lmsysorg/sglang:*-tpu release tag on Docker Hub; Phase 3 (multi-host wide-EP P/D) awaits SGLANG_RUST_SERVER=1 validation on TPU (#2899), and follow-up PR #3037 (kimi-k3-1 tuning) remains open.
      ๐Ÿ“„ View Full Issue Description

      This issue tracks bringing SGLang on Google Cloud TPU (sglang-torchtpu, published as the lmsysorg/sglang:*-tpu images) to the llm-d well-lit paths that SGLang on NVIDIA GPU already has. The SGLang GPU recipes are the baseline: each TPU item below mirrors an existing modelserver/gpu/sglang overlay, reuses its router configuration, and is validated on tpu7x (2x2x1, 4 chips / 8 TensorCores) GKE node pools. vLLM already covers these paths on TPU (modelserver/tpu/*/vllm), so the guide structure, guide.yaml rows and nightly-lane conventions are in place.

      KV-cache tiering is the thread through all of it: L1 (HBM radix cache) in every overlay, L2 (host DRAM through SGLang HiCache) in the tiered and P/D overlays, and L3 (shared storage) once the engine carries it.

      Goals

      • ☑ Phase 1 - single host: SGLang TPU overlays for optimized-baseline, tiered-prefix-cache (host DRAM tier) and pd-disaggregation (with host DRAM tier on both roles), each community in its guide.
      • ☐ Phase 2 - shared storage: an L3 tier for SGLang on TPU in tiered-prefix-cache, validated with Google Cloud Managed Lustre.
      • ☐ Phase 3 - multi-host: P/D with wide-EP on the Rust HTTP server.
      • ☐ Nightly E2E lanes for the TPU SGLang overlays, promoting them to validated.

      Work items

      Status as of 2026-11-11: โœ… done ยท ๐Ÿšง in review / in progress ยท โฌœ not started ยท โ›” blocked

      #PhaseWell-lit pathSGLang GPU baseline (exists today)SGLang TPU itemStatus
      11Image componentimages/gpu-sglang/{release,nightly}images/tpu-sglang/release tracking the sglang-torchtpu release images (bumped as releases ship)โœ… #2890 (merged 2026-10-27)
      21optimized-baselinegpu/sglang (Qwen3-32B, TP=2), GKE nightlytpu/{v5p,v6,v7}/sglang (Qwen3-32B; v7 = TP=8 on one 2x2x1 node, torch-compile with bucket precompile) + GKE TPU SGLang nightlyโœ… #2890 (merged 2026-10-27)
      31tiered-prefix-cache, host DRAM tier (native/cpu)gpu/sglang/native/cpu (HiCache, 200 GB/rank), GKE nightlytpu/v7/sglang/native/cpu: HiCache with the Torch TPU io backend (page_first_fused layout, 32 GB/rank = 256 GB/pod), --page-size=64, router lruCapacityPerServer row; plus a tpu/v5p/sglang/native/cpu variant (TP=4 on 2x2x1, the pattern of #2890's v5p baseline) so the lane in item 8 can run on the CI cluster's v5p capacityโœ… #2915 (merged 2026-10-29: v7 and v5p overlays plus the v5p nightly lane; validated on tpu7x and on ct5p-hightpu-4t Spot) + #3004 (merged 2026-11-02: variant-level kustomization.yaml the TPU lanes render)
      41pd-disaggregationgpu/sglang: one DisaggregatedSet, 1P (TP=2) + 1D (TP=2), gpt-oss-120b, NIXL, routing sidecar --kv-connector=sglang, GKE nightlytpu/v7/sglang: same DisaggregatedSet shape, 1P + 1D on one 2x2x1 node each (gpt-oss-120b TP=8/EP=8), --disaggregation-transfer-backend=raiden (tpu-sync DMA over the pod network; SGLang's bootstrap/ZMQ rendezvous and the sidecar protocol are unchanged), default pd-disaggregation.values.yamlโœ… merged 2026-10-28 through #2946, which was stacked on #2945 and carried it (#2945 closed as superseded)
      51pd-disaggregation + host DRAM tiernone merged for SGLang GPU (the GLM-5.2 guide has a prefill-only hicache component)HiCache on both roles (--hicache-io-backend=raiden, 32 GB/rank): the prefill restores evicted prefixes from host DRAM instead of recomputing; the decode adds --disaggregation-decode-enable-radix-cache so a follow-up turn reuses the KV it already holds (transferred prefix plus its own response) instead of pulling it from the prefill again. Mirrors sglang-torchtpu's pd_singlehost_kv_offload CI configurationโœ… #2946 (merged 2026-10-28)
      62tiered-prefix-cache, shared-storage tier (native/fs)gpu/sglang/native/fs (HiCache file backend on a RWX PVC)tpu/v7/sglang/native/fs on Managed Lustre, same file backendโ›” release: sgl-project/sglang-torchtpu#1610 (file backend on the TPU host pool) merged 2026-10-29; the overlay waits for the next lmsysorg/sglang:*-tpu release image - as of 2026-11-11 v0.1.0-tpu (2026-10-19) is still the only release tag; the newer dev-kimi-k31-pro-tpu is a dev image
      73Multi-host P/D with wide-EP (Models pillar)models/glm-5-2/modelserver/gpu/sglang (DisaggregatedSet, DEP8, Rust frontend; L2/L3 tiers merged in #2924, tuning in #2997)a Models-pillar guide for SGLang on tpu7x: DisaggregatedSet with DP attention + EP and one listener per DP rank. Prerequisite: the SGLang Rust HTTP server (SGLANG_RUST_SERVER=1, #2899) validated on TPU, which has not been exercised there yet. Multi-host precedent now on main: models/kimi-k3-1 (#3021, merged 2026-11-05) serves Kimi-K3.1-Pro with SGLang on tpu7x as a LeaderWorkerSet of 4 pods per 2x2x4 slice (TP=32 x EP=8, aggregated, HiCache host tier over raiden, Python server); engine tuning follow-up in #3037โฌœ prerequisite: the Rust server validated on TPU
      8allNightly lanesoptimized-baseline, pd-disaggregation, tiered-prefix-cache GKE SGLang lanesthe same three for TPU SGLang: optimized-baseline (v5p, from #2890) green every night 2026-10-28 to 11-10; tiered-prefix-cache (v5p, nightly-e2e-tiered-prefix-cache-gke-cpu-tpu-sglang-native.yaml, 16:00 UTC, from #2915 + #3004) green every night since 2026-11-03; on 2026-11-11 both failed in llm-d-infra's Ensure Nightly Build Image step together with every GKE SGLang lane that day, not in the overlays; pd-disaggregation lane waits for tpu7x capacity in llm-d-infra - the reusable nightly workflow currently skips every tpu/v7 run ("TPU v7 capacity is currently not available"), and the P/D overlay's raiden transport is validated on v7x/v6e only, so it is not ported to v5p๐Ÿšง 2 of 3

      CI note: llm-d's TPU nightlies run on v5p Spot today and llm-d-infra skips every tpu/v7 lane until tpu7x capacity exists, so validated for SGLang on TPU currently means a v5p lane, while the recipes are developed and hand-validated on tpu7x.

      Not tracked as milestone items

      • precise-prefix-cache-routing and predicted-latency-routing SGLang TPU overlays: router-side guides that reuse the baseline overlay; added as small follow-ups, tracked in the guides' support tables. A first precise-prefix-cache-routing attempt (#2980, closed 2026-11-04 for rework) found that --kv-events-config crashes on v0.1.0-tpu because the image lacks libssl-dev for the HiCache hash extension; the Dockerfile fix shipped with sgl-project/sglang-torchtpu#1610, so it also waits for the next release image.
      • Benchmark numbers for the TPU tiers: reported in the overlay PRs and guide READMEs, not here.
      • Raiden's own shared-storage tier for SGLang (the vLLM tpu/v7 fs overlay uses it through TPURaidenOffloadingConnector); SGLang on TPU gets L3 through the HiCache file backend first.
      • sglang-jax; pod-snapshot, omni-serving and multimodal E/P/D on TPU.

      /cc @achandrasekar @liu-cong @ahg-g for visibility

      ๐Ÿ’ฌ Discussion Summary: Awaiting maintainer response; github-actions[bot] posted a 30-day inactivity reminder on 2026-11-27 warning of auto-unassignment in 14 days without a status comment.
      โš–๏ธ Verdict: Align Phase 2/3 & Unblock Release
    • 18. PR [OPEN] scheduling: serve recent decisions on /debug/scheduling/recent ๐Ÿ“„ Diff (llm-d/llm-d-router#3916 by @satyamg1620) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 31d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: 3 Comment(s) to PR โณ Need Author Response ๐Ÿ“ฃ Directly @mentioned
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Session affinity, SLO latency, & plugin DAG); sitting 31d (>3d bump P1 -> P0); ๐Ÿ“ฃ Direct @mention
      ๐Ÿ“Œ Change Summary: [+1193/-7 lines across 11 file(s)] Implements Phase 2 of #3229.
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind feature

      What this PR does / why we need it:

      Implements Phase 2 of #3229. The EPP retains its most recent scheduling decisions in a fixed-capacity ring buffer and serves them as JSON on /debug/scheduling/recent, on the same metrics/admin server as /debug/plugins/state and subject to the same exposure and authentication controls.

      Each decision records the request ID, target model, and one entry per profile run:

      • each filter's candidate count before and after it ran
      • each scorer's identity and configured weight
      • the highest-scoring endpoints by weighted score, each with the raw score every scorer assigned it (traces do not record per-scorer per-endpoint scores, even at full sampling)
      • the endpoints the picker selected
      • the run's error for a failed profile

      The decision carries the picked primary endpoint on success, or the failure reason matching a llm_d_epp_scheduler_failures_total label value on failure. No request payloads or headers are recorded.

      The endpoint is disabled by default. --scheduling-decisions-history sets how many decisions are retained (0 disables collection and the endpoint); --scheduling-decisions-top-endpoints (default 5) caps the endpoints recorded per profile. The recorded model string is truncated to 1024 bytes, so retained state is bounded by these values regardless of traffic.

      The endpoint is available on the controller-manager path. In file-discovery mode the EPP refuses to start when --scheduling-decisions-history is set, because that metrics server applies no metrics-endpoint authentication.

      Design notes:

      • Collection runs through a per-request collector carried in the scheduling context. With no recorder configured, the context carries no collector, and each scheduling stage does one context lookup and records nothing.
      • Failure reasons reuse the Phase 1 values (all_filtered, no_profile_selected, profile_handler_error). Attempts the director rejects before calling Schedule record no decision. A result that Schedule returns together with an error records only the failure reason.
      • Per-scorer scores are trimmed to the top endpoints by weighted score, so the retained entry explains the pick without holding a score for every candidate.
      • Scores are sanitized when recorded: a NaN or Inf raw score is dropped and a non-finite weighted score is recorded as 0. Otherwise one such score would make the endpoint return 500 until that entry leaves the ring.
      • Empty fields serialize as [], so failed attempts with no profile runs still parse with jq '.decisions[].profiles[]'.
      • Phase 3 of the issue (per-request x-llm-d-routing-decision response header) is not implemented here; --emit-endpoint-scores already covers part of that use case via dynamic metadata.

      Which issue(s) this PR fixes:
      Part of #3229

      Release note _(write NONE if no user-facing change)_:

      Added a `/debug/scheduling/recent` endpoint on the EPP metrics/admin server that serves the most recent scheduling decisions: per-filter candidate counts, per-scorer weights, per-endpoint scores for the top endpoints, the picked endpoints, and the failure reason for failed attempts. The endpoint is disabled by default; enable it with `--scheduling-decisions-history` (number of decisions retained) and cap the endpoints recorded per profile with `--scheduling-decisions-top-endpoints`. The endpoint is not available in file-discovery mode, where setting `--scheduling-decisions-history` stops startup with an error.

      Test plan:

      • ☑ Decision recording end to end through Scheduler.Schedule on success (filter counts, scorer weight, per-endpoint scorer scores, picked target)
      • ☑ Decision recording when a profile's filters drain the candidate set (all_filtered failure reason, draining filter stage, profile error)
      • ☑ Ring buffer retention and newest-first ordering, top-K trimming, profile failure entries, nil recorder/collector no-ops
      • ☑ NaN and Inf scores are sanitized at record time and the snapshot still marshals to JSON
      • ☑ The model string is truncated to 1024 bytes and stays valid UTF-8
      • ☑ Empty fields serialize as arrays for failed attempts and drained profiles
      • ☑ An endpoint without metadata does not panic decision collection or the decision commit
      • ☑ A result returned together with an error records the failure reason and no target endpoint
      • ☑ Debug handler GET/405/empty-history responses and setup error paths
      • ☑ File-discovery mode refuses to start when --scheduling-decisions-history is set
      • ☑ make presubmit: every step passes except verify-review-playbook, which fails identically on the base commit 647ca7ca
      • ☑ Kind cluster with simulated vLLM: endpoint 404 before the flag and 200 after; decision fields match the deployed scheduler config; a repeated prompt raises the prefix-cache scorer's raw score from 0 to 1; decision count equals llm_d_epp_scheduler_attempts_total{status="success"}; a director rejection with no endpoints records no decision; the payload contains no null arrays
      • ☑ Kind P/D cluster with real vLLM engines (TinyLlama, NIXL KV transfer): a short prompt records a decode-only decision; a long uncached prompt records both the decode and prefill profiles, and the recorded prefill target is the pod the KV transfer came from; repeating that prompt records a decode-only decision with the prefix-cache raw score raised from 0 to 1
      • ☑ Same cluster with the decode pod relabeled as prefill: the request returns 503 and records an all_filtered decision with no target endpoint, decode-filter going from 2 candidates to 0, and the profile error; llm_d_epp_scheduler_failures_total{reason="all_filtered"} matches
      • ☑ File-discovery mode via docker run: the EPP exits with an error when the flag is set and starts without it
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Adds an opt-in in-memory ring buffer (decisionhistory.Recorder) and GET /debug/scheduling/recent endpoint on the controller-manager metrics/admin server to inspect recent scheduling decisions, including per-filter candidate counts, per-scorer weights, top-K endpoint raw/weighted scores, picked endpoints, and failure reasons. When --scheduling-decisions-history is 0 (default), no collector is allocated and scheduling runs without time.Now() or mutex overhead; file-discovery mode refuses startup when the flag is set because its standalone metrics server has no authentication filter.

      ๐Ÿ—๏ธ Design
      • Configuration and Wiring (options.go, runner.go): Adds --scheduling-decisions-history (default 0) and --scheduling-decisions-top-endpoints (default 5). Controller-manager mode creates decisionhistory.Recorder, attaches it to Scheduler via WithDecisionRecorder, and registers /debug/scheduling/recent via SetupSchedulingDecisionsDebugHandler; file-discovery mode fails startup at runner.go:1396.
      • Collection Lifecycle (scheduler.go, scheduler_profile.go): Schedule calls Begin(requestID, targetModel) (returning nil when disabled), attaches *Collector via ContextWithCollector, and commits in defer (clearing targetEndpoint whenever err != nil). runSchedulerProfile, runFilterPlugins, runScorerPlugins, and runPickerPlugin each look up CollectorFromContext once per stage and record filter counts, raw scores, and top-K endpoints.
      • Bounded State and JSON Safety (decisionhistory.go): Recorder stores up to capacity immutable Decision values under sync.Mutex, truncates Model to 1024 UTF-8 bytes, drops NaN/Inf raw scores and clamps non-finite weighted scores to 0, and initializes slices to [] so JSON never emits null arrays.
      ๐Ÿงช Example (How It Works)
      1. Start EPP with --scheduling-decisions-history=100 --scheduling-decisions-top-endpoints=5.
      2. Request req-1 for my-model enters Scheduler.Schedule: Begin allocates a *Collector, decode-filter narrows 12 endpoints to 4 (FilterRan), kv-cache-utilization-scorer scores the 4 pods (ScorerRan), and Picked retains the top 4 entries and selected default/pod1, then Commit writes the Decision into the ring.
      3. Operator runs GET /debug/scheduling/recent on the authenticated metrics port and receives JSON with decisions[0] showing candidatesBeforeFilters: 12, filter drop 12 -> 4, topEndpoints with weightedScore and per-scorer raw scorerScores, and targetEndpoint: "default/pod1".
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Active debate / open discussion (12 open, 0 resolved) - Back-and-forth between @gyliu513 and @satyamg1620 on scheduling_debug.md, scheduling_decisions_debug.go:63; not yet resolved.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 3 comment(s) on decisionhistory.go:112, scheduler_profile.go:274, options.go:507 - [low] NewRecorder panics in make([]Decision, capacity) when capacity is negative, whereas topK < 1 is clamped and zero...
    • 19. Issue [OPEN] [RFC] Sampled request/response capture for training-data collection for fine-tuning & RL (llm-d/llm-d-router#4078 by @ScraperNerd18) ๐Ÿ”ด P0: High Priority โœจ Feature Request ๐Ÿ”ต ISSUE: Out of EPP scope; keep payload capture in gateway or custom ext_proc ๐Ÿ”ด High Effort ๐Ÿ“ฃ Directly @mentioned
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Admission, flow control, & saturation); ๐Ÿ“ฃ Direct @mention
      ๐Ÿ“Œ Change Summary: RFC proposing an opt-in EPP plugin (with a new bounded request/response body capture hook on the request context) that samples traffic deterministically by request ID and FairnessID (samplePercent, samplePercentByFairnessID), buffers up to 64 MiB in an async drop-on-full queue, and exports correlated prompt/completion pairs to an ingest endpoint. Code inspection on origin/main shows fwkrc.Response (pkg/epp/framework/interface/requestcontrol/types.go) currently carries no response body bytes (streaming chunks are forwarded directly in StreamingServer.HandleResponseBody / Director.HandleResponseBody with only Usage/StreamedEvents parsed), fwksched.InferenceRequest (pkg/epp/framework/interface/scheduling/types.go) carries parsed Body rather than raw bytes (Request.RawBody lives on handlers.RequestContext and is overwritten on Director.repackage), RequestHeaderProcessor runs inside Director.HandleRequest after body buffering and modelRewriteIfNeeded (and before AgentIdentityKey fallback/admission), and requests with SkipResponseProcessing close the ext_proc stream before any response hook runs.
      ๐Ÿ“„ View Full Issue Description

      Overview

      We want to sample a small fraction of live inference traffic at the router and export correlated request/response pairs to an ingest endpoint, to build a supervised fine-tuning corpus from production traffic. Not RL โ€” no reward signal, no policy update; just harvesting (prompt, completion) pairs.

      The reason we looked at the EPP is that it already carries the identity we want to sample by. Our per-client sampling key is the fairness ID โ€” the same identity that already drives the router's per-client metrics, flow-control queueing and rate limits โ€” so the sampling policy is expressed in the router's own vocabulary:

      `samplePercent: 1
      samplePercentByFairnessID: { <client>: 50 }`
      and the exported record is keyed by it. That is the whole proposal: a small, opt-in, per-client-controlled sample with no new component in the request path.

      What we have

      A plugin at existing extension points โ€” no new ones needed:

      • RequestHeader โ€” captures the request line before the EPP rewrites the path for a peer, so the recorded path is the one the client used and the ingest stores it under the right partition.
      • PreRequest / ResponseBody โ€” decide once, then emit the pair at end of stream.

      Sampling is deterministic on a hash of the request ID, so a percentage is stable across replicas. The export queue is bounded in bytes (64 MiB default) and drops rather than applying backpressure, so a slow or unreachable sink cannot degrade scheduling.
      Status: Alpha, running in one production deployment.

      Security and scalability

      We'd rather solve the concerns raised than argue the placement:

      • Memory โ€” capture is bounded per side, the queue is bounded in bytes, and a full queue drops samples. Nothing grows with load.
      • Egress โ€” opt-in and off by default; the ingest URL could be restricted to an allowlist rather than an arbitrary endpoint.
      • Bodies in the scheduler โ€” the framework change needed is a bounded capture on the request context, off unless a plugin asks for it. We're open to that hook being narrower, or gated behind a stricter stability level.

      Alternatives considered

      OptionOur experience
      Client-side loggingWorks, and the client we most want samples from is ours. Doesn't cover clients we don't own, and makes each one an inter-team dependency.
      vLLM request/response loggingEngine-side. We lose the frontier's view, and we can't filter by fairness ID โ€” vLLM's labels are fixed, so there is no client-derived dimension to sample on.
      Envoy tap filterNeeds an Envoy. Our model ingress has none: GKE Gateway โ†’ agentgateway โ†’ EPP โ†’ peer hop.
      LiteLLM / LangfuseA new proxy or dependency we'd have to run and own โ€” another hop in the request path.

      Open questions

      1. Is this a good addition? That's the question we're here for.
      2. Should the response-body hook be deliberately narrower than "a plugin can read the

      response body"?

      ๐Ÿ’ฌ Discussion Summary: @ScraperNerd18 offered to open an upstream PR from an alpha production implementation and asked whether this belongs in upstream EPP and whether the response-body hook should be narrower. @elevran pushed back on adding payload capture to the router due to security/privacy, scale, and performance concerns and out-of-tree scope, pointing to client logging, gateway/mesh tapping (Envoy, GKE policies, Istio/Linkerd, LiteLLM), a custom ext_proc wrapping llm-d-router, or agentgateway's native custom webhook guardrail, and cc'd @ahg-g, @liu-cong, and @vMaroon.
      โš–๏ธ Verdict: Out of EPP scope; keep payload capture in gateway or custom ext_proc
    • 20. Issue [OPEN] Request: llm-d org membership for @archlitchi (llm-d/llm-d#3139 by @archlitchi) ๐Ÿ”ด P0: High Priority โœจ Feature Request ๐Ÿ”ต ISSUE: Approve Membership ๐ŸŸก Medium Effort ๐Ÿ“ฃ Directly @mentioned
      ๐ŸŽฏ TL Priority Triage: TL Triage: Feature implementation / request; ๐Ÿ“ฃ Direct @mention
      ๐Ÿ“Œ Change Summary: @archlitchi (Mengxuan Li) requests llm-d GitHub org membership per ONBOARDING.md, mentioning all four OWNERS (@chcost, @robertgshaw2-redhat, @ahg-g, @davidgs) and listing accelerator maintainer status in docs/getting-started/accelerators.md (Biren, Iluvatar, MetaX, Moore Threads) alongside 6 authored PRs (#2381, #2505, #3068, #2936, #3107, #3109), 2 co-authored PRs (#2308, #2531), 1 issue (#3106), and 4 reviews.
      ๐Ÿ“„ View Full Issue Description

      Hi, I'd like to request membership in the llm-d GitHub org.

      GitHub username: archlitchi

      I contribute hardware-support guides for accelerators in mainland China that are not covered by the default NVIDIA path, including Iluvatar, Biren, Enflame, Mthreads, and Hygon.
      You can see my name listed as maintainer in every hardware support i anticipated(https://github.com/llm-d/llm-d/blob/main/docs/getting-started/accelerators.md#support)

      @chcost @robertgshaw2-redhat @ahg-g @davidgs

      My llm-d contributions so far:
      PRs

      • llm-d/llm-d#2381: Hardware support: Iluvatar (merged)
      • llm-d/llm-d#2505: Hardware support: Add Support for BR166M (merged)
      • llm-d/llm-d#3068: [Hardware support] Support Enflame S60 (merged)
      • llm-d/llm-d#2936: [Hardware support] add hygon HCU BW-1000 sglang support (merged)
      • llm-d/llm-d#3107: [Hardware Support] Update image of Birentech (merged)
      • llm-d/llm-d#3109: docs: clear pre-existing markdownlint errors in shared docs (merged)

      Co-authored

      • llm-d/llm-d#2308: proposal: add MetaX accelerator support (merged)
      • llm-d/llm-d#2531: Hardware Support: add Moore Threads MTT S5000 support (merged)

      Issues

      • llm-d/llm-d#3106: To disable the image pull CI with some GPU Vendors

      Reviews

      • llm-d/llm-d#2308, llm-d/llm-d#2531, llm-d/llm-d#3026, llm-d/llm-d#3129

      Thank you!

      ๐Ÿ’ฌ Discussion Summary: Opened 2026-11-27 with all required ONBOARDING.md details and OWNERS mentions. On 2026-11-30, @archlitchi commented to ping @liu-cong and @Gregory-Pereira. No OWNERS approver has replied or sent the org invite yet.
      โš–๏ธ Verdict: Approve Membership
    • 21. PR [OPEN] fix(sidecar): drop the cached Mooncake engine map when a request fails ๐Ÿ“„ Diff (llm-d/llm-d-router#4090 by @SuperMarioYL) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix ๐Ÿšจ Prod / Real Workload Bug โฐ Sitting 26d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: 3 Comment(s) to PR ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Production/real-workload bug (P/D disaggregation, sidecar, & coordinator: deadlock, request hang, or data race on serving path ('request hangs')); sitting 26d (>3d open PR, already P0); Open 26.0d (> 7d) with maintainer @sagearc, @roytman, @nilig; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+406/-6 lines across 5 file(s)] The Mooncake P/D sidecar caches the prefill's dp_rank -> engine_id map per prefill host:port in getMooncakeEngineMap. Nothing evicts an entry, and vLLM mints a new engine_id at every start (Fixes #4072).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind bug

      What this PR does / why we need it:

      The Mooncake P/D sidecar caches the prefill's dp_rank -> engine_id map per prefill host:port in getMooncakeEngineMap. Nothing evicts an entry, and vLLM mints a new engine_id at every start. A prefill container that restarts in place keeps its address, so the sidecar keeps putting the dead remote_engine_id into kv_transfer_params: prefill answers 200, decode's KV pull never completes, and every later request hangs until the sidecar is restarted. #4072 records this on vLLM 0.31.0 with a reproduced in-package test.

      This PR drops the cached map when a request through that prefill fails, so the next request re-queries /query and uses the current engine_id. Both Mooncake handlers โ€” handleMooncake and the vLLM gRPC handleMooncakeVLLMGRPC โ€” wrap the client writer in captureResponseStatus and remove the entry, deferred, when the response is evidence the engine is gone: it answered nothing, answered with a 5xx, answered with a server-side grpc-status on a 200, or its answer could not be delivered to the client. A 4xx or a client-side gRPC status is not evidence โ€” a malformed request, a rate limit or a load-shedding rejection leaves the map valid, and evicting on one makes every rejected request pay a bootstrap /query during the overload that produced it. A streamed request that the client abandoned without receiving a single body byte also evicts: its headers are already committed as a 200, so a KV pull that never completes otherwise leaves no trace in the response.

      The check sits on the response rather than on the prefill leg because the decoder proxy's error handler relays a prefill failure onto the same writer it wraps, so one check covers a failed prefill and a failed decode alike. It also covers the reported path, where prefill succeeds and decode is what fails.

      Scope: the cache is dropped only after a request through the stale engine finishes, so that request โ€” and every request already in flight against the same prefill โ€” still fails as before, for as long as its own timeout allows (#4072 saw minutes). A TTL or a background refresh would shorten that window and is deliberately out of scope here; recovery costs one re-query after the request that failed.

      Which issue(s) this PR fixes:
      Fixes #4072

      Special notes for your reviewer:

      • #3821 rewrites the same handleMooncake lines and #4011 touches this file plus the sidecar's gRPC path. This change is independent of both; land it before them where possible, and the conflict in handleMooncake is mechanical.
      • The three tests in connector_mooncake_test.go drive the production decoder proxy. The two eviction tests fail on 876c4dd2; TestMooncakeEngineMapKeptAfterClientError fails on the previous head of this branch.

      Release note _(write NONE if no user-facing change)_:

      Mooncake P/D sidecar recovers from a prefill restart: after a request to a restarted prefill fails, the cached engine_id is dropped and later requests re-query it. This covers HTTP and vLLM gRPC requests, and a streamed request the client abandoned without receiving a byte (its 200 headers are already committed, so a stalled KV pull leaves no error status). Requests already in flight against the stale engine still fail until they time out.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Fixes #4072 where an in-place vLLM prefill restart keeps s.mooncakeEngineIDs populated with a stale engine_id across both HTTP and vLLM gRPC Mooncake requests. handleMooncake (https://github.com/llm-d/llm-d-router/blob/7ca2d2ad68dfe89b8159460af37a82dcd5afa37f/pkg/sidecar/proxy/connector_mooncake.go#L106-L109) and handleMooncakeVLLMGRPC (https://github.com/llm-d/llm-d-router/blob/7ca2d2ad68dfe89b8159460af37a82dcd5afa37f/pkg/sidecar/proxy/vllm_grpc.go#L678-L680) now share trackMooncakeEngineMap, wrapping the response writer and removing prefillPodHostPort from s.mooncakeEngineIDs when upstreamFailed() or abandoned(ctx) holds. Non-5xx HTTP and client-side gRPC statuses remain cached, and in-flight requests are unaffected until they finish.

      ๐Ÿ—๏ธ Design
      • Shared Cache Eviction Hook: trackMooncakeEngineMap (pkg/sidecar/proxy/connector_mooncake.go:131-140) wraps w with captureResponseStatus(w) and returns a deferred cleanup function invoked by both handleMooncake and handleMooncakeVLLMGRPC.
      • HTTP and gRPC Failure Classification: (*responseStatus).upstreamFailed() (pkg/sidecar/proxy/status_response_writer.go:185-191) returns true for statusCode == 0, statusCode >= 500, writeFailed, or grpcframe.HTTPStatus(status) >= 500 on a 200, keeping 4xx and client-side gRPC errors (InvalidArgument, ResourceExhausted, Canceled) cached.
      • Zero-Byte Abandoned Stream Detection: captureResponseStatus tracks bytesWritten (pkg/sidecar/proxy/status_response_writer.go:99,110), and (*responseStatus).abandoned(ctx) (pkg/sidecar/proxy/status_response_writer.go:199-201) evicts when ctx.Err() != nil && statusCode == 200 && bytesWritten == 0 && !writeFailed, so stalled SSE/gRPC streams canceled before first byte also drop the stale map.
      • Unit and Proxy Tests: pkg/sidecar/proxy/connector_mooncake_test.go:449-645 tests decode 502 eviction, 429 retention, non-streaming/streaming prefill 503 eviction, gRPC status classification, and zero-byte vs post-data abandoned streams; pkg/sidecar/proxy/vllm_grpc_test.go:1949-1950 asserts cache eviction after a gRPC Mooncake prefill failure.
      ๐Ÿงช Example (How It Works)
      1. Prefill restarts at prefillHost and mints engine-v2, while s.mooncakeEngineIDs still holds engine-v1.
      2. Next HTTP streaming or vLLM gRPC request hits decode with engine-v1; decode either fails (502 or grpc-status: 13) or sends 200 headers and stalls until the client cancels with 0 body bytes.
      3. The deferred closure from trackMooncakeEngineMap observes upstreamFailed() or abandoned(ctx) and calls s.mooncakeEngineIDs.Remove(prefillHost).
      4. The following request misses s.mooncakeEngineIDs in getMooncakeEngineMap (pkg/sidecar/proxy/connector_mooncake.go:197-203), queries /query, and caches engine-v2.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Active debate / open discussion (5 open, 0 resolved) - Back-and-forth between @roytman, @nilig and @SuperMarioYL on connector_mooncake.go, connector_mooncake_test.go; not yet resolved.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 3 comment(s) on status_response_writer.go:200, vllm_grpc_test.go:1949, connector_mooncake.go:134 - [medium] abandoned(ctx) evicts on trailers-only gRPC responses (200 OK with 0 body bytes) whenever ctx.Err() != nil...
    • 22. PR [OPEN] fix: return 429 rejected-saturated when a saturation filter drains the candidates ๐Ÿ“„ Diff (llm-d/llm-d-router#4751 by @lkhun9311) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix ๐Ÿšจ Prod / Real Workload Bug โฐ Sitting 5d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW [No Review Yet]: 2 Comment(s) to PR ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Production/real-workload bug (Admission, flow control, & saturation: failure under high load, concurrency, or real cluster/accelerator runs ('saturation failure')); sitting 5d (>3d open PR, already P0)
      ๐Ÿ“Œ Change Summary: [+427/-9 lines across 9 file(s)] Thanks @blacksoxx for agreeing on the split. This is the first step of #2881: a saturated sentinel and a 429.
      ๐Ÿ“„ View Full PR Description

      /kind bug

      What this PR does / why we need it:

      Thanks @blacksoxx for agreeing on the split. This is the first step of #2881: a saturated sentinel and a 429.

      With failOpen: false, when the concurrency-detector filter removes the last candidate, the request gets the same 503 rejected-no-endpoints as an empty pool.

      • Adds the fwksched.SaturationFilter marker and the fwksched.ErrSaturated sentinel. The concurrency detector implements the marker.
      • SchedulerProfile.Run: when a saturation filter removed the last candidates, the error wraps ErrSaturated and an errcommon.Error (429, rejected-saturated). Every other drain, and an empty candidate list, keeps the 503.
      • With several failed profiles, the request is 429 only when every failed profile was a saturation drain.

      Validation: controlled unit tests set the detector's load directly (requests, tokens and hybrid modes), and a director test mocks admission and the filter. On base df4ecfe1 the saturation cases return 503. go test -race on the touched packages and make presubmit ran clean, except verify-review-playbook, which fails the same way on main on two files this PR does not touch.

      Limitation: if a tolerated non-saturation failure (an optional encode profile, for example) happens alongside, a saturated required profile still returns 503. The re-queue and the hold follow in later PRs.

      Which issue(s) this PR fixes:

      Part of #2881

      This PR was written in part with the assistance of generative AI. I reviewed and tested every change.

      Release note _(write NONE if no user-facing change)_:

      With `failOpen: false`, when scheduling fails and every failed profile was drained by the concurrency-detector filter, the request now returns 429 with `x-llm-d-request-dropped-reason: rejected-saturated` instead of 503 `rejected-no-endpoints`.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Distinguishes saturation-filter drains from missing-endpoint drains in scheduling so requests rejected for endpoint capacity return HTTP 429 (rejected-saturated) instead of 503 (rejected-no-endpoints). Empty candidate pools, non-saturation filter drains (such as label or health filters), and fail-open detectors continue to behave unchanged.

      ๐Ÿ—๏ธ Design
      • Framework marker and sentinel (plugins.go): Adds ErrSaturated and the SaturationFilter marker interface (FiltersSaturatedEndpoints()), implemented by concurrency-detector.
      • Per-profile drain attribution (scheduler_profile.go): runFilterPlugins records drainedBy only when candidates > 0 drops to 0 on that filter; Run returns wrapped ErrSaturated + errcommon.ResourceExhausted (rejected-saturated) when drainedBy implements SaturationFilter, and errcommon.ServiceUnavailable (rejected-no-endpoints) otherwise.
      • Multi-profile error aggregation (scheduler.go): Schedule promotes ErrSaturated (429) only when every entry in profileRunErrors wraps ErrSaturated, omitting ErrSaturated entries when any failed profile is non-saturated so errors.As in Director.HandleRequest keeps 503.
      ๐Ÿงช Example (How It Works)
      1. Flow control sees aggregate concurrency below 1.0 and dispatches a request carrying 30 uncached tokens to Director.HandleRequest.
      2. Before PreRequest runs, another request fills the pod (90/100 tokens), so concurrency-detector (failOpen: false) filters out all candidates (candidates = 1 -> 0) and SchedulerProfile.Run returns ErrSaturated wrapping 429 ResourceExhausted (x-llm-d-request-dropped-reason: rejected-saturated).
      3. Director.HandleRequest releases the dispatch reservation and returns the unwrapped errcommon.Error, which BuildErrResponse encodes as HTTP 429 instead of 503.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 2 comment(s) on plugins.go:74, scheduler.go:172 - [medium] Built-in utilization-filter also drops overloaded endpoints (fallbackOnEmpty: false by default) but does not...
    • 23. PR [OPEN] fix(kvevents): count each missed sequence once during replay cooldown ๐Ÿ“„ Diff (llm-d/llm-d-router#4852 by @satyamg1620) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix ๐Ÿšจ Prod / Real Workload Bug โณ DEEP REVIEW [No Review Yet]: PR Workflows Not Run Yet ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Production/real-workload bug (KV-cache indexing, ZMQ events, & wire fidelity: KV-cache, prefix-cache, or ZMQ event corruption in real workloads ('ZMQ subscriber drops'))
      ๐Ÿ“Œ Change Summary: [+22/-1 lines across 2 file(s)] When a sequence gap arrives while replay is in cooldown, the ZMQ subscriber drops the frame and keeps lastSeq at the replay start point (Fixes #4844).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind bug
      /area kvcache
      /area telemetry

      What this PR does / why we need it:

      When a sequence gap arrives while replay is in cooldown, the ZMQ subscriber drops the frame and keeps lastSeq at the replay start point. Every later frame in the cooldown computed the gap from that same lastSeq and added it to llm_d_epp_kv_cache_events_missed_total again. For example, with lastSeq at 0, frames 4, 5, 6 and 7 added 3 + 4 + 5 + 6 = 18 missed sequences where only 3 are missing.

      The subscriber now counts only the sequences missed after the previous live frame, or after lastSeq when that is later. Frames received during the cooldown are still dropped and counted in llm_d_epp_kv_cache_events_dropped_total{reason="replay_cooldown"}. A new hole that opens during the cooldown is still counted as missed. sequence_gaps_total, the replay start point and indexing are unchanged.

      Tests:

      • ☑ During cooldown, a frame that follows a dropped frame adds nothing to the missed counter, and a later jump adds only the new hole (main reports 7 and 14 where 3 and 5 are expected).
      • ☑ Real vLLM 0.35.0rc1 on a T4, with KV events forwarded to base and fixed EPPs and seq 3 and 9 dropped on the way. The proactive replay fails on a closed replay port, so both gaps arrive during the cooldown. Values were read 19.5 s after the replay failure, inside the 30 s cooldown:
      EPPReplay portmissed_totalsequence_gaps_totaldropped_total{replay_cooldown}Index keys
      mainclosed400272713
      this PRclosed2272713
      mainvLLM replay socket220129
      this PRvLLM replay socket220129

      Which issue(s) this PR fixes:
      Fixes #4844

      Release note _(write NONE if no user-facing change)_:

      Fix llm_d_epp_kv_cache_events_missed_total adding the same missing KV-event sequence numbers again for every frame received while replay is in cooldown.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Fixes double-counting in llm_d_epp_kv_cache_events_missed_total (metrics.EventsMissed) when live ZMQ frames arrive during replay cooldown. Instead of adding seq - z.lastSeq - 1 on every cooldown-dropped frame while z.lastSeq stays pinned at the replay start point, the subscriber computes missed sequences from max(z.lastSeq, prevLiveSeq). EventsSequenceGaps, EventsDropped (replay_cooldown), replay start sequence (z.lastSeq + 1), and block indexing behavior remain unchanged.

      ๐Ÿ—๏ธ Design
      • Captures prevLiveSeq, hadLiveSeq := z.lastLiveSeq, z.hasLastLiveSeq before updating z.lastLiveSeq in pkg/kvevents/zmq_subscriber.go#L274-L276.
      • Computes countedThrough = max(z.lastSeq, prevLiveSeq) (when hadLiveSeq is true) and increments metrics.EventsMissed by seq - countedThrough - 1 in pkg/kvevents/zmq_subscriber.go#L287-L291.
      • Preserves uint64 non-underflow invariant: restarted (seq < lastLiveSeq, resetting hasLastLiveSeq) and seq == lastLiveSeq (continue) execute earlier, guaranteeing prevLiveSeq < seq whenever hadLiveSeq is true, while the enclosing seq > z.lastSeq+1 check guarantees z.lastSeq < seq.
      ๐Ÿงช Example (How It Works)
      1. Subscriber indexes seq = 0 (lastSeq = 0, lastLiveSeq = 0) while replay cooldown is active.
      2. Live seq = 4 arrives: countedThrough = max(0, 0) = 0, EventsMissed adds 4 - 0 - 1 = 3 (for sequences 1, 2, 3), lastLiveSeq becomes 4, and frame 4 is dropped as replay_cooldown (lastSeq stays 0).
      3. Live seq = 5 arrives: prevLiveSeq = 4, countedThrough = max(0, 4) = 4, EventsMissed adds 5 - 4 - 1 = 0, and frame 5 is dropped.
      4. Live seq = 8 arrives: prevLiveSeq = 5, countedThrough = max(0, 5) = 5, EventsMissed adds 8 - 5 - 1 = 2 (for sequences 6, 7), bringing total EventsMissed to 5.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: โณ Deep Review Verdict: Hold approval until PR workflows pass (No GitHub Actions workflow runs have started for commit 323f99e.).
    • 24. PR [OPEN] feat(disagg): add decode fallback profile ๐Ÿ“„ Diff (llm-d/llm-d-router#2638 by @nicole-lihui) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 94d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: 1 Comment(s) to PR ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator); sitting 94d (>3d bump P1 -> P0); Open 94.7d (> 7d) with maintainer @ahg-g; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+569/-11 lines across 16 file(s)] Adds an optional profiles.fallback to disagg-profile-handler so decode-first deployments can keep serving new requests during a temporary pool outage (Fixes #2636).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind feature

      What this PR does / why we need it:

      Adds an optional profiles.fallback to disagg-profile-handler so decode-first deployments can keep serving new requests during a temporary pool outage.

      Before forwarding, the router tries the fallback profile once when either:

      • The Decode pool has no Ready candidates after request screening.
      • The request requires Prefill and the Prefill pool has no Ready candidates after request screening.

      Backup workers handle the full request locally and must be excluded from both normal profiles. Capacity limits and admission behavior still apply. New requests return to normal P/D routing as the pools recover.

      Which issue(s) this PR fixes:

      Fixes #2636

      Release note _(write NONE if no user-facing change)_:

      Add optional P/D fallback when Decode or required Prefill cannot be scheduled.

      Test plan:

      • ☑ Required Prefill and Decode unavailability selects fallback; subsequent recovered requests use P/D.
      • ☑ Nonmatching errors do not trigger fallback; fallback failures preserve their typed cause and stop after one attempt.
      • ☑ Fallback removes remote Prefill/Encode headers; declining optional Prefill preserves normal Decode-only routing.
      • ☑ Invalid fallback configuration is rejected; missing fallback and cancelled requests fail without dispatching fallback.
      • ☑ Simulator E2E: scale Prefill to zero and recover, then scale Decode to zero and recover; requests select the aggregated worker during either outage and normal P/D after recovery.

      Validation: targeted profile-handler and scheduler tests passed with the race detector; make presubmit passed in a clean worktree containing the same changes. The focused simulator E2E passed (1 spec; 29 unrelated specs skipped). Simulator coverage validates routing only, not real inference-engine or KV-connector capabilities.

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Adds an optional profiles.fallback scheduling profile to disagg-profile-handler in decode-first mode so requests route to an aggregated backup worker when the decode profile or a required prefill profile selects no endpoint. Normal P/D requests pay no extra runtime wrapping or endpoint-scoping cost, and PrefixBasedPDDecider re-evaluates conditional-decode cache checks against the chosen fallback endpoint. Unchanged are prefill-first mode, admission/flow-control rejections, and normal encode-unavailable or prefill-declined decode-only paths.

      ๐Ÿ—๏ธ Design
      • Load-Time Config & Profile Validation (pkg/epp/framework/interface/scheduling/plugins.go:60-63, pkg/epp/config/loader/configloader.go:410-414, pkg/epp/framework/plugins/scheduling/profilehandler/disagg/disagg_profile_handler.go:210-215, 295-328): DisaggProfileHandlerConfigParser rejects blank profiles.fallback, stageOrder != decode-first, or collisions with decode, prefill, encode, or scheduling.DefaultPrefillProfile. Handler implements SchedulingProfileValidator, and buildSchedulerConfig calls ValidateSchedulingProfiles(profiles) to verify profiles.fallback exists.
      • Fallback Dispatch & Header Cleanup (pkg/epp/framework/plugins/scheduling/profilehandler/disagg/disagg_profile_handler.go:454-473, 623-634): pickDecodeFirst triggers profiles.fallback at most once when decodeRes.FirstEndpoint() == nil or prefillRequiredButFailed is true and ctx.Err() == nil, clearing PeerEndpointAttributeKey. ProcessResults emits DisaggPathFallback ("fallback") and returns only h.fallbackProfile in SchedulingResult.ProfileResults so PreRequest strips PrefillEndpointHeader, PrefillDataParallelRankHeader, and EncoderEndpointsHeader.
      • Endpoint-Keyed Conditional Decode (pkg/epp/framework/plugins/scheduling/profilehandler/disagg/prefix_based_pd_decider.go:93-97, 249-263): remotePrefillDecision includes endpointID, so PrefixBasedPDDecider.PreRequest recomputes needsRemotePrefill when PrimaryProfileName switches from an abandoned decode endpoint to the fallback endpoint.
      ๐Ÿงช Example (How It Works)
      1. Dedicated decode pods scale to zero while a prefill-decode worker remains Ready in aggregated-fallback.
      2. Request arrives; pickDecodeFirst runs decode, which returns nil (503 rejected-no-endpoints).
      3. On the next Pick, decodeRes.FirstEndpoint() == nil triggers profiles.fallback (aggregated-fallback) once and clears PeerEndpointAttributeKey.
      4. aggregated-fallback selects the prefill-decode pod; ProcessResults records decision_type="fallback" and PreRequest deletes any stale prefill/encode headers so the backup worker runs the request locally.
      ๐Ÿ’ฌ Discussion Summary: ๐Ÿ”ด Changes requested (no consensus) - Changes requested by @ahg-g (0 open thread(s), 13 resolved); debate/feedback not yet resolved.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 1 comment(s) on disagg_profile_handler.go:623 - [low] Guard profileResults[h.fallbackProfile] with an outer if h.fallbackProfile != "" check.
    • 25. PR [OPEN] [Proposal] Model-server capability contract and preflight verification for guides ๐Ÿ“„ Diff (llm-d/llm-d#2636 by @raravind007) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 64d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW [No Review Yet]: 2 Comment(s) to PR ๐ŸŸก Medium Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity); sitting 64d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+187/-0 lines across 1 file(s)] llm-d guides implicitly assume things about the model-server image they deploy (does it expose /v1/chat/completions/render? does it emit KV-cache events in a given format? does it expose the metrics a router scorer needs?), but...
      ๐Ÿ“„ View Full PR Description

      Summary

      llm-d guides implicitly assume things about the model-server image they deploy (does it expose /v1/chat/completions/render? does it emit KV-cache events in a given format? does it expose the metrics a router scorer needs?), but nothing declares or checks those assumptions. A deployment can be fully Ready and serving HTTP 200s while the feature it was built around is silently inert โ€” #2439 is a concrete instance of this failure class.

      This PR is PR 0: it proposes a capability vocabulary and a runtime-probe contract shape so guides can declare required model-server capabilities and a verifier can check them against a running deployment, rather than trusting a version pin. It defines scope and ownership boundaries only โ€” no implementation code. See the proposal for the suggested follow-on PR sequence (PR 1: a single capability against a single engine, fixture-tested).

      It is deliberately scoped to compose with, not duplicate, the cluster-preflight effort in #2429, and proposes sharing that effort's planned requirements: block in guide.yaml (requirements.cluster / requirements.modelServer) rather than adding a second per-guide metadata file.

      Test plan

      • ☐ Docs-only change (no code to test)
      • ☐ Discuss scope/ownership boundary with #2429 author and SIG Router / SIG Installation before any follow-on implementation PR
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No reviewer discussion yet - Only author notes from @raravind007 (5 comment(s)); awaiting initial review.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 2 comment(s) on model-server-capability-contract.md:75, model-server-capability-contract.md:100 - [medium] Declaring api.render.chat-completions as an unconditional requirements.modelServer capability conflicts with how...
    • 26. PR [OPEN] Fix multitenant cleanup failures when optional monitoring CRDs are absent ๐Ÿ“„ Diff (llm-d/llm-d#2887 by @weizhoublue) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 45d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: Hold / Comment on PR ๐Ÿ”ด High Effort ๐Ÿ’ฌ New reply after your comment
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (RL rollouts, nokube-epp, & well-lit accelerator guides); sitting 45d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+134/-5 lines across 3 file(s)] A follow-up to PR #2771 The monitoring stack is optional and must be installed separately. The multitenant guide defaults the MONITORING environment variable to false, so the router does not create a ServiceMonitor.
      ๐Ÿ“„ View Full PR Description

      A follow-up to PR #2771

      The monitoring stack is optional and must be installed separately. The multitenant guide defaults the MONITORING environment variable to false, so the router does not create a ServiceMonitor. Deployment without Prometheus Operator CRDs is therefore supported.

      However, the original cleanup unconditionally deletes optional monitoring objects without distinguishing between two cases:

      • If the CRD is not installed, the cluster does not recognize the resource kind, so deletion should be skipped. --ignore-not-found does not ignore this error.
      • If the CRD is installed but the object was never created, --ignore-not-found should handle the missing object.

      As a result, on a cluster without monitoring CRDs, the generated cleanup script exits early because of set -e.

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Guards multitenant guide cleanup against missing Prometheus Operator and Google Managed Prometheus (GMP) CRDs by querying only the target group-version discovery endpoint before running kubectl delete. This prevents set -euo pipefail teardown scripts from aborting when optional monitoring CRDs are absent, while keeping --ignore-not-found active for missing resource instances. Core apps/v1 gmp-frontend cleanup and all deploy/verify steps remain unchanged.

      ๐Ÿ—๏ธ Design
      • Queries GET /apis/monitoring.coreos.com/v1 for "name":"podmonitors" (guides/batch-serving/asynchronous-processing/multitenant/guide.yaml:176) and GET /apis/monitoring.googleapis.com/v1 for "name":"podmonitorings" (guide.yaml:183) via kubectl get --raw without requiring jq or cluster-scoped get crd RBAC.
      • Redirects grep stdout to /dev/null instead of using grep -q so kubectl get --raw is drained and does not receive SIGPIPE (exit 141) under bash -euo pipefail when a large discovery list is matched early.
      • Splits core apps/v1 manifests/gmp-frontend.yaml deletion from conditional manifests/gmp-podmonitoring.yaml deletion in the Pub/Sub cleanup block (guide.yaml:182-185) and mirrors both blocks in guides/batch-serving/asynchronous-processing/multitenant/README.md:919-936.
      • Updates scripts/tests/test_nightly_deploy_async_multitenant.py:231-344 to assert jq, kubectl get crd, kubectl api-resources, and /apis are not invoked while testing 7 discovery/deletion states with >pipe-buffer discovery output.
      ๐Ÿงช Example (How It Works)
      1. A user runs cleanup on a cluster with MONITORING=false and no Prometheus Operator CRDs installed.
      2. kubectl get --raw /apis/monitoring.coreos.com/v1 2>/dev/null returns 404 (exit 1), grep '"name":"podmonitors"' >/dev/null exits 1, and the if branch skips kubectl delete -n ${NAMESPACE} -k ${MT}/manifests/monitoring --ignore-not-found without tripping set -e.
      3. On a cluster where the CRD is registered ("name":"podmonitors" present in a multi-resource discovery response), grep drains the full JSON stream to /dev/null, exits 0 without SIGPIPE, and runs kubectl delete ... --ignore-not-found.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Active debate / open discussion (1 open, 0 resolved) - Back-and-forth between @ahg-g and @weizhoublue on guide.yaml; not yet resolved.
      ๐Ÿงช Nightly CI: 2/2 test-nightly job(s) need manual trigger (new commit 831e243 / missing subset): async-multitenant-gke-acc-gpu-vllm-x, async-multitenant-holdback-gke-acc-gpu-vllm-x.
      ๐Ÿš€ Manual Nightly Trigger Commands (post 1 command per PR comment):โ†— Comment on PR
      /test-nightly async-multitenant-gke-acc-gpu-vllm-x/test-nightly async-multitenant-holdback-gke-acc-gpu-vllm-x
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: Hold / Comment on PR (manual review required; not cleared for auto-approve).
    • 27. PR [OPEN] feat(router): add decode calibration recipe (peakDecodeThroughput) to size xPyD ratios ๐Ÿ“„ Diff (llm-d/llm-d#2967 by @StevenSiahaann) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 36d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: 2 Comment(s) to PR ๐Ÿ”ด High Effort ๐Ÿ’ฌ New reply after your comment
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator); sitting 36d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+887/-3 lines across 5 file(s)] docs/architecture/disaggregation/pd-disaggregation.md advises tuning the xPyD ratio to ensure balance for given ISL/OSL workloads, but sizing has remained a manual tuning exercise because only prefill throughput... (Fixes #2836)
      ๐Ÿ“„ View Full PR Description

      Description

      docs/architecture/disaggregation/pd-disaggregation.md advises tuning the xPyD ratio to ensure balance for given ISL/OSL workloads, but sizing has remained a manual tuning exercise because only prefill throughput (peakPrefillThroughput / $V_P$) had a calibration recipe (calibrate.sh).

      As published in literature (DistServe OSDI '24, Splitwise ISCA '24, NVIDIA Dynamo SLA planner), the sizing rule is rate matching:
      89888\text{P:D} = (ISL / V_P) : (OSL / V_D)89888

      This PR adds the decode counterpart to measure peakDecodeThroughput ($V_D$) and size P:D ratios:

      • guides/recipes/router/calibration/calibration-peak-decode.yaml:

      Kubernetes Job + ConfigMap running calibrate_decode.py (Python stdlib). Sends open-loop decode-bound load across a concurrency ladder, measures inter-token latency (TPOT) of streamed tokens, selects the peak throughput meeting the p90 TPOT target, and calculates $V_D = \text{max(throughput)} / \text{DECODE\_REPLICAS}$. When PEAK_PREFILL_THROUGHPUT is set, it computes and emits the rate-matched P:D ratio.

      • guides/recipes/router/calibration/calibrate-decode.sh:

      Orchestration script that discovers endpoints, renders and executes the calibration Job, waits for completion, and reports $V_D$ and sizing recommendations.

      • scripts/tests/test_decode_calibration.py:

      Test suite covering streaming parsing, synthetic error handling, empty stream handling, SLO compliance, and P:D ratio calculations.

      • guides/recipes/router/calibration/README.md & docs/architecture/disaggregation/pd-disaggregation.md:

      Document the rate-matching formula and decode calibration recipe.

      Fixes #2836

      Verification

      • Ran unit tests: pytest scripts/tests/test_decode_calibration.py passes 5/5 test cases.
      • Ran prefill tests: pytest scripts/tests/test_prefill_calibration.py passes 4/4 test cases.
      • Validated Bash script with shellcheck: 0 errors/warnings.
      • Validated guide manifest with python scripts/guide.py check-manifest: OK.
      • Commits are signed with DCO and cryptographic SSH signatures.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Adds the peakDecodeThroughput calibration recipe (Job, Bash orchestrator, and test suite) to measure decode throughput within a target p90 TPOT SLO and calculate rate-matched P:D replica ratios.

      ๐Ÿ—๏ธ Design
      • Kubernetes Job: Runs calibrate_decode.py across a concurrency ladder, measuring Inter-Token Latency (ITL) from streamed tokens excluding TTFT, and selecting the peak throughput meeting the p90 TPOT target.
      • Rate-Matching Sizing: Calculates coprime P:D replica ratios using (ISL / V_P) : (OSL / V_D) when PEAK_PREFILL_THROUGHPUT is set.
      • Bash Orchestration: Discovers ${GUIDE_NAME}-epp ClusterIP, renders the Job manifest, monitors execution, and extracts metrics.
      • Unit Test Coverage: Validates SSE token stream parsing, premature EOF rejection, multi-token chunk normalization, and SLO failure gating.
      ๐Ÿงช Example (How It Works)
      1. Operator runs ./calibrate-decode.sh with TARGET_TPOT_MS=15.0 and PEAK_PREFILL_THROUGHPUT=33821.
      2. Job sweeps concurrency [1, 2, 4, 8, 16], finding concurrency 8 achieves 6,764 tok/s with p90 TPOT 14.2 ms.
      3. Script prints PEAK_DECODE_THROUGHPUT=6764 and RECOMMENDED_P_D_RATIO=4:1.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Active debate / open discussion (2 open, 0 resolved) - Back-and-forth between @htang7415 and @StevenSiahaann on calibration-peak-decode.yaml, calibration-peak-decode.yaml; not yet resolved.
      ๐Ÿงช Nightly CI: 5/5 test-nightly job(s) need manual trigger (new commit 985861f / missing subset): predicted-latency-routing-amd-ci-acc-rocm-vllm-x, predicted-latency-routing-cks-acc-gpu-vllm-x, predicted-latency-routing-gke-acc-gpu-vllm-x, predicted-latency-routing-ibm-acc-gpu-vllm-x, predicted-latency-routing-intel-acc-xpu-vllm-x.
      ๐Ÿš€ Manual Nightly Trigger Commands (post 1 command per PR comment):โ†— Comment on PR
      /test-nightly predicted-latency-routing-*
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 2 comment(s) on calibrate-decode.sh:117, calibration-peak-decode.yaml:176 - [medium] Under set -eo pipefail, empty throughput output from a failing calibration job aborts the script at grep before...
    • 28. PR [OPEN] feat(epp): add a cold-session prefill filter ๐Ÿ“„ Diff (llm-d/llm-d-router#3862 by @YidaWeng) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 32d (>3d Priority Bump) ๐Ÿ”ด DEEP REVIEW [No Review Yet]: Request Changes (4 new comment(s)) ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Admission, flow control, & saturation); sitting 32d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+447/-0 lines across 4 file(s)] This is a routing-side mitigation for #2346, not a replacement for pool-wide flow-control admission. Agentic sessions start with a long, cold prefill.
      ๐Ÿ“„ View Full PR Description

      This is a routing-side mitigation for #2346, not a replacement for pool-wide flow-control admission.

      What it does

      Agentic sessions start with a long, cold prefill. While one endpoint is paying that cost, warm follow-up turns queue behind it and lose the benefit of their cached prefix.

      The new cold-session-filter reads SessionState from session-state-producer and treats a request as cold when:

      • the session has TurnsTaken == 0, and
      • no other request from that session is already in flight.

      Cold requests are routed only to candidates whose in-flight cold-prefill count is below maxConcurrentColdPrefills. If every candidate is at the limit, the filter fails open and returns all candidates, so it cannot starve a cold session by itself. A TTL releases tracked requests whose response never reaches end-of-stream.

      It composes with turn-priority or any other fairness policy; it does not queue or reject requests when the whole pool is busy.

      Configuration

      plugins:
        - type: session-state-producer
        - type: agent-identity
        - type: cold-session-filter
          parameters:
            profileName: prefill
            maxConcurrentColdPrefills: 1
            requestTtlSeconds: 600
      
      schedulingProfiles:
        - name: prefill
          plugins:
            - pluginRef: cold-session-filter

      The filter is a no-op when no SessionState is present, so it is safe to add to pools that do not carry session headers.

      Validation

      • go test ./pkg/epp/framework/plugins/scheduling/filter/coldsession
      • go test ./cmd/epp/runner
      • gofmt, go vet

      Scope

      This adds the endpoint-placement guard. The issue's full ask โ€” queueing or capping new sessions at the flow-control layer โ€” is not implemented here; the README says so explicitly.

      Part of #2346.

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Adds cold-session-filter scheduling filter to prevent new agentic sessions (TurnsTaken == 0) from piling onto prefill endpoints already running cold prefills up to maxConcurrentColdPrefills.

      ๐Ÿ—๏ธ Design

      ColdSessionFilter implements scheduling.Filter, PreRequest, and ResponseBodyProcessor. It checks session-state-producer data for TurnsTaken == 0 and InFlightRequests == 0. When an endpoint reaches maxConcurrentColdPrefills, cold sessions are routed elsewhere, failing open if all endpoints are busy.

      ๐Ÿงช Example (How It Works)

      When endpoint A already has 1 cold prefill in flight, subsequent cold sessions are routed to endpoint B. If both A and B are busy, the filter returns both to avoid request starvation.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 4 comment(s) on coldsession.go:206, coldsession.go:156, coldsession.go:110 - [high] In-flight cold prefill counters leak permanently (up to the 10-minute TTL) when requests abort, time out, or encounter...
    • 29. PR [OPEN] feat(epp): support multi-role revision overflow guards ๐Ÿ“„ Diff (llm-d/llm-d-router#3965 by @htang7415) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 30d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: 1 Comment(s) to PR ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator); sitting 30d (>3d bump P1 -> P0); Open 30.1d (> 7d) with maintainer @ahg-g; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+745/-39 lines across 9 file(s)] During a Prefill/Decode rollout, a Prefill-only overflow check can keep a revision whose Decode endpoints are saturated, or overflow into one (Fixes #3755).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind feature

      What this PR does / why we need it:

      During a Prefill/Decode rollout, a Prefill-only overflow check can keep a revision whose Decode endpoints are saturated, or overflow into one. A fail-closed Decode profile then has no endpoints and the EPP returns HTTP 503 even when another revision has capacity for both roles.

      Allow revisionGating.overflow.guards to specify role/guard pairs. A revision is eligible only when every configured guard admits at least one endpoint of its role. Preserve the legacy guardPluginName/role form, weighted and affinity-based selection, strict revision headers, shared coordination decisions, and the all-full fallback. Validate list configuration and expose guard references through the existing plugin dependency mechanism.

      Declare delegated guards' required and optional data dependencies on the Screener so early eligibility checks can read their inputs through the request-control data scope. Guard data production runs before screening. Guards must support repeated early evaluation without admission side effects. Eligibility checks observe capacity; they do not reserve it atomically.

      Validation:

      Local Linux/arm64 builder validation passed: make presubmit (invoked with GNU Make as gmake presubmit), focused runner/loader/Screener regressions, and race tests covering those packages plus concurrency filters, disaggregation profiles, and request control. Tests exercised the reviewed Go source in commit 75521655f3321392e50f5bab4ec31ac95147cd18; the second commit only corrects the README's rejection status. Presubmit and focused regressions also passed with that README correction present.

      • ☑ Multi-role eligibility, legacy compatibility, configuration validation, dependency ordering, affinity/coordination preservation, and scoped guard data access.
      • ☑ Local EPP integration through the real runner, Kubernetes envtest, scoped data producers, profile scheduling, and ext_proc gRPC streams, using simulated backend responses.
      • ☑ 96 bounded integration trials under -race: both configuration forms, concurrency 1/8/32/64, three trials per point, and asymmetric Decode saturation, strict v1/v2, and pre-established shared coordination decisions. This covered 2,520 burst requests plus 24 coordination seeds, routing-pair consistency, selection/overflow metrics, and in-flight counter cleanup.

      In the asymmetric case at concurrency 1, the legacy form accepted 0/3 requests and the multi-role form accepted 3/3 on the revision with both roles free. Held streams filled that revision; subsequent requests could legitimately receive 503. Some concurrent trials admitted two requests to nominal capacity one in both paths, consistent with capacity observation without atomic reservation.

      Sequential overflowRevision microbenchmarks with real concurrency filters (GOMAXPROCS=4, three 300 ms repetitions; median microseconds/op):

      EndpointsPathSingle guardTwo guards
      8Keep revision0.3940.579
      8Overflow1.0711.143
      128Keep revision6.6408.961
      128Overflow12.97615.320

      The extra role adds one Filter call per measured path, 112 B/5 allocations at 8 endpoints and 2,032 B/39 allocations at 128 endpoints. These measurements exclude full screening, data production, coordination, gRPC, queueing, and backend service; they do not establish production latency or performance acceptability. Runtime/performance harnesses were local overlays and are outside the eight-file PR diff.

      Limitations and maintainer questions:

      Validation used simulated backend responses. No live Gateway/Prefill/Decode deployment, routing sidecar, GPU KV transfer, cross-replica coordination, production traffic, or endurance validation was run. Shared decisions were seeded before concurrent requests; cross-replica creation races were not modeled.

      1. Does this component extension require a separate approved project proposal, or does the issue's proposed configuration provide sufficient design coverage? This Draft does not claim proposal approval.
      2. Is the early Guard evaluation contract acceptable, including unconditional checks for every configured role on requests that later skip Prefill, repeated evaluation without admission side effects, and preparation of delegated data dependencies before screening?
      3. PR #3945 separately addresses the single-guard scoped-data prerequisite reported in #3940. Should that fix land separately before this multi-role extension? This Draft includes the dependency declarations needed to exercise multi-role eligibility through the production scope.

      Which issue(s) this PR fixes:

      Fixes #3755

      Release note _(write NONE if no user-facing change)_:

      The disaggregatedset-rollout-screener accepts revisionGating.overflow.guards to check capacity across multiple roles before choosing an overflow revision. Existing single-guard configuration remains supported, and delegated guard data dependencies are available during screening.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Extends disaggregatedset-rollout-screener with revisionGating.overflow.guards to check capacity across multiple disaggregated roles (such as prefill and decode) before keeping or selecting an overflow revision. A candidate revision has room only when every configured guard admits at least one endpoint of its role. Existing single-guard configuration (guardPluginName and role), strict revision headers, shared coordination decisions, and weighted or affinity selection policies remain unchanged.

      ๐Ÿ—๏ธ Design
      • Configuration & Mutual Exclusivity (config.go): Adds RevisionOverflowGuard (role, guardPluginName) and RevisionOverflow.UnmarshalJSON, tracking legacy key presence to reject mixed forms, null lists, empty lists, duplicate roles, and roles outside requiredRoles.
      • DAG Dependency Projection (plugin.go, runner.go): Registers DependencyParser, which projects all configured guard names onto []string tagged pluginRef:"" so buildPluginDAG instantiates every guard before the Screener.
      • Merged Data Dependencies (plugin.go): Aggregates Consumes() across all overflowGuards via rendezvous.MergeGuardConsumes so guard producers (such as inflight-load-producer) run in DataProducerPhaseRequestHandling before screening.
      • Conjunction Evaluation (overflow.go): overflowRevisionOf groups all in-scope endpoints by revision, and hasRoom requires every guard to admit at least one endpoint matching guard.role.
      ๐Ÿงช Example (How It Works)
      1. Rollout has revisions v1 and v2, configured with guards: [{role: prefill, guardPluginName: p}, {role: decode, guardPluginName: d}].
      2. Request draws v1, whose prefill endpoints are idle (0) while decode endpoints are at saturation (12).
      3. hasRoom for v1 passes p on v1 prefill endpoints, then runs d on v1 decode endpoints, which filters all of them out and returns false.
      4. overflowRevision evaluates v2 (both roles free), hasRoom returns true, and the request overflows to v2.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Discussion replied by author, awaiting reviewer LGTM - @htang7415 responded to feedback (Open discussion/comment from @ahg-g (not yet LGTM'd/approved by @ahg-g)); awaiting reviewer sign-off for consensus.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 1 comment(s) on overflow.go:92 - [low] Sizing capacity for candidates up front in hasRoom avoids slice growth reallocations on the screening hot path.
    • 30. PR [OPEN] feat: add length-adaptive-load-scorer for decode load balancing ๐Ÿ“„ Diff (llm-d/llm-d-router#4020 by @cheng-hsiang-chiu) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 29d (>3d Priority Bump) ๐Ÿ”ด DEEP REVIEW: Request Changes (4 new comment(s)) ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator); sitting 29d (>3d bump P1 -> P0); Open 29.3d (> 7d) with maintainer @kaushikmitr; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+980/-0 lines across 4 file(s)] Adds the length-adaptive-load-scorer scheduling plugin (pkg/epp/framework/plugins/scheduling/scorer/lengthadaptiveload), which scores candidate endpoints by dynamically interpolating between request-concurrency headroom... (Fixes #3880)
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind feature

      What this PR does / why we need it:
      Adds the length-adaptive-load-scorer scheduling plugin (pkg/epp/framework/plugins/scheduling/scorer/lengthadaptiveload), which scores candidate endpoints by dynamically interpolating between request-concurrency headroom ($S_{\text{queue}}$) and in-flight KV token headroom ($S_{\text{token}}$) based on the incoming request's prompt token length $L_r$:

      $\alpha(L_r) = \text{clip}\!\left(\frac{L_r - \text{shortThresholdTokens}}{\text{longThresholdTokens} - \text{shortThresholdTokens}},\, 0.0,\, 1.0\right)$

      $S_{\text{raw}}(w, r) = \bigl(1 - \alpha(L_r)\bigr) \cdot S_{\text{queue}}(w) + \alpha(L_r) \cdot S_{\text{token}}(w)$

      • Short requests ($L_r \le \text{shortThresholdTokens}$, default 512): Routed by active request count ($\alpha = 0$) to fill idle decode batch slots.
      • Long requests ($L_r \ge \text{longThresholdTokens}$, default 16384): Routed by in-flight KV token load ($\alpha = 1$) to avoid stacking long-context KV caches on the same decode pod.
      • Capacity ceiling guardrails: Endpoints where $N_w + 1 > N_{\max}(w)$ or $K_w + L_r > K_{\max}(w)$ receive a score of 0.0 (falling back to $S_{\text{raw}}$ if all endpoints exceed the guardrail simultaneously).
      • Two-tier per-endpoint capacity lookup: Checks endpoint labels (llm-d.ai/max-num-seqs and llm-d.ai/max-kv-tokens by default, configurable via maxConcurrencyLabel and maxTokenCapacityLabel) first for heterogeneous accelerator pools (#3791), and falls back to plugin parameters (maxConcurrency, default 256, and maxTokenCapacity, default 150000).
      Test Plan
      • ☑ Parameter parsing, defaults, threshold clamping, and invalid JSON handling (TestFactory)
      • ☑ Short, medium, long, and guardrail routing across asymmetric pod loads (TestLengthAdaptiveLoadScorer_2PodDeepInferScenario)
      • ☑ Empty endpoints, idle pods (zero division check), byte-size fallback, and all-pods-saturated fallback (TestLengthAdaptiveLoadScorer_EdgeCases)
      • ☑ Data-layer attribute scope enforcement (TestLengthAdaptiveLoadScorer_ScopeInvocation)
      • ☑ Decode-lifetime token retention between StartOfStream and EndOfStream (TestLengthAdaptiveLoadScorer_DecodeLifecycleRetainsTokensUntilEndOfStream)
      • ☑ Two-tier per-pod label capacity normalization and guardrails for heterogeneous pools (TestLengthAdaptiveLoadScorer_HeterogeneousPerPodCapacityLabels)

      Which issue(s) this PR fixes:
      Fixes #3880

      Release note _(write NONE if no user-facing change)_:

      Added `length-adaptive-load-scorer` scheduling plugin that dynamically blends request-concurrency scoring and KV token-load scoring based on request prompt length, with two-tier per-endpoint capacity guardrails.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Discussion replied by author, awaiting reviewer LGTM - @cheng-hsiang-chiu responded to feedback (Open discussion/comment from @kaushikmitr (not yet LGTM'd/approved by @kaushikmitr)); awaiting reviewer sign-off for consensus.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 4 comment(s) on length_adaptive_load.go:206, length_adaptive_load.go:466, runner.go:750 - [high] Scorer implements request lifecycle hooks and shadow token tracking instead of fixing InFlightLoadProducer.
    • 31. PR [OPEN] feat(disagg): add kv-compat-pd-decider and kv-compat-filter ๐Ÿ“„ Diff (llm-d/llm-d-router#4036 by @redhat-telco-guy) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 28d (>3d Priority Bump) ๐Ÿ”ด DEEP REVIEW: Request Changes (4 new comment(s)) ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity); sitting 28d (>3d bump P1 -> P0); Open 28.9d (> 7d) with maintainer @elevran; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+1074/-1 lines across 8 file(s)] The problem (Part of #3791).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind feature

      What this PR does / why we need it:

      The problem. In prefill/decode (P/D) disaggregation, one GPU reads the prompt (prefill) and hands its memory (the KV cache) to another GPU that writes the answer (decode). vLLM only accepts this handoff when both sides are set up the same way: same vLLM build, model, data types, KV layout and attention backend. vLLM checks this with a compatibility hash during the NIXL handshake. Two GPU generations can fail this check even when they serve the same model, for example when one card picks a different attention backend. When that happens, the decode GPU rejects the memory and the request fails. Today the router cannot tell which prefill GPUs are safe for a given decode GPU, so it keeps sending requests into these failures.

      What this PR adds. Two Alpha plugins that read a compatibility key on each pod (label llm-d.ai/kv-compat-key). The key is set by whatever deploys or labels the model servers.

      • kv-compat-pd-decider wraps any existing prefill decider, for example prefix-based-pd-decider. It asks one question first: does this decode GPU have at least one prefill GPU it can safely take memory from? If not, the request is served on the decode GPU alone, so it gets answered instead of failing. If yes, it returns the wrapped decider's answer unchanged.
      • kv-compat-filter goes in the prefill profile. It removes the prefill GPUs that the chosen decode GPU cannot take memory from.

      When two pods count as compatible:

      • Their keys are equal.
      • Or the pair is approved, either in the decider's approvedPairs setting ("prefillKey->decodeKey", one direction only) or by a label on the decode pod: accept.kv-compat.llm-d.ai/<prefillKey>=true.

      If no pod carries a key, nothing changes: both plugins pass everything through.

      Why the check is in the decider and not only in the filter. If the prefill profile ends up with no pod, the request fails. If the decider says no, the request is served decode-only. So the decider must say no when no safe prefill pod exists.

      Cost on the request path. The decider keeps a count of prefill pods per key, updated from endpoint events, so a decision reads a few map entries instead of scanning the pool.

      Results (details and data in #3791):

      Stock llm-dWith this PR
      GPU lab (T4 + A10G prefill, L4 decode): long documents that failed, busy systemabout 40 of 86 per run0
      Same lab, idle systemabout 73 of 86 per run0
      Load test (simulated pods, 10% with an incompatible key): requests sent to incompatible pods per minute1,400 to 2,3000

      Chat traffic was unchanged.

      Example config:

      - type: prefix-based-pd-decider
        parameters:
          nonCachedTokens: 1024
      - type: kv-compat-pd-decider
        parameters:
          decider: prefix-based-pd-decider
      - type: kv-compat-filter
        parameters:
          decider: kv-compat-pd-decider
      - type: disagg-profile-handler
        parameters:
          deciders:
            prefill: kv-compat-pd-decider
      # and add `- pluginRef: kv-compat-filter` to the prefill scheduling profile

      This is part 1 of 3, as discussed in #3791, and replaces draft #3953:

      1. This PR: the compatibility check.
      2. Avoid pairs that keep failing.
      3. The cost-based decider.

      Which issue(s) this PR fixes:
      Part of #3791

      Test plan:

      • ☑ Decisions with no keys, equal keys, different keys, accept labels, approved pairs (one direction only), a decode pod without a key, and decode pods not counted as prefill candidates
      • ☑ The key index follows pod add, update and delete events
      • ☑ The filter keeps only compatible prefill pods, and passes everything through when there is no decode pick or no keys
      • ☑ Scheduler end to end: an incompatible pool is served decode-only with no error; a mixed pool picks the compatible prefill pod
      • ☑ Factories, config validation, and a full EndpointPickerConfig with these plugins loads and passes data-dependency validation
      • ☐ make presubmit

      Release note _(write NONE if no user-facing change)_:

      Add the Alpha kv-compat-pd-decider and kv-compat-filter plugins. They stop P/D disaggregation from pairing a prefill pod with a decode pod whose KV compatibility key differs; such requests are served decode-only instead of failing.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Active debate / open discussion (2 open, 9 resolved) - Back-and-forth between @elevran and @redhat-telco-guy on kv_compat_test.go:217, kv_compat.go:259; not yet resolved.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 4 comment(s) on kv_compat.go:420, kv_compat.go:269, kv_compat.go:448 - [high] Inverted plugin architecture: filter is hard-coupled to decider via concrete pointer assertion instead of consuming typed...
    • 32. PR [OPEN] pd-disaggregation: enable the routing sidecar's InferencePool allowlist ๐Ÿ“„ Diff (llm-d/llm-d#3044 by @ahg-g) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 25d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: Open Discussion / Comments ๐ŸŸก Medium Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Tier-1 API/security contract change (Upstream Gateway API / CRD schema contract); sitting 25d (>3d open PR, already P0)
      ๐Ÿ“Œ Change Summary: [+177/-0 lines across 11 file(s)] Turns on the llm-d-router sidecar's SSRF allowlist in the pd-disaggregation guide for the overlays that carry their own DisaggregatedSet manifest: gpu/vllm/base (and the cks-mooncake overlay that replaces its sidecar... (Part of #3043)
      ๐Ÿ“„ View Full PR Description

      What this PR does

      Turns on the llm-d-router sidecar's SSRF allowlist in the pd-disaggregation guide for the overlays that carry their own DisaggregatedSet manifest: gpu/vllm/base (and the cks-mooncake overlay that replaces its sidecar args), gpu/sglang/base, and tpu/v7-dynamic-slice/vllm/base.

      Per decode pod:

      1. --enable-ssrf-protection=true on the routing-proxy container. The sidecar then accepts a prefill target only when it is a pod of the InferencePool on a pool target port, and rejects any other value of the prefill header with 403.
      2. INFERENCE_POOL=$(POD_NAMESPACE)/pd-disaggregation. The namespace comes from the downward API. The pool name is the router release name, which the README already marks as mandatory for this guide because the pool selector pairs with it.
      3. A projected service account token mounted at the default path in the sidecar container only. The service account keeps automountServiceAccountToken: false, so the model server still runs without a token.
      4. A Role and RoleBinding (rbac.yaml) with list and watch on inferencepools and pods, bound to the decode service account. Without the pods permission the allowlist stays empty and every prefill request fails, so the RBAC lands with the flag.

      The README gets one paragraph that states the behavior and links to the router's SSRF Protection docs.

      Why

      Part of #3043. The sidecar reads the prefill target from the x-llm-d-prefiller-host-port header. The EPP drops client values of that header, so the gateway path is closed, but any peer that reaches a decode pod's sidecar port directly can still choose the target. The allowlist is the control the router ships for that case, and the published manifests did not enable it.

      Scope

      Only the three standalone pd-disaggregation bases. The overlays that build on guides/recipes/modelserver/base/single-host/pd-disaggregatedset (the other pd-disaggregation accelerators, coord-disaggregation, multimodal-serving, and several models/* guides) share one base across guides whose InferencePool names differ, so they need a per-overlay INFERENCE_POOL patch and are left for a follow-up. wide-ep, p2p-kv-cache-sharing, and the models/* guides with their own manifests are also follow-ups.

      Verification

      • kubectl kustomize renders every overlay under gpu/vllm, gpu/sglang, and tpu/v7-dynamic-slice/vllm (aws, coreweave, gke, ocp, cks-mooncake). Each rendered decode pod has the flag, the two env vars, the token mount, the projected volume, and one RoleBinding.
      • python scripts/guide.py render guides/pd-disaggregation/ --check reports the README up to date.
      • Prefill pods listen on 8000, which is the pool target port, so the allowlist admits them. The SGLang bootstrap port and the NIXL side channel are not checked by the allowlist, so they are unaffected.
      • Not run on a cluster. The nightly for this guide exercises the standard GPU vLLM path.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Enables SSRF protection for the llm-d-router sidecar in the pd-disaggregation guide across NVIDIA GPU (vLLM and SGLang) and TPU7x dynamic sub-slice overlays, restricting prefill proxying to validated InferencePool pod endpoints while keeping model server containers unprivileged.

      ๐Ÿ—๏ธ Design

      The change activates --enable-ssrf-protection=true on the routing-proxy sidecar container in each DisaggregatedSet decode role. To populate the allowlist without granting the model server Kubernetes API access, each decode pod spec adds a projected volume (sidecar-sa-token) mounted read-only strictly inside the sidecar, while keeping automountServiceAccountToken: false on the underlying ServiceAccount. A namespace-scoped Role and RoleBinding provide list and watch permissions on inferencepools and pods, and the sidecar resolves its target pool via INFERENCE_POOL=$(POD_NAMESPACE)/pd-disaggregation.

      ๐Ÿงช Example (How It Works)
      # Projected token mounted exclusively in the sidecar container
      volumeMounts:
        - name: sidecar-sa-token
          mountPath: /var/run/secrets/kubernetes.io/serviceaccount
          readOnly: true
      volumes:
        - name: sidecar-sa-token
          projected:
            sources:
              - serviceAccountToken:
                  path: token
                  expirationSeconds: 3600
              - configMap:
                  name: kube-root-ca.crt
                  items:
                    - key: ca.crt
                      path: ca.crt
              - downwardAPI:
                  items:
                    - path: namespace
                      fieldRef:
                        fieldPath: metadata.namespace
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open discussion / comment - Open discussion/comment from @jperezdealgaba (not yet LGTM'd/approved by @jperezdealgaba) (awaiting @ahg-g's response or LGTM alignment).
      ๐Ÿงช Nightly CI: 4/4 test-nightly job(s) need manual trigger (not yet triggered at 7f9f54c): pd-disaggregation-cks-acc-gpu-vllm-x, pd-disaggregation-gke-acc-gpu-sglang-x, pd-disaggregation-gke-acc-gpu-vllm-x, pd-disaggregation-ibm-acc-gpu-vllm-x.
      ๐Ÿš€ Manual Nightly Trigger Commands (post 1 command per PR comment):โ†— Comment on PR
      /test-nightly pd-disaggregation-cks-acc-gpu-vllm-x/test-nightly pd-disaggregation-gke-acc-gpu-sglang-x/test-nightly pd-disaggregation-gke-acc-gpu-vllm-x/test-nightly pd-disaggregation-ibm-acc-gpu-vllm-x
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: Do Not Auto-Approve: Open discussion/comment from @jperezdealgaba (not yet LGTM'd/approved by @jperezdealgaba).
    • 33. PR [OPEN] feat(epp): admit sheddable requests on the negative band ๐Ÿ“„ Diff (llm-d/llm-d-router#4186 by @tsisodia10) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 23d (>3d Priority Bump) ๐Ÿ”ด DEEP REVIEW [No Review Yet]: Request Changes (4 new comment(s)) ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Tier-1 API/security contract change (Security / CVE / ingress header boundary); sitting 23d (>3d open PR, already P0)
      ๐Ÿ“Œ Change Summary: [+1102/-45 lines across 18 file(s)] RHAISTRAT-2347 / RHOAIENG-99624. The Endpoint Picker reads x-llm-d-inference-priority-class and turns it into one admission priority: The same integer is stored on the request and on the request_prio span attribute.
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind feature

      What this PR does / why we need it:

      RHAISTRAT-2347 / RHOAIENG-99624. The Endpoint Picker reads x-llm-d-inference-priority-class and turns it into one admission priority:

      • sheddable uses -1. The InferenceObjective object is not edited. With flow control off, a saturated pool rejects that request with the existing HTTP 429. With flow control on, the request waits on the -1 band, which is provisioned at startup and kept on every reconcile.
      • critical, a missing header, and an empty or unrecognized header keep the InferenceObjective priority, including when that priority is already negative.

      The same integer is stored on the request and on the request_prio span attribute. The span also carries llm_d.epp.priority_class. Metrics on port 9090 are llm_d_epp_requests_total, llm_d_epp_priority_class_shed_total, and llm_d_epp_priority_class_unknown_total. Fairness ids on those series use the existing label cap.

      Flow control stays off unless the deployment enables it. The operator doc is docs/optimistic-scheduling.md. It covers the admission rules, the requirement that queued burst needs the flowControl gate, and the saturation polling window.

      This pull request does not stamp the header. The requesting layer owns that, and it must overwrite a client-supplied value.

      Which issue(s) this PR fixes:

      RHOAIENG-99624

      Release note:

      The Endpoint Picker treats x-llm-d-inference-priority-class sheddable as admission priority -1 and drops that request when the pool is full. Critical, missing, and invalid values keep the InferenceObjective priority.

      Test plan

      • ☑ go test ./pkg/epp/requestcontrol/ ./pkg/epp/controller/ ./pkg/epp/metrics/ ./pkg/epp/flowcontrol/ -count=1 covers parse, admission priority, legacy full-pool and spare-capacity drops, the sheddable band, and unsafe fairness-id labels
      • ☑ Operator doc: docs/optimistic-scheduling.md and the priority-class section in docs/metrics.md
      • ☑ A live Limitador stamp and a cross-site gateway hop are outside this change
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 4 comment(s) on consts.go:67, director.go:400, inferenceobjective_reconciler.go:162 - [high] Do we need a hardcoded core header contract for x-llm-d-inference-priority-class instead of using...
    • 34. PR [OPEN] feat(epp): add resumeOnOtherPod option to thunder-agent ๐Ÿ“„ Diff (llm-d/llm-d-router#4251 by @PyExtreme) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 20d (>3d Priority Bump) ๐Ÿ”ด DEEP REVIEW: Request Changes (2 new comment(s)) ๐ŸŸก Medium Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Feature implementation / request; sitting 20d (>3d bump P1 -> P0); Open 20.4d (> 7d) with maintainer @zetxqx; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+163/-21 lines across 7 file(s)] Adds resumeOnOtherPod to thunder-agent, off by default. Today a paused session only goes back to its own pod, so if that pod stays full it waits up to forceAdmitTimeout even when other pods have room (Part of #3221).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind feature

      What this PR does / why we need it:

      Adds resumeOnOtherPod to thunder-agent, off by default. Today a paused session only goes back to its own pod, so if that pod stays full it waits up to forceAdmitTimeout even when other pods have room. With the option on, a paused session that doesn't fit its own pod (even after reclaiming idle sessions there) falls back to findFitPod, and admitLocked rebinds and reserves it on that pod like a new session. Its own pod still wins whenever it fits, and a session that fits no pod keeps waiting for its own.

      There is one guard. A second queued turn of the same session, picked before PreRequest charges the first, stays on its pod. Without the guard that turn still looked paused and its own reservation had already used up the pod's room, so it got moved again and the first turn's reservation was lost. Both cases have a test.

      Known limits: the move only lands if the thunder-agent scorer decides the pick. If another scorer outweighs it, or the new pod is filtered out, PreRequest rebinds the session to the old pod. A request cancelled before PreRequest leaves the session bound to the new pod, same as a new session today.

      This will conflict with #4191 in fairness.go and manager.go. I'll rebase whichever way it lands.

      Benchmark (asked for in the issue)

      This is a small Go simulation, not an engine or GPU run. It drives the plugin's real Saturation/Pick/Score/PreRequest/ResponseBody hooks in scaled wall-clock time. Completion times come from a synthetic cost: prefill is uncached tokens times a per-token cost, plus 15 ms of decode.

      The workload is built so that moving can help. Two pods of 20000 tokens, short sessions that fill pod-b and then finish, long sessions that outgrow pod-a. Each row is 5 seeds x 3 repetitions, and tool delays are fixed per (seed, session, turn) so off and on see the same workload.

      Pausing only changes thunder-agent's accounting and doesn't evict anything in vLLM, so I ran two hypothetical cache scenarios. In "lost" the prefix is gone once a session is paused. In "kept" it stays reusable on the session's last pod and only a move recomputes the history, which favors staying. "Shared" compute means a pod prefills one request at a time, so a recompute delays the requests behind it.

      Cache scenarioComputePrefill cost (us/token)Completion ms, off -> onChange per pair (min / median / max)Pairs where on was slowerEPP admission wait p99 ms, off -> on
      lostindependent22955-3501 -> 1651-2044-48% / -44% / -32%0 of 15533-798 -> 31-183
      keptindependent22711-3267 -> 1716-1944-45% / -39% / -34%0 of 15596-827 -> 38-133
      keptindependent82787-3220 -> 1858-2104-42% / -37% / -32%0 of 15610-828 -> 75-167
      keptshared22640-3196 -> 1695-2038-41% / -38% / -32%0 of 15490-856 -> 62-161
      keptshared82964-3335 -> 1912-2222-36% / -34% / -30%0 of 15609-943 -> 83-210
      keptshared403824-4395 -> 3093-4610-20% / -10% / +10%2 of 15585-983 -> 68-430
      no pressure (10x capacity)independent21517-1676 -> 1515-1671-0% / -0% / +0%3 of 150 -> 0

      Ranges are min-max over the 15 runs. A pair is the off and on run with the same seed and repetition.

      All 210 runs finished every session, and forced admission never fired. At 2 and 8 us/token the option was faster in all 75 pairs. At 40 us/token with shared prefill it is mixed: the median pair is 10% faster, but 2 of 15 were slower (+1% and +10%), and repeats of the same run differ by up to 15% there. In that row some of the wait also moves from the EPP queue to the pod's prefill slot (mean prefill-slot wait goes from 48-50 ms to 62-85 ms). With nothing under pressure the option does nothing.

      p99 is per run over 104 turns, so it rests on about 2 values. These are simulated timings under one constructed workload and cost model, so they say nothing about real GPU throughput or latency. If the harness or the per-run numbers would help the review, let me know and I will share them.

      Which issue(s) this PR fixes:
      Part of #3221 (item 3)

      Test plan:

      • ☑ Paused session moves to another pod when its own pod is full. Old pod's working set unchanged, scorer pins the new pod, resume counted
      • ☑ Own pod is kept when it fits by reclaiming idle sessions
      • ☑ Holds on its own pod when no pod fits
      • ☑ Moved session can reclaim an idle session on the target pod
      • ☑ Second turn picked before PreRequest does not move the session (in place and already moved)
      • ☑ Config parses resumeOnOtherPod, default off

      Release note _(write NONE if no user-facing change)_:

      thunder-agent: add `resumeOnOtherPod` (default false). When enabled, a paused session whose own pod has no room resumes on another pod with room, which recomputes its history.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Active debate / open discussion (1 open, 2 resolved) - Back-and-forth between @zetxqx and @PyExtreme on fairness.go; not yet resolved.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 2 comment(s) on fairness.go:207, config.go:50 - [high] Committing cross-pod rebinds and target-pod idle-session evictions inside FairnessPolicy.Pick couples admission control...
    • 35. PR [OPEN] [Flow Control] add SJF ordering policy with optional bounded delay ๐Ÿ“„ Diff (llm-d/llm-d-router#4326 by @sarahliu-cisco) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 17d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: 1 Comment(s) to PR ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Admission, flow control, & saturation); sitting 17d (>3d bump P1 -> P0); Open 17.1d (> 7d) with maintainer @LukeAVanDrie; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+575/-0 lines across 8 file(s)] Adds sjf-ordering-policy (Shortest Job First), an Alpha flow control ordering policy that dispatches smaller requests first while bounding how long any request can be passed (Fixes #4872).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind feature https://github.com/llm-d/llm-d-router/issues/4872

      What this PR does / why we need it:

      Adds sjf-ordering-policy (Shortest Job First), an Alpha flow control ordering policy that dispatches smaller requests first while bounding how long any request can be passed. Under saturation this lowers mean queue wait compared with FCFS when request size tracks service time.

      • Cost is the request body size (ByteSize). Each request is ordered by EnqueueTime + maxDelaySeconds * min(ByteSize / referenceBytes, 1), with FCFS breaking ties, so only requests that arrived within maxDelaySeconds after a request can be dispatched ahead of it.
      • maxDelaySeconds defaults to 2 and referenceBytes to 65536. Both must be positive, and maxDelaySeconds must be below the time.Duration overflow.
      • The key is fixed at enqueue, so the policy works with the existing heap queue and needs no queue changes.
      plugins:
      - type: sjf-ordering-policy
        parameters:            # optional; defaults are maxDelaySeconds 2, referenceBytes 65536
          maxDelaySeconds: 5
          referenceBytes: 131072
      - type: round-robin-fairness-policy
      flowControl:
        priorityBands:
        - priority: 100
          orderingPolicyRef: sjf-ordering-policy
          fairnessPolicyRef: round-robin-fairness-policy

      Design notes:

      • Under global-strict-fairness-policy (the default), the fairness policy compares flow heads with this policy's Less, so the size order applies across all flows in the band. Under round-robin or weighted-fair-share it applies within each flow. The README recommends a per-flow fairness policy when tenants share a band.
      • Prefix-cache hits are not part of the cost: uncached prefill tokens would be a better key, but the count is not available at queue time.

      Which issue(s) this PR fixes:
      Fixes #4872

      Release note _(write NONE if no user-facing change)_:

      Add the Alpha `sjf-ordering-policy` flow control ordering policy, which dispatches smaller requests first. Optional `maxDelaySeconds` (default 2) and `referenceBytes` (default 65536) bound how long a larger request can be passed.

      Test plan:

      • ☑ Smaller requests are ordered first when the delay exceeds the arrival gaps, equal sizes keep arrival order, and items without a request get the full delay
      • ☑ A small request passes a large one only when the large one has waited less than its delay, and the delay is capped at referenceBytes
      • ☑ Defaults apply when parameters are unset; zero, negative, and overflowing values are rejected
      • ☑ Integration: a saturated flow dispatches in SJF order through the real controller, registry, and heap queue
      • ☑ Integration: under global-strict fairness, two flows in one band are ordered by size across flows, and maxDelaySeconds bounds passing across flows
      • ☑ Policy passes the shared ordering-policy conformance tests
      • ☑ make presubmit
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Adds sjf-ordering-policy at StabilityAlpha to favor smaller queued requests under flow-control saturation while bounding overtaking by maxDelaySeconds. Each item's priority key is computed deterministically from its enqueue time and request ByteSize, leaving the underlying priorityQueue heap, FlowController, and downstream scheduler untouched.

      ๐Ÿ—๏ธ Design
      • **Policy & config (sjf.go):** SJFOrderingPolicyFactory decodes optional maxDelaySeconds (default 2, 0 collapses to FCFS, upper-bounded below math.MaxInt64/float64(time.Second)) and referenceBytes (default 65536, > 0). SJFPolicy is an immutable, goroutine-safe flyweight singleton.
      • **Comparator invariant (delayedArrival):** Computes EnqueueTime + maxDelaySeconds * min(ByteSize/referenceBytes, 1) on the fly with zero allocations and breaks ties by EnqueueTime. Missing OriginalRequest() maps to math.MaxUint64 (full delay), and nil QueueItemAccessor sorts lowest.
      • Registration & tests: Registered as Alpha in runner.go, added to TestOrderingPolicyConformance, and verified end-to-end across single-flow and two-flow global-strict bands in TestDispatchOrderingSJF.
      ๐Ÿงช Example (How It Works)
      1. Configure sjf-ordering-policy with maxDelaySeconds: 2 and referenceBytes: 1000.
      2. At t = 0s, a 1000-byte request R1 arrives while the pool is saturated; its delayedArrival is t + 2s.
      3. At t = 0.5s, a 100-byte request R2 arrives; its delayedArrival is 0.5s + 0.2s = 0.7s (< 2s), so R2 moves ahead of R1 in the heap.
      4. If R3 (100 bytes) arrives at t = 2.5s (delayedArrival = 2.7s > 2s), R1 dispatches before R3 because R1 has already waited past maxDelaySeconds.
      ๐Ÿ’ฌ Discussion Summary: ๐Ÿ”ด Changes requested (no consensus) - Changes requested by @LukeAVanDrie (2 open thread(s), 3 resolved); debate/feedback not yet resolved.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 1 comment(s) on README.md:84 - [low] Computational Overhead is listed under ## Workload Fit instead of ## Trade-offs.
    • 36. PR [OPEN] feat(coordinator): attach a trace exemplar to upstream request duration ๐Ÿ“„ Diff (llm-d/llm-d-router#4380 by @khrek) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 15d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: Hold / Comment on PR ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator); sitting 15d (>3d bump P1 -> P0); Open 15.0d (> 7d) with maintainer @roytman; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+108/-23 lines across 14 file(s)] Part of #3584, the "Coordinator: upstream request duration" row under item 2. llm_d_coordinator_upstream_request_duration_seconds records how long each outbound call from a coordinator step takes.
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind feature

      What this PR does / why we need it:

      Part of #3584, the "Coordinator: upstream request duration" row under item 2.

      llm_d_coordinator_upstream_request_duration_seconds records how long each outbound call from a coordinator step takes. Its Observe call is replaced with the shared ObserveWithTraceExemplar, so for sampled requests each call duration carries the requestโ€™s trace as an exemplar, and a slow call links to the step that made it.

      To get the request context to the recorder:

      • UpstreamCall.Done and RecordUpstreamRequestDuration now take a ctx, and every step that calls an upstream service passes its own.
      • In decode_proxy.go, the timedRoundTripper callback gets the ctx from the outgoing request.

      The exemplar's span_id is the span of the step that made the call. The metric name, labels and buckets are unchanged.

      I also noted in docs/metrics.coord.md that the metric now carries a trace exemplar.

      Test plan:

      • ☑ A call made inside a step's span attaches that span's trace_id and span_id.
      • ☑ A call with an unsampled span, or with no span, attaches no exemplar, and the duration is still observed.
      • ☑ The decode proxy passes the step's span to its recorder through the reverse proxy.
      • ☑ go test -race passes for ./pkg/coordinator/... and ./cmd/coordinator/....
      • ☑ make -f Makefile.coord.mk presubmit passes.
      • ☑ make presubmit passes except verify-review-playbook, which also fails on main's HEAD because of a file unrelated to this change.

      Which issue(s) this PR fixes:

      Part of #3584

      Release note:

      The coordinator's llm_d_coordinator_upstream_request_duration_seconds histogram now carries a trace exemplar for sampled requests, so an upstream latency point links to the step span that made the call. Exemplars require an OpenMetrics scrape and exemplar storage in Prometheus.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Threads context.Context into coordinator upstream latency recording so llm_d_coordinator_upstream_request_duration_seconds attaches the calling step's OpenTelemetry trace exemplar via metricsutil.ObserveWithTraceExemplar. Metric names, labels, histogram buckets, and upstream_request_total counting behavior remain unchanged.

      ๐Ÿ—๏ธ Design
      • RecordUpstreamRequestDuration and UpstreamCall.Done take ctx context.Context and delegate to ObserveWithTraceExemplar, matching RecordStepDuration.
      • Synchronous step helpers (asyncbroker/broker.go, force_stream.go, grpc_relay.go, render.go, replace_media_urls.go, utils.go) pass their step or derived context into call.Done(ctx) while the pipeline step span is still recording.
      • On the reverse-proxy decode path, timedRoundTripper.RoundTrip passes r.Context() from the cloned outgoing request to RecordUpstreamRequestDuration.
      ๐Ÿงช Example (How It Works)
      1. Pipeline runStep starts a sampled decode span on ctx and invokes DecodeStep.Execute.
      2. serveDecode wraps transport in timedRoundTripper; ReverseProxy.ServeHTTP clones proxyReq with ctx and calls RoundTrip.
      3. After headers arrive, timedRoundTripper calls RecordUpstreamRequestDuration(r.Context(), UpstreamDecode, d), attaching both trace_id and the decode step's span_id as an exemplar (or omitting exemplars for unsampled/traceless requests while still observing d).
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Discussion replied by author, awaiting reviewer LGTM - @khrek responded to feedback (Open discussion/comment from @roytman (not yet LGTM'd/approved by @roytman)); awaiting reviewer sign-off for consensus.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: Hold / Comment on PR (manual review required; not cleared for auto-approve).
    • 37. PR [OPEN] feat(epp): add model inference health signals ๐Ÿ“„ Diff (llm-d/llm-d-router#4389 by @nicole-lihui) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 14d (>3d Priority Bump) ๐Ÿ”ด DEEP REVIEW [No Review Yet]: Request Changes (2 new comment(s)) ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Feature implementation / request; sitting 14d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+598/-0 lines across 7 file(s)] A model server can pass ordinary health checks while inference fails or stops producing output (Fixes #4383).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind feature

      What this PR does / why we need it:

      A model server can pass ordinary health checks while inference fails or stops producing output. Add an opt-in model-inference-health producer that combines verified business output with bounded inference probes when response activity is absent. It discovers the endpoint's model automatically and reduces probe frequency while requests are in flight.

      Publish reusable endpoint health state and two EPP metrics: llm_d_epp_model_inference_up and llm_d_epp_model_inference_probes_total. Unknown or expired results have no up series. Scheduling and Pod readiness remain unchanged.

      Validation includes affected-package race tests and local kind checks for idle probing, business-output suppression, in-flight suppression, inference errors, timeouts, and recovery. The kind backend is simulated; real vLLM/GPU faults and full Envoy integration remain unverified.

      Known limitation: the existing data-layer auto-registration path does not apply the model source's polling interval. Local kind observed 100 model-list queries in five seconds. Explicitly configuring models-data-source under dataLayer.sources respected the interval (three queries in six seconds with a two-second interval). This needs resolution before relying on automatic source wiring.

      The local presubmit review-bundle gate has a baseline failure: forwardtokens/plugin.go has no production routing row. This was also reproduced on a clean upstream archive.

      Which issue(s) this PR fixes:
      Fixes #4383

      Release note _(write NONE if no user-facing change)_:

      Add an opt-in model-inference-health plugin that observes business inference output and probes inactive endpoints, exposing inference-health metrics and reusable endpoint state without changing routing or Pod readiness.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 2 comment(s) on plugin.go:80, data_types.go:110 - [high] Do we need active synthetic /v1/chat/completions probing in every EPP replica, and should endpoint polling live in...
    • 38. PR [OPEN] handlers: forward passthrough response chunks as they arrive ๐Ÿ“„ Diff (llm-d/llm-d-router#4412 by @lkhun9311) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 13d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: 1 Comment(s) to PR ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Standard correctness bug fix; sitting 13d (>3d bump P1 -> P0); Open 13.8d (> 7d) with maintainer @ahg-g; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+1238/-4 lines across 6 file(s)] Thanks @larkowl for comparing the same gateway with and without llm-d in the report, which narrowed the buffering to the llm-d route.
      ๐Ÿ“„ View Full PR Description

      Thanks @larkowl for comparing the same gateway with and without llm-d in the report, which narrowed the buffering to the llm-d route.

      What type of PR is this?
      /kind bug

      What this PR does / why we need it:

      A gRPC server-streaming call routed with passthrough-parser reaches the client only after the backend finishes. passthrough.ParseRequest never sets Body.Stream, and at response headers only text/event-stream turns streaming on, so the EPP buffers every chunk until the trailers.

      This implements design B from https://github.com/llm-d/llm-d/issues/3089#issuecomment-7039736614, where I asked which design you prefer:

      • ParseResult gets an OpaqueResponse field, set only by passthrough-parser.
      • On this opaque path the EPP forwards each response body chunk unchanged as it arrives, and records completion and the terminal hook once at end of stream or trailers. With trailers it sends one empty body response carrying the final dynamic metadata first.
      • text/event-stream responses keep the existing streaming path. Other parsers keep the complete-body contract.

      Time to first message behind agentgateway v1.7.0 on a CPU kind node (18 messages 80 ms apart, 100 calls at c=1): p50 1454.0 ms on main, 83.2 ms with this PR, 82.5 ms without the EPP. Results up to c=128, fault injection and the design note: https://github.com/llm-d/llm-d-router/pull/4412#issuecomment-7061982969, https://github.com/lkhun9311/gpu-platform-control-plane/blob/0c0633de1ec1d53a84ecb878fb82a2684876d4fb/experiments/llmd-3089-grpc-stream/design-note.md

      Design A instead: passthrough-parser sets Body.Stream for gRPC requests. It also fixes the gRPC latency, but HTTP passthrough bodies without text/event-stream stay buffered, and there is no body response for the final metadata before the trailers. If you prefer A, I'll switch this PR to it.

      Behavior changes on the opaque path only:

      • TTFT is the time to the first response byte, labeled streaming="false".
      • The model-name rewrite and token usage are not applied to the response body. passthrough-parser sets no model name, so the rewrite was a no-op there on main.

      Testing: unit and integration tests cover per-message forwarding while the backend holds the next message, final metadata before trailers, trailers-only errors, client disconnect, backpressure (at most 3 chunks read ahead), and a 66 MB stream with heap growth under 16 MiB. The forwarding tests fail on main. go test -race passes for ./pkg/epp/handlers/..., ./pkg/epp/framework/plugins/requesthandling/parsers/... and ./pkg/epp/framework/interface/requesthandling/....

      Which issue(s) this PR fixes:
      Fixes llm-d/llm-d#3089

      Release note _(write NONE if no user-facing change)_:

      With `passthrough-parser`, the EPP forwards response chunks other than `text/event-stream` as they arrive, so gRPC server-streaming responses reach the client message by message. For these responses TTFT is measured to the first response byte and the model-name rewrite is not applied.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Adds an OpaqueResponse flag on ParseResult and sets it in passthrough-parser so StreamingServer forwards non-SSE response chunks immediately without buffering or mutating them, while still observing headers, trailers, tool-calling telemetry, metrics, and DynamicMetadata. Previously, only Body.Stream or text/event-stream bypassed response buffering, causing gRPC server-streaming responses on passthrough-parser to stall until trailers arrived. Existing text/event-stream responses continue on modelServerStreaming, and all other parsers retain their complete-body or streaming contracts unchanged.

      ๐Ÿ—๏ธ Design
      • Parser contract (parser.go#L134-L138, passthrough.go#L80-L81): ParseResult.OpaqueResponse declares that the parser neither reads nor rewrites response bodies; PassthroughParser.ParseRequest sets OpaqueResponse: true with SkipResponseProcessing: false.
      • Per-chunk forwarding (server.go#L1048-L1061): When reqCtx.modelServerStreaming is false (not text/event-stream) and reqCtx.opaqueResponse is true, Process tracks responseSize, firstTokenTimestamp, and upstream tool-calling detection, forwards each chunk immediately via generateResponseBodyResponses, and invokes HandleResponseBody(ctx, reqCtx, nil, true) once at EndOfStream.
      • Headers-only and trailers termination (server.go#L1007-L1025, server.go#L1147-L1172, server.go#L1326-L1329): On ResponseHeaders with EndOfStream, Process uses upstream grpcStatusFromHeaders classification, completes the response, attaches DynamicMetadata to respHeaderResp, and marks toolCallingForwardedComplete on header send. On ResponseTrailers, finishResponse runs HandleResponseBody once with nil, true, emits a BodyResponse carrying DynamicMetadata before TrailersResponse, and sums per-chunk responseProcessingDuration.
      ๐Ÿงช Example (How It Works)
      1. A gRPC server-streaming request hits an unclaimed path; PassthroughParser.ParseRequest returns OpaqueResponse: true, setting reqCtx.opaqueResponse = true while reqCtx.modelServerStreaming stays false.
      2. Backend ResponseHeaders (content-type: application/grpc, EndOfStream: false) pass through without setting modelServerStreaming.
      3. As message 1 arrives in ResponseBody (EndOfStream: false), Process records firstTokenTimestamp, forwards message 1 immediately to Envoy without waiting for message 2 or calling HandleResponseBody, and repeats for message 2.
      4. When ResponseTrailers (grpc-status: 0) arrives, finishResponse marks responseComplete = true, runs terminal metrics and Director.HandleResponseBody (populating DynamicMetadata such as request-attribute-reporter cost), emits an empty BodyResponse carrying that DynamicMetadata, and sends TrailersResponse.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข Consensus intact (post-rebase) - Previously approved by @ahg-g; rebased cleanly with no new debate or open questions.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 1 comment(s) on server.go:1163 - [low] In finishResponse, an opaque gRPC response terminated by ResponseTrailers still calls rewriteModelName and emits an...
    • 39. PR [OPEN] feat(utilization-detector): reserve KV cache for projected decode growth ๐Ÿ“„ Diff (llm-d/llm-d-router#4464 by @ZeXi0308) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 12d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW [No Review Yet]: 4 Comment(s) to PR ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Admission, flow control, & saturation); sitting 12d (>3d bump P1 -> P0); Open 12.5d (> 7d) with maintainer @LukeAVanDrie; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+1762/-31 lines across 11 file(s)] utilization-detector decides whether an endpoint's KV cache has room from the latest scrape (Fixes #4369).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind feature
      /area flowcontrol
      /area epp
      /area scheduling
      /area datalayer

      What this PR does / why we need it:

      utilization-detector decides whether an endpoint's KV cache has room from the latest scrape. A running sequence keeps allocating blocks as it decodes, so requests admitted while the reading is low fill the cache later, and the engine preempts them. This PR adds a projection of that growth: inflight-load-producer estimates how much more KV cache each request on an endpoint will take, and the detector counts it as already used. Requests that do not fit wait in the flow-control queue instead of stalling mid-stream.

      On four workloads that push vLLM 0.34 past its KV capacity, no stream stalled for more than 5 s with the projection. The default configuration and token accounting left up to 248 requests stalled that long. It is opt-in; without kvGrowthProjection the producer publishes zero and the detector is unchanged. Motivation, alternatives and the prototype runs are in #4369.

      plugins:
        - type: inflight-load-producer
          parameters:
            kvGrowthProjection:
              maxOutputTokens: 4096
      The estimate
      term added to the detector's score:  KVCacheUsage + KVGrowthTokens / KVCacheCapacity
      
      KVGrowthTokens = booked + growth
      growth = max over t of  sum_i [ S_i(t) * (c_i + t) - c_i ]  +  S_0(t) * (p + t)  +  z * sd(t)
      sd(t)^2 = sum_i S_i(t) * (1 - S_i(t)) * (c_i + t)^2  +  S_0(t) * (1 - S_0(t)) * (p + t)^2

      In words: for each running request, take what it will hold t tokens from now if it is still running, minus what it holds now, and add the next request. The projection reserves the peak of that total over t, plus z standard deviations.

      • c_i is what request i holds now: its uncached prompt plus the tokens it has streamed.
      • S_i(t) is the chance it is still running after t more tokens, from the output lengths of recent requests. It is 0 past the request's own max_tokens or maxOutputTokens, whichever is lower.
      • S_0 and p describe the next request, with p the mean prompt length of recent requests.
      • booked is the prompt and streamed tokens the scrape does not show yet.
      • z is 3 by default.

      The term joins queue depth and KV usage in the detector's maximum, and it reaches 1.0 when scraped usage plus projected growth equals the cache size. Flow control holds requests while the average score across endpoints is at or above the band's usage limit. In its Filter role the detector also drops an endpoint whose term reaches 1.0, unless that would drop every candidate.

      Example: before any request has completed there is nothing to learn from, so every running request is reserved its full output up to the 4,096-token cap. On the 171k-token cache that admits about as many sequences as fit at that size: 45 of 192 at the start of the closed-loop runs in #4369. More are admitted as completed requests show that most outputs are shorter.

      The estimate takes requests as independent and looks ahead to one admission.

      Why these choices:

      • The output lengths come from a Kaplan-Meier curve, because recent samples always include running requests, and those are the long ones. Counting them at their current length would make outputs look shorter.
      • Assumed requests that run to maxOutputTokens stay in the sample, so a run of short outputs does not erase long ones.
      • The peak over t can come before the running requests finish, because those that end free their blocks while others keep growing.
      • The margin is there because the mean alone is exceeded about half the time.
      • Progress comes from Response.StreamedEvents, which inflight-load-producer already reads in ResponseBody.

      Computing the projection for 76 running requests takes about 22 microseconds on an Apple M5 core. It is recomputed when a request is dispatched to or ends on the endpoint, and otherwise every 100 ms; recording a response chunk takes about 10 ns.

      Bookkeeping details
      • A request's prompt stays reserved in full until the second scrape that completes after its first response chunk, because the first may have read the usage before the chunk arrived. Streamed tokens stay reserved the same way.
      • A request that ends frees only its uncached prompt and streamed tokens, because other requests may share the cached part.
      • A request generates one sequence for each choice (n) of each prompt it carries; n is read from a JSON request body.
      • The sample is the last 200 requests or 2.5 times the number of running requests, whichever is larger. A completed response counts at the completion tokens of its usage block. A request whose full length is not known counts as longer than what it streamed: still running, cut off by its own limit, ended early, completed without a usage block, or generating several sequences.
      • Assumed requests number 20 or a tenth of the sample, whichever is larger.
      • The projection does not exceed what the running requests and the next one can still generate under their output limits.
      • A request is charged to the primary profile's endpoint, unless its role has no decode stage. With a cross-replica syncer, the replicas' projections are summed.
      • Reading a current projection takes 14 ns. With 16,000 streams reporting 320,000 chunks a second, the P99 of recording a chunk is about 1 microsecond.
      Notes for reviewers

      The capacity ledger in #3110 books the KV blocks each request holds now, and this projection is what those requests will still take. Once the ledger lands it can supply booked through its Memory axis.

      Of the added lines, about 600 are code, 1,100 tests and 45 docs. The estimator is inflightload/kv_growth.go (about 400 lines) and depends only on the standard library and the plugin interface package, so it can be read on its own. producer.go, detector.go and data_types.go wire it in.

      Results

      vLLM 0.34, Qwen3-8B, 171k-token KV cache, flowControl feature gate on, max_tokens: 4096 on every request unless noted.

      Does it stop preemption under overload? 480 requests at 1.0 req/s, which ask for 2,518 output tok/s from an engine that delivers 1,662:

      default configurationprojectionprojection, max_tokens equal to the output length
      requests preempted20.4%00
      requests stalled for more than 5 s8600
      output tok/s1,6621,6031,662
      end-to-end P50149.6 s159.5 s146.1 s

      A backlog builds in every configuration. The default configuration lets it into the engine, where requests stall mid-stream; with the projection it waits in the flow-control queue, where priority bands decide which requests leave first.

      How does it compare with the options available today? Token accounting is concurrency-detector in tokens mode with the cache size as its budget and estimated output tokens, next to the default utilization-detector:

      workloaddefault configurationtoken accountingprojection
      192 closed-loop clients, 360 long outputs: requests preempted70.3%18.6%0
      120 requests with four sequences each: requests preempted28.3%29.2%0

      On the closed-loop workload the projection ran at 1,415 tok/s against token accounting's 1,423. On the two workloads that arrive at 1.0 req/s it was 4.8% and 4.6% faster than token accounting. On 720 requests whose output lengths shift from short to long, static concurrency-detector limits of 82 and 110 requests left 28 and 30 requests stalled for more than 5 s. The projection left none, at 1,562 tok/s, between the limits' 1,538 and 1,602.

      More from these runs
      • First workload: P99 of the longest stall in a stream 61.0 s with the default configuration, 0.10 s with the projection; end-to-end P99 282.1 s and 292.6 s. With every stream closed by the client before it completes, the producer learns nothing from completed lengths, and the run still finishes with no preempted request, at 1,520 tok/s.
      • Closed-loop workload: 248 and 63 requests stalled for more than 5 s under the default configuration and token accounting.
      • Four sequences per request: 26 and 27 stalled for more than 5 s; the P99 of the longest stall drops from 54 s to 0.13 s with the projection. With max_tokens equal to the output length it runs at 1,777 tok/s against the default configuration's 1,666, with 1 of the 120 requests preempted.
      • Shifting workload: P99 stalls of 14.1 s and 79.3 s under the static limits, 0.32 s with the projection.

      Test plan:

      • ☑ The projection matches hand-computed values for the learned distribution, the z margin and its bound, streamed progress, cached prompt prefixes, output limits, several prompts and choices, the sample size and the assumed requests.
      • ☑ A prompt stays reserved until the second KV usage scrape after the request's first response chunk.
      • ☑ A request leaves the projection when its stream ends, with or without a usage block, and when its state is evicted.
      • ☑ Streams that end early, complete without a usage block, or carry several sequences are not learned as completed lengths.
      • ☑ Progress comes from stream events or reported completion tokens, including while a projection is being computed.
      • ☑ The projection is charged to the primary profile's endpoint unless the role has no decode stage, and is summed across replicas.
      • ☑ The detector's score and Filter include the term, and the score is unchanged when no projection is published.

      Which issue(s) this PR fixes:
      Fixes #4369

      Release note:

      `inflight-load-producer` can project the KV cache growth of running requests (`kvGrowthProjection`). `utilization-detector` counts the projection toward saturation, so requests wait in the flow-control queue while the KV cache has no room for their output.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Adds an opt-in KV cache growth estimator (kvGrowthProjection) to inflight-load-producer that projects how many additional KV tokens each endpoint will need beyond its latest scraped KVCacheUsagePercent, and wires that projection into utilization-detector as a third saturation and filter term. When kvGrowthProjection is unset, InFlightLoad.KVGrowthTokens remains 0 and utilization-detector behavior is unchanged.

      ๐Ÿ—๏ธ Design
      • Growth estimator (pkg/epp/framework/plugins/requesthandling/dataproducer/inflightload/kv_growth.go): Maintains a sliding cohort of recent requests (max(200, 2.5*running)) plus max(20, len(cohort)/10) prior requests capped at maxOutputTokens. Rebuilds a Kaplan-Meier survival curve every 100ms (kvGrowthRefreshInterval) using completed requests with reported Usage.CompletionTokens (single sequence, natural termination, not cut off by a smaller per-request cap) as observed events and all others as right-censored.
      • Scrape-lag & progress tracking (producer.go:729, kv_growth.go:213, 233, 247): ResponseBody updates startedAt and output = max(StreamedEvents, CompletionTokens) under index.RLock without blocking on mu. Unscraped prompt and streamed tokens stay reserved until two scrapes of ScalarFieldKVCacheUsagePercent complete after observation.
      • Detector integration (pkg/epp/framework/plugins/flowcontrol/saturationdetector/utilization/detector.go:176, 293, 358): Computes ProjectedKVCacheUsage = KVCacheUsagePercent + KVGrowthTokens / (CacheBlockSize * CacheNumBlocks), taking max(qRatio, kvRatio, ProjectedKVCacheUsage) in Saturation and blocking endpoints with ProjectedKVCacheUsage >= 1.0 in Filter.
      ๐Ÿงช Example (How It Works)
      1. A request with an 8,000-token uncached prompt and no max_tokens is dispatched via PreRequest (producer.go:588) to decode pod pod-a (100k-token KV capacity, 50% scraped usage), adding it to kvGrowth and writing a kvGrowthRelease eviction hook to PluginState.
      2. Before the first response chunk and two subsequent KVCacheUsagePercent scrapes, kvGrowth.projected (kv_growth.go:297) keeps the 8,000 prompt tokens in unscraped and searches over future decode steps up to maxOutputTokens (4096) for the peak mean + z * std occupancy across running requests plus one next request.
      3. utilization-detector.Saturation (detector.go:293) adds KVGrowthTokens / 100000 to 0.50; once ProjectedKVCacheUsage reaches 1.0, flow control holds further dispatches in queue and Filter (detector.go:358) removes pod-a while other candidates have room.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No reviewer discussion yet - Only author notes from @ZeXi0308 (1 comment(s)); awaiting initial review.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 4 comment(s) on kv_growth.go:305, producer.go:442, kv_growth.go:189 - [medium] The 100 ms projection cache is not invalidated when a new metrics scrape arrives, so updated KVCacheUsagePercent...
    • 40. PR [OPEN] feat(gateway): support Istio Gateway scaling ๐Ÿ“„ Diff (llm-d/llm-d#3108 by @nicole-lihui) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 11d (>3d Priority Bump) ๐Ÿ”ด DEEP REVIEW [No Review Yet]: Request Changes (2 new comment(s)) ๐ŸŸก Medium Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Feature implementation / request; sitting 11d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+119/-0 lines across 5 file(s)] Add Kustomize support for fixed replicas, proxy resources, and opt-in HPA for the Istio Gateway recipe. The old llm-d-infra Helm chart is archived/deprecated; this change targets the current Kustomize deployment surface.
      ๐Ÿ“„ View Full PR Description

      Summary

      Add Kustomize support for fixed replicas, proxy resources, and opt-in HPA for the Istio Gateway recipe.

      Changes

      • Add an explicit fixed replica count to the Istio Gateway deployment customization while preserving the existing proxy resource requests and limits.
      • Add guides/recipes/gateway/istio-hpa as an opt-in overlay using Istio's horizontalPodAutoscaler customization.
      • Document the generated Deployment name, fixed replica/resource tuning, HPA overlay, and Metrics API requirement.
      • Add render regression tests for the base recipe and HPA overlay.

      The old llm-d-infra Helm chart is archived/deprecated; this change targets the current Kustomize deployment surface.

      Validation

      • kubectl kustomize guides/recipes/gateway/istio
      • kubectl kustomize guides/recipes/gateway/istio-hpa
      • pytest -q scripts/tests/test_istio_gateway_recipe.py
      • git diff --check

      Istio's Gateway API documentation defines the parametersRef keys used here and the generated Deployment naming convention.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      ๐Ÿงช Nightly CI: 10/10 test-nightly job(s) need manual trigger (not yet triggered at d3685f3): optimized-baseline-amd-acc-rocm-atom-x, optimized-baseline-amd-acc-rocm-sglang-x, optimized-baseline-amd-acc-rocm-vllm-x, optimized-baseline-cks-acc-gpu-vllm-x, optimized-baseline-gke-acc-gpu-sglang-x, optimized-baseline-gke-acc-gpu-vllm-x, optimized-baseline-gke-acc-tpu-sglang-x, optimized-baseline-gke-acc-tpu-vllm-x, optimized-baseline-ibm-acc-gpu-vllm-x, optimized-baseline-intel-acc-xpu-vllm-x.
      ๐Ÿš€ Manual Nightly Trigger Commands (post 1 command per PR comment):โ†— Comment on PR
      /test-nightly optimized-baseline-*
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 2 comment(s) on configmap.yaml:12, kustomization.yaml:1 - [high] Hardcoding replicas: 1 in the base Istio ConfigMap forces istio-hpa to inherit both deployment.spec.replicas: 1 and...
    • 41. PR [OPEN] coordinator: add experimental single-rank HTTP Mooncake KV handoff ๐Ÿ“„ Diff (llm-d/llm-d-router#4488 by @YaoleWu) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 11d (>3d Priority Bump) โŒ DEEP REVIEW [No Review Yet]: PR Workflows Failed ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator); sitting 11d (>3d bump P1 -> P0); Open 11.6d (> 7d) with maintainer @vMaroon; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+1201/-41 lines across 26 file(s)] Proactive upstream contribution. This experimental connector is built from the public Coordinator/EPP and Mooncake integration contracts, not from a production incident or a deployed internal integration (Part of #4390).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind feature
      /area coordinator

      Contribution origin

      Proactive upstream contribution. This experimental connector is built from the public Coordinator/EPP and Mooncake integration contracts, not from a production incident or a deployed internal integration. The Validation section below covers the assembled pipeline and Go tests; live GPU Mooncake P/D transfer, retention, and expiry remain unverified.

      What this PR does / why we need it:

      The sidecar already supports Mooncake, but the Coordinator cannot build the connector's transfer parameters, so a Mooncake deployment cannot run prefill and decode through it. This adds an experimental, opt-in kv-mooncake connector for the existing sequential HTTP prefill/decode pipeline.

      Coordinator handoff ยท HTTP admission regression

      • Generate a transfer ID when preparing prefill and consume the handoff once when building decode. The handoff is owned in one place (pkg/coordinator/pipeline/mooncake.go), so a retried prefill allocates a new ID and a handoff belonging to another request reads as absent.
      • Carry the selected worker's metadata through the Gateway with the existing EPP endpoint-attribute, header-stamp, header-copy and profile-handler plugins. Decode rejects a missing or conflicting endpoint report.
      • Reject, before any worker is called, requests the handoff cannot carry: more than one completion, media content parts, and configurations other than text-only /v1/chat/completions with explicit prefill followed by decode. Existing defaults and other connectors are unchanged.

      The configuration example uses operator-supplied endpoint attributes. Automatic engine registry refresh, multi-rank steering, gRPC and conditional decode are outside this slice.

      Which issue(s) this PR fixes:

      Part of #4390 (tracking #3156). This does not close the issue.

      Validation:

      Admission is enforced before scheduling, so an unsupported request does not consume a prefill round trip:

      RequestBeforeAfter
      n: "2", n: 2.5, n: 0200, one prefill and one decode400, no worker call
      image_embeds, audio_embeds, video_embeds content parts200, one prefill and one decode400, no worker call
      n: 2, image_url part400400
      image_url part next to a number outside float64 (1e400), non-array messages200, one prefill and one decode400, no worker call
      text-only, n absent or n: 1200, one prefill and one decode200, one prefill and one decode

      These rows came from driving the assembled pipeline through the coordinator server against a fixture Gateway with the real EPP header plugins. Reverting the guards reproduced the "Before" column for every rejected shape, so the tests distinguish them from the fixed code. Configuration rejection is asserted through the exported Build and admission through a real HTTP server route, so losing either check fails the tests: removing the validatePipeline call from Build fails all eight configuration rows, and moving the handler off /v1/chat/completions fails every admission row with 502 instead of 400. The admission regression also covers image parts whose type is omitted or null. Both are recognized by the shared chat-part normalizer and rejected before either worker is called. The cases live in pkg/coordinator/server/mooncake_admission_test.go.

      • ☑ Two selected worker identities, distinct transfer IDs, streamed and non-streamed decode responses.
      • ☑ Missing or mismatched metadata, invalid bootstrap port, failed/malformed/cancelled prefill, and attempted decode replay.
      • ☑ On rebased head 1e28c324, go build ./..., go vet ./pkg/coordinator/..., and go test -race ./pkg/coordinator/... pass locally with Go 1.27.4 (darwin/arm64).

      Not covered: a version-pinned live Mooncake P/D run on GPUs, so KV transfer, retention and expiry behavior are still unverified. Full make presubmit was not completed on 1e28c324: cryptographic signing requires a configured private key and the remaining checks require Docker/Podman; neither is available in this environment. All commits retain DCO sign-offs.

      Release note _(write NONE if no user-facing change)_:

      Add an experimental, opt-in kv-mooncake connector for single-rank HTTP chat-completion prefill/decode pipelines using configured EPP endpoint metadata.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Adds an experimental, opt-in kv-mooncake connector (pkg/coordinator/connectors/kv/mooncake.go) for single-rank HTTP /v1/chat/completions prefill-then-decode pipelines, plus a pre-scheduling pipeline.RequestValidator hook (pkg/coordinator/pipeline/mooncake_guard.go, pkg/coordinator/server/handlers.go) and single-use MooncakeHandoff state (pkg/coordinator/pipeline/mooncake.go). Existing default connectors, gRPC pipelines, and sidecar Mooncake/NIXL protocols stay unchanged apart from consolidating FieldTransferID, FieldRemoteBootstrapAddr, and PartType*Embeds constants into pkg/common/request/constants.go.

      ๐Ÿ—๏ธ Design
      • Pipeline admission and config validation: validateMooncakePipeline (pkg/coordinator/pipeline/builder/builder.go:90) restricts kv-mooncake to HTTP worker_format=passthrough, [prefill, decode] steps, and no force_stream or forward_prompt_token_ids. Before Pipeline.Execute runs, Server.handleInference (pkg/coordinator/server/handlers.go:273) calls Pipeline.ValidateRequest, where PrefillStep.ValidateRequest delegates to ValidateMooncakeRequest (pkg/coordinator/steps/mooncake.go:48) to reject non-chat-completions, media/embeds parts, and n != 1 with HTTP 400 before consuming a prefill slot.
      • Handoff lifecycle and header trust: PreparePrefillKVParams calls BeginMooncakeHandoff(reqCtx) to allocate a fresh xfer-<uuid> MooncakeHandoff bound to owner: reqCtx (pkg/coordinator/pipeline/mooncake.go:26). PrefillStep clears the handoff via AbandonMooncakeHandoff on any prefill error (pkg/coordinator/steps/prefill.go:110). ReadPrefillResponse (pkg/coordinator/connectors/kv/mooncake.go:57) requires x-llm-d-mooncake-prefill-handoff (endpoint, engine_id, bootstrap_port) to match x-llm-d-prefiller-host-port, then PrepareDecodeKVParams calls ConsumeMooncakeHandoff so each prefill handoff can feed at most one decode request.
      • Header isolation: MooncakePrefillHandoffHeader is added to internalForwardingHeaders (pkg/coordinator/pipeline/context.go:70) so client values, forward_response_headers, and decode response headers cannot carry or leak it.
      ๐Ÿงช Example (How It Works)
      1. Client POSTs /v1/chat/completions (model: "m", text-only, n: 1 or omitted) to the coordinator; StripInternalHeaders drops any client x-llm-d-mooncake-prefill-handoff, and ValidateRequest admits the request.
      2. PrefillStep runs PreparePrefillKVParams, creating MooncakeHandoff{TransferID: "xfer-...", owner: reqCtx} and sending kv_transfer_params: {do_remote_prefill: false, do_remote_decode: true, transfer_id: "xfer-..."} to the prefill EPP.
      3. The prefill EPP stamps x-llm-d-mooncake-prefill-handoff from the endpoint's mooncakeHandoff attribute and copies it plus x-llm-d-prefiller-host-port onto the response; ReadPrefillResponse verifies both name the same host:port and populates EngineID and BootstrapAddress (http://<host>:<bootstrap_port>).
      4. DecodeStep calls ConsumeMooncakeHandoff(reqCtx) (clearing reqCtx.MooncakeHandoff and owner) and forwards kv_transfer_params: {do_remote_prefill: true, do_remote_decode: false, transfer_id, remote_bootstrap_addr, remote_engine_id} to the decode worker.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No reviewer discussion yet - Only author notes from @YaoleWu (1 comment(s)); awaiting initial review.
      โš–๏ธ Verdict: โŒ Deep Review Verdict: Hold approval until PR workflows pass (1/17 workflow(s) did not pass at 1e28c32: PR Size Labeler (startup_failure).).
    • 42. PR [OPEN] fix(autoscaling): honor inflight ScaledObject and HPA names ๐Ÿ“„ Diff (llm-d/llm-d#3125 by @git-jxj) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 9d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW [No Review Yet]: 2 Comment(s) to PR ๐ŸŸก Medium Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (Session affinity, SLO latency, & plugin DAG); sitting 9d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+71/-20 lines across 5 file(s)] The default KEDA EPP inflight overlays create resources with fixed names. Verification looks up the names in SCALEDOBJECT_NAME and HPA_NAME, so the checks fail when readers set custom values.
      ๐Ÿ“„ View Full PR Description

      Summary

      The default KEDA EPP inflight overlays create resources with fixed names. Verification looks up the names in SCALEDOBJECT_NAME and HPA_NAME, so the checks fail when readers set custom values.

      Render both names in the Kubernetes and OpenShift overlays. The apply and cleanup commands now use the same names as verification, with the existing defaults for the stock deployment.

      Follow-up to #2657.

      Validation

      • Ran the guide's apply and cleanup commands through kubectl kustomize and GNU envsubst with default and custom names on both platforms. The custom-name cases failed on the base revision and passed with this change.
      • Verified the OpenShift, AMD, and GKE nightly deploy scripts render their expected ScaledObject and HPA names.
      • Ran make verify, the guide Python suite, Markdown lint, and YAML lint.

      Validation used local manifest rendering with cluster operations stubbed. Live KEDA reconciliation and GPU inference remain unverified.

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Replaces hardcoded ScaledObject and HPA resource names in the keda-epp inflight overlays with ${SCALEDOBJECT_NAME} and ${HPA_NAME} placeholders so custom deployment names match the verify commands. Updates the inflight apply and cleanup commands in guide.yaml and README.md to require and substitute both variables, while leaving queue, saturation, and nightly deploy scripts unchanged.

      ๐Ÿ—๏ธ Design
      • Replaces metadata.name (optimized-baseline-keda-epp) and spec.advanced.horizontalPodAutoscalerConfig.name (keda-hpa-optimized-baseline) with ${SCALEDOBJECT_NAME} and ${HPA_NAME} in k8s inflight scaledobject.yaml and ocp inflight scaledobject.yaml.
      • Adds : "${SCALEDOBJECT_NAME:?}" "${HPA_NAME:?}" guards and appends $SCALEDOBJECT_NAME $HPA_NAME to the envsubst allowlist in guide.yaml (and cleanup at lines 204-211), rendered into README.md.
      • Adds test_inflight_resource_names to run real kubectl kustomize + envsubst on both k8s and ocp inflight apply/cleanup commands for default and custom names.
      ๐Ÿงช Example (How It Works)
      1. Set NAMESPACE=custom-ns, TARGET_DEPLOYMENT=custom-decode, SCALEDOBJECT_NAME=custom-so, and HPA_NAME=custom-hpa.
      2. Run apply_k8s_inflight or apply_ocp_inflight; envsubst substitutes ${SCALEDOBJECT_NAME} and ${HPA_NAME} into the kustomized ScaledObject.
      3. Run verify.tests.scaledobject and verify.tests.hpa; kubectl get scaledobject custom-so and kubectl get hpa custom-hpa now match the applied resources.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      ๐Ÿงช Nightly CI: 2/2 test-nightly job(s) need manual trigger (not yet triggered at 43a6bff): workload-autoscaling-keda-epp-amd-acc-rocm-vllm-x, workload-autoscaling-keda-epp-ibm-acc-gpu-vllm-x.
      ๐Ÿš€ Manual Nightly Trigger Commands (post 1 command per PR comment):โ†— Comment on PR
      /test-nightly workload-autoscaling-keda-epp-amd-acc-rocm-vllm-x/test-nightly workload-autoscaling-keda-epp-ibm-acc-gpu-vllm-x
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 2 comment(s) on guide.yaml:101, test_keda_epp.py:46 - [medium] apply_k8s_inflight (here), apply_ocp_inflight (line 106), and the inflight cleanup steps (lines 206, 210) only...
    • 43. PR [OPEN] inflightload: stamp body session_id for SGLang KV-event prefill release ๐Ÿ“„ Diff (llm-d/llm-d-router#4603 by @diaosj) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 8d (>3d Priority Bump) โŒ DEEP REVIEW [No Review Yet]: PR Workflows Failed ๐ŸŸก Medium Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (P/D disaggregation, sidecar, & coordinator); sitting 8d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+295/-20 lines across 6 file(s)] Part of #4467 (item 3).
      ๐Ÿ“„ View Full PR Description

      Part of #4467 (item 3).

      Summary
      • Add EngineType() string to kv-events-source (defaulting empty to vllm, matching New) and pass it to sessionStamp in inflight-load-producer.
      • For engineType: sglang, read or stamp top-level body session_id instead of the X-Session-ID header (which SGLang does not read):
      • Reuse a client-supplied non-empty session_id without mutating the body.
      • Skip stamping and fall back to StartOfStream when session_params is set (non-null, including {}), because SGLang rejects requests setting both session_id and session_params and does not echo a session id on BlockStored for session_params requests.
      • Skip stamping on non-JSON payloads (e.g., SGLang gRPC PayloadBytes), malformed/empty session_id, or empty RequestID.
      • Treat explicit JSON null for session_id and session_params as unset, write request.RequestID via MutatePayloadMap so Director.repackage re-serializes the body and updates Content-Length, and leave request headers untouched.
      • Keep vLLM header-stamping behavior unchanged.
      • Update unit tests and inflight-load-producer README.
      Testing
      • CGO_ENABLED=0 go test -v ./pkg/epp/framework/plugins/datalayer/source/kvevents/... ./pkg/epp/framework/plugins/requesthandling/dataproducer/inflightload/... โ€” PASS
      • go test -race -count=1 ./pkg/epp/framework/plugins/datalayer/source/kvevents/... ./pkg/epp/framework/plugins/requesthandling/dataproducer/inflightload/... โ€” PASS
      • CGO_ENABLED=0 go test ./pkg/epp/requestcontrol/... ./pkg/epp/config/loader/... โ€” PASS
      • golangci-lint fmt --diff โ€” clean
      • golangci-lint run --new-from-rev=origin/main โ€” 0 issues
      • typos โ€” clean
      Support KV-event-based prefill load release for SGLang backends by stamping top-level body `session_id` in `inflight-load-producer` when neither `session_id` nor `session_params` is set by the client.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Extends inflight-load-producer's KV-event prefill completion tracking to SGLang backends by stamping the top-level JSON body field session_id instead of the X-Session-ID header when the referenced kv-events-source uses engineType: sglang. Requests carrying session_params, non-JSON payloads (such as SGLang gRPC PayloadBytes), malformed session_id, or an empty RequestID are left untouched and fall back to StartOfStream release. Existing vLLM X-Session-ID header stamping and vllm_xargs.session_id precedence remain unchanged.

      ๐Ÿ—๏ธ Design
      • Source.EngineType returns the configured EngineType, defaulting nil or empty config to vllm to match New.
      • InFlightLoadProducerFactory reads source.EngineType() once at startup and stores it in kvEventsEngineType.
      • sessionStamp dispatches sglang to sglangSessionStamp, which inspects PayloadMap via reqcommon.FieldValue (handling json.RawMessage and treating JSON null as unset) and writes request.RequestID via request.Body.MutatePayloadMap.
      • Director.repackage runs after Director.prepareRequest (PreRequest plugins), sees Body.Mutated == true, re-marshals PayloadMap, and updates reqCtx.Request.RawBody and reqCtx.RequestSize so StreamingServer.generateHeaders emits the updated Content-Length.
      ๐Ÿงช Example (How It Works)
      1. A kv-events-source configured with engineType: sglang is bound by inflight-load-producer via kvEventsSourceRef, caching kvEventsEngineType = "sglang".
      2. An OpenAI chat completion request ({"model":"m","messages":[...]}) with RequestID = "req-sglang" and no session_id or session_params reaches PreRequest.
      3. sglangSessionStamp writes session_id = "req-sglang" through MutatePayloadMap, setting Body.Mutated = true without modifying X-Session-ID headers, and registers watchPrefill for req-sglang.
      4. Director.repackage serializes the updated body with session_id and updates Content-Length; when SGLang emits BlockStored with session_id: "req-sglang", ProcessEvents releases the prefill load immediately.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No reviewer discussion yet - Only author notes from @diaosj (1 comment(s)); awaiting initial review.
      โš–๏ธ Verdict: โŒ Deep Review Verdict: Hold approval until PR workflows pass (1/17 workflow(s) did not pass at 63a2e24: PR Size Labeler (startup_failure).).
    • 44. PR [OPEN] feat(flowcontrol): shorten the queue-wait budget while a queue is standing ๐Ÿ“„ Diff (llm-d/llm-d-router#4610 by @ZeXi0308) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 8d (>3d Priority Bump) ๐Ÿ”ด DEEP REVIEW [No Review Yet]: Request Changes (2 new comment(s)) ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Admission, flow control, & saturation); sitting 8d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+1084/-19 lines across 29 file(s)] Adds an optional per-band queue-wait budget, standingRequestTTL, shorter than defaultRequestTTL and used only while the band is overloaded (Fixes #4608).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind feature

      What this PR does / why we need it:

      Adds an optional per-band queue-wait budget, standingRequestTTL, shorter than defaultRequestTTL and used only while the band is overloaded. Once one of a flow's requests waits out defaultRequestTTL, the flow and its band switch to the short budget, and each returns to defaultRequestTTL after one short budget without backlog. With the field unset nothing changes.

      On one L4 under three 250-request bursts followed by a 1.5x overload, 30 s with 3 s once standing served all 750 burst requests and held the median TTFT under overload at 3.36 s. A fixed 30 s budget gave 30.36 s, and a fixed 3 s budget served 292 of the burst requests. Motivation and alternatives are in #4608, and the measurements are below.

      How it works:

      • The flow registry keeps the standing state of each flow queue and of each band. When the expiry sweep expires one of a flow's requests at defaultRequestTTL while the pool has endpoints, it marks the flow and its band as standing. From then on the sweep evicts a request once it has waited the short budget since its enqueue or since the switch, whichever is later.
      • A flow shows backlog when it dispatches a request that waited at least half the short budget. A band shows backlog when it holds at least as many requests as it dispatched during the last half short budget. Each returns to the long budget after one short budget without backlog, so one quick dispatch does not end the switch.
      • A request is evicted at the first sweep after its budget ends, and the sweep runs every 1 s. Bands whose short budget is under 1 s get extra checks at that budget, at most every 100 ms. Only those bands are scanned, because the cost follows the number of queues scanned.
      • Evictions at the short budget are reported as EvictedTTL, the same 429 as today, and llm_d_epp_flow_control_standing_ttl_evictions_total counts them per band. Bands without the field, an empty pool under noEndpointRequestTTL and a shorter x-llm-d-inference-ttl behave as before.

      For reviewers: start with registry/standing.go, which holds the standing state of a flow and of a band behind the contracts.StandingQueue interface, then controller/internal/processor.go, where the sweep records long-budget expiries and applies the short budget.

      Test plan:

      • ☑ Standing state: an expiry at the long budget switches the flow and its band, while backlog alone or a shorter wait does not. Relief shorter than the short budget keeps the switch, relief for one short budget or a refill after idle ends it, and a standing band covers a refilled flow.
      • ☑ Sweep: expiry from the later of enqueue and the switch, the switch recorded by the sweep's own long-budget expiry (these tests fail without it), dispatch waits around half the short budget, and recovery after an empty pool.
      • ☑ Extra checks: cadence on one timer, only bands that opted in, and the 100 ms floor.
      • ☑ Configuration: the field converts from v1alpha1, reaches the flow queues, and is rejected when negative or not shorter than the band's defaultRequestTTL.
      • ☑ Metric: an eviction at the short budget increments llm_d_epp_flow_control_standing_ttl_evictions_total, and an expiry at the long budget does not.
      • ☑ go test ./pkg/epp/flowcontrol/... ./pkg/epp/config/loader/... ./apix/config/... ./pkg/epp/requestcontrol/... ./cmd/epp/... and golangci-lint on the changed packages.
      • ☑ One L4 with vLLM and Envoy running this change: the #4608 trace with two arrival seeds, 1.1x and 1.5x overload with clients that resend a 429 twice, and 1.5x overload over 500 fairness IDs under both fairness policies.
      L4 runs

      The setup is in #4608: Qwen2.5-1.5B-Instruct behind Envoy, streaming 64 output tokens, about 25.3 req/s capacity. The standing row of the #4608 table is from a second session on the same setup, with capacity calibrated at 25.1 req/s instead of 25.6, so its last column is a share of the requests sent. A second arrival seed gave 750 burst requests served and a 3.37 s median.

      With the 1.5x overload spread over 500 fairness IDs, the median TTFT went from 30.4 s to 3.4 s under global-strict and from 23.8 s to 3.3 s under round-robin.

      A queue expiry carries no Retry-After, so a client on the OpenAI SDK defaults resends it twice, after about 0.5 s and 1 s. With such clients under sustained 1.5x overload, counting the requests first sent between 150 s and 300 s:

      Queue-wait budgetOriginal requests servedAttempts per requestTTFT from the first send, p50 / p90 / p99Unserved requests give up after
      Fixed 30 s65.5%1.9330.6 / 61.5 / 92.7 s92 s
      30 s, 3 s once standing66.3%1.923.6 / 7.5 / 11.4 s11 s

      An attempt that expires in the queue never reaches the engine, which is why the two budgets serve about the same share.

      Controller replays at the L4's rate

      These replays drive the real FlowController on a Go virtual clock with one flow, eight simulated service slots sized to 25.5 req/s, and the public controller configuration. Ranges cover three arrival seeds. On the three budgets of the #4608 table, the replay gives burst counts within 16 requests and medians within 0.23 s of the L4 figures.

      The #4608 trace with every budget I tried. Waits are queue waits of served requests sent between 195 s and 285 s:

      Queue-wait budgetBurst requests served (of 750)Steady-overload median waitRequests served across the trace
      Fixed 3 s303 to 3083.14 to 3.15 s74.6% to 75.1%
      Fixed 5 s457 to 4625.13 to 5.15 s76.8% to 77.3%
      Fixed 8 s682 to 6918.13 to 8.15 s80.1% to 80.5%
      Fixed 10 s728 to 73310.13 to 10.14 s81.1% to 81.4%
      Fixed 12 s75012.13 to 12.15 s81.6% to 82.4%
      Fixed 15 s75015.13 to 15.14 s82.5% to 83.2%
      Fixed 20 s75020.13 to 20.14 s83.9% to 84.6%
      Fixed 30 s75030.13 to 30.14 s86.6% to 87.4%
      30 s, 3 s once standing7503.13 to 3.15 s79.1% to 79.9%

      Sustained 1.5x overload with callers that give up after 10 s, counting the requests sent between 120 s and 240 s. With the long budget above the callers' deadline no request waits it out, so the band never switches:

      Queue-wait budgetMedian wait of served requestsRequests served
      Fixed 30 s9.89 s66.1% to 66.6%
      30 s, 3 s once standing9.89 s66.1% to 66.6%
      Fixed 8 s8.14 to 8.15 s66.9% to 67.4%
      8 s, 3 s once standing3.14 to 3.15 s66.9% to 67.4%

      The band switches to the short budget when a request has waited the full 30 s, about 90 s into a 1.5x overload, and until then waits grow as with the fixed budget. The 688 completions of the switch are the backlog of (30 s โˆ’ 3 s) ร— 25.5 req/s, the same in replays of 150 s, 300 s, 600 s and 1,200 s.

      Controller replays with two flows

      The replays drive the real FlowController on a Go virtual clock with eight simulated 40 ms service slots and the public controller configuration. Ranges cover three runs. In the 2,175-request replay the light flow sends 118 requests to an idle pool, then for 7 s the light and heavy flows send 50 and 244 req/s under round-robin. A completion is timely when the request waited at most 300 ms in the queue.

      Median queue wait of dispatched requests under seeded Poisson arrivals, measured from 8 s to 20 s (to 24 s for the two-flow rows). Waits exceed the budget because a request is evicted at the next sweep or check after its budget ends.

      Traffic in one bandFairness policyFixed 1 s1 s, 100 ms once standing
      1 flow at 294 req/sglobal-strict1,149 to 1,150 ms111 to 112 ms
      Light flow at 50 req/s and heavy flow at 200 req/s (heavy flow shown)round-robin1,135 to 1,139 ms105 to 106 ms
      Same two flows (heavy flow shown)global-strict1,096 to 1,101 ms105 ms
      294 req/s over 2,000 hashed flow IDsglobal-strict1,148 to 1,149 ms112 ms
      294 req/s over 2,000 hashed flow IDsround-robin717 to 719 ms70 to 71 ms

      The 2,175-request replay with every budget tried:

      BudgetBurst completed, of 118Light-flow completions from steady arrivals, of 350Timely completions, of 2,175All completions, of 2,175
      Fixed 100 ms118350998 to 1,0051,516 to 1,522
      Fixed 300 ms118350536 to 5421,565 to 1,571
      Fixed 600 ms118350528 to 5291,641 to 1,649
      Fixed 1 s118350528 to 5331,691 to 1,694
      Fixed 1 s, band maxRequests: 2028180 to 1971,420 to 1,4231,420 to 1,423
      Fixed 1 s, band maxRequests: 6068198 to 207380 to 3971,502 to 1,506
      Fixed 1 s, band maxRequests: 120118225 to 230403 to 4081,609 to 1,614
      1 s, 100 ms once standing1183501,118 to 1,1221,512 to 1,514

      The burst arrives 50 ms after the clock starts. Fixed budgets under 1 s are enforced at the 1 s sweep, so at this phase fixed 100 ms and 300 ms also complete the whole burst.

      Light-flow burst in a standing band: the two flows at 50 and 200 req/s under round-robin, with 118 extra light-flow requests at 12 s or at 12.5 s. Light-flow rejections in the following 2 s were 106 to 110 with the standing budget. With fixed 1 s they were 0 for the burst at 12 s and 9 to 10 for the burst at 12.5 s.

      CPU cost of the checks: medians of six samples on an Apple M5 with GOMAXPROCS=2, 1,000 flows holding one queued request each and no dispatches. With one flow on a short budget, scanning every flow each 100 ms took 9.76 ms of CPU per second of clock time and scanning only that flow's band took 1.01 ms. With all 1,000 flows on a short budget the two took 11.28 and 11.27 ms.

      Which issue(s) this PR fixes:

      Fixes #4608

      Release note _(write NONE if no user-facing change)_:

      Flow control: priority bands accept an optional `standingRequestTTL`, a shorter queue-wait budget that a flow and its band use once one of the flow's requests waits out `defaultRequestTTL`, until they show no backlog for that budget. `llm_d_epp_flow_control_standing_ttl_evictions_total` counts the evictions at that budget.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No reviewer discussion yet - Only author notes from @ZeXi0308 (1 comment(s)); awaiting initial review.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 2 comment(s) on registry.go:209, flowcontrol.go:195 - [high] Moving standingState, standingBand, and standingQueue into registry/standing.go still leaves TTL policy state and...
    • 45. PR [OPEN] fix(utilization-detector): count a burst of dispatched requests until placement ๐Ÿ“„ Diff (llm-d/llm-d-router#4641 by @ZeXi0308) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 7d (>3d Priority Bump) ๐Ÿ”ด DEEP REVIEW [No Review Yet]: Request Changes (2 new comment(s)) ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (Admission, flow control, & saturation); sitting 7d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+522/-37 lines across 9 file(s)] The utilization detector does not count a request between its release by flow control and PreRequest: the engine has not received it, and the in-flight producer has not counted it yet (Fixes #4611).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind bug

      What this PR does / why we need it

      The utilization detector does not count a request between its release by flow control and PreRequest: the engine has not received it, and the in-flight producer has not counted it yet. While data producers and scheduling place that request, flow control releases more requests against the same reading. Batch requests then queue at the engines, which serve them first-come-first-served, ahead of interactive requests that arrive later.

      The detector now counts the requests awaiting placement that exceed their recent average as queued work. While requests are placed at a steady rate, each placement is matched by a completion at an engine, so the requests in placement at any moment do not lengthen the engine queues. A burst released faster than that does, and the detector counts it until it is placed. Counting every request awaiting placement would be simpler, but it limits dispatch to queue threshold ร— endpoints per placement delay, however many slots the engines have free. That is 54 requests/s in the setup below.

      On one EPP with four simulated engines, a 370 ms placement delay and an 8 s mean service time, the mean engine queue fell from 78 to 19 requests against a target of 20. When 160 clients start against an idle pool, the engine queue peaks at 36 requests instead of 136. Steady-state throughput did not fall in any workload.

      A burst into idle engines is admitted over several placement delays, because the average rises only as requests are placed. When 700 clients start against engines with 1,024 free slots, the slots are 50% busy over the first 10 s instead of 64%.

      All simulated workloads

      Each pair shows main at c32ac7c first and this branch second. The real flow controller and utilization detector feed four simulated FIFO engines with eight running slots each. The threshold is five waiting requests per engine, scrapes run every 50 ms, and each run measures 400 s after a 100 s warm-up. Engine queue length is the time-weighted total across engines. Interactive start time runs from arrival at the EPP to the start of engine execution. #4611 contains the test source and reproduction commands.

      Mean servicePlacement delayKV usageLive in-flight countMean engine queueMean interactive startThroughput (req/s)
      8 s50 ms0%yes44.93 / 19.7011.53 s / 5.24 s3.96 / 3.96
      8 s50 ms72%yes41.27 / 19.7110.48 s / 5.32 s4.00 / 3.98
      8 s50 ms0%no67.86 / 20.3916.64 s / 5.18 s3.99 / 3.99
      8 s370 ms0%yes78.19 / 19.4121.42 s / 5.23 s3.98 / 3.97
      8 s370 ms72%yes75.82 / 19.3721.76 s / 5.28 s3.98 / 3.97
      8 s370 ms0%no78.54 / 21.1721.19 s / 5.61 s3.98 / 3.98
      100 ms50 ms0%yes30.41 / 14.81151.9 ms / 105.8 ms313.91 / 314.20
      100 ms50 ms72%yes26.35 / 13.96156.5 ms / 106.4 ms309.27 / 311.78
      100 ms50 ms0%no46.39 / 29.44214.8 ms / 145.5 ms315.36 / 315.26
      100 ms370 ms0%yes28.37 / 8.84548.4 ms / 423.4 ms205.18 / 271.29
      100 ms370 ms72%yes27.90 / 8.85551.0 ms / 413.4 ms201.62 / 272.66
      100 ms370 ms0%no28.15 / 9.88529.1 ms / 414.8 ms215.40 / 292.08

      Four more runs use the 8 s, 370 ms, 0% KV configuration with the live in-flight count.

      RunEngine queueMean interactive startThroughput (req/s)Slots busy
      Engines with 256 slots and 700 clients, so no engine fills0 / 0370 ms / 370 ms84.09 / 84.0666% / 66%
      First 60 s after 160 clients start against an idle poolpeak 136 / 36, mean 77.5 / 21.122.43 s / 5.50 s3.82 / 3.8399% / 99%
      First 10 s after 700 clients start against idle engines with 256 slots0 / 0370 ms / 439 ms56.90 / 37.5064% / 50%
      First 30 s after the same start0 / 0370 ms / 417 ms73.67 / 67.2065% / 60%

      How requests are counted

      Flow control already holds a reservation for each request it releases, until the PreRequest hooks have run. The concurrency detector has counted these reservations since #3065.

      Each time a reservation is released, the detector records how many are left, and it averages that number over about the last 16 releases. A pool that has had no request in placement counts every reservation. With four endpoints, a queue threshold of five and empty queues, 20 reservations give a saturation of 20 / 5 / 4 = 1.0, and the next request stays in the EPP queue until one is placed. A pool that usually has 30 requests in placement dispatches until 50 are.

      Handoff to the in-flight count, KV usage and disaggregated pools
      • The in-flight producer releases the reservation in PreRequest, right after it adds the request to the in-flight count of the selected endpoints. Without a producer, the director releases it after PreRequest, and the request shows up at the next engine scrape. An error before placement also releases it.
      • The producer publishes before it releases, and the detector reads the reservations before the endpoint counts. With the producer, a request handed over during an evaluation can therefore count twice in that evaluation, but it is never missing from both counts. In-flight eviction, when enabled, uses the same value.
      • A counted reservation does not raise the score of an endpoint whose KV score is above its queue score until the queue score catches up. At 72% KV with an empty queue the KV score is 0.9, so its score moves only after 4.5 requests are queued. Reservations are not counted against endpoints that the scheduling filter excludes. If the filter would exclude every endpoint, it returns the full list, and the detector counts reservations against all of them too.
      • Prefill and decode each count the same reservations against their own endpoints, and the higher score gates dispatch. Stale endpoints follow the configured staleness policy.

      Which issue(s) this PR fixes

      Fixes #4611

      Test plan

      • ☑ A second request stays queued while the first awaits placement. Dispatch resumes when the first releases its reservation. On the base, the second request leaves the queue early.
      • ☑ A steady stream of placements counts only above its average, and requests released at once on top of it count in full.
      • ☑ The count reaches the dispatch ceiling exactly, including with KV in use and with filtered or stale endpoints.
      • ☑ Concurrent reservations and releases for the same ID preserve the count for other live IDs and drain to zero. Empty and unknown IDs leave the count unchanged.
      • ☑ With two named producers and a composite detector, the request remains counted once as the selected producer publishes its load.

      The affected flow-control, request-control, producer and runner packages pass go test -race.

      Release note

      When flow control uses the utilization detector, each active EPP counts a burst of requests it has released for scheduling against its estimated queue depth until they are placed. This keeps more work in the priority queue when placement is slow.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 2 comment(s) on runner.go:1013, detector.go:267 - [high] Wiring *utilization.Detector directly into *inflightload.InFlightLoadProducer in parseConfigurationPhaseTwo couples a...
    • 46. PR [OPEN] feat(cross-replica): let a spec lengthen its state TTL ๐Ÿ“„ Diff (llm-d/llm-d-router#4739 by @delete-cloud) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 5d (>3d Priority Bump) ๐Ÿ”ด DEEP REVIEW [No Review Yet]: Request Changes (2 new comment(s)) ๐ŸŸก Medium Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Feature implementation / request; sitting 5d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+188/-39 lines across 9 file(s)] Third and last PR of the importer design on #3345 (comment), on top of #4141 and #4674. An EPP container restarted in place is a new process with a new replica ID.
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind feature

      What this PR does / why we need it:

      Third and last PR of the importer design on #3345 (comment), on top of #4141 and #4674.

      An EPP container restarted in place is a new process with a new replica ID. Since #4674 its first successful publish queues an import of the prefix window of the process it replaced, but that publish only sees the window if that process's Redis fields have not expired yet. With the default 2 s stateTTL that is a close race: in the cluster runs on #4674 the restarted process read all 100 fields in every round, but in 3 of 8 rounds 38โ€“90 of them were already gone when their TTL was queried right after the read.

      This PR lets a contributor keep its published state longer than the syncer's TTL.

      • Interface. CrossReplicaSpec gets an optional StateTTL. A syncer that supports it uses the larger of StateTTL and its own TTL; a syncer may ignore it. Zero keeps the syncer's TTL.
      • redis-syncer uses max(spec.StateTTL, stateTTL) for the field in Set and SetBatch. The key expiry is now set with PEXPIRE NX followed by PEXPIRE GT in the same transaction, so a Set only extends it: a replica with a shorter TTL cannot cut fields that another replica wrote with a longer one. This also holds when crossReplicaStateTTL is unset and replicas are configured with different stateTTL values; before, the last writer set the key expiry. With one TTL everywhere it behaves like the plain PEXPIRE it replaces. It adds one command per endpoint to each publish transaction.
      • approx-prefix exposes it as crossReplicaStateTTL (duration). Unset by default, which keeps the syncer's TTL; a negative value fails construction.
      • Unchanged. inflight-load-producer keeps the syncer TTL, so a dead replica's in-flight load still expires after stateTTL. p2p-syncer ignores StateTTL: each replica sends only its own values, so a restarted process cannot read the window of the process it replaced, whatever the TTL.

      What a longer TTL costs: for up to StateTTL after a replica stops, every peer still reads its window on each publish cycle, and a replica whose publish succeeds in that time reads it and queues an import, also when a model server has evicted those blocks since. Prompts a peer imported earlier stay in its index until LRU eviction with any TTL. It is set per contributor and not on the syncer so that a dead replica's in-flight load does not stay counted for the longer time.

      Rolling upgrade: a replica without this change still sets the key expiry to its own stateTTL with a plain PEXPIRE, which can shorten it below a longer field TTL. After that, a Set from an upgraded replica extends the key only to that Set's own TTL. So until a replica publishes with the longer TTL again, the longer-lived fields last only while some replica keeps publishing to the key within the shorter TTL; if publishing stops for longer than that, the key expires and takes them with it. The README says to set the parameter only after every EPP replica supports it.

      Overlap with #4019. Both PRs change how redis-syncer sets expiry when it publishes. #4019 adds a stream write path that sets the field, hash key and stream key expiry from stateTTL. Whichever PR lands second has to use the spec TTL and the extend-only key expiry on that path too. I'll do that if #4019 lands first.

      Measurements. None on this branch. The numbers below are from the prototype on 876c4dd2 reported on #3345, same tx_air harness as #4674, with crossReplicaStateTTL: 15s, one round each of single kill, late switch-back and injected first-publish failure: the restarted primary read and imported 100 of 100 old fields in every round, routed 20 of the first 20 requests after switch-back to the prefix owner, and had no producer timeouts in the 3 s after switch-back. These are first restarts only. 15s is meant to also cover one 10 s kubelet restart backoff; that was not measured, and a longer crash loop is not covered.

      Open questions (from the design comment):

      1. Is StateTTL on CrossReplicaSpec the right place, or should the syncer config take a TTL per state key?
      2. Should the chart expose crossReplicaStateTTL? This PR only adds the plugin parameter.

      Test plan:

      • ☑ redis-syncer: the field and key TTL for a spec TTL that is zero, shorter and longer than the syncer's, through Set, SetBatch and repeated Set calls.
      • ☑ redis-syncer: a Set with a shorter TTL does not shorten the key expiry, and a plain PEXPIRE from a replica without this change is extended by the next Set.
      • ☑ approx-prefix: crossReplicaStateTTL parses, is passed to the spec, and a negative value is rejected.
      • ☑ inflight-load-producer publishes with a zero StateTTL.
      • ☑ The same command sequence run by hand against Redis 7.4.12: a new key gets the expiry, a shorter TTL does not shorten the key, a key without an expiry gets one, and after a plain PEXPIRE a Set with the shorter TTL leaves the key at the shorter TTL and a Set with the longer TTL extends it again.
      • ☑ make presubmit up to verify-review-playbook. That last step fails the same way on main at a4e84c4e: two files from #4375 and #3706 have no routing row in the review playbook. This PR does not touch them.

      Which issue(s) this PR fixes:
      Fixes #3345

      Release note _(write NONE if no user-facing change)_:

      approx-prefix: new optional `crossReplicaStateTTL` parameter keeps a replica's published prefix window in redis-syncer longer than `stateTTL`, so an EPP restarted in place can import the window of the process it replaced.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 2 comment(s) on cross_replica_syncer.go:171, redis_syncer.go:291 - [high] Putting StateTTL on CrossReplicaSpec and crossReplicaStateTTL on approx-prefix (types.go:247) leaks...
    • 47. PR [OPEN] guides(tpu-v5p): enable Qwen3 tool and reasoning parsers on vLLM overlays ๐Ÿ“„ Diff (llm-d/llm-d#3149 by @chethanuk) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 5d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW [No Review Yet]: 1 Comment(s) to PR ๐ŸŸก Medium Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity); sitting 5d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+99/-0 lines across 4 file(s)] The TPU v5p vLLM overlays serve Qwen/Qwen3-32B without --enable-auto-tool-choice, so requests that carry tools are rejected and the thinking block comes back as plain content (Part of #2640).
      ๐Ÿ“„ View Full PR Description

      Summary

      Part of #2640

      The TPU v5p vLLM overlays serve Qwen/Qwen3-32B without --enable-auto-tool-choice, so requests that carry tools are rejected and the thinking block comes back as plain content. The v6 and v7 overlays and the tiered v5p SGLang overlay already set the parser flags.

      This adds --enable-auto-tool-choice, --tool-call-parser hermes and --reasoning-parser qwen3 to:

      • optimized-baseline/modelserver/tpu/v5p/vllm/base/patch-vllm.yaml
      • precise-prefix-cache-routing/modelserver/tpu/v5p/vllm/base/patch-vllm.yaml
      • tiered-prefix-cache/modelserver/tpu/v5p/vllm/native/cpu/base/patch-vllm.yaml (inside the /bin/sh -c serve script, with line continuations)

      Validation

      Not run on a cluster.

      scripts/tests/test_tpu_v5p_vllm_tool_flags.py renders the base and gke variant of each overlay with kubectl kustomize. For the shell entrypoint it checks the script parses, is one continued exec vllm serve command, and then reads argv with shlex. It asserts --enable-auto-tool-choice appears once and each parser flag has exactly one value. It fails 6/6 on main and passes 6/6 with this change. Dropping a line continuation or setting --enable-auto-tool-choice=false in the tiered script makes it fail. make verify is clean.

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Enables vLLM automatic tool calling (--enable-auto-tool-choice, --tool-call-parser=hermes) and Qwen3 reasoning extraction (--reasoning-parser=qwen3) on the three TPU v5p vLLM single-host overlays serving Qwen/Qwen3-32B, and adds a Kustomize-render pytest regression suite. The existing TPU v5p P/D overlays, TPU v6 vLLM overlays, and TPU v5p SGLang overlays remain unchanged.

      ๐Ÿ—๏ธ Design
      • guides/optimized-baseline/modelserver/tpu/v5p/vllm/base/patch-vllm.yaml (L21-L23) and guides/precise-prefix-cache-routing/modelserver/tpu/v5p/vllm/base/patch-vllm.yaml (L23-L25) append the three flags to the vllm serve container args array, inherited by their gke/ and top-level Kustomize overlays.
      • guides/tiered-prefix-cache/modelserver/tpu/v5p/vllm/native/cpu/base/patch-vllm.yaml (L21-L23) inserts the flags into the line-continued exec vllm serve command inside the /bin/sh -c args[0] script.
      • scripts/tests/test_tpu_v5p_vllm_tool_flags.py renders base and gke for all three overlays with kubectl kustomize, validates /bin/sh -n and single-command line continuations for shell entrypoints, and asserts --enable-auto-tool-choice appears once with --tool-call-parser=hermes and --reasoning-parser=qwen3.
      ๐Ÿงช Example (How It Works)
      1. Deploying guides/tiered-prefix-cache/modelserver/tpu/v5p/vllm/native/cpu/gke renders the decode Deployment inheriting /bin/sh -c from common/single-host with the patched exec vllm serve Qwen/Qwen3-32B ... --enable-auto-tool-choice --tool-call-parser hermes --reasoning-parser qwen3 command.
      2. Requests carrying a tools schema are accepted by vLLM instead of returning HTTP 400, and <think> blocks are parsed into reasoning_content.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      ๐Ÿงช Nightly CI: 3/3 test-nightly job(s) need manual trigger (not yet triggered at c1a5f98): optimized-baseline-gke-acc-tpu-vllm-x, precise-prefix-cache-routing-gke-acc-tpu-vllm-x, tiered-prefix-cache-gke-cpu-tpu-vllm-native.
      ๐Ÿš€ Manual Nightly Trigger Commands (post 1 command per PR comment):โ†— Comment on PR
      /test-nightly optimized-baseline-gke-acc-tpu-vllm-x/test-nightly precise-prefix-cache-routing-gke-acc-tpu-vllm-x/test-nightly tiered-prefix-cache-gke-cpu-tpu-vllm-native
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 1 comment(s) on patch-vllm.yaml:21 - [low] guides/agentic-api/README.md (line 278) still qualifies optimized-baseline, precise-prefix-cache-routing, and...
    • 48. PR [OPEN] Adds an opt-in estimate of projected KV capacity based on active inpuโ€ฆ ๐Ÿ“„ Diff (llm-d/llm-d-router#4753 by @sywangyi) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 5d (>3d Priority Bump) ๐Ÿ”ด DEEP REVIEW [No Review Yet]: Request Changes (3 new comment(s)) ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Hot-path performance, zero-alloc, & resilience); sitting 5d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+2391/-17 lines across 21 file(s)] Adds an opt-in estimate of projected KV capacity based on active input blocks. The estimate tracks dispatched input commitments, deduplicates shared full blocks, and combines them with sampled KV usage.
      ๐Ÿ“„ View Full PR Description

      โ€ฆt blocks.

      The estimate tracks dispatched input commitments, deduplicates shared full blocks, and combines them with sampled KV usage.

      The feature defaults to observation only. When routing is enabled, it filters candidates at or above estimated capacity, retains unknown candidates, and fails open when all candidates are filtered.

      An optional latency-predictor guard can retain a filtered candidate when the estimated remaining completion time of its sole tracked request is no greater than the predicted TTFT difference to the best eligible alternative. The estimate uses observed stream-event progress and the request output cap.

      The change also refreshes metrics before scheduling and retains candidates with missing or stale metrics in the utilization scheduling filter.

      The feature is experimental: it requires one EPP replica and does not model output KV blocks. Stream events are approximate progress, not guaranteed token counts, and the remaining completion time is not a bound.

      /kind feature

      Which issue(s) this PR fixes:

      Fixes #
      https://github.com/llm-d/llm-d-router/issues/4752

      Add experimental opt-in projected KV-capacity filtering based on active input blocks, with an optional latency-predictor guard.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 3 comment(s) on kv_capacity.go:87, kv_capacity.go:183, director.go:468 - [high] Implementing fwksched.Filter on TokenLoadScorer bolts an experimental, single-EPP, vLLM-only capacity gate onto a...
    • 49. PR [OPEN] sessionaffinity: log malformed session token at debug level ๐Ÿ“„ Diff (llm-d/llm-d-router#4782 by @aliaa039) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 4d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW [No Review Yet]: 1 Comment(s) to PR ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (Admission, flow control, & saturation); sitting 4d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+69/-1 lines across 2 file(s)] DecodePodName logged at error level when the client-supplied session token was not valid base64 (Fixes #4693).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind bug

      What this PR does / why we need it:

      DecodePodName logged at error level when the client-supplied session token was not valid base64. The token is client input and an invalid value is ignored, so a client sending a malformed x-session-token produced one error log line per request while routing proceeded normally.

      This changes the log to V(logutil.DEBUG).Info, matching how an invalid TTL header is handled in pkg/epp/requestcontrol/admission.go. The change is in the shared helper, so it covers both the session-affinity filter and scorer. Routing behavior does not change.

      A table test for DecodePodName captures the log output. The invalid-token case fails on main with ERROR ... Error decoding session header and passes with this change. The session-affinity filter, scorer and helper tests and golangci-lint pass.

      Test plan:

      • ☑ A malformed token returns "" and emits no error-level log line
      • ☑ Valid and empty tokens decode as before
      • ☑ Existing session-affinity filter and scorer tests pass

      Which issue(s) this PR fixes:
      Fixes #4693

      Release note _(write NONE if no user-facing change)_:

      The session-affinity plugins log a malformed session token at debug level instead of error level.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Lowers the log level in DecodePodName when decoding an invalid base64 x-session-token header from Error to V(logutil.DEBUG).Info, preventing per-request error logs on malformed client input. Both the session-affinity filter and scorer share this helper, and routing behavior (returning "" to ignore affinity) stays unchanged.

      ๐Ÿ—๏ธ Design
      ๐Ÿงช Example (How It Works)
      1. A client sends x-session-token: not-base64!! to an EPP configured with the session-affinity filter or scorer.
      2. encodedEndpointHeaderStrategy calls sessionutil.DecodePodName(ctx, token) at encoded_endpoint_header.go:52, which fails base64.StdEncoding.DecodeString, emits Ignoring invalid session header only at verbosity logutil.DEBUG (4), and returns "" so normal scheduling proceeds.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 1 comment(s) on header_test.go:63 - [low] TestDecodePodName only asserts that no ERROR line is logged, so deleting the debug log call in DecodePodName would...
    • 50. PR [OPEN] fix(epp): record TenantKey fairness IDs with their own source ๐Ÿ“„ Diff (llm-d/llm-d-router#4798 by @dmitripikus) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 3d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW [No Review Yet]: 1 Comment(s) to PR ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (Admission, flow control, & saturation); sitting 3d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+146/-38 lines across 13 file(s)] A RequestHeaderProcessor can produce a request's fairness ID through TenantKey; the qos-contract plugin does this from its team header (Fixes #4730).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind bug

      What this PR does / why we need it:

      A RequestHeaderProcessor can produce a request's fairness ID through TenantKey; the qos-contract plugin does this from its team header. applyDeclaredOverrides copies that tenant onto FairnessID, and the attribution switch in HandleRequest then sees a non-empty ID and records it with source="header", the same as a client-supplied fairness-ID header. As a result, llm_d_epp_fairness_id_resolved_total{source="header"} and trace attribution count plugin-derived tenants as header traffic, so the share of requests that arrived without a fairness-ID header cannot be measured.

      runRequestHeaderProcessors already knows whether the request carried the header. This PR carries that provenance to the attribution switch and records a tenant produced through TenantKey with the new source="tenant_key". The sidecar handoff accepts the new source, its overflow series is created at startup, and docs/metrics.md documents it.

      The recording rules llm_d:epp_named_fairness_ids:count5m and llm_d:epp_named_fairness_ids:incomplete5m now select source=~"header|tenant_key", so TenantKey tenants still count as named fairness IDs and their overflow still marks the count incomplete. A tenant seen from both sources counts once. The rules test covers this.

      The fairness ID used for scheduling and flow control is unchanged; only the recorded source changes.

      Which issue(s) this PR fixes:
      Fixes #4730

      Release note:

      Add `tenant_key` as a `source` label value on `llm_d_epp_fairness_id_resolved_total` and `llm_d_epp_fairness_id_overflow_total` for fairness IDs a RequestHeaderProcessor produced through `TenantKey`. These requests were previously reported with `source="header"`. The `llm_d:epp_named_fairness_ids:count5m` and `llm_d:epp_named_fairness_ids:incomplete5m` recording rules include the new source, so their values do not change. Dashboards or alerts that filter `source="header"` directly no longer see these requests.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Previously, a RequestHeaderProcessor such as qos-contract that populated request.FairnessID via TenantKey was recorded under source="header" in metrics and trace attribution, making plugin-derived tenants indistinguishable from client-supplied fairness headers. This change adds a dedicated tenant_key attribution source across EPP resolution, sidecar handoff, startup overflow series initialization, Prometheus recording rules, and docs. Scheduling, flow-control queueing, and the resolved FairnessID value itself remain unchanged.

      ๐Ÿ—๏ธ Design
      • Closed attribution enum & sidecar handoff: Adds AttributionSourceTenantKey ("tenant_key") to normalizeAttribution and WithAttributionHandoff, and pre-creates the startup zero series in InitFairnessIDResolutionMetrics.
      • Provenance tracking in Director: runRequestHeaderProcessors snapshots hadHeaderTenant := request.FairnessID != "" before running plugins and returns tenantFromKey = true when applyDeclaredOverrides copies a non-empty TenantKey string.
      • Precedence & composition invariant: In HandleRequest, source starts as tenant_key when tenantFromKey is true (or header otherwise) and stays unchanged across both composed (<tenant>/<program>) and standalone tenantID != "" branches, while empty tenantID still falls through to derived_root, agent_identity, or default.
      • Recording rules: docs/rules/fairness-id-rules.yaml expands source=~"header|tenant_key" in llm_d:epp_named_fairness_ids:count5m and incomplete5m, deduplicating an ID seen from both sources via count by (namespace, inference_pool, fairness_id).
      ๐Ÿงช Example (How It Works)
      1. A request arrives without x-llm-d-inference-fairness-id, so hadHeaderTenant is false and BeginRequestAttribution initializes the ingress span state to (default-flow, default).
      2. qos-contract resolves team-a from its team header and writes TenantKey="team-a"; applyDeclaredOverrides copies it to request.FairnessID and sets tenantFromKey=true.
      3. HandleRequest sets source="tenant_key" (composing team-a/<session> if composeFairnessIDs is enabled and an agent/lineage ID is present), updates request attribution and llm_d_epp_fairness_id_resolved_total{fairness_id="team-a",source="tenant_key"}, and hands (team-a, tenant_key) to the P/D sidecar on sampled traces.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 1 comment(s) on metrics.md:871 - [low] Listing tenant_key after derived_root and agent_identity (while those bullets still say "no header") suggests...
    • 51. PR [OPEN] fix(file-discovery): re-read the endpoints file on an interval to recover a lost watch ๐Ÿ“„ Diff (llm-d/llm-d-router#4815 by @nprimeau-radium) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 3d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW [No Review Yet]: 3 Comment(s) to PR ๐ŸŸก Medium Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Standard correctness bug fix; sitting 3d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+176/-7 lines across 4 file(s)] File discovery watches the endpoints file itself, so the watch stays on the old file when the file is moved aside, or deleted and recreated. Reloads then stop until the EPP restarts (reproduction in #3615).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind bug
      /area datalayer

      What this PR does / why we need it:

      File discovery watches the endpoints file itself, so the watch stays on the old file when the file is moved aside, or deleted and recreated. Reloads then stop until the EPP restarts (reproduction in #3615).

      The plugin now re-attaches the watch and re-reads the file every 10 seconds, as controller-runtime's certwatcher does (and #3051 for the config). A sha256 of the content skips the reload when nothing changed; the event path uses the same check, so a poll and an event for one change reload once. This also picks up atomic replaces on Docker Desktop bind mounts, which deliver no events, so the docs note from #3851 now says the change is picked up within 10 seconds instead of asking to edit in place.

      The per-file watch stays, so the ConfigMap ..data swap and the cross-directory symlink keep working; the tests #3851 added for both pass unchanged. A directory watch was the alternative, and #3615 shows why it breaks those two cases.

      Tests added: rename the file away then write a new one, delete and recreate, and a poll with unchanged content that must not reload. go test -race passes for the plugin.

      make presubmit passes except verify-boilerplate (.github/scripts/merge-pr-onto-base*.sh) and verify-review-playbook (requesthandling/forwardtokens/plugin.go), which fail on main too, in files this change does not touch. Verified on Linux (OrbStack); not on Docker Desktop itself.

      Thanks to @iit2009046 for the analysis in #3615 and the tests and docs in #3630 and #3851.

      Which issue(s) this PR fixes:

      Fixes #3615

      Release note _(write NONE if no user-facing change)_:

      file-discovery with `watchFile: true` now picks up changes within 10 seconds when the endpoints file is moved aside, deleted and recreated, or replaced on a Docker Desktop bind mount. Previously reloads stopped until the EPP restarted.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      File-based endpoint discovery loses its inotify watch when the endpoints file is moved aside, deleted and recreated, or atomically replaced on a Docker Desktop bind mount. This change adds a 10-second polling ticker to FileDiscovery.Start that re-attaches the fsnotify watch and re-reads the file, plus a SHA-256 content hash check in FileDiscovery.load to skip redundant datastore reloads. The per-file watch, validation rules, and multicluster-file-discovery wrapper behavior remain unchanged.

      ๐Ÿ—๏ธ Design
      • Periodic watch recovery and reload (pkg/epp/framework/plugins/datalayer/discovery/file/plugin.go:226-239): When watchFile is enabled, Start creates a time.Ticker (defaultPollInterval = 10 * time.Second) and on each tick calls _ = watcher.Add(f.path) followed by f.load(notifier), logging reload errors without stopping.
      • Content-hash deduplication (pkg/epp/framework/plugins/datalayer/discovery/file/plugin.go:103,284-288): FileDiscovery.load computes sha256.Sum256(data) after reading (within the 1 MiB limit) and returns nil early when hash == f.lastHash, preventing repeated Upsert/Delete churn across idle ticks or overlapping fsnotify and poll triggers.
      • Sequential ownership invariant: Start executes <-poll.C and <-watcher.Events in a single select loop, so f.lastHash and watcher are accessed from one goroutine while f.mu continues to guard f.endpoints for concurrent DumpState() reads.
      • Multi-cluster inheritance (pkg/epp/framework/plugins/datalayer/discovery/file/multicluster.go:54-56): multiClusterFileDiscovery delegates Start to FileDiscovery.Start, inheriting the 10-second recovery poll and hash deduplication.
      ๐Ÿงช Example (How It Works)
      1. FileDiscovery.Start loads /etc/epp/endpoints.yaml (endpoints ep1, ep2), stores its SHA-256 in f.lastHash, closes Ready(), and attaches watcher.Add.
      2. An operator moves /etc/epp/endpoints.yaml to /etc/epp/endpoints.yaml.bak (fsnotify emits Rename, which Start ignores) and writes a new /etc/epp/endpoints.yaml containing ep3.
      3. Within 10 seconds, poll.C fires: watcher.Add("/etc/epp/endpoints.yaml") attaches to the new inode, f.load sees a new SHA-256 hash, upserts ep3, deletes ep1/ep2, and updates f.lastHash.
      4. Subsequent 10-second ticks read the unchanged file, match f.lastHash, and return immediately without touching the datastore; future in-place writes trigger fsnotify.Write immediately.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 3 comment(s) on plugin_test.go:595, plugin_test.go:579, plugin.go:236 - [medium] The in-place-2 assertions here and in TestStart_WatchFileReloadsAfterDeleteAndCreate (line 680) pass via the 100ms...
    • 52. PR [OPEN] Add OTEL_TRACES_ENABLED_SCOPES allowlist for tracer scopes ๐Ÿ“„ Diff (llm-d/llm-d-router#4818 by @chethanuk) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 3d (>3d Priority Bump) โณ AI review in progress โณ AI REVIEW IN PROGRESS [No Review Yet]: Deep review queued ๐ŸŸก Medium Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Feature implementation / request; sitting 3d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+230/-0 lines across 3 file(s)] Today there's no way to drop spans from a noisy package without turning tracing off. This adds OTEL_TRACES_ENABLED_SCOPES, a comma-separated list of instrumentation scopes to record, following the design in the issue (Fixes #3372).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind feature

      What this PR does / why we need it:

      Today there's no way to drop spans from a noisy package without turning tracing off. This adds OTEL_TRACES_ENABLED_SCOPES, a comma-separated list of instrumentation scopes to record, following the design in the issue. When it is set, Tracer(scope...) returns a no-op tracer for any scope not on the list, including the default llm-d-router scope. Those spans record nothing but keep the parent span context, so a span from an enabled scope still nests under its nearest enabled ancestor, or under the remote parent from an incoming traceparent. Unset, empty, whitespace-only or separator-only values keep every scope enabled, which matches current behavior. Tracer reads the variable on each call and trims each entry, so nothing else needs wiring. The tracing env table in docs/disaggregation.md lists it.

      otelhttp picks its tracer from the context span's TracerProvider(). A plain no-op span reports the no-op provider, so otelhttp would drop HTTP client spans made under an excluded scope. The excluded span reports its recording parent's provider, or the global provider under a remote parent, while staying non-recording itself.

      TestTracerEnabledScopes covers the env parsing cases, parent linkage through an excluded scope (same trace and span ID), and an otelhttp client span under an excluded scope with a local and with a remote parent. Copied onto main, 5 of its 12 subtests fail, for example "span recorded = true, want false" for an unlisted scope. With the change all 12 pass. go test -race ./pkg/common/observability/... and make lint (golangci-lint and typos) pass.

      Limits: the filter only covers tracers from tracing.Tracer. HTTP server and client spans created by otelhttp use the global provider and still record, and the docs row says so.

      Which issue(s) this PR fixes:

      Fixes #3372

      Release note _(write NONE if no user-facing change)_:

      Add the OTEL_TRACES_ENABLED_SCOPES environment variable. Set it to a comma-separated list of instrumentation scopes to record spans only from those scopes. Unset keeps every scope enabled.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: โณ AI review in progress - parallel sub-agent is reviewing this PR; verdict and draft will update automatically.
    • 53. PR [OPEN] feat(preciseprefixcache): stage-aware P/D release, Envoy failover attribution, and observability for speculativeLifecycleRelease ๐Ÿ“„ Diff (llm-d/llm-d-router#4954 by @dbtmpl) ๐Ÿ”ด P0: High Priority โœจ Feature ๐Ÿ”ด DEEP REVIEW [No Review Yet]: Request Changes (2 new comment(s)) ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Tier-1 API/security contract change (Security / CVE / ingress header boundary)
      ๐Ÿ“Œ Change Summary: [+611/-48 lines across 7 file(s)] Follow-up to #4780 addressing #4865.
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind enhancement

      What this PR does / why we need it:
      Follow-up to #4780 addressing #4865.

      Fixes two failure-attribution edge cases in speculativeLifecycleReleaser.ResponseBody and adds operational observability for early speculative hint releases:

      1. Stage-aware P/D failure attribution (prerequest.go):
      • For disaggregated requests (gated on PrefillProfile().FirstEndpoint() != nil or x-prefiller-host-port / x-encoder-host-ports so untrusted x-llm-d-failed-stage headers on non-P/D requests are ignored), x-llm-d-failed-stage: decode and none-prefilled preserve the prefill pod's warm speculative hints.
      • When seedDecodeWhenDisaggregated (seedDecode) is enabled, only the decode pod's hints are released via ReleasePod; when false (default), prefill hints stay intact.
      • x-llm-d-failed-stage: prefill (or unmarked failures) continues to release all hints for the request.
      1. Envoy failover attribution (prerequest.go):
      • On non-error completions, checks metadata.ServedEndpoint(response.ReqMetadata) (IPv6-safe net.SplitHostPort matching endpointhealth/filter.go). When the proxy served the request from a different endpoint than the primary target seeded at PreRequest, immediately withdraws the unserved primary pod's phantom hints via ReleasePod instead of leaving them alive for speculativeTTL.
      1. SpeculativeIndex per-pod release & tracking (pkg/kvcache/speculative.go):
      • Adds ReleasePod(requestID, pod string) bool, updates Release(requestID string) bool to report whether any tracked hints were actually withdrawn (preventing double-counting on duplicate callbacks), and adds TrackedRequests() int.
      1. Observability (producer.go, prefixmetrics/metrics.go):
      • Extends DumpState() (precisePrefixState) with speculativeLifecycleRelease and speculativeTrackedRequests.
      • Adds Prometheus counter llm_d_epp_prefix_speculative_releases_total{plugin_name,plugin_type,reason} with reasons abandoned, failed_response, pre_first_token_abort, and served_elsewhere.

      Note on related open PRs (unstacked / merge-order dependency):

      • #4902 (perf/speculative-index-lease-tombstone, fixing #4864) rewrites pkg/kvcache/speculative.go internals to an O(1) request-lease tombstone design. This PR is intentionally kept unstacked against main for independent review; whichever PR merges second will rebase ReleasePod, Release() bool, and TrackedRequests() cleanly onto the other.
      • #4940 (perf/eos-only-response-body-processor, fixing #4863) has a minor overlap in pkg/epp/framework/plugins/requesthandling/dataproducer/preciseprefixcache/prerequest.go and producer.go (ResponseBodyEndOfStreamOnly).

      Test plan:

      • go vet ./pkg/kvcache/... ./pkg/epp/framework/plugins/requesthandling/dataproducer/prefixmetrics/... ./pkg/epp/framework/plugins/requesthandling/dataproducer/preciseprefixcache/... ./pkg/epp/metrics/...
      • go test -race -count=1 ./pkg/kvcache/... ./pkg/epp/framework/plugins/requesthandling/dataproducer/prefixmetrics/... ./pkg/epp/framework/plugins/requesthandling/dataproducer/preciseprefixcache/... ./pkg/epp/metrics/...
      • Added unit tests:
      • TestSpeculativeIndexReleasePodAndTrackedRequests (pkg/kvcache/speculative_test.go)
      • TestRecordSpeculativeRelease (pkg/epp/framework/plugins/requesthandling/dataproducer/prefixmetrics/metrics_test.go)
      • TestSpeculativeLifecycleRelease_DisaggregatedStageAttribution, TestSpeculativeLifecycleRelease_EnvoyFailoverReleasesPrimaryPod (IPv4 + IPv6), and TestSpeculativeLifecycleRelease_DumpStateAndMetrics (pkg/epp/framework/plugins/requesthandling/dataproducer/preciseprefixcache/prerequest_test.go)

      Which issue(s) this PR fixes:
      Fixes #4865
      Related: #4780, #4042, #4857, #4863, #4864, #4902, #4940

      Release note _(write NONE if no user-facing change)_:

      NONE
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Extends speculativeLifecycleRelease to preserve prefill-pod speculative KV hints on decode-only disaggregated failures, release unserved primary-pod hints on Envoy failover, and expose early-release metrics and debug state. pkg/kvcache.SpeculativeIndex gains per-pod release (ReleasePod), boolean return on Release, and TrackedRequests(), while natural completions and mid-decode aborts on the primary endpoint keep their existing speculativeTTL.

      ๐Ÿ—๏ธ Design
      • Per-pod speculative release (pkg/kvcache/speculative.go): ReleasePod(requestID, pod) filters reqCurrent[requestID] and reqPrevious[requestID] for entries matching pod and decrements only those block leases while leaving other pods for the same request intact. Release(requestID) and ReleasePod return bool indicating whether tracked hints were withdrawn to prevent double-counting metrics.
      • Stage-aware P/D and failover attribution (pkg/epp/framework/plugins/requesthandling/dataproducer/preciseprefixcache/prerequest.go): On non-error completions, servedElsewhere compares metadata.ServedEndpoint(response.ReqMetadata) via net.SplitHostPort against targetEndpoint and calls ReleasePod on the primary pod (served_elsewhere). On HTTP 4xx/5xx, non-zero gRPC status, or pre-first-token aborts for disaggregated requests with x-llm-d-failed-stage set to decode or none-prefilled, prefill hints are preserved and only targetEndpoint is released when seedDecode is enabled.
      • Observability (pkg/epp/framework/plugins/requesthandling/dataproducer/preciseprefixcache/producer.go, pkg/epp/framework/plugins/requesthandling/dataproducer/prefixmetrics/metrics.go): DumpState() adds speculativeLifecycleRelease and speculativeTrackedRequests, and prefixmetrics registers counter llm_d_epp_prefix_speculative_releases_total{plugin_name,plugin_type,reason}.
      ๐Ÿงช Example (How It Works)
      1. A disaggregated request req-1 seeds block keys on prefill-1 (seedDecode=false).
      2. Decode fails with HTTP 500 and sidecar header x-llm-d-failed-stage: decode.
      3. speculativeLifecycleReleaser.ResponseBody enters the disaggregated StageDecode branch, sees seedDecode=false, leaves prefill-1's speculative hints active for subsequent requests, and returns without releasing prefill-1.
      4. On a separate non-P/D request req-2 picked for pod-A, Envoy fails over to pod-B (x-gateway-destination-endpoint-served: pod-B) and returns HTTP 200; ResponseBody calls ReleasePod("req-2", pod-A) and increments llm_d_epp_prefix_speculative_releases_total{reason="served_elsewhere"}.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 2 comment(s) on prerequest.go:439, metrics.go:160 - [high] Checking routing.EncoderEndpointsHeader in isDisaggregatedRequest prevents releasing the decode pod's speculative hints...
    • 54. PR [OPEN] feat(grpc): propagate mm_hashes metadata for multimodal prefix routing ๐Ÿ“„ Diff (llm-d/llm-d-router#4968 by @ahg-g) ๐Ÿ”ด P0: High Priority โœจ Feature ๐Ÿ”ด DEEP REVIEW [No Review Yet]: Request Changes (2 new comment(s)) ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Tier-1 API/security contract change (Security / CVE / ingress header boundary)
      ๐Ÿ“Œ Change Summary: [+2377/-26 lines across 26 file(s)] This change implements the x-llm-d-mm-hashes gRPC metadata contract between the coordinator and EPP for multimodal prefix-cache routing (Part of #3988).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind feature

      What this PR does / why we need it:
      This change implements the x-llm-d-mm-hashes gRPC metadata contract between the coordinator and EPP for multimodal prefix-cache routing.

      • Shared wire codec (pkg/common/request): Defines MMHashesHeaderKey (x-llm-d-mm-hashes) and bounded ASCII encode/decode helpers (MaxMMHashesHeaderBytes = 16 KiB, MaxMMHashesEntries = 128). Each entry carries a modality, content hash, and optional placeholder token span (offset and length).
      • Boundary sanitization: Adds x-llm-d-mm-hashes to coordinator internalForwardingHeaders so client copies are stripped on ingress and passthrough. Adds x-llm-d-mm-hashes to EPP InputControlHeaders so EPP preserves the header for parsers and removes it before forwarding requests to model servers.
      • Coordinator gRPC emission: Attaches x-llm-d-mm-hashes on outbound vllm.Inference encode and prefill legs and outbound sglang.api.v1 prefill legs. The coordinator prefers populated RequestContext.MultimodalEntries and otherwise reads scanned wire media metadata.
      • EPP gRPC parsers: Reads x-llm-d-mm-hashes in vllminference-parser and sglanggrpc-parser to populate MultiModalFeatures for token-producer and precise-prefix-cache-producer. Inline body features take precedence over metadata. The parsers ignore malformed or oversized values without failing requests.

      Test plan:

      • ☑ Codec round-trip, escaping, and strict size/entry bound tests.
      • ☑ Coordinator ingress/passthrough stripping and outbound vLLM/SGLang gRPC header emission tests.
      • ☑ EPP header stripping, parser metadata fallback, inline-body precedence, and malformed/oversized rejection tests.
      • ☑ End-to-end integration test through vllminference-parser / sglanggrpc-parser, token-producer, and precise-prefix-cache-producer.
      • ☑ Targeted -race tests and make presubmit pass.

      Which issue(s) this PR fixes:
      Part of #3988

      Release note:

      Coordinator attaches bounded `x-llm-d-mm-hashes` gRPC metadata on outbound vLLM encode/prefill and SGLang prefill calls, and EPP gRPC parsers consume it to populate multimodal prefix-cache features.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 2 comment(s) on constants.go:46, vllm_grpc.go:144 - [high] Do we need the new x-llm-d-mm-hashes wire contract and parser merge path here when no gRPC path populates...
    • 55. PR [OPEN] Authenticate trusted caller requests between Coordinator and EPP ๐Ÿ“„ Diff (llm-d/llm-d-router#4960 by @ahg-g) ๐Ÿ”ด P0: High Priority โœจ Feature ๐Ÿ”ต DEEP REVIEW [No Review Yet]: 2 Comment(s) to PR ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Tier-1 API/security contract change (Security / CVE / ingress header boundary)
      ๐Ÿ“Œ Change Summary: [+1744/-28 lines across 37 file(s)] An EPP behind a shared Gateway cannot distinguish Coordinator phase calls from direct client traffic without setting requestHandler.bodyFieldsSanitizationPolicy: trustCaller, which disables sanitization for every caller that... (Fixes #4824)
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind feature
      /kind security

      What this PR does / why we need it:

      An EPP behind a shared Gateway cannot distinguish Coordinator phase calls from direct client traffic without setting requestHandler.bodyFieldsSanitizationPolicy: trustCaller, which disables sanitization for every caller that reaches the EPP.

      This change adds shared-secret HMAC-SHA256 caller authentication between Coordinator and EPP:

      • Coordinator signing: gateway.auth_secret_env or gateway.auth_secret_file enables per-request x-llm-d-trusted-caller-auth signatures on outbound pipeline calls (HTTP Request, HTTP decode proxy, and gRPC StreamGRPC). Signatures bind x-llm-d-epp-profile and raw wire body bytes. Passthrough requests are never signed, and client copies of the header are stripped and redacted in logs.
      • EPP verification and stripping: requestHandler.trustedCallerAuth (secretEnv or secretFile, plus optional maxClockSkew, default 60s) verifies x-llm-d-trusted-caller-auth only when router-owned body fields appear and x-llm-d-unsanitized-body is not true. Valid requests preserve Coordinator-written fields without mutating the body while unauthenticated requests follow strip or reject. EPP always removes x-llm-d-trusted-caller-auth before forwarding upstream, including when forwardInputControlHeaders is enabled.
      • Key rotation: Both components accept newline-separated keys in the secret. The first line signs outbound requests and any line verifies inbound requests.
      • Misconfiguration warning: When EPP sanitizes kv_transfer_params or ec_transfer_params on a request carrying x-llm-d-epp-profile without x-llm-d-unsanitized-body: true, it logs a one-time warning per Director.

      Helm chart wiring for provisioning the shared Secret is deferred to a follow-up PR.

      Test plan:

      • ☑ HMAC signing, segmented-body parity, clock-skew bounds, tamper rejection, key rotation, env/file loading, and secret redaction
      • ☑ EPP config loading, v1alpha1 conversion, and validation (mutual exclusion, maxClockSkew bounds, incompatibility with trustCaller)
      • ☑ EPP header stripping on normal and forwardInputControlHeaders: true paths
      • ☑ EPP Director preservation of signed requests, sanitization of missing/invalid/expired/tampered/unsanitized-marked requests, and one-time misconfiguration warning behavior
      • ☑ Coordinator HTTP, decode-proxy, and gRPC signing, log redaction, internal header stripping, and unsigned passthrough enforcement
      • ☑ Hermetic EPP integration suite and make presubmit

      Which issue(s) this PR fixes:
      Fixes #4824

      Release note:

      Added shared-secret HMAC-SHA256 caller authentication (`gateway.auth_secret_env`/`auth_secret_file` on Coordinator and `requestHandler.trustedCallerAuth` on EPP) so an EPP behind a shared Gateway can preserve Coordinator-written body fields without disabling sanitization via `trustCaller`.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Adds optional shared-secret HMAC-SHA256 authentication between the Coordinator and EPP so EPP can keep bodyFieldsSanitizationPolicy set to strip or reject for direct clients while preserving Coordinator-written fields (kv_transfer_params, ec_transfer_params, prompt_token_ids). Coordinator signs outbound pipeline calls with x-llm-d-trusted-caller-auth, and EPP verifies the signature only when protected body fields appear and removes the header before forwarding upstream. Existing trustCaller deployments, passthrough sanitization via x-llm-d-unsanitized-body, and clean client requests without protected fields remain unchanged.

      ๐Ÿ—๏ธ Design
      • Shared HMAC primitive (pkg/common/request/caller_auth.go, pkg/common/request/constants.go): TrustedCallerAuth loads newline-separated keys from env or file (keys[0] signs, all keys verify in constant time) and computes/verifies v1=<unix_ts>.<hex_hmac> over a domain tag, timestamp, length-prefixed normalized x-llm-d-epp-profile, and exact body bytes (supporting segmented gRPC frames) within maxClockSkew (default 60s, min 1s).
      • Coordinator signing and ingress isolation (cmd/coordinator/main.go, pkg/coordinator/config/config.go, pkg/coordinator/gateway/client.go, pkg/coordinator/steps/decode_proxy.go, pkg/coordinator/pipeline/context.go): GatewayConfig adds auth_secret_env / auth_secret_file; gateway.Client.SignRequest signs HTTP Request, StreamGRPC, and newDecodeProxyRequest calls; internalForwardingHeaders strips client-supplied x-llm-d-trusted-caller-auth, httplog.RedactedHeaders redacts it, and passthrough never signs.
      • EPP verification and egress stripping (apix/config/v1, apix/config/v1alpha1, pkg/epp/config/loader, pkg/epp/handlers/request.go, pkg/epp/util/request/headers.go, pkg/epp/requestcontrol/director.go): requestHandler.trustedCallerAuth (mutually exclusive with trustCaller) wires *reqcommon.TrustedCallerAuth into Director. CallerAuthHeaders keeps x-llm-d-trusted-caller-auth on ingress for verifyTrustedCaller (skipped when x-llm-d-unsanitized-body: true) and always strips it via IsSystemOwnedHeader and eppOwnedHeaders even when forwardInputControlHeaders is enabled. A once-per-Director warning logs if transfer fields are sanitized on a request carrying x-llm-d-epp-profile.
      ๐Ÿงช Example (How It Works)
      1. Coordinator receives /v1/chat/completions, strips any client x-llm-d-trusted-caller-auth, runs prefill, and constructs the decode body containing kv_transfer_params.
      2. newDecodeProxyRequest sets x-llm-d-epp-profile: decode and calls gwClient.SignRequest(proxyReq, bodyBytes), stamping x-llm-d-trusted-caller-auth: v1=<ts>.<mac> using key 0.
      3. EPP receives headers (HandleRequestHeaders retains x-llm-d-trusted-caller-auth) and body (RawBody). Director.sanitizeClientFields detects kv_transfer_params, calls verifyTrustedCaller, verifies the timestamp and HMAC against RawBody and decode, and returns without mutating the body.
      4. generateHeaders and unsetRoutingHeaders omit x-llm-d-trusted-caller-auth and add it to RemoveHeaders so the downstream worker never sees the auth header.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: 2 comment(s) on configloader.go:194, coordinator_architecture.md:382 - [medium] Loading the secret file or env var inside InstantiateAndConfigure couples static config validation (...
    • 56. Issue [OPEN] [RFC]: Dynamic runtime PD router infrastructure and strategy for llm-d (llm-d/llm-d#2699 by @sihancx) ๐ŸŸก P1: Medium Priority โœจ Feature Request ๐Ÿ”ต ISSUE: Needs Architectural Alignment ๐Ÿ”ด High Effort ๐Ÿ’ฌ New reply after your comment
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator)
      ๐Ÿ“Œ Change Summary: RFC proposing runtime P/D ratio flipping (xP-yD to (x-n)P-(y+n)D) for macro traffic shifts and disaggregated-to-aggregated switching (xP-yD to (x+y)M) for low-concurrency valleys, via transfer-group discovery (FIND_TRANSFER_GROUP), metric-driven throughput projection (PREDICT_THROUGHPUT), and live role reassignment (APPLY_LAYOUT) using vLLM kv_both semantics.
      ๐Ÿ“„ View Full Issue Description
      Feature Area

      Routing strategy (e.g., llm-d-router, llm-d-autoscaling), telemetry components (e.g., Kubernetes, framework metrics), projection tools (inference-sim, AIConfigurator, heuristic logic, etc.)

      Status
      • ☐ Add the EPP side basic logics to view and change the P/D role => https://github.com/llm-d/llm-d-router/pull/3340
      • ☐ Add a guide to cover basic usages and results => https://github.com/llm-d/llm-d/pull/2889
      • ☐ Add TransferGroup API in which P/D ratios can be flipped
      • ☐ Observability/telemetry support as hint for transfers
      • ☐ Integrate a simulation tool to decide the best P/D ratio for an automatic transfer
      • ☐ integrate CUDA/XPU Graph
      • ☐ Showcase advantage of transferring into a Mixed layout
      Problem Statement

      llm-d already provides workload-aware request routing and autoscaling through components such as llm-d-router and KEDA/HPA. However, these mechanisms do not currently coordinate runtime P/D layout changes based on evolving workload characteristics and SLOs. We propose several features that build on the existing routing and autoscaling infrastructure to improve cluster utilization and SLO attainment under dynamic traffic patterns.

      At a macro level, traffic patterns may vary periodically with user behavior. For example, users may run more diverse workloads, such as coding, path finding, and RAG, during the day, potentially resulting in higher BS, ISL, and OSL. At night, workloads may shift toward CI workflows and short conversations, potentially resulting in lower BS and ISL, partly due to prefix-cache hits, and moderate OSL. Although this is only one illustrative scenario, it shows that a P/D ratio optimized for traffic pattern A may not be optimal for pattern B. In such cases, an xP-yD layout could potentially be adjusted at runtime to (x-n)P-(y+n)D.

      At a micro level, smaller peaks and valleys may occur within these broader periodic traffic changes. For example, during a short window with low BS and concurrency, the overhead of Prefill โ†’ KV transfer โ†’ Decode may outweigh the isolation benefits of P/D disaggregation, since concurrent prefills are less likely to interfere with ITL. In a 1P-1D deployment serving batches of one or two requests, two aggregated workers may therefore perform better. This motivates evaluating whether an xP-yD layout could temporarily transition to (x+y)M, where M denotes an aggregated worker that handles both prefill and decode.

      Proposed Solution

      Here are two features that we would like to work on, and please let us know if there are any existing studies or ongoing research that we are missing:

      Feature 1/N: Flipping P/D roles to better fit SLO under dynamic traffic pattern

      Current framework status:

      vLLM: P/D instances can be launched symmetrically with kv_both, 43807 aims to deprecate this, but this is not definite.
      sglang: P/D instances are launched with --disaggregation-mode, but it already supports runtime role switching 28403. However, a manual curl http://<inst>:8000/pd_role_switch request is currently required to trigger the flip, for any single instance. The instance must first be drained to idle, and the role transition must currently be triggered by an external operator or controller for correctness.

      We will firstly leverage vLLMโ€™s symmetric kv_both semantics to avoid role-specific KV-transfer structures within the serving framework, allowing instances to switch logical roles without becoming fully idle while preserving correctness.

      Here we note a deployment as p_AtpX_d_BtpY_m_CtpZ: A prefill instances with TP=X (tensor parallel size X), B decode instances with TP=Y, and C mixed/aggregated-role instances with TP=Z

      <img width="663" height="299" alt="Image" src="https://github.com/user-attachments/assets/1dda3ffe-4622-413d-8b01-142324650cd6"; />

      As shown above, we will implement three functionalities:

      1. FIND_TRANSFER_GROUP: Find transferrable layout groups for the current deployment layout
      2. PREDICT_THROUGHPUT: Plan the optimal layout based on runtime metrics and projected performance under the target layout.
      3. APPLY_LAYOUT: Execute workload-aware switching with the elastic LLM router.

      Our code change is currently adapted from a handwritten round-robin router (and should be possible to migrate to llm-d-router). We periodically fetch the vLLM metrics and calculate the current ISL/OSL/BS. Then, we use a projection tool to get the estimated performance when the ISL/OSL/BS pair varies. If the throughput gain is larger than the threshold, we switch to a new P/D ratio.

      Our initial experiments:

      <img width="975" height="542" alt="Image" src="https://github.com/user-attachments/assets/3f9466a9-54fb-43c9-8d12-cc76f71370dc"; />

      • Baseline 1, using a fixed P2D2 layout, achieves the best performance for the prefill-dominant workload (Scenario 1), reaching 3.13 req/s. However, when the workload becomes decode-dominant in Scenario 2, the same layout suffers significant performance degradation, reducing throughput to 0.59 req/s and increasing TTFT to 6,005.83 ms (approximately 4.8ร— higher than Baseline 2 under the same workload).
      • Baseline 2, using a fixed P1D3 layout, achieves the best performance for the decode-dominant workload (Scenario 2), reaching 0.88 req/s. However, it is suboptimal for Scenario 1, achieving only 2.35 req/s compared with 3.13 req/s from Baseline 1, with a higher TTFT (3,263.24 ms vs. 2,904.91 ms).
      • Our dynamic PD-switching mechanism automatically selects P2D2 for Scenario 1 and P1D3 for Scenario 2 according to runtime workload characteristics. It achieves the same throughput as the optimal fixed configuration in Scenario 1 (3.13 req/s) and closely approaches the optimal fixed configuration in Scenario 2 (0.87 req/s vs. 0.88 req/s, with TTFT of 1,320.60 ms vs. 1,259.85 ms).

      This shows that the proposed PD-switch mechanism can adapt to workload changes during the runtime lifecycle without restarting the serving system. By dynamically selecting workload-specific P/D layouts, it follows the best fixed configuration for each workload phase and maintains near-optimal throughput over the entire execution period.

      Feature 2/N: Flipping Disaggregated/Aggregated under peak/valley traffic pattern change

      Under low concurrency, the existing P/D disaggregated architecture might be suboptimal. As mentioned above, the router might see P/D as independent aggregated instances. This feature should also use FIND_TRANSFER_GROUP, but it involves another aggregated role that P/D instances can transfer to, which we denote as M.

      Taking a cluster with n_gpus = 4 as an example, the 12 valid layouts can be partitioned into 4 transfer groups. Runtime P/D/M switching can be performed only among layouts within the same transfer group.

      Total Groups: 4
      --------------------------------------------------------------------------------
      Group 1: 7 layouts
        [003] p_none_d_none_m_4tp1
        [005] p_1tp1_d_1tp1_m_2tp1
        [006] p_1tp1_d_2tp1_m_1tp1
        [007] p_1tp1_d_3tp1_m_none
        [008] p_2tp1_d_1tp1_m_1tp1
        [010] p_2tp1_d_2tp1_m_none
        [011] p_3tp1_d_1tp1_m_none
      --------------------------------------------------------------------------------
      Group 2: 2 layouts
        [001] p_none_d_none_m_2tp2
        [009] p_1tp2_d_1tp2_m_none
      --------------------------------------------------------------------------------
      Group 3: 2 layouts
        [002] p_none_d_none_m_2tp1-1tp2
        [004] p_1tp1_d_1tp1_m_1tp2
      --------------------------------------------------------------------------------
      Group 4: 1 layout
        [000] p_none_d_none_m_1tp4

      p_2tp1_d_2tp1_m_none (2 Prefill with TP1 + 2 Decode with TP1) can be transferred to p_none_d_none_m_4tp1 (4 TP1 aggregated/mixed-role workers) at runtime without a restart.

      We are currently working on further experiments on this, and any feedback is welcome.

      Alternatives Considered
      • Existing TP should not be changed because of online flipping.
      • CUDA Graph Recapturing handling (P <-> D graph requires a recapture as shown in sglang's 28403
      • Prefix cache locality (worth a recompute or another NIXL transfer not when there is a gap between source role/target role)
      Willingness to Contribute

      I would like to contribute PRs.

      Additional Context

      NA

      ๐Ÿ’ฌ Discussion Summary: yuanwu2017 asked for alignment on prior work and preferred integration points. liyonghua0910 asked how runtime metrics feed projection estimates and how load balances across co-located P, D, and M workers. liu-cong noted that heterogeneous P/D shapes favor scaling P/D separately rather than flipping roles. sihancx replied that initial switching would be coarse-grained (3P1D -> 2P2D or 4M), proposed a WorkerShape struct (treating TP, model, and accelerator as hard constraints and engine limits as soft warnings), and requested review of llm-d-router#3340 (and follow-up guide llm-d#2889).
      โš–๏ธ Verdict: Needs Architectural Alignment
    • 57. PR [OPEN] docs: improve agentic API troubleshooting guide ๐Ÿ“„ Diff (llm-d/llm-d#2900 by @6democratickim9) ๐ŸŸก P1: Medium Priority ๐Ÿ”ง Chore / Docs โฐ Sitting 44d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: Open Discussion / Comments ๐ŸŸข Low Effort ๐Ÿ’ฌ New reply after your comment
      ๐ŸŽฏ TL Priority Triage: TL Triage: Docs, chore, test, or dependency maintenance; sitting 44d (>3d bump P2 -> P1)
      ๐Ÿ“Œ Change Summary: [+59/-0 lines across 1 file(s)] Add an Observability & Troubleshooting section to the Agentic API guide to make it easier to diagnose failures across the Agentic API, PostgreSQL, routing, and inference components.
      ๐Ÿ“„ View Full PR Description

      Related issue

      Addresses the Agentic serving (guides/agentic-api) portion of #1982 (per-guide observability and troubleshooting for well-lit paths). This PR covers only the Agentic API guide and does not close the broader tracking issue.

      Summary

      Add an Observability & Troubleshooting section to the Agentic API guide to make it easier to diagnose failures across the Agentic API, PostgreSQL, routing, and inference components.

      Changes

      • Document relevant health signals, logs, and existing observability metrics for the Agentic API, PostgreSQL, vLLM model servers, and EPP router.
      • Add practical kubectl commands to inspect deployments, PostgreSQL PVC status, and container logs.
      • Map the four verify.py stages to targeted troubleshooting steps:
      • [1/4] Endpoint connectivity and model discovery
      • [2/4] First-turn responses and conversation follow-up
      • [3/4] Tool-calling configuration and function_call responses
      • [4/4] WebSocket connectivity
      • Clarify diagnostic limits: missing metrics do not establish health, an incorrect follow-up alone does not prove conversation loss, and model-server latency only covers part of an agentic interaction.
      • Link to existing metrics, PromQL, and alerting documentation rather than duplicating monitoring setup instructions.

      Validation

      • ☑ python scripts/guide.py render guides/*/ guides/models/*/ guides/fast-model-actuation/fast-model-actuation-keda/ guides/batch-serving/asynchronous-processing/multitenant/ --check
      • ☑ python scripts/guide.py check-manifest docs/well-lit-paths/guides.yaml

      Documentation-only change; no runtime behavior or deployment configuration changes.

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Adds an Observability & Troubleshooting section to guides/agentic-api/README.md mapping the 4 stages of verify.py to specific diagnostic steps across the Agentic API, PostgreSQL, router (EPP), and model-server components.

      ๐Ÿ—๏ธ Design

      Structured as a 3-part troubleshooting guide: (1) a high-level signal matrix detailing observable metrics and log locations across agentic-api, postgres, vLLM, and EPP; (2) inspection commands for deployments, PVCs, logs, and transient debug logging rollouts; and (3) a stage-by-stage failure triage covering verify.py stages [1/4] through [4/4], distinguishing database persistence issues from model refusal behavior and WebSocket transport limitations.

      ๐Ÿงช Example (How It Works)

      When verify.py fails at stage [2/4] on conversation follow-up, the guide instructs the operator to check the Turn 1 response ID via GET /v1/responses/{response_id}: a successful retrieval proves PostgreSQL stored the turn (pointing to model prompt/reconstruction behavior), whereas a 404 indicates database persistence failure.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Feedback addressed, awaiting reviewer LGTM - All 9 review thread(s) with @gyliu513 resolved by @6democratickim9; no active debate, awaiting final LGTM from @gyliu513.
      ๐Ÿงช Nightly CI: Guide changes do not affect test-nightly (changed guide content is not exercised by any nightly-e2e workflow (guides/agentic-api/README.md: changes commands or variables kustomize standup extracts from this README)).
      โš–๏ธ Verdict: ๐Ÿ’ฌ Deep Review Verdict: Do Not Auto-Approve: Review thread(s) from @gyliu513 resolved, but @gyliu513 has not given LGTM / approval yet.
    • 58. Issue [OPEN] Unify per-session and per-endpoint session state into SessionStateRegistry (llm-d/llm-d-router#3796 by @liu-cong) ๐ŸŸก P1: Medium Priority โœจ Feature Request ๐Ÿ”ต ISSUE: Guide: Stack per-thread KV accounting after #4191 + #4159 ๐Ÿ”ด High Effort ๐Ÿ’ฌ New reply after your comment
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Admission, flow control, & saturation)
      ๐Ÿ“Œ Change Summary: Tracks the multi-PR consolidation of session and endpoint state into SessionStateRegistry (RequestHeader DynamicRequestAttribute, SessionState + EndpointSessions facts in session-state-producer, and migration of turn-priority and thunder-agent off duplicate local ledgers).
      ๐Ÿ“„ View Full Issue Description
      Design Doc: Session State Unification Design Proposal

      What would you like to be added:

      Unify per-session and per-endpoint session tracking into a shared SessionStateRegistry with a three-tier state architecture, DynamicRequestAttribute support for pre-FlowControl live access, and a SessionWriter / SessionReader capability split.

      Why is this needed:

      Three plugins maintain separate, overlapping session stores:

      • session-state-producer (#2531)
      • thunder-agent (#2968, #3052, #3076)
      • program-aware-fairness

      Duplicating session tracking across plugins fragments lifecycle management, complicates reasoning about cross-plugin interactions, and prevents new session-aware plugins from building on a common foundation.

      Goals
      • Single source of truth: Consolidate per-session and per-endpoint session state into SessionStateRegistry as the foundational building block for existing and future session-aware plugins.
      • Pre-FlowControl live access: Expose live session attributes before FlowControl via DynamicRequestAttribute so admission, fairness, and scheduling plugins read consistent state.
      • Ground-truth facts only in global state: Store only observed ground-truth facts in global state, enforced through a SessionWriter / SessionReader interface split so consumers cannot mutate shared session state.
      Three-Tier State Architecture
      1. Request Attributes (InferenceRequest): Per-request and per-turn attributes, including DynamicRequestAttribute for live pre-FlowControl lookups.
      2. Per-Session State (SessionState + EndpointFootprint): Ground-truth session metadata and per-endpoint footprint tracked in SessionStateRegistry.
      3. Per-Endpoint Summary (EndpointSessionSummary): Aggregated per-endpoint session view with SessionIDs for fast scheduling and fairness evaluation.
      Phase 1 PR Breakdown
      • PR 1A - Framework Primitives: Add DynamicRequestAttribute and core request/attribute abstractions needed for pre-FlowControl live access.
      • PR 1B - Unified SessionStateRegistry & session-state-producer: Implement SessionStateRegistry with the SessionWriter / SessionReader split, SessionState, EndpointFootprint, and EndpointSessionSummary (with SessionIDs), and wire session-state-producer as the writer.
      • PR 1C - Consumer Migration: Migrate program-aware-fairness and thunder-agent to read from SessionStateRegistry via SessionReader and remove their redundant session stores.
      ๐Ÿ’ฌ Discussion Summary: Pre-FlowControl SessionState publication (#3956, #3957, #3958) and turn-priority migration (#4232) have landed on main, while #3962 was closed because LAS decayed service stays in program-aware. Open PRs #4191 (endpoint bindings + thunder-agent migration), #4345 (SessionKey{TenantID, SessionID}), #4426 (maxSessions/maxIdentityBytes bounds), and #4159 (thread-id/parent-thread-id in agent-identity) are in flight. On Nov 19, @helloravi reproduced parallel sub-agent KV undercounting in thunder-agent (last-writer-wins overwrites a 400-token thread with a 50-token sub-agent) and asked whether per-thread committed-token tracking belongs in step 1 (#4191) or a follow-up.
      โš–๏ธ Verdict: Guide: Stack per-thread KV accounting after #4191 + #4159

    3.2 Priority User Activity

    Action or comments by monitored priority users within target repositories (Sorted by Priority: P0 -> P1 -> P2, then Effort: Low -> High).
    ๐ŸŽฏ Section Priority Filter:
    • 1. Issue [OPEN] epp: reduce per-request and per-chunk allocations on the request and response hot paths (llm-d/llm-d-router#3961 by @ahg-g) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator)
      ๐Ÿ“Œ Change Summary: A performance review of the EPP request and response hot paths on main (62087d92) found that the per-request cost is dominated by a deep clone of every endpoint's attribute map when the scheduler snapshot is built, and that the...
      ๐Ÿ“„ View Full Issue Description

      Summary

      A performance review of the EPP request and response hot paths on main (62087d92) found that the per-request cost is dominated by a deep clone of every endpoint's attribute map when the scheduler snapshot is built, and that the per-token response path allocates and copies on every chunk when a model rewrite is active. This issue tracks ten items, ranked, with the numbers that back each one.

      This is the EPP counterpart of #3960 (coordinator JSON pipeline). #3906 did the same for the coordinator's SGLang gRPC path. Item 3 below shares a helper with #3960 item 3.

      Method

      • The repository's own 215 benchmarks under pkg/epp were run with -benchmem (Go 1.26.8). Numbers below come from them unless marked new.
      • The hot paths were read with file and line references: handlers, parsers, requestcontrol, scheduling, approximateprefix, datalayer, flowcontrol.
      • One new benchmark was added for item 1, because the existing benchmark uses endpoints without attributes and hides the cost. The code is in "Reproducing" below. It is not committed.
      • Envoy runs both body directions in FULL_DUPLEX_STREAMED mode (config/charts/llm-d-router-standalone/values.yaml:280-286) with no in-code override, so every request body chunk and every response chunk passes through the EPP.

      What is already efficient

      These should stay:

      • Request body chunks go into a size-capped sync.Pool of bytes.Buffer (handlers/server.go:459-464). releaseRequestBody drops the body after it is forwarded, so an in-flight stream does not hold it. BenchmarkProcessInFlightRetainedHeap guards this.
      • The OpenAI parser keeps messages, prompt, input, and instructions as raw bytes that alias the body (parsers/util/json.go:99-124) and forwards the original bytes when nothing changed.
      • Prompt.UnmarshalJSON parses a flat token array in 2 allocations for 1M tokens.
      • Prefix hashing runs xxhash over an unsafe.Slice view of the tokens with no per-block allocation (prefixhash/hashing.go:107-135). The custom LRU takes 560 allocations for 72k entries against 72k for simplelru.
      • The OpenAI response parser scans each chunk for usage before it parses. The SSE line carry copies only a split tail.
      • TestHandleResponseBodyAllocs caps the director's per-response allocations. BenchmarkRetainedHeap tracks the indexer's memory at capacity.

      Measurements

      Per request
      StageMeasuredNotes
      Parse chat request, 8K-token text (OpenAIParser_ChatCompletions/Text/ISL8K/ParseRequest)77 KB, 50 allocs, 241 ยตsAbout 2ร— the body: one typed decode that copies all message text, plus one raw clone
      Parse chat request, 32K tokens, 32 turns296 KB, 148 allocs, 1.0 ms
      Parse chat request, 128K tokens1.08 MB, 50 allocs, 3.4 msTyped decode alone is 1.07 MB in 7 allocs
      Re-encode on model rewrite, 24 KB string prompt (ParseRequestAndRewrite/String/24KiB minus ParseRequest/String/24KiB)+28 KB, +12 allocsjson.Marshal of the payload map clones and reformats each raw field on Go 1.26
      Re-encode on model rewrite, 32K token IDs+220 KBToken IDs re-encoded as JSON digits
      Scheduler snapshot, 100 endpoints, 0 attributes (ToSchedulerEndpoints/endpoints=100)9.8 KB, 201 allocs, 8 ยตsThe existing benchmark
      Scheduler snapshot, 100 endpoints, 8 attributes (new)119 KB, 2,748 allocs, 177 ยตsattr.Clone() per endpoint
      Scheduler snapshot, 100 endpoints, 16 attributes (new)241 KB, 5,472 allocs, 348 ยตs
      Prefix producer + PreRequest, 100 candidates (ProduceThenPreRequest/candidates=100)81 KB, 977 allocs, 117 ยตsAbout 10 allocs per candidate
      Prefix producer, 96 pods (Produce/hotspot/pods=96)51 KB, 420 allocs, 105 ยตsAbout 4 allocs per pod
      Schedule, 100 endpoints (Schedule/endpoints=100)56 KB, 152 allocs, 119 ยตsAllocation count flat in N, about 400 B per endpoint
      Schedule, 25 endpoints20 KB, 152 allocs, 46 ยตs

      For a 100-endpoint pool with a typical attribute set, the scheduler snapshot alone costs more allocations than parsing, prefix matching, and scheduling together.

      Per streamed response chunk
      SitePer chunkNotes
      director.HandleResponseBody + streaming plugins (BenchmarkHandleResponseBody, 10 chunks)~5 allocs, 670 BOne Response struct, a mutex, a send on a 100-slot channel
      generateResponseBodyResponses + BuildChunkedBodyResponses (handlers/response.go:263-282)~7 allocsProtobuf wrappers; chunk bytes are sliced, not copied
      rewriteModelName (handlers/server.go:1018-1034)2-4 allocs + 1-2 scans, full chunk copy on matchOnly when TargetModelName != IncomingModelName. Every OpenAI chunk carries "model":"...", so the copy runs on every chunk
      RecordInterTokenLatency (handlers/response.go:70-77, metrics/metrics.go:376-386)3 global RWMutex.RLock + 5-label WithLabelValuesPlus an exemplar map when the span is sampled
      extractUsageStreaming (parsers/openai/openai.go:786-831)1 json.Unmarshal per data: line containing usageWith stream_options.include_usage, vLLM sends "usage":null on every chunk, so every chunk is parsed
      completeSSELines0-2 allocsOnly when a line is split across chunks
      extractFairnessAndPriority1 alloc when priority >= 100strconv.Itoa per chunk
      sglanghttp streaming usage (parsers/sglanghttp/sglanghttp.go:298-325)2-3 copies of the whole chunk + a []stringstring(body), strings.Split, []byte(data) per line

      Rough total for an OpenAI chat stream with a model rewrite and include_usage: about 20 allocations, one chunk copy, and one JSON parse per token.

      Items

      1. The scheduler snapshot deep-clones every endpoint's attribute map per request

      Where: pkg/epp/requestcontrol/director.go:662-669 โ†’ pkg/epp/framework/interface/scheduling/types.go:140-150 โ†’ pkg/epp/framework/interface/datalayer/attributemap.go:137-146.

      Problem: NewEndpointFromSnapshot calls attr.Clone(), which builds a new sync.Map and Puts a clone of every value. The datalayer extractor writes one scalar attribute per extracted metric per poll (extractor/metrics/extractor.go:268-273), and the prefix producer writes its match data, so K is about 8 to 16 in a normal deployment. The comment on NewEndpointFromSnapshot says attributes are cloned because data producers write per-request values into the scheduling endpoint.

      Cost: 100 endpoints ร— 16 attributes: 241 KB, 5,472 allocations, 348 ยตs per request, before any plugin runs. BenchmarkToSchedulerEndpoints uses endpoints with no attributes and reports 201 allocations, which is why this did not show.

      Fix: copy on write. The scheduling endpoint keeps a read-only reference to the shared per-pod map and an overlay for per-request writes. Put writes the overlay. Get and Peek check the overlay, then the base. Only data producers write per request, and they write few keys. Add an attribute count to BenchmarkToSchedulerEndpoints (0, 8, 16) so the benchmark tracks the real cost, and add an allocation ceiling test.

      Risk: a plugin that mutates a value obtained from Get in place would affect the shared map. Today Get returns a clone, so in-place mutation is already unsafe to rely on, and the overlay keeps that contract.

      2. Plugin scoping allocates wrappers and per-endpoint slices at every extension point

      Where: pkg/epp/datalayer/endpoint_scope.go:312-343, pkg/epp/datalayer/request_scope.go:77-111, pkg/epp/datalayer/endpoint_scope.go:274-293, pkg/epp/scheduling/scheduler_profile.go:256-272, pkg/epp/framework/plugins/scheduling/scorer/queuedepth/queue.go:89-118.

      Problem: Each plugin call (filters, scorers, data producers, screeners, admitters, pre-request, response hooks) goes through ScopeInvocation or ScopeRequest: about 6 allocations, 2 to 3 slices of N ([]ScopedEndpoint, []Endpoint, Unscope), a TypedName().String() concatenation, and a global scopeSpecsMu.RLock. Each scorer returns a map[Endpoint]float64 keyed by an interface value, merged into another map. queuedepth builds two maps.

      Cost: with 10 plugins and 100 endpoints, about 30 slices of 100 pointers and 60 small allocations per request, plus one map of N per scorer. BenchmarkSchedule/endpoints=100: 56 KB per request.

      Fix: cache the *scopeSpec on the plugin instance or in a slice indexed by plugin position, which removes the concatenation and the global lock. Allocate the wrapper array and the scoped slice once per request and reuse them across plugins at the same extension point. Return scores as an index-aligned []float64 and merge by index.

      3. A chat request is scanned by JSON three to four times

      Where: pkg/epp/framework/plugins/requesthandling/parsers/openai/openai.go:159-169, pkg/epp/framework/plugins/requesthandling/parsers/util/json.go:51-124, pkg/epp/framework/common/request/types.go:67. The Anthropic parser (parsers/anthropic/anthropic.go:93,114-116) has the same three passes.

      Problem: extractRequestBody does a full typed json.Unmarshal that copies all message text and media into Go strings. UnmarshalEnvelope then runs json.Valid (pass 2) and a hand-rolled top-level split (pass 3). On a model rewrite, priority rewrite, or any other mutation, PayloadMap.Marshal runs json.Marshal on the map, which on Go 1.26 clones and reformats every RawMessage (pass 4, plus a body-sized allocation).

      Cost: parse is about 2ร— the body in allocations (1.08 MB for a 128K-token chat). The rewrite adds about 1.1ร— the body for text prompts and 1.7ร— for token-ID prompts.

      Fix: fold validation into the split, or use jsontext.Decoder offsets to find top-level fields in one pass. On mutation, splice the changed top-level fields into the original bytes instead of re-marshaling the map. This is the same helper as #3960 item 3. The typed decode is harder to avoid because downstream code uses the typed messages. Check whether messages can be decoded lazily, since many requests only need model, stream, and token-count fields on the request path.

      4. rewriteModelName builds its needles and scans on every response chunk

      Where: pkg/epp/handlers/server.go:858 and :1018-1034.

      Problem: When the target model differs from the client's model name, each chunk pays two to four string concatenations and []byte conversions, one or two bytes.Contains scans, and a bytes.ReplaceAll copy of the whole chunk. OpenAI chunks all carry the model field, so the copy runs on every chunk.

      Fix: precompute the old and new byte slices once per request when the names differ, and store them on RequestContext. Replace in place when the lengths are equal. Otherwise use one bytes.Index and two appends into a reused buffer.

      Test: an allocation test on a chunk with a model rewrite asserts at most one allocation (the output buffer) per chunk.

      5. Streaming usage extraction parses every chunk when include_usage is set

      Where: pkg/epp/framework/plugins/requesthandling/parsers/openai/openai.go:786-852.

      Problem: The guard is bytes.Contains(content, "usage"). vLLM emits "usage":null on every chunk when stream_options.include_usage is true, so every chunk is unmarshaled into a struct with RawMessage fields, which copies the usage bytes. The final usage block is then parsed three times: the RawMessage copy, json.Marshal(map{"usage": raw}) in extractRawUsage, and extractUsage.

      Fix: extend the guard to skip "usage":null and "usage": null. Decode the usage object directly from the RawMessage instead of wrapping it in a map and re-marshaling.

      Test: an allocation test on a content chunk with "usage":null asserts zero JSON work (the existing openai_extractusage_test.go covers the semantic cases).

      6. Flow control runs a full dispatch cycle per item and at 1 kHz when idle

      Where: pkg/epp/flowcontrol/controller/internal/processor.go:226-275 and :484-606.

      Problem: dispatchCycle runs once per dispatched item and on a 1 ms ticker. Each run calls Locate (a PodList slice copy of N), partitions endpoints into three slices, calls the saturation detector two or three times over all endpoints, and writes about eight gauges. All of it runs on one goroutine, which is the serialization point for every admitted request.

      Fix: compute the endpoint partition and saturation once per tick and reuse them for every item dispatched in that tick. Dispatch more than one item per cycle when capacity allows. Skip the work on an idle tick when the queues are empty.

      Measure first: this was read, not measured. A benchmark that enqueues 1,000 items against 100 endpoints and measures the processor's allocations and time per dispatched item would size the gain.

      7. Every non-system header is echoed back to Envoy, and headers are scanned six times

      Where: pkg/epp/handlers/request.go:215-225, pkg/epp/handlers/response.go:309-319, pkg/epp/handlers/server.go:644-646,659, pkg/epp/handlers/request.go:48,64,79.

      Problem: On each request and each response, the EPP sends every non-system header back as a SetHeaders mutation: a []byte(value) copy plus two protobuf structs per header, with strings.ToLower and four set lookups per header in IsSystemOwnedHeader. Envoy then re-applies headers that did not change. Before that, the inbound header list is iterated about six times (:path, request ID, trace context, method, WebSocket check, copy into the map), each pass with strings.ToLower per key.

      Fix: set only the headers the EPP added or changed. Lowercase once into reqCtx.Request.Headers and read the special headers from that map.

      8. Metric label resolution per chunk

      Where: pkg/epp/handlers/response.go:70-77, pkg/epp/metrics/metrics.go:376-386, pkg/common/observability/metrics/cardinality.go:60-70.

      Problem: RecordInterTokenLatency takes three global read locks in the label limiters and hashes five labels on every chunk. RecordPluginProcessingLatency does the same per plugin per chunk.

      Fix: resolve the prometheus.Observer children once per request after the labels are known and keep them on RequestContext. The per-chunk call becomes one Observe.

      9. Prefix-cache producer allocates about 10 objects per candidate

      Where: pkg/epp/framework/plugins/requesthandling/dataproducer/approximateprefix/plugin.go:311-359, approximateprefix/indexer.go:102-125, pkg/epp/framework/plugins/scheduling/scorer/prefix/plugin.go:134-181, approximateprefix/plugin.go:515-560.

      Problem: Produce writes a PrefixCacheMatchInfo into every candidate's attributes with Put, which clones the value (2 allocations per endpoint). MatchLongestPrefix builds two slices of N and takes a read lock per pod. The prefix scorer reads the value back with Get, which clones again, and once more in anyMMHit when tracing. PreRequest starts a goroutine per request that holds the pod's write lock while it adds every block hash.

      Cost: ProduceThenPreRequest/candidates=100: 81 KB, 977 allocations, 117 ยตs.

      Fix: keep the per-request match results in the plugin's scheduling context state (which already exists) and read them by index in the scorer, instead of round-tripping through the cloning attribute map. Batch the Add calls under the write lock so readers interleave.

      10. Smaller items
      • sglanghttp streaming usage copies each chunk to a string, splits it into a []string, and copies each data line back to []byte (parsers/sglanghttp/sglanghttp.go:298-325). Use bytes.SplitSeq as the OpenAI parser does.
      • Prompt.UnmarshalJSON falls back to json.Unmarshal into []any when any token is written in a non-canonical form such as 12345.0. The fallback costs 112 bytes and 2 allocations per token (PromptUnmarshalJSONTokenIDs/Fallback/1M: 112 MB, 2M allocs). A client that sends floats pays 28ร— the memory of one that sends integers. Make the fast path tolerate a .0 suffix, or cap the fallback.
      • The estimate tokenizer copies the prompt two to three times (dataproducer/tokenizer/estimate.go:343-372, 625-636).
      • Each data producer runs on its own goroutine with its own context.WithTimeout per request (requestcontrol/plugin_executor.go:88-118). With few producers a sequential run under one deadline is cheaper.
      • prepareRequest builds a map[string]float64 with a net.JoinHostPort string per endpoint on every request (requestcontrol/director.go:607-614), used only when emitEndpointScores is on.
      • The vLLM gRPC parser copies token IDs a second time after proto.Unmarshal (parsers/vllmgrpc/vllmgrpc.go:230-231).
      • The request body is copied three times inside the EPP: chunk into the pooled buffer, pooled buffer into RawBody (handlers/server.go:694-696, kept pristine for the tool-calling comparison), and protobuf marshal on send. The RawBody copy can be skipped when tool-calling telemetry is off.

      Retained memory

      • A stream in flight holds headers, the typed body, and the scheduling request, not the raw bytes. BenchmarkProcessInFlightRetainedHeap/body=64KiB: 64 streams retain 9 MB, about 140 KB per stream, most of it the typed decode and the payload map.
      • The prefix indexer retains its configured capacity (BenchmarkRetainedHeap/pods=96: 320 MB at the benchmark's settings). By design. The per-entry size is what to watch when block size or capacity changes.
      • Per streaming response, one goroutine and a 100-slot channel live until the stream ends (requestcontrol/director.go:767-779).

      No leak found in the paths read.

      Gaps

      • No whole-request profile through a real Director and scheduler. The pieces exist: handlers/server_request_buffer_test.go:44-130 has a fake ext_proc stream and body builders, and scheduling/scheduler_bench_test.go:30-110 has a scheduler fixture. Wiring them together with -memprofile gives one number per request and catches what per-stage benchmarks miss.
      • Datalayer scraping (per pod every 50 ms: HTTP GET, Prometheus text parse, Metrics.Clone, one attribute Put per metric; source/metrics/datasource.go:202-237, extractor/metrics/extractor.go:130-273) was read but not measured. At 100 pods that is 2,000 expfmt parses per second. Background load, not request latency, but it is the steady-state CPU floor.
      • Flow control was read but not measured under load (item 6).

      Suggested order

      1. Item 1. Largest single cost, one function, the benchmark exists and only needs attributes added.
      2. Items 4, 5, 8 together. Small and local. They remove the per-token allocations and the per-token JSON parse.
      3. Items 2 and 9. Framework level, touch every plugin, need a design pass.
      4. Item 3. Shares the splice helper with #3960.
      5. Items 6, 7, 10 as housekeeping, with a flow-control benchmark first.

      Reproducing

      Item 1 (new benchmark, add to pkg/epp/requestcontrol/director_bench_test.go):

      func BenchmarkToSchedulerEndpointsWithAttrs(b *testing.B) {
      	for _, k := range []int{0, 8, 16} {
      		for _, n := range []int{25, 100} {
      			endpoints := makeBenchmarkDatastoreEndpoints(n)
      			for _, ep := range endpoints {
      				for i := range k {
      					ep.GetAttributes().Put(
      						attrmetrics.ScalarMetricDataKey(fmt.Sprintf("metric_%d", i)),
      						attrmetrics.ScalarMetricValue(float64(i)))
      				}
      			}
      			director := &Director{}
      			b.Run(fmt.Sprintf("attrs=%d/endpoints=%d", k, n), func(b *testing.B) {
      				b.ReportAllocs()
      				for b.Loop() {
      					_ = director.toSchedulerEndpoints(endpoints)
      				}
      			})
      		}
      	}
      }

      Everything else: go test -run '^$' -bench . -benchmem ./pkg/epp/... and read the benchmarks named in the tables.

      ๐Ÿ’ฌ Discussion Summary: ๐Ÿ’ฌ Ongoing discussion (7 comment(s) across @ahg-g, @LukeAVanDrie, @dongmin0204) - Latest update from @bustamonica; no blocking debate.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Assigned to @ahg-g, @bustamonica (no linked open PR); latest update from @bustamonica: "Picking up Item 7 (stop echoing unchanged headers to Envoy + single-pass inbound header normalization for...".
    • 2. Issue [OPEN] epp, kvevents: decode SGLang mm_routing_labels in sglang_adapter and extract mm_hashes in sglanghttp-parser (llm-d/llm-d-router#3983 by @ahg-g) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐ŸŸก Medium Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity)
      ๐Ÿ“Œ Change Summary: Support SGLang multimodal prefix-cache affinity across pkg/kvevents and sglanghttp-parser (#3991, PR #3992): SGLang sgl-project/sglang#47120 removed caller mm_hashes overrides on internal multimodal cache identities.
      ๐Ÿ“„ View Full Issue Description

      What would you like to be added:

      Support SGLang multimodal prefix-cache affinity across pkg/kvevents and sglanghttp-parser (#3991, PR #3992):

      1. In pkg/kvevents/engineadapter/sglang_adapter.go, decode caller multimodal routing spans (BlockStored.mm_routing_spans, sgl-project/sglang#45737) into ExtraKeys. SGLang reports the spans in the dynamo KV-event format only. precise-prefix-cache-producer then matches SGLang multimodal KV blocks across gRPC and HTTP routes.
      2. In sglanghttp-parser, extract mm_hashes and placeholder spans into MultiModalFeatures as an HTTP /generate follow-up.
      3. In sglanghttp-parser ParseResponse, increment StreamedEvents on SSE chunks and enable sglanghttp-parser in default SGLang profiles.

      Why is this needed:

      SGLang sgl-project/sglang#47120 removed caller mm_hashes overrides on internal multimodal cache identities. Merged PR sgl-project/sglang#45737 reports caller mm_routing_labels in the KV events of Python workers instead, and sgl-project/sglang#48705 tracks the request field on sglang.api.v1. SGLang also scopes the prefix cache of a multimodal request to its ordered media set, so requests with different media share no prefix. Today sglang_adapter extracts cacheSalt only (sglang_adapter.go:173-174), and sglanghttp-parser ignores mm_hashes. Without both updates, SGLang multimodal requests miss precise prefix-cache affinity in EPP.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Assigned to @ahg-g with no comments or debate yet.
      โš–๏ธ Verdict: โณ Assigned to @ahg-g (no linked open PR yet); awaiting implementation PR.
    • 3. Issue [OPEN] epp: prevent prefix-cache-affinity-filter load_override cascading overload (llm-d/llm-d-router#4042 by @ahg-g) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Admission, flow control, & saturation)
      ๐Ÿ“Œ Change Summary: Robert Shaw reported a cascading overload in llm-d-router when prefix-cache-affinity-filter interacts with load_override after prefill worker failures:.
      ๐Ÿ“„ View Full Issue Description

      Problem

      Robert Shaw reported a cascading overload in llm-d-router when prefix-cache-affinity-filter interacts with load_override after prefill worker failures:

      1. Trigger: Several prefill endpoints failed. Active prefixes missed cache (no_match), migrated to surviving or replacement endpoints, and created a localized load spike.
      2. Spillover: When a sticky endpoint's estimated TTFT exceeded a cold endpoint's TTFT by maxTTFTPenaltyMs, the filter triggered load_override and bypassed prefix affinity.
      3. Cascading loop: Target endpoints lacked the KV prefix and recomputed full prompts from scratch. That extra compute overloaded each target endpoint, evicted warm KV blocks, and triggered further load_override decisions across the pool (overload -> load_override -> overload).
      4. Mitigation: At a high prefix hit rate (for example, 90%), losing cache locality multiplies prefill compute demand beyond total cluster capacity. The team could break the loop only by deploying a new EPP with load_override disabled (maxTTFTPenaltyMs: 0).

      Contributing code behaviors

      1. The TTFT gate omits the incoming request's uncached prefill cost. In prefillThroughput mode, Plugin.endpointTTFT divides only InFlightLoad.Tokens by PeakPrefillThroughput. It ignores UncachedRequestTokens, which InFlightLoadProducer.Produce already writes on each endpoint. For a long prompt cached on sticky endpoint S, Plugin.Filter can spill to cold endpoint C even when C's full prefill exceeds S's queue delay.
      2. The TTFT gate checks only relative delay. Plugin.Filter compares bestStickyTTFT - bestNonStickyTTFT against MaxTTFTPenaltyMs. It checks neither cold endpoint load nor pool saturation, so it still breaks affinity when cold candidates are already congested. At the default peakPrefillThroughput (15928 tokens/s), maxTTFTPenaltyMs: 5000 equals 79,640 tokens, so one 80K cold spillover pushes its target past the threshold.
      3. One override reopens every cold endpoint at once. Plugin.Filter returns all endpoints on load_override. WeightedRandomPicker.Pick then scatters concurrent requests for one hot prefix across all cold endpoints. Even with token-load-scorer and max-score-picker, precise-prefix-cache-producer defaults to speculativeIndexing: false (or a fixed 2s TTL). Request 1 adds full uncached tokens to C1 while C1 still reports zero cached blocks until prefill finishes. Subsequent requests for that prefix then spill across C2, C3, and the rest of the pool.
      4. The auto-injected saturation filter drops sticky endpoints after load_override. injectFilterIntoProfiles appends utilization-detector after prefix-cache-affinity-filter. While affinity holds on [S], utilization-detector fails open and keeps [S]. Once load_override returns [S, C1, C2], utilization-detector drops S above QueueDepthThreshold (5) or KVCacheUtilThreshold (0.80). TokenLoadScorer.Score then never sees S, even when S would finish faster than a cold prefill on C1.
      5. Endpoint churn has no spillover budget or dampener. After prefill endpoints fail, surviving endpoints absorb one-time no_match prefills for orphaned prefixes. Replacement endpoints simultaneously join the pool with InFlightLoad.Tokens == 0 and empty caches. Those empty endpoints force bestNonStickyTTFT to zero and pull load_override traffic from warm endpoints across the cluster.

      Suggested avenues to explore

      1. Request-cost and work-amplification gate (prefixcacheaffinity): Add UncachedRequestTokens to endpointTTFT so a cold endpoint pays for its full uncached prefill. Scale uncached tokens by 1 + alpha (alpha >= 0) to price cluster compute taken from later requests. In latencyPredictor mode, add only alpha * deltaUncachedTokens / PeakPrefillThroughput.
      2. Cold-target and pool-load guard (prefixcacheaffinity): Require low cold-endpoint backlog (bestNonStickyBacklogMs <= maxSpillTargetTTFTMs) and low KV cache usage before load_override. Also require spare aggregate pool capacity before load_override fires. When peers are busy, keep sticky so requests pay cached prefill cost instead of extra cluster load.
      3. Bounded consistent spillover (sticky + k via Rendezvous hash): On load_override, append at most maxSpillEndpoints (default 1) chosen deterministically from the request's prefix block hash. Spilled requests for one prefix then warm a single secondary endpoint and leave unrelated KV caches intact.
      4. Uncached-spillover token bucket (circuit breaker): Cap extra uncached tokens per second from load_override to a fraction of pool prefill throughput (10% to 15%). Charge uncached(selected) - uncached(bestSticky) in PreRequest only when the picker selects a non-sticky endpoint (as in #3927). When the bucket is empty, keep sticky and record a throttled decision outcome.
      5. Lifecycle-bound pending warmth (preciseprefixcache, approximateprefix, inflightload): Retain pending prefix block keys from PreRequest until StartOfStream plus a short event-delivery grace window. Roll back pending keys immediately on RequestAbandoned or error responses. Update approximateprefix synchronously in PreRequest instead of in a background goroutine. Discount prefix blocks already in flight on the same endpoint in InFlightLoadProducer so concurrent requests coalesce.
      6. Endpoint-churn dampener and cold-start ramp (EndpointNotificationSource): On EventDelete, pause load_override or tighten the token bucket briefly while orphaned prefixes re-home once. When EventAddOrUpdate adds a new endpoint, cap concurrent cold spillovers onto that endpoint until its cache warms.
      7. Saturation-filter ordering and P2P-aware override split: Keep sticky endpoints through utilization-detector after load_override so token-load-scorer can still pick S. With p2p-source-producer, apply separate override thresholds for confirmed P2P pulls (ReusablePrefixTokens > 0) and cold recomputes (ReusablePrefixTokens == 0).
      ๐Ÿ’ฌ Discussion Summary: ๐Ÿ’ฌ Ongoing discussion (17 comment(s) across @sohom-cs, @kaushikmitr, @ptimizeroracle) - Latest update from @ahg-g; no blocking debate.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Assigned to @cheng-hsiang-chiu (no linked open PR); latest update from @ahg-g: "Thanks everyone for the fast progress on #4042. We now have #3514, #3421, #4846, #4780, and #3465...".
    • 4. Issue [OPEN] coordinator: map HTTP /generate to sglang.api.v1 worker calls (llm-d/llm-d-router#4253 by @ahg-g) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐ŸŸก Medium Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator)
      ๐Ÿ“Œ Change Summary: Translate HTTP POST /generate requests into sglang.api.v1.SglangService/Generate worker calls in Coordinator (Coord-Tok-Tok, #3991, PR #3992).
      ๐Ÿ“„ View Full Issue Description

      What would you like to be added:

      Translate HTTP POST /generate requests into sglang.api.v1.SglangService/Generate worker calls in Coordinator (Coord-Tok-Tok, #3991, PR #3992). This is a low-priority follow-up to #3901, and it mirrors the vLLM translation in #4013:

      1. Extend pipeline.worker_protocol: grpc (#4013) to SGLang pipelines, with http as the default.
      2. With worker_protocol: grpc, build sglang.api.v1.GenerateRequest from the HTTP /generate JSON body (#3775). Follow the sglang.json.v1 field options in pkg/common/grpc/sglang/gen/jsonv1 for the JSON mapping.
      3. Run prefill and decode through the sglang.api.v1 worker steps of #3906.
      4. Translate GenerateStreamItem frames into the HTTP /generate JSON and SSE responses, and map gRPC status codes to HTTP status codes.
      5. Propagate client cancellation to the worker streams.
      6. Add unit and integration tests for unary and streaming requests.

      Why is this needed:

      Coordinator disaggregates native sglang.api.v1.SglangService/Generate requests (#3906). PR #3775 registers HTTP POST /generate with HTTP workers. Coordinator cannot serve HTTP /generate from a pool of sglang.api.v1 workers. PR #4013 adds the same translation for vLLM, from POST /inference/v1/generate to vllm.Inference. Issue #3901 listed this translation as a follow-up that depends on user demand.

      This translation also blocks SGLang Loopback mode (#4828) on sglang.api.v1 worker pools until sgl-project/sglang#45816 lands. Before sgl-project/sglang#45816, sgl-router sends HTTP POST /generate calls to the Coordinator callback listener.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Newly filed by @ahg-g with no comments or debate yet (awaiting triage/owner).
      โš–๏ธ Verdict: ๐Ÿ“‹ Open issue with needs-triage and no assignee/linked PR (by @ahg-g); assign owner or confirm scope.
    • 5. Issue [OPEN] [Bug :bug:]: SGLang precise-prefix-cache-routing guide disables KV-event replay (llm-d/llm-d#3103 by @vMaroon) ๐ŸŸก P1: Medium Priority ๐Ÿ› Bug Fix โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐ŸŸก Medium Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (KV-cache indexing, ZMQ events, & wire fidelity)
      ๐Ÿ“Œ Change Summary: The SGLang overrides for precise-prefix-cache-routing leave replaySocketPort unset, with a comment that SGLang has no replay buffer.
      ๐Ÿ“„ View Full Issue Description
      What happened?

      The SGLang overrides for precise-prefix-cache-routing leave replaySocketPort unset, with a comment that SGLang has no replay buffer. SGLang's ZMQ publisher has had one since at least v0.5.6 - replay_endpoint in --kv-events-config binds a ROUTER socket that serves the buffered events, and the router's replay client reads it as is. On 11-18 a fresh router pool attached through that socket on an SGLang nightly rebuilt the same index as the live stream.

      Without it a router restart or a subscriber reconnect leaves the pod's index empty until blocks are stored again, so the router misses whatever the pod already holds.

      Suggested change:

      • add "replay_endpoint":"tcp://*:<port>" to the SGLang --kv-events-config and expose the port
      • set podDiscoveryConfig.replaySocketPort to match and drop the comment

      Separately, the --page-size comment says it must match blockSizeTokens. That is true on router main today. With llm-d/llm-d-router#4466, a page size smaller than blockSizeTokens that divides it also works, including SGLang's default of 1, so the comment can be relaxed once that lands.

      Version

      llm-d main, guides/precise-prefix-cache-routing (SGLang modelserver patch and precise-prefix-cache-routing.sglang.values.yaml).

      Area

      Guides - precise prefix cache routing, SGLang.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Newly filed by @vMaroon with no comments or debate yet (awaiting triage/owner).
      โš–๏ธ Verdict: ๐Ÿ“‹ Unassigned open issue with no linked PR (by @vMaroon); assign owner or link implementation PR.
    • 6. Issue [OPEN] EPP behind the Coordinator: trust Coordinator-written fields without bodyFieldsSanitizationPolicy: trustCaller (llm-d/llm-d-router#4824 by @robertgshaw2-redhat) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator)
      ๐Ÿ“Œ Change Summary: A way for an EPP behind the Coordinator to keep the fields the Coordinator writes (kv_transfer_params, ec_transfer_params, forwarded prompt_token_ids) without trusting every caller that can reach it (part of #3979).
      ๐Ÿ“„ View Full Issue Description

      What would you like to be added:

      A way for an EPP behind the Coordinator to keep the fields the Coordinator writes (kv_transfer_params, ec_transfer_params, forwarded prompt_token_ids) without trusting every caller that can reach it. Today the only option is requestHandler.bodyFieldsSanitizationPolicy: trustCaller, which trusts the request body of anything that reaches the EPP's gateway listener.

      Why is this needed:

      Since #4583 (part of #3979), an EPP strips caller-supplied prompt token and KV transfer fields on text routes by default. That is right for the client's initial request, but the Coordinator's own prefill and decode calls also reach the EPP on the same text routes (use_openai_format, and decode always uses the client's path), carrying fields the Coordinator wrote. So every EPP behind a Coordinator has to choose one of two options:

      1. Default strip: P/D silently stops working. The prefill call loses do_remote_decode, the prefill worker returns no kv_transfer_params, and the decode worker recomputes the whole prompt rather than pulling KV over NIXL. forward_prompt_token_ids is also lost, so the workers render the prompt again. Requests still succeed. The only signal is llm_d_epp_body_fields_sanitized_total, which is easy to miss. We hit this when moving a P/D deployment (Coordinator + prefill EPP + decode EPP, NIXL) to an EPP built after #4583: decode workers reported 0 NIXL transfers and all prompt tokens as local_compute. trustCaller on both EPPs fixed it.
      2. trustCaller: the EPP trusts any request that reaches it without x-llm-d-unsanitized-body. The docs say to "use trustCaller only when clients cannot reach the EPP directly", but in a standard layout the Envoy listener in front of the EPPs (the one the Coordinator calls) is a plain in-cluster port. Any pod that can reach it can send its own kv_transfer_params or prompt_token_ids and they go to the worker. The trust is implicit: a request is trusted when the "untrusted" marker is absent.

      Trusting the decode EPP alone is not enough: the prefill call carries kv_transfer_params (do_remote_decode: true) too, so both EPPs need trustCaller.

      What we want: the client's initial request is always sanitized (at the Coordinator, which already does this by default), and the EPP trusts body fields only on calls that provably come from the Coordinator.

      Possible approaches:

      • A positive marker instead of a negative one. The Coordinator signs its calls (for example, a header carrying an HMAC over a body digest and a timestamp, keyed from a Secret mounted in both the Coordinator and the EPP). The EPP keeps the fields only when the signature checks out, strips them otherwise, and removes the header before forwarding. Envoy's client-facing listener drops the header, so a client cannot replay one. This works with any network layout.
      • Transport identity. mTLS between the Coordinator and the Envoy listener it calls. Envoy forwards the verified peer identity to ext_proc as metadata, and the EPP trusts only a configured identity. This is heavier, but it reuses existing mesh or cert setups.
      • Restrict the listener in the chart. When the Coordinator is enabled, ship a NetworkPolicy that limits the Envoy port the Coordinator calls to Coordinator pods, so the docs' precondition actually holds by default. This is the cheapest option. It needs a CNI that enforces NetworkPolicy and does not help when the EPP is shared.
      • Narrower trust. Even under trustCaller, trust only the fields the Coordinator's configured steps write (for example kv_transfer_params on a call with x-llm-d-epp-profile: prefill|decode), and keep stripping input_ids and render fingerprints.

      Separately, it would help if an EPP that sees x-llm-d-epp-profile (a Coordinator call) and strips kv_transfer_params logged a warning at startup or on first occurrence, because that combination always means P/D is broken.

      Related: #3979, #4583.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Newly filed by @robertgshaw2-redhat with no comments or debate yet (awaiting triage/owner).
      โš–๏ธ Verdict: ๐Ÿ“‹ Open issue with needs-triage and no assignee/linked PR (by @robertgshaw2-redhat); assign owner or confirm scope.
    • 7. Issue [OPEN] [Tracking] Tokenize once: SGLang Coord-Text-Tok (Loopback) (llm-d/llm-d-router#4839 by @ahg-g) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator)
      ๐Ÿ“Œ Change Summary: Tracks delivery of Coord-Text-Tok (text client, token-out worker) for SGLang in Loopback mode, using sgl-router as a pod-local frontend sidecar over loopback TCP (127.0.0.1) (fixes #4943).
      ๐Ÿ“„ View Full Issue Description

      What would you like to be added:

      Tracks delivery of Coord-Text-Tok (text client, token-out worker) for SGLang in Loopback mode, using sgl-router as a pod-local frontend sidecar over loopback TCP (127.0.0.1). Parent proposal: #3991, PR #3992 (docs/tokenize-once-at-ingress.md).

      Prerequisite: Token passthrough foundation in #4837 (#3979, #4824, #4842, sgl-project/sglang#38075 / sgl-project/sglang#45249). Items tagged (shared) also apply to vLLM (#4838).

      Already available today:

      • ☑ lmsysorg/sgl-router:nightly multi-arch distroless frontend image (docker/sgl-router.Dockerfile)
      • ☑ sgl-project/sglang#42314: /v1/responses in sgl-router (alongside Chat, Completions, and Messages over HTTP /generate)

      1. SGLang (upstream)
      Milestone 0: Basic text Loopback (MVP)
      • None. lmsysorg/sgl-router:nightly already lowers common text Chat, Completions, Messages, and Responses (tool_choice: auto/none, non-strict tools) and calls HTTP POST /generate on --worker-urls http://127.0.0.1:<port>.
      Milestone 1: Full text and agentic parity on gRPC
      • ☐ sgl-project/sglang#55024 (claimed by @GoyalIshaan, coordinates with RFC sgl-project/sglang#55055): call sglang.api.v1.SglangService/Generate with stream = true for HTTP clients so non-streaming requests emit first-token frames and remove the interim HTTP /generate bridge (#4253)
      • ☐ sgl-project/sglang#55024 (text lowering parity, sgl-project/sglang#55386, open, @0x412e42): add required and named tool_choice, strict: true tools, tool grammar, and remaining reasoning and tool-call parsers in sglang-processor
      • ☐ sgl-project/sglang#55023 (Anthropic Messages parity): accept thinking.display="updates" on /v1/messages in sgl-router (currently HTTP 400)
      Milestone 2: Multimodal images (Qwen-VL on P/D)
      • ☐ sgl-project/sglang#55024 (multimodal lowering): add metadata-only multimodal lowering in sglang-processor (content hashes, image_grid_thw, and placeholder spans without pixel tensors)
      • ☐ sgl-project/sglang#51316 (draft sgl-project/sglang#51560, optional P/D optimization): accept metadata-only MediaRef entries (or transfer grid metadata from prefill) on disaggregated decode so decode skips redundant media preprocessing
      Milestone 3: Full multimodal, EPD, and multimodal KV-cache routing
      • ☐ sgl-project/sglang#48705 (related tracking: sgl-project/sglang#55169 moves Rust image preprocessing to dynamo-multimodal): add Rust frontend multimodal parity (non-Qwen-VL image families, video/audio, --encoder-urls EPD) and accept mm_routing_labels on sglang.api.v1 (after merged sgl-project/sglang#45737)
      Milestone 4: Production readiness
      • ☐ sgl-project/sglang#55024 (strict lowering, sgl-project/sglang#55063, open, @bojiang-li): add a strict flag that rejects un-lowered requests without worker OpenAI fallback
      • ☐ sgl-project/sglang#55024 (request correlation): keep x-request-id and trace headers forwarded as gRPC metadata on lowered api.v1 calls, and carry the caller request ID on GenerateRequest.rid
      • ☐ sgl-project/sglang#51315 (sgl-project/sglang#52594): check x-render-fingerprint on sglang.api.v1 and export the worker digest info metric
      • ☐ sgl-project/sglang#55024 (skew propagation, claimed by @1eonyg): attach x-render-fingerprint metadata in sgl-router (computed via sgl-project/sglang#52594) and map RENDER_FINGERPRINT_MISMATCH to HTTP 409 Conflict instead of 400
      • ☐ sgl-project/sglang#55055 (RFC, @sagearc, sgl-project/sglang#52967): separate endpoint selection from forwarding and make multi-endpoint routing optional at build time so the loopback sidecar omits routing state

      2. llm-d
      Milestone 0: Basic text Loopback (MVP)
      • ☐ #4828: forward text routes to sgl-router, serve its HTTP and gRPC worker contract on 127.0.0.1, and reject un-lowered text routes on the callback listener
      • ☐ #4253 (interim for gRPC worker pools before sgl-project/sglang#55024): map HTTP POST /generate callbacks to sglang.api.v1 behind worker_protocol: grpc
      Milestone 1: Full text and agentic parity on gRPC
      • Covered by #4828 (gRPC sglang.api.v1 callback listener once sgl-project/sglang#55024 lands) and #4830 (/v1/messages ingress registration).
      Milestone 2: Multimodal images (Qwen-VL on P/D)
      • ☐ #3988 (shared): inline media URLs as data URIs before forwarding to the sidecar, pass media bytes to prefill, pass metadata-only MediaRef to decode, and route via EPP mm_hashes metadata
      Milestone 3: Full multimodal, EPD, and multimodal KV-cache routing
      • ☐ #3983: decode SGLang mm_routing_labels in sglang_adapter and extract mm_hashes in sglanghttp-parser
      Milestone 4: Production readiness
      • ☐ #4829 (shared): join callback calls to client requests by correlation ID, forward client headers to EPP, keep one trace, cancel worker streams directly, and reject unmatched callback calls
      • ☐ #4830 (shared): run pre-forward ingress checks (#4583 sanitization, stateful /v1/responses rejection, x-request-id validation, internal and client x-render-fingerprint removal, token-route bypass, configurable loopback endpoint, /v1/messages)
      • ☐ #3984 (#4816, shared): check gRPC prompt-token parity, propagate x-render-fingerprint, and screen endpoints in EPP during rollouts
      • ☐ #4824 (shared, also in #4837): authenticate Coordinator-to-EPP calls so EPP keeps Coordinator-written transfer and token fields without blanket trustCaller, and warn if EPP strips kv_transfer_params on a Coordinator call
      • ☐ #3985 (shared): add Coordinator Helm templates (router.coordinator.*), native sidecar over loopback TCP, /readyz gate, crash cleanup, and render_inflight admission control (coordinate with Coordinator resilience fixes #4943 / #4948 and #4945 / #4950)
      • ☐ #3986 (shared): pass a shared Helm model block (including --incremental-streaming-output), CPU/memory sizing, and ContainerResource HPA (coordinate with #4876 / #4899 unified P/D router config)
      • ☐ #3990 (shared): add CI render-parity corpus, sidecar IPC benchmarks, and gRPC P/D e2e tests

      Low-priority follow-ups
      SGLang (upstream)
      • ☐ sgl-project/sglang#37202: n > 1 parallel sampling on sglang-server (also in #4837)
      llm-d
      • ☐ #4252 (shared): serve /tokenize, /detokenize, and /v1/messages/count_tokens from the local sidecar
      • ☐ #4319 (shared): serve /v1/models, /health, and other HTTP paths on gRPC-only pools

      Why is this needed:

      Tracks SGLang Coord-Text-Tok (Loopback) delivery separately from vLLM and passthrough, grouped by upstream SGLang versus llm-d across delivery milestones from basic text MVP through full multimodal and production readiness.

      sgl-router sidecar runtime audit (sgl-project/sglang main)
      1. Image and process footprint
      • Image: lmsysorg/sgl-router:nightly (multi-arch linux/amd64 and linux/arm64, distroless gcr.io/distroless/cc-debian12:nonroot, < 100 MB budget, passing nightly CI).
      • Process: Runs one stripped Rust binary (/usr/local/bin/sgl-router as uid 65532) configured purely by CLI flags (docker/sgl-router.Dockerfile:114-124). No Python or helper processes run inside the container.
      2. Intended loopback invocation

      Start sgl-router bound strictly to loopback, pointing at Coordinator's callback listener, with Coordinator's /server_info omitting KV-event publisher config:

      • --host 127.0.0.1 --port <frontend-port> --model-id <model> --worker-urls http://127.0.0.1:<callback-port> --policy round_robin --disable-circuit-breaker (plus aligned timeout flags).
      3. What does NOT start (dormant or disabled in this mode)
      • No Kubernetes watchers: DiscoveryBackend::StaticUrls skips pod discovery, and start_peer_watch returns immediately (sgl-router/src/main.rs:341-343).
      • No ZMQ KV-event or load subscribers: In KvEventIndex::add_worker (sgl-router/src/state/kv_events/index.rs:522-543), when /server_info advertises no KV-event publisher, it logs that the worker is not publishing and returns without creating any ZMQ SUB task.
      • No peer KV-tree bootstrap: bootstrap_coordinator only spawns when --kv-peer-selector is set (index.rs:454-460).
      • No external KV indexer client: Only built for --policy cache_aware with indexer (main.rs:79,206-223).
      • No active HTTP /health polling loop: sgl-router/src/health/mod.rs only wires the passive circuit breaker.
      • No hot-path KV-cache routing: Under --policy round_robin and no --dp-aware, dp_rank_prefix_provider, prefix_index, and radix_tree_prefix_provider are all None (main.rs:396-418), and pending-prefix and media-affinity tracking stay off (main.rs:419-444). Selection runs plain RoundRobinPolicy over the single backend (sgl-router/src/policies/factory.rs:50-58) with zero radix-tree lookups, zero block hashing, and zero cache scoring.
      4. What DOES start (and its steady-state cost)
      • Tokenizer loader (main.rs:75-76): Loads local tokenizer.json or pulls from HuggingFace. Required for prompt lowering.
      • Axum HTTP server (sgl-router/src/server/app.rs:217-260): Serves Chat, Completions, Messages, Responses, /healthz, /readyz, /metrics, plus /workers admin CRUD routes (app.rs:231-241).
      • WorkerManager (sgl-router/src/workers/manager.rs:266-365): Calls /server_info once at startup (plus one extra fetch_event_config check in KvEventIndex::add_worker because event_config is None, index.rs:525-533). Runs a 30 s reconcile tick (RECONCILE_INTERVAL, manager.rs:31) that skips already-resolved workers, costing one 1-entry map scan every 30 s.
      • Idle KvEventIndex pump_loop (index.rs:401-430,875): Always spawns alongside an empty HashTree, but receives zero events and only wakes on an idle timer over empty maps (negligible CPU and RAM).
      • RouterInflightLoadRegistry + janitor (main.rs:320-332): Tracks in-flight requests and runs a sweep every 60 s by default (stale_request_timeout_secs / 10).
      5. Real risks to reliability and debuggability (must address)
      1. Default circuit breaker trips on the single backend (sgl-router/src/health/circuit_breaker.rs:32-38, manager.rs:57): After 3 consecutive 5xx or timeout failures, the breaker opens for 30 s (503 BreakerOpen) and drops all traffic on that Coordinator pod.
      • Mitigation: Always pass --disable-circuit-breaker (circuit_breaker.rs:80-86).
      1. 30 s boot race with native sidecar startup order (manager.rs:31,213-227, main.rs:160): Kubernetes starts native sidecars before the main Coordinator container. If sgl-router calls /server_info before Coordinator binds its callback listener, the worker stays unresolved (empty model_ids) until the next 30 s reconcile tick, even though sgl-router already reports /readyz ready (main.rs:160).
      • Mitigation: Account for this in Coordinator readiness and startup (#4828, #3985), or request faster initial retry or readiness gating upstream (sgl-project/sglang#55024).
      1. Second hidden timeout layer (sgl-router/src/config/types.rs:59-87): Defaults are request_timeout_secs = 300, stream_idle_timeout_secs = 180, and stale_request_timeout_secs = 600 (the janitor force-cancels long reasoning or streaming requests with 504 stale_request_expired).
      • Mitigation: Raise or align all three timeout flags above Envoy and Coordinator timeouts so timeouts occur in one place.
      1. Extra control surface and double logging (app.rs:150-175,231-241):
      • Keep --host 127.0.0.1 so /workers CRUD endpoints (POST/PUT/DELETE /workers) are unreachable outside the pod.
      • Expect sgl-router access logs (http_request) alongside Coordinator and Envoy logs unless log level is tuned.
      Bottom line
      • Performance impact: Negligible. Hot-path routing overhead is tiny, and KV-event and cache-aware routing is completely inactive.
      • Debuggability and reliability: Safe to deploy once we pass --disable-circuit-breaker, raise or align the three timeout flags, bind strictly to 127.0.0.1, and handle the 30 s startup /server_info race.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Newly filed by @ahg-g with no comments or debate yet (awaiting triage/owner).
      โš–๏ธ Verdict: ๐Ÿ“‹ Open issue with needs-triage and no assignee/linked PR (by @ahg-g); assign owner or confirm scope.
    • 8. Issue [OPEN] [Tracking] Tokenize once: vLLM Coord-Text-Tok (Loopback) (llm-d/llm-d-router#4838 by @ahg-g) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator)
      ๐Ÿ“Œ Change Summary: Tracks delivery of Coord-Text-Tok (text client, token-out worker) for vLLM in Loopback mode, using vllm-rs (GrpcLlm, --remote-generation-url) as a pod-local frontend sidecar over loopback TCP (127.0.0.1) (fixes #4943).
      ๐Ÿ“„ View Full Issue Description

      What would you like to be added:

      Tracks delivery of Coord-Text-Tok (text client, token-out worker) for vLLM in Loopback mode, using vllm-rs (GrpcLlm, --remote-generation-url) as a pod-local frontend sidecar over loopback TCP (127.0.0.1). Parent proposal: #3991, PR #3992 (docs/tokenize-once-at-ingress.md).

      Prerequisite: Token passthrough foundation in #4837 (#3979, #4824, #4924, vllm-project/vllm#67430 / vllm-project/vllm#67604). Items tagged (shared) also apply to SGLang (#4839).

      Already available today:

      • ☑ vllm-project/vllm#64729 (merged on main as vllm-project/vllm@c62590e002f2, PR closed manually): Rust server over caller-built Llm
      • ☑ vllm-project/vllm#70224: GrpcLlm remote vllm.Inference client (--remote-generation-url, loopback TCP http://127.0.0.1:<port> works today)
      • ☑ vllm-project/vllm#64998 (vllm-project/vllm#47753): Rust Anthropic Messages API (/v1/messages, count_tokens, SSE envelopes), alongside Chat, Completions, and stateless Responses
      • ☑ vllm-project/vllm#71653: preserve explicit zero presence_penalty and frequency_penalty over gRPC (optional float in inference.proto and remote-llm/src/convert.rs)
      • ☑ vllm-project/vllm#71527: report num_cached_tokens and num_cache_creation_tokens on PromptInfo (plus initial GrpcLlm integration tests)

      1. vLLM (upstream)
      Milestone 0: Basic text Loopback (MVP)
      • ☐ vllm-project/vllm#51264 (vllm-project/vllm#68707): build and publish standalone frontend-only vllm-rs image (GrpcLlm over http://127.0.0.1:<port> already works on main for basic text without structured outputs, LoRA, or media)
      Milestone 1: Full text and agentic parity (GrpcLlm)
      • ☐ vllm-project/vllm#71356 (vllm-project/vllm#71624, open, @hickeyma): forward sampling_params.structured_outputs (with reasoning gate) and sampling_params.stream_interval in GrpcLlm
      • ☑ vllm-project/vllm#71356 (vllm-project/vllm#71631, merged, @hickeyma): forward and decode output logprobs / logprob_token_ids and prompt_logprobs in GrpcLlm
      • ☐ vllm-project/vllm#66395: attribute Responses output logprobs (top_logprobs, include) in the Rust frontend
      • ☐ vllm-project/vllm#71356 (vllm-project/vllm#71654, open, @MilkFeng): forward lora_request (lora_name) without requiring a local engine-core client
      Milestone 2: Multimodal and EPD (metadata-only media without tensors)
      • ☐ vllm-project/vllm#66093 (vllm-project/vllm#66094, draft vllm-project/vllm#68713): accept metadata-only MediaItem entries and mixed marker_offset on vllm.Inference (after merged vllm-project/vllm#66928)
      • ☐ vllm-project/vllm#71356 (multimodal in GrpcLlm): forward mm_features as metadata-only MediaItem entries or raw_bytes with mm_hashes and placeholder spans without pixel tensors
      • ☐ vllm-project/vllm#71929 (pairs with vllm-project/vllm#66929): accept --allowed-media-domains, --media-io-kwargs, and --mm-processor-cache-gb on vllm-rs startup for egress-hardened multimodal deployments
      Milestone 3: Production readiness
      • ☐ vllm-project/vllm#71356 (request ID and headers, draft vllm-project/vllm#70824): carry caller request ID on GenerateRequest.request_id (instead of overwriting with a fresh UUID) and forward selected request headers
      • ☐ vllm-project/vllm#68940 and vllm-project/vllm#67653 (claimed by @shimib): compute Rust render_fingerprint, check x-render-fingerprint and export the worker digest info metric on vllm.Inference, and map RENDER_FINGERPRINT_MISMATCH to HTTP 409 Conflict instead of 400 in GrpcLlm (vllm-project/vllm#71356)
      • ☐ vllm-project/vllm#71599 (open, @chenzl25, vllm-project/vllm#71356): carry stop_strings and skip_special_tokens from GrpcLlm to workers so EPP receives a normal FinishInfo frame instead of outcome="cancelled" on stop-string workloads
      • ☐ vllm-project/vllm#71630 (draft vllm-project/vllm#71756, vllm-project/vllm#71356): carry frontend-computed prompt block hashes on GenerateRequest for exact KV-cache routing without re-hashing
      • ☐ vllm-project/vllm#71356 (test coverage, volunteered by @hickeyma): expand GrpcLlm integration tests across Chat, Responses, Messages, cancellation, and error mapping

      2. llm-d
      Milestone 0: Basic text Loopback (MVP)
      • ☐ #3617 (PR #4347): forward text routes to the vLLM frontend sidecar over loopback TCP (127.0.0.1 default) and serve the vllm.Inference and grpc.health.v1 callback listener (GrpcLlm watches vllm.Inference serving status)
      Milestone 1: Full text and agentic parity
      • Covered by #3617 (PR #4347) and #4830 (/v1/messages ingress registration).
      Milestone 2: Multimodal and EPD
      • ☐ #3988 (shared): inline media URLs as data URIs before forwarding to the sidecar, pass media bytes to encode/prefill, handle mixed marker_offset, and route via EPP mm_hashes metadata
      Milestone 3: Production readiness
      • ☐ #4829 (shared): join callback calls to client requests by correlation ID, forward client headers to EPP, keep one trace, cancel worker streams directly, and reject unmatched callback calls
      • ☐ #4830 (shared): run pre-forward ingress checks (#4583 sanitization, stateful /v1/responses rejection, x-request-id validation, internal and client x-render-fingerprint removal, token-route bypass, configurable loopback endpoint, /v1/messages)
      • ☐ #3984 (#4816, shared): check gRPC prompt-token parity, propagate x-render-fingerprint, and screen endpoints in EPP during rollouts
      • ☐ #4824 (shared, also in #4837): authenticate Coordinator-to-EPP calls so EPP keeps Coordinator-written transfer and token fields without blanket trustCaller, and warn if EPP strips kv_transfer_params on a Coordinator call
      • ☐ #3985 (shared): add Coordinator Helm templates (router.coordinator.*), native sidecar over loopback TCP, /readyz gate, crash cleanup, and render_inflight admission control (coordinate with Coordinator resilience fixes #4943 / #4948 and #4945 / #4950)
      • ☐ #3986 (shared): pass a shared Helm model block across workers and sidecars, CPU/memory sizing, and ContainerResource HPA (coordinate with #4876 / #4899 unified P/D router config)
      • ☐ #3990 (shared): add CI render-parity corpus, sidecar IPC benchmarks, and gRPC P/D e2e tests

      Low-priority follow-ups
      vLLM (upstream)
      • ☐ vllm-project/vllm#71356 (optional): unix:// UDS support for --remote-generation-url (http://127.0.0.1:<port> works today)
      • ☐ vllm-project/vllm#56364: per-caller --grpc-services (also in #4837)
      • ☐ vllm-project/vllm#67065 (vllm-project/vllm#67077): NixlConnector KV retention for n > 1 (also in #4837)
      • ☐ vllm-project/vllm#65841 (vllm-project/vllm#66078): n > 1 on vllm.Inference, plus GrpcLlm wiring in vllm-project/vllm#71356 (also in #4837)
      • ☐ vllm-project/vllm#67552: repetition_detection (worker merged in vllm-project/vllm#71663) and extra_args on vllm.Inference, plus GrpcLlm wiring in vllm-project/vllm#71356 (also in #4837)
      • ☐ vllm-project/vllm#66426 (vllm-project/vllm#66150): mm_processor_kwargs and media_io_kwargs on vllm.Inference (also in #4837)
      llm-d
      • ☐ #4252 (shared): serve /tokenize, /detokenize, and /v1/messages/count_tokens from the local sidecar
      • ☐ #4319 (shared): serve /v1/models, /health, and other HTTP paths on gRPC-only pools
      • ☐ #4269: num_sequences > 1 on vllm.Inference

      Why is this needed:

      Tracks vLLM Coord-Text-Tok (Loopback) delivery separately from SGLang and passthrough, grouped by upstream vLLM versus llm-d across delivery milestones from basic text MVP through multimodal and production readiness.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Newly filed by @ahg-g with no comments or debate yet (awaiting triage/owner).
      โš–๏ธ Verdict: ๐Ÿ“‹ Open issue with needs-triage and no assignee/linked PR (by @ahg-g); assign owner or confirm scope.
    • 9. Issue [OPEN] [Tracking] Tokenize once: token passthrough (Coord-Tok-Tok and EPP-Tok-Tok) (llm-d/llm-d-router#4837 by @ahg-g) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity)
      ๐Ÿ“Œ Change Summary: Tracks delivery of token passthrough modes (Coord-Tok-Tok and EPP-Tok-Tok) across vLLM and SGLang. Parent proposal: #3991, PR #3992 (docs/tokenize-once-at-ingress.md).
      ๐Ÿ“„ View Full Issue Description

      What would you like to be added:

      Tracks delivery of token passthrough modes (Coord-Tok-Tok and EPP-Tok-Tok) across vLLM and SGLang. Parent proposal: #3991, PR #3992 (docs/tokenize-once-at-ingress.md).

      Critical path
      llm-d
      • ☑ #3982: decouple precise-prefix-cache-producer from backend: vllm
      • ☑ #3993: vLLM vllm.Inference parsing, disaggregation, and UNAVAILABLE re-run (#4008, #4010, #4011, #4013, #4492)
      • ☑ #3901: SGLang sglang.api.v1 parsing, Helm wiring, disaggregation, and retryable error re-run (#3904, #3906, #3907, #3908, #4582)
      • ☑ #3757: vLLM data-parallel ranks behind one port (#3818, #3819, #3820, #3821, #3822)
      • ☑ #2598 (#4533): SGLang cross-rank disagg_prefill_dp_rank
      • ☐ #3979 (#4804, draft #4810, after merged #4583): allow only generate and health methods on client gRPC routes, document worker gRPC NetworkPolicy, and drop client transfer fields on EPP token gRPC routes
      • ☐ #4824 (follow-up to #4583 / #3979): let EPP behind Coordinator trust Coordinator-written transfer and token fields without blanket trustCaller, and warn when EPP strips kv_transfer_params on a call with x-llm-d-epp-profile
      • ☐ #4842 (#4843, open, SGLang sanitization): strip bootstrap_host, bootstrap_port, and bootstrap_room in external-text sanitization and on sidecar decode-only forwards
      • ☐ #4756 (#4757, open, vLLM EPP-Tok-Tok sidecar): strip caller do_remote_prefill / kv_transfer_params on decoder-only vllm.Inference gRPC requests so NIXL decoders do not exit
      • ☐ #4924 (#4927, open, vLLM Coordinator gRPC): capture forward_response_headers when vLLM gRPC conditional-decode defers
      • ☐ #4794 (#4826, open), #4827 (#4841, open), and #4692 (#4734, open) (EPP-Tok-Tok sidecar gRPC): hold streaming decode output until prefill completes, cancel hung prefill promptly, and replace rather than append x-request-id on gRPC P/D paths
      • ☐ #3984 (#4816, parity item): compare ingress token count with worker prompt token counts on Coordinator gRPC routes
      • ☐ #3983 (multimodal, SGLang): decode mm_routing_labels in sglang_adapter and extract mm_hashes in sglanghttp-parser
      vLLM
      • ☐ vllm-project/vllm#67430 (vllm-project/vllm#67604): retryable UNAVAILABLE on KV and EC load failures in vllm.Inference
      • ☐ vllm-project/vllm#71929 (pairs with vllm-project/vllm#66929, multimodal security): accept --allowed-media-domains, --media-io-kwargs, and --mm-processor-cache-gb on vllm-rs startup
      SGLang
      • ☐ sgl-project/sglang#38075 (sgl-project/sglang#45249): grpc.health.v1 on sglang-server
      • ☐ sgl-project/sglang#48705 (multimodal): Rust frontend multimodal parity and mm_routing_labels on sglang.api.v1 (after merged sgl-project/sglang#45737)
      Low-priority follow-ups
      llm-d
      • ☐ #4831 (pairs with sgl-project/sglang#54655): remove Coordinator's 127.0.0.1 bootstrap_host workaround on SGLang gRPC prefill once SGLang supports unset bootstrap_host
      • ☐ #4363 (#4606): streaming worker call and frame merge for unary token clients
      • ☐ #4253: HTTP POST /generate mapping to sglang.api.v1 (worker_protocol: grpc, also blocks SGLang Loopback HTTP callbacks on gRPC workers in #4839)
      • ☐ #4319: serve /v1/models, /health, and other HTTP paths on gRPC-only pools
      • ☐ #4269: num_sequences > 1 on vllm.Inference (EPP, Coordinator, and P/D sidecar)
      • ☐ #4088: /v1/completions batch token arrays ([][]int) in Coordinator
      • ☐ #3644: multi-frame response chunks in Python vllmgrpc-parser (deprecation tracked in #4800)
      vLLM
      • ☐ vllm-project/vllm#56364: per-caller --grpc-services so worker data ports omit vllm.Control
      • ☐ vllm-project/vllm#67065 (vllm-project/vllm#67077): keep NixlConnector KV blocks until every n > 1 decode sequence reads them
      • ☐ vllm-project/vllm#65841 (vllm-project/vllm#66078): n > 1 on vllm.Inference
      • ☐ vllm-project/vllm#67552: repetition_detection (merged in vllm-project/vllm#71663) and extra_args on vllm.Inference.GenerateRequest
      • ☐ vllm-project/vllm#66426 (vllm-project/vllm#66150): mm_processor_kwargs and media_io_kwargs on vllm.Inference
      SGLang
      • ☐ sgl-project/sglang#54655 (pairs with #4831): allow prefill requests on sglang.api.v1 with bootstrap_room and unset bootstrap_host
      • ☐ sgl-project/sglang#48580 (sgl-project/sglang#49297): per-request skip_detokenize on sglang.api.v1
      • ☐ sgl-project/sglang#37202: n > 1 parallel sampling on sglang-server

      Why is this needed:

      Pre-tokenized clients need zero tokenizers in llm-d or on workers, and both Coord-Text-Tok trackers (#4838, #4839) build on this gRPC Generate foundation.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Newly filed by @ahg-g with no comments or debate yet (awaiting triage/owner).
      โš–๏ธ Verdict: ๐Ÿ“‹ Open issue with needs-triage and no assignee/linked PR (by @ahg-g); assign owner or confirm scope.

    3.3 Big Feature / Architectural Changes

    Major community feature proposals or architectural changes.
    ๐ŸŽฏ Section Priority Filter:
    • 1. PR [OPEN] Proposal: decoder-aware TTFT prediction for disaggregated serving ๐Ÿ“„ Diff (llm-d/llm-d#3163 by @Ang-coder-crypto) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 3d (>3d Priority Bump) โณ AI REVIEW IN PROGRESS [No Review Yet]: Deep review queued ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Admission, flow control, & saturation); sitting 3d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+196/-0 lines across 1 file(s)] Related: llm-d/llm-d-router#4790. Propose an opt-in decoder-aware TTFT feature contract for streaming P/D serving.
      ๐Ÿ“„ View Full PR Description

      Summary

      Related: llm-d/llm-d-router#4790.

      Propose an opt-in decoder-aware TTFT feature contract for streaming P/D
      serving. The initial scope is selected-pair capture and offline/shadow
      evaluation, without a scheduling or admission policy change.

      The proposal includes same-sample feature ablation on an Ascend/Mooncake
      deployment and reports both point-estimate error reductions and p90
      coverage limitations. It describes compatibility, rollout, validation and
      coordination with llm-d/llm-d-router#4218 and llm-d/llm-d-router#4735.

      This is a design proposal only; no implementation is included. The
      implementation should be split after the design is reviewed.

      Validation

      • ☑ Reproduced the reported mean-objective feature-ablation metrics

      using a CPU-only evaluation of the original fixed held-out cohorts.

      • ☑ Evaluated p90 pinball loss and empirical coverage on the same cohorts.
      • Checked the proposal against the project proposal template and ran

      git diff --check.

      No implementation or deployment is changed by this PR; implementation-level
      compatibility, integration and performance testing is planned for follow-up.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: FYI / monitoring (not queued for automatic background AI review).
    • 2. Issue [OPEN] feat(preciseprefixcache): stage-aware P/D release, Envoy failover attribution, and observability for speculativeLifecycleRelease (llm-d/llm-d-router#4865 by @dbtmpl) ๐Ÿ”ด P0: High Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Tier-1 API/security contract change (Security / CVE / ingress header boundary)
      ๐Ÿ“Œ Change Summary: While working on #4780 (speculativeLifecycleRelease), I identified two failure-attribution edge cases in speculativeLifecycleReleaser.ResponseBody plus two observability gaps: Verified with unit probes in...
      ๐Ÿ“„ View Full Issue Description
      Summary

      While working on #4780 (speculativeLifecycleRelease), I identified two failure-attribution edge cases in speculativeLifecycleReleaser.ResponseBody plus two observability gaps:

      1. P/D decode failures erroneously evict valid prefill hints: When seedDecodeWhenDisaggregated is false (default), PreRequest seeds speculative hints only on the prefill pod. If prefill succeeds (x-llm-d-failed-stage is decode or none-prefilled, per pkg/common/routing/common.go:111-121) and decode later fails with HTTP 5xx or aborts pre-first-token, ResponseBody releases all hints for the requestโ€”evicting the prefill pod's valid warm blocks. (When seedDecodeWhenDisaggregated is true, only the decode pod's hints should be released.)
      2. Envoy failover leaves phantom hints on the failed primary pod: When a picker selects multiple candidates (maxNumOfEndpoints > 1), PreRequest seeds TargetEndpoints[0] (pod-A). If Envoy fails over to pod-B (metadata.ServedEndpoint(response.ReqMetadata) reports pod-B, as checked in endpointhealth/filter.go:436-439) and pod-B returns HTTP 200, ResponseBody keeps pod-A's phantom hints alive for the full speculativeTTL. (Direct sibling of #4857 for approximateprefix.)
      3. Observability gaps: DumpState() (producer.go) omits speculativeLifecycleRelease and the tracked request count, and there is no Prometheus counter tracking speculative releases by reason (abandoned, failed_response, pre_first_token_abort, served_elsewhere).
      Reproduction & Prototyped Fix Results

      Verified with unit probes in pkg/epp/framework/plugins/requesthandling/dataproducer/preciseprefixcache (8 seeded blocks):

      Probe / CheckBeforeAfter (Prototyped Fix)
      Mode A: P/D x-llm-d-failed-stage: decode + HTTP 500 (seedDecode: false)Prefill 8 -> 0 (evicted)Prefill 8 -> 8 (preserved)
      Mode A: P/D x-llm-d-failed-stage: none-prefilled + HTTP 500 (seedDecode: false)Prefill 8 -> 0 (evicted)Prefill 8 -> 8 (preserved)
      Mode A: P/D x-llm-d-failed-stage: decode + pre-first-token disconnectPrefill 8 -> 0 (evicted)Prefill 8 -> 8 (preserved)
      Mode A: P/D x-llm-d-failed-stage: none-prefilled + pre-first-token disconnectPrefill 8 -> 0 (evicted)Prefill 8 -> 8 (preserved)
      Mode A (control): P/D x-llm-d-failed-stage: prefill + HTTP 500Prefill 8 -> 0Prefill 8 -> 0
      Mode A (seedDecode: true): P/D decode + HTTP 500Prefill 8 -> 0, Decode 8 -> 0Prefill 8 -> 8, Decode 8 -> 0
      Mode A (non-P/D control): untrusted x-llm-d-failed-stage: decode + HTTP 500Pod 8 -> 0Pod 8 -> 0 (header ignored)
      Mode B: Envoy failover [pod-A, pod-B] -> ServedEndpoint=pod-B, HTTP 200pod-A 8 -> 8 (phantom for TTL)pod-A 8 -> 0 (released immediately)
      Mode B (control): Primary pod-A served (ServedEndpoint=pod-A), HTTP 200pod-A 8 -> 8pod-A 8 -> 8 (TTL preserved)
      DumpState() (2 tracked reqs, 12 blocks)Omits speculativeLifecycleRelease & tracked countReports speculativeLifecycleRelease: true & speculativeTrackedRequests: 2
      Prometheus release counterNonellm_d_epp_prefix_speculative_releases_total{plugin_name,plugin_type,reason} (no double-counting)
      Proposed Fix
      • Add ReleasePod(requestID, pod string) bool, Release(requestID string) bool, and TrackedRequests() int on kvcache.SpeculativeIndex.
      • In preciseprefixcache:
      • Check metadata.ServedEndpoint(response.ReqMetadata) (IPv6-safe net.SplitHostPort matching endpointhealth/filter.go:491-520) on non-disaggregated requests to call ReleasePod on the unserved primary pod.
      • Gate P/D failures on routing.FailedStageHeader (only when the request is disaggregated so untrusted headers are ignored): preserve prefill hints on StageDecode/StageNonePrefilled and release only decode hints when seedDecode is enabled.
      • Surface speculativeLifecycleRelease and speculativeTrackedRequests in DumpState(), and emit llm_d_epp_prefix_speculative_releases_total via prefixmetrics.

      I already have a clean prototype verified with go test -race across ./pkg/kvcache/..., ./pkg/epp/framework/plugins/requesthandling/dataproducer/prefixmetrics/..., ./pkg/epp/framework/plugins/requesthandling/dataproducer/preciseprefixcache/..., and ./pkg/epp/metrics/..., and am happy to open a follow-up PR once #4780 lands.

      Related: #4780, #4042, #4857, #4593

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Assigned to @dbtmpl with no comments or debate yet.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Assigned to @dbtmpl (no linked open PR); latest update from @dbtmpl: "/assign".
    • 3. Issue [OPEN] [Feature]: scrape the routing sidecar's /metrics on GKE Managed Prometheus (llm-d/llm-d#3010 by @sudoalok) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator)
      ๐Ÿ“Œ Change Summary: Add a monitoring.googleapis.com/v1 PodMonitoring for the decode pods on port sc-metrics, same as the coordinator one #2879 added in guides/coord-disaggregation/coordinator/monitoring/gmp-podmonitoring.yaml, and wire it into...
      ๐Ÿ“„ View Full Issue Description
      Feature Area

      Observability / Monitoring

      Problem Statement

      #2990 turns on the routing sidecar's /metrics (sc-metrics, 9095) and adds it to the decode PodMonitors, but GMP doesn't read prometheus-operator PodMonitors, so on GKE llm_d_disagg_sidecar_* still isn't collected.

      Proposed Solution

      add a monitoring.googleapis.com/v1 PodMonitoring for the decode pods on port sc-metrics, same as the coordinator one #2879 added in guides/coord-disaggregation/coordinator/monitoring/gmp-podmonitoring.yaml, and wire it into the GKE P/D paths.

      Alternatives Considered

      _No response_

      Willingness to Contribute

      Yes, I can submit a PR

      Additional Context

      follow-up from the #2990 review. related: #2989.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Assigned to @sudoalok with no comments or debate yet.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Assigned to @sudoalok (no linked open PR); latest update from @sudoalok: "/assign".
    • 4. Issue [OPEN] [Feature] Send real KV block hashes in kv.fetch hints for KVCR (llm-d/llm-d-router#4329 by @kaushikmitr) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Feature implementation / request
      ๐Ÿ“Œ Change Summary: p2p-source-producer with transport: kvcr (#4303) should send the source pod's real KV block hashes in the kv.fetch hint. Today it sends one placeholder hash (Part of #4194).
      ๐Ÿ“„ View Full Issue Description

      What would you like to be added:

      p2p-source-producer with transport: kvcr (#4303) should send the source pod's real
      KV block hashes in the kv.fetch hint. Today it sends one placeholder hash.

      Part of #4194. Depends on vllm-project/vllm#68217.

      Background

      A kv.fetch hint names a source pod and a list of block_hashes. What KVCR does with
      the list depends on opportunistic_query:

      • On (the default in vLLM's KVCR tier): KVCR ignores the hashes and treats every block

      of the request as fetchable from the source. The placeholder works here.

      • Off: KVCR only fetches blocks whose hash is in the list. The placeholder matches

      nothing, so no blocks are pulled.

      kv.prefetch and kv.move (the "Later" row in #4194) have no request on the
      destination, so they always need the real hashes.

      Two things stop llm-d from sending real hashes today:

      1. The vllm.Inference gRPC API carries the hint payload as a protobuf Struct. A

      Struct number is a double, so a 64-bit hash cannot be sent exactly. vLLM rejects
      any hash above 2^53 - 1. vllm-project/vllm#68217 adds
      repeated uint64 block_hashes = 5 to KVHintAction to fix this.

      1. The router does not have the hashes for a request. KVCR compares against the hash

      vLLM publishes in its KV events (the engine key). The KV index stores
      engine key -> request key, but not request key -> engine key, and
      PrefixCacheMatchInfo only carries block counts.

      Proposed change
      • ☐ After vllm-project/vllm#68217 merges, bump VLLM_REF and regenerate vllmpb

      (make generate-proto-vllm).

      • ☐ Keep the engine keys for each request key and pod in the KV index, so a lookup

      can return the engine keys of the matched prefix on a given pod. This adds
      memory per index entry. Speculative entries have no engine keys and are skipped.

      • ☐ Have the precise prefix producer expose the matched engine keys per endpoint, and

      have p2p-source-producer read them for the chosen source.

      • ☐ Write the hashes to KVHintAction.block_hashes and drop the placeholder. If the

      source has no engine keys for the prefix, write no hint and record an outcome
      for it.

      Open questions
      • KVCR checks hashes with vLLM's offload block hash (encode_to_router in

      vllm/v1/kv_offload/tiering/kvcr/manager.py). Do the hashes in the cpu tier KV
      events from KVCR match that value, including when the offload block size differs
      from the GPU block size? This needs a check on a real setup before the index change.

      • Should the engine key list be capped (for example, only the blocks the source holds

      in the cpu tier), to bound hint size on long prompts?

      Test plan
      • Unit tests: the index returns the engine keys for a pod's matched prefix, with 1:1,

      many:1 and 1:many engine to request block ratios. The producer writes them into
      KVHintAction.block_hashes, including values above 2^53.

      • End to end on 2 vLLM pods with KVCR and opportunistic_query off: a request routed

      away from the pod that holds the prefix pulls the blocks from that pod. The
      placeholder hint pulls nothing on the same setup.

      Why is this needed:

      Without real hashes, KVCR peer fetch only works with opportunistic_query on, and
      kv.prefetch and kv.move from #4194 cannot be built.

      ๐Ÿ’ฌ Discussion Summary: ๐Ÿ’ฌ Ongoing discussion (3 comment(s) across @kaushikmitr, @cheng-hsiang-chiu) - Latest update from @cheng-hsiang-chiu; no blocking debate.
      โš–๏ธ Verdict: ๐Ÿ“‹ Open issue with needs-triage and no assignee/linked PR (by @kaushikmitr); assign owner or confirm scope.
    • 5. Issue [OPEN] Endpoint picker has no notion of per-endpoint capacity: heterogeneous GPUs get an even split on bursts and the slowest endpoints are overloaded (llm-d/llm-d-router#4491 by @mfournioux) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Session affinity, SLO latency, & plugin DAG)
      ๐Ÿ“Œ Change Summary: With a pool of heterogeneous GPUs (same model, same vLLM settings, different throughput), the endpoint picker (EPP) distributes a synchronized burst almost evenly across endpoints.
      ๐Ÿ“„ View Full Issue Description

      Summary

      With a pool of heterogeneous GPUs (same model, same vLLM settings, different throughput), the endpoint picker (EPP) distributes a synchronized burst almost evenly across endpoints. The slowest endpoints cannot drain their share in time and some requests exceed our latency target.

      The built-in scorers only compare endpoints with each other, and none of them knows how much load a given endpoint can actually sustain. The vLLM metrics also lag behind a burst. In addition, the EPP ran out of memory because it buffered the bodies of all concurrent requests.

      Environment

      • llm-d-router-endpoint-picker:v0.9.0, run as an ext-proc behind agentgateway v1.5.0 (InferencePool + HTTPRoute)
      • Model served by vLLM, non-streaming requests with large multipart bodies
      • Several endpoints (one pod each) on different GPU generations, with very different throughput
      • Load: k6, thousands of virtual users, each sending one request at a fixed pace, with a synchronized burst at start
      • Scheduling profile:
      • passthrough-parser (the request body is not parsed)
      • queue-scorer, kv-cache-utilization-scorer (weight 2 each)
      • active-request-scorer (weight 1)
      • metrics read from /metrics/ of each pod

      Observed behaviour

      1. Even split on the first burst, then slow convergence
      • Almost all requests above the latency target happen in the first minutes of the run. In steady state there are none.
      • The first wave arrives in under a second, when queues are at 0 and the metrics are stale. The split is roughly equal across endpoints.
      • The slowest GPUs cannot drain their share in time.
      • After convergence, the split follows the real capacity of the endpoints: the faster GPUs receive clearly more traffic than the slower ones, and latencies are balanced.

      For comparison, static weighted backendRefs sized from measured capacity gave no request over the target on consecutive runs, including the first burst.

      2. No per-endpoint capacity

      Every scorer and detector we looked at in v0.9.0 either compares endpoints with each other or applies the same limit to all of them:

      • The queue and load scorers normalize each value against the other endpoints (for example (value - min) / (max - min)). Two endpoints with the same queue length get the same score, even if one drains its queue twice as fast as the other.
      • The saturation detectors use one threshold for all endpoints (for example "saturated above N queued requests"). They cannot express that one endpoint saturates at a low value and another at a much higher one.

      For a heterogeneous pool, the same queue length therefore means very different drain times depending on the endpoint.

      3. EPP memory with large bodies

      The gateway sends the full request body to the EPP, which keeps it in memory, even though passthrough-parser does not need it. Memory therefore grows with the number of concurrent requests multiplied by the body size.

      With a conservative memory limit, the EPP was OOMKilled and went into CrashLoopBackOff during a burst. The gateway then returned 500 ext_proc failed: failed to send request. failureMode: FailOpen did not apply with agentgateway 1.5.0.

      After raising the memory limit significantly, the EPP was stable.

      4. Minor

      The EPP logs token-producer: unsupported request body type for multipart requests, even with passthrough-parser. This is harmless but noisy.

      Expected behaviour

      For a pool of heterogeneous endpoints, the EPP should be able to:

      • route proportionally to each endpoint's capacity from the very first request, including a synchronized burst, without waiting for the metrics to converge;
      • not hold the request bodies in memory when it does not use them (for example with passthrough-parser).

      Proposal / questions

      1. Would you accept a scorer (or picker) that divides the in-flight count of each endpoint by a per-endpoint capacity (inflight / capacity), with the capacity coming from a pod label or annotation, combined with weighted-random-picker? Or is there an existing way to give endpoints a static weight or capacity that I missed?
      2. Can the EPP skip buffering the request body when passthrough-parser is used, or is there a documented way to bound its memory?

      Workaround

      Static weighted backendRefs per GPU type, sized from measured capacity.

      ๐Ÿ’ฌ Discussion Summary: ๐Ÿ’ฌ Ongoing discussion (5 comment(s) across @lkhun9311, @manasvin24) - Latest update from @lkhun9311; no blocking debate.
      โš–๏ธ Verdict: ๐Ÿ“‹ Open issue with needs-triage and no assignee/linked PR (by @mfournioux); assign owner or confirm scope.
    • 6. Issue [OPEN] [Bug] Prefix-cache hit rate significantly decreases when using Fastokens 0.3.6 with vLLM 0.31 (llm-d/llm-d#3196 by @eladamittai) ๐ŸŸก P1: Medium Priority ๐Ÿ› Bug Fix โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (KV-cache indexing, ZMQ events, & wire fidelity)
      ๐Ÿ“Œ Change Summary: _No response_ We observed a significant regression in prefix-cache performance after enabling Fastokens 0.3.6 in our vLLM deployments integrated with llm-d.
      ๐Ÿ“„ View Full Issue Description
      Contact Details

      _No response_

      What happened?

      Description

      We observed a significant regression in prefix-cache performance after enabling Fastokens 0.3.6 in our vLLM deployments integrated with llm-d.

      With the default Hugging Face tokenizer backend, prefix-cache hit rate is consistently around 97โ€“98%. After switching to Fastokens, the hit rate drops to as low as 80%.

      We also observe a significant increase in llm-d prefix-cache affinity filter decisions resulting in no match.

      The issue persists over several hours of operation and is resolved after rolling back to the default Hugging Face tokenizer.

      Environment

      Software

      • llm-d: 1.0
      • vLLM: 0.31
      • Fastokens: 0.3.6
      • Model: GLM 5.3 NVFP4
      • Baseline tokenizer: Default Hugging Face tokenizer

      Infrastructure

      Two inference deployments are running simultaneously:

      Deployment| Hardware| Nodes
      Deployment 1| NVIDIA B300| 4
      Deployment 2| NVIDIA B200| 3

      Both deployments:

      • Use the same model.
      • Run vLLM 0.31.
      • Have Fastokens 0.3.6 enabled.
      • Perform GPU inference.

      Vllm b200 configuration

      - '--served-model-name=GLM-5.3-NVFP4'
      - '--host=0.0.0.0'
      - '--model=/mnt/model/glm53-nvfp4'
      - '--port=8000'
      - '--tensor-parallel-size=8'
      - '--pipeline-parallel-size=1'
      - '--data-parallel-size=1'
      - '--load-format=runai_streamer'
      - '--trust-remote-code'
      - '--enable-expert-parallel'
      - '--attention-backend=FLASHINFER_MLA_SPARSE'
      - '--kv-cache-dtype=fp8_e4m3'
      - '--block-size=64'
      - '--max-model-len=400000'
      - '--max-num-seqs=256'
      - '--max-num-batched-tokens=8192'
      - '--gpu-memory-utilization=0.9'
      - '--enable-auto-tool-choice'
      - '--reasoning-parser=glm45'
      - '--tool-call-parser=glm47'
      - '--enable-prefix-caching'
      - '--disable-uvicorn-access-log'
      - '--enable-prompt-tokens-details'
      - '--speculative-config={"method":"mtp","num_speculative_tokens":5}'
      - '--model-loader-extra-config={"concurrency":32,"memory_limit":10737418240,"distributed":true}'
      - '--enable-scale-out'
      - '--kv-transfer-config={"kv_connector":"OffloadingConnector","kv_role":"kv_both","kv_connector_extra_config":{"spec_name":"TieringOffloadingSpec","cpu_bytes_to_use":1099511627776,"block_size":256,"eviction_policy":"lru","self_describing_kv_events":true,"canonical_layout":true,"secondary_tiers":[{"type":"fs","root_dir":"/mnt/nvme-cache/kv/model-cache/models","enable_kv_events":true,"locality":"LOCAL","n_read_threads":16,"n_write_threads":16}]}}'
      - '--kv-events-config={"enable_kv_cache_events":true,"publisher":"zmq","endpoint":"tcp://*:5557","replay_endpoint":"tcp://*:5558","topic":"kv@glm53-nvfp4-b200@GLM-5.3-NVFP4","buffer_steps":2000000,"hwm":500000}'
       

      Vllm b300 configuration is the same but with b300 in the topic for the zmq.

      llm-d configuration

      apiVersion: llm-d.ai/v1alpha1
      kind: EndpointPickerConfig
      dataLayer:
        sources:
        - extractors:
          - pluginRef: precise-producer
          pluginRef: endpoint-notifier
      featureGates:
      - flowControl
      flowControl:
        defaultPriorityBand:
          fairnessPolicyRef: program-aware-fairness-policy
          maxBytes: 1Gi
          maxRequests: 1k
          orderingPolicyRef: fcfs-ordering-policy
        defaultRequestTTL: 180s
        enableEviction: false
        maxBytes: "0"
        maxRequests: 1k
        priorityBands:
        - fairnessPolicyRef: program-aware-fairness-policy
          maxBytes: 1Gi
          maxRequests: "349"
          orderingPolicyRef: fcfs-ordering-policy
          priority: 100
        - fairnessPolicyRef: program-aware-fairness-policy
          maxBytes: 256Mi
          maxRequests: "87"
          orderingPolicyRef: fcfs-ordering-policy
          priority: -10
      saturationDetector:
        pluginRef: cc-sla-detector
      plugins:
      - name: program-aware-fairness-policy
        parameters:
          lasHalfLifeSeconds: 3600
          strategy: las
        type: program-aware-fairness
      - type: fcfs-ordering-policy
      - name: cc-sla-detector
        parameters:
          headroom: 0.25
          maxConcurrency: 20
        type: concurrency-detector
      - name: prefix-affinity
        parameters:
          affinityThreshold: 0.5
          maxTTFTPenaltyMs: 0
          prefixMatchInfoProducerName: precise-producer
        type: prefix-cache-affinity-filter
      - name: endpoint-notifier
        type: endpoint-notification-source
      - name: precise-producer
        parameters:
          indexerConfig:
            kvBlockIndexConfig:
              enableMetrics: true
              inMemoryConfig:
                podCacheSize: 128
            kvCacheBackendConfigs:
            - name: gpu
              weight: 1
            - name: cpu
              weight: 0.8
            - name: storage
              weight: 0.3
            kvEventsConfig:
              discoverPods: true
              engineType: vllm
              podDiscoveryConfig:
                podNamespace: production
                replaySocketPort: 5558
                socketPort: 5557
              topicFilter: kv@
            speculativeIndexing: true
            tokenProcessorConfig:
              blockSizeTokens: 512
        type: precise-prefix-cache-producer
      - name: token-producer
        parameters:
          modelName: GLM-5.3-NVFP4-CC
          vllm:
            url: http://glm53-nvfp4-cc-pool-render:8000
        type: token-producer
      - type: queue-scorer
      - type: kv-cache-utilization-scorer
      - name: prefix-cache-scorer
        parameters:
          prefixMatchInfoProducerName: precise-producer
        type: prefix-cache-scorer
      - parameters:
          insecureSkipVerify: true
          path: /metrics
          scheme: http
        type: metrics-data-source
      - type: core-metrics-extractor
      - type: anthropic-parser
      - type: openai-parser
      - type: passthrough-parser
      requestHandler:
        parsers:
        - pluginRef: anthropic-parser
        - pluginRef: openai-parser
        - pluginRef: passthrough-parser
      schedulingProfiles:
      - name: default
        plugins:
        - pluginRef: cc-sla-detector
        - pluginRef: prefix-affinity
        - pluginRef: queue-scorer
          weight: 2
        - pluginRef: kv-cache-utilization-scorer
          weight: 1
        - pluginRef: prefix-cache-scorer
          weight: 3

      Command:

      - '--pool-name'
      - llmd-router-glm53-nvfp4
      - '--pool-namespace'
      - 885-llms
      - '--pool-group'
      - inference.networking.k8s.io
      - '--zap-encoder'
      - json
      - '--config-file'
      - /config/default-plugins.yaml
      - '--grpc-health-port'
      - '9003'
      - '--tracing=false'

      The "glm-pool-render" Service routes requests to both inference deployments.

      Request flow

      1. Applications send requests through a proxy.
      2. The proxy converts requests to OpenAI Chat Completions format.
      3. Requests reach llm-d.
      4. The llm-d token producer obtains token IDs through the vLLM render Service.
      5. llm-d uses the token IDs for prefix-cache affinity decisions.
      6. Requests are routed to the inference deployments.

      Observed behavior

      We compared the default Hugging Face tokenizer against Fastokens 0.3.6.

      Metric| Hugging Face| Fastokens 0.3.6
      "llm_d_epp_prefix_cache_affinity_filter_decisions_total" (no-match rate)| ~0.1 op/s| ~0.8 op/s
      vLLM prefix-cache hit rate| 97โ€“98%| As low as 80%

      The affinity filter reports approximately 8 times more no-match decisions with Fastokens.

      The reduced cache hit rate persists during several hours of operation; it is not simply an initial cache warm-up effect.

      What we have verified

      • Fastokens 0.3.6 is enabled in both inference deployments.
      • Both deployments use the same exact files.
      • Both deployments were restarted simultaneously when switching tokenizer backends.
      • Requests reach llm-d in OpenAI Chat Completions format.
      • The render Service routes to both inference deployments.
      • Fastokens was allowed to run for several hours without improvement.
      • Rolling back to the default Hugging Face tokenizer restored the previous prefix-cache performance.

      Expected behavior

      Enabling Fastokens should preserve tokenization semantics and prefix-cache behavior compared with the default Hugging Face tokenizer.

      We would expect comparable:

      • llm-d prefix-cache affinity matching rates.
      • vLLM prefix-cache hit rates.

      The purpose of enabling Fastokens is to improve tokenization performance without degrading prefix-cache efficiency.

      Actual behavior

      Enabling Fastokens 0.3.6 results in:

      • Significantly more llm-d prefix-cache affinity no-match decisions.
      • A reduction in vLLM prefix-cache hit rate from approximately 98% to as low as 80%.

      Questions

      1. Are there known compatibility issues between Fastokens 0.3.6 and llm-d's token-producer / prefix-cache affinity implementation?
      2. Are there any known differences in token-ID generation or rendering behavior between the Hugging Face and Fastokens backends that could affect prefix-cache matching?
      3. Are there additional configuration requirements when using Fastokens with llm-d's vLLM render integration?
      4. Could the interaction between the token producer, render Service, and KV-cache event indexing cause this behavior?

      We would appreciate guidance on how to debug this and identify whether the regression originates in tokenization, rendering, or llm-d prefix-cache affinity handling.

      Version

      V.1.0.0

      Area

      KV Cache / Prefix Caching

      Relevant log output
      ๐Ÿ’ฌ Discussion Summary: ๐Ÿ’ฌ Ongoing discussion (1 comment(s) across @timurista) - Latest update from @timurista; no blocking debate.
      โš–๏ธ Verdict: ๐Ÿ“‹ Unassigned open issue with no linked PR (by @eladamittai); assign owner or link implementation PR.
    • 7. Issue [OPEN] [Feature]: document that the EPP metrics port is unauthenticated and serves pprof (llm-d/llm-d#3206 by @aminehd) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Feature implementation / request
      ๐Ÿ“Œ Change Summary: The EPP's metrics port is unauthenticated in file-discovery mode and also serves pprof, and neither fact is documented.
      ๐Ÿ“„ View Full Issue Description
      Feature Area

      Observability / Monitoring

      Problem Statement

      The EPP's metrics port is unauthenticated in file-discovery mode and also serves
      pprof, and neither fact is documented.

      runWithFileDiscovery (cmd/epp/runner/runner.go) registers the metrics server
      as:

      g.Add("metrics", func(ctx context.Context) error {
          return serveMetrics(ctx, opts.MetricsPort, opts.EnablePprof)
      })

      serveMetrics builds a plain http.ServeMux with no authentication and no TLS.
      The authenticating handler, newMetricsServerOptions with
      filters.WithAuthenticationAndAuthorization, is only wired up on the Kubernetes
      path, so a file-discovery deployment has no equivalent.

      EnablePprof defaults to true (pkg/epp/server/options.go), so the same port
      also serves /debug/pprof/, including /debug/pprof/heap, which dumps process
      memory.

      pprof does not appear anywhere under docs/.

      Proposed Solution

      In docs/operations/observability/metrics.md:

      • state that the metrics port is served over plain HTTP with no authentication

      outside the Kubernetes path;

      • state that --enable-pprof defaults to true and mounts /debug/pprof/ on the

      metrics port, and recommend --enable-pprof=false outside development;

      • point the no-Kubernetes guide at that section rather than repeating it.
      Alternatives Considered

      Documenting it only in guides/no-kubernetes-deployment. The behavior belongs
      with the metrics documentation, since the pprof default is not specific to
      file discovery.

      Willingness to Contribute

      Yes, I can submit a PR

      Additional Context

      Mapping issue for item 3 of #3074, which notes the unauthenticated port and the
      pprof default.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Newly filed by @aminehd with no comments or debate yet (awaiting triage/owner).
      โš–๏ธ Verdict: ๐Ÿ“‹ Unassigned open issue with no linked PR (by @aminehd); assign owner or link implementation PR.
    • 8. Issue [OPEN] [Feature]: SIGS.md: fill in the Charter and Key Areas for SIG Agentic Inference (llm-d/llm-d#3214 by @aminehd) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Admission, flow control, & saturation)
      ๐Ÿ“Œ Change Summary: SIGS.md gives every SIG a charter and a key-areas list. SIG Agentic Inference has TODO for both: Of the SIGs listed, it is the only one with neither filled in.
      ๐Ÿ“„ View Full Issue Description
      Feature Area

      Documentation / Community

      Problem Statement

      SIGS.md gives every SIG a charter and a key-areas list. SIG Agentic Inference
      has TODO for both:

      **Charter**: TODO
      
      **Key Areas**:
      
      - TODO

      Of the SIGs listed, it is the only one with neither filled in. Someone arriving
      from the SIG table, the #sig-agentic-inference Slack channel, or the
      area/agentic label finds no statement of what the SIG covers or where its work
      lives, and has to reconstruct it from meeting recordings.

      The information exists โ€” the North Star design document linked from the SIG
      entry, the area/agentic label description in .github/area_taxonomy.md
      ("Stateful OpenAI Responses API and multi-turn priority fairness"), the
      guides/agent-substrate and guides/thunder-agent guides, and the
      agentidentity, sessionstate, thunderagent and flowcontrol packages in
      llm-d-router โ€” but it is not stated in the one place readers are pointed to.

      Proposed Solution

      Fill in the Charter and Key Areas for SIG Agentic Inference in SIGS.md,
      matching the shape the other SIG entries use.

      The charter wording should come from the SIG leads. I am happy to draft both
      from the North Star document and the meeting recordings and open the PR for
      review, so the leads only have to correct rather than compose.

      Alternatives Considered

      Leaving the entry as TODO and directing readers to the Slack channel. That
      relies on someone being available to answer, and leaves the area/agentic label
      description as the only written scope statement, in a file about labels rather
      than about the SIG.

      Willingness to Contribute

      Yes, I can submit a PR

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Newly filed by @aminehd with no comments or debate yet (awaiting triage/owner).
      โš–๏ธ Verdict: ๐Ÿ“‹ Unassigned open issue with no linked PR (by @aminehd); assign owner or link implementation PR.
    • 9. Issue [OPEN] Coordinator: render step should retry once and return 503 when no tokenizer is reachable (llm-d/llm-d-router#4944 by @roytman) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity)
      ๐Ÿ“Œ Change Summary: Part of #4851 (scenarios 8 and 9). Killing one tokenizer pod fails in-flight renders with 502 internal error, most of them after the full render timeout, with no retry even though another tokenizer pod is healthy.
      ๐Ÿ“„ View Full Issue Description

      Part of #4851 (scenarios 8 and 9).
      Killing one tokenizer pod fails in-flight renders with 502 internal error, most of them after the full render timeout, with no retry even though another tokenizer pod is healthy. With the tokenizer pool at 0, every request gets an opaque 502. Proposal: retry a render once after a transport error, timeout or 5xx (never after a 4xx), and answer 503 with a reason and the request id when the render service can't be reached at all.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Assigned to @roytman with no comments or debate yet.
      โš–๏ธ Verdict: โณ Assigned to @roytman (no linked open PR yet); awaiting implementation PR.
    • 10. Issue [OPEN] Coordinator: streams to a dead peer hang for ~15 minutes (llm-d/llm-d-router#4943 by @roytman) ๐ŸŸก P1: Medium Priority ๐Ÿ› Bug Fix โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (P/D disaggregation, sidecar, & coordinator)
      ๐Ÿ“Œ Change Summary: Part of #4851 (scenarios 6 and 7).
      ๐Ÿ“„ View Full Issue Description

      Part of #4851 (scenarios 6 and 7).
      When the Envoy in front of the coordinator, or the gateway it calls, dies without closing its TCP connections, the coordinator keeps writing to the dead peer until the kernel's retransmission timeout ends it, about 15 minutes later. TCP keepalive doesn't help because the connection isn't idle while unacknowledged data is in flight, and the server deliberately sets no write deadline. Proposal: set TCP_USER_TIMEOUT (30s) on connections the coordinator accepts and on the connections it dials to the gateway and the render service, on Linux.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Assigned to @roytman with no comments or debate yet.
      โš–๏ธ Verdict: โณ Assigned to @roytman (no linked open PR yet); awaiting implementation PR.
    • 11. Issue [OPEN] Coordinator: decode-leg 5xx with an empty body reaches the client without a body or request id (llm-d/llm-d-router#4945 by @roytman) ๐ŸŸก P1: Medium Priority ๐Ÿ› Bug Fix โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (P/D disaggregation, sidecar, & coordinator)
      ๐Ÿ“Œ Change Summary: Part of #4851 (scenario 5). When the decode leg's ext_proc call fails, the gateway answers 500 with an empty body, and the coordinator passes that to the client unchanged.
      ๐Ÿ“„ View Full Issue Description

      Part of #4851 (scenario 5).
      When the decode leg's ext_proc call fails, the gateway answers 500 with an empty body, and the coordinator passes that to the client unchanged. The same failure on the prefill leg already reaches the client as 502 with a JSON error carrying the request id. Proposal: give empty-body decode-leg 5xx responses the prefill leg's error format (OpenAI or Anthropic envelope, with request id). Also include the request id in the 400 for a malformed JSON body.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Assigned to @roytman with no comments or debate yet.
      โš–๏ธ Verdict: โณ Assigned to @roytman (no linked open PR yet); awaiting implementation PR.
    • 12. Issue [OPEN] # docs: add a tutorial for writing a custom scorer plugin (llm-d/llm-d-router#4951 by @mfournioux) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Session affinity, SLO latency, & plugin DAG)
      ๐Ÿ“Œ Change Summary: A tutorial docs/create_new_scorer.md, modeled on docs/create_new_filter.md, that walks through writing and wiring a scheduling scorer.
      ๐Ÿ“„ View Full Issue Description

      What would you like to be added:

      A tutorial docs/create_new_scorer.md, modeled on docs/create_new_filter.md, that walks through writing and wiring a scheduling scorer.

      The filter tutorial covers the plugin factory, plugin.Register with plugin.StabilityAlpha in runner.go, and the EndpointPickerConfig YAML. It does not cover what is specific to scorers:

      • the scheduling.Scorer interface and Category (Affinity, Distribution, Balance);
      • the score range: scores outside [0,1] are clamped, a score of 0 does not exclude an endpoint (only filters do), and ties are broken by the picker;
      • profile weights, and how weighted scores are summed;
      • reading endpoint metrics: the metrics-data-source and core-metrics-extractor plugins are required for fields such as the waiting queue size, and Consumes() declares the dependency;
      • testing a scorer in isolation;
      • building a custom EPP image and enabling an alpha plugin with --allow-experimental-plugins.

      The tutorial would reference an existing scorer (for example queuedepth) as the worked example, as the filter tutorial does with bylabel. It would not add a new scorer.

      Why is this needed:

      There is no entry point for someone who wants to write a scorer. Per-plugin READMEs describe existing scorers, and the filter tutorial stops at filters. Writing the first scorer requires reading the scheduling framework code to find the score range, the category semantics and the metrics wiring.

      I followed this path for a scorer and would be glad to contribute the tutorial. Related: #917 (plugin README template) and #888.

      Question: should this live in docs/ or on llm-d.ai, given the audience discussion in #917?

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Newly filed by @mfournioux with no comments or debate yet (awaiting triage/owner).
      โš–๏ธ Verdict: ๐Ÿ“‹ Open issue with needs-triage and no assignee/linked PR (by @mfournioux); assign owner or confirm scope.
    • 13. Issue [OPEN] [Feature]: Document how to observe endpoint scorer scores (llm-d/llm-d#3220 by @mfournioux) ๐ŸŸก P1: Medium Priority โœจ Feature Request โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Session affinity, SLO latency, & plugin DAG)
      ๐Ÿ“Œ Change Summary: Operators need a way to inspect the scores assigned to candidate endpoints and understand how they relate to request routing. Add a documentation page showing how to: missing scores, and picker behavior.
      ๐Ÿ“„ View Full Issue Description
      Feature Area

      Optimized baseline

      Problem Statement

      Operators need a way to inspect the scores assigned to candidate endpoints
      and understand how they relate to request routing.

      Proposed Solution

      Add a documentation page showing how to:

      • Send paced inference requests.
      • Inspect EPP Calculated score logs.
      • Summarize scores by endpoint and by request.
      • Interpret the results, including the effects of filters, multiple scorers,

      missing scores, and picker behavior.

      Use generic examples and explain that an observed request distribution alone
      does not establish that a scorer caused it.

      Alternatives Considered
      • llm-d/llm-d#3219 introduces a custom scorer tutorial and briefly mentions

      score logs.

      • llm-d/llm-d-router#4060 discusses endpoint identities in score logs.
      • llm-d/llm-d-router#3229 proposes additional scheduling observability.
      Willingness to Contribute

      Yes, I can submit a PR

      Additional Context

      _No response_

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Newly filed by @mfournioux with no comments or debate yet (awaiting triage/owner).
      โš–๏ธ Verdict: ๐Ÿ“‹ Unassigned open issue with no linked PR (by @mfournioux); assign owner or link implementation PR.
    • 14. Issue [OPEN] predicted-latency: TPOT divides by response chunks instead of output tokens (llm-d/llm-d-router#4970 by @timurista) ๐ŸŸก P1: Medium Priority ๐Ÿ› Bug Fix โณ AI review in progress ๐Ÿ”ต DEEP REVIEW ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (Session affinity, SLO latency, & plugin DAG)
      ๐Ÿ“Œ Change Summary: The predicted-latency plugin computes average TPOT in ResponseBody (pkg/epp/framework/plugins/requesthandling/dataproducer/predictedlatency/requestcontrol_hooks.go, around line 180) as...
      ๐Ÿ“„ View Full Issue Description

      What happened:
      The predicted-latency plugin computes average TPOT in ResponseBody (pkg/epp/framework/plugins/requesthandling/dataproducer/predictedlatency/requestcontrol_hooks.go, around line 180) as (lastTokenTimestamp - requestReceivedTimestamp - ttft) / (generatedTokenCount - 1). generatedTokenCount goes up once per ResponseBody call (processTokenForLatencyPrediction, line 325), so it counts streamed body chunks, not generated tokens. When a chunk carries several tokens (speculative decoding, SGLang --stream-interval, or SSE events merged into one data frame), the TPOT is too high by about the tokens-per-chunk factor.

      That value feeds the plugin's TPOT and TPOT-SLO metrics and the ActualTPOT training sample sent to the latency predictor, so the predictor learns TPOT values that are too high. The core EPP TPOT histogram (metrics.RecordRequestTPOT) divides by Usage.CompletionTokens - 1, so the two TPOT numbers disagree for the same request.

      What you expected to happen:
      When the final chunk reports usage, TPOT should be decode time divided by completion_tokens - 1, the same as the core EPP metric. The chunk count should only be a fallback when the stream reports no usage.

      How to reproduce it (as minimally and precisely as possible):
      I added this test in pkg/epp/framework/plugins/requesthandling/dataproducer/predictedlatency/. It streams a first token and two more chunks, then sends a natural end of stream with Usage.CompletionTokens = 9:

      func TestPredictedLatency_TPOTDividesByChunksNotTokens(t *testing.T) {
      	router := createTestRouter()
      	router.config.StreamingMode = true
      	predictor := new(mockPredictor)
      	router.latencypredictor = predictor
      	endpoint := createTestEndpoint("tpot-pod", 1, 1, 1)
      	request := createTestInferenceRequest("tpot-request", 100, 50)
      	state := newPredictedLatencyContext(request)
      	router.setPredictedLatencyContextForRequest(request, state)
      	require.NoError(t, router.PreRequest(context.Background(), request, createTestSchedulingResult(endpoint.GetMetadata())))
      
      	state.requestReceivedTimestamp = time.Now().Add(-time.Second)
      	t0 := state.requestReceivedTimestamp
      	processFirstTokenForLatencyPrediction(context.Background(), predictor, true, router.config.EndpointRoleLabel, state, t0.Add(100*time.Millisecond))
      	processTokenForLatencyPrediction(context.Background(), state, t0.Add(180*time.Millisecond))
      	processTokenForLatencyPrediction(context.Background(), state, t0.Add(260*time.Millisecond))
      	predictor.capturedTrainingEntries = nil
      
      	const completionTokens = 9
      	router.ResponseBody(context.Background(), request, &fwkrh.Response{
      		EndOfStream: true, TerminationCause: fwkrh.TerminationCauseNatural, StreamedEvents: 3,
      		Usage: fwkrequest.Usage{PromptTokens: 100, CompletionTokens: completionTokens},
      	}, endpoint.GetMetadata())
      
      	decodeMs := float64(state.lastTokenTimestamp.Sub(state.requestReceivedTimestamp).Milliseconds()) - state.ttft
      	require.Len(t, predictor.capturedTrainingEntries, 1)
      	assert.InDelta(t, decodeMs/float64(completionTokens-1), predictor.capturedTrainingEntries[0].ActualTPOT, 1.0)
      }

      Result on main:

      avgTPOT recorded: 300.00 ms, decode time / (completion_tokens-1): 112.50 ms
      Error: Max difference between 112.5 and 300 allowed is 1, but difference was -187.5
      --- FAIL: TestPredictedLatency_TPOTDividesByChunksNotTokens

      Anything else we need to know?:
      A possible fix: at a natural end of stream with response.Usage.CompletionTokens > 1, divide by CompletionTokens - 1, and keep generatedTokenCount - 1 as the fallback when no usage is present. #2430 mentions this chunk counter in passing. #3298 and #3299 fixed a different overcount (synthetic completions).

      Environment:

      • llm-d-router version: main @ 65f42411d65b29e768009a309156c5f4498ef0f0
      • Go 1.27.4, unit test only, no cluster
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - Assigned to @vito-lin-dev with no comments or debate yet.
      โš–๏ธ Verdict: ๐Ÿ’ฌ Assigned to @vito-lin-dev (no linked open PR); latest update from @vito-lin-dev: "/assign".
    • 15. PR [OPEN] docs(configuration): align flowControl fields with the code and api type ๐Ÿ“„ Diff (llm-d/llm-d#3208 by @vito-lin-dev) ๐ŸŸข P2: Low Priority ๐Ÿ”ง Chore / Docs โณ AI review in progress โŒ DEEP REVIEW [No Review Yet]: PR Workflows Failed ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Docs, chore, test, or dependency maintenance
      ๐Ÿ“Œ Change Summary: [+18/-3 lines across 2 file(s)] I find the docs is not that clear for the first time user since I don't know how to do when I turn on flow control feature gate especially the defaultDelayTTS so i'd like to trace the code in llm-d-router.
      ๐Ÿ“„ View Full PR Description

      Summary

      I find the docs is not that clear for the first time user since I don't know how to do when I turn on flow control feature gate especially the defaultDelayTTS so i'd like to trace the code in llm-d-router. And I find there are more thing I can contribute than I originally thought.

      This PR aligns the Flow Control section of docs/architecture/router/configuration.md and docs/api-reference/endpointpickerconfig.md with the API types:

      • defaultRequestTTL was documented as defaulting to "0s". The code defaults it to 60s; an explicit "0s" disables the queue-wait bound.
      • Add noEndpointRequestTTL and the band-level defaultRequestTTL.
      • Add the band fields maxBytesPerFlow and maxRequestsPerFlow. Unlike maxBytes and maxRequests, 0 disables them.
      • Add defaultNegativePriorityBand, usageLimitPolicyPluginRef and bandSelectionPolicyPluginRef to the configuration guide. The API reference already lists them.
      • Add flowControl.crossReplica.

      One commit per item, so any of them can be dropped on request.

      I can follow up the CrossReplicaConfig section of the API reference describes the dataLayer. Other sections of the configuration guide (featureGates, requestHandler, dataLayer, metrics) also have undocumented fields.

      Validation

      Docs only; AI is used to hint me how to trace the code and write the files below. I was checked llm-d-router at 2188d9f:

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: โŒ Deep Review Verdict: Hold approval until PR workflows pass (3/11 workflow(s) did not pass at 487e1e9: Check Signed Commits (startup_failure), CI-PR-Test (startup_failure), PR Area Labeler (startup_failure).).
    • 16. PR [OPEN] docs(router): add a tutorial for writing a custom scorer plugin ๐Ÿ“„ Diff (llm-d/llm-d#3219 by @mfournioux) ๐ŸŸข P2: Low Priority ๐Ÿ”ง Chore / Docs โณ AI review in progress โŒ DEEP REVIEW [No Review Yet]: PR Workflows Failed ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Docs, chore, test, or dependency maintenance
      ๐Ÿ“Œ Change Summary: [+205/-0 lines across 2 file(s)] Adds docs/architecture/router/custom-scorer.md, a tutorial for writing a custom scorer plugin for the EPP.
      ๐Ÿ“„ View Full PR Description

      Summary

      Adds docs/architecture/router/custom-scorer.md, a tutorial for writing a custom scorer plugin for the EPP. It uses the built-in queue-scorer as the worked example and covers the Scorer interface, score range and categories, factory and data dependencies, plugin registration and stability levels, EndpointPickerConfig wiring, building a custom EPP image, Helm values, and reading Calculated score debug logs. The page links to the existing scheduling, configuration and data layer pages instead of repeating them. The page is registered in docs/menu-config.json.

      Related: #<issue>

      Validation

      Docs-only change; no guide or cluster was run.

      • Code references, registration, stability gating, score clamping and log fields were checked against llm-d-router main.
      • markdownlint passes on the new page; menu-config.json parses as valid JSON.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      โš–๏ธ Verdict: โŒ Deep Review Verdict: Hold approval until PR workflows pass (1/11 workflow(s) did not pass at ab4ab50: Check Signed Commits (failure).).

    3.4 Need Author Response

    PRs already reviewed by you or another reviewer that are waiting for the author to respond, plus items where you replied last.
    ๐ŸŽฏ Section Priority Filter:
    • 1. PR [OPEN] add LMetric routing policy ๐Ÿ“„ Diff (llm-d/llm-d#2271 by @sihancx) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 113d (>3d Priority Bump) โณ AI review in progress ๐Ÿ”ต DEEP REVIEW: Open Discussion / Comments ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity); sitting 113d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+55/-0 lines across 2 file(s)] Add LMetric https://arxiv.org/html/2603.15202v1#S5.SS1 as an optional policy for precise-prefix-cache-routing and add a router values overlay that replaces the default scoring profile with lmetric-scorer.
      ๐Ÿ“„ View Full PR Description

      Add LMetric https://arxiv.org/html/2603.15202v1#S5.SS1 as an optional policy for precise-prefix-cache-routing and add a router values overlay that replaces the default scoring profile with lmetric-scorer.

      Also update the XPU example to use Qwen3-32B with FP8 quantization and TP=2 so it matches the guide's 32B baseline model.

      Depends on https://github.com/llm-d/llm-d-router/pull/2351.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open discussion / comment - Open discussion/comment from @Gregory-Pereira (not yet LGTM'd/approved by @Gregory-Pereira) (awaiting @sihancx's response or LGTM alignment).
      ๐Ÿงช Nightly CI: Guide changes do not affect test-nightly (guides/precise-prefix-cache-routing/README.md: README edit leaves the commands and variables kustomize standup extracts unchanged; guides/precise-prefix-cache-routing/router/lmetric.values.yaml: new router values file is not referenced by any CI-executed guide file).
    • 2. PR [OPEN] feat(guides): add encoder-cache affinity to e-disaggregation vLLM profiles ๐Ÿ“„ Diff (llm-d/llm-d#2408 by @acardace) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 95d (>3d Priority Bump) โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator); sitting 95d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+58/-1 lines across 3 file(s)] Adds the mm-embeddings-cache-producer and mm-embeddings-cache-scorer plugins to both vLLM e-disaggregation router profiles (E/PD and E/P/D), so repeated multimodal media routes to the encode worker that already holds the... (Fixes #1952)
      ๐Ÿ“„ View Full PR Description

      Summary

      Adds the mm-embeddings-cache-producer and mm-embeddings-cache-scorer plugins to both vLLM e-disaggregation router profiles (E/PD and E/P/D), so repeated multimodal media routes to the encode worker that already holds the embeddings.

      Fixes #1952

      Changes

      • router/vllm/e-pd-disaggregation.values.yaml and router/vllm/e-p-d-disaggregation.values.yaml: add mm-embeddings-cache-producer and mm-embeddings-cache-scorer, with the scorer referenced in the encode scheduling profile at weight 4 (matching the plugin README example). cacheSizeInMBPerServer is left unset (plugin default 4096 MiB) with a comment explaining the relationship to the vLLM num_ec_blocks this guide configures.
      • README.md: new "Encoder-Cache Affinity" section covering what the plugins do, the three EPP metrics (encoder_cache_queries_total, encoder_cache_hits_total, encoder_cache_hit_ratio), and how to tune cacheSizeInMBPerServer relative to num_ec_blocks.

      Notes

      • The affinity signal only benefits repeated-media workloads; the README states this.
      • Benchmarking the guide with and without the plugins is tracked separately and will follow.
      • End-to-end encoder-cache affinity in E/PD depends on the router-side fix in llm-d/llm-d-router#2627 (without it the scorer scores 0). This guide change is the config/docs half.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open questions awaiting author (1 open, 0 resolved) - Feedback/questions from @capri-xiyue on e-p-d-disaggregation.values.yaml:86 awaiting @acardace's response.
      ๐Ÿงช Nightly CI: All 1/1 test-nightly job(s) passed at 73a57d9.
      โš–๏ธ Verdict: โณ Reviewed by @capri-xiyue (1 open comment thread(s)) - waiting for @acardace to respond.
    • 3. PR [OPEN] add responses test ๐Ÿ“„ Diff (llm-d/llm-d-router#3031 by @itaijj) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 71d (>3d Priority Bump) โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response โณ No author response >5d (๐Ÿ”” Pinged)
      ๐ŸŽฏ TL Priority Triage: TL Triage: Feature implementation / request; sitting 71d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+58/-0 lines across 1 file(s)] Kind test We need to test which responses API features are supported llm-d ( as oppose to front end agentic API).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      kind test

      What this PR does / why we need it:

      We need to test which responses API features are supported llm-d ( as oppose to front end agentic API).
      I run it with simulator with the following tests based on compliance tests of responses API published here
      https://github.com/openresponses/openresponses/blob/main/src/lib/compliance-tests.ts
      streaming-response is the one real gap. Nothing in test/e2e covers SSE framing on /v1/responses today.
      all other tests from
      https://github.com/openresponses/openresponses/blob/main/src/lib/compliance-tests.ts
      are not relevant since those API specs in responses API are not supported in llm-d as defined in responses API

      Which issue(s) this PR fixes:
      Fixes ](https://github.com/llm-d/llm-d-router/issues/3059)

      Release note _(write NONE if no user-facing change)_:

      NONE
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      This PR adds an end-to-end integration test verifying that the router correctly proxies streaming SSE requests on the /v1/responses endpoint when stream: true. It deploys a single-replica decode server and validates that incoming SSE chunks adhere to data: formatting, terminate before data: [DONE], and conclude with a response.completed event carrying valid output. Core request handling, routing logic, and P/D disaggregation pipelines remain unchanged.

      ๐Ÿ—๏ธ Design
      Components and Control Flow
      • Test Harness Setup: test/e2e/responses_endpoint_test.go defines a new Ginkgo Describe block (non-PD gateway /v1/responses streaming) using standalone.Create with simpleConfig and a single decode model server (createModelServersDecode(1)).
      • Request Flow: doResponses issues a POST /v1/responses request with stream: true through the standalone router gateway.
      • Stream Processing: The response body is scanned line-by-line via bufio.Scanner, filtering for reqcommon.SSEDataPrefix (data: ), breaking at reqcommon.SSEDoneMarker ([DONE]), and unmarshaling event JSON payloads.
      • Terminal Event Verification: Scans backwards to find events[i]["type"] == "response.completed", verifying that response.status == "completed" and response.output is a non-empty array.
      ๐Ÿงช Example (How It Works)

      A client sends POST /v1/responses with body {"model": "food-review", "input": pdTextInput, "stream": true}. The gateway routes to the decode model server, which returns an SSE stream starting with event chunks and ending with data: {"type": "response.completed", "response": {"status": "completed", "output": [...]}} followed by data: [DONE]. The test verifies HTTP status 200, parses each SSE frame into an event object, and asserts that the terminal response.completed payload has status completed with non-empty output.

      ๐Ÿ’ฌ Discussion Summary: ๐Ÿ”ด Changes requested (no consensus) - Changes requested by @roytman (6 open thread(s), 1 resolved); debate/feedback not yet resolved.
      โณ No Author Response (>5d): No author response for 32.1d (pinged 8.3d ago)
      โš–๏ธ Verdict: โณ Reviewed by @liu-cong (1 open comment thread(s)) - waiting for @itaijj to respond.
    • 4. PR [OPEN] calibration: add costModel fit for the p2p-source-producer ๐Ÿ“„ Diff (llm-d/llm-d#2579 by @kaushikmitr) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 71d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: 3 Comment(s) to PR ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator); sitting 71d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+260/-0 lines across 2 file(s)] Fits prefill, transfer, transferFixedMs, sourceWaitMs and requeueMs from the minCachedTokenDelta crossover table plus a loaded fixed-delta run (inference-perf per-request output joined to the EPP p2p decision log), and warns when...
      ๐Ÿ“„ View Full PR Description

      Fits prefill, transfer, transferFixedMs, sourceWaitMs and requeueMs from the minCachedTokenDelta crossover table plus a loaded fixed-delta run (inference-perf per-request output joined to the EPP p2p decision log), and warns when the loaded run cannot pin down the fixed costs.

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Adds guides/recipes/router/calibration/fit-cost-model.py and documentation in guides/recipes/router/calibration/README.md to fit five p2p-source-producer costModel parameters (prefillMicrosecondsPerToken, transferMicrosecondsPerToken, transferFixedMs, sourceWaitMs, requeueMs) from an idle crossover run and a loaded fixed-delta benchmark. Existing calibration scripts (calibrate.sh and calibrate-min-cached-token-delta.sh) and router configs remain unchanged, and fleetWeight stays a manual choice.

      ๐Ÿ—๏ธ Design
      • Idle slope fit (idle_fit in guides/recipes/router/calibration/fit-cost-model.py:44-53): Parses the tokens / recompute_ms / pull_ms / delta% table from calibrate-min-cached-token-delta.sh and fits linear slopes (ms/ktok = us/token) for prefillMicrosecondsPerToken (P) and transferMicrosecondsPerToken (T).
      • Request-to-decision join (load_decisions and load_requests at fit-cost-model.py:55-82): Strips the cmpl- prefix on both sides via norm_rid so inference-perf per_request_lifecycle_metrics.json rows join to EPP "p2p decision" log records, computing TTFT from output_token_times[0] - start_time.
      • Joint loaded OLS + bootstrap (loaded_fit at fit-cost-model.py:84-129): Subtracts T_idle * delta from pulled TTFTs and fits [1, uncached/1000, busy_dst, pulled, pulled*busy_src, pulled*busy_dst] across pulled and local requests (floored at 0), plus 200-sample request bootstrapping to flag >250 ms 80% intervals.
      ๐Ÿงช Example (How It Works)
      1. Run calibrate-min-cached-token-delta.sh on an idle pod pair and save the table to crossover.log.
      2. Deploy the router without costModel, set report.request_lifecycle.per_request: true in inference-perf, capture EPP "p2p decision" logs, and run ./fit-cost-model.py --crossover crossover.log --per-request run1/per_request_lifecycle_metrics.json --epp-log epp-decisions.log.
      3. The script fits P and T from crossover.log, joins requests to decisions, prints diagnostics and 80% bootstrap intervals to stderr, and writes the ready-to-paste costModel: YAML block to stdout.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open discussion / comment - Open discussion/comment from @Gregory-Pereira (not yet LGTM'd/approved by @Gregory-Pereira) (awaiting @kaushikmitr's response or LGTM alignment).
      ๐Ÿงช Nightly CI: All 5/5 test-nightly job(s) passed at 8f08dfe.
    • 5. PR [OPEN] monitoring-pd: add a PodMonitor for Encode pods ๐Ÿ“„ Diff (llm-d/llm-d#2852 by @pujitha24) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 48d (>3d Priority Bump) โณ AI review in progress โณ DEEP REVIEW: PR Workflows Not Run Yet ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator); sitting 48d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+15/-0 lines across 2 file(s)] The monitoring-pd component only ships PodMonitors for the decode (via the base monitoring component) and prefill roles (Fixes #2845).
      ๐Ÿ“„ View Full PR Description

      Motivation: the monitoring-pd component only ships PodMonitors for the
      decode (via the base monitoring component) and prefill roles. The
      multimodal E/PD and E/P/D topologies use monitoring-pd and deploy pods
      labelled llm-d.ai/role: encode, so Prometheus never scrapes the Encode
      tier (reported: 0 encode targets).

      Approach: add encode-podmonitor.yaml, same shape as the prefill one
      (selector llm-d.ai/role: encode, port "modelserver", /metrics, 30s), and
      list it in the component's resources. The multimodal encode containers
      expose a port named "modelserver" (8000) in both topologies. Topologies
      without encode pods are unaffected: the PodMonitor simply matches nothing.

      Validation: ran kustomize build on a scratch kustomization that uses
      the monitoring-pd component; it renders PodMonitors decode, encode and
      prefill, with the encode one selecting llm-d.ai/role: encode. I did not
      deploy to a cluster or check Prometheus targets, so scraping of live
      encode pods is not confirmed here; no dashboards were changed.

      Report: https://github.com/llm-d/llm-d/issues/2845
      Signed-off-by: Pujitha Paladugu <10557236+pujitha24@users.noreply.github.com>
      Assisted-by: claude-sonnet-5-5 (via Claude Code)

      Fixes #2845

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข Consensus reached (no debate) - Approved by @blacksoxx with no open review threads or questions.
      ๐Ÿงช Nightly CI: Guide changes do not affect test-nightly (changed guide content is not exercised by any nightly-e2e workflow (guides/recipes/modelserver/components/monitoring-pd/encode-podmonitor.yaml: changes executable or config content; guides/recipes/modelserver/components/monitoring-pd/kustomization.yaml: changes executable or config content)).
    • 6. PR [OPEN] fix(make): run checks and remove stale Kubernetes install targets ๐Ÿ“„ Diff (llm-d/llm-d#2931 by @tangming1996) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 39d (>3d Priority Bump) โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Standard correctness bug fix; sitting 39d (>3d bump P1 -> P0); Open 39.8d (> 7d) with maintainer @ahg-g; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+4/-71 lines across 1 file(s)] Bug: make test and make lint returned success without running any checks. The Kubernetes, OpenShift, and RBAC install targets tried to render a nonexistent deploy/ directory, so they could not deploy this guide-based repository.
      ๐Ÿ“„ View Full PR Description

      Bug: make test and make lint returned success without running any checks. The Kubernetes, OpenShift, and RBAC install targets tried to render a nonexistent deploy/ directory, so they could not deploy this guide-based repository.

      Fix: wire test to the Python and snapshot suites used by CI, run the repository's prek configuration for lint, and remove the obsolete generic cluster install targets. Direct users to the supported guide instructions.

      Test: make -n test and make -n lint show the expected commands. Test: python -m unittest discover -t . -s docker/scripts/snapshot -q
      (40 passed).
      Test: make test reached all pytest suites (421 passed, 10 failed because
      this macOS host lacks GNU realpath and has kubectl/Kustomize v4.5.4).
      Test: uvx prek --version succeeded; git diff --check passed.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open questions awaiting author (1 open, 0 resolved) - Feedback/questions from @ahg-g on Makefile:69 awaiting @tangming1996's response.
      โš–๏ธ Verdict: โณ Reviewed by @ahg-g (1 open comment thread(s)) - waiting for @tangming1996 to respond.
    • 7. PR [OPEN] fix(interactive-pod): grant cluster resource reads at cluster scope ๐Ÿ“„ Diff (llm-d/llm-d#2932 by @tangming1996) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 39d (>3d Priority Bump) โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Standard correctness bug fix; sitting 39d (>3d bump P1 -> P0); Open 39.8d (> 7d) with maintainer @ahg-g; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+36/-3 lines across 3 file(s)] Bug: the interactive pod's namespaced Role listed namespaces, clusterroles, and clusterrolebindings. A RoleBinding cannot authorize requests for those cluster-scoped resources, so inspection was denied.
      ๐Ÿ“„ View Full PR Description

      Bug: the interactive pod's namespaced Role listed namespaces, clusterroles, and clusterrolebindings. A RoleBinding cannot authorize requests for those cluster-scoped resources, so inspection was denied.

      Fix: move those reads into a dedicated ClusterRole and bind it to the pod's ServiceAccount. Keep cluster access read-only and set an explicit namespace for the binding subject; document how to change it.

      Test: kubectl kustomize rendered the manifests successfully. Test: asserted the cluster binding, RoleBinding, and Deployment target
      the same namespace and the ClusterRole has the intended resources.
      Test: git diff --check passed.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open questions awaiting author (1 open, 0 resolved) - Feedback/questions from @ahg-g on README.md:12 awaiting @tangming1996's response.
      โš–๏ธ Verdict: โณ Reviewed by @ahg-g (1 open comment thread(s)) - waiting for @tangming1996 to respond.
    • 8. PR [OPEN] perf(program-aware): maintain fairness index aggregates incrementally ๐Ÿ“„ Diff (llm-d/llm-d-router#3742 by @3431481073) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 36d (>3d Priority Bump) โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (Admission, flow control, & saturation); sitting 36d (>3d bump P1 -> P0); Open 36.4d (> 7d) with maintainer @ahg-g; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+376/-31 lines across 5 file(s)] program-aware-fairness recomputed Jain's fairness index on every Pick by ranging over the plugin's entire per-program map (Fixes #3734).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind performance

      What this PR does / why we need it:

      program-aware-fairness recomputed Jain's fairness index on every Pick by ranging over the plugin's entire per-program map. The map retains every fairness ID seen within evictionTtlSeconds (1 h by default), so Pick cost grew with the resident ID base instead of with the active flows. At 200,000 resident IDs a single active flow measured ~23 ms p50, against ~0.4 ยตs cold.

      This maintains the index inputs incrementally. RecordDispatched folds each program's change in average wait time into shared sums, eviction removes the evicted program's contribution, and an evicted value cannot re-add itself when a dispatch races the sweep. Pick and DumpState read the index in O(1).

      Benchmarks with a single active flow (Windows, i7-13650HX):

      IDsbefore: mean / p50after: mean / p50
      0779 ns / 381 ns686 ns / 368 ns
      200,00026.9 ms / 23.2 ms530 ns / 381 ns

      Prewarming 0/1k/10k/100k/200k IDs measures 650/597/556/481/484 ns per Pick, flat in the number of resident IDs.

      New tests compare the maintained index against a full scan and cover eviction and an eviction-racing dispatch.

      Which issue(s) this PR fixes:

      Fixes #3734

      Release note:

      NONE

      make presubmit was not run because this machine has no container runtime; targeted go test and go vet were run instead. go test -race was not run because the host's mingw gcc is 32-bit only. The benchmark p50 is a batched estimator on Windows, not the Linux numbers from the issue.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open questions awaiting author (3 open, 0 resolved) - Feedback/questions from @ahg-g on programmetrics.go:76, plugin.go:343 awaiting @3431481073's response.
      โš–๏ธ Verdict: โณ Reviewed by @ahg-g (3 open comment thread(s)) - waiting for @3431481073 to respond.
    • 9. PR [OPEN] feat(epp): count in-flight P2P pulls per source in p2p-source-producer ๐Ÿ“„ Diff (llm-d/llm-d-router#3857 by @sohom-cs) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 32d (>3d Priority Bump) โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator); sitting 32d (>3d bump P1 -> P0); Open 32.8d (> 7d) with maintainer @nilig, @kaushikmitr; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+816/-6 lines across 5 file(s)] Item 1 of 3 in #3856 (child 2 of #2273). p2p-source-producer picks a pull source by cache shortfall and waiting queue, but it can't see the pulls it has already pointed at a source.
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind feature

      What this PR does / why we need it:

      Item 1 of 3 in #3856 (child 2 of #2273). p2p-source-producer picks a pull source by cache shortfall and waiting queue, but it can't see the pulls it has already pointed at a source. This PR counts those pulls and the tokens they pull; the next PR adds that load to source selection.

      With trackInFlightPulls: true (off by default):

      • PreRequest counts a pull against the source when it sets the source header.
      • The pull is released at the request's first response chunk, when the computing pod has prefilled. A request that ends without a chunk is released at end of stream, and RequestAbandoned releases one that was never sent.
      • llm_d_epp_p2p_inflight_pulls and llm_d_epp_p2p_inflight_pull_tokens export the count and the pulled tokens per source. A source's series is removed when its count reaches 0.
      • A pull with no release is dropped by the janitor once its request has ended and the staleness threshold has passed.

      With the flag off, the factory returns the same *Producer as before, so the director doesn't call it per response chunk. Counts are per EPP replica. The first response chunk is a signal the EPP already has, so unlike Appendix B.3 of #2273 this needs no duration estimate.

      #3441 moves the source into kv_transfer_params in the same PreRequest; whichever lands second needs a rebase.

      Tests (CPU only): counting, the three release paths, a repeated PreRequest, the flag off, the token gauge and metric registration. go test -race, go build ./cmd/epp and golangci-lint pass.

      Which issue(s) this PR fixes:
      Part of #3856

      Release note _(write NONE if no user-facing change)_:

      p2p-source-producer: optional `trackInFlightPulls` counts the P2P pulls directed at each source endpoint and the prompt tokens they pull, and exports them as `llm_d_epp_p2p_inflight_pulls` and `llm_d_epp_p2p_inflight_pull_tokens`.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Introduces an optional trackInFlightPulls configuration flag in p2p-source-producer that tracks active in-flight P2P KV cache pulls and transferred prompt tokens per source endpoint, exporting them as llm_d_epp_p2p_inflight_pulls and llm_d_epp_p2p_inflight_pull_tokens Prometheus gauges. Tracking is dormant by default with zero response-hook overhead and zero allocations when disabled. Source selection algorithms remain unchanged in this PR, establishing the telemetry foundation for future load-aware peer ranking.

      ๐Ÿ—๏ธ Design
      Core Architecture & State Lifecycle
      1. trackingProducer Decorator (pkg/epp/framework/plugins/requesthandling/dataproducer/p2psource/pulls.go:218):
      • Wrapped around *Producer only when trackInFlightPulls: true.
      • Implements ResponseBodyProcessor, RequestAbandoned, Registrant, and EndpointExtractor.
      • When disabled, PluginFactory returns the raw *Producer, completely bypassing director response chunk calls.
      1. pullTracker & Mutex Protection (pkg/epp/framework/plugins/requesthandling/dataproducer/p2psource/pulls.go:66):
      • Manages mutex-guarded loads map[fwkdl.ID]*pullLoad and endpoints map[fwkdl.ID]fwkdl.Endpoint.
      • Tracks per-source pull count and aggregated prompt token delta.
      • Holds request liveness via PluginState.BindLiveness(ctx, requestID) so active requests are not prematurely evicted by the background janitor.
      1. Acquisition & Release Invariants:
      • Acquisition (PreRequest): When a P2P peer is selected and header x-llm-d-kv-cache-source is attached, pullTracker.acquire increments the source's load and registers an evictable pullEntry in PluginState. Duplicate calls for the same request ID are rolled back atomically.
      • First Response Chunk Release (ResponseBody): On streaming responses, the pull is released upon the first chunk (response.StartOfStream == true), signaling the computing pod completed prefill. Non-streaming responses release on the single chunk where both StartOfStream and EndOfStream are true.
      • Zero Hot-Path Allocations: Intermediate streaming chunks (StartOfStream == false && EndOfStream == false) evaluate to false immediately, performing zero lock acquisitions, zero allocations, and zero map operations.
      • Failure & Abandonment: Requests dropped before response dispatch trigger RequestAbandoned; requests dropped during transmission trigger EndOfStream. Unhandled disconnects are reclaimed by the PluginState janitor TTL sweep, with pullEntry.OnEvicted decrementing load exactly once.
      • Endpoint Lifecycle & Metric Cleanup: Implements fwkdl.EndpointExtractor subscribing to sourcenotifications.EndpointNotificationSourceType. When an endpoint leaves the pool or pull count returns to zero, inFlightPulls.DeleteLabelValues and inFlightPullTokens.DeleteLabelValues delete both series. Pointer identity tracking (registered != ep) prevents stale delete events from decrementing replacement endpoints reusing the same ID.
      ๐Ÿงช Example (How It Works)
      End-to-End Walkthrough
      1. Configuration: Operator deploys EPP with trackInFlightPulls: true under p2p-source-producer.
      2. Peer Selection: Request req-101 targets destination pod-a. Produce evaluates prefix cache entries and selects pod-b as the best P2P source with 4,096 uncached prefix tokens.
      3. PreRequest Execution: Header x-llm-d-kv-cache-source: 10.0.0.2:7777 is set. pullTracker.acquire sets llm_d_epp_p2p_inflight_pulls{endpoint_name="pod-b",...} = 1 and llm_d_epp_p2p_inflight_pull_tokens{endpoint_name="pod-b",...} = 4096.
      4. First Chunk Arrival: Destination sends the first token (StartOfStream: true). ResponseBody calls p.pulls.release("req-101"), deleting the state entry. OnEvicted decrements count to 0, which deletes both Prometheus series for pod-b.
      5. Intermediate Chunks: Subsequent streaming chunks bypass tracking logic with zero allocations.
      6. Pod Deletion / Scale-down: If pod-b is deleted while a pull is in flight, Extract intercepts EventDelete, drops loads[pod-b], and prunes Prometheus series immediately. A replacement pod reusing pod-b starts at count 0, and late releases from the old pod are safely ignored.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open discussion / comment - Open review comment/discussion from @nilig (not yet LGTM'd/approved by @nilig) (awaiting @sohom-cs's response or LGTM alignment).
      โš–๏ธ Verdict: โณ Reviewed by @cheng-hsiang-chiu - waiting for @sohom-cs to respond.
    • 10. PR [OPEN] Resolve external session block paths against KV-event residency ๐Ÿ“„ Diff (llm-d/llm-d-router#3912 by @vMaroon) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 31d (>3d Priority Bump) โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity); sitting 31d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+1893/-3 lines across 17 file(s)] Add session-prefix-cache-producer to resolve externally supplied engine-block paths against live GPU residency, without rendering or tokenization.
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind feature

      What this PR does / why we need it:

      Add session-prefix-cache-producer to resolve externally supplied engine-block paths against live GPU residency, without rendering or tokenization. It forwards request stamps and publishes the existing cache-match attributes for scoring, affinity, and load accounting.

      Builds on #3910 and #3911. The producer binds to a kv-events-source through kvEventsSourceRef, same as the precise producer. This replaces the cache-producer portion of #2716.

      Session identity and lineage policy remain with #2852. The request contract preserves its field names and types. A stamp without a known prompt length is forwarded without overriding the load estimate. Uncertain paths supply affinity; only exact paths discount prefill work.

      • ☑ Real and estimated token backends work; the estimate path makes no render calls.
      • ☑ Shared wire events update residency while eviction preserves external lineage.
      • ☑ Branches, workers, ranks, groups, and cache namespaces remain separate.
      • ☑ Unknown prompt length preserves load estimates; exact and uncertain paths account for work separately.
      • ☑ Runner configuration requires the external producer and kvEventsSourceRef, and creates no default token-based cache path.

      Validation: race-enabled producer, load, attribute, index, and runner tests; make presubmit. Event integration uses a local ZMQ publisher; this change has no new engine benchmark result.

      Which issue(s) this PR fixes:

      Related to #1979.

      Release note _(write NONE if no user-facing change)_:

      Add the Alpha session-prefix-cache-producer for externally managed session block paths. It consumes shared KV events and supports routing with real or estimated token counts without requiring prompt rendering.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Active debate / open discussion (2 open, 3 resolved) - Back-and-forth between @bongwoobak, @paolo-perrone and @vMaroon on events.go, producer_test.go; not yet resolved.
      โš–๏ธ Verdict: โณ Reviewed by @bongwoobak (1 open comment thread(s)) - waiting for @vMaroon to respond.
    • 11. PR [OPEN] fix(flowcontrol): enforce queue-wait budgets from expiry sweep only ๐Ÿ“„ Diff (llm-d/llm-d-router#3922 by @samosa-sundays) ๐Ÿ”ด P0: High Priority ๐Ÿ› Bug Fix โฐ Sitting 31d (>3d Priority Bump) โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (Admission, flow control, & saturation); sitting 31d (>3d bump P1 -> P0); Open 31.1d (> 7d) with maintainer @LukeAVanDrie; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+125/-96 lines across 9 file(s)] Enforce queue-wait budgets exclusively through the processor's periodic expiry sweep, eliminating the dual-timer race where an exact context deadline timer beat the polling sweep and misattributed empty-pool expiries to saturation... (Fixes #2419)
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind bug
      /kind cleanup

      What this PR does / why we need it:
      Enforce queue-wait budgets exclusively through the processor's periodic expiry sweep, eliminating the dual-timer race where an exact context deadline timer beat the polling sweep and misattributed empty-pool expiries to saturation backpressure.

      • Derive the request context with context.WithCancel in createRequestContext, deleting the synthetic backstop deadline and its 2-interval padding.
      • Remove the clamping of saturationTTL to caller deadlines so the sweep enforces the operator queue-wait budget only. A caller deadline expiring while queued maps to ErrContextCancelled (QueueOutcomeEvictedContextCancelled -> 503) rather than ErrTTLExpired (429).
      • Narrow the poolEmpty probe in translateFlowControlError to pre-queue expiries (ErrRejected + ErrTTLExpired) from tryDistribution, which do not carry an endpoint-availability regime; queued EvictedTTL expiries map to 429 unconditionally.
      • Update pkg/epp/flowcontrol/README.md to document sweep-interval latency (expiryCleanupInterval), budget resets across empty/non-empty pool transitions, and using a gateway request timeout to cap total client wait.
      Test plan
      • ☑ pkg/epp/flowcontrol/... and pkg/epp/requestcontrol/... pass under go test -race, including caller-deadline eviction while queued, pre-admission TTL expiry with populated and empty pools, and queued empty-pool expiry attribution.
      • ☑ ./cmd/epp/... builds and ./test/integration/epp test binary compiles cleanly.

      Which issue(s) this PR fixes:
      Fixes #2419

      Release note:

      Flow control queue-wait budgets are now enforced solely by the periodic cleanup sweep without a per-request hard deadline across empty/non-empty pool transitions, so a flapping pool restarts the budget in force on each transition (set a gateway request timeout to bound total client wait), and a caller deadline expiring while queued is now reported under the `EvictedContextCancelled` metric outcome (HTTP 503) instead of `EvictedTTL` (HTTP 429).
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Enforces flow-control queue-wait budgets exclusively through the processor's periodic expiry sweep rather than a dual context backstop timer, preventing exact context timers from racing the sweep on empty pools. Caller-supplied context deadlines that expire while queued now classify as ErrContextCancelled (EvictedContextCancelled, HTTP 503) instead of ErrTTLExpired (HTTP 429). Pre-queue distribution in tryDistribution remains bounded by saturationTTL, and translateFlowControlError narrows its live poolEmpty probe to that pre-queue ErrRejected path while queued EvictedTTL expiries map to 429 unconditionally.

      ๐Ÿ—๏ธ Design
      • Context & Budget Separation (controller.go#L477-L494): FlowController.createRequestContext derives reqCtx via context.WithCancel(ctx) without a synthetic backstop deadline and stops clamping saturationTTL to caller deadlines. tryDistribution still bounds handoff via context.WithDeadlineCause(reqCtx, enqueueTime.Add(saturationTTL), types.ErrTTLExpired) (controller.go#L414-L419).
      • Deadline Classification (item.go#L209-L229): wrapCause folds context.DeadlineExceeded alongside context.Canceled into types.ErrContextCancelled, reserving types.ErrTTLExpired for explicit TTL-cause expiries from distributeCtx or the processor sweep (processor.go#L769-L845).
      • Admission Error Translation (admission.go#L297-L302): translateFlowControlError invokes poolEmpty() only when errors.Is(err, types.ErrTTLExpired) and errors.Is(err, types.ErrRejected) (pre-queue handoff expiry); queued empty-pool expiries already carry types.ErrNoEndpoints from the processor sweep (503), and other queued ErrTTLExpired expiries map directly to 429.
      ๐Ÿงช Example (How It Works)
      1. A request enters EnqueueAndWait with a 50ms caller context.WithTimeout while DefaultRequestTTL and NoEndpointRequestTTL are 5m and the pool is saturated.
      2. createRequestContext returns reqCtx preserving the 50ms caller deadline and an unclamped saturationTTL of 5m; the item enters the queue.
      3. After 50ms, awaitFinalization observes <-reqCtx.Done() with cause context.DeadlineExceeded, calls item.Finalize(cause), and wrapCause produces ErrEvicted: ErrContextCancelled: context deadline exceeded (QueueOutcomeEvictedContextCancelled).
      4. translateFlowControlError maps ErrContextCancelled to HTTP 503 with x-llm-d-drop-reason: ContextCancelled instead of misreporting queue saturation (429).
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open questions awaiting author (5 open, 0 resolved) - Feedback/questions from @LukeAVanDrie on controller_test.go, README.md awaiting @samosa-sundays's response.
      โš–๏ธ Verdict: โณ Reviewed by @LukeAVanDrie (1 open comment thread(s)) - waiting for @samosa-sundays to respond.
    • 12. PR [OPEN] feat(kimi-k3-1): tune TPU engine for agentic multi-turn serving ๐Ÿ“„ Diff (llm-d/llm-d#3037 by @syeda-anjum) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 28d (>3d Priority Bump) โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity); sitting 28d (>3d bump P1 -> P0); Open 28.1d (> 7d) with maintainer @achandrasekar; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+21/-26 lines across 3 file(s)] Sizes the Kimi-K3.1-Pro TPU 7x (SGLang) engine in guides/models/kimi-k3-1 for agentic, multi-turn serving. Router values are unchanged.
      ๐Ÿ“„ View Full PR Description

      Summary

      Sizes the Kimi-K3.1-Pro TPU 7x (SGLang) engine in guides/models/kimi-k3-1 for agentic, multi-turn serving. Router values are unchanged.

      • --max-mamba-cache-size=384. The SGLang Kimi-K3.1 recipe sizes 708 KDA recurrent-state slots. Under multi-turn agentic load they sat at 1โ€“3% use while holding about as much HBM as the KV pool. Capping them at 384 grows the HBM KV pool from 532,352 to 751,104 tokens per replica (engine boot log). A cached prefix also needs a KDA state snapshot, and too few slots stop prefix-cache hits (seen at 256), so the patch comment documents the floor.
      • --weight-loader-drop-cache-after-load: drops checkpoint pages from the page cache after loading (read by the image's safetensors loader).
      • SGLANG_TPU_VIT_PRECOMPILE_SIZES="": skips the vision-encoder bucket compile at startup. The guide serves text only (SGLANG_TPU_VL_TEXT_ONLY_EXTEND=1).
      • Removes six env vars the pinned image does not read: SGLANG_TPU_OVERLAP_PROFILE, TPU_ENABLE_TELEMETRY, TPU_ENABLE_TELEMETRY_HARVESTING, ENABLE_TPU_TELEMETRY, TPU_TELEMETRY_INTERVAL_SEC, TPU_TELEMETRY_INTERVAL_SECONDS. No runtime reader exists for them in the image's Python, shell or native libraries.
      • --scheduler-recv-interval stays at the recipe default (16). An earlier revision of this PR set it to 8 together with four prefill/decode overlap env vars. Those env vars are not read by this image (or, for TPU_PREMAPPED_BUFFER_SIZE, do not serve the raiden HiCache path), and a 3-run A/B with everything else equal showed no measurable effect from 8, so both changes are dropped.
      • README / inference-perf: the Default Configuration table and benchmark comments reflect the 751,104-token pool. The router note states that lruCapacityPerServer: 12478 was sized before the KDA cap and is kept unchanged.

      Benchmark Results are not part of this PR. They will follow separately.

      Claimed tier and support cell

      Unchanged: model guide, tpu ยท sglang: community.

      Reference environment and testing

      • Platform: GKE, tpu7x 2x2x4 node pools (16 chips per replica).
      • Image: docker.io/lmsysorg/sglang@sha256:84fa8579cfb609d383a64fdd64c0036045140c905b7bd8a5ee9e6cadfe3cf433 (unchanged).
      • Applied: the kustomize render of this commit's overlay. Launch args, environment, image, resources and probes are identical to what ran (flag order aside). Test-cluster-only differences:
      • Kueue queue label and namespace;
      • weights on a pre-staged shared volume instead of the Hyperdisk ML PVC;
      • one replica per slice (the guide deploys 2 behind the router);
      • a persistent compile cache (TORCH_TPU_TIER3_COMPILATION_CACHE_ROOT on a node volume) to shorten repeat boots; it does not change serving behaviour.
      • Results on hardware: every replica booted and served; the boot log shows 384 KDA slots and a 751,104-token KV pool per replica; multi-turn agentic traffic completed with 0 errors.
      • Checks: scripts/guide.py render --recursive --check guides, check-manifest, and the overlay lint: 0 critical / 0 high. The one medium finding is the existing Benchmark Results placeholder.

      Known gaps

      • Same storage and router-discovery gaps as #3021: the Hyperdisk ML path and the InferencePool object were not exercised on the test cluster.
      • lruCapacityPerServer is not yet recomputed for the larger pool (about 17.6K if the host tier stays at 2ร— HBM). That needs its own validation run.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Rebalances TPU HBM allocation and startup behavior for the SGLang Kimi-K3.1-Pro guide by capping KDA recurrent-state slots at 384, dropping checkpoint pages from the OS page cache after loading, skipping unused vision-encoder compilation, and removing six env vars unread by the pinned image. Context length (491,520), HiCache ratio (2x HBM), and router lruCapacityPerServer (12478) stay unchanged.

      ๐Ÿ—๏ธ Design
      • KDA vs. KV HBM split (guides/models/kimi-k3-1/modelserver/tpu/sglang/patch-sglang.yaml:105): Adds --max-mamba-cache-size=384 (down from SGLang's 708-slot recipe default), expanding the HBM KV pool from 532,352 to 751,104 tokens per replica and scaling the --hicache-ratio=2 host-DRAM tier proportionally.
      • Host RAM and startup trimming (patch-sglang.yaml:108,198-199): Adds --weight-loader-drop-cache-after-load (paired with --weight-loader-disable-mmap) to release checkpoint page cache inside the 800Gi pod limit, sets SGLANG_TPU_VIT_PRECOMPILE_SIZES="" to skip ViT bucket compiles in text-only mode (SGLANG_TPU_VL_TEXT_ONLY_EXTEND=1), and drops six unread telemetry/overlap env vars.
      • YAML anchor propagation (patch-sglang.yaml:70,121,280-281): Both leaderTemplate and workerTemplate share &args and &env, applying all flag and env changes uniformly across the 4-pod LeaderWorkerSet.
      • Guide doc alignment (README.md:50-51,312,431-432, inference-perf.yaml:44): Updates HBM KV pool numbers to 751K and notes that lruCapacityPerServer: 12478 predates the KDA cap.
      ๐Ÿงช Example (How It Works)
      1. A 4-pod tpu7x 2x2x4 LeaderWorkerSet launches sglang.launch_server via shared *args/*env with --max-mamba-cache-size=384, --weight-loader-drop-cache-after-load, and SGLANG_TPU_VIT_PRECOMPILE_SIZES="".
      2. After loading the 1.56 TB checkpoint from /models, the loader drops checkpoint pages from the OS page cache, and Torch TPU skips ViT precompilation.
      3. Under CONCURRENCY_LEVEL=16 in inference-perf.yaml, active prefixes exceeding the 751,104-token HBM KV pool spill into the 2x HiCache host tier while retaining 384 HBM KDA state slots.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open questions awaiting author (3 open, 0 resolved) - Feedback/questions from @achandrasekar on patch-sglang.yaml, README.md:312 awaiting @syeda-anjum's response.
      ๐Ÿงช Nightly CI: Guide changes do not affect test-nightly (changed guide content is not exercised by any nightly-e2e workflow (guides/models/kimi-k3-1/modelserver/tpu/sglang/patch-sglang.yaml: changes executable or config content)).
      โš–๏ธ Verdict: โณ Reviewed by @achandrasekar (2 open comment thread(s)) - waiting for @syeda-anjum to respond.
    • 13. PR [OPEN] kvblock: store engine-key mappings in value-type slots ๐Ÿ“„ Diff (llm-d/llm-d-router#4518 by @elevran) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 10d (>3d Priority Bump) โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity); sitting 10d (>3d bump P1 -> P0); Open 10.5d (> 7d) with maintainer @ahg-g; surfaced for follow-up.
      ๐Ÿ“Œ Change Summary: [+608/-12 lines across 5 file(s)] Part of the KV block index representation series (#4529).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind feature

      What this PR does / why we need it:

      Part of the KV block index representation series (#4529).

      Adds a kvevents record/replay package: a pool config path captures every received wire event to a file sink, and the replayer feeds a captured file back through the pool deterministically, so index changes can be validated against production-shaped event streams instead of synthetic loops. Later PRs in the series use it for trace-driven benches, and a production trial would re-run captured events against a candidate backend.

      Replay is a library facility: Pool.ReplayFile has no operator flag, so a replay session is driven by a caller holding the pool (tests and capture tooling today); wiring an operator entry point is a follow-up if wanted.

      Also adds a parent-hash resolution contention bench: GetRequestKey runs on every block store under write contention, and the bench measures that path with concurrent writers so representation changes to the engine-key map (for example #4663) can show their effect on it.

      Which issue(s) this PR fixes:

      Part of #4529.

      Release note _(write NONE if no user-facing change)_:

      Added optional KV-event recording to a file (kvEventsConfig.eventRecordingPath) for offline replay and validation.

      Test plan:

      • ☑ Record/replay round-trip tests (replay_test.go).
      • ☑ Parent-hash resolution contention bench runs green locally.
      ๐Ÿ’ฌ Discussion Summary: ๐Ÿ”ด Changes requested (no consensus) - Changes requested by @ahg-g (4 open thread(s), 0 resolved); debate/feedback not yet resolved.
      โš–๏ธ Verdict: โณ Reviewed by @ahg-g (4 open comment thread(s)) - waiting for @elevran to respond.
    • 14. PR [OPEN] feat(epp): gauge and log when pool endpoints report different base models ๐Ÿ“„ Diff (llm-d/llm-d-router#4766 by @chethanuk) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 4d (>3d Priority Bump) โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Feature implementation / request; sitting 4d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+334/-3 lines across 6 file(s)] An InferencePool is meant to serve one base model, but if its endpoints report different base models on /v1/models nothing tells you. This adds a gauge and two log lines for that case (Fixes #4429).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind feature

      What this PR does / why we need it:

      An InferencePool is meant to serve one base model, but if its endpoints report different base models on /v1/models nothing tells you. This adds a gauge and two log lines for that case. Routing does not change.

      • llm_d_epp_pool_base_models{name} is the number of distinct base models (entries with no Parent) across the pool's ready endpoints. It uses the same name label as the other pool gauges.
      • The metrics refresher logs one warning when the count goes above 1. The warning lists the base models and each endpoint with its own base models, sorted by endpoint name and capped at 10 endpoints plus "and N more". It logs one info line when the endpoints agree again.
      • LoRA adapters, entries with no ID, and endpoints that have not reported models yet are ignored. If no endpoint reports any base model, the gauge goes to 0 and the mismatch state is kept, so endpoints that drop out and come back do not repeat the warning. If the pool itself goes away, the state is cleared, so a recreated pool warns again.

      The check lives in pkg/epp/datalayer/logger next to the other pool gauges, since the models extractor only sees one endpoint at a time. I can rename the metric or the label if you prefer something else.

      The table test in pkg/epp/datalayer/logger/base_models_test.go covers start, clear, re-entry, LoRA entries, endpoints that have not reported, the 10-endpoint cap and pool deletion. go test -race ./pkg/epp/datalayer/... ./pkg/epp/metrics/..., golangci-lint and make verify-telemetry pass.

      I also ran it on kind with two llm-d-inference-sim pods and the EPP in selector mode. With one sim on Llama and one on Qwen, the warning fired once with both endpoint=model pairs and the gauge read 2. Switching the second sim to Llama plus a LoRA adapter logged the clear line once and the gauge went to 1. Adding a third ready endpoint that serves /metrics but returns 404 on /v1/models left the gauge at 1 with no new log line.

      Limits: promtool's metric lint flags the new gauge for "abbreviated units". It flags every llm_d_* metric the same way, because it reads the d in the prefix as days.

      Which issue(s) this PR fixes:

      Fixes #4429

      Release note _(write NONE if no user-facing change)_:

      EPP exports llm_d_epp_pool_base_models{name} and logs a warning when ready endpoints in a pool report different base models.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Adds an llm_d_epp_pool_base_models{name} Prometheus gauge and transition-only mismatch/recovery logs to EPP's periodic metrics refresher so operators can detect when ready endpoints in an InferencePool serve different base models on /v1/models. LoRA adapters (Parent != ""), entries without an ID, and endpoints that have not reported /v1/models are excluded from the distinct base-model count. Request scheduling and routing behavior remain unchanged.

      ๐Ÿ—๏ธ Design
      • Registers llmdInferencePoolBaseModels (llm_d_epp_pool_base_models) with label name (ALPHA) in pkg/epp/metrics/llm_d_router_metrics.go#L249-L256 and pkg/epp/metrics/metrics.go#L479-L481, documented in docs/metrics.md#L422.
      • Maintains a caller-owned mismatchedPools map[string]bool inside runPrometheusRefresher in pkg/epp/datalayer/logger/logger.go#L54-L68 and clears it whenever datastore.PoolGet() returns an error so a recreated pool warns again.
      • On each refresh tick, recordPoolBaseModels reads attrmodels.ModelsAttributeKey from each ready endpoint returned by PodList(podsWithFreshMetrics(...)), collects unique m.ID values where m.ID != "" && m.Parent == "", updates the gauge (even when len(podMetrics) == 0), and logs once on transitions between len(bases) > 1 (capped at 10 sorted endpoints plus and N more) and len(bases) == 1, keeping mismatch state when len(bases) == 0.
      ๐Ÿงช Example (How It Works)
      1. Ready endpoints default/pod0 (reporting base llama and LoRA sql-lora with Parent: "llama") and default/pod1 (reporting qwen) are scraped by models-data-source.
      2. On the next refresher tick, recordPoolBaseModels sets llm_d_epp_pool_base_models{name="test-pool"} to 2 and logs one warning listing baseModels=["llama" "qwen"] and endpoints=["default/pod0=llama" "default/pod1=qwen"].
      3. After default/pod1 is replaced by a llama endpoint, the gauge updates to 1 and one recovery log (Endpoints in the pool report the same base model again) is emitted; if all ready endpoints disappear transiently (len(bases) == 0), the gauge becomes 0 without clearing mismatchedPools.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open questions awaiting author (1 open, 0 resolved) - Feedback/questions from @paolo-perrone on logger.go:157 (all CI checks in ci.json passed (unit-tests, lint, e2e-tests, CodeQL, DCO, typos); 0 existing reviews or open threads) awaiting @chethanuk's response.
      โš–๏ธ Verdict: โณ Reviewed by @paolo-perrone (1 open comment thread(s)) - waiting for @chethanuk to respond.
    • 15. PR [OPEN] guides(agent-substrate): Always-On Sandboxed Agents composable actors/{hermes,opencode} and OpenCode harness ๐Ÿ“„ Diff (llm-d/llm-d#3162 by @liu-cong) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 3d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW [No Review Yet]: Author Follow-up ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Tier-1 API/security contract change (Security / CVE / ingress header boundary); sitting 3d (>3d open PR, already P0)
      ๐Ÿ“Œ Change Summary: [+16824/-985 lines across 35 file(s)] Adds a pluggable OpenCode v1.19.6 actor + loopback tracing adapter under shared guides/agent-substrate/actors/opencode/ (Dockerfile, adapter.py, entrypoint.sh, opencode.json.tmpl, test_adapter.py) aligned to the...
      ๐Ÿ“„ View Full PR Description

      What

      Adds a pluggable OpenCode v1.19.6 actor + loopback tracing adapter under shared guides/agent-substrate/actors/opencode/ (Dockerfile, adapter.py, entrypoint.sh, opencode.json.tmpl, test_adapter.py) aligned to the harness-neutral agent protocol:

      • Reads inbound X-Session-Id (with X-Hermes-Session-Id compatibility fallback) and forwards session + x-llm-d-inference-objective headers to llm-d.
      • Streams real-time SSE tokens (stream: true), live event: agent.tool.progress tool-execution updates bridged from OpenCode's /event bus, keepalive heartbeats, and AGENT_TURN_TRACE=1 telemetry (X-Agent-Turn-Trace JSON header on non-streaming turns and trailing event: agent.turn.trace SSE frame before data: [DONE] on streaming turns).
      • Updates guides/agent-substrate/always-on-agents/README.md and guides/agent-substrate/README.md to document both actors/hermes and actors/opencode side by side with the gateway's dynamic Harness Runtime selector.

      Why

      Part 3 of 3 for #3167 (Topology 1 in Agent Substrate x llm-d: Co-Design Ideas, stacked on #3161). Proves the Always-On Sandboxed Agents zero-wake gateway, dynamic Harness Runtime UI selector, real-time SSE streaming UX, IdleSuspender, and Dual-Plane Observability Dashboard are genuinely harness-agnostic: Hermes and OpenCode sessions run concurrently behind the same unmodified gateway under default SESSION_ID_HEADER=X-Session-Id with zero gateway restarts.

      Notes for reviewers

      • Stacked on #3161; review the actors/opencode/ and doc additions until #3160 and #3161 merge.
      • Includes live-discovered gVisor/vLLM hardening: OPENCODE_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS=300000, OPENCODE_DISABLE_LSP_DOWNLOAD=1, bounded max_tokens context-overflow clamping, and non-starving SSE keepalive scheduling in adapter.py.

      Testing

      • 132/132 unit tests passing (23/23 in actors/opencode/test_adapter.py including X-Session-Id forwarding, SSE token streaming, event: agent.tool.progress, event: agent.turn.trace, X-Agent-Turn-Trace, and error/disconnect handling + 37/37 in always-on-agents/gateway/test_server.py + 72/72 in scripts/tests/test_agent_substrate_*.py); offline --internal Docker E2E verified.
      • python3 scripts/guide.py render guides --recursive --check, check guides/agent-substrate, and check-manifest exit 0.
      • Live GKE 1.37 Multi-Runtime SSE Streaming E2E (Hermes hermes-dev-e2e + OpenCode opencode-e2e simultaneously on one unmodified session-gateway, SESSION_ID_HEADER=X-Session-Id, AGENT_TURN_TRACE=1, Qwen/Qwen3-32B):
      • GET /api/templates discovered both hermes-dev-e2e and opencode-e2e (ready: true, zero secret fields).
      • OpenCode Turn 1 (Run go version using bash and report the version.): 3 live tool.progress events via event: agent.tool.progress, 7 incremental assistant.delta chunks (go1.27.4), and turn.done trace via event: agent.turn.trace (llm_call_count=2, inference_ms=713.47 ms, actor_exec_ms=1906.47 ms, latency_ms=5928.39 ms).
      • Hermes Turn 1 + Turn 2 ran concurrently on the exact same gateway: Turn 1 executed uname -a (2 tool.progress, 80 assistant.delta, llm_call_count=2) and Turn 2 recalled PINEAPPLE-42 (15 assistant.delta, latency_ms=441.42 ms).
      • GET /api/telemetry reported both hermes-dev-e2e and opencode-e2e sessions side by side; clean DELETE (200 OK) for both sessions.
      • Live GKE 1.37 Multi-Turn & Zero-Wake E2E: golden snapshot ready, Turn 1 shallow-clone + trace (1116.1 ms resume), manual suspend (754 ms memory checkpoint) -> 0.11 ms zero-wake read, Turn 2 warm MEMORY resume (772.92 ms, live max_tokens 400 clamping retry), and clean DELETE (HTTP 200).
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      ๐Ÿงช Nightly CI: Guide changes do not affect test-nightly (changed guide content is not exercised by any nightly-e2e workflow (guides/agent-substrate/README.md: changes commands or variables kustomize standup extracts from this README; guides/agent-substrate/actors/hermes/config.yaml.tmpl: changes executable or config content; guides/agent-substrate/actors/hermes/entrypoint.sh: changes executable or config content; guides/agent-substrate/actors/hermes/warmup.py: no textual diff available (path only, binary, rename, or oversized patch); +9 more)).
    • 16. PR [OPEN] guides(agent-substrate): Always-On Sandboxed Agents zero-wake gateway, dashboard, and guide ๐Ÿ“„ Diff (llm-d/llm-d#3161 by @liu-cong) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 3d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW [No Review Yet]: Author Follow-up ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (RL rollouts, nokube-epp, & well-lit accelerator guides); sitting 3d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+12878/-985 lines across 30 file(s)] Adds the guides/agent-substrate/always-on-agents/ sub-guide (Always-On Sandboxed Agents) layered directly onto the shared guides/agent-substrate/ base guide: Part 2 of 3 for #3167 (Topology 1 in Agent Substrate x llm-d...
      ๐Ÿ“„ View Full PR Description

      What

      Adds the guides/agent-substrate/always-on-agents/ sub-guide (Always-On Sandboxed Agents) layered directly onto the shared guides/agent-substrate/ base guide:

      • Always-on Zero-Wake Session Gateway (always-on-agents/gateway/{server.py,test_server.py,Dockerfile}, always-on-agents/manifests/session-gateway.yaml) with:
      • Dynamic Harness Runtime discovery (GET /api/templates, optional ACTOR_TEMPLATES allowlist, per-session actor_template selection on POST /api/sessions, and secret-free template metadata).
      • Harness-neutral actor protocol defaults (SESSION_ID_HEADER=X-Session-Id, X-Agent-Turn-Trace, event: agent.turn.trace, event: agent.tool.progress with backward-compatible acceptance of event: hermes.tool.progress).
      • Real-time SSE streaming (Accept: text/event-stream emitting turn.started, turn.status, live tool.progress, incremental assistant.delta, and turn.done), SQLite WAL history + trace.tool_events storage, SPIFFE mTLS atenet-router forwarding, 60s IdleSuspender, and read-only vLLM + kubectl-ate telemetry.
      • Offline, CSP-clean Chat | Dashboard single-page UI (always-on-agents/gateway/static/index.html) with a dynamic Harness Runtime selector in the sidebar/new-session flow, per-session template badges, live streaming token rendering, real-time collapsible tool activity pills, live sidebar actor states, harness-neutral inline 3-way latency breakdown pills (Resume | llm-d | Actor), stacked request-latency bars, llm-d prefix-cache KPIs, and per-LLM-call routing traces.
      • Deduplicated user walkthrough with live screenshots (always-on-agents/README.md, always-on-agents/docs/images/{chat-view,dashboard-view}.png) reusing shared ../actors/hermes (--target dev) and ../manifests/, linked from guides/agent-substrate/README.md.

      Why

      Part 2 of 3 for #3167 (Topology 1 in Agent Substrate x llm-d: Co-Design Ideas, stacked on #3160). Layers interactive, zero-wake, multi-runtime streaming cloud agent sessions directly onto the shared base guide with zero duplicated inference, actor, or prerequisite docs.

      Notes for reviewers

      • Stacked on #3160; review the always-on-agents/ additions and parent README link until #3160 merges.
      • Follow-up: #3162 adds actors/opencode/ on this exact same unmodified gateway and harness-neutral protocol.

      Testing

      • 109/109 unit tests passing (37/37 in always-on-agents/gateway/test_server.py covering /api/templates discovery, per-session actor_template selection, SESSION_ID_HEADER boundary validation, SSE streaming, live tool.progress, tool_events SQLite persistence, inflight cleanup, and error paths + 72/72 in scripts/tests/test_agent_substrate_*.py).
      • python3 scripts/guide.py render guides --recursive --check, check guides/agent-substrate, and check-manifest exit 0.
      • Live GKE 1.37 Multi-Runtime SSE Streaming E2E (single unmodified session-gateway under default SESSION_ID_HEADER=X-Session-Id, Qwen/Qwen3-32B):
      • GET /api/templates discovered 6 templates (default_template="hermes-dev-e2e", both hermes-dev-e2e and opencode-e2e ready: true, zero secret fields leaked).
      • Created concurrent Hermes (hermes-dev-e2e) and OpenCode (opencode-e2e) sessions on the same gateway without restarts.
      • Hermes Turn 1 (uname -a + PINEAPPLE-42): 2 live tool.progress events, 80 assistant.delta chunks, turn.done trace (llm_call_count=2, inference_ms=2029.02 ms, actor_exec_ms=251.46 ms, latency_ms=14303.01 ms).
      • Hermes Turn 2: recalled PINEAPPLE-42 under X-Session-Id (15 assistant.delta chunks, llm_call_count=1, latency_ms=441.42 ms).
      • OpenCode Turn 1 (go version): 3 live tool.progress events (agent.tool.progress), 7 assistant.delta chunks (go1.27.4), turn.done trace (llm_call_count=2, inference_ms=713.47 ms, actor_exec_ms=1906.47 ms, latency_ms=5928.39 ms).
      • GET /api/telemetry listed both sessions side by side with exact actor_template values; clean DELETE (200 OK) for both sessions.
      • Live GKE 1.37 Multi-Turn Benchmark & Zero-Wake E2E: Turn 1 runtime clone + go test -bench=. -benchmem -benchtime=200ms ./pkg/epp/datalayer (234.07 s total = 919.01 ms resume + 6.47 s llm-d across 3 calls + 226.68 s tools), manual suspend -> zero-wake SQLite read (served_from="sqlite_zero_wake", read_ms=0.24 ms), Turn 2 warm MEMORY resume (1383.86 ms), and clean DELETE (HTTP 200).
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
      ๐Ÿงช Nightly CI: Guide changes do not affect test-nightly (changed guide content is not exercised by any nightly-e2e workflow (guides/agent-substrate/README.md: changes commands or variables kustomize standup extracts from this README; guides/agent-substrate/actors/hermes/config.yaml.tmpl: changes executable or config content; guides/agent-substrate/actors/hermes/entrypoint.sh: changes executable or config content; guides/agent-substrate/actors/hermes/warmup.py: no textual diff available (path only, binary, rename, or oversized patch); +9 more)).
    • 17. PR [OPEN] guides(agent-substrate): Always-On Sandboxed Agents dev actor, tracing hook, and manifests ๐Ÿ“„ Diff (llm-d/llm-d#3160 by @liu-cong) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 3d (>3d Priority Bump) ๐Ÿ”ต DEEP REVIEW: Open Discussion / Comments ๐Ÿ”ด High Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (RL rollouts, nokube-epp, & well-lit accelerator guides); sitting 3d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+2444/-985 lines across 21 file(s)] Refactors guides/agent-substrate/ into a zero-duplication shared foundation (base README.md + guide.yaml, multi-stage actors/hermes, parameterized manifests/) plus the focused fleet-benchmark/ sub-guide: Part 1 of 3...
      ๐Ÿ“„ View Full PR Description

      What

      Refactors guides/agent-substrate/ into a zero-duplication shared foundation (base README.md + guide.yaml, multi-stage actors/hermes, parameterized manifests/) plus the focused fleet-benchmark/ sub-guide:

      • Keeps all overlapping two-plane architecture, prerequisites, shared llm-d + Agent Substrate deployment, metrics, and shared cleanup in guides/agent-substrate/README.md + guides/agent-substrate/guide.yaml.
      • Moves hermes/actor/ -> actors/hermes/ with a 2-stage Dockerfile (base for 1,000-agent benchmark, dev adding git, curl, ripgrep, Go 1.27.4, /workspace), env-driven HERMES_TOOLSETS / HERMES_CWD, harness-neutral session header support (X-Session-Id bridged to X-Hermes-Session-Id inside aiohttp middleware when X-Hermes-Session-Id is absent, while forwarding validated x-session-id / x-hermes-session-id / x-llm-d-inference-objective outbound only to requests matching MODEL_BASE_URL's host and port), and opt-in AGENT_TURN_TRACE=1 in sitecustomize.py supporting both non-streaming (X-Agent-Turn-Trace header <= 6144 B) and real-time SSE streaming (Accept-Encoding: identity, router x-request-id preservation with body id fallback, streaming outbound token/usage capture, and trailing event: agent.turn.trace frame before data: [DONE]).
      • Parameterizes manifests/hermes-workerpool.yaml.tmpl and manifests/hermes-template.yaml.tmpl (noting that envsubst requires exporting listed variables), keeps manifests/hermes-egress-policy.yaml.tmpl strictly router-only for fleet-benchmark/, and adds manifests/egress-policy-dev.yaml.tmpl for developer sandboxes.
      • Moves benchmark-only steps (hermes-driver.yaml, hermes_fleet_driver.py, and benchmark walkthrough) into guides/agent-substrate/fleet-benchmark/ and updates scripts/tests/test_agent_substrate_*.py.

      Why

      Part 1 of 3 for #3167 (Topology 1 in Agent Substrate x llm-d: Co-Design Ideas). Eliminates duplicated actor/manifest/guide files and standardizes the harness-neutral session/trace protocol (X-Session-Id, AGENT_TURN_TRACE, X-Agent-Turn-Trace, event: agent.turn.trace) so both Always-On Sandboxed Agents (#3161, #3162) and the 1,000-agent fleet benchmark layer cleanly on one shared foundation.

      Notes for reviewers

      • Zero breaking changes to the 1,000-agent benchmark defaults, router-only egress posture, or docs/well-lit-paths/guides.yaml.
      • Stacked PRs: #3161 (Part 2: always-on-agents/ gateway, dynamic Harness Runtime selector, SSE streaming, dashboard, docs) and #3162 (Part 3: pluggable actors/opencode/ harness on the same harness-neutral protocol).

      Testing

      • 83/83 tests passing in scripts/tests/test_agent_substrate_{fleet_driver,manifests,sitecustomize}.py with real aiohttp and httpx installed (82 passed, 1 skipped via pytest.importorskip in stdlib-only CI), covering router-only vs dev egress policies, MODEL_BASE_URL host-scoping and fail-closed behavior, router x-request-id preservation, X-Session-Id -> X-Hermes-Session-Id middleware bridging, SSE event: agent.turn.trace framing before [DONE], streaming usage/finish-reason capture, and identity encoding.
      • docker build --target base and docker build --target dev on guides/agent-substrate/actors/hermes both pass.
      • python3 scripts/guide.py render guides --recursive --check, check guides/agent-substrate, check-manifest, and emit --context ci all exit 0.
      • Live GKE 1.37 E2E (fleet-benchmark/ at reduced scale HERMES_AGENTS=3): built actors/hermes --target base, golden snapshot ready (48.9s), --agents 3 --turns 2 --concurrency 3 passed (3/3 codename recall, Turn 2 0.49s), 3/3 suspended to ACTOR_STATE_SUSPENDED, and --recall-only passed (3/3 post-suspend recall, 0.84s).
      • Live GKE 1.37 Harness-Neutral Multi-Turn SSE E2E (hermes-dev-e2e with AGENT_TURN_TRACE=1, Qwen/Qwen3-32B, default SESSION_ID_HEADER=X-Session-Id):
      • Turn 1 (uname -a + codename PINEAPPLE-42): 2 live tool.progress events, 80 incremental assistant.delta chunks, event: agent.turn.trace delivered (llm_call_count=2, inference_ms=2029.02 ms, actor_exec_ms=251.46 ms, latency_ms=14303.01 ms).
      • Turn 2 (What was the secret codename I just told you?): recalled PINEAPPLE-42 via X-Session-Id -> X-Hermes-Session-Id middleware bridge (15 assistant.delta chunks, llm_call_count=1, latency_ms=441.42 ms).
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Discussion replied by author, awaiting reviewer LGTM - @liu-cong responded to feedback (Open discussion/comment from @shimib (not yet LGTM'd/approved by @shimib)); awaiting reviewer sign-off for consensus.
      ๐Ÿงช Nightly CI: Guide changes do not affect test-nightly (changed guide content is not exercised by any nightly-e2e workflow (guides/agent-substrate/README.md: changes commands or variables kustomize standup extracts from this README; guides/agent-substrate/actors/hermes/config.yaml.tmpl: changes executable or config content; guides/agent-substrate/actors/hermes/entrypoint.sh: changes executable or config content; guides/agent-substrate/actors/hermes/warmup.py: no textual diff available (path only, binary, rename, or oversized patch); +9 more)).
    • 18. PR [OPEN] add content-derived thread identity to agent-identity ๐Ÿ“„ Diff (llm-d/llm-d-router#4786 by @D-Sai-Venkatesh) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 3d (>3d Priority Bump) โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Feature implementation / request; sitting 3d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+1239/-8 lines across 11 file(s)] Adds an opt-in content-derived thread identity to agent-identity, for requests that carry no identity headers or only a session header the operator added. Design and trade-offs are in the linked issue (Fixes #4785).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind feature

      What this PR does / why we need it:

      Adds an opt-in content-derived thread identity to agent-identity, for requests that carry no identity headers or only a session header the operator added. Design and trade-offs are in the linked issue.

      • token-producer: new produceAtRequestHeader parameter to tokenize at the RequestHeader extension point. Off by default; without it the plugin is unchanged.
      • agent-identity: new implicitIdentity parameter, with settings under implicitIdentityConfig. A request with no thread header, and either no session header or one from additionalSessionHeaders, gets its thread-id from its content; a request with no session header also gets that id as its agent-identity. All other requests behave as before.
      • New implicitidentity package: matches a request to the thread whose previous request it extends, in a bounded in-memory table with TTL eviction.
      • READMEs for both plugins.

      Test plan (new tests):

      • ☑ Thread matching: continuation, slack, tips that only move forward, multi-prompt requests, the thread cap, and TTL eviction.
      • ☑ Requests with a thread header or a built-in session header are unchanged with implicitIdentity on.
      • ☑ Headerless requests and additionalSessionHeaders requests get content-derived threads; requests without usable tokens still get a thread-id.
      • ☑ Config validation, the declared token input, and the eviction loop lifecycle.
      • ☑ produceAtRequestHeader: tokens at the header step, Produce skips, and a render failure is fail-open.
      • ☑ Config loading: the token producer runs before agent-identity, and invalid combinations fail to load.

      Which issue(s) this PR fixes:

      Fixes #4785

      Release note _(write NONE if no user-facing change)_:

      agent-identity: new opt-in `implicitIdentity` parameter derives `thread-id` from the request content for requests without a thread header and without a built-in session header; a request without a session header also gets that id as `agent-identity`. Settings are under `implicitIdentityConfig`. token-producer: new `produceAtRequestHeader` parameter tokenizes at the RequestHeader extension point, which `implicitIdentity` requires.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open discussion / comment - Open review comment/discussion from @ptimizeroracle (not yet LGTM'd/approved by @ptimizeroracle) (awaiting @D-Sai-Venkatesh's response or LGTM alignment).
      โš–๏ธ Verdict: โณ Reviewed by @ptimizeroracle - waiting for @D-Sai-Venkatesh to respond.
    • 19. PR [OPEN] Restrict gRPC methods and drop client transfer fields on native gRPC routes ๐Ÿ“„ Diff (llm-d/llm-d-router#4804 by @ahg-g) ๐Ÿ”ด P0: High Priority โœจ Feature โฐ Sitting 3d (>3d Priority Bump) โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (P/D disaggregation, sidecar, & coordinator); sitting 3d (>3d bump P1 -> P0)
      ๐Ÿ“Œ Change Summary: [+1197/-38 lines across 40 file(s)] Part of #3979. #4583 covered JSON bodies. This PR covers native gRPC routes (vllm.Inference, sglang.api.v1) in the EPP and the Coordinator.
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind feature

      What this PR does / why we need it:

      Part of #3979. #4583 covered JSON bodies. This PR covers native gRPC routes (vllm.Inference, sglang.api.v1) in the EPP and the Coordinator.

      1. gRPC method allowlist

      A model server serves admin RPCs on its generation port. vLLM serves vllm.Control (Shutdown, LoadLora, UpdateWeights, and others). SGLang serves Abort, weight updates, and SetInternalState on sglang.api.v1.SglangService. The EPP sends a path that no parser claims to the fallback parser, and the charts put passthrough-parser last for gRPC pools. The Coordinator forwards each unregistered path to the gateway. A client can therefore call these RPCs through the router.

      • EPP: The EPP answers a gRPC call with PERMISSION_DENIED (HTTP 403) unless a parser claims the method or the allowlist names it. The check runs first in the request-headers phase. It therefore also covers a request without a body, which the EPP otherwise routes to a random endpoint.
      • Coordinator: The passthrough applies the same list before it forwards to the gateway.
      • Default list: the health checks /grpc.health.v1.Health/Check, /grpc.health.v1.Health/Watch, /sglang.api.v1.SglangService/HealthCheck, and /vllm.grpc.engine.VllmEngine/HealthCheck.
      • Settings: requestHandler.grpcAllowedMethods (EPP) and server.grpc_allowed_methods (Coordinator) add methods by full name, for example /vllm.Control/GetModelInfo. The match is exact.

      The Coordinator sends only vllm.Inference/Generate, vllm.Inference/GenerateStream, and sglang.api.v1.SglangService/Generate to workers. Parsers claim all three, so a Coordinator deployment needs no entry on either engine.

      2. Transfer fields on native gRPC generate routes

      Under strip and reject, the EPP drops the client's transfer fields. These fields name the peer that a worker pulls KV blocks or encoder outputs from.

      EngineFields
      vllm.Inferencekv.kv_transfer_params, kv.ec_transfer_params
      sglang.api.v1bootstrap_host, bootstrap_port, bootstrap_room

      Under trustCaller the EPP keeps them, unless the request carries x-llm-d-unsanitized-body: true. As on JSON token routes, the EPP drops the fields and never rejects the request. The EPP logs the drop and does not count it in body_fields_sanitized_total.

      The parsers remove the fields through a new optional interface, TransferFieldsDropper, with the wire helpers vllmwire.DropTransferParams and sglangwire.DropBootstrap. The EPP forwards a request without these fields as the same frame, with no allocation.

      Behavior changes

      1. gRPC methods through the router. A gRPC call to a method that no parser claims gets PERMISSION_DENIED from the EPP and from the Coordinator passthrough. The exceptions are the health checks and the methods that the new setting names. The rule covers admin RPCs, inference RPCs without a parser (for example sglang.api.v1.SglangService/OpenAiChatCompletions), and gRPC reflection. A deployment that calls such a method through the gateway must list it. A pool whose only parser is passthrough-parser has no claimed method, so it must list each gRPC method that it serves. The charts render such a pool for router.modelServers.type: triton and for payload-agnostic.yaml.
      2. EPP behind a Coordinator on gRPC pools. The Coordinator writes the transfer fields on its gRPC legs. An EPP that receives them must set requestHandler.bodyFieldsSanitizationPolicy: trustCaller. docs/coordinator_architecture.md already requires this setting for each EPP behind the Coordinator. Without it, the EPP now drops the fields on gRPC legs too.

      Tests that changed

      Two tests asserted that a vllm.Control RPC passes through:

      • TestVLLMGRPC_DecodeOnlyTLSAndControlPassthrough (Coordinator) now lists GetServerInfo, still asserts its passthrough over TLS, and asserts PermissionDenied for GetModelInfo.
      • The EPP integration subtest for vllm.Control now sends the gRPC content type and lists the method. A new subtest asserts the denial.

      TestDirector_VertexAIPrefixCache built a StreamingServer without a parser registry. It now gets a registry with the Vertex AI parser, as in production.

      Not covered

      • The chart values for extra methods and for trustCaller, and the worker gRPC NetworkPolicy template. A second PR adds them.
      • The check keys on the gRPC content type (application/grpc, application/grpc+<subtype>). The gRPC over HTTP/2 specification tells a server to answer other content types with HTTP 415.
      • SGLang rank fields (routed_dp_rank, disagg_prefill_dp_rank), which #4533 covers.

      Testing

      • Unit tests with -race for ./pkg/..., ./cmd/..., ./internal/..., and ./apix/....
      • The hermetic integration suite (./test/integration/...), with new cases for the method check and for the field drop on both engines under strip and trustCaller.
      • make lint and make lint-security.
      • The test/e2e suites run in CI only.

      Which issue(s) this PR fixes:

      Part of #3979

      Release note:

      The EPP and the Coordinator answer a gRPC call with PERMISSION_DENIED unless a parser or route handles the method, the method is a health check, or `requestHandler.grpcAllowedMethods` (EPP) or `server.grpc_allowed_methods` (Coordinator) names it. The EPP drops client-supplied `kv.kv_transfer_params` and `kv.ec_transfer_params` on `vllm.Inference` and `bootstrap_host`, `bootstrap_port`, and `bootstrap_room` on `sglang.api.v1`, unless `requestHandler.bodyFieldsSanitizationPolicy` is `trustCaller`. An EPP behind a Coordinator must set `trustCaller` on gRPC pools. A gRPC pool whose only parser is `passthrough-parser` must list each method that it serves.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Restricts unmatched gRPC calls at both the EPP and Coordinator passthrough to four default health-check methods plus explicitly configured grpcAllowedMethods / grpc_allowed_methods, returning PERMISSION_DENIED otherwise. On native gRPC generate routes (vllm.Inference and sglang.api.v1), the EPP now drops client-supplied transfer/bootstrap fields under strip and reject (or when x-llm-d-unsanitized-body: true is set under trustCaller), leaving clean requests and HTTP JSON sanitization paths unchanged.

      ๐Ÿ—๏ธ Design
      • Shared gRPC method allowlist (pkg/common/request/grpc_methods.go:48-85): GRPCMethodAllowlist allows /grpc.health.v1.Health/Check, /grpc.health.v1.Health/Watch, /sglang.api.v1.SglangService/HealthCheck, and /vllm.grpc.engine.VllmEngine/HealthCheck by default and validates full /package.Service/Method entries at startup.
      • EPP ingress gate (pkg/epp/handlers/request.go:52-54,111-121, pkg/epp/handlers/parsers.go:124-134): HandleRequestHeaders runs rejectDisallowedGRPCMethod first when Content-Type is application/grpc*, permitting methods claimed by a non-fallback parser or allowed by GRPCMethodAllowlist and returning errcommon.Forbidden (codes.PermissionDenied) before responders or bodyless random-endpoint fallback run.
      • Coordinator passthrough gate (pkg/coordinator/server/passthrough.go:103-107): passthroughHandler.ServeHTTP enforces the same GRPCMethodAllowlist on unregistered application/grpc* paths before proxying to the gateway.
      • Wire-level transfer field stripping (pkg/epp/framework/interface/requesthandling/parser.go:102-108, pkg/epp/requestcontrol/director.go:633-674): Director.sanitizeClientFields delegates non-map payloads to TransferFieldsDropper.DropTransferFields (vllmwire.DropTransferParams in pkg/common/grpc/vllm/vllmwire/rewrite.go:52-107 and sglangwire.DropBootstrap in pkg/common/grpc/sglang/sglangwire/sglangwire.go:461-483), returning the original frame unallocated when no transfer fields are present and marking body.Mutated = true for repackage when stripped.
      ๐Ÿงช Example (How It Works)
      1. An external client sends POST /vllm.Control/Shutdown with Content-Type: application/grpc: StreamingServer.HandleRequestHeaders sees no parser claims the path and grpcMethods.Allows is false, so it immediately returns Forbidden (PERMISSION_DENIED) without routing to a pod.
      2. An external client sends POST /vllm.Inference/Generate carrying kv.kv_transfer_params under the default strip policy: vllminference-parser claims the method, Director.sanitizeClientFields invokes VllmInferenceParser.DropTransferFields -> vllmwire.DropTransferParams, strips kv_transfer_params (removing the kv submessage if empty), and sets body.Mutated = true so repackage forwards the sanitized frame.
      3. A Coordinator calls the EPP under bodyFieldsSanitizationPolicy: trustCaller on vllm.Inference/Generate: sanitizeClientFields returns early without inspecting or copying the frame unless x-llm-d-unsanitized-body: true is present.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open discussion / comment - Open discussion/comment from @cheng-hsiang-chiu (not yet LGTM'd/approved by @cheng-hsiang-chiu) (awaiting @ahg-g's response or LGTM alignment).
      โš–๏ธ Verdict: โณ Reviewed by @cheng-hsiang-chiu - waiting for @ahg-g to respond.
    • 20. PR [OPEN] docs(e-disaggregation): add the EPD vs E/PD encode-disaggregation benchmark ๐Ÿ“„ Diff (llm-d/llm-d#2733 by @roytman) ๐ŸŸก P1: Medium Priority ๐Ÿ”ง Chore / Docs โฐ Sitting 54d (>3d Priority Bump) โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response ๐Ÿ’ฌ New reply after your comment
      ๐ŸŽฏ TL Priority Triage: TL Triage: Docs, chore, test, or dependency maintenance; sitting 54d (>3d bump P2 -> P1)
      ๐Ÿ“Œ Change Summary: [+83/-0 lines across 5 file(s)] The E-Disaggregation guide described when encode disaggregation should help, but carried no measurements. This adds a ## Benchmark section with them, between Verification and Cleanup.
      ๐Ÿ“„ View Full PR Description

      Summary

      The [E-Disaggregation guide](guides/multimodal-serving/e-disaggregation/README.md) described
      when encode disaggregation should help, but carried no measurements. This adds a ## Benchmark
      section with them, between Verification and Cleanup.

      • guides/multimodal-serving/e-disaggregation/README.md โ€” new ## Benchmark section:
      • What Was Compared: the two arms, EPD (aggregated, one pod runs Encode + Prefill +

      Decode, aggregation-epp) and E/PD (an encode-only pod plus a prefill+decode pod,
      e-disaggregation-epp), and why the comparison is E/PD and not E/P/D.

      • Test Environment: model, benchmark tool and flags, image count and resolution,

      token lengths, request count, concurrency, rates, seed.

      • Results: mean E2E, TTFT and TPOT per request rate, with deltas, plus the three plots.
      • What the Numbers Show: where the gain comes from and the conditions it needs.
      • guides/multimodal-serving/e-disaggregation/benchmark-results/ โ€” the three comparison

      plots and summary.csv (one row per run).

      Fix: #1954

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open discussion / comment - Open review comment/discussion from @capri-xiyue (not yet LGTM'd/approved by @capri-xiyue) (awaiting @roytman's response or LGTM alignment).
      ๐Ÿงช Nightly CI: Guide changes do not affect test-nightly (guides/multimodal-serving/e-disaggregation/README.md: README edit leaves the commands and variables kustomize standup extracts unchanged; guides/multimodal-serving/e-disaggregation/benchmark-results/e2e_comparison.png: documentation or repository metadata; nightly E2E never reads it; guides/multimodal-serving/e-disaggregation/benchmark-results/summary.csv: new file in guides/multimodal-serving/e-disaggregation/benchmark-results/, which does not exist on the default branch; no existing nightly job reads it; guides/multimodal-serving/e-disaggregation/benchmark-results/tpot_comparison.png: documentation or repository metadata; nightly E2E never reads it; +1 more).
      โš–๏ธ Verdict: โณ Reviewed by @capri-xiyue - waiting for @roytman to respond.
    • 21. PR [OPEN] perf(epp): poll the dispatch ticker at the idle cadence when the queues are empty ๐Ÿ“„ Diff (llm-d/llm-d-router#4871 by @zhouyou9505) ๐ŸŸก P1: Medium Priority ๐Ÿ› Bug Fix โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (Admission, flow control, & saturation)
      ๐Ÿ“Œ Change Summary: [+188/-3 lines across 4 file(s)] Processor.Run polls a 1 ms ticker and runs a full dispatchCycle on every tick.
      ๐Ÿ“„ View Full PR Description
      The EPP flow-control processor now polls its dispatch ticker once per 100 ms instead of once per millisecond while its queues are empty, which removes the CPU burn and allocation churn of a full dispatch cycle on every idle tick. A new request still dispatches immediately, and a queue that holds work keeps the 1 ms cadence.

      Problem

      Processor.Run polls a 1 ms ticker and runs a full dispatchCycle on every tick. A cycle locates the endpoint pool, partitions it into prefill/decode/interleaved, runs the saturation detector over every endpoint two or three times, and rewrites about eight gauges. On an idle processor โ€” no requests at all โ€” all of that is pure waste, and it runs 1000 times per second per pool.

      Measured on 2188d9fa with the benchmark added in this PR (BenchmarkDispatchCycleIdle, Apple M4, empty queues):

      Endpointsns/cycleB/cycleallocs/cycleCPU at 1 kHzGarbage at 1 kHz
      01033496161.0 ms/s0.5 MB/s
      1012361,168221.2 ms/s1.2 MB/s
      10026256,768252.6 ms/s6.8 MB/s
      10001149752,0812811.5 ms/s52 MB/s

      The allocation column matters as much as the CPU one: an idle replica generating 52 MB/s of garbage at 1000 endpoints keeps the GC running for no reason.

      Fix

      dispatchCycle now reports whether it found something it could have dispatched. Run reads that flag and, while it is false, polls once per idleCycleEvery ticks (100 ms) instead of every tick. The 1 ms cadence is kept otherwise.

      Two properties prevent a latency regression:

      • A new item dispatches immediately. The enqueueChan case calls dispatchCycle directly and resets the idle counter, so a fresh request never waits for the slow cadence.
      • A queue that holds work keeps the fast cadence. A cycle marks itself queued when selectItem returns an item, and also when a band is held back by the saturation gate: the cycle cannot see behind the gate, so it assumes the band may hold work. That is the case where a blocked request waits for capacity to free up, and it must keep polling at 1 ms.

      Only the idle sampling rate changes. The saturation gauges, the capacity-utilization gauges and the regime sample are still refreshed every 100 ms, and drainEstimator.syncBusy derives its intervals from timestamps rather than assuming a tick length, so the Retry-After estimate is unaffected.

      Tests

      • TestProcessor_IdleTickerCadence drives a real ticker with an empty queue for 300 ms and asserts the saturation detector ran at most 30 times. On main it runs 300 times; with this change it runs a handful.
      • TestProcessor_BusyTickerKeepsFastCadence queues an item behind a saturated band (gated, so it cannot dispatch) and asserts the cycle keeps running at the fast cadence.

      newTestHarness now takes a testing.TB so the benchmark can reuse it. No test behaviour changed.

      go test ./pkg/epp/...
      golangci-lint run ./pkg/epp/flowcontrol/...

      Refs #3961 (item 6).

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open questions awaiting author (1 open, 0 resolved) - Feedback/questions from @paolo-perrone on processor.go:632 awaiting @zhouyou9505's response.
      โš–๏ธ Verdict: โณ Reviewed by @paolo-perrone (1 open comment thread(s)) - waiting for @zhouyou9505 to respond.
    • 22. PR [OPEN] fix(sidecar): resolve mooncake engine by global dp rank suffix ๐Ÿ“„ Diff (llm-d/llm-d-router#4937 by @SteeveRan) ๐ŸŸก P1: Medium Priority ๐Ÿ› Bug Fix โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (P/D disaggregation, sidecar, & coordinator)
      ๐Ÿ“Œ Change Summary: [+206/-26 lines across 6 file(s)] Under hybrid/external DP LB, vLLM runs one bootstrap server per prefill instance and the MooncakeConnector registers workers keyed by LOCAL dp rank, while the EPP picks a GLOBAL rank (x-data-parallel-rank) (Fixes #4936).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind bug

      What this PR does / why we need it:

      Under hybrid/external DP LB, vLLM runs one bootstrap server per prefill instance and the MooncakeConnector registers workers keyed by LOCAL dp rank, while the EPP picks a GLOBAL rank (x-data-parallel-rank). On any prefill pod started with --data-parallel-start-rank > 0 the sidecar's lookup of that global rank against the bootstrap registry missed, and every request routed to the pod failed with 502 (mooncake prefill <pod>:8000 has no engine_id for dp_rank "6"). Prefill pods at start-rank 0 kept working, so the bug only shows in multi-node DP prefill groups.

      This PR indexes each bootstrap registry entry by the global dp rank parsed from the vLLM engine_id suffix <uuid>_dpN in addition to its raw key:

      • fetchMooncakeEngineMap now builds a mooncakeEngineMap with byRank (raw registry keys) and byGlobal (rank from the _dpN suffix).
      • Lookup prefers the global index: raw keys are local ranks and can silently collide with the global space when local and global ranks overlap (e.g. dp_size_local 6, start-rank 2), which would pick the wrong engine.
      • Engines without a _dpN suffix (e.g. SGLang) fall back to the raw keys, preserving today's behavior.
      • The header sent to the prefill frontend stays the EPP-picked global rank, so start-rank-0 pods (suffix == key) and a future vLLM that registers global keys behave identically.

      The bootstrap registry map cache (mooncakeEngineIDs LRU) now stores *mooncakeEngineMap; existing tests were updated for the new cache type.

      Which issue(s) this PR fixes:
      Fixes #4936

      Release note _(write NONE if no user-facing change)_:

      Fixes PD-disaggregation mooncake routing returning 502 for every request routed to a prefill pod with --data-parallel-start-rank > 0 under hybrid/external DP LB.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open questions awaiting author (1 open, 0 resolved) - Feedback/questions from @paolo-perrone on connector_mooncake.go:308 awaiting @SteeveRan's response.
      โš–๏ธ Verdict: โณ Reviewed by @paolo-perrone (1 open comment thread(s)) - waiting for @SteeveRan to respond.
    • 23. PR [OPEN] fix(sidecar): emit global dp rank when auto-picking a mooncake engine ๐Ÿ“„ Diff (llm-d/llm-d-router#4939 by @SteeveRan) ๐ŸŸก P1: Medium Priority ๐Ÿ› Bug Fix โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (P/D disaggregation, sidecar, & coordinator)
      ๐Ÿ“Œ Change Summary: [+78/-0 lines across 2 file(s)] When the EPP provides no prefill rank, prepareMooncakeKVParams auto-picks a bootstrap registry entry and pins prefill with its raw key as X-Data-Parallel-Rank (Fixes #4938).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind bug

      What this PR does / why we need it:

      When the EPP provides no prefill rank, prepareMooncakeKVParams auto-picks a bootstrap registry entry and pins prefill with its raw key as X-Data-Parallel-Rank. Under hybrid/external LB the raw registry keys are the LOCAL dp ranks while the prefill frontend routes the header by GLOBAL rank, so on pods started with --data-parallel-start-rank > 0 the auto-pinned header named another pod's rank space and could disagree with the engine_id handed to decode in kv_transfer_params.remote_engine_id.

      The fix translates the picked engine_id through its _dpN suffix (mooncakeGlobalRank, an independent implementation of the same parsing) and emits that global rank in the header, so the pinned header names the same engine whose engine_id decode receives:

      • Independent of #4937: applies on top of current main, whose registry is a plain raw-key map. When #4937 merges, this PR rebases onto its mooncakeGlobalRank with a trivial conflict resolution.
      • Pods at start-rank 0 are unchanged (suffix == raw key).
      • Engines without a _dpN suffix (e.g. SGLang) keep the raw key โ€” today's behavior. The existing TestMooncakePrefillDPRankNoneSelectsRandomRank covers exactly that path and is untouched.
      • New test TestMooncakePrefillDPRankNoneUsesGlobalRankFromSuffix: no EPP rank, local keys 0โ€“1 with engine_ids suffixed _dp6/_dp7 โ†’ prefill header is a global rank (6/7) whose engine_id matches remote_engine_id sent to decode.

      Which issue(s) this PR fixes:
      Fixes #4938

      Release note _(write NONE if no user-facing change)_:

      Fixes the PD-disaggregation mooncake path auto-pinning a LOCAL dp rank in X-Data-Parallel-Rank when no EPP rank is provided, which misrouted prefill on pods with --data-parallel-start-rank > 0.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open questions awaiting author (1 open, 0 resolved) - Feedback/questions from @paolo-perrone on connector_mooncake.go:135 awaiting @SteeveRan's response.
      โš–๏ธ Verdict: โณ Reviewed by @paolo-perrone (1 open comment thread(s)) - waiting for @SteeveRan to respond.
    • 24. PR [OPEN] fix(coordinator): retry failed renders and return 503 when unreachable ๐Ÿ“„ Diff (llm-d/llm-d-router#4949 by @roytman) ๐ŸŸก P1: Medium Priority ๐Ÿ› Bug Fix โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (KV-cache indexing, ZMQ events, & wire fidelity)
      ๐Ÿ“Œ Change Summary: [+203/-19 lines across 7 file(s)] Chaos testing in #4851 (scenarios 8 and 9) found two problems in the coordinator's render step: This PR changes the render step's HTTP call: Tradeoffs for review: docs/coordinator_architecture.md lists the 503 case in the error... (Fixes #4944)
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind bug

      What this PR does / why we need it:

      Chaos testing in #4851 (scenarios 8 and 9) found two problems in the coordinator's render step:

      • With two tokenizer pods, force-killing one failed 10 client requests with 502 internal error. 7 of them failed only after the full render timeout (15s in that deployment). There was no retry, although the other tokenizer pod was healthy.
      • With the tokenizer pool scaled to 0, every request got an immediate 502 internal error, which does not tell the client the cause.

      This PR changes the render step's HTTP call:

      • Retry once. After a transport error (dropped connection, refused dial, or the per-attempt client timeout) or a 5xx, the request is sent a second time, so the Service can route it to another pod. A 4xx is never retried and passes through as before. There is no retry once the client's request context has ended.
      • 503 when unreachable. When the last attempt cannot connect to the render service at all (dial error: connection refused, no such host, dial timeout), the client gets 503 with render service unavailable (request_id: <id>). A new pipeline.ErrServiceUnavailable sentinel carries this from the step to classifyPipelineError. Other final failures keep their 502.
      • Dial timeout below the client timeout. The render dialer timeout is half the render timeout, capped at 30s. With the two equal, a dial to an address that drops SYNs hit the client deadline first and surfaced as a context error with no dial error, so it got 502 instead of 503. The coordinator.yaml comment documents the cap.

      Tradeoffs for review:

      • Because a timed-out attempt is retried, one request can wait up to twice the render timeout. The coordinator.yaml comment documents this. A retry that skips timeouts would miss 7 of the 10 failures measured in scenario 8.
      • The retry is an HTTP-level retry inside the render step. It is separate from pipeline.max_step_reruns, which defaults to 0 and covers only the gRPC prefill and decode legs.
      • The second attempt can reuse an idle pooled connection to the same dead pod. Forcing a new connection is possible later if chaos runs still show double timeouts.
      • Final dial failures from render are counted with error_code=upstream_transport instead of internal. A final timeout or dropped connection after the connection was established stays internal.
      • With the default 30s timeout, connecting to the render service gives up after 15s instead of 30s.

      docs/coordinator_architecture.md lists the 503 case in the error mapping.

      Test plan:

      • ☑ A render that fails once with a 5xx, a dropped connection, or an attempt timeout succeeds on the second attempt, and the second attempt receives the full body
      • ☑ A 4xx from the render service is sent once and not retried; a persistent 5xx is sent twice and keeps its existing status
      • ☑ An unreachable render service gives 503 with render service unavailable and the request id, for both the step error and the client response
      • ☑ A render whose final attempt loses its connection keeps its 502 and is not reported as unavailable
      • ☑ A dial to a blackholed address returns 503 before the client timeout (manual probe against 10.255.255.1)
      • ☑ go test -race ./pkg/coordinator/... and make presubmit pass

      Which issue(s) this PR fixes:
      Refs #4851
      Fixes #4944

      Release note _(write NONE if no user-facing change)_:

      The coordinator retries a failed render request once after a connection error, timeout, or 5xx from the tokenizer, so a request can wait up to twice the render `timeout`. When no tokenizer can be reached, clients get 503 `render service unavailable` with the request id instead of 502 `internal error`.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open questions awaiting author (1 open, 0 resolved) - Feedback/questions from @paolo-perrone on render.go:142 awaiting @roytman's response.
      โš–๏ธ Verdict: โณ Reviewed by @paolo-perrone (1 open comment thread(s)) - waiting for @roytman to respond.
    • 25. PR [OPEN] fix(kvevents): trace KV-event index writes only with event tracing on ๐Ÿ“„ Diff (llm-d/llm-d-router#4963 by @pavanipenumalla) ๐ŸŸก P1: Medium Priority ๐Ÿ› Bug Fix โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (KV-cache indexing, ZMQ events, & wire fidelity)
      ๐Ÿ“Œ Change Summary: [+86/-8 lines across 5 file(s)] With router tracing on and the precise-prefix-cache-producer, every KV event produces an index_add or index_evict span even when kvEventsConfig.tracing is off (Fixes #4962).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?

      /kind bug

      What this PR does / why we need it:

      With router tracing on and the precise-prefix-cache-producer, every KV event produces an index_add or index_evict span even when kvEventsConfig.tracing is off. No span is running when a KV event is processed, so each one is the root of its own trace, and these traces make up almost all of the exported volume.

      When Config.Tracing is off, NewPool now uses the index without its tracing wrapper, through a new kvblock.WithoutTracing helper that returns the index NewTracedIndex wrapped. With event tracing on, the pool keeps the traced index and the index spans nest under events_process as before. The request path keeps the traced index, so index_walk spans are unchanged, and the index metrics sit below the tracing wrapper, so they are unchanged too. The comment on Config.Tracing and the producer README describe the index spans as part of event tracing.

      Benchmark on the same workload (one vLLM pod, Qwen3-30B-A3B, 55 agentic sessions, 1,150 requests, always_on, kvEventsConfig.tracing unset):

      mainThis PR
      KV-event messages received65,72062,790
      Traces155,5411,151
      Request traces (each with its index_walk)1,1501,150
      Single-span index_add / index_evict traces154,3900
      Exported spans as OTLP JSON100 MB14 MB

      Tests:

      • ☑ Unit tests: a pool over a traced index records no index span for a KV event with event tracing off, and records index_add under events_process with it on.
      • ☑ Unit tests: WithoutTracing returns the wrapped index for both traced wrappers, and returns an index without the wrapper unchanged.
      • ☑ make presubmit passes.

      Which issue(s) this PR fixes:
      Fixes #4962

      Release note _(write NONE if no user-facing change)_:

      With `kvEventsConfig.tracing` off (the default), the precise prefix cache producer no longer emits an `index_add` or `index_evict` span, each its own trace, for every KV event. These spans are emitted with event tracing on, under `events_process`.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open questions awaiting author (1 open, 0 resolved) - Feedback/questions from @paolo-perrone on pool.go:366 awaiting @pavanipenumalla's response.
      โš–๏ธ Verdict: โณ Reviewed by @paolo-perrone (1 open comment thread(s)) - waiting for @pavanipenumalla to respond.
    • 26. PR [OPEN] docs(operations): add Router High Availability ๐Ÿ“„ Diff (llm-d/llm-d#3195 by @vMaroon) ๐ŸŸข P2: Low Priority ๐Ÿ”ง Chore / Docs โณ NEED AUTHOR RESPONSE: Awaiting Author Follow-up โณ Need Author Response ๐Ÿ’ฌ New reply after your comment
      ๐ŸŽฏ TL Priority Triage: TL Triage: Docs, chore, test, or dependency maintenance
      ๐Ÿ“Œ Change Summary: [+286/-3 lines across 4 file(s)] Adds docs/operations/components/router-high-availability.md, one page for the router's HA features. Router Operations summarizes the HA modes, and the rest lives across the llm-d-router repo.
      ๐Ÿ“„ View Full PR Description

      Summary

      Adds docs/operations/components/router-high-availability.md, one page for the router's HA features. Router Operations summarizes the HA modes, and the rest lives across the llm-d-router repo. The page covers:

      • HA modes (all-active, priority routing, GKE preferred backends, leader election) - which replicas serve, failover, and the values for each.
      • What state each kind of scheduling plugin holds, and which of it all-active replicas share.
      • State sharing with p2p-syncer or redis-syncer, peer discovery with k8s-peer-discovery, and request-level coordination of rollout revisions.
      • Health-checked rotation and drain, fail-open, flow control with several replicas, disruption budgets, rollout strategy, autoscaling, and the cross-replica sync metrics.

      router.md links to the page, and its plugin compatibility note says that per-replica plugins such as approximate prefix caching need a cross-replica syncer in active-active mode, instead of telling readers to avoid them. The page sits under Operations in docs/menu-config.json and docs/operations/README.md.

      Validation

      Docs only. Not run on a cluster.

      • Plugin names, config keys, chart values and defaults, flags and metric names checked against llm-d-router main (2188d9fa): chart values.yaml and templates, pkg/epp/server/options.go, and the p2p-syncer, redis-syncer, k8s-peer-discovery and flow control READMEs.
      • Relative links and anchors resolve.
      • uvx prek run --from-ref origin/main --to-ref HEAD passes (markdownlint, check json).

      Limits: the failover times and scaling factors in the HA modes table are the numbers from the router's operations guide, which the page cites.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open questions awaiting author (10 open, 0 resolved) - Feedback/questions from @ahg-g, @liu-cong, @capri-xiyue on router-high-availability.md, router.md awaiting @vMaroon's response.
      โš–๏ธ Verdict: โณ Reviewed by @ahg-g, @liu-cong (5 open comment thread(s)) - waiting for @vMaroon to respond.

    3.5 Other

    Historical tracking (closed within 30 days) and other participating issues.
    ๐ŸŽฏ Section Priority Filter:
    • 1. Issue [CLOSED] [Incubation] llm-d-infra-providers: community-owned infrastructure provisioning for llm-d (llm-d/llm-d#2427 by @yangligt2) ๐ŸŸก P1: Medium Priority โœจ Feature Request ๐Ÿ”ต DEEP REVIEW ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Feature implementation / request
      ๐Ÿ“Œ Change Summary: This is the concrete execution step for RFC #2168: create llm-d-incubation/llm-d-infra-providers, the community-owned home for per-provider infrastructure provisioning tooling and guides (everything up to "the cluster is ready...
      ๐Ÿ“„ View Full Issue Description

      Summary

      This is the concrete execution step for RFC #2168: create llm-d-incubation/llm-d-infra-providers, the community-owned home for per-provider infrastructure provisioning tooling and guides (everything up to "the cluster is ready to host llm-d"). One sub-folder per provider, each with its own OWNERS reviewing its own PRs. Any provisioning method is acceptable (guided docs, scripts/IaC, AI skills), and per the discussion in #2168 a provider sub-folder may link out to externally hosted tooling; this repo is the centralized discovery entry point. Provisioning tooling is qualified against a dimension-labeled conformance/validation suite rather than by prescribing a method.

      Why

      Running llm-d has two layers: infrastructure provisioning (accelerators, RDMA networking, drivers, CRDs) and stack installation (well-lit path guides). The guides are maintained and CI-validated; docs/infrastructure is loosely maintained, and core llm-d cannot own provisioning tooling for every provider and accelerator without stalling core velocity (see #2168 for the full problem statement; feedback there has been supportive, including from project maintainers).

      Scope

      In scope:

      • Per-provider provisioning tooling/guides (providers/<name>/ with per-provider OWNERS), including links to externally hosted provider tooling
      • Migration of llm-d/docs/infrastructure provider and gateway content
      • Pilot home of the dimension-labeled conformance/validation suite (runner + checks + fabric micro-tests) until #2168 settles its final location (the RFC targets core llm-d as the source of truth; the check contract is layout-independent so the move is mechanical)

      Out of scope:

      • Stack installation (owned by the well-lit path guides in core llm-d)
      • Any change to core llm-d release/CI processes

      Evidence: working PoC

      https://github.com/yangligt2/llm-d-infra-providers-poc - ready to transfer as the initial content:

      • Repo skeleton with GOVERNANCE/CONTRIBUTING/per-provider OWNERS; GKE as pilot provider (guided docs, deterministic provisioning scripts for the DRA+DRANET and multi-networking+gIB paths, and an AI skill); AKS/DigitalOcean/minikube/OpenShift docs migrated from docs/infrastructure and awaiting owners.
      • Conformance/validation suite: llmd-infra-check runner, static checks and NCCL/NIXL fabric micro-tests labeled with the same dimensions the guides use (infra_provider, accelerator, rdma, dra, router_mode, gateway_provider).
      • Validated on live GKE clusters. On an 86-node A4X (GB200) cluster the full run passes including the two-node NCCL micro-test: peak bus bandwidth 189.3 GB/s, ~95% of the 4x400G line rate, with sanitized captures committed under conformance/examples/.

      Relationship to existing repos

      • Distinct from llm-d-incubation/llm-d-infra (helm charts for deploying llm-d); this repo is about cluster readiness, not stack deployment.
      • llm-d-incubation/hermes (cluster configuration scanning / self-test generation) is adjacent to the validation suite; we propose reconciling the two in sig-installation as part of the first milestone rather than blocking repo creation on it.

      First milestone

      • ☐ Repo created; PoC content transferred with README stating purpose and goal (per PROJECT.md incubation rules)
      • ☐ Provider ownership drive in #sig-installation; seed OWNERS for at least one non-GKE provider
      • ☐ Migrate/redirect llm-d/docs/infrastructure provider content
      • ☐ Resolve the conformance suite's final home in #2168 (core llm-d vs. plugin-path split)
      • ☐ Full micro-test qualification runs for the GKE pd-disaggregation and wide-ep-lws profiles

      Maintainers

      The ownership model is per-provider: each providers/<name>/ sub-folder carries its own OWNERS file, and contributions touching a given provider's infrastructure are approved by that provider's maintainers, not by the repo-level maintainers. We explicitly want a maintainer from each infra provider to own approvals for their sub-folder, and ask each provider to nominate at least one. Repo-level maintainers only curate repository structure and the shared conformance framework.

      Bootstrap (repo-level and GKE provider):

      • @yangligt2 (Google)
      • @liu-cong (Google)

      The ask

      Create llm-d-incubation/llm-d-infra-providers as an incubation repository. SIG: Installation.

      /cc @liu-cong @gushob21 @ahg-g @chcost @robertgshaw2-redhat @xiaojun-zhang @chewong

      ๐Ÿ’ฌ Discussion Summary: ๐Ÿ’ฌ Ongoing discussion (9 comment(s) across @yangligt2, @OguzPastirmaci, @robertgshaw2-redhat) - Latest update from @liu-cong; no blocking debate.
    • 2. PR [CLOSED] [ROCm] Enable SGLang precise and predicted guides for AMD ๐Ÿ“„ Diff (llm-d/llm-d#2964 by @vcave) ๐ŸŸก P1: Medium Priority โœจ Feature ๐Ÿ”ต DEEP REVIEW ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (RL rollouts, nokube-epp, & well-lit accelerator guides)
      ๐Ÿ“Œ Change Summary: [ROCm] Enable SGLang precise and predicted guides for AMD (in llm-d/llm-d)
      ๐Ÿ“„ View Full PR Description

      No description provided.

      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Extends precise-prefix-cache-routing and predicted-latency-routing to SGLang on AMD ROCm (MI355X), adds centralized ROCm 10 image components while bumping existing rocm720/rocm724 SGLang image tags to v1.0.0, and wires nightly E2E and Slack notification workflows. Router Helm values and the shared CPU tokenizer deployment template remain unchanged.

      ๐Ÿ—๏ธ Design
      ๐Ÿงช Example (How It Works)
      1. Set ACCELERATOR_TYPE=amd and MODEL_SERVER=sglang in precise-prefix-cache-routing (INFRA_PROVIDER=base, MODEL=Qwen/Qwen3-32B).
      2. deploy.tokenizer applies guides/precise-prefix-cache-routing/modelserver/amd/sglang/tokenizer/, standing up the CPU vllm launch render pool so EPP's token-producer can tokenize prompts at http://precise-prefix-cache-routing-tokenizer:8000.
      3. deploy.modelserver applies guides/precise-prefix-cache-routing/modelserver/amd/sglang/base/, running 2 Qwen/Qwen3-32B (TP=2) SGLang replicas that publish 64-token KV-cache events over ZMQ port 5556 to EPP.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No discussion yet - No human reviews or comments yet; no debate or open questions (awaiting initial review).
    • 3. PR [CLOSED] fix(epp): read every gRPC frame in a vllmgrpc response chunk ๐Ÿ“„ Diff (llm-d/llm-d-router#4189 by @dundysm) ๐ŸŸก P1: Medium Priority ๐Ÿ› Bug Fix ๐Ÿ”ต DEEP REVIEW ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core subsystem bug fix (P/D disaggregation, sidecar, & coordinator)
      ๐Ÿ“Œ Change Summary: The vllmgrpc response parser decoded only the first length-prefixed gRPC frame of each response body chunk and ignored the rest (Fixes #3644).
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind bug

      What this PR does / why we need it:

      The vllmgrpc response parser decoded only the first length-prefixed gRPC frame of each response body chunk and ignored the rest. The handler's completeGRPCFrames already hands the parser whole frames and carries a split frame to the next chunk, but one chunk can still hold several frames. When a GenerateComplete shares a chunk with the preceding GenerateStreamChunk, its usage was dropped and the request was recorded with no token counts.

      ParseResponse now walks every frame with grpcframe.ForEachPayload, the same iterator the sglanggrpc parser uses. Per-frame decoding (GenerateResponse, falling back to EmbedResponse) is unchanged and moved into parseResponsePayload. When several frames carry usage, the last one wins, matching the vertexai parser. A frame that cannot be decoded is reported in the returned error, and the usage of the other frames in the chunk is still returned. The single-frame toGenerateResponse and toEmbedResponse helpers are removed since they have no other callers.

      The empty end-of-stream body handling from #3652 is unchanged.

      Which issue(s) this PR fixes:
      Fixes #3644

      Test plan:

      • ☑ A chunk holding a usage-less stream chunk followed by a GenerateComplete reports the complete frame's usage (fails on main with no usage).
      • ☑ When several frames carry usage, the last one is reported (fails on main, which reports the first).
      • ☑ Usage parsed before a truncated trailing frame, or around an unrecognized frame, is kept and the error is returned.
      • ☑ go test ./pkg/epp/framework/plugins/requesthandling/... ./pkg/epp/handlers/... passes; golangci-lint run on the package reports 0 issues.

      Release note _(write NONE if no user-facing change)_:

      Fixed the vLLM gRPC response parser dropping token usage when several gRPC frames arrive in one response body chunk.
      ๐Ÿงญ How This Change Works (Summary, Design & Example)
      ๐Ÿ“Œ Change Summary

      Fixes vllmgrpc response parsing where multiple length-prefixed gRPC frames arriving in a single chunk caused frames after the first to be ignored. It adopts grpcframe.ForEachPayload to iterate through all frames in the chunk, reporting the last usage observed and aggregating parse errors while preserving prior usage. The empty end-of-stream body handling remains unchanged.

      ๐Ÿ—๏ธ Design
      • Calls grpcframe.ForEachPayload in pkg/epp/framework/plugins/requesthandling/parsers/vllmgrpc/vllmgrpc.go#L150 to sequentially extract each uncompressed message payload from multi-frame chunks.
      • Refactors single-frame unmarshaling into parseResponsePayload, testing GenerateResponse first and falling back to EmbedResponse.
      • Preserves usage extracted from earlier frames when a subsequent frame fails to parse or is truncated, joining all frame errors via errors.Join.
      ๐Ÿงช Example (How It Works)
      1. A stream chunk arrives carrying two gRPC frames: an intermediate GenerateResponse_Chunk with 0 usage tokens, followed immediately by GenerateResponse_Complete with prompt: 20, completion: 15, cached: 5.
      2. grpcframe.ForEachPayload executes the callback for the first frame (no usage written) and then the second frame, recording completeUsage into result.Usage.
      3. ParseResponse returns result with complete token metrics intact, preventing the request from recording zero tokens.
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open discussion / comment - Open discussion/comment from @ahg-g (not yet LGTM'd/approved by @ahg-g) (awaiting @dundysm's response or LGTM alignment).
    • 4. PR [CLOSED] [feat][tiered-prefix-cache]: migrate Intel XPU LMCache overlays to MP mode ๐Ÿ“„ Diff (llm-d/llm-d#3087 by @xiaojun-zhang) ๐ŸŸก P1: Medium Priority โœจ Feature ๐Ÿ”ต DEEP REVIEW ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Core TL subsystem feature (KV-cache indexing, ZMQ events, & wire fidelity)
      ๐Ÿ“Œ Change Summary: LMCache in-process mode is deprecated. Migrate the Intel XPU CPU and filesystem overlays to LMCache MP mode with one cache server per node and inline transfers.
      ๐Ÿ“„ View Full PR Description
      Issue

      LMCache in-process mode is deprecated.

      Fix

      Migrate the Intel XPU CPU and filesystem overlays to LMCache MP mode with one cache server per node and inline transfers. Update the XPU Dockerfile to LMCache 0.5.8 and select the published PR image for the guide and nightly workflow.

      Also, this PR is part of issue #3071 . Need to fix LMCache related issues for XPU before migrating xpu to use upstream images.

      Note: I suppose we should migrate to MP mode for other platforms as well, but keep this PR for XPU only.

      Validation

      router inference and CPU cache reuse after a vLLM restart on Intel XPU B60 card:

      LMCache server log

      2026-11-20T13:06:57.412850656-08:00 [2026-11-20 21:06:57,412] LMCache INFO: Registered non-GPU context for instance 3377433928789861399 (model=Qwen/Qwen3-8B, world_size=1) (engine_driven_transfer.py:463:lmcache.v1.multiprocess.modules.engine_driven_transfer)
      2026-11-20T13:09:20.414955092-08:00 [2026-11-20 21:09:20,414] LMCache INFO: Retrieved 2560 tokens in 1.233 seconds (engine_driven_transfer.py:734:lmcache.v1.multiprocess.modules.engine_driven_transfer)

      vLLM log

      2026-11-20T13:06:38.275770885-08:00 (APIServer pid=1) [2026-11-20 21:06:38,275] LMCache INFO: torch_dev=<module 'torch.xpu' from '/opt/venv/lib/python3.12/site-packages/torch/xpu/__init__.py'>, torch_device_type=xpu (_device_detect.py:311:lmcache.v1.platform._device_detect)
      2026-11-20T13:06:54.640620268-08:00 (EngineCore pid=246) [2026-11-20 21:06:54,640] LMCache INFO: torch_dev=<module 'torch.xpu' from '/opt/venv/lib/python3.12/site-packages/torch/xpu/__init__.py'>, torch_device_type=xpu (_device_detect.py:311:lmcache.v1.platform._device_detect)
      2026-11-20T13:06:57.340015505-08:00 (EngineCore pid=246) INFO 11-20 21:06:57 [factory.py:62] Creating v1 connector with name: LMCacheMPConnector and engine_id: 813c399b-93b8-45cd-86bf-1f5a6436469b
      2026-11-20T13:06:57.411953103-08:00 (EngineCore pid=246) [2026-11-20 21:06:57,411] LMCache INFO: Creating transfer context (device_type=xpu, mode=engine_driven) (worker_transfer.py:1685:lmcache.v1.multiprocess.transfer_context.worker_transfer)
      2026-11-20T13:06:57.413168026-08:00 (EngineCore pid=246) [2026-11-20 21:06:57,413] LMCache INFO: Worker engine-driven context registered (instance_id=3377433928789861399, mode=inline, groups=1) (worker_transfer.py:1092:lmcache.v1.multiprocess.transfer_context.worker_transfer)
      2026-11-20T13:07:59.749819203-08:00 (EngineCore pid=246) INFO 11-20 21:07:59 [factory.py:62] Creating v1 connector with name: LMCacheMPConnector and engine_id: 813c399b-93b8-45cd-86bf-1f5a6436469b
      2026-11-20T13:07:59.769758910-08:00 (EngineCore pid=246) [2026-11-20 21:07:59,769] LMCache INFO: Bind GPU block pool in LMCacheMPConnector scheduler (lmcache_mp_connector.py:1281:lmcache.integration.vllm.lmcache_mp_connector)
      2026-11-20T13:09:21.740932383-08:00 (APIServer pid=1) INFO 11-20 21:09:21 [loggers.py:315] Engine 000: Avg prompt throughput: 4.1 tokens/s, Avg generation throughput: 0.6 tokens/s, Running: 0 reqs, Waiting: 0 reqs, XPU KV cache usage: 0.0%, Prefix cache hit rate: 0.0%, External prefix cache hit rate: 98.4%
      2026-11-20T13:09:21.740956855-08:00 (APIServer pid=1) INFO 11-20 21:09:21 [metrics.py:107] KV Transfer metrics: LMCache MP lookup count=1, LMCache MP lookup avg latency (ms)=3.847
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No reviewer discussion yet - Only author notes from @xiaojun-zhang (4 comment(s)); awaiting initial review.
    • 5. Issue [CLOSED] Release v1.1.0 (llm-d/llm-d-router#4935 by @liu-cong) ๐ŸŸก P1: Medium Priority โœจ Feature Request ๐Ÿ”ต DEEP REVIEW ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Feature implementation / request
      ๐Ÿ“Œ Change Summary: Introduction. This document defines the process for releasing llm-d-router.
      ๐Ÿ“„ View Full Issue Description

      Introduction

      This document defines the process for releasing llm-d-router.

      Prerequisites

      1. Permissions to push to the llm-d-router repository.
      1. Membership in the @llm-d/router-release-managers team. Tag protection on

      refs/tags/v* restricts who can push release tags, which is what triggers
      the release build.

      1. Choose whether you are releasing a release candidate or an official release, and set the environment variables accordingly:
      • For a Release Candidate (e.g. v0.9.0-rc.1):
           export VERSION=v0.9.0-rc.1
           export BRANCH_VERSION=0.9
           export REMOTE=origin
      • For an Official Release (e.g. v0.9.0):
           export VERSION=v0.9.0
           export BRANCH_VERSION=0.9
           export REMOTE=origin
      1. (Optional) If the latency predictor release version does not align with the router version, also set the expected tag (refer to the [latency predictor releases] to find the latest valid release tag):
         export LATENCY_PREDICTOR_TAG=v0.8.0-rc.1
      1. Set the llm-d-async release the coordinator's async-broker step should embed (refer to the [llm-d-async releases]; normally the release the llm-d guides pin for this llm-d version):
         export LLM_D_ASYNC_TAG=v0.11.0
      1. If needed, clone the llm-d-router [repo].
         git clone -o ${REMOTE} git@github.com:llm-d/llm-d-router.git

      Release Process

      Create or Checkout branch
      1. If you already have the repo cloned, ensure it's up-to-date and your local branch is clean.
      1. Release Branch Handling:
      • For a Release Candidate:

      Create a new release branch from the main branch. The branch should be named release-${BRANCH_VERSION}, for example, release-0.9:

           git checkout -b release-${BRANCH_VERSION}
      • For a Major, Minor or Patch Release:

      A release branch should already exist. In this case, check out the existing branch:

           git fetch ${REMOTE}
           git reset --hard ${REMOTE}/release-${BRANCH_VERSION}
      1. By default, LATENCY_PREDICTOR_TAG in the Makefile resolves from the router release tag (via BUILD_REF). If the latency predictor tag does not align with the router version, update the default value of LATENCY_PREDICTOR_TAG in the Makefile to match your exported ${LATENCY_PREDICTOR_TAG}.

      Commit the change (if modified):

          # Update LATENCY_PREDICTOR_TAG ?= vX.Y.Z in Makefile
          git commit -a -s -m "release: set LATENCY_PREDICTOR_TAG to ${LATENCY_PREDICTOR_TAG}"
      1. Check that go.mod pins the github.com/llm-d/llm-d-async/api and /producer modules at ${LLM_D_ASYNC_TAG}. If not, bump them, read the release's RELEASE-NOTES.md section in llm-d-async for entries marked Breaking (the async-broker step builds api.RequestMessage and calls the producer directly), and run the coordinator tests before committing:
          go get github.com/llm-d/llm-d-async/api@${LLM_D_ASYNC_TAG} github.com/llm-d/llm-d-async/producer@${LLM_D_ASYNC_TAG}
          go mod tidy
          go test ./pkg/coordinator/...
          git commit -a -s -m "release: bump llm-d-async api and producer to ${LLM_D_ASYNC_TAG}"
      1. Push your release branch to the llm-d-router remote.
          git push ${REMOTE} release-${BRANCH_VERSION}
      Tag commit and trigger image build
      1. Tag the head of your release branch with the version:
           git tag -s -a ${VERSION} -m "llm-d-router ${VERSION} Release"
      1. Push the tag to the llm-d-router repo:
           git push ${REMOTE} ${VERSION}
      1. Pushing the tag triggers CI action to build and publish the EPP image (ghcr.io/llm-d/llm-d-router-endpoint-picker) and sidecar image (ghcr.io/llm-d/llm-d-router-disagg-sidecar) to the [ghcr registry].

      Official v* tags receive :latest.
      Release-candidate tags (-rc, for example v0.9.0-rc.1) do not.

      1. Verify the [CI release workflow] completed successfully before proceeding.
      2. Test the steps in the tagged quickstart guide after the PR merges.
      Create the release!

      Publishing the GitHub release sets the title, notes, and GitHub's pre-release listing.
      It does not start the image pipeline or change image tags.
      The tag push already built and published the images and uploaded the artifacts.

      1. Create a [new release]:
      2. Choose the tag that you created for the release.
      3. Use the tag as the release title, e.g. v0.1.0.
      4. Click "Generate release notes" to auto-populate the list of PRs and contributors.
      5. Summarize the release notes using an LLM of your choice (e.g., Gemini, Copilot, ChatGPT). Provide the newly compiled release notes block from RELEASE-NOTES.md with the following prompt:
             Please summarize these release notes into three clear sections:
             1. Highlights (key features, performance wins, bug fixes)
             2. Upgrade Steps & Deprecations (configuration changes, deprecated flags/metrics)
             3. Known Issues (if any, otherwise omit)

      Review the generated content, edit it if necessary to ensure accuracy, and then copy and prepend this summary at the very top of the release description box on GitHub.

      1. If this is a release candidate, select the "This is a pre-release" checkbox so GitHub lists the release as a pre-release.

      This does not affect image tags.

      1. If you find any bugs in this process, create an [issue].

      Announce the Release

      Use the following steps to announce the release.

      1. Generate the announcement email content by running the following block in your terminal (make sure ${VERSION} is set in your current shell):
         cat <<EOF
         Subject: [ANNOUNCE] llm-d-router ${VERSION} is released
      
         Hi all,
      
         We are pleased to announce the release of llm-d-router ${VERSION}!
      
         ### Container Images
         * Endpoint Picker: ghcr.io/llm-d/llm-d-router-endpoint-picker:${VERSION}
         * Disaggregated Sidecar: ghcr.io/llm-d/llm-d-router-disagg-sidecar:${VERSION}
      
         ### Helm Charts (OCI)
         * Standalone Chart: oci://ghcr.io/llm-d/charts/llm-d-router-standalone (version ${VERSION})
         * Gateway Chart: oci://ghcr.io/llm-d/charts/llm-d-router-gateway (version ${VERSION})
      
         ### Release Notes
         For more details, please see the GitHub release notes: https://github.com/llm-d/llm-d-router/releases/tag/${VERSION}
         EOF
      1. Copy the generated subject and body, and send an email to llm-d-contributors@googlegroups.com.
      1. Add a link to the final release in this issue.
      1. Close this issue.

      [repo]: https://github.com/llm-d/llm-d-router
      [ghcr registry]: https://github.com/orgs/llm-d/packages?repo_name=llm-d-router
      [new release]: https://github.com/llm-d/llm-d-router/releases/new
      [issue]: https://github.com/llm-d/llm-d-router/issues/new/choose
      [CI release workflow]: https://github.com/llm-d/llm-d-router/actions/workflows/ci-release.yaml
      [latency predictor releases]: https://github.com/orgs/llm-d/packages?repo_name=llm-d-latency-predictor
      [llm-d-async releases]: https://github.com/llm-d/llm-d-async/releases

      ๐Ÿ’ฌ Discussion Summary: ๐Ÿ’ฌ Ongoing discussion (3 comment(s) across @liu-cong) - Latest update from @liu-cong; no blocking debate.
    • 6. PR [CLOSED] docs(flow-control): add observability and troubleshooting section ๐Ÿ“„ Diff (llm-d/llm-d#2616 by @awesome-pro) ๐ŸŸข P2: Low Priority ๐Ÿ”ง Chore / Docs ๐Ÿ”ต DEEP REVIEW ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Docs, chore, test, or dependency maintenance
      ๐Ÿ“Œ Change Summary: Part of #1982 (Phase 3, flow control). Adds an Observability & Troubleshooting section to the flow-control guide, following the P/D, optimized-baseline and tiered-prefix-cache sections.
      ๐Ÿ“„ View Full PR Description

      Part of #1982 (Phase 3, flow control).

      Adds an Observability & Troubleshooting section to the flow-control guide, following the P/D, optimized-baseline and tiered-prefix-cache sections.

      • guides/flow-control/README.md: step 4 after "Enable monitoring" โ€” the signals for this path plus five failure modes. Removes the old one-line ## Observability section, which the precedents fold into step 4.
      • docs/well-lit-paths/foundations/flow-control.md: Observability paragraph linking to the guide section.

      Interpretation only. Definitions stay in the architecture doc's Metrics & Observability table and queries in the shared PromQL reference. The path-specific points: flow control is work-conserving, so the queue is empty until the pool is under contention; the queue limits that reject to protect the EPP's memory are independent of the saturation detector that holds dispatch to protect the GPUs; and failureMode: "FailOpen" means an unhealthy EPP is bypassed with no queuing or fairness, which reads the same as a healthy idle pool.

      Checked against docs/architecture/core/router/epp/flow-control.md, the shared {metrics,promql}.md, and this guide's router/flow-control.values.yaml (maxBytes: 10Gi, maxRequests: 1k, maxConcurrency: 132) and objectives.yaml (100/0/-10).

      Not covered: the revocation/reclaim metrics, which need enableEviction: true and are linked out. No bundled flow-control alert rules exist; the section says so.

      Docs only. Links and anchors resolve; make verify passes; no new markdownlint findings. No cluster run โ€” the failure modes come from the architecture docs and this guide's shipped values, not a live saturated pool.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open discussion / comment - Open discussion/comment from @LukeAVanDrie (not yet LGTM'd/approved by @LukeAVanDrie) (awaiting @awesome-pro's response or LGTM alignment).
    • 7. PR [CLOSED] docs: align router v1.0.0 scheduler and component scrape docs ๐Ÿ“„ Diff (llm-d/llm-d#2921 by @YidaWeng) ๐ŸŸข P2: Low Priority ๐Ÿ”ง Chore / Docs ๐Ÿ”ต DEEP REVIEW ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Docs, chore, test, or dependency maintenance
      ๐Ÿ“Œ Change Summary: Three pieces of router v1.0.0 documentation drift, all in docs: The Prometheus query step is renumbered to Step 5, the one inbound link to the old anchor in alerting.md is updated, and the metric reference gains Coordinator and...
      ๐Ÿ“„ View Full PR Description

      What changed

      Three pieces of router v1.0.0 documentation drift, all in docs:

      1. docs/architecture/router/scheduling.md โ€” data-parallel-profile-handler was removed in llm-d Router v1.0.0 (llm-d/llm-d-router#3395), but the page still says it is deprecated and kept for backward compatibility. A configuration that references it now fails EPP startup. The note now says so and points at single-profile-handler.
      1. docs/operations/observability/metrics.md โ€” Coordinator โ€” router-metrics.md says coordinator metrics are scraped by following the Collect Metrics page, but that page stopped after the model servers and the EPP. This adds a coordinator step with the named metrics port the selector needs, an OSS PodMonitor, a GKE PodMonitoring, and the llm_d_coordinator_request_total check query.
      1. docs/operations/observability/metrics.md โ€” Disaggregation Sidecar โ€” same broken promise for llm_d_disagg_sidecar_* / moriio_dns_*. The sidecar's --metrics-port is 0 (disabled) by default, which neither page mentioned, so following the docs yielded no series. The new step documents enabling it, the named sidecar metrics port, both monitoring resources, and notes that the request counter appears only after traffic.

      The Prometheus query step is renumbered to Step 5, the one inbound link to the old anchor in alerting.md is updated, and the metric reference gains Coordinator and Sidecar rows.

      Validation

      • Parsed all new YAML blocks: PodMonitor (monitoring.coreos.com/v1) and PodMonitoring (monitoring.googleapis.com/v1) for both components, selecting the documented labels and named ports.
      • Checked for stale inbound anchors: no step-3-query / step-4-query references remain.
      • Live on kind (node v1.37.0, kube-prometheus-stack 92.13.1):
      • coordinator llm-d-router-coordinator:v1.0.0: applied the OSS PodMonitor as written, target up at http://<pod-ip>:9090/metrics, llm_d_coordinator_request_total scraped;
      • sidecar llm-d-router-disagg-sidecar:v1.0.0 started with --metrics-port=9091: applied the OSS PodMonitor with that port, target up at http://<pod-ip>:9091/metrics, llm_d_disagg_sidecar_prefill_duration_seconds_count and moriio_dns_* scraped. (The checked-in example now uses the guides' 9095 / sc-metrics; the flag and named-port shape are the same.)
      • GMP resources match the PodMonitoring shape already checked in for the async multitenant guide; I did not run them on a GKE cluster.

      Scope

      Docs only. This does not touch the guide manifests from #2879 (coordinator PodMonitor/PodMonitoring overlays) or the dashboard work in #2909. It also does not enable sidecar metrics in the guides โ€” the sidecar step documents the opt-in flag rather than changing eight guides' manifests.

      /cc @sallyom

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Discussion replied by author, awaiting reviewer LGTM - @YidaWeng responded to feedback (Open discussion/comment from @gyliu513 (not yet LGTM'd/approved by @gyliu513)); awaiting reviewer sign-off for consensus.
    • 8. PR [CLOSED] docs(observability): note that tail sampling can break exemplar links ๐Ÿ“„ Diff (llm-d/llm-d#3058 by @aminehd) ๐ŸŸข P2: Low Priority ๐Ÿ”ง Chore / Docs ๐Ÿ”ต DEEP REVIEW ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Docs, chore, test, or dependency maintenance
      ๐Ÿ“Œ Change Summary: The router attaches a trace exemplar to a metric only when the request's span is head-sampled (IsSampled() in llm-d-router's pkg/common/observability/metrics/exemplars.go).
      ๐Ÿ“„ View Full PR Description

      The router attaches a trace exemplar to a metric only when the request's span is head-sampled (IsSampled() in llm-d-router's pkg/common/observability/metrics/exemplars.go). If the OpenTelemetry Collector also tail-samples, it can drop a trace after its exemplar was recorded, so the exemplar link in the dashboard opens a trace that was never exported.

      This adds a short note to Step 3 of docs/operations/observability/setup.md. It sits after the platform tabs because it applies to every backend. Docs only; no commands or manifests change.

      Related to llm-d/llm-d-router#3584 (item 4, tail sampling). The GKE part of that item will come in a separate PR.

      Validation: markdownlint passes on the changed file.

      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸก Open discussion / comment - Open discussion/comment from @gyliu513 (not yet LGTM'd/approved by @gyliu513) (awaiting @aminehd's response or LGTM alignment).
    • 9. PR [CLOSED] docs(operations): clarify what warm standby EPP replicas share ๐Ÿ“„ Diff (llm-d/llm-d-router#4859 by @capri-xiyue) ๐ŸŸข P2: Low Priority ๐Ÿ”ง Chore / Docs ๐Ÿ”ต DEEP REVIEW ๐ŸŸข Low Effort
      ๐ŸŽฏ TL Priority Triage: TL Triage: Docs, chore, test, or dependency maintenance
      ๐Ÿ“Œ Change Summary: docs/operations.md describes standby EPP pods under priority routing and GKE preferred backends as "warm and synced". That reads as if standbys hold the primary's routing state.
      ๐Ÿ“„ View Full PR Description

      What type of PR is this?
      /kind documentation

      What this PR does / why we need it:

      docs/operations.md describes standby EPP pods under priority routing and GKE preferred backends as "warm and synced". That reads as if standbys hold the primary's routing state. In practice only the datastore is synced: each replica watches the InferencePool and model server pods on its own, and its gRPC health port reports SERVING once PoolHasSynced() is true.

      Request-derived routing state is built only from requests a replica schedules. That covers the approximate prefix-cache index (approx-prefix-cache-producer adds to its indexer in PreRequest), in-flight load, and flow control queues. A standby that received no traffic starts without it after failover.

      This PR:

      • Replaces "warm and synced" with wording that says what is synced, in the Active-Passive trade-off, Priority Routing, and GKE Preferred Backends sections.
      • Adds a "Standby routing state" subsection that:
      • states that request-derived state is not shared with standbys;
      • notes that CrossReplicaSyncer is the only sharing path and shares only a capped recent prefix window;
      • notes that router.epp.crossReplica selects haMode: all-active, so the chart rejects it together with priority routing or GKE preferred backends (_epp-ha.tpl);
      • notes that the precise prefix-cache index is built from KV events on every replica, so standbys have it without traffic. Only speculative hints stay local.

      Which issue(s) this PR fixes:

      Release note _(write NONE if no user-facing change)_:

      NONE
      ๐Ÿ’ฌ Discussion Summary: ๐ŸŸข No reviewer discussion yet - Only author notes from @capri-xiyue (2 comment(s)); awaiting initial review.
    ๐ŸŸ  Merge Conflicts Detected - You Are Not Actionable: These PRs currently have merge conflicts with the base branch. A GitHub Action automatically labels and pings the PR authors to rebase and resolve conflicts. No maintainer ping or action is needed until the author rebases.

    ๐ŸŸ  Merge Conflicts Detected (Not Actionable)

    PRs with merge conflicts (Approved PRs with conflicts listed first). Maintainer is not actionable - awaiting author rebase.
    ๐ŸŽฏ Filter Merge Conflicts by Priority:
    Saved