{"abstract":"Riders heading into a surging stadium zone pay its surge from a calm neighborhood.","category":"Ride-hailing fare and surge pricing","checks":7,"contract":"Surge zones are rectangles, half-open [x0, x1) x [y0, y1). The multiplier comes from the pickup point only. Among zones containing it choose highest priority, then highest multiplier, then lowest id. No containing zone gives [None, 10] (1.0x in tenths). Return [zone id, multiplier].","contract_signature":"zones, pickup, dropoff","evaluation_group":"w2-ride-hailing-fare-surge-surge-zone-lookup","failed_approach":"Matching zones at either endpoint still applies dropoff surges.","family":"w2-ride-hailing-fare-surge-surge-zone-lookup-pickup-anchored-surge","id":"FA-85476","implementations":{"attempt":{"sha256":"e94f7a0d85328bccc9bdc657821514b53b0d77591b972bb49c1d1054be430ca6","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(zones, pickup, dropoff):\n    best = None\n    for z in zones:\n        if any(z['x0'] <= p[0] < z['x1'] and z['y0'] <= p[1] < z['y1'] for p in (pickup, dropoff)):\n            k = (z['priority'], z['mult'], -z['id'])\n            if best is None or k > best[0]:\n                best = (k, z)\n    if best is None:\n        return [None, 10]\n    return [best[1]['id'], best[1]['mult']]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: pickup-anchored surge',\n   [[{'id': 4, 'mult': 20, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 0, 'y1': 10}], [40, 10], [5, 0]],\n   [None, 10]),\n  ('partial repair probe: pickup-anchored surge',\n   [[{'id': 26, 'mult': 12, 'priority': 2, 'x0': 20, 'x1': 30, 'y0': 0, 'y1': 10},\n     {'id': 6, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 20},\n     {'id': 24, 'mult': 15, 'priority': 2, 'x0': 10, 'x1': 20, 'y0': 20, 'y1': 30},\n     {'id': 41, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 20, 'y1': 30},\n     {'id': 25, 'mult': 12, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 20, 'y1': 40}],\n    [20, 30], [20, 12]],\n   [25, 12]),\n  ('second regression',\n   [[{'id': 34, 'mult': 20, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 0, 'y1': 20},\n     {'id': 32, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 0, 'y1': 10},\n     {'id': 44, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 0, 'y1': 20}],\n    [0, 12], [15, 20]],\n   [34, 20]),\n  ('normal control 1',\n   [[{'id': 30, 'mult': 12, 'priority': 2, 'x0': 20, 'x1': 40, 'y0': 0, 'y1': 20}], [10, 30], [0, 10]],\n   [None, 10]),\n  ('normal control 2',\n   [[{'id': 45, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 20, 'y1': 30}], [35, 12], [10, 12]],\n   [None, 10]),\n  ('normal control 3',\n   [[{'id': 37, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 10, 'y1': 20}], [40, 30], [15, 10]],\n   [None, 10]),\n  ('normal control 4',\n   [[{'id': 49, 'mult': 15, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 10, 'y1': 20},\n     {'id': 12, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 20, 'y1': 40},\n     {'id': 17, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 0, 'y1': 20}],\n    [30, 26], [40, 12]],\n   [None, 10])],\n [('regression: pickup-anchored surge',\n   [[{'id': 49, 'mult': 20, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 40},\n     {'id': 19, 'mult': 15, 'priority': 2, 'x0': 0, 'x1': 20, 'y0': 10, 'y1': 20},\n     {'id': 42, 'mult': 15, 'priority': 2, 'x0': 20, 'x1': 40, 'y0': 10, 'y1': 30},\n     {'id': 37, 'mult': 15, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 10, 'y1': 30}],\n    [5, 12], [10, 20]],\n   [19, 15]),\n  ('partial repair probe: pickup-anchored surge',\n   [[{'id': 2, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 20, 'y1': 30},\n     {'id': 23, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 30},\n     {'id': 7, 'mult': 12, 'priority': 2, 'x0': 10, 'x1': 20, 'y0': 20, 'y1': 30},\n     {'id': 37, 'mult': 20, 'priority': 1, 'x0': 0, 'x1': 10, 'y0': 10, 'y1': 20}],\n    [27, 0], [20, 20]],\n   [None, 10]),\n  ('second regression',\n   [[{'id': 21, 'mult': 12, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 20, 'y1': 40},\n     {'id': 29, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 0, 'y1': 10},\n     {'id': 7, 'mult': 20, 'priority': 2, 'x0': 20, 'x1': 30, 'y0': 20, 'y1': 40},\n     {'id': 33, 'mult': 15, 'priority': 2, 'x0': 10, 'x1': 30, 'y0': 20, 'y1': 30}],\n    [30, 20], [0, 30]],\n   [21, 12]),\n  ('normal control 1',\n   [[{'id': 27, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 30}], [40, 12], [30, 10]],\n   [None, 10]),\n  ('normal control 2',\n   [[{'id': 15, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 30},\n     {'id': 16, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 20, 'y1': 30},\n     {'id': 23, 'mult': 15, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 20, 'y1': 40}],\n    [15, 5], [40, 30]],\n   [None, 10]),\n  ('normal control 3',\n   [[{'id': 19, 'mult': 15, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 0, 'y1': 20},\n     {'id': 6, 'mult': 12, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 10, 'y1': 30},\n     {'id': 50, 'mult': 15, 'priority': 2, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 30}],\n    [40, 10], [10, 30]],\n   [None, 10]),\n  ('normal control 4',\n   [[{'id': 20, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 10, 'y0': 20, 'y1': 40},\n     {'id': 44, 'mult': 20, 'priority': 2, 'x0': 10, 'x1': 20, 'y0': 0, 'y1': 20}],\n    [15, 20], [40, 0]],\n   [None, 10])],\n [('regression: pickup-anchored surge',\n   [[{'id': 8, 'mult': 15, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 10, 'y1': 30},\n     {'id': 41, 'mult': 12, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 30},\n     {'id': 15, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 0, 'y1': 20}],\n    [32, 10], [5, 20]],\n   [None, 10]),\n  ('partial repair probe: pickup-anchored surge',\n   [[{'id': 35, 'mult': 12, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 10, 'y1': 20},\n     {'id': 34, 'mult': 12, 'priority': 2, 'x0': 20, 'x1': 40, 'y0': 10, 'y1': 30},\n     {'id': 12, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 0, 'y1': 10}],\n    [40, 30], [10, 0]],\n   [None, 10]),\n  ('second regression',\n   [[{'id': 46, 'mult': 12, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 30},\n     {'id': 19, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 20},\n     {'id': 47, 'mult': 20, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 10, 'y1': 30},\n     {'id': 39, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 10, 'y1': 20},\n     {'id': 48, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 10, 'y0': 0, 'y1': 10}],\n    [15, 10], [40, 12]],\n   [19, 15]),\n  ('normal control 1',\n   [[{'id': 25, 'mult': 12, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 0, 'y1': 20},\n     {'id': 6, 'mult': 15, 'priority': 2, 'x0': 20, 'x1': 40, 'y0': 0, 'y1': 10},\n     {'id': 37, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 0, 'y1': 20}],\n    [0, 10], [0, 10]],\n   [25, 12]),\n  ('normal control 2',\n   [[{'id': 23, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 10, 'y1': 30},\n     {'id': 11, 'mult': 15, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 20, 'y1': 30},\n     {'id': 3, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 20, 'y1': 40},\n     {'id': 30, 'mult': 20, 'priority': 2, 'x0': 20, 'x1': 40, 'y0': 10, 'y1': 20},\n     {'id': 2, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 20, 'y1': 40}],\n    [40, 23], [16, 0]],\n   [None, 10]),\n  ('normal control 3',\n   [[{'id': 30, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 20, 'y1': 40},\n     {'id': 16, 'mult': 12, 'priority': 2, 'x0': 10, 'x1': 30, 'y0': 0, 'y1': 20},\n     {'id': 23, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 40}],\n    [40, 26], [5, 10]],\n   [None, 10]),\n  ('normal control 4',\n   [[{'id': 14, 'mult': 12, 'priority': 2, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 30},\n     {'id': 40, 'mult': 15, 'priority': 2, 'x0': 0, 'x1': 20, 'y0': 10, 'y1': 30}],\n    [35, 20], [40, 10]],\n   [None, 10])],\n [('regression: pickup-anchored surge',\n   [[{'id': 14, 'mult': 15, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 10, 'y1': 20},\n     {'id': 5, 'mult': 12, 'priority': 2, 'x0': 0, 'x1': 20, 'y0': 10, 'y1': 20},\n     {'id': 29, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 10, 'y1': 20}],\n    [0, 10], [40, 12]],\n   [5, 12]),\n  ('partial repair probe: pickup-anchored surge',\n   [[{'id': 9, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 10, 'y0': 0, 'y1': 10},\n     {'id': 36, 'mult': 15, 'priority': 2, 'x0': 10, 'x1': 30, 'y0': 20, 'y1': 40}],\n    [20, 5], [19, 25]],\n   [None, 10]),\n  ('second regression',\n   [[{'id': 11, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 0, 'y1': 20},\n     {'id': 29, 'mult': 15, 'priority': 2, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 30},\n     {'id': 7, 'mult': 15, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 20, 'y1': 40}],\n    [15, 0], [40, 0]],\n   [11, 12]),\n  ('normal control 1',\n   [[{'id': 37, 'mult': 12, 'priority': 2, 'x0': 10, 'x1': 20, 'y0': 0, 'y1': 10},\n     {'id': 45, 'mult': 15, 'priority': 2, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 30},\n     {'id': 15, 'mult': 20, 'priority': 2, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 30},\n     {'id': 13, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 0, 'y1': 10},\n     {'id': 11, 'mult': 12, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 40}],\n    [0, 30], [0, 38]],\n   [11, 12]),\n  ('normal control 2',\n   [[{'id': 19, 'mult': 12, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 0, 'y1': 10}], [10, 10], [5, 0]],\n   [None, 10]),\n  ('normal control 3',\n   [[{'id': 13, 'mult': 15, 'priority': 2, 'x0': 0, 'x1': 20, 'y0': 0, 'y1': 20},\n     {'id': 12, 'mult': 20, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 10, 'y1': 20},\n     {'id': 27, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 30}],\n    [20, 30], [30, 2]],\n   [None, 10]),\n  ('normal control 4',\n   [[{'id': 41, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 0, 'y1': 20},\n     {'id': 45, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 20, 'y1': 30},\n     {'id': 10, 'mult': 15, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 20, 'y1': 30}],\n    [20, 12], [20, 10]],\n   [None, 10])],\n [('regression: pickup-anchored surge',\n   [[{'id': 23, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 10, 'y1': 30},\n     {'id': 10, 'mult': 15, 'priority': 2, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 30},\n     {'id': 12, 'mult': 12, 'priority': 2, 'x0': 20, 'x1': 30, 'y0': 10, 'y1': 20},\n     {'id': 14, 'mult': 20, 'priority': 2, 'x0': 20, 'x1': 30, 'y0': 0, 'y1': 10},\n     {'id': 30, 'mult': 12, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 20, 'y1': 40}],\n    [5, 20], [26, 10]],\n   [23, 15]),\n  ('partial repair probe: pickup-anchored surge',\n   [[{'id': 35, 'mult': 20, 'priority': 2, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 20},\n     {'id': 19, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 20}],\n    [5, 20], [15, 10]],\n   [None, 10]),\n  ('second regression',\n   [[{'id': 31, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 20},\n     {'id': 39, 'mult': 12, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 0, 'y1': 20},\n     {'id': 49, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 0, 'y1': 20},\n     {'id': 37, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 20}],\n    [15, 0], [5, 10]],\n   [49, 15]),\n  ('normal control 1',\n   [[{'id': 11, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 0, 'y1': 20}], [0, 37], [22, 30]],\n   [None, 10]),\n  ('normal control 2',\n   [[{'id': 1, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 30}], [15, 10], [12, 0]],\n   [None, 10]),\n  ('normal control 3',\n   [[{'id': 16, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 20},\n     {'id': 8, 'mult': 15, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 10, 'y1': 20}],\n    [30, 20], [30, 20]],\n   [None, 10]),\n  ('normal control 4',\n   [[{'id': 46, 'mult': 20, 'priority': 1, 'x0': 0, 'x1': 10, 'y0': 10, 'y1': 30},\n     {'id': 9, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 30}],\n    [40, 10], [30, 20]],\n   [None, 10])]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"5a9e30b89c6411566f5e8769102d66965ad22f7192a2ac5e71ba48ff26753bfe","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(zones, pickup, dropoff):\n    best = None\n    for z in zones:\n        if z['x0'] <= dropoff[0] < z['x1'] and z['y0'] <= dropoff[1] < z['y1']:\n            k = (z['priority'], z['mult'], -z['id'])\n            if best is None or k > best[0]:\n                best = (k, z)\n    if best is None:\n        return [None, 10]\n    return [best[1]['id'], best[1]['mult']]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: pickup-anchored surge',\n   [[{'id': 4, 'mult': 20, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 0, 'y1': 10}], [40, 10], [5, 0]],\n   [None, 10]),\n  ('partial repair probe: pickup-anchored surge',\n   [[{'id': 26, 'mult': 12, 'priority': 2, 'x0': 20, 'x1': 30, 'y0': 0, 'y1': 10},\n     {'id': 6, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 20},\n     {'id': 24, 'mult': 15, 'priority': 2, 'x0': 10, 'x1': 20, 'y0': 20, 'y1': 30},\n     {'id': 41, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 20, 'y1': 30},\n     {'id': 25, 'mult': 12, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 20, 'y1': 40}],\n    [20, 30], [20, 12]],\n   [25, 12]),\n  ('second regression',\n   [[{'id': 34, 'mult': 20, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 0, 'y1': 20},\n     {'id': 32, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 0, 'y1': 10},\n     {'id': 44, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 0, 'y1': 20}],\n    [0, 12], [15, 20]],\n   [34, 20]),\n  ('normal control 1',\n   [[{'id': 30, 'mult': 12, 'priority': 2, 'x0': 20, 'x1': 40, 'y0': 0, 'y1': 20}], [10, 30], [0, 10]],\n   [None, 10]),\n  ('normal control 2',\n   [[{'id': 45, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 20, 'y1': 30}], [35, 12], [10, 12]],\n   [None, 10]),\n  ('normal control 3',\n   [[{'id': 37, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 10, 'y1': 20}], [40, 30], [15, 10]],\n   [None, 10]),\n  ('normal control 4',\n   [[{'id': 49, 'mult': 15, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 10, 'y1': 20},\n     {'id': 12, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 20, 'y1': 40},\n     {'id': 17, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 0, 'y1': 20}],\n    [30, 26], [40, 12]],\n   [None, 10])],\n [('regression: pickup-anchored surge',\n   [[{'id': 49, 'mult': 20, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 40},\n     {'id': 19, 'mult': 15, 'priority': 2, 'x0': 0, 'x1': 20, 'y0': 10, 'y1': 20},\n     {'id': 42, 'mult': 15, 'priority': 2, 'x0': 20, 'x1': 40, 'y0': 10, 'y1': 30},\n     {'id': 37, 'mult': 15, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 10, 'y1': 30}],\n    [5, 12], [10, 20]],\n   [19, 15]),\n  ('partial repair probe: pickup-anchored surge',\n   [[{'id': 2, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 20, 'y1': 30},\n     {'id': 23, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 30},\n     {'id': 7, 'mult': 12, 'priority': 2, 'x0': 10, 'x1': 20, 'y0': 20, 'y1': 30},\n     {'id': 37, 'mult': 20, 'priority': 1, 'x0': 0, 'x1': 10, 'y0': 10, 'y1': 20}],\n    [27, 0], [20, 20]],\n   [None, 10]),\n  ('second regression',\n   [[{'id': 21, 'mult': 12, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 20, 'y1': 40},\n     {'id': 29, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 0, 'y1': 10},\n     {'id': 7, 'mult': 20, 'priority': 2, 'x0': 20, 'x1': 30, 'y0': 20, 'y1': 40},\n     {'id': 33, 'mult': 15, 'priority': 2, 'x0': 10, 'x1': 30, 'y0': 20, 'y1': 30}],\n    [30, 20], [0, 30]],\n   [21, 12]),\n  ('normal control 1',\n   [[{'id': 27, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 30}], [40, 12], [30, 10]],\n   [None, 10]),\n  ('normal control 2',\n   [[{'id': 15, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 30},\n     {'id': 16, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 20, 'y1': 30},\n     {'id': 23, 'mult': 15, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 20, 'y1': 40}],\n    [15, 5], [40, 30]],\n   [None, 10]),\n  ('normal control 3',\n   [[{'id': 19, 'mult': 15, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 0, 'y1': 20},\n     {'id': 6, 'mult': 12, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 10, 'y1': 30},\n     {'id': 50, 'mult': 15, 'priority': 2, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 30}],\n    [40, 10], [10, 30]],\n   [None, 10]),\n  ('normal control 4',\n   [[{'id': 20, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 10, 'y0': 20, 'y1': 40},\n     {'id': 44, 'mult': 20, 'priority': 2, 'x0': 10, 'x1': 20, 'y0': 0, 'y1': 20}],\n    [15, 20], [40, 0]],\n   [None, 10])],\n [('regression: pickup-anchored surge',\n   [[{'id': 8, 'mult': 15, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 10, 'y1': 30},\n     {'id': 41, 'mult': 12, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 30},\n     {'id': 15, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 0, 'y1': 20}],\n    [32, 10], [5, 20]],\n   [None, 10]),\n  ('partial repair probe: pickup-anchored surge',\n   [[{'id': 35, 'mult': 12, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 10, 'y1': 20},\n     {'id': 34, 'mult': 12, 'priority': 2, 'x0': 20, 'x1': 40, 'y0': 10, 'y1': 30},\n     {'id': 12, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 0, 'y1': 10}],\n    [40, 30], [10, 0]],\n   [None, 10]),\n  ('second regression',\n   [[{'id': 46, 'mult': 12, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 30},\n     {'id': 19, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 20},\n     {'id': 47, 'mult': 20, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 10, 'y1': 30},\n     {'id': 39, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 10, 'y1': 20},\n     {'id': 48, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 10, 'y0': 0, 'y1': 10}],\n    [15, 10], [40, 12]],\n   [19, 15]),\n  ('normal control 1',\n   [[{'id': 25, 'mult': 12, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 0, 'y1': 20},\n     {'id': 6, 'mult': 15, 'priority': 2, 'x0': 20, 'x1': 40, 'y0': 0, 'y1': 10},\n     {'id': 37, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 0, 'y1': 20}],\n    [0, 10], [0, 10]],\n   [25, 12]),\n  ('normal control 2',\n   [[{'id': 23, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 10, 'y1': 30},\n     {'id': 11, 'mult': 15, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 20, 'y1': 30},\n     {'id': 3, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 20, 'y1': 40},\n     {'id': 30, 'mult': 20, 'priority': 2, 'x0': 20, 'x1': 40, 'y0': 10, 'y1': 20},\n     {'id': 2, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 20, 'y1': 40}],\n    [40, 23], [16, 0]],\n   [None, 10]),\n  ('normal control 3',\n   [[{'id': 30, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 20, 'y1': 40},\n     {'id': 16, 'mult': 12, 'priority': 2, 'x0': 10, 'x1': 30, 'y0': 0, 'y1': 20},\n     {'id': 23, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 40}],\n    [40, 26], [5, 10]],\n   [None, 10]),\n  ('normal control 4',\n   [[{'id': 14, 'mult': 12, 'priority': 2, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 30},\n     {'id': 40, 'mult': 15, 'priority': 2, 'x0': 0, 'x1': 20, 'y0': 10, 'y1': 30}],\n    [35, 20], [40, 10]],\n   [None, 10])],\n [('regression: pickup-anchored surge',\n   [[{'id': 14, 'mult': 15, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 10, 'y1': 20},\n     {'id': 5, 'mult': 12, 'priority': 2, 'x0': 0, 'x1': 20, 'y0': 10, 'y1': 20},\n     {'id': 29, 'mult': 20, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 10, 'y1': 20}],\n    [0, 10], [40, 12]],\n   [5, 12]),\n  ('partial repair probe: pickup-anchored surge',\n   [[{'id': 9, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 10, 'y0': 0, 'y1': 10},\n     {'id': 36, 'mult': 15, 'priority': 2, 'x0': 10, 'x1': 30, 'y0': 20, 'y1': 40}],\n    [20, 5], [19, 25]],\n   [None, 10]),\n  ('second regression',\n   [[{'id': 11, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 0, 'y1': 20},\n     {'id': 29, 'mult': 15, 'priority': 2, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 30},\n     {'id': 7, 'mult': 15, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 20, 'y1': 40}],\n    [15, 0], [40, 0]],\n   [11, 12]),\n  ('normal control 1',\n   [[{'id': 37, 'mult': 12, 'priority': 2, 'x0': 10, 'x1': 20, 'y0': 0, 'y1': 10},\n     {'id': 45, 'mult': 15, 'priority': 2, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 30},\n     {'id': 15, 'mult': 20, 'priority': 2, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 30},\n     {'id': 13, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 0, 'y1': 10},\n     {'id': 11, 'mult': 12, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 40}],\n    [0, 30], [0, 38]],\n   [11, 12]),\n  ('normal control 2',\n   [[{'id': 19, 'mult': 12, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 0, 'y1': 10}], [10, 10], [5, 0]],\n   [None, 10]),\n  ('normal control 3',\n   [[{'id': 13, 'mult': 15, 'priority': 2, 'x0': 0, 'x1': 20, 'y0': 0, 'y1': 20},\n     {'id': 12, 'mult': 20, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 10, 'y1': 20},\n     {'id': 27, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 30}],\n    [20, 30], [30, 2]],\n   [None, 10]),\n  ('normal control 4',\n   [[{'id': 41, 'mult': 20, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 0, 'y1': 20},\n     {'id': 45, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 20, 'y1': 30},\n     {'id': 10, 'mult': 15, 'priority': 2, 'x0': 0, 'x1': 10, 'y0': 20, 'y1': 30}],\n    [20, 12], [20, 10]],\n   [None, 10])],\n [('regression: pickup-anchored surge',\n   [[{'id': 23, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 10, 'y1': 30},\n     {'id': 10, 'mult': 15, 'priority': 2, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 30},\n     {'id': 12, 'mult': 12, 'priority': 2, 'x0': 20, 'x1': 30, 'y0': 10, 'y1': 20},\n     {'id': 14, 'mult': 20, 'priority': 2, 'x0': 20, 'x1': 30, 'y0': 0, 'y1': 10},\n     {'id': 30, 'mult': 12, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 20, 'y1': 40}],\n    [5, 20], [26, 10]],\n   [23, 15]),\n  ('partial repair probe: pickup-anchored surge',\n   [[{'id': 35, 'mult': 20, 'priority': 2, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 20},\n     {'id': 19, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 20}],\n    [5, 20], [15, 10]],\n   [None, 10]),\n  ('second regression',\n   [[{'id': 31, 'mult': 12, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 10, 'y1': 20},\n     {'id': 39, 'mult': 12, 'priority': 1, 'x0': 20, 'x1': 40, 'y0': 0, 'y1': 20},\n     {'id': 49, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 0, 'y1': 20},\n     {'id': 37, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 20}],\n    [15, 0], [5, 10]],\n   [49, 15]),\n  ('normal control 1',\n   [[{'id': 11, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 30, 'y0': 0, 'y1': 20}], [0, 37], [22, 30]],\n   [None, 10]),\n  ('normal control 2',\n   [[{'id': 1, 'mult': 15, 'priority': 1, 'x0': 0, 'x1': 20, 'y0': 20, 'y1': 30}], [15, 10], [12, 0]],\n   [None, 10]),\n  ('normal control 3',\n   [[{'id': 16, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 20},\n     {'id': 8, 'mult': 15, 'priority': 1, 'x0': 20, 'x1': 30, 'y0': 10, 'y1': 20}],\n    [30, 20], [30, 20]],\n   [None, 10]),\n  ('normal control 4',\n   [[{'id': 46, 'mult': 20, 'priority': 1, 'x0': 0, 'x1': 10, 'y0': 10, 'y1': 30},\n     {'id': 9, 'mult': 15, 'priority': 1, 'x0': 10, 'x1': 20, 'y0': 10, 'y1': 30}],\n    [40, 10], [30, 20]],\n   [None, 10])]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(*args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"A deterministic toy pricing contract stipulated for this example; it does not reproduce the pricing of any real ride-hailing operator or regulator. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"w2-ride-hailing-fare-surge-surge-zone-lookup-pickup-anchored-surge","generated_at":"2026-09-29T14:50:40.667421+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Ride-hailing prices are computed per trip at scale; ordering, unit and boundary slips become systematic over- or under-charging.","root_cause":"Containment is tested against the dropoff point.","sha256":"6de8528e66bc18142c21dd3f6a415e1621e2986693ba16c71126b56e49745bfc","title":"Surge taken from the dropoff zone · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":41.039,"exit_code":1,"observations":[{"actual":[4,20],"check":"regression: pickup-anchored surge","expected":[null,10],"passed":false},{"actual":[6,20],"check":"partial repair probe: pickup-anchored surge","expected":[25,12],"passed":false},{"actual":[34,20],"check":"second regression","expected":[34,20],"passed":true},{"actual":[null,10],"check":"normal control 1","expected":[null,10],"passed":true},{"actual":[null,10],"check":"normal control 2","expected":[null,10],"passed":true},{"actual":[null,10],"check":"normal control 3","expected":[null,10],"passed":true},{"actual":[null,10],"check":"normal control 4","expected":[null,10],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: pickup-anchored surge\", \"actual\": [4, 20], \"expected\": [null, 10], \"passed\": false}, {\"check\": \"partial repair probe: pickup-anchored surge\", \"actual\": [6, 20], \"expected\": [25, 12], \"passed\": false}, {\"check\": \"second regression\", \"actual\": [34, 20], \"expected\": [34, 20], \"passed\": true}, {\"check\": \"normal control 1\", \"actual\": [null, 10], \"expected\": [null, 10], \"passed\": true}, {\"check\": \"normal control 2\", \"actual\": [null, 10], \"expected\": [null, 10], \"passed\": true}, {\"check\": \"normal control 3\", \"actual\": [null, 10], \"expected\": [null, 10], \"passed\": true}, {\"check\": \"normal control 4\", \"actual\": [null, 10], \"expected\": [null, 10], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.286,"exit_code":1,"observations":[{"actual":[4,20],"check":"regression: pickup-anchored surge","expected":[null,10],"passed":false},{"actual":[6,20],"check":"partial repair probe: pickup-anchored surge","expected":[25,12],"passed":false},{"actual":[null,10],"check":"second regression","expected":[34,20],"passed":false},{"actual":[null,10],"check":"normal control 1","expected":[null,10],"passed":true},{"actual":[null,10],"check":"normal control 2","expected":[null,10],"passed":true},{"actual":[null,10],"check":"normal control 3","expected":[null,10],"passed":true},{"actual":[null,10],"check":"normal control 4","expected":[null,10],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: pickup-anchored surge\", \"actual\": [4, 20], \"expected\": [null, 10], \"passed\": false}, {\"check\": \"partial repair probe: pickup-anchored surge\", \"actual\": [6, 20], \"expected\": [25, 12], \"passed\": false}, {\"check\": \"second regression\", \"actual\": [null, 10], \"expected\": [34, 20], \"passed\": false}, {\"check\": \"normal control 1\", \"actual\": [null, 10], \"expected\": [null, 10], \"passed\": true}, {\"check\": \"normal control 2\", \"actual\": [null, 10], \"expected\": [null, 10], \"passed\": true}, {\"check\": \"normal control 3\", \"actual\": [null, 10], \"expected\": [null, 10], \"passed\": true}, {\"check\": \"normal control 4\", \"actual\": [null, 10], \"expected\": [null, 10], \"passed\": true}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}