{"abstract":"Overnight duration becomes negative without modular wrap.","category":"Calendar arithmetic","checks":4,"contract":"Valid ISO Gregorian dates in years 1 through 9999; generated dates must remain in that range. Month is 1 through 12 and zero-based weekday is Monday 0 through Sunday 6 unless the output convention says otherwise. Both inputs are 0..86399; return the forward duration in [0,86400), treating equal readings as zero. Exact operational definition: (end_seconds-start_seconds)%86400","evaluation_group":"model-ef70b4e7ba84cde0","failed_approach":"Absolute difference chooses the reverse-day duration.","family":"xn-clock-duration-wrap-one-day","id":"FA-6571","implementations":{"attempt":{"sha256":"bad481ed1d6aaeb8c964a92c8a5c4d28f5b19e2c8e7a9cdf1ed37ccedf6d58be","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport calendar\nimport statistics\nimport itertools\nfrom fractions import Fraction\nfrom datetime import date, datetime, timedelta, timezone\nfrom decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR\n\nN = 1\nobservations = []\ndef solve(start_seconds, end_seconds):\n    return abs(end_seconds-start_seconds)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1: (86300, 100)', solve(*(86300, 100)), 200)\ncheck('fixture 2: (100, 300)', solve(*(100, 300)), 200)\ncheck('fixture 3: (0, 0)', solve(*(0, 0)), 0)\ncheck('fixture 4: (3600, 0)', solve(*(3600, 0)), 82800)\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":"a76387b79dc71bde5e8421bebc7d8958f9f4c4668e04ec2530a051e0caf1b8b8","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport calendar\nimport statistics\nimport itertools\nfrom fractions import Fraction\nfrom datetime import date, datetime, timedelta, timezone\nfrom decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR\n\nN = 1\nobservations = []\ndef solve(start_seconds, end_seconds):\n    return end_seconds-start_seconds\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1: (86300, 100)', solve(*(86300, 100)), 200)\ncheck('fixture 2: (100, 300)', solve(*(100, 300)), 200)\ncheck('fixture 3: (0, 0)', solve(*(0, 0)), 0)\ncheck('fixture 4: (3600, 0)', solve(*(3600, 0)), 82800)\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":"50ae727eecf9b69d7ac7b32e05da44693c4c17e4b7a42a0179375b49815eee94","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nimport calendar\nimport statistics\nimport itertools\nfrom fractions import Fraction\nfrom datetime import date, datetime, timedelta, timezone\nfrom decimal import Decimal, ROUND_HALF_UP, ROUND_DOWN, ROUND_CEILING, ROUND_FLOOR\n\nN = 1\nobservations = []\ndef solve(start_seconds, end_seconds):\n    return (end_seconds-start_seconds)%86400\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1: (86300, 100)', solve(*(86300, 100)), 200)\ncheck('fixture 2: (100, 300)', solve(*(100, 300)), 200)\ncheck('fixture 3: (0, 0)', solve(*(0, 0)), 0)\ncheck('fixture 4: (3600, 0)', solve(*(3600, 0)), 82800)\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":" 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":"xn-clock-duration-wrap-one-day","generated_at":"2026-09-29T14:38:03.217199+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Calendar conventions results depend on the stated convention.","repair":"Apply the specified mathematical contract directly, preserving all terms and boundary cases: return (end_seconds-start_seconds)%86400","root_cause":"Overnight duration becomes negative without modular wrap.","sha256":"3430fa3827860ca1fbc54dc2719028a76256163d99d1cbf0b562e10e66b68bea","title":"Clock duration wrap one day · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":42.578,"exit_code":1,"observations":[{"actual":86200,"check":"fixture 1: (86300, 100)","expected":200,"passed":false},{"actual":200,"check":"fixture 2: (100, 300)","expected":200,"passed":true},{"actual":0,"check":"fixture 3: (0, 0)","expected":0,"passed":true},{"actual":3600,"check":"fixture 4: (3600, 0)","expected":82800,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1: (86300, 100)\", \"actual\": 86200, \"expected\": 200, \"passed\": false}, {\"check\": \"fixture 2: (100, 300)\", \"actual\": 200, \"expected\": 200, \"passed\": true}, {\"check\": \"fixture 3: (0, 0)\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 4: (3600, 0)\", \"actual\": 3600, \"expected\": 82800, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":45.635,"exit_code":1,"observations":[{"actual":-86200,"check":"fixture 1: (86300, 100)","expected":200,"passed":false},{"actual":200,"check":"fixture 2: (100, 300)","expected":200,"passed":true},{"actual":0,"check":"fixture 3: (0, 0)","expected":0,"passed":true},{"actual":-3600,"check":"fixture 4: (3600, 0)","expected":82800,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1: (86300, 100)\", \"actual\": -86200, \"expected\": 200, \"passed\": false}, {\"check\": \"fixture 2: (100, 300)\", \"actual\": 200, \"expected\": 200, \"passed\": true}, {\"check\": \"fixture 3: (0, 0)\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 4: (3600, 0)\", \"actual\": -3600, \"expected\": 82800, \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":44.227,"exit_code":0,"observations":[{"actual":200,"check":"fixture 1: (86300, 100)","expected":200,"passed":true},{"actual":200,"check":"fixture 2: (100, 300)","expected":200,"passed":true},{"actual":0,"check":"fixture 3: (0, 0)","expected":0,"passed":true},{"actual":82800,"check":"fixture 4: (3600, 0)","expected":82800,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1: (86300, 100)\", \"actual\": 200, \"expected\": 200, \"passed\": true}, {\"check\": \"fixture 2: (100, 300)\", \"actual\": 200, \"expected\": 200, \"passed\": true}, {\"check\": \"fixture 3: (0, 0)\", \"actual\": 0, \"expected\": 0, \"passed\": true}, {\"check\": \"fixture 4: (3600, 0)\", \"actual\": 82800, \"expected\": 82800, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}