← Back to Pull requests

Fix scheduler admission, logprob prefill, and Q4 Metal scaling #233

Open
unknown opened this pull request with 650 lines diff across 8 files
View on GitHub
unknown unknown commented on Nov 26, 2026 20:29 UTC
Author

Original problem

The scheduler admitted a native prefill larger than its bound, cache-off logprob requests used different prefill chunks from ordinary requests, and grouped Q4_K Metal lanes applied the wrong scale arithmetic. These caused registered admission and output failures. This PR fixes those measured cases and keeps the remaining four-model qualification limits visible.

Diagnostics

  • The Qwen3.6 admission replay completed 16/16 fixed requests where the original control produced four expected errors. A direct native probe reproduced a logit/output change when the final 512-token prefill chunk was split 511+1; the cache-off logprob route had used that different boundary. The fixed route matched ordinary output in two independent 44-response native retests.

  • Qwen3.5 grouped Q4_K gate error was 0.011–0.017 before the Metal fix and 1.8×10⁻⁶–3.35×10⁻⁶ after it. The fixed native path matched solo text across all 16 lanes for 32 tokens; the 204-response serving replay passed its registered one-prompt checks. Logits still differ, so this is a bounded fix.

  • The history archive and SHA256 index preserve the original plans, 6,176 timing rows, audits, failed runs and detailed progress. Individual earlier commit links remain valid. The live status is deliberately short.
  • Fix

  • Bound direct-prefill admission by both native and scheduler limits; align cache-off logprob prefill chunks with the ordinary scheduler bound.

  • Correct grouped Q4_K Metal scale arithmetic through ordered native patch 0061.

  • Split the separate resident-prefix eviction policy out of this PR in 478f44ed; its four Rust files now match main byte-for-byte. The cache-policy patch remains in a local backup for separate cache-on qualification.

  • Retest Coder c256 with the existing explicit 256-waiting-request option. The default queue is unchanged.
  • Compatibility

    The native patch changes Metal arithmetic and can change generated text. Model weights, precision, backend, runtime, ABI and wire formats are unchanged. The ordered native recipe digest is updated. The measurements below apply to the exact pinned models and settings only. Historical exact-output failures remain failures under the original protocol.

    Validation

    At merged source 9707dba3, offline just automation-contracts, just llama-prepare, CARGO_NET_OFFLINE=true just lint, and serial full Rust workspace tests through Just passed (4,900 passed, 314 ignored, zero failures, including documentation tests). Merged-source just llama-check exited zero: 320 executed native CTests passed, one registered skip, zero failures; the generated patch series was deterministic (log SHA256 c76a3726e7bd263237a09195e9b939d7f2df0fe20bfab63557aec02d0aabd843). The C++ facade suite was unrun because GoogleTest v1.18.0 was not supplied. Before the main merge, just native-full-replay metal at 79523f8b exited zero on an M5 Max: 340 executed CTests passed, one registered skip, zero failures. The repaired Q4_K Metal test passed its focused CTest there. The merged queue adds current main's Vulkan build patch as 0060 and renumbers this PR's byte-identical Q4_K patch to 0061; the merged queue replayed offline. The separate merged-source just native-full-replay metal recipe exited zero: 340 executed CTests passed, one registered skip, zero failures (log SHA256 d2238f4e60127f914a169319e90d6ca4697cffe8cd6888746c7a5d1054f5ec45). At the current PR head 9144ec5c, all eight model qualification jobs, the quality canary, macOS Metal and Linux ARM64 CUDA 13 package checks, and the aggregate PR gate have passed. Earlier exact-head split CI failed because protected main required a two-way split-peer.json receipt that the older branch never wrote. Merge 9707dba3 brings in main's peer-control code and its automation tests; the fresh exact-head CI passed, including the aggregate PR gate. The related Q4_0/Q4_1 arithmetic observation is tracked in issue #257 for a separately measured change. These CI checks are separate from the four-model relative-performance gate.

    The four historical timing tables below use the exact CI model pins on macstudio-2l0352 (Apple M1 Ultra, full Metal), F16 KV, 16 lanes ×8192 context, batch/microbatch 512, both caches off, and inferencekit 0.1.1. Output tok/s is aggregate output tokens divided by client span. Four-round entries are medians of per-round metrics. The separate absolute SLO is TTFT p95 ≤30 s and TPOT p95 ≤1 s. These runs predate the upgraded current source and cannot qualify its four-model performance.

    Qwen3.5-4B — fixed Metal, c128, four rounds

    | Arm | Complete | TTFT p95 | E2E p95 | TPOT p95 | Output tok/s | SLO rounds |
    | --- | ---: | ---: | ---: | ---: | ---: | ---: |
    | Skippy original + fixed Metal | 512/512 | 62.30 s | 66.42 s | 252.0 ms | 60.84 | 0/4 |
    | Skippy combined + fixed Metal | 512/512 | 62.24 s | 66.36 s | 251.7 ms | 60.88 | 0/4 |
    | Vanilla separate slots | 512/512 | 73.54 s | 77.39 s | 283.8 ms | 52.29 | 0/4 |
    | Vanilla unified | 512/512 | 72.57 s | 76.40 s | 281.3 ms | 52.97 | 0/4 |

    All 2,048 requests completed, but 12 cross-engine exact-output comparisons differed. Every arm failed the TTFT SLO. The output-token rates are measured for this historical revision; 12 exact-output differences are recorded separately. Audit and statistics are retained in the archive above.

    Qwen3-Coder-30B-A3B — explicit queue 256, c256, four rounds

    | Arm | Complete | TTFT p95 | E2E p95 | TPOT p95 | Output tok/s | SLO rounds |
    | --- | ---: | ---: | ---: | ---: | ---: | ---: |
    | Skippy base | 1,024/1,024 | 129.85 s | 137.13 s | 261.0 ms | 59.22 | 0/4 |
    | Skippy patched | 1,024/1,024 | 129.91 s | 137.18 s | 261.1 ms | 59.20 | 0/4 |
    | Vanilla separate slots | 1,024/1,024 | 152.15 s | 160.16 s | 304.5 ms | 50.76 | 0/4 |
    | Vanilla unified | 1,024/1,024 | 131.28 s | 138.10 s | 259.2 ms | 58.77 | 0/4 |

    All 4,096 requests completed with exact cross-arm text after the explicit queue setting. All 16 timed cells failed the TTFT SLO. The pre-port balanced single-user screen passed exact text, but its separate-slot E2E paired upper ratio was 1.0237, crossing the 1.02 margin. Audit and report are in the archive.

    Qwen3.6-35B-A3B — original screen, round 0 only

    | Arm | Complete | TTFT p95 | E2E p95 | TPOT p95 | Output tok/s |
    | --- | ---: | ---: | ---: | ---: | ---: |
    | Skippy base | 4/4 | 403.7 ms | 815.4 ms | 13.39 ms | 39.56 |
    | Skippy patched | 4/4 | 402.0 ms | 820.1 ms | 13.49 ms | 39.27 |
    | Vanilla separate slots | 4/4 | 428.2 ms | 845.9 ms | 13.47 ms | 38.31 |
    | Vanilla unified | 4/4 | 429.5 ms | 857.1 ms | 13.89 ms | 37.81 |

    The table predates the fixes and is not a four-round load result. The current candidate completed its serial replay but failed all eight selected cross-engine exact-output comparisons. A component split attributed the new Skippy text to the fixed Metal bundle for two prompts; neither Skippy output matched vanilla. Original audit is preserved in the archive.

    Qwen3.8-Flash-Next — original screen, round 0 only

    | Arm | Complete | TTFT p95 | E2E p95 | TPOT p95 | Output tok/s |
    | --- | ---: | ---: | ---: | ---: | ---: |
    | Skippy base | 4/4 | 1,085.1 ms | 2,000.3 ms | 30.04 ms | 16.11 |
    | Skippy patched | 4/4 | 1,083.9 ms | 1,989.9 ms | 29.23 ms | 16.17 |
    | Vanilla separate slots | 4/4 | 1,169.7 ms | 2,084.2 ms | 29.64 ms | 15.49 |
    | Vanilla unified | 4/4 | 1,171.1 ms | 2,104.2 ms | 30.29 ms | 15.35 |

    The table is one pre-fix round. Current serial load-0001 still differs from vanilla; saved vanilla mixed-request short-9 also differs from its serial control. Original and current audits are preserved in the archive.

    Relative performance against llama — prior product source diagnostic

    The requested claim concerns performance. The source measured below predates the cache-policy split at 478f44ed, so these results are diagnostic for this PR head and do not qualify it. A separate performance-only protocol was sealed before new timing results (SHA256 18e4b945440c952ca9f93334dd7854d6745316f532530dedacdb6cc8c5e55d65). It compares the current product with both pinned vanilla llama.cpp layouts at the four table workloads: Qwen3.5 c128, Coder c256 with explicit Skippy waiting capacity 256, Qwen3.6 c1, and Flash c1. It uses the archived 512-input/32-output fixtures, eight balanced fresh-process rounds per model, full Metal, F16 KV, 16×8192 context, batch/microbatch 512, caches off, and nominal thermal and contention gates. For each vanilla layout, the paired 95% lower bound for Skippy/vanilla output tok/s must exceed 0.98; paired 95% upper bounds for p95 TTFT, E2E, and TPOT ratios must be below 1.02. All requests must complete with the fixed token counts. Qwen3.6 c1 completed all eight balanced rounds in jobs job_30kp5ng1zc8hnvs and job_fmbhxmmhkbcb9zs. Both immutable halves passed independent raw-request audits: 32/32 cells, 1,024/1,024 complete 512-input/32-output responses, matching IDs and prompts within each round, pinned model/product/native identities, full Metal/F16/batch settings, caches off, and nominal thermal readings. The local combined receipt is target/scheduler-fixes/artifacts/performance-qwen36-eight-rounds.json (SHA256 0eaa341bba9c1c1e6777949c03d07aa0d7f6466ce640f69a4c9dbba18eae4852); reviewer evidence will be published with the final tables. The failed installer/evidence harness jobs (job_ph6bdwzen9tr8s6, job_tnhfhvz536dh1t8, job_7db72hj9c2g6566) remain recorded, and their unpaired timing is excluded.

    | Qwen3.6 c1 metric | Skippy median | llama separate median | llama unified median | Paired Skippy/separate 95% CI | Paired Skippy/unified 95% CI |
    | --- | ---: | ---: | ---: | ---: | ---: |
    | Output tok/s | 38.706 | 38.443 | 37.950 | 1.0051–1.0090 PASS | 1.0175–1.0218 PASS |
    | p95 TTFT ms | 409.578 | 421.661 | 423.111 | 0.9643–0.9770 PASS | 0.9613–0.9726 PASS |
    | p95 E2E ms | 844.455 | 849.192 | 862.210 | 0.9852–1.0069 PASS | 0.9720–0.9890 PASS |
    | p95 TPOT ms | 14.052 | 13.862 | 14.345 | 0.9966–1.0420 UNPROVEN | 0.9650–1.0093 PASS |

    The registered TPOT margin is 1.02. Its separate-slot interval crosses that margin, so Qwen3.6 relative performance is UNPROVEN for that source, with no demonstrated regression. Qwen3.5 c128's first sealed half job_1zwsq47atscj4fz failed in evidence collection: inferencekit returned a capacity summary linked to 128 observed requests, while the runner expected requests directly under the summary. Its unpaired measurements are excluded; corrected replacement job_hgm2aa5xc7vksgw succeeded and passed an independent 16-cell/2,048-request audit on that prior source; it remains diagnostic evidence. The other model tables remain pending. The final source requires a new, prospectively sealed matched performance run.

    The historical table results above remain descriptive for their tested revisions. Absolute TTFT/TPOT SLO outcomes and output differences remain disclosed separately. This PR carries no task-quality equivalence claim. Earlier quality experiments and their failures remain in the history index; they were not regraded. Historical Thoughtworks indices 16/227 and older hybrid-MoE discrepancies remain unresolved. One-off profiling and task-quality files were removed from this PR at c50e6802 and preserved in a verified ignored local backup (SHA256 09c5d08bb860a45b449b2abaa842c2e85b1a3f4d41ba06ee78347cc49bd25f42).

    The version 2 registration (SHA256 4dce31295bd53adea44edacb7278e57a9d0a6c8e63f7da692f53bdf8e4bd36c3) was superseded before timing when current main changed the native queue and split CI contract. Its exact-source product build job_8yh22csczb8kfjg was cancelled after 8m12s on the $0 host; no version 2 timing result exists. The version 3 performance protocol was registered before timing on merged product source 9707dba3 (SHA256 2c058a3b3f68509ebafac9246d47488671b33b1d1d4bab76fa6dc56ef7d14d6c). It keeps the same four model/load points and paired 2% margins. The decision rule was clarified before any version 3 timing to compute the arithmetic mean of eight resampled same-round Skippy/vanilla ratios per bootstrap draw; the earlier version 3 registration is preserved at c38ec5af. The source-pinned version 3 product build job_gcj37aeavgwxh6q passed on the authorized $0 Mac Studio. Its 32-file Metal manifest (SHA256 2476d422ba59a8028257448bd420ff601146fcc632dbda01d6ff9db64c3b2fca) matches source 9707dba3 and binary SHA256 32be0ee7c08c18ef0dc95c8df171759776d3b9f77e143d49ede0e3283851f5fd. The first sealed Qwen3.6 four-round timing half job_cp473224q9aztkk succeeded at $0 and passed an independent audit of 16/16 cells and 512/512 complete 512-input/32-output requests (report SHA256 0b6137cee565595bf95ff6faa21259775cdd12cda00afca78feb9b2f21153229, audit SHA256 f169beef93746f2b7ccdc4e0f6f9543638b116f240bc39be1cecd653a39341d1). The second sealed half job_wzqpyad1v5hzs5e also succeeded at $0 and passed the independent 16-cell/512-request audit (report SHA256 9e011a89af06f8ed4e26e8febaf1b054936e4d044f44808d603888aafe9b96c7, audit SHA256 63412df2d06dc3ef32e399432cc4893e42d625b49f19ddbe356bea2faa1c6f12). The eight-round combined receipt is SHA256 37dfab6a3e5179b804000a1ac07d4dd0559a09ac8824af0ac62bcb67c0134a61; both halves covered 32/32 cells and 1,024/1,024 complete matched requests. Earlier timing is diagnostic only.

    Merged-source Qwen3.6 c1 — eight balanced rounds

    | Metric | Current Skippy median | llama separate median | llama unified median | Paired Skippy/separate 95% CI | Paired Skippy/unified 95% CI |
    | --- | ---: | ---: | ---: | ---: | ---: |
    | Output tok/s | 38.695 | 38.414 | 37.945 | 1.0058–1.0093 PASS | 1.0186–1.0224 PASS |
    | p95 TTFT ms | 407.773 | 423.105 | 423.868 | 0.9624–0.9654 PASS | 0.9614–0.9643 PASS |
    | p95 E2E ms | 848.613 | 853.419 | 866.181 | 0.9923–1.0037 PASS | 0.9788–0.9891 PASS |
    | p95 TPOT ms | 14.309 | 13.961 | 14.397 | 1.0083–1.0366 UNPROVEN | 0.9865–1.0015 PASS |

    The p95 TPOT interval against separate slots crosses the registered 1.02 margin, so Qwen3.6 is UNPROVEN despite seven passing comparisons. This is not a demonstrated regression.

    ##### Qwen3.6 diagnostic trace

    A follow-up ran two selected V3 prompt sets across four arms, with and without tracing on current Skippy. All 256 requests passed the pin, token count, cache, thermals and matched-input audit. The table reports diagnostics from two selected rounds. The eight-round registered verdict above still governs.

    | V3 prompt set | Untraced current / vanilla separate p95 TPOT | Traced / untraced current median TPOT | Median traced decode step | Median nested llama.decode |
    | --- | ---: | ---: | ---: | ---: |
    | 0 | 1.0342× | 1.0192× | 13.769 ms | 13.306 ms |
    | 6 | 1.0452× | 1.0312× | 13.768 ms | 13.306 ms |

    Tracing raised median client TPOT by 1.9%–3.1% while leaving current Skippy text identical on all 64 traced/untraced pairs. Current Skippy matched vanilla text on 5/64 prompts. All 1,984 decode iterations and their nested timing spans were captured. Three unrelated Metal buffer-free log lines were malformed. The timing points toward native decode for further investigation, and trace perturbation plus different continuations limit causal attribution.

    Diagnostic job job_fybekxnmgr53g5k, run run_j6nsdsmdk62wwh0, audit SHA256 53f353277870533c6e1fe0148a2a182745690930a8cee8c2d25959fd05258742. Cost $0.

    ##### Qwen3.6 fixed-token native replay

    The two reversed orders held prompt and continuation tokens fixed across both pinned native libraries and both KV layouts. All eight cells passed audit, with 992 synchronized decode steps on Metal and nominal thermal checks. The ratios below describe direct native decode with no sampling or serving, using the median and p95 of 124 token steps per cell.

    | Paired comparison | Round 0 median / p95 ratio | Round 1 median / p95 ratio |
    | --- | ---: | ---: |
    | Current / vanilla, separate | 1.0059× / 1.1317× | 1.0081× / 1.0288× |
    | Current / vanilla, unified | 0.9951× / 0.9572× | 0.9930× / 0.9941× |
    | Current unified / vanilla separate | 1.0111× / 1.0152× | 0.9984× / 1.0224× |
    | Current unified / current separate | 1.0052× / 0.8970× | 0.9903× / 0.9938× |
    | Vanilla unified / vanilla separate | 1.0160× / 1.0605× | 1.0054× / 1.0284× |

    The replay points away from a uniform slowdown in the current unified native path. It does not isolate the serving gap. The two rounds and synthetic forced continuations are diagnostic only. The registered c1 p95 TPOT comparison remains unproven.

    Diagnostic job job_qvnbvesakatgda3, run run_hzyw6yvdn9bcvtj, audit SHA256 71e6685b3df6a8a88f3adc005ea916ea23dfdac21a86a0ffaff90e64e49500b9. Cost $0.

    ##### Capacity-matched sampled decode replay

    On the same pinned Metal library, six cells replayed identical token IDs for each of two reversed arm orders. The audit verified 24 prompts, 744 decode steps, library identity, and nominal thermals. These are native iteration timings for a matched replay. The V3 serving verdict remains 31/32 gates.

    | Comparison (numerator / denominator) | Median, orders 1 / 2 | p95, orders 1 / 2 |
    | --- | ---: | ---: |
    | Direct decode, 32 / 16 native slots | 0.9995× / 0.9963× | 0.9659× / 1.0951× |
    | Sampled iteration / direct decode, both 32 slots | 1.0207× / 1.0220× | 1.0577× / 1.0205× |

    The sampled iteration consistently added time at the median. The slot-capacity comparison had mixed p95 results. The sampled/direct comparison covers the entire native iteration path, including preparation, bookkeeping and sampling, so it does not isolate the cost of sampling alone. The first probe stopped before sampled timing because it expected 16 native slots. Its timings are excluded.

    Audited run run_1v0fpgnq179q77q used 6.46 minutes on macstudio-2l0352 at $0. Evidence archive SHA-256 e1fa1dab61b32d40e08782b4ed505a7b8ca84f6a7eb0dc169d8547577d401772. Audit SHA-256 93de38b75b7d886481979cbd0f1b14045f227d22cb4436288e92026417de5a12.

    ##### Qwen3.6 greedy vocabulary scan

    The matched-logit probe checked the existing scalar scan and the Accelerate scan on the same 248 live decode rows. Both implementations selected identical tokens on every row. Alternating which scan ran first, the scalar median was 276–279 μs and the accelerated median was 37–38 μs. Median paired savings were 240–242 μs. All rows used the accelerated path. The run took 3.71 minutes at $0 on the pinned M1 Ultra with nominal thermals.

    Commit 4faa531711c9 applies the Accelerate scan to Apple builds. The scalar scan handles ambiguous maxima, non-finite results and biases that could change the winner. The focused native CTest run passed seven tests, including three argmax cases and their fixture setup. The full native Metal replay finished with 340 passed, zero failed, and one skipped (skippy_resident_checkpoint_gpu_long). The uninstrumented eight-round serving retest passed all eight Qwen3.6 c1 gates.

    Run run_w9m85x596dfr2jd. Evidence archive SHA-256 3612dc4dc222f95722dd8798afaa9b309c6d7256a311cc078209f6fff3c5efa6. Audit SHA-256 5346447736720bd766b5fedabb191560336ce0b11d0e34cde09ab2ac4c1371b5.

    ##### Qwen3.6 c1 after the Apple argmax change

    PASS for Qwen3.6 c1 on 4faa531711c9. All eight registered 2% performance gates passed against the pinned vanilla llama.cpp binary in separate and unified layouts. The 95% interval for p95 time per output token versus separate slots was 0.9936–1.0101, with an upper bound below the 1.02 margin.

    The pre-registered retest kept the V3 workload and decision rules. Eight balanced fresh-process rounds covered 32 benchmark cells and 1,024 complete matched 512-input/32-output requests. The Mac Studio ran full Metal with F16 KV, 16×8192 context, batch and microbatch 512, caches off, and nominal thermal readings. The table reports client timings. Intervals are for the mean of same-round Skippy/llama ratios, bootstrapped under the original V3 rule.

    | Metric | Skippy median | llama separate median | llama unified median | Paired Skippy/separate 95% CI | Paired Skippy/unified 95% CI |
    | --- | ---: | ---: | ---: | ---: | ---: |
    | Output tok/s | 38.683 | 38.197 | 37.720 | 1.0123–1.0151 PASS | 1.0228–1.0291 PASS |
    | p95 TTFT (ms) | 409.580 | 421.910 | 423.523 | 0.9645–0.9739 PASS | 0.9608–0.9703 PASS |
    | p95 E2E (ms) | 842.814 | 853.125 | 862.413 | 0.9841–0.9928 PASS | 0.9704–0.9835 PASS |
    | p95 TPOT (ms) | 14.106 | 14.101 | 14.365 | 0.9936–1.0101 PASS | 0.9672–0.9931 PASS |

    All arms met the absolute TTFT and TPOT SLOs in all eight rounds. The 256 output hashes per arm matched that arm's historical V3 results. Skippy outputs matched 32 of 256 for each vanilla layout. Task-quality equivalence remains unclaimed.

    The two timed halves occupied the Mac Studio for 93.41 minutes at $0. Runs and evidence archives follow.

    | Rounds | Run | Evidence archive SHA-256 | Audit SHA-256 |
    | --- | --- | --- | --- |
    | 0–3 | run_4bxdcs185avbjx0 | ed52f96eaf7abf40d3af4dc96fb4e36993f63ac6b160562abce5087fb67138df | 926a974537bb7200cc6ae6f08d4d922a2a56cbbd6dc9159c05b833a9c1b0654c |
    | 4–7 | run_4ftw2xc6srrbsgs | 1fee4ca44f0c0415729cf17e78a98a48a23995c68271d726be2e5a917761c374 | 6ff53ff64f752a9de900d1af420946d2364e92d465f5f0eabe0ce1f0c2fb8414 |

    Combined receipt SHA-256 f523cee9a024fb826191ef2d253fa97f13cc3ed29bf28dced38f1392d622451e. Protocol SHA-256 0f745bf28ca49cb75c497403899221609bc7ac6e1c5dd577b282a58d784984d2. Exact-source Metal manifest SHA-256 c15882190cae66d5053496f352d2b15eb1f78ff8e9507fd342071a2ce4380482.

    Merged-source Qwen3.5 c128 — eight balanced rounds

    The first sealed half job_0k86e3nbz5881z6 failed its native thermal guard after 14/16 cells; its partial timing is excluded (failure SHA256 299fb5202d30d0aa18d3df7cde5093fed035680696c6f7b32ac56995088300cb). Immutable-spec rerun job_4c15mx57p7kxxj4 and sealed second half job_bbqft3t32rrjzzc each passed independent 16-cell/2,048-request audits on the pinned $0 Metal host, with no overlapping JY job. Their audit SHA256 values are f098724a65a74de9d54db309272663e0c82691ede1cbc6eaee68b3a6ab2abcab and 4acbc80b52a8818ff150ad460302d9944fb608f317659cf0a3d41f0d67292dd8; the eight-round receipt is SHA256 e5ff33e26040a0917c494d8a3137b91bf8a15f08f03808588c1864733a9b8bf1.

    | Metric | Current Skippy median | llama separate median | llama unified median | Paired Skippy/separate 95% CI | Paired Skippy/unified 95% CI |
    | --- | ---: | ---: | ---: | ---: | ---: |
    | Output tok/s | 61.244 | 52.224 | 53.017 | 1.1721–1.1732 PASS | 1.1544–1.1558 PASS |
    | p95 TTFT ms | 61857.959 | 73672.792 | 72524.432 | 0.8391–0.8400 PASS | 0.8523–0.8533 PASS |
    | p95 E2E ms | 65944.790 | 77497.334 | 76322.152 | 0.8506–0.8516 PASS | 0.8636–0.8647 PASS |
    | p95 TPOT ms | 250.424 | 287.207 | 281.513 | 0.8716–0.8732 PASS | 0.8888–0.8907 PASS |

    All eight registered relative-performance comparisons PASS for Qwen3.5 c128. Its absolute p95 TTFT exceeds the separately reported 30-second target in every arm and every round; the relative result does not make that SLO pass. The original current-source Coder c256 first cell (job_969s8275fjt845x) and two unchanged-limit diagnostics (job_7966nhh415pf7tk, job_scfewy9vv85dxxz) each completed 247/256 requests and failed the same nine request IDs near the end of the 0.780-second connection burst; all three incomplete timing cells are excluded. The live listener diagnostic sampled a maximum queue of 13/128 across 1,000 untimestamped samples (audit SHA256 ac229cc0ab16c3a9414239e87f68fc2556d16e75c0a9d0d39a0201df7bf995a6), weakening the listen-backlog hypothesis without ruling out an unsampled spike. A controlled first-cell intervention measured the JY shell soft open-file limit at 256 (hard limit unlimited), raised only that limit to 1024, and completed all 256/256 requests with pinned model/product/native settings, caches off, full Metal and nominal thermals (job_68rs7wm0z9ms2tk; audit SHA256 a5d8f14d35025ffe46d3211904d9f251fbd15d97d1a02996d2accc66862965d2). This implicates the inherited file-descriptor limit in the connection failures; the diagnostic result is not a relative timing result. A registered environment addendum applies soft limit 1024 equally to every arm without changing the workload or margins. Its first balanced half job_wh5e6eqr9f9a759 completed Skippy 256/256 but became thermal-invalid during vanilla separate slots (audit SHA256 b0aa9b6c0017a65150d9007d3d615324b3cec2f21f2f4740ff86810144c41d1e). The same-spec cooled rerun job_z02pkxdf82j82sa completed Skippy and vanilla separate slots 256/256 each, then became thermal-invalid during vanilla unified (audit SHA256 b2d8fda5cf5bda8e8bd0e28f7eed85884666ddd0a043ffd0e4cc1a18b811b2ee). Both partial halves are excluded. Before further timing, the addendum sealed a 600-second cooldown before every arm and the same eight rounds partitioned into smaller jobs; model/product/native pins, request IDs, round order, thermal guard, statistical reducer, and 2% margins remain fixed. Rounds 0 and 1 each passed independent audits of all four arms and 1,024/1,024 complete fixed requests, exact matched IDs, pinned model/product/native settings, caches off, full Metal, and nominal thermals. Round-0 job job_092xm6yk5fkqrwx used sealed spec SHA256 59015a9d69af7f7d9b1e0071de36ebc8c7645cbd36190190c47ded82242ccb79 (report 8e7453663dd3bcb9d177ee4d5c8d16c33af9a4edc4448ee35195aadf3d84d8c8; evidence 3b126e06d0c1fd988f897a684aeffa0f7b65b81fe70f8839320f4e7074e2a5ee; audit 3593e975cbb0c20a32277ca052ab79218b30b9f2d382535d656b99dc446da3b5). Round-1 job job_bm54r9m9vsyqrfy used sealed spec SHA256 5e0320745235d08406d7e190a916bf99cd7cd30f5ffb37424f45c2fb19b23771 (report 1d701485f0d0d51ab1d1d7c910c176b1d6a5cbecf84ad71ce0362c3ec4086dc4; evidence 1fd2b149447603c3a0402d7bb4f970e24d5c170c032a53312eeb19e8384a1c50; audit 42c662410f4c972ac72be4c5425b5beee776c798538abbbb293239c68bea3e36). The grouped rounds-2–3 job job_v89ft7tbn0fcta1 failed the thermal guard at round 3's final Skippy cell. Its four completed round-2 cells passed a diagnostic audit, but the registered addendum excludes all timing from a partially completed job: neither round is admitted (failed report bb9a7fade0abc27b5c43291ab7678da88cbff3b286def4da23d1a01f922537d8; evidence 05bce1df2f83591258d4a0476eccb7d566d8c68b3480bf20680f572b2f2f33b4; failure 342fd4d8ca45c3e0cca4463d27ec4f3935824a99d4941b9a0373f3969dcd33e4; diagnostic audit a3f24f0def1df9e4c77adf6c9903b31b1e93838dfa9fe3fb353576d755e74794). The pushed addendum seals standalone four-arm replacements for rounds 2–7 before new results; all requests, arm orders, host/source/native pins, 600-second cooldown, thermal guard, paired statistic, and 2% margins stay fixed. All eight standalone rounds subsequently passed independent audit. The Coder table below uses those eight rounds. Flash c1 first-half job job_m2rxa5mret4tz19 failed before recoverable model evidence when the JY agent lost its heartbeat for 300 seconds; no report or timing is accepted (failure receipt SHA256 13ab24d63649ce17ebdab2f6dbb21aaafddbf115c070e7e0aab9acefb7215063). The same immutable-spec replacement job_acj1far6dy7gvqc produced no timing cells: its shared host helper resolved Flash shard 00001’s named snapshot symlink to a content-addressed blob, and the native loader rejected the resulting split filename before readiness (failure audit SHA256 c59c83ae85cd00ac1c2bd11cabe1e386b4bfba3b57f23f9fd6122b5fc01ab27c). A Flash-only harness correction preserves the verified named four-shard snapshot path in every arm; it changes no model, product, fixture, request, hardware, or decision pin. Corrected first-half job job_xftv8qpbgkrmef5 used sealed spec SHA256 3974053c622b706280f58a54198fa11bd68484b8fff1f601e6c079273f91fabb. Its runner completed all 16 cells, but Jianyang marked the job failed after a 300-second heartbeat loss during finalization and did not export artifacts. A read-only recovery and a separate export job retrieved the original run files byte-for-byte (report SHA256 3a77e900e8950b9007ada8e66a517fddef242684e9528b6d35450b717f544634, evidence SHA256 42ab2dd701e2ece1ae96109303cc363eefc5383b3251bb2f4fbe2e2b95b8d377). The independent split-path/native/request audit passed 16/16 cells and 512/512 fixed requests (audit SHA256 9b793f8c8358ec2025c66ed2875be7f9034de301f93e16e55a8ac07bf1acbb6e); this is accepted as recovered timing evidence while the JY control-plane failure remains recorded. The failed run workspace was then removed by a scoped, hash-checked cleanup job job_f07ph9zhkxfahz5. The corrected second half job_t9rqcq6c1rjqapb succeeded at $0 and passed the same independent split-path/native/request audit: 16/16 cells and 512/512 complete requests (report SHA256 2615f5b64b7dbbba882081c9edbd5f7a6ac974c6ad9c0385e5f65257d79c4e40, evidence SHA256 44a850b401dc366b33a7139749fcf1659a226259203422bc1bb4d12eb9b46512, audit SHA256 4721c38b4638511944d27b2b98c6ecb497093f37e5402cd6dfcfd1dd576a5c0e). Both earlier failures remain excluded.

    Merged-source Qwen3.8-Flash-Next c1 — eight balanced rounds

    The corrected split-path halves cover 32/32 cells and 1,024/1,024 complete matched 512-input/32-output requests. The eight-round combined receipt is SHA256 90dc61bceb8c5340d5ab1af22d6746ccc93cd61f47ed5c240718e486154e2a2c; first-half Jianyang finalization failure and byte-for-byte recovery are disclosed above. The split GGUF path correction was limited to the benchmark harness.

    | Metric | Current Skippy median | llama separate median | llama unified median | Paired Skippy/separate 95% CI | Paired Skippy/unified 95% CI |
    | --- | ---: | ---: | ---: | ---: | ---: |
    | Output tok/s | 15.999 | 15.590 | 15.538 | 1.0252–1.0585 PASS | 1.0290–1.0828 PASS |
    | p95 TTFT ms | 1,075.611 | 1,142.069 | 1,139.609 | 0.8948–0.9453 PASS | 0.8799–0.9477 PASS |
    | p95 E2E ms | 2,027.354 | 2,083.170 | 2,086.977 | 0.9345–0.9771 PASS | 0.8588–0.9746 PASS |
    | p95 TPOT ms | 30.808 | 30.593 | 30.840 | 0.9701–1.0188 PASS | 0.8894–1.0078 PASS |

    All eight relative-performance comparisons PASS for Flash c1. Every arm also passes the separately reported absolute TTFT and TPOT SLOs in all eight rounds. Exact-output differences remain disclosed in the historical section and are outside this performance-only gate.

    Merged-source Qwen3-Coder-30B-A3B c256 — eight balanced rounds

    All 32 measured cells completed, with 8,192 of 8,192 fixed requests audited on the pinned Mac Studio at $0. Each cell used the registered 512-input/32-output fixture, full Metal, F16 KV, caches off, 16 lanes with 8192 context, batch and microbatch 512, soft file limit 1024, and a 600-second cooldown. The failed and partial jobs above are excluded.

    | Metric | Current Skippy median | llama separate median | llama unified median | Paired Skippy/separate 95% CI | Paired Skippy/unified 95% CI |
    | --- | ---: | ---: | ---: | ---: | ---: |
    | Output tok/s | 59.234 | 50.549 | 58.792 | 1.1702–1.1723 PASS | 1.0062–1.0078 PASS |
    | p95 TTFT ms | 129807.603 | 152837.104 | 131238.954 | 0.8491–0.8507 PASS | 0.9889–0.9905 PASS |
    | p95 E2E ms | 137070.670 | 160819.858 | 138047.004 | 0.8520–0.8536 PASS | 0.9926–0.9942 PASS |
    | p95 TPOT ms | 261.467 | 306.542 | 259.324 | 0.8522–0.8541 PASS | 1.0072–1.0090 PASS |

    Coder c256 passes all eight registered relative gates. Its p95 TPOT against vanilla unified is 0.7%–0.9% higher by the paired interval, within the 2% margin. All four arms exceed the 30-second absolute p95 TTFT target in every round and pass the 1-second p95 TPOT target in every round. The original Skippy diagnostic arm is excluded from the relative gates.

    <details>
    <summary>Coder audit receipts</summary>

    | Round | JY job | JY run | Audit SHA256 |
    | ---: | --- | --- | --- |
    | 0 | job_092xm6yk5fkqrwx | run_p4mjcbhbwam3gz4 | 3593e975cbb0c20a32277ca052ab79218b30b9f2d382535d656b99dc446da3b5 |
    | 1 | job_bm54r9m9vsyqrfy | run_tfztfjx46bs49qw | 42c662410f4c972ac72be4c5425b5beee776c798538abbbb293239c68bea3e36 |
    | 2 | job_an9qerk5345gj1n | run_faeg23h57anwq30 | 3317992ab16228753a3f9e4e04e973a08c015e8db3b1b906a69818991b84e745 |
    | 3 | job_es8jq6hbx4gc743 | run_56gbwemqwm9gmrt | db123427d8c40ea1782f4a97108af6763c0214c5989a9d2a4b78d83aaa53b2fa |
    | 4 | job_nbw9jbdkmpdmjev | run_zh5y3ygye2qyg32 | 706ab12d02e11a76f45c9c98ac3c6d16318855d85f9960526882b1e4d844988c |
    | 5 | job_x5204he6hyja83a | run_bjar497fpaj534k | c05787311549fe6fda310add309373c8e4c414cd0356d87134620bbe7cf0f212 |
    | 6 | job_1trpkn45ry40ynt | run_kmm5p8a5bawyj64 | d9d7de79ad73418213ef13c346593eb6facf4e10807ecd2c0c04e89ad2b4784e |
    | 7 | job_4m9dvtjzd39smky | run_3ta7xcb11hq6wt4 | ce9bb24f4f926619d4ded74b263943a842251c5b39eb2022886ceab0ee1cd288 |

    The eight-round aggregate SHA256 is 4c684d360397c2059b29a1d9782064ee9139e4e4dd0fe8f38c60bafbca7a9031.

    </details>

    Historical four-model V3 result (9707dba3) remains 31/32. Qwen3.5, Coder, and Flash passed their registered gates there. The follow-up at 4faa531711c9 passed 8/8 for Qwen3.6 c1. The other three workloads were not run at the follow-up revision.

    Acceptance criteria

  • I ran the relevant local checks, or explained why they do not apply.

  • I agree to license my contributions under the Apache License, Version 2.0.
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    Long prompts can be processed in chunks, with sampling during chunked prefill when requested.
    Bug Fixes
    Ready decode requests receive a turn between consecutive prefill-only batches, and long prefills take turns more evenly.
    Prompts that exceed the direct-iteration token limit are no longer selected for single-prefill processing.
    Corrected Metal Q4_K calculations to preserve expected results across projection widths.
    Decode scheduling rotates more fairly, while prefill work respects configured chunk and iteration limits.
    Improved Apple token selection while preserving correct results for ties and unusual values.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: jaredwy Review duration: 5906m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.52) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #233"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 27.7% · Safe to merge
    27.7%