{"abstract":"Disabled warnings remain active.","category":"Build systems","checks":6,"contract":"Append defaults, replace optimization options by the last requested optimization, preserve repeated include options, remove explicitly disabled warnings, and append mandatory flags exactly once.","contract_signature":"defaults, requested, disabled, mandatory","evaluation_group":"xt-compiler-flags","failed_approach":"The attempted repair substitutes x in disabled. Fixture 2 still yields ['-Wall', '-O2', '-g'] instead of ['-Ifoo', '-Ifoo', '-O2', '-g'].","family":"xt-compiler-flags-disable-warning","id":"FA-9266","implementations":{"attempt":{"sha256":"b7eff9cf7fc0b83d3a70d6c4c4107dc5593bb45774213a108d1621c99fe4488c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(defaults, requested, disabled, mandatory):\n    flags = list(defaults) + list(requested)\n    opts = [x for x in flags if x.startswith('-O')]\n    flags = [x for x in flags if not x.startswith('-O')]\n    flags = [x for x in flags if x in disabled]\n    if opts: flags.append(opts[-1])\n    for flag in mandatory:\n        if flag not in flags: flags.append(flag)\n    return flags\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve([], [], [], []), [])\ncheck('fixture 2', solve(['-O0', '-Wall'], ['-O2', '-Ifoo', '-Ifoo'], ['-Wall'], ['-g']), ['-Ifoo', '-Ifoo', '-O2', '-g'])\ncheck('fixture 3', solve(['-O1'], ['-O3'], [], []), ['-O3'])\ncheck('fixture 4', solve(['-g'], [], [], ['-g']), ['-g'])\ncheck('fixture 5', solve(['-Wa', '-Wb'], [], ['-Wa'], []), ['-Wb'])\ncheck('fixture 6', solve([], ['-Ifoo', '-Ibar'], [], ['-g', '-g']), ['-Ifoo', '-Ibar', '-g'])\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":"ea879c6a7ec51e8186ff823bc91c2b5be3dfb72eff22af58d52cfa2ab63f419a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(defaults, requested, disabled, mandatory):\n    flags = list(defaults) + list(requested)\n    opts = [x for x in flags if x.startswith('-O')]\n    flags = [x for x in flags if not x.startswith('-O')]\n    flags = [x for x in flags if True]\n    if opts: flags.append(opts[-1])\n    for flag in mandatory:\n        if flag not in flags: flags.append(flag)\n    return flags\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve([], [], [], []), [])\ncheck('fixture 2', solve(['-O0', '-Wall'], ['-O2', '-Ifoo', '-Ifoo'], ['-Wall'], ['-g']), ['-Ifoo', '-Ifoo', '-O2', '-g'])\ncheck('fixture 3', solve(['-O1'], ['-O3'], [], []), ['-O3'])\ncheck('fixture 4', solve(['-g'], [], [], ['-g']), ['-g'])\ncheck('fixture 5', solve(['-Wa', '-Wb'], [], ['-Wa'], []), ['-Wb'])\ncheck('fixture 6', solve([], ['-Ifoo', '-Ibar'], [], ['-g', '-g']), ['-Ifoo', '-Ibar', '-g'])\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":"xt-compiler-flags-disable-warning","generated_at":"2026-09-29T14:38:28.606971+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline model of compiler option precedence, suitable for testing build and release tooling without external services.","root_cause":"The implementation substitutes True for x not in disabled, so disabled warnings remain active.","sha256":"9fd158a01425b2a032bb0bd2850ed8accc0c396b29efca59d48cf682806b7f3a","title":"Compiler option precedence: Disabled warnings remain active · 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":37.967,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["-Wall","-O2","-g"],"check":"fixture 2","expected":["-Ifoo","-Ifoo","-O2","-g"],"passed":false},{"actual":["-O3"],"check":"fixture 3","expected":["-O3"],"passed":true},{"actual":["-g"],"check":"fixture 4","expected":["-g"],"passed":true},{"actual":["-Wa"],"check":"fixture 5","expected":["-Wb"],"passed":false},{"actual":["-g"],"check":"fixture 6","expected":["-Ifoo","-Ibar","-g"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"-Wall\", \"-O2\", \"-g\"], \"expected\": [\"-Ifoo\", \"-Ifoo\", \"-O2\", \"-g\"], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [\"-O3\"], \"expected\": [\"-O3\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"-g\"], \"expected\": [\"-g\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [\"-Wa\"], \"expected\": [\"-Wb\"], \"passed\": false}, {\"check\": \"fixture 6\", \"actual\": [\"-g\"], \"expected\": [\"-Ifoo\", \"-Ibar\", \"-g\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.196,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["-Wall","-Ifoo","-Ifoo","-O2","-g"],"check":"fixture 2","expected":["-Ifoo","-Ifoo","-O2","-g"],"passed":false},{"actual":["-O3"],"check":"fixture 3","expected":["-O3"],"passed":true},{"actual":["-g"],"check":"fixture 4","expected":["-g"],"passed":true},{"actual":["-Wa","-Wb"],"check":"fixture 5","expected":["-Wb"],"passed":false},{"actual":["-Ifoo","-Ibar","-g"],"check":"fixture 6","expected":["-Ifoo","-Ibar","-g"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"-Wall\", \"-Ifoo\", \"-Ifoo\", \"-O2\", \"-g\"], \"expected\": [\"-Ifoo\", \"-Ifoo\", \"-O2\", \"-g\"], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [\"-O3\"], \"expected\": [\"-O3\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"-g\"], \"expected\": [\"-g\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [\"-Wa\", \"-Wb\"], \"expected\": [\"-Wb\"], \"passed\": false}, {\"check\": \"fixture 6\", \"actual\": [\"-Ifoo\", \"-Ibar\", \"-g\"], \"expected\": [\"-Ifoo\", \"-Ibar\", \"-g\"], \"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."}}