FA-67688 / Elevator dispatch scheduling / Member archive
Emergency power sequential return: return duration · case 03
Return starts are too early because door time is ignored.
Case contract
On emergency power in-service cars (not oos) return to the lobby one at a time: occupied cars (load > 0) first, then by lower floor, then id. Each return takes floor*per_floor_s + door_s; starts are cumulative. Afterwards the preselected car runs if it is in service, otherwise the first car of the return order (None if no car).
Why this case matters
Lift group controllers make these decisions many times per minute; a wrong answer strands passengers, wastes trips or overrides a safety rule.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: lobby car still takes door time | {"done_s": 8, "order": ["P1", "P2"], "selected": "P1", "starts": {"P1": 0, "P2": 0}} | {"done_s": 18, "order": ["P1", "P2"], "selected": "P1", "starts": {"P1": 0, "P2": 5}} | 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 ↗