{"abstract":"Phony targets are incorrectly cached.","category":"Build systems","checks":7,"contract":"Return declaration-order unique targets whose non-order prerequisites changed, whose output is missing, or which are phony. Keep targets with no prerequisites when phony or missing.","evaluation_group":"xt-dirty-targets","failed_approach":"The attempted repair substitutes not phony or. Fixture 2 still yields [] instead of ['a'].","family":"xt-dirty-targets-phony","id":"FA-9281","implementations":{"attempt":{"sha256":"27fa372284533381e11f5ea32d3d337d9fa3364c8f80ecec0457eaa7d17d5205","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rules, changed, outputs):\n    result = []\n    for name, deps, order_only, phony in rules:\n        dirty = not phony or name not in outputs or bool((set(deps) - set(order_only)) & set(changed))\n        if dirty and name not in result:\n            result.append(name)\n    return result\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([('a', [], [], True)], [], ['a']), ['a'])\ncheck('fixture 3', solve([('a', [], [], False)], [], []), ['a'])\ncheck('fixture 4', solve([('a', ['b'], [], False)], ['b'], ['a']), ['a'])\ncheck('fixture 5', solve([('a', ['b'], ['b'], False)], ['b'], ['a']), [])\ncheck('fixture 6', solve([('z', [], [], True), ('a', [], [], True), ('z', [], [], True)], [], []), ['z', 'a'])\ncheck('fixture 7', solve([('a', ['b', 'c'], ['c'], False)], ['b'], ['a']), ['a'])\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":"fe05b42739e878dc4f7b8daba964856cfba8a49c1fdee31d9b0402e066aed79f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rules, changed, outputs):\n    result = []\n    for name, deps, order_only, phony in rules:\n        dirty = False or name not in outputs or bool((set(deps) - set(order_only)) & set(changed))\n        if dirty and name not in result:\n            result.append(name)\n    return result\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([('a', [], [], True)], [], ['a']), ['a'])\ncheck('fixture 3', solve([('a', [], [], False)], [], []), ['a'])\ncheck('fixture 4', solve([('a', ['b'], [], False)], ['b'], ['a']), ['a'])\ncheck('fixture 5', solve([('a', ['b'], ['b'], False)], ['b'], ['a']), [])\ncheck('fixture 6', solve([('z', [], [], True), ('a', [], [], True), ('z', [], [], True)], [], []), ['z', 'a'])\ncheck('fixture 7', solve([('a', ['b', 'c'], ['c'], False)], ['b'], ['a']), ['a'])\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":"e55e80f67fb13465df0cdea039239784b31023cf478f7a2007356ff79b098364","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rules, changed, outputs):\n    result = []\n    for name, deps, order_only, phony in rules:\n        dirty = phony or name not in outputs or bool((set(deps) - set(order_only)) & set(changed))\n        if dirty and name not in result:\n            result.append(name)\n    return result\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([('a', [], [], True)], [], ['a']), ['a'])\ncheck('fixture 3', solve([('a', [], [], False)], [], []), ['a'])\ncheck('fixture 4', solve([('a', ['b'], [], False)], ['b'], ['a']), ['a'])\ncheck('fixture 5', solve([('a', ['b'], ['b'], False)], ['b'], ['a']), [])\ncheck('fixture 6', solve([('z', [], [], True), ('a', [], [], True), ('z', [], [], True)], [], []), ['z', 'a'])\ncheck('fixture 7', solve([('a', ['b', 'c'], ['c'], False)], ['b'], ['a']), ['a'])\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-dirty-targets-phony","generated_at":"2026-09-29T14:38:28.603767+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline model of direct rebuild trigger selection, suitable for testing build and release tooling without external services.","repair":"Phony targets always require execution.","root_cause":"The implementation substitutes False or for phony or, so phony targets are incorrectly cached.","sha256":"310b7d03c135f159f2bace88dfd6c60ea3abb4abb7e3d35697e90a5890d6763c","title":"Direct rebuild trigger selection: Phony targets are incorrectly cached · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":38.193,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":[],"check":"fixture 2","expected":["a"],"passed":false},{"actual":["a"],"check":"fixture 3","expected":["a"],"passed":true},{"actual":["a"],"check":"fixture 4","expected":["a"],"passed":true},{"actual":["a"],"check":"fixture 5","expected":[],"passed":false},{"actual":["z","a"],"check":"fixture 6","expected":["z","a"],"passed":true},{"actual":["a"],"check":"fixture 7","expected":["a"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [\"a\"], \"expected\": [], \"passed\": false}, {\"check\": \"fixture 6\", \"actual\": [\"z\", \"a\"], \"expected\": [\"z\", \"a\"], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":36.116,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":[],"check":"fixture 2","expected":["a"],"passed":false},{"actual":["a"],"check":"fixture 3","expected":["a"],"passed":true},{"actual":["a"],"check":"fixture 4","expected":["a"],"passed":true},{"actual":[],"check":"fixture 5","expected":[],"passed":true},{"actual":["z","a"],"check":"fixture 6","expected":["z","a"],"passed":true},{"actual":["a"],"check":"fixture 7","expected":["a"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [\"z\", \"a\"], \"expected\": [\"z\", \"a\"], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":35.93,"exit_code":0,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["a"],"check":"fixture 2","expected":["a"],"passed":true},{"actual":["a"],"check":"fixture 3","expected":["a"],"passed":true},{"actual":["a"],"check":"fixture 4","expected":["a"],"passed":true},{"actual":[],"check":"fixture 5","expected":[],"passed":true},{"actual":["z","a"],"check":"fixture 6","expected":["z","a"],"passed":true},{"actual":["a"],"check":"fixture 7","expected":["a"],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [\"z\", \"a\"], \"expected\": [\"z\", \"a\"], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}