Do this only if the format matches
Confirm the round with recruiting first. This is an original practice exercise, not a claim that a specific company uses this exact prompt.
Protocol
- Derive worst-case KV reservation per request before writing scheduler code.
- Implement admission and release invariants.
- Keep decode moving while chunking long prefills.
- Rotate across tenants without violating per-tenant FIFO.
- Run the supplied tests, then replay the arrival trace conceptually.
- Defend overload shedding, SLO metrics, and one alternative scheduler.
Deliverables
- A passing scheduler implementation.
- A policy note for time to first token and inter-token latency.
- An overload and tenant-isolation design.
- A bottleneck dashboard with four discriminating metrics.
Graduation gates
Reserved blocks never exceed capacity.
Long prefill cannot starve active decode.
Finished requests release memory immediately.
The policy has an explicit rejection or degradation point.