FAILURE MAP
← Case archive

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

Quest bonus paid on every trip after the threshold · case 05

After the tenth trip each further trip repeats the 10-trip bonus.

Member previewVariant 5 · 3 implementations · 7 checks per implementation

Case contract

Driver pay per trip in cents: the surged core fare (core x surge tenths, half up) minus the commission percentage (floored), raised to min_pay if lower; tolls and tips pass through untouched and are outside commission and the minimum; the booking fee is platform revenue. A quest bonus is paid when this trip is exactly the Nth trip for a quest threshold N (trips_before + 1 == N). Return pay and bonus.

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: quest crossing{"bonus": 4000, "pay": 600}{"bonus": 2500, "pay": 600}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 ↗