{"abstract":"Two fifths down returns 8/9 (below unison) instead of 16/9.","category":"Music interval and transposition theory","checks":8,"contract":"Input an integer k with |k| <= 24 (booleans rejected). Return (3/2)**k octave-reduced into [1, 2) as [numerator, denominator]; out-of-range or non-integer input returns None.","contract_signature":"x","evaluation_group":"w2-music-interval-pythagorean-chain","failed_approach":"Looping on r <= 1 also doubles the unison, so zero fifths returns 2/1.","family":"w2-music-interval-pythagorean-chain-upward-octave-reduction","id":"FA-81101","implementations":{"attempt":{"sha256":"b4ce5b42443ee97aed373377ddc89da3cd058f78dacbffd9c020bb9ea022febe","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    if not isinstance(x, int) or isinstance(x, bool) or abs(x) > 24:\n        return None\n    r = Fraction(3, 2) ** x\n    while r >= 2:\n        r /= 2\n    while r <= 1:\n        r *= 2\n    return [r.numerator, r.denominator]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[(0, [1, 1]), (1, [3, 2]), (2, [9, 8]), (3, [27, 16]), (4, [81, 64]), (5, [243, 128]), (-2, [16, 9]), (-5, [256, 243])], [(0, [1, 1]), (4, [81, 64]), (5, [243, 128]), (6, [729, 512]), (7, [2187, 2048]), (12, [531441, 524288]), (-3, [32, 27]), (-6, [1024, 729])], [(0, [1, 1]), (7, [2187, 2048]), (12, [531441, 524288]), (-1, [4, 3]), (-5, [256, 243]), (-12, [1048576, 531441]), (24, [282429536481, 274877906944]), (25, None)], [(0, [1, 1]), (-6, [1024, 729]), (24, [282429536481, 274877906944]), (-24, [549755813888, 282429536481]), (25, None), (-25, None), (30, None), (True, None)], [(0, [1, 1]), (-2, [16, 9]), (-3, [32, 27]), (-12, [1048576, 531441]), (30, None), (True, None), ('1', None), (1.0, None)]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"oracle %d\" % i, 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":"1281d2e6a2092d95c8c78553eb1f6dba0fb63609ef9fb54bde75922ee15e6d96","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nfrom fractions import Fraction\nN = 1\nobservations = []\ndef solve(x):\n    if not isinstance(x, int) or isinstance(x, bool) or abs(x) > 24:\n        return None\n    r = Fraction(3, 2) ** x\n    while r >= 2:\n        r /= 2\n    if r < 1:\n        r *= 2\n    return [r.numerator, r.denominator]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[(0, [1, 1]), (1, [3, 2]), (2, [9, 8]), (3, [27, 16]), (4, [81, 64]), (5, [243, 128]), (-2, [16, 9]), (-5, [256, 243])], [(0, [1, 1]), (4, [81, 64]), (5, [243, 128]), (6, [729, 512]), (7, [2187, 2048]), (12, [531441, 524288]), (-3, [32, 27]), (-6, [1024, 729])], [(0, [1, 1]), (7, [2187, 2048]), (12, [531441, 524288]), (-1, [4, 3]), (-5, [256, 243]), (-12, [1048576, 531441]), (24, [282429536481, 274877906944]), (25, None)], [(0, [1, 1]), (-6, [1024, 729]), (24, [282429536481, 274877906944]), (-24, [549755813888, 282429536481]), (25, None), (-25, None), (30, None), (True, None)], [(0, [1, 1]), (-2, [16, 9]), (-3, [32, 27]), (-12, [1048576, 531441]), (30, None), (True, None), ('1', None), (1.0, None)]]\nfor i, (args, expected) in enumerate(fixtures[N-1]):\n    check(\"oracle %d\" % i, 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 bounded teaching model with a stipulated toy contract; it is not a complete music notation or theory engine. 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-music-interval-pythagorean-chain-upward-octave-reduction","generated_at":"2026-09-29T14:49:59.894992+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Pythagorean and meantone tuning tools stack fifths and octave-reduce the result.","root_cause":"Ratios below unity are raised by one octave at most instead of repeatedly.","sha256":"adca7f0b88fb89da73901392a7b4011edbe6eeee009f7ed63dc276a20249332f","title":"Pythagorean ratio for a chain of fifths: flatward chains lifted by a single octave · 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":43.217,"exit_code":1,"observations":[{"actual":[2,1],"check":"oracle 0","expected":[1,1],"passed":false},{"actual":[3,2],"check":"oracle 1","expected":[3,2],"passed":true},{"actual":[9,8],"check":"oracle 2","expected":[9,8],"passed":true},{"actual":[27,16],"check":"oracle 3","expected":[27,16],"passed":true},{"actual":[81,64],"check":"oracle 4","expected":[81,64],"passed":true},{"actual":[243,128],"check":"oracle 5","expected":[243,128],"passed":true},{"actual":[16,9],"check":"oracle 6","expected":[16,9],"passed":true},{"actual":[256,243],"check":"oracle 7","expected":[256,243],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oracle 0\", \"actual\": [2, 1], \"expected\": [1, 1], \"passed\": false}, {\"check\": \"oracle 1\", \"actual\": [3, 2], \"expected\": [3, 2], \"passed\": true}, {\"check\": \"oracle 2\", \"actual\": [9, 8], \"expected\": [9, 8], \"passed\": true}, {\"check\": \"oracle 3\", \"actual\": [27, 16], \"expected\": [27, 16], \"passed\": true}, {\"check\": \"oracle 4\", \"actual\": [81, 64], \"expected\": [81, 64], \"passed\": true}, {\"check\": \"oracle 5\", \"actual\": [243, 128], \"expected\": [243, 128], \"passed\": true}, {\"check\": \"oracle 6\", \"actual\": [16, 9], \"expected\": [16, 9], \"passed\": true}, {\"check\": \"oracle 7\", \"actual\": [256, 243], \"expected\": [256, 243], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.052,"exit_code":1,"observations":[{"actual":[1,1],"check":"oracle 0","expected":[1,1],"passed":true},{"actual":[3,2],"check":"oracle 1","expected":[3,2],"passed":true},{"actual":[9,8],"check":"oracle 2","expected":[9,8],"passed":true},{"actual":[27,16],"check":"oracle 3","expected":[27,16],"passed":true},{"actual":[81,64],"check":"oracle 4","expected":[81,64],"passed":true},{"actual":[243,128],"check":"oracle 5","expected":[243,128],"passed":true},{"actual":[8,9],"check":"oracle 6","expected":[16,9],"passed":false},{"actual":[64,243],"check":"oracle 7","expected":[256,243],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oracle 0\", \"actual\": [1, 1], \"expected\": [1, 1], \"passed\": true}, {\"check\": \"oracle 1\", \"actual\": [3, 2], \"expected\": [3, 2], \"passed\": true}, {\"check\": \"oracle 2\", \"actual\": [9, 8], \"expected\": [9, 8], \"passed\": true}, {\"check\": \"oracle 3\", \"actual\": [27, 16], \"expected\": [27, 16], \"passed\": true}, {\"check\": \"oracle 4\", \"actual\": [81, 64], \"expected\": [81, 64], \"passed\": true}, {\"check\": \"oracle 5\", \"actual\": [243, 128], \"expected\": [243, 128], \"passed\": true}, {\"check\": \"oracle 6\", \"actual\": [8, 9], \"expected\": [16, 9], \"passed\": false}, {\"check\": \"oracle 7\", \"actual\": [64, 243], \"expected\": [256, 243], \"passed\": false}], \"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."}}