{"abstract":"Similar motion from a fifth to an octave (G4/C4 to D5/D4) is reported as a parallel perfect interval.","category":"Music interval and transposition theory","checks":8,"contract":"Input [upper, lower], equal-length lists of MIDI pitches. For each adjacent pair of positions i, i+1 report [i, \"P5\"] or [i, \"P8\"] when the interval (upper - lower) mod 12 is 7 or 0 at both positions (the same class), both voices move (no repeated note in either), and they move in the same direction. Return the list in order; unequal lengths return None.","evaluation_group":"w2-music-interval-parallel-perfects","failed_approach":"Allowing any interval that arrives on an octave still reports fifth-to-octave motion.","family":"w2-music-interval-parallel-perfects-same-class-requirement","id":"FA-81216","implementations":{"attempt":{"sha256":"2b07784edf3587b16b9479ac79e7e19d88c394a7888a0e0cec8092e405895f6a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    if not isinstance(x, list) or len(x) != 2:\n        return None\n    up, lo = x\n    if len(up) != len(lo):\n        return None\n    out = []\n    for i in range(len(up) - 1):\n        a = (up[i] - lo[i]) % 12\n        b = (up[i + 1] - lo[i + 1]) % 12\n        mu = up[i + 1] - up[i]\n        ml = lo[i + 1] - lo[i]\n        if a != b and b != 0 or a not in (0, 7):\n            continue\n        if mu == 0 or ml == 0:\n            continue\n        if (mu > 0) != (ml > 0):\n            continue\n        out.append([i, 'P8' if a == 0 else 'P5'])\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([[67, 69], [60, 62]], [[0, 'P5']]), ([[72, 74], [60, 62]], [[0, 'P8']]), ([[79, 81], [60, 62]], [[0, 'P5']]), ([[67, 67], [60, 60]], []), ([[67, 69], [60, 60]], []), ([[72, 67], [60, 72]], []), ([[72, 79], [60, 55]], []), ([[67, 74], [60, 62]], [])], [([[67, 67], [60, 60]], []), ([[67, 69], [60, 60]], []), ([[72, 67], [60, 72]], []), ([[72, 79], [60, 55]], []), ([[67, 72], [60, 65]], [[0, 'P5']]), ([[72, 79], [60, 60]], []), ([[60, 62], [67, 69]], []), ([[67, 74], [60, 62]], [])], [([[72, 79], [60, 55]], []), ([[67, 72], [60, 65]], [[0, 'P5']]), ([[72, 79], [60, 60]], []), ([[60, 62], [67, 69]], []), ([[55, 57], [60, 62]], [[0, 'P5']]), ([[67, 69, 71], [60, 62, 64]], [[0, 'P5'], [1, 'P5']]), ([[67, 65], [60, 58]], [[0, 'P5']]), ([[67, 74], [60, 62]], [])], [([[60, 62], [67, 69]], []), ([[55, 57], [60, 62]], [[0, 'P5']]), ([[67, 69, 71], [60, 62, 64]], [[0, 'P5'], [1, 'P5']]), ([[67, 65], [60, 58]], [[0, 'P5']]), ([[72, 72, 74], [60, 60, 62]], [[1, 'P8']]), ([[67, 72], [60, 60]], []), ([[64, 65], [60, 62]], []), ([[67, 74], [60, 62]], [])], [([[67, 65], [60, 58]], [[0, 'P5']]), ([[72, 72, 74], [60, 60, 62]], [[1, 'P8']]), ([[67, 72], [60, 60]], []), ([[64, 65], [60, 62]], []), ([[67], [60]], []), ([[], []], []), ([[67, 69], [60]], None), ([[67, 74], [60, 62]], [])]]\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":"eca4f53b168f6c9e0c9b1c7f1ff9bc7ecae1453ed2cf4911f2c1f6d21ab997b1","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    if not isinstance(x, list) or len(x) != 2:\n        return None\n    up, lo = x\n    if len(up) != len(lo):\n        return None\n    out = []\n    for i in range(len(up) - 1):\n        a = (up[i] - lo[i]) % 12\n        b = (up[i + 1] - lo[i + 1]) % 12\n        mu = up[i + 1] - up[i]\n        ml = lo[i + 1] - lo[i]\n        if a not in (0, 7) or b not in (0, 7):\n            continue\n        if mu == 0 or ml == 0:\n            continue\n        if (mu > 0) != (ml > 0):\n            continue\n        out.append([i, 'P8' if a == 0 else 'P5'])\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([[67, 69], [60, 62]], [[0, 'P5']]), ([[72, 74], [60, 62]], [[0, 'P8']]), ([[79, 81], [60, 62]], [[0, 'P5']]), ([[67, 67], [60, 60]], []), ([[67, 69], [60, 60]], []), ([[72, 67], [60, 72]], []), ([[72, 79], [60, 55]], []), ([[67, 74], [60, 62]], [])], [([[67, 67], [60, 60]], []), ([[67, 69], [60, 60]], []), ([[72, 67], [60, 72]], []), ([[72, 79], [60, 55]], []), ([[67, 72], [60, 65]], [[0, 'P5']]), ([[72, 79], [60, 60]], []), ([[60, 62], [67, 69]], []), ([[67, 74], [60, 62]], [])], [([[72, 79], [60, 55]], []), ([[67, 72], [60, 65]], [[0, 'P5']]), ([[72, 79], [60, 60]], []), ([[60, 62], [67, 69]], []), ([[55, 57], [60, 62]], [[0, 'P5']]), ([[67, 69, 71], [60, 62, 64]], [[0, 'P5'], [1, 'P5']]), ([[67, 65], [60, 58]], [[0, 'P5']]), ([[67, 74], [60, 62]], [])], [([[60, 62], [67, 69]], []), ([[55, 57], [60, 62]], [[0, 'P5']]), ([[67, 69, 71], [60, 62, 64]], [[0, 'P5'], [1, 'P5']]), ([[67, 65], [60, 58]], [[0, 'P5']]), ([[72, 72, 74], [60, 60, 62]], [[1, 'P8']]), ([[67, 72], [60, 60]], []), ([[64, 65], [60, 62]], []), ([[67, 74], [60, 62]], [])], [([[67, 65], [60, 58]], [[0, 'P5']]), ([[72, 72, 74], [60, 60, 62]], [[1, 'P8']]), ([[67, 72], [60, 60]], []), ([[64, 65], [60, 62]], []), ([[67], [60]], []), ([[], []], []), ([[67, 69], [60]], None), ([[67, 74], [60, 62]], [])]]\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"},"fixed":{"sha256":"c18867a458ae21b8700d9048176da51f95f4717451389783ec2c5249ff691255","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    if not isinstance(x, list) or len(x) != 2:\n        return None\n    up, lo = x\n    if len(up) != len(lo):\n        return None\n    out = []\n    for i in range(len(up) - 1):\n        a = (up[i] - lo[i]) % 12\n        b = (up[i + 1] - lo[i + 1]) % 12\n        mu = up[i + 1] - up[i]\n        ml = lo[i + 1] - lo[i]\n        if a != b or a not in (0, 7):\n            continue\n        if mu == 0 or ml == 0:\n            continue\n        if (mu > 0) != (ml > 0):\n            continue\n        out.append([i, 'P8' if a == 0 else 'P5'])\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[([[67, 69], [60, 62]], [[0, 'P5']]), ([[72, 74], [60, 62]], [[0, 'P8']]), ([[79, 81], [60, 62]], [[0, 'P5']]), ([[67, 67], [60, 60]], []), ([[67, 69], [60, 60]], []), ([[72, 67], [60, 72]], []), ([[72, 79], [60, 55]], []), ([[67, 74], [60, 62]], [])], [([[67, 67], [60, 60]], []), ([[67, 69], [60, 60]], []), ([[72, 67], [60, 72]], []), ([[72, 79], [60, 55]], []), ([[67, 72], [60, 65]], [[0, 'P5']]), ([[72, 79], [60, 60]], []), ([[60, 62], [67, 69]], []), ([[67, 74], [60, 62]], [])], [([[72, 79], [60, 55]], []), ([[67, 72], [60, 65]], [[0, 'P5']]), ([[72, 79], [60, 60]], []), ([[60, 62], [67, 69]], []), ([[55, 57], [60, 62]], [[0, 'P5']]), ([[67, 69, 71], [60, 62, 64]], [[0, 'P5'], [1, 'P5']]), ([[67, 65], [60, 58]], [[0, 'P5']]), ([[67, 74], [60, 62]], [])], [([[60, 62], [67, 69]], []), ([[55, 57], [60, 62]], [[0, 'P5']]), ([[67, 69, 71], [60, 62, 64]], [[0, 'P5'], [1, 'P5']]), ([[67, 65], [60, 58]], [[0, 'P5']]), ([[72, 72, 74], [60, 60, 62]], [[1, 'P8']]), ([[67, 72], [60, 60]], []), ([[64, 65], [60, 62]], []), ([[67, 74], [60, 62]], [])], [([[67, 65], [60, 58]], [[0, 'P5']]), ([[72, 72, 74], [60, 60, 62]], [[1, 'P8']]), ([[67, 72], [60, 60]], []), ([[64, 65], [60, 62]], []), ([[67], [60]], []), ([[], []], []), ([[67, 69], [60]], None), ([[67, 74], [60, 62]], [])]]\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-parallel-perfects-same-class-requirement","generated_at":"2026-09-29T14:50:01.100682+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Counterpoint checkers and voice-leading validators flag forbidden parallel perfect intervals.","repair":"Restore the same class requirement step so that it reads `if a != b or a not in (0, 7):`.","root_cause":"The check only requires both intervals to be perfect, not the same perfect class.","sha256":"5dfd6dc72cc7f3bbba986eef60d45e419d15e4c613502c90ac74c7d6d8d87368","title":"Parallel fifths and octaves between two voices: fifth to octave counted as parallel · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":43.151,"exit_code":1,"observations":[{"actual":[[0,"P5"]],"check":"oracle 0","expected":[[0,"P5"]],"passed":true},{"actual":[[0,"P8"]],"check":"oracle 1","expected":[[0,"P8"]],"passed":true},{"actual":[[0,"P5"]],"check":"oracle 2","expected":[[0,"P5"]],"passed":true},{"actual":[],"check":"oracle 3","expected":[],"passed":true},{"actual":[],"check":"oracle 4","expected":[],"passed":true},{"actual":[],"check":"oracle 5","expected":[],"passed":true},{"actual":[],"check":"oracle 6","expected":[],"passed":true},{"actual":[[0,"P5"]],"check":"oracle 7","expected":[],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oracle 0\", \"actual\": [[0, \"P5\"]], \"expected\": [[0, \"P5\"]], \"passed\": true}, {\"check\": \"oracle 1\", \"actual\": [[0, \"P8\"]], \"expected\": [[0, \"P8\"]], \"passed\": true}, {\"check\": \"oracle 2\", \"actual\": [[0, \"P5\"]], \"expected\": [[0, \"P5\"]], \"passed\": true}, {\"check\": \"oracle 3\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"oracle 4\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"oracle 5\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"oracle 6\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"oracle 7\", \"actual\": [[0, \"P5\"]], \"expected\": [], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.263,"exit_code":1,"observations":[{"actual":[[0,"P5"]],"check":"oracle 0","expected":[[0,"P5"]],"passed":true},{"actual":[[0,"P8"]],"check":"oracle 1","expected":[[0,"P8"]],"passed":true},{"actual":[[0,"P5"]],"check":"oracle 2","expected":[[0,"P5"]],"passed":true},{"actual":[],"check":"oracle 3","expected":[],"passed":true},{"actual":[],"check":"oracle 4","expected":[],"passed":true},{"actual":[],"check":"oracle 5","expected":[],"passed":true},{"actual":[],"check":"oracle 6","expected":[],"passed":true},{"actual":[[0,"P5"]],"check":"oracle 7","expected":[],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oracle 0\", \"actual\": [[0, \"P5\"]], \"expected\": [[0, \"P5\"]], \"passed\": true}, {\"check\": \"oracle 1\", \"actual\": [[0, \"P8\"]], \"expected\": [[0, \"P8\"]], \"passed\": true}, {\"check\": \"oracle 2\", \"actual\": [[0, \"P5\"]], \"expected\": [[0, \"P5\"]], \"passed\": true}, {\"check\": \"oracle 3\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"oracle 4\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"oracle 5\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"oracle 6\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"oracle 7\", \"actual\": [[0, \"P5\"]], \"expected\": [], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":41.192,"exit_code":0,"observations":[{"actual":[[0,"P5"]],"check":"oracle 0","expected":[[0,"P5"]],"passed":true},{"actual":[[0,"P8"]],"check":"oracle 1","expected":[[0,"P8"]],"passed":true},{"actual":[[0,"P5"]],"check":"oracle 2","expected":[[0,"P5"]],"passed":true},{"actual":[],"check":"oracle 3","expected":[],"passed":true},{"actual":[],"check":"oracle 4","expected":[],"passed":true},{"actual":[],"check":"oracle 5","expected":[],"passed":true},{"actual":[],"check":"oracle 6","expected":[],"passed":true},{"actual":[],"check":"oracle 7","expected":[],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"oracle 0\", \"actual\": [[0, \"P5\"]], \"expected\": [[0, \"P5\"]], \"passed\": true}, {\"check\": \"oracle 1\", \"actual\": [[0, \"P8\"]], \"expected\": [[0, \"P8\"]], \"passed\": true}, {\"check\": \"oracle 2\", \"actual\": [[0, \"P5\"]], \"expected\": [[0, \"P5\"]], \"passed\": true}, {\"check\": \"oracle 3\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"oracle 4\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"oracle 5\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"oracle 6\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"oracle 7\", \"actual\": [], \"expected\": [], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}