Serving branch: workspace accounting (PR #111 backport), #92/#108 cherry-picks, named-tool fixes, localflow+evalkit, session docs, README
The full serving delta for review: deterministic workspace/arena accounting, community cherry-picks (retention + CAR-profiling leak), truncated-tool-call finish_reason fixes with regression tests, deploy/localflow + deploy/evalkit consolidation, frontier session docs 2-3, README rewrite.
@cubic-dev-ai review
🤖 Generated with Claude Code
Summary by cubic
Hardens KV sizing and TurboQuant continuation safety, syncs the capacity gateway with tests, adds deterministic deploy/evalkit, and ships env‑gated snapshot/pin/restore/fork routes. Also integrates S4 scoped‑drafter guards and re‑applies the env‑gated MTP retention on the upstream v0.1.15 scheduler.
-
KV accounting: reserves both the TurboQuant continuation workspace and the speculative‑verify working set before sizing; profiling adds back min(arena, reserve);
max_model_lencaps earlier or raises the existing error; logs reserve decisions. -
Continuation safety: env‑gated pre‑launch bounds check clamps poisoned
block_tableentries before continuation dequant. -
Gateway: synced with production, fixed DeepSeek tool‑call failover by forcing remote no‑think; improved first‑token gating; streams upstream 4xx; added in‑flight “monster” bypass and foreign‑load sensing; routing tests added.
-
Eval kit: deterministic
deploy/evalkitwith a fixed long‑context corpus and saved baselines for raw engine checks on:8001. -
Snapshot/fork (env‑gated): adds
/tq/*routes, including non‑blocking/tq/fork2with per‑child SSE. Throwaway engines only; never for:8001. -
S4 scoped‑drafter (env‑gated): explicit
--async-schedulinghard‑fails with suffix overlay and with the S4 v2 CPU list path; the GPU‑merge variant preserves async. -
Xid31 tracing (env‑gated): instruments max‑model‑len boundary suspects; default off.
-
Scheduler merge: rebases to upstream
v0.1.15scheduler (round_downform) and re‑applies env‑gatedVLLM_MAMBA_ALIGN_RETAIN_MTP_CACHE_BLOCKretention on the Mamba align prefix cache. -
Rollout
- No client API changes. Defaults:
VLLM_TQ_RESERVE_PREFILL_WORKSPACE=1,VLLM_SPEC_RESERVE_VERIFY_WORKSPACE=1,VLLM_TURBOQUANT_CONTINUATION_BOUNDS_CHECK=0,SHIM_REMOTE_NO_THINK=1. - Keep evals off the gateway; run with
BASE_URL=http://localhost:8001. - Snapshot/fork and Xid31 tracing are opt‑in; never enable
/tq/*routes or tracing on:8001.
- No client API changes. Defaults: