MiniMax M3 · Serving

S05 · Mixed

Valid

Mixed interactivity 1dev · Implementation Optimization

1.01×PERFORMANCE RATIO
177TOOL EVENTS
1TEXT PATCHES
0BINARY NAMES

01 / PROCESS MAP

Tool activity

Each row shows one agent’s tool events in its own recorded order. Colors show broad activities; bar widths do not represent duration.

Main agentMiniMax M3 · 177 visible calls

InspectEditValidateExecuteBuildProfileRollbackOther
141Inspect
3Edit
1Build
7Validate
13Execute
12Other

02 / EVENT SEQUENCE

Event timeline

Requests are grouped by agent, activity and topic. Delegations open into child branches. Summaries describe visible requests; tool errors and missing responses are flagged. A recorded response does not establish command success or a performance improvement.

Show event timelineHide event timeline82 groups · 177 calls

Scroll within this panel to view all events. Command sketches retain familiar programs and options. Values become <val> or <n>; paths, addresses and script bodies are hidden as <path>, <url> and <script>.

Main agent

  1. Inspect · Task requirements

    Requested workspace inspection and file and log inspection related to task requirements.

    2 calls · #0001–#0002

    echo <val>ls -l -a <path> <n> > <path>cat <path> <n> > <path>echo <flag>ls -l -a <path> <path> <path> <path> <path>
  2. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    1 call · #0003–#0003

    cat <path>
  3. Inspect · Benchmark & validation setup

    Requested file and log inspection related to benchmark & validation setup.

    1 call · #0004–#0004

    cat <path> <path> <path> <path> <path> <path>
  4. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0005–#0005

    cat <path>
  5. Inspect · Task requirements

    Requested file and log inspection and workspace inspection related to task requirements.

    3 calls · #0006–#0008

    cat <path>ls <path>head -n <n> <path>
  6. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    2 calls · #0009–#0010

    head -n <n> <path>sed -n <val> <path>
  7. Execute · Benchmark & validation setup

    Requested task coordination related to benchmark & validation setup.

    1 call · #0011–#0011

    Create task <task>
  8. Validate · Benchmark & validation setup

    Requested task coordination related to benchmark & validation setup.

    1 call · #0012–#0012

    Create task <task>
  9. Inspect · Batching & scheduling

    Requested task coordination related to batching & scheduling.

    1 call · #0013–#0013

    Create task <task>
  10. Build · Latency & request handling

    Requested task coordination related to latency & request handling.

    1 call · #0014–#0014

    Create task <task>
  11. Validate · Latency & request handling

    Requested task coordination related to latency & request handling.

    1 call · #0015–#0015

    Create task <task>
  12. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0016–#0016

    Update task <task>
  13. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    2 calls · #0017–#0018

    sed -n <val> <path>
  14. Inspect · Benchmark & validation setup

    Requested file and log inspection related to benchmark & validation setup.

    2 calls · #0019–#0020

    cat <path>head -n <n>sed -n <val> <path>
  15. Inspect · Source & workspace

    Requested file and log inspection related to source & workspace.

    4 calls · #0021–#0024

    sed -n <val> <path>cat <path>head -n <n>
  16. Inspect · Runtime processes

    Requested source searches and file and log inspection related to runtime processes.

    1 call · #0025–#0025

    grep -n <val> <path>head -n <n>
  17. Inspect · Source & workspace

    Requested source searches, file and log inspection and workspace inspection related to source & workspace.

    3 calls · #0026–#0028

    grep -n <val> <path>sed -n <val> <path>ls <path>echo <flag>ls <path> <n> > <path>head -n <n>
  18. Inspect · Speculative decoding

    Requested workspace inspection and file and log inspection related to speculative decoding.

    1 call · #0029–#0029

    ls <path>head -n <n>echo <flag>ls <path> <n> > <path>
  19. Inspect · Batching & scheduling

    Requested workspace inspection and file and log inspection related to batching & scheduling.

    2 calls · #0030–#0031

    ls <path> <n> > <path>wc -l <path>
  20. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0032–#0032

    ls <path> <n> > <path>echo <flag>
  21. Inspect · Batching & scheduling

    Requested file and log inspection and source searches related to batching & scheduling.

    10 calls · #0033–#0042

    cat <path> <n> > <path>head -n <n>grep -n <val> <path>sed -n <val> <path>
  22. Inspect · Source & workspace

    Requested file and log inspection, workspace inspection and environment setup or inspection related to source & workspace.

    5 calls · #0043–#0047

    sed -n <val> <path>ls <path>echo <flag>find <path> -name <path>head -n <n>env
    1 more command sketches
    grep -E <val> <n> > <path>
  23. Other · Source & workspace

    Requested script or workload execution related to source & workspace.

    1 call · #0048–#0048

    which <val> <val>python --version <n> >& <path>true
  24. Inspect · Source & workspace

    Requested workspace inspection and file and log inspection related to source & workspace.

    1 call · #0049–#0049

    ls <path> <n> > <path>echo <flag>head -n <n>
  25. Other · Source & workspace

    Requested environment setup or inspection and source searches related to source & workspace.

    1 call · #0050–#0050

    envgrep -E <val>
  26. Inspect · Source & workspace

    Requested workspace inspection and file and log inspection related to source & workspace.

    1 call · #0051–#0051

    ls <path> <n> > <path>echo <flag>cat <val> <n> > <path>head -n <n>
  27. Other · Source & workspace

    Requested task coordination related to source & workspace.

    2 calls · #0052–#0053

    Update task <task>
  28. Inspect · Batching & scheduling

    Requested file and log inspection and source searches related to batching & scheduling.

    2 calls · #0054–#0055

    cat <path> <n> > <path>head -n <n>grep -n <val> <path>
  29. Inspect · Source & workspace

    Requested file and log inspection and source searches related to source & workspace.

    3 calls · #0056–#0058

    sed -n <val> <path>grep -n <val> <path>head -n <n>
  30. Validate · Benchmark & validation setup

    Requested script or workload execution, file and log inspection and workspace file updates related to benchmark & validation setup.

    2 calls · #0059–#0060

    cd <path>bash <script> <n> >& <path>tail -n <n>cp <path> <path>cat <path>python -c <script>
  31. Other · Source & workspace

    Requested task coordination related to source & workspace.

    2 calls · #0061–#0062

    Update task <task>
  32. Execute · Benchmark & validation setup

    Requested script or workload execution, file and log inspection and environment setup or inspection related to benchmark & validation setup.

    4 calls · #0063–#0066

    cd <path>bash <script> <n> >& <path>tail -n <n>env <vars>echo <val>wait <val>
    3 more command sketches
    cat <path>python -c <script>cp <path> <path>
  33. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    2 calls · #0067–#0068

    grep -n <val> <path>head -n <n>sed -n <val> <path>
  34. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    2 calls · #0069–#0070

    grep -n <val> <path>head -n <n>sed -n <val> <path>
  35. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    2 calls · #0071–#0072

    grep -n <val> <path>head -n <n>
  36. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    2 calls · #0073–#0074

    grep -n <val> <path>head -n <n>
  37. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    3 calls · #0075–#0077

    grep -n <val> <path>head -n <n>
  38. Inspect · Runtime processes

    Requested file and log inspection and source searches related to runtime processes.

    3 calls · #0078–#0080

    sed -n <val> <path>grep -n <val> <path>head -n <n>
  39. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    5 calls · #0081–#0085

    grep -n <val> <path>head -n <n>sed -n <val> <path>
  40. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    4 calls · #0086–#0089

    grep -n <val> <path>head -n <n>sed -n <val> <path>
  41. Inspect · Runtime processes

    Requested file and log inspection related to runtime processes.

    1 call · #0090–#0090

    cat <path>
  42. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    6 calls · #0091–#0096

    grep -n <val> <path>head -n <n>sed -n <val> <path>
  43. Other · Source & workspace

    Requested task coordination related to source & workspace.

    2 calls · #0097–#0098

    Update task <task>
  44. Inspect · Source & workspace

    Requested file and log inspection and source searches related to source & workspace.

    3 calls · #0099–#0101

    sed -n <val> <path>grep -n <val> <path>head -n <n>
  45. Edit · Source & workspace

    Requested code edits related to source & workspace.

    2 calls · #0102–#0103

    Edit <path>
  46. Validate · Benchmark & validation setup

    Requested script or workload execution and file and log inspection related to benchmark & validation setup.

    1 call · #0104–#0104

    cd <path>bash <script> <n> >& <path>tail -n <n>
  47. Execute · Benchmark & validation setup

    Requested script or workload execution and file and log inspection related to benchmark & validation setup.

    3 calls · #0105–#0107

    cd <path>bash <script> <n> >& <path>tail -n <n>cat <path>python -c <script>
  48. Inspect · Device memory

    Requested source searches and file and log inspection related to device memory.

    1 call · #0108–#0108

    grep -n <val> <path>head -n <n>
  49. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    2 calls · #0109–#0110

    grep -n <val> <path>head -n <n>
  50. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    3 calls · #0111–#0113

    grep -n <val> <path>head -n <n>
  51. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    7 calls · #0114–#0120

    grep -n <val> <path>head -n <n>sed -n <val> <path>
  52. Inspect · Attention kernels

    Requested workspace inspection related to attention kernels.

    1 call · #0121–#0121

    ls <path>
  53. Inspect · Source & workspace

    Requested workspace inspection related to source & workspace.

    1 call · #0122–#0122

    ls <path>
  54. Inspect · Attention kernels

    Requested file and log inspection related to attention kernels.

    1 call · #0123–#0123

    cat <path>head -n <n>
  55. Inspect · Source & workspace

    Requested file and log inspection and source searches related to source & workspace.

    2 calls · #0124–#0125

    wc -l <path>grep -n <val> <path>head -n <n>
  56. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    2 calls · #0126–#0127

    grep -n <val> <path>head -n <n>
  57. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    2 calls · #0128–#0129

    grep -n <val> <path>head -n <n>sed -n <val> <path>
  58. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    5 calls · #0130–#0134

    grep -n <val> <path>head -n <n>sed -n <val> <path>cat <path>
  59. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    1 call · #0135–#0135

    grep -n <val> <path>head -n <n>
  60. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    1 call · #0136–#0136

    grep -n <val> <path>head -n <n>
  61. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    1 call · #0137–#0137

    grep -n <val> <path> <n> > <path>head -n <n>
  62. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    4 calls · #0138–#0141

    grep -n <val> <path>head -n <n>
  63. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    1 call · #0142–#0142

    grep -n <val> <path>head -n <n>
  64. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    2 calls · #0143–#0144

    grep -n <val> <path>head -n <n>
  65. Inspect · Source & workspace

    Requested source searches related to source & workspace.

    1 call · #0145–#0145

    grep -n <val> <path>
  66. Inspect · Batching & scheduling

    Requested file and log inspection and source searches related to batching & scheduling.

    3 calls · #0146–#0148

    sed -n <val> <path>grep -n <val> <path>head -n <n>
  67. Inspect · Runtime processes

    Requested source searches and file and log inspection related to runtime processes.

    1 call · #0149–#0149

    grep -n <val> <path>head -n <n>
  68. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    2 calls · #0150–#0151

    grep -n <val> <path>head -n <n>
  69. Inspect · Attention kernels

    Requested source searches and file and log inspection related to attention kernels.

    1 call · #0152–#0152

    grep -n <val> <path>head -n <n>
  70. Inspect · Source & workspace

    Requested source searches and file and log inspection related to source & workspace.

    3 calls · #0153–#0155

    grep -n <val> <path>sed -n <val> <path>
  71. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    3 calls · #0156–#0158

    grep -n <val> <path>head -n <n>sed -n <val> <path>
  72. Validate · Benchmark & validation setup

    Requested script or workload execution related to benchmark & validation setup.

    1 call · #0159–#0159

    cd <path>bash <script> <n> >& <path>python -c <script>
  73. Inspect · Batching & scheduling

    Requested source searches and file and log inspection related to batching & scheduling.

    2 calls · #0160–#0161

    grep -n <val> <path>head -n <n>
  74. Other · Source & workspace

    Requested task coordination related to source & workspace.

    2 calls · #0162–#0163

    Update task <task>
  75. Execute · Benchmark & validation setup

    Requested script or workload execution and file and log inspection related to benchmark & validation setup.

    2 calls · #0164–#0165

    cd <path>bash <script> <n> >& <path>tail -n <n>cat <path>python -c <script>
  76. Inspect · Source & workspace

    Requested repository inspection related to source & workspace.

    2 calls · #0166–#0167

    git diff --statgit diff <path>
  77. Edit · Source & workspace

    Requested code edits related to source & workspace.

    1 call · #0168–#0168

    Edit <path>
  78. Validate · Benchmark & validation setup

    Requested script or workload execution and file and log inspection related to benchmark & validation setup.

    1 call · #0169–#0169

    cd <path>bash <script> <n> >& <path>tail -n <n>
  79. Execute · Benchmark & validation setup

    Requested script or workload execution and file and log inspection related to benchmark & validation setup.

    2 calls · #0170–#0171

    cd <path>bash <script> <n> >& <path>tail -n <n>cat <path>python -c <script>
  80. Inspect · Source & workspace

    Requested repository inspection, workspace inspection and file and log inspection related to source & workspace.

    4 calls · #0172–#0175

    git diff <path>find <path> -name <val> -o -name <val> <n> > <path>head -n <n>cat <path>git statusgit diff --stat
  81. Other · Source & workspace

    Requested task coordination related to source & workspace.

    1 call · #0176–#0176

    Update task <task>
  82. Execute · Benchmark & validation setup

    Requested file and log inspection and script or workload execution related to benchmark & validation setup.

    1 call · #0177–#0177

    cat <path>python -c <script>

03 / CANDIDATE ARTIFACT

Text patches & binary names

Read code changes as Git diffs. Identifying strings are masked; binary files are listed by their full relative names.

sglang · 1 changed files

Base commit: 340db9201005fc64635bb25db1d2538f955761c3

diff --git a/python/sglang/srt/managers/schedule_policy.py b/python/sglang/srt/managers/schedule_policy.pyindex 39bc02b780f94cb356d7314798203b7c4136dc00..16b119986ab97ee70ab692f74f0efa22a503c80c 100644--- a/python/sglang/srt/managers/schedule_policy.py+++ b/python/sglang/srt/managers/schedule_policy.py@@ -205,6 +205,17 @@ class SchedulePolicy:                 SchedulePolicy._sort_by_priority_and_fcfs(                     waiting_queue, self.priority_sign                 )+            else:+                # Shortest-job-first tie-break: keep arrival order but pull+                # shorter prefill jobs ahead of longer ones. The long-context+                # request in a mixed wave would otherwise block the 64 short+                # interactive requests behind it for its entire first prefill+                # chunk, raising short TTFT p95 catastrophically. Ties broken+                # by queue entry time so arrival order is preserved within the+                # same size bucket.+                SchedulePolicy._sort_by_shortest_input(+                    waiting_queue, self.tree_cache+                )             return          if isinstance(policy, CacheAwarePolicy):@@ -380,6 +391,33 @@ class SchedulePolicy:             )         ) +    @staticmethod+    def _sort_by_shortest_input(+        waiting_queue: List[Req],+        tree_cache: "BasePrefixCache",+    ) -> None:+        """Shortest-job-first tie-break for FCFS: keep arrival order, but+        promote shorter prefill jobs ahead of longer ones. Uses the unprefixed+        fill length so cache-hit prefix sharing does not collapse long-context+        jobs to the front of the queue. Falls back to queue entry time on+        equal lengths so strict-FCFS ordering is preserved within a size class.+        """+        # Sort key: (effective_new_tokens, queue_entry_time). Smaller is+        # served first. Use length(full_untruncated_fill_ids) - prefix_indices+        # so that radix-matched prefix already in cache reduces the residual+        # prefill work and is honoured for ordering.+        def sort_key(req: Req):+            new_tokens = (+                len(req.full_untruncated_fill_ids)+                - len(req.prefix_indices)+            )+            # Req.swa_host_hit_length can shrink SWA peak but does not change+            # the work this forward pass has to do; leave it out.+            entry = getattr(req.time_stats, "wait_queue_entry_time", 0.0)+            return (new_tokens, entry)++        waiting_queue.sort(key=sort_key)+     @staticmethod     def _sort_by_routing_key(         waiting_queue: List[Req], running_batch: ScheduleBatch