FAILURE MAP
← Case archive

FA-93079 / EV charging session scheduling / Member archive

Round-robin port rotation: preempted vehicle queue position · case 04

A vehicle whose quantum expired immediately gets its port back, starving waiting vehicles.

Member previewVariant 4 · 3 implementations · 7 checks per implementation

Case contract

vehicles is [[id, need_slots]] in arrival order. Each slot, free ports are filled from the FIFO queue; a vehicle holds its port for quantum slots or until done, then goes to the back of the queue. Return [timeline of sorted charging ids per slot, [[id, finish]] sorted by id] where finish is the slot index after its last charging slot, 0 when nothing was needed, None if unfinished.

Why this case matters

Depot, workplace and public EV chargers schedule sessions against prices, circuit limits and departure deadlines; a wrong decision silently strands a driver or overloads a feeder.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: preempted vehicle queue position[[["V0"], ["V0"], ["V0"]], [["V0", null], ["V1", null]]][[["V0"], ["V0"], ["V1"]], [["V0", null], ["V1", null]]]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗