FAILURE MAP
← Case archive

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

A single rider with overlap gets the shared discount · case 03

When only one rider meets the overlap threshold, that rider still receives the matched discount.

Member previewVariant 3 · 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: lone matched rider{"r0": 613}{"r0": 833}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 ↗