{"abstract":"Ownership results depend on rule order.","category":"Build systems","checks":7,"contract":"Map output names to producing rules. Skip disabled rules, include all declared outputs, reject duplicate owners, retain owner names, and return sorted pairs. Duplicate declaration by the same owner is harmless.","evaluation_group":"xt-generated-output","failed_approach":"The attempted repair substitutes return sorted(owners.items(), reverse=True). Fixture 2 still yields [('z', 'a'), ('x', 'a')] instead of [('x', 'a'), ('z', 'a')].","family":"xt-generated-output-canonical-output","id":"FA-9326","implementations":{"attempt":{"sha256":"5fda81fd1d5ebc897b1232b049b259719db4cdc7e803ef7d042aab59be7919f7","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rules):\n    owners = {}\n    for name, enabled, outputs in rules:\n        if not enabled: continue\n        for output in outputs:\n            if output in owners and owners[output] != name: return 'conflict'\n            owners[output] = name\n    return sorted(owners.items(), reverse=True)\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, ['z', 'x'])]), [('x', 'a'), ('z', 'a')])\ncheck('fixture 3', solve([('a', False, ['x']), ('b', True, ['x'])]), [('x', 'b')])\ncheck('fixture 4', solve([('a', True, ['x']), ('b', True, ['x'])]), 'conflict')\ncheck('fixture 5', solve([('a', True, ['x', 'x'])]), [('x', 'a')])\ncheck('fixture 6', solve([('a', True, [])]), [])\ncheck('fixture 7', solve([('a', True, ['y']), ('b', True, ['x'])]), [('x', 'b'), ('y', '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":"fc0da11f61d6a8902302e742ac54046238d56d41a2f35fd25f9c9d00b44ce043","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rules):\n    owners = {}\n    for name, enabled, outputs in rules:\n        if not enabled: continue\n        for output in outputs:\n            if output in owners and owners[output] != name: return 'conflict'\n            owners[output] = name\n    return list(owners.items())\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, ['z', 'x'])]), [('x', 'a'), ('z', 'a')])\ncheck('fixture 3', solve([('a', False, ['x']), ('b', True, ['x'])]), [('x', 'b')])\ncheck('fixture 4', solve([('a', True, ['x']), ('b', True, ['x'])]), 'conflict')\ncheck('fixture 5', solve([('a', True, ['x', 'x'])]), [('x', 'a')])\ncheck('fixture 6', solve([('a', True, [])]), [])\ncheck('fixture 7', solve([('a', True, ['y']), ('b', True, ['x'])]), [('x', 'b'), ('y', '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":"a3ea30a6f36a4b7551deb24c694597368e1288f85cba9721a4ea90e7b18c21f5","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rules):\n    owners = {}\n    for name, enabled, outputs in rules:\n        if not enabled: continue\n        for output in outputs:\n            if output in owners and owners[output] != name: return 'conflict'\n            owners[output] = name\n    return sorted(owners.items())\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, ['z', 'x'])]), [('x', 'a'), ('z', 'a')])\ncheck('fixture 3', solve([('a', False, ['x']), ('b', True, ['x'])]), [('x', 'b')])\ncheck('fixture 4', solve([('a', True, ['x']), ('b', True, ['x'])]), 'conflict')\ncheck('fixture 5', solve([('a', True, ['x', 'x'])]), [('x', 'a')])\ncheck('fixture 6', solve([('a', True, [])]), [])\ncheck('fixture 7', solve([('a', True, ['y']), ('b', True, ['x'])]), [('x', 'b'), ('y', '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-generated-output-canonical-output","generated_at":"2026-09-29T14:38:29.045256+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline model of generated file ownership, suitable for testing build and release tooling without external services.","repair":"Sort final output-owner pairs lexically.","root_cause":"The implementation substitutes return list(owners.items()) for return sorted(owners.items()), so ownership results depend on rule order.","sha256":"7db7c86abe378235e20fe56c8e04ac16eb68044c8954519677cc1e7d2afbe358","title":"Generated file ownership: Ownership results depend on rule order · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":35.895,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":[["z","a"],["x","a"]],"check":"fixture 2","expected":[["x","a"],["z","a"]],"passed":false},{"actual":[["x","b"]],"check":"fixture 3","expected":[["x","b"]],"passed":true},{"actual":"conflict","check":"fixture 4","expected":"conflict","passed":true},{"actual":[["x","a"]],"check":"fixture 5","expected":[["x","a"]],"passed":true},{"actual":[],"check":"fixture 6","expected":[],"passed":true},{"actual":[["y","a"],["x","b"]],"check":"fixture 7","expected":[["x","b"],["y","a"]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [[\"z\", \"a\"], [\"x\", \"a\"]], \"expected\": [[\"x\", \"a\"], [\"z\", \"a\"]], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [[\"x\", \"b\"]], \"expected\": [[\"x\", \"b\"]], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"conflict\", \"expected\": \"conflict\", \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [[\"x\", \"a\"]], \"expected\": [[\"x\", \"a\"]], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [[\"y\", \"a\"], [\"x\", \"b\"]], \"expected\": [[\"x\", \"b\"], [\"y\", \"a\"]], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":35.264,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":[["z","a"],["x","a"]],"check":"fixture 2","expected":[["x","a"],["z","a"]],"passed":false},{"actual":[["x","b"]],"check":"fixture 3","expected":[["x","b"]],"passed":true},{"actual":"conflict","check":"fixture 4","expected":"conflict","passed":true},{"actual":[["x","a"]],"check":"fixture 5","expected":[["x","a"]],"passed":true},{"actual":[],"check":"fixture 6","expected":[],"passed":true},{"actual":[["y","a"],["x","b"]],"check":"fixture 7","expected":[["x","b"],["y","a"]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [[\"z\", \"a\"], [\"x\", \"a\"]], \"expected\": [[\"x\", \"a\"], [\"z\", \"a\"]], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [[\"x\", \"b\"]], \"expected\": [[\"x\", \"b\"]], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"conflict\", \"expected\": \"conflict\", \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [[\"x\", \"a\"]], \"expected\": [[\"x\", \"a\"]], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [[\"y\", \"a\"], [\"x\", \"b\"]], \"expected\": [[\"x\", \"b\"], [\"y\", \"a\"]], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":36.296,"exit_code":0,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":[["x","a"],["z","a"]],"check":"fixture 2","expected":[["x","a"],["z","a"]],"passed":true},{"actual":[["x","b"]],"check":"fixture 3","expected":[["x","b"]],"passed":true},{"actual":"conflict","check":"fixture 4","expected":"conflict","passed":true},{"actual":[["x","a"]],"check":"fixture 5","expected":[["x","a"]],"passed":true},{"actual":[],"check":"fixture 6","expected":[],"passed":true},{"actual":[["x","b"],["y","a"]],"check":"fixture 7","expected":[["x","b"],["y","a"]],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [[\"x\", \"a\"], [\"z\", \"a\"]], \"expected\": [[\"x\", \"a\"], [\"z\", \"a\"]], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [[\"x\", \"b\"]], \"expected\": [[\"x\", \"b\"]], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": \"conflict\", \"expected\": \"conflict\", \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [[\"x\", \"a\"]], \"expected\": [[\"x\", \"a\"]], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [[\"x\", \"b\"], [\"y\", \"a\"]], \"expected\": [[\"x\", \"b\"], [\"y\", \"a\"]], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}