FAILURE MAP
← Case archive

FA-85555 / Ride-hailing fare and surge pricing / Member archive

Exact minimum overlap does not count as matched · case 05

Riders sharing exactly three minutes lose the matched discount.

Member previewVariant 5 · 3 implementations · 7 checks per implementation

Case contract

In a shared ride, a rider counts as matched if they shared at least min_overlap_s seconds with another rider; a match needs at least two such riders, otherwise nobody is matched. Matched riders pay solo x (100 - discount_pct)% and unmatched riders pay solo x 95%, both floored to the cent in the rider's favor. Return id -> price.

Why this case matters

Ride-hailing prices are computed per trip at scale; ordering, unit and boundary slips become systematic over- or under-charging.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: overlap threshold{"r0": 1172, "r1": 1899}{"r0": 863, "r1": 1399}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 ↗