{"abstract":"A tip added at the last second of the window is refused.","category":"Ride-hailing fare and surge pricing","checks":7,"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].","evaluation_group":"w2-ride-hailing-fare-surge-post-trip-tips","failed_approach":"Writing the window as 72 * 60 closes it after 72 minutes.","family":"w2-ride-hailing-fare-surge-post-trip-tips-tip-window-end","id":"FA-85826","implementations":{"attempt":{"sha256":"8e9b420b0f3d53a784606e60a16cab8cb20585d3289612f18fbc5d6b2c960dbb","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(trip_end, tip_t, amount, fare, prior_tips):\n    elapsed = tip_t - trip_end\n    if elapsed < 0 or elapsed > 72 * 60:\n        return [0, 'window']\n    cap = max(fare * 2, 5000)\n    room = cap - prior_tips\n    if room <= 0:\n        return [0, 'cap']\n    return [min(amount, room), 'ok']\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: tip window end', [0, 259200, 500, 4000, 8000], [0, 'cap']),\n  ('partial repair probe: tip window end', [0, 259199, 6000, 2400, 4800], [200, 'ok']),\n  ('second regression', [0, 259200, 500, 4000, 0], [500, 'ok']),\n  ('normal control 1', [0, 0, 2000, 2400, 0], [2000, 'ok']),\n  ('normal control 2', [0, -1, 2000, 4000, 0], [0, 'window']),\n  ('normal control 3', [0, 259201, 6000, 2400, 4800], [0, 'window']),\n  ('normal control 4', [0, 3600, 500, 2400, 8000], [0, 'cap'])],\n [('regression: tip window end', [0, 259200, 6000, 2400, 8000], [0, 'cap']),\n  ('partial repair probe: tip window end', [0, 259199, 500, 4000, 0], [500, 'ok']),\n  ('second regression', [0, 259199, 6000, 2400, 0], [5000, 'ok']),\n  ('normal control 1', [0, 259201, 6000, 4000, 8000], [0, 'window']),\n  ('normal control 2', [0, -1, 6000, 4000, 0], [0, 'window']),\n  ('normal control 3', [0, 3600, 500, 1200, 1000], [500, 'ok']),\n  ('normal control 4', [0, 3600, 2000, 4000, 8000], [0, 'cap'])],\n [('regression: tip window end', [0, 259200, 6000, 1200, 1000], [4000, 'ok']),\n  ('partial repair probe: tip window end', [0, 259199, 500, 2400, 8000], [0, 'cap']),\n  ('second regression', [0, 259199, 2000, 2400, 4800], [200, 'ok']),\n  ('normal control 1', [0, 259201, 2000, 2400, 8000], [0, 'window']),\n  ('normal control 2', [0, -1, 2000, 4000, 0], [0, 'window']),\n  ('normal control 3', [0, -1, 500, 4000, 8000], [0, 'window']),\n  ('normal control 4', [0, 259201, 6000, 2400, 4800], [0, 'window'])],\n [('regression: tip window end', [0, 259200, 500, 4000, 4800], [500, 'ok']),\n  ('partial repair probe: tip window end', [0, 259199, 500, 4000, 0], [500, 'ok']),\n  ('second regression', [0, 259199, 6000, 1200, 8000], [0, 'cap']),\n  ('normal control 1', [0, 259201, 6000, 1200, 8000], [0, 'window']),\n  ('normal control 2', [0, 259201, 6000, 2400, 4800], [0, 'window']),\n  ('normal control 3', [0, 3600, 2000, 2400, 0], [2000, 'ok']),\n  ('normal control 4', [0, -1, 500, 4000, 1000], [0, 'window'])],\n [('regression: tip window end', [0, 259200, 6000, 4000, 8000], [0, 'cap']),\n  ('partial repair probe: tip window end', [0, 259200, 6000, 1200, 0], [5000, 'ok']),\n  ('second regression', [0, 259200, 2000, 1200, 0], [2000, 'ok']),\n  ('normal control 1', [0, 0, 2000, 2400, 4800], [200, 'ok']),\n  ('normal control 2', [0, -1, 500, 2400, 0], [0, 'window']),\n  ('normal control 3', [0, -1, 6000, 2400, 0], [0, 'window']),\n  ('normal control 4', [0, -1, 500, 4000, 0], [0, 'window'])]]\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":"2800e814511754e66f60c177df20b229429bbe5d703b5fb5da6aee9592e5be38","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(trip_end, tip_t, amount, fare, prior_tips):\n    elapsed = tip_t - trip_end\n    if elapsed < 0 or elapsed >= 259200:\n        return [0, 'window']\n    cap = max(fare * 2, 5000)\n    room = cap - prior_tips\n    if room <= 0:\n        return [0, 'cap']\n    return [min(amount, room), 'ok']\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: tip window end', [0, 259200, 500, 4000, 8000], [0, 'cap']),\n  ('partial repair probe: tip window end', [0, 259199, 6000, 2400, 4800], [200, 'ok']),\n  ('second regression', [0, 259200, 500, 4000, 0], [500, 'ok']),\n  ('normal control 1', [0, 0, 2000, 2400, 0], [2000, 'ok']),\n  ('normal control 2', [0, -1, 2000, 4000, 0], [0, 'window']),\n  ('normal control 3', [0, 259201, 6000, 2400, 4800], [0, 'window']),\n  ('normal control 4', [0, 3600, 500, 2400, 8000], [0, 'cap'])],\n [('regression: tip window end', [0, 259200, 6000, 2400, 8000], [0, 'cap']),\n  ('partial repair probe: tip window end', [0, 259199, 500, 4000, 0], [500, 'ok']),\n  ('second regression', [0, 259199, 6000, 2400, 0], [5000, 'ok']),\n  ('normal control 1', [0, 259201, 6000, 4000, 8000], [0, 'window']),\n  ('normal control 2', [0, -1, 6000, 4000, 0], [0, 'window']),\n  ('normal control 3', [0, 3600, 500, 1200, 1000], [500, 'ok']),\n  ('normal control 4', [0, 3600, 2000, 4000, 8000], [0, 'cap'])],\n [('regression: tip window end', [0, 259200, 6000, 1200, 1000], [4000, 'ok']),\n  ('partial repair probe: tip window end', [0, 259199, 500, 2400, 8000], [0, 'cap']),\n  ('second regression', [0, 259199, 2000, 2400, 4800], [200, 'ok']),\n  ('normal control 1', [0, 259201, 2000, 2400, 8000], [0, 'window']),\n  ('normal control 2', [0, -1, 2000, 4000, 0], [0, 'window']),\n  ('normal control 3', [0, -1, 500, 4000, 8000], [0, 'window']),\n  ('normal control 4', [0, 259201, 6000, 2400, 4800], [0, 'window'])],\n [('regression: tip window end', [0, 259200, 500, 4000, 4800], [500, 'ok']),\n  ('partial repair probe: tip window end', [0, 259199, 500, 4000, 0], [500, 'ok']),\n  ('second regression', [0, 259199, 6000, 1200, 8000], [0, 'cap']),\n  ('normal control 1', [0, 259201, 6000, 1200, 8000], [0, 'window']),\n  ('normal control 2', [0, 259201, 6000, 2400, 4800], [0, 'window']),\n  ('normal control 3', [0, 3600, 2000, 2400, 0], [2000, 'ok']),\n  ('normal control 4', [0, -1, 500, 4000, 1000], [0, 'window'])],\n [('regression: tip window end', [0, 259200, 6000, 4000, 8000], [0, 'cap']),\n  ('partial repair probe: tip window end', [0, 259200, 6000, 1200, 0], [5000, 'ok']),\n  ('second regression', [0, 259200, 2000, 1200, 0], [2000, 'ok']),\n  ('normal control 1', [0, 0, 2000, 2400, 4800], [200, 'ok']),\n  ('normal control 2', [0, -1, 500, 2400, 0], [0, 'window']),\n  ('normal control 3', [0, -1, 6000, 2400, 0], [0, 'window']),\n  ('normal control 4', [0, -1, 500, 4000, 0], [0, 'window'])]]\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"},"fixed":{"sha256":"6e8cef22c2951fb8793d39a198858cb31db1141e7375371cfba86585fac4d53f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(trip_end, tip_t, amount, fare, prior_tips):\n    elapsed = tip_t - trip_end\n    if elapsed < 0 or elapsed > 259200:\n        return [0, 'window']\n    cap = max(fare * 2, 5000)\n    room = cap - prior_tips\n    if room <= 0:\n        return [0, 'cap']\n    return [min(amount, room), 'ok']\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: tip window end', [0, 259200, 500, 4000, 8000], [0, 'cap']),\n  ('partial repair probe: tip window end', [0, 259199, 6000, 2400, 4800], [200, 'ok']),\n  ('second regression', [0, 259200, 500, 4000, 0], [500, 'ok']),\n  ('normal control 1', [0, 0, 2000, 2400, 0], [2000, 'ok']),\n  ('normal control 2', [0, -1, 2000, 4000, 0], [0, 'window']),\n  ('normal control 3', [0, 259201, 6000, 2400, 4800], [0, 'window']),\n  ('normal control 4', [0, 3600, 500, 2400, 8000], [0, 'cap'])],\n [('regression: tip window end', [0, 259200, 6000, 2400, 8000], [0, 'cap']),\n  ('partial repair probe: tip window end', [0, 259199, 500, 4000, 0], [500, 'ok']),\n  ('second regression', [0, 259199, 6000, 2400, 0], [5000, 'ok']),\n  ('normal control 1', [0, 259201, 6000, 4000, 8000], [0, 'window']),\n  ('normal control 2', [0, -1, 6000, 4000, 0], [0, 'window']),\n  ('normal control 3', [0, 3600, 500, 1200, 1000], [500, 'ok']),\n  ('normal control 4', [0, 3600, 2000, 4000, 8000], [0, 'cap'])],\n [('regression: tip window end', [0, 259200, 6000, 1200, 1000], [4000, 'ok']),\n  ('partial repair probe: tip window end', [0, 259199, 500, 2400, 8000], [0, 'cap']),\n  ('second regression', [0, 259199, 2000, 2400, 4800], [200, 'ok']),\n  ('normal control 1', [0, 259201, 2000, 2400, 8000], [0, 'window']),\n  ('normal control 2', [0, -1, 2000, 4000, 0], [0, 'window']),\n  ('normal control 3', [0, -1, 500, 4000, 8000], [0, 'window']),\n  ('normal control 4', [0, 259201, 6000, 2400, 4800], [0, 'window'])],\n [('regression: tip window end', [0, 259200, 500, 4000, 4800], [500, 'ok']),\n  ('partial repair probe: tip window end', [0, 259199, 500, 4000, 0], [500, 'ok']),\n  ('second regression', [0, 259199, 6000, 1200, 8000], [0, 'cap']),\n  ('normal control 1', [0, 259201, 6000, 1200, 8000], [0, 'window']),\n  ('normal control 2', [0, 259201, 6000, 2400, 4800], [0, 'window']),\n  ('normal control 3', [0, 3600, 2000, 2400, 0], [2000, 'ok']),\n  ('normal control 4', [0, -1, 500, 4000, 1000], [0, 'window'])],\n [('regression: tip window end', [0, 259200, 6000, 4000, 8000], [0, 'cap']),\n  ('partial repair probe: tip window end', [0, 259200, 6000, 1200, 0], [5000, 'ok']),\n  ('second regression', [0, 259200, 2000, 1200, 0], [2000, 'ok']),\n  ('normal control 1', [0, 0, 2000, 2400, 4800], [200, 'ok']),\n  ('normal control 2', [0, -1, 500, 2400, 0], [0, 'window']),\n  ('normal control 3', [0, -1, 6000, 2400, 0], [0, 'window']),\n  ('normal control 4', [0, -1, 500, 4000, 0], [0, 'window'])]]\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-post-trip-tips-tip-window-end","generated_at":"2026-09-29T14:50:43.886476+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.","repair":"Accept tips up to and including 259200 seconds.","root_cause":"The window end is exclusive.","sha256":"ba83f3d8c64b7f332d5c213144c37ad35d1fc7478e4d875d922148fddd7a672c","title":"Tip at exactly 72 hours rejected · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":39.261,"exit_code":1,"observations":[{"actual":[0,"window"],"check":"regression: tip window end","expected":[0,"cap"],"passed":false},{"actual":[0,"window"],"check":"partial repair probe: tip window end","expected":[200,"ok"],"passed":false},{"actual":[0,"window"],"check":"second regression","expected":[500,"ok"],"passed":false},{"actual":[2000,"ok"],"check":"normal control 1","expected":[2000,"ok"],"passed":true},{"actual":[0,"window"],"check":"normal control 2","expected":[0,"window"],"passed":true},{"actual":[0,"window"],"check":"normal control 3","expected":[0,"window"],"passed":true},{"actual":[0,"cap"],"check":"normal control 4","expected":[0,"cap"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: tip window end\", \"actual\": [0, \"window\"], \"expected\": [0, \"cap\"], \"passed\": false}, {\"check\": \"partial repair probe: tip window end\", \"actual\": [0, \"window\"], \"expected\": [200, \"ok\"], \"passed\": false}, {\"check\": \"second regression\", \"actual\": [0, \"window\"], \"expected\": [500, \"ok\"], \"passed\": false}, {\"check\": \"normal control 1\", \"actual\": [2000, \"ok\"], \"expected\": [2000, \"ok\"], \"passed\": true}, {\"check\": \"normal control 2\", \"actual\": [0, \"window\"], \"expected\": [0, \"window\"], \"passed\": true}, {\"check\": \"normal control 3\", \"actual\": [0, \"window\"], \"expected\": [0, \"window\"], \"passed\": true}, {\"check\": \"normal control 4\", \"actual\": [0, \"cap\"], \"expected\": [0, \"cap\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.7,"exit_code":1,"observations":[{"actual":[0,"window"],"check":"regression: tip window end","expected":[0,"cap"],"passed":false},{"actual":[200,"ok"],"check":"partial repair probe: tip window end","expected":[200,"ok"],"passed":true},{"actual":[0,"window"],"check":"second regression","expected":[500,"ok"],"passed":false},{"actual":[2000,"ok"],"check":"normal control 1","expected":[2000,"ok"],"passed":true},{"actual":[0,"window"],"check":"normal control 2","expected":[0,"window"],"passed":true},{"actual":[0,"window"],"check":"normal control 3","expected":[0,"window"],"passed":true},{"actual":[0,"cap"],"check":"normal control 4","expected":[0,"cap"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: tip window end\", \"actual\": [0, \"window\"], \"expected\": [0, \"cap\"], \"passed\": false}, {\"check\": \"partial repair probe: tip window end\", \"actual\": [200, \"ok\"], \"expected\": [200, \"ok\"], \"passed\": true}, {\"check\": \"second regression\", \"actual\": [0, \"window\"], \"expected\": [500, \"ok\"], \"passed\": false}, {\"check\": \"normal control 1\", \"actual\": [2000, \"ok\"], \"expected\": [2000, \"ok\"], \"passed\": true}, {\"check\": \"normal control 2\", \"actual\": [0, \"window\"], \"expected\": [0, \"window\"], \"passed\": true}, {\"check\": \"normal control 3\", \"actual\": [0, \"window\"], \"expected\": [0, \"window\"], \"passed\": true}, {\"check\": \"normal control 4\", \"actual\": [0, \"cap\"], \"expected\": [0, \"cap\"], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":42.624,"exit_code":0,"observations":[{"actual":[0,"cap"],"check":"regression: tip window end","expected":[0,"cap"],"passed":true},{"actual":[200,"ok"],"check":"partial repair probe: tip window end","expected":[200,"ok"],"passed":true},{"actual":[500,"ok"],"check":"second regression","expected":[500,"ok"],"passed":true},{"actual":[2000,"ok"],"check":"normal control 1","expected":[2000,"ok"],"passed":true},{"actual":[0,"window"],"check":"normal control 2","expected":[0,"window"],"passed":true},{"actual":[0,"window"],"check":"normal control 3","expected":[0,"window"],"passed":true},{"actual":[0,"cap"],"check":"normal control 4","expected":[0,"cap"],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: tip window end\", \"actual\": [0, \"cap\"], \"expected\": [0, \"cap\"], \"passed\": true}, {\"check\": \"partial repair probe: tip window end\", \"actual\": [200, \"ok\"], \"expected\": [200, \"ok\"], \"passed\": true}, {\"check\": \"second regression\", \"actual\": [500, \"ok\"], \"expected\": [500, \"ok\"], \"passed\": true}, {\"check\": \"normal control 1\", \"actual\": [2000, \"ok\"], \"expected\": [2000, \"ok\"], \"passed\": true}, {\"check\": \"normal control 2\", \"actual\": [0, \"window\"], \"expected\": [0, \"window\"], \"passed\": true}, {\"check\": \"normal control 3\", \"actual\": [0, \"window\"], \"expected\": [0, \"window\"], \"passed\": true}, {\"check\": \"normal control 4\", \"actual\": [0, \"cap\"], \"expected\": [0, \"cap\"], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}