FAILURE MAP
← Case archive

FA-93082 / EV charging session scheduling / Member archive

Round-robin port rotation: completion before quantum expiry · case 02

A vehicle that finishes exactly at its quantum boundary is requeued and never reported done.

Member previewVariant 2 · 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
boundary: vehicle needing nothing[[["B"], ["B"], ["B"]], [["A", 0], ["B", null]]][[["B"], ["B"], []], [["A", 0], ["B", 2]]]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 ↗