{"abstract":"Order-only changes trigger content rebuilds.","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.","contract_signature":"rules, changed, outputs","evaluation_group":"xt-dirty-targets","failed_approach":"The attempted repair substitutes set(order_only). Fixture 4 still yields [] instead of ['a'].","family":"xt-dirty-targets-order-only","id":"FA-9291","implementations":{"attempt":{"sha256":"77e0ecf765cd55998a14a9bdbb2fbd3d5c2599c4622b8f070601b3965accab04","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(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":"b4c5e0d58f8761609c47798d5f4f23f4a8323b02e85e994ac149a5b50539eba0","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(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-order-only","generated_at":"2026-09-29T14:38:28.724809+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.","root_cause":"The implementation substitutes set(deps) for set(deps) - set(order_only), so order-only changes trigger content rebuilds.","sha256":"b8cacdf3ea22b9869c76b80e9b205c60ce18a159e34d764e915baeb36b286d32","title":"Direct rebuild trigger selection: Order-only changes trigger content rebuilds · 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":36.485,"exit_code":1,"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":[],"check":"fixture 4","expected":["a"],"passed":false},{"actual":["a"],"check":"fixture 5","expected":[],"passed":false},{"actual":["z","a"],"check":"fixture 6","expected":["z","a"],"passed":true},{"actual":[],"check":"fixture 7","expected":["a"],"passed":false}],"passed":false,"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\": [], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"fixture 5\", \"actual\": [\"a\"], \"expected\": [], \"passed\": false}, {\"check\": \"fixture 6\", \"actual\": [\"z\", \"a\"], \"expected\": [\"z\", \"a\"], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [], \"expected\": [\"a\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":36.533,"exit_code":1,"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":["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\": [\"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\": [\"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"}},"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."}}