FAILURE MAP
← Case archive

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

Earlier tips not counted toward the cap · case 03

Repeated tips on one trip exceed the cap.

Member previewVariant 3 · 3 implementations · 7 checks per implementation

Case contract

Tips can be added from trip end through 72 hours later inclusive (259200 s). Total tips per trip are capped at the larger of twice the fare or 50.00; a new tip is truncated to the remaining room, and rejected with "cap" when no room is left. Return [accepted cents, reason].

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: prior tips room[5000, "ok"][0, "cap"]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 ↗