FA-85732 / Ride-hailing fare and surge pricing / Member archive
Smoothing reads already-smoothed neighbors · case 02
Surge spreads several hops from a hotspot depending on zone name order.
Case contract
Smooth zone multipliers (tenths): each zone publishes the max of its own raw multiplier and each neighbor's raw multiplier minus 5, clamped to [10, 30]. Adjacency is symmetric even when listed once; neighbors without a raw multiplier are ignored; all reads use raw values, never already-smoothed ones. Return zone -> published multiplier.
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 fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: raw neighbor values | {"A": 25, "B": 30, "C": 25} | {"A": 25, "B": 30, "C": 30} | 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 ↗