{"abstract":"Long trips are predicted too short.","category":"Elevator dispatch scheduling","checks":8,"contract":"heights_mm[i] is the rise from floor i to floor i+1. The trip distance is the sum between the two floors (either direction). With speed vmax (mm/s) and acceleration acc (mm/s^2): if distance*acc >= vmax^2 the car reaches vmax and t = d/vmax + vmax/acc, otherwise t = 2*sqrt(d/acc). Return milliseconds rounded up; zero distance is 0.","contract_signature":"x","evaluation_group":"w2-elevator_dispatch_scheduling-trip-flight-time","failed_approach":"Adding only half the ramp penalty counts one ramp instead of two.","family":"w2-elevator_dispatch_scheduling-trip-flight-time-cruise-formula","id":"FA-67441","implementations":{"attempt":{"sha256":"7f49d9c62ed4172ed009b80e14d3342bf134b53b49c02bd75f7054b9cab6ce1e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(x):\n    lo, hi = sorted((x['from'], x['to']))\n    d = sum(x['heights_mm'][lo:hi])\n    if d == 0:\n        return 0\n    v = x['vmax']\n    a = x['acc']\n    if d * a >= v * v:\n        t = d / v + v / (2 * a)\n    else:\n        t = 2 * math.sqrt(d / a)\n    return math.ceil(t * 1000 - 1e-9)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: downward trip', {'heights_mm': [3000, 3500, 4200, 5000], 'from': 3, 'to': 1, 'vmax': 2500, 'acc': 1000}, 5580), ('sampled regression 1', {'heights_mm': [5000, 4200, 3500, 4200, 4200, 5000, 3000, 3500, 5000, 4200, 3500], 'from': 7, 'to': 0, 'vmax': 1600, 'acc': 1200}, 19521), ('regression: long run at contract speed', {'heights_mm': [4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000], 'from': 0, 'to': 9, 'vmax': 2500, 'acc': 1000}, 16900), ('boundary: one floor up', {'heights_mm': [3000, 3500, 4200, 5000], 'from': 0, 'to': 1, 'vmax': 2500, 'acc': 1000}, 3465), ('boundary: short hop without reaching speed', {'heights_mm': [3000, 3000, 3000, 3000, 3000], 'from': 1, 'to': 2, 'vmax': 4000, 'acc': 800}, 3873), ('control 4', {'heights_mm': [3500, 3500, 5000, 3500], 'from': 1, 'to': 1, 'vmax': 4000, 'acc': 600}, 0), ('sampled regression 7', {'heights_mm': [3500, 3500, 4200, 5000, 3500], 'from': 4, 'to': 1, 'vmax': 2500, 'acc': 1200}, 7164), ('control 10', {'heights_mm': [4200, 4200, 5000, 4200, 3500, 3000, 3000, 3000, 5000, 3500, 4200, 3500], 'from': 7, 'to': 6, 'vmax': 2500, 'acc': 800}, 3873)], [('regression: long run at contract speed', {'heights_mm': [4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000], 'from': 0, 'to': 9, 'vmax': 2500, 'acc': 1000}, 16900), ('sampled regression 11', {'heights_mm': [4200, 3500, 5000, 3000, 3000, 5000, 4200], 'from': 3, 'to': 2, 'vmax': 1000, 'acc': 1000}, 6000), ('sampled regression 6', {'heights_mm': [3000, 3500, 3000, 4200, 4200, 5000, 3500, 4200, 5000, 3000, 4200, 3000], 'from': 6, 'to': 4, 'vmax': 1000, 'acc': 600}, 10867), ('boundary: short hop without reaching speed', {'heights_mm': [3000, 3000, 3000, 3000, 3000], 'from': 1, 'to': 2, 'vmax': 4000, 'acc': 800}, 3873), ('boundary: between the two regimes', {'heights_mm': [3500, 3500, 3500, 3500, 3500, 3500], 'from': 0, 'to': 2, 'vmax': 2500, 'acc': 800}, 5917), ('sampled regression 12', {'heights_mm': [3000, 5000, 3000, 5000, 4200, 5000, 3000, 4200, 4200, 3500], 'from': 5, 'to': 1, 'vmax': 1000, 'acc': 600}, 18867), ('sampled regression 15', {'heights_mm': [3000, 3500, 3000, 3000, 5000, 3000, 3500, 3000, 3000, 3500], 'from': 4, 'to': 7, 'vmax': 1000, 'acc': 600}, 13167), ('sampled regression 18', {'heights_mm': [4200, 3000, 3500, 5000, 3500], 'from': 3, 'to': 4, 'vmax': 1000, 'acc': 800}, 6250)], [('regression: fractional milliseconds', {'heights_mm': [3500, 3500, 3500, 3500], 'from': 0, 'to': 3, 'vmax': 1600, 'acc': 600}, 9230), ('sampled regression 19', {'heights_mm': [5000, 3500, 3000, 5000, 5000, 4200, 5000, 4200], 'from': 0, 'to': 7, 'vmax': 1000, 'acc': 1000}, 31700), ('sampled regression 12', {'heights_mm': [3000, 5000, 3000, 5000, 4200, 5000, 3000, 4200, 4200, 3500], 'from': 5, 'to': 1, 'vmax': 1000, 'acc': 600}, 18867), ('boundary: between the two regimes', {'heights_mm': [3500, 3500, 3500, 3500, 3500, 3500], 'from': 0, 'to': 2, 'vmax': 2500, 'acc': 800}, 5917), ('boundary: same floor', {'heights_mm': [3000, 3000, 3000], 'from': 2, 'to': 2, 'vmax': 2500, 'acc': 1000}, 0), ('sampled regression 23', {'heights_mm': [5000, 3000, 3000, 4200, 4200, 3500, 3000], 'from': 1, 'to': 0, 'vmax': 1600, 'acc': 1000}, 4725), ('sampled regression 26', {'heights_mm': [4200, 5000, 4200, 4200, 3000, 3500, 3500, 3500], 'from': 7, 'to': 0, 'vmax': 4000, 'acc': 1000}, 10900), ('sampled regression 29', {'heights_mm': [3000, 3000, 3500, 3500, 3000, 4200, 3500, 3000, 3000, 4200, 3500, 5000], 'from': 0, 'to': 4, 'vmax': 1000, 'acc': 1000}, 14000)], [('regression: downward trip', {'heights_mm': [3000, 3500, 4200, 5000], 'from': 3, 'to': 1, 'vmax': 2500, 'acc': 1000}, 5580), ('sampled regression 30', {'heights_mm': [3500, 4200, 3000, 3500, 3500, 4200, 3500, 5000, 4200, 5000, 4200], 'from': 10, 'to': 9, 'vmax': 1000, 'acc': 800}, 6250), ('sampled regression 18', {'heights_mm': [4200, 3000, 3500, 5000, 3500], 'from': 3, 'to': 4, 'vmax': 1000, 'acc': 800}, 6250), ('regression: fractional milliseconds', {'heights_mm': [3500, 3500, 3500, 3500], 'from': 0, 'to': 3, 'vmax': 1600, 'acc': 600}, 9230), ('boundary: one floor up', {'heights_mm': [3000, 3500, 4200, 5000], 'from': 0, 'to': 1, 'vmax': 2500, 'acc': 1000}, 3465), ('control 34', {'heights_mm': [3000, 5000, 3500, 4200, 3500, 3000, 3500], 'from': 3, 'to': 5, 'vmax': 4000, 'acc': 800}, 6205), ('sampled regression 37', {'heights_mm': [3000, 3000, 5000, 3000, 5000], 'from': 2, 'to': 4, 'vmax': 1000, 'acc': 1200}, 8834), ('sampled regression 40', {'heights_mm': [3000, 3500, 3500, 5000], 'from': 0, 'to': 2, 'vmax': 1600, 'acc': 1000}, 5663)], [('regression: long run at contract speed', {'heights_mm': [4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000], 'from': 0, 'to': 9, 'vmax': 2500, 'acc': 1000}, 16900), ('sampled regression 42', {'heights_mm': [3000, 3500, 4200, 5000, 5000], 'from': 3, 'to': 1, 'vmax': 1600, 'acc': 800}, 6813), ('sampled regression 26', {'heights_mm': [4200, 5000, 4200, 4200, 3000, 3500, 3500, 3500], 'from': 7, 'to': 0, 'vmax': 4000, 'acc': 1000}, 10900), ('regression: downward trip', {'heights_mm': [3000, 3500, 4200, 5000], 'from': 3, 'to': 1, 'vmax': 2500, 'acc': 1000}, 5580), ('boundary: short hop without reaching speed', {'heights_mm': [3000, 3000, 3000, 3000, 3000], 'from': 1, 'to': 2, 'vmax': 4000, 'acc': 800}, 3873), ('sampled regression 45', {'heights_mm': [5000, 3500, 3000, 3500, 4200, 3000, 3500, 3500, 3500, 4200], 'from': 3, 'to': 8, 'vmax': 1000, 'acc': 1200}, 18534), ('control 48', {'heights_mm': [5000, 3000, 3500, 3000, 3000, 3500, 3500, 3000, 5000, 3500], 'from': 9, 'to': 8, 'vmax': 4000, 'acc': 1000}, 4473), ('control 51', {'heights_mm': [4200, 4200, 3000, 5000, 5000, 5000, 3500], 'from': 6, 'to': 5, 'vmax': 4000, 'acc': 800}, 5000)]]\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":"ab7587e3a891b1f2a4a1e17c991f7469a787b44e8bb85afdde390c74ddbaf889","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(x):\n    lo, hi = sorted((x['from'], x['to']))\n    d = sum(x['heights_mm'][lo:hi])\n    if d == 0:\n        return 0\n    v = x['vmax']\n    a = x['acc']\n    if d * a >= v * v:\n        t = d / v\n    else:\n        t = 2 * math.sqrt(d / a)\n    return math.ceil(t * 1000 - 1e-9)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[('regression: downward trip', {'heights_mm': [3000, 3500, 4200, 5000], 'from': 3, 'to': 1, 'vmax': 2500, 'acc': 1000}, 5580), ('sampled regression 1', {'heights_mm': [5000, 4200, 3500, 4200, 4200, 5000, 3000, 3500, 5000, 4200, 3500], 'from': 7, 'to': 0, 'vmax': 1600, 'acc': 1200}, 19521), ('regression: long run at contract speed', {'heights_mm': [4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000], 'from': 0, 'to': 9, 'vmax': 2500, 'acc': 1000}, 16900), ('boundary: one floor up', {'heights_mm': [3000, 3500, 4200, 5000], 'from': 0, 'to': 1, 'vmax': 2500, 'acc': 1000}, 3465), ('boundary: short hop without reaching speed', {'heights_mm': [3000, 3000, 3000, 3000, 3000], 'from': 1, 'to': 2, 'vmax': 4000, 'acc': 800}, 3873), ('control 4', {'heights_mm': [3500, 3500, 5000, 3500], 'from': 1, 'to': 1, 'vmax': 4000, 'acc': 600}, 0), ('sampled regression 7', {'heights_mm': [3500, 3500, 4200, 5000, 3500], 'from': 4, 'to': 1, 'vmax': 2500, 'acc': 1200}, 7164), ('control 10', {'heights_mm': [4200, 4200, 5000, 4200, 3500, 3000, 3000, 3000, 5000, 3500, 4200, 3500], 'from': 7, 'to': 6, 'vmax': 2500, 'acc': 800}, 3873)], [('regression: long run at contract speed', {'heights_mm': [4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000], 'from': 0, 'to': 9, 'vmax': 2500, 'acc': 1000}, 16900), ('sampled regression 11', {'heights_mm': [4200, 3500, 5000, 3000, 3000, 5000, 4200], 'from': 3, 'to': 2, 'vmax': 1000, 'acc': 1000}, 6000), ('sampled regression 6', {'heights_mm': [3000, 3500, 3000, 4200, 4200, 5000, 3500, 4200, 5000, 3000, 4200, 3000], 'from': 6, 'to': 4, 'vmax': 1000, 'acc': 600}, 10867), ('boundary: short hop without reaching speed', {'heights_mm': [3000, 3000, 3000, 3000, 3000], 'from': 1, 'to': 2, 'vmax': 4000, 'acc': 800}, 3873), ('boundary: between the two regimes', {'heights_mm': [3500, 3500, 3500, 3500, 3500, 3500], 'from': 0, 'to': 2, 'vmax': 2500, 'acc': 800}, 5917), ('sampled regression 12', {'heights_mm': [3000, 5000, 3000, 5000, 4200, 5000, 3000, 4200, 4200, 3500], 'from': 5, 'to': 1, 'vmax': 1000, 'acc': 600}, 18867), ('sampled regression 15', {'heights_mm': [3000, 3500, 3000, 3000, 5000, 3000, 3500, 3000, 3000, 3500], 'from': 4, 'to': 7, 'vmax': 1000, 'acc': 600}, 13167), ('sampled regression 18', {'heights_mm': [4200, 3000, 3500, 5000, 3500], 'from': 3, 'to': 4, 'vmax': 1000, 'acc': 800}, 6250)], [('regression: fractional milliseconds', {'heights_mm': [3500, 3500, 3500, 3500], 'from': 0, 'to': 3, 'vmax': 1600, 'acc': 600}, 9230), ('sampled regression 19', {'heights_mm': [5000, 3500, 3000, 5000, 5000, 4200, 5000, 4200], 'from': 0, 'to': 7, 'vmax': 1000, 'acc': 1000}, 31700), ('sampled regression 12', {'heights_mm': [3000, 5000, 3000, 5000, 4200, 5000, 3000, 4200, 4200, 3500], 'from': 5, 'to': 1, 'vmax': 1000, 'acc': 600}, 18867), ('boundary: between the two regimes', {'heights_mm': [3500, 3500, 3500, 3500, 3500, 3500], 'from': 0, 'to': 2, 'vmax': 2500, 'acc': 800}, 5917), ('boundary: same floor', {'heights_mm': [3000, 3000, 3000], 'from': 2, 'to': 2, 'vmax': 2500, 'acc': 1000}, 0), ('sampled regression 23', {'heights_mm': [5000, 3000, 3000, 4200, 4200, 3500, 3000], 'from': 1, 'to': 0, 'vmax': 1600, 'acc': 1000}, 4725), ('sampled regression 26', {'heights_mm': [4200, 5000, 4200, 4200, 3000, 3500, 3500, 3500], 'from': 7, 'to': 0, 'vmax': 4000, 'acc': 1000}, 10900), ('sampled regression 29', {'heights_mm': [3000, 3000, 3500, 3500, 3000, 4200, 3500, 3000, 3000, 4200, 3500, 5000], 'from': 0, 'to': 4, 'vmax': 1000, 'acc': 1000}, 14000)], [('regression: downward trip', {'heights_mm': [3000, 3500, 4200, 5000], 'from': 3, 'to': 1, 'vmax': 2500, 'acc': 1000}, 5580), ('sampled regression 30', {'heights_mm': [3500, 4200, 3000, 3500, 3500, 4200, 3500, 5000, 4200, 5000, 4200], 'from': 10, 'to': 9, 'vmax': 1000, 'acc': 800}, 6250), ('sampled regression 18', {'heights_mm': [4200, 3000, 3500, 5000, 3500], 'from': 3, 'to': 4, 'vmax': 1000, 'acc': 800}, 6250), ('regression: fractional milliseconds', {'heights_mm': [3500, 3500, 3500, 3500], 'from': 0, 'to': 3, 'vmax': 1600, 'acc': 600}, 9230), ('boundary: one floor up', {'heights_mm': [3000, 3500, 4200, 5000], 'from': 0, 'to': 1, 'vmax': 2500, 'acc': 1000}, 3465), ('control 34', {'heights_mm': [3000, 5000, 3500, 4200, 3500, 3000, 3500], 'from': 3, 'to': 5, 'vmax': 4000, 'acc': 800}, 6205), ('sampled regression 37', {'heights_mm': [3000, 3000, 5000, 3000, 5000], 'from': 2, 'to': 4, 'vmax': 1000, 'acc': 1200}, 8834), ('sampled regression 40', {'heights_mm': [3000, 3500, 3500, 5000], 'from': 0, 'to': 2, 'vmax': 1600, 'acc': 1000}, 5663)], [('regression: long run at contract speed', {'heights_mm': [4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000], 'from': 0, 'to': 9, 'vmax': 2500, 'acc': 1000}, 16900), ('sampled regression 42', {'heights_mm': [3000, 3500, 4200, 5000, 5000], 'from': 3, 'to': 1, 'vmax': 1600, 'acc': 800}, 6813), ('sampled regression 26', {'heights_mm': [4200, 5000, 4200, 4200, 3000, 3500, 3500, 3500], 'from': 7, 'to': 0, 'vmax': 4000, 'acc': 1000}, 10900), ('regression: downward trip', {'heights_mm': [3000, 3500, 4200, 5000], 'from': 3, 'to': 1, 'vmax': 2500, 'acc': 1000}, 5580), ('boundary: short hop without reaching speed', {'heights_mm': [3000, 3000, 3000, 3000, 3000], 'from': 1, 'to': 2, 'vmax': 4000, 'acc': 800}, 3873), ('sampled regression 45', {'heights_mm': [5000, 3500, 3000, 3500, 4200, 3000, 3500, 3500, 3500, 4200], 'from': 3, 'to': 8, 'vmax': 1000, 'acc': 1200}, 18534), ('control 48', {'heights_mm': [5000, 3000, 3500, 3000, 3000, 3500, 3500, 3000, 5000, 3500], 'from': 9, 'to': 8, 'vmax': 4000, 'acc': 1000}, 4473), ('control 51', {'heights_mm': [4200, 4200, 3000, 5000, 5000, 5000, 3500], 'from': 6, 'to': 5, 'vmax': 4000, 'acc': 800}, 5000)]]\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":"Stipulated toy lift-control contract for a bounded teaching model; it makes no claim of conformance to any lift code or vendor dispatcher and omits real safety cases. 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-elevator_dispatch_scheduling-trip-flight-time-cruise-formula","generated_at":"2026-09-29T14:47:52.943914+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Lift group controllers make these decisions many times per minute; a wrong answer strands passengers, wastes trips or overrides a safety rule.","root_cause":"Acceleration and deceleration time are ignored for full-speed trips.","sha256":"83051d3b27abc6035f0c379e9f369bb61bcf56cc30cfc88076cd021b372dbd98","title":"Trip flight time from a trapezoidal profile: cruise formula · 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.153,"exit_code":1,"observations":[{"actual":4330,"check":"regression: downward trip","expected":5580,"passed":false},{"actual":18855,"check":"sampled regression 1","expected":19521,"passed":false},{"actual":15650,"check":"regression: long run at contract speed","expected":16900,"passed":false},{"actual":3465,"check":"boundary: one floor up","expected":3465,"passed":true},{"actual":3873,"check":"boundary: short hop without reaching speed","expected":3873,"passed":true},{"actual":0,"check":"control 4","expected":0,"passed":true},{"actual":6122,"check":"sampled regression 7","expected":7164,"passed":false},{"actual":3873,"check":"control 10","expected":3873,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: downward trip\", \"actual\": 4330, \"expected\": 5580, \"passed\": false}, {\"check\": \"sampled regression 1\", \"actual\": 18855, \"expected\": 19521, \"passed\": false}, {\"check\": \"regression: long run at contract speed\", \"actual\": 15650, \"expected\": 16900, \"passed\": false}, {\"check\": \"boundary: one floor up\", \"actual\": 3465, \"expected\": 3465, \"passed\": true}, {\"check\": \"boundary: short hop without reaching speed\", \"actual\": 3873, \"expected\": 3873, \"passed\": true}, {\"check\": \"control 4\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"sampled regression 7\", \"actual\": 6122, \"expected\": 7164, \"passed\": false}, {\"check\": \"control 10\", \"actual\": 3873, \"expected\": 3873, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.982,"exit_code":1,"observations":[{"actual":3080,"check":"regression: downward trip","expected":5580,"passed":false},{"actual":18188,"check":"sampled regression 1","expected":19521,"passed":false},{"actual":14400,"check":"regression: long run at contract speed","expected":16900,"passed":false},{"actual":3465,"check":"boundary: one floor up","expected":3465,"passed":true},{"actual":3873,"check":"boundary: short hop without reaching speed","expected":3873,"passed":true},{"actual":0,"check":"control 4","expected":0,"passed":true},{"actual":5080,"check":"sampled regression 7","expected":7164,"passed":false},{"actual":3873,"check":"control 10","expected":3873,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: downward trip\", \"actual\": 3080, \"expected\": 5580, \"passed\": false}, {\"check\": \"sampled regression 1\", \"actual\": 18188, \"expected\": 19521, \"passed\": false}, {\"check\": \"regression: long run at contract speed\", \"actual\": 14400, \"expected\": 16900, \"passed\": false}, {\"check\": \"boundary: one floor up\", \"actual\": 3465, \"expected\": 3465, \"passed\": true}, {\"check\": \"boundary: short hop without reaching speed\", \"actual\": 3873, \"expected\": 3873, \"passed\": true}, {\"check\": \"control 4\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"sampled regression 7\", \"actual\": 5080, \"expected\": 7164, \"passed\": false}, {\"check\": \"control 10\", \"actual\": 3873, \"expected\": 3873, \"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."}}