{"abstract":"Executable files lose their mode bit.","category":"Packaging","checks":4,"contract":"Return sorted entries with normalized owner/group, fixed timestamp, preserved executable distinction, and file payload. Ignore input owner, group, and timestamp.","evaluation_group":"xt-archive-metadata","failed_approach":"The attempted repair substitutes 493. Fixture 2 still yields [('a', 0, 0, 100, 493, 'a'), ('b', 0, 0, 100, 493, 'b')] instead of [('a', 0, 0, 100, 420, 'a'), ('b', 0, 0, 100, 493, 'b')].","family":"xt-archive-metadata-executable-mode","id":"FA-9971","implementations":{"attempt":{"sha256":"6d082549d09599fb55ff0208a0aa7799c1a06caddba4e02a58649c7d0c4820ec","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(entries, epoch):\n    return [(name, 0, 0, epoch, 493, content) for name, owner, group, timestamp, executable, content in sorted(entries)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve([], 0), [])\ncheck('fixture 2', solve([('b', 5, 6, 123, True, 'b'), ('a', 8, 9, 987, False, 'a')], 100), [('a', 0, 0, 100, 420, 'a'), ('b', 0, 0, 100, 493, 'b')])\ncheck('fixture 3', solve([('a', 0, 0, 0, False, '')], 0), [('a', 0, 0, 0, 420, '')])\ncheck('fixture 4', solve([('a', 1, 2, 3, True, 'payload')], 9), [('a', 0, 0, 9, 493, 'payload')])\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":"d3a6465de469fde2cbb5d35bcf24c92cce8a0010ba17a37c57a83feaf8ddb84c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(entries, epoch):\n    return [(name, 0, 0, epoch, 420, content) for name, owner, group, timestamp, executable, content in sorted(entries)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve([], 0), [])\ncheck('fixture 2', solve([('b', 5, 6, 123, True, 'b'), ('a', 8, 9, 987, False, 'a')], 100), [('a', 0, 0, 100, 420, 'a'), ('b', 0, 0, 100, 493, 'b')])\ncheck('fixture 3', solve([('a', 0, 0, 0, False, '')], 0), [('a', 0, 0, 0, 420, '')])\ncheck('fixture 4', solve([('a', 1, 2, 3, True, 'payload')], 9), [('a', 0, 0, 9, 493, 'payload')])\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":"3b25fd600231cf6364e161b5c05ecd674c1ceb41698bfc2dd943f57bc73e497f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(entries, epoch):\n    return [(name, 0, 0, epoch, 493 if executable else 420, content) for name, owner, group, timestamp, executable, content in sorted(entries)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve([], 0), [])\ncheck('fixture 2', solve([('b', 5, 6, 123, True, 'b'), ('a', 8, 9, 987, False, 'a')], 100), [('a', 0, 0, 100, 420, 'a'), ('b', 0, 0, 100, 493, 'b')])\ncheck('fixture 3', solve([('a', 0, 0, 0, False, '')], 0), [('a', 0, 0, 0, 420, '')])\ncheck('fixture 4', solve([('a', 1, 2, 3, True, 'payload')], 9), [('a', 0, 0, 9, 493, 'payload')])\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-archive-metadata-executable-mode","generated_at":"2026-09-29T14:38:34.772821+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline model of reproducible archive metadata, suitable for testing build and release tooling without external services.","repair":"Preserve executable versus nonexecutable mode using canonical modes.","root_cause":"The implementation substitutes 420 for 493 if executable else 420, so executable files lose their mode bit.","sha256":"87d7cce633b1be23429a9cb95970952bdd4927567c2bc79593c1640cab3f8fe2","title":"Reproducible archive metadata: Executable files lose their mode bit · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":39.275,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":[["a",0,0,100,493,"a"],["b",0,0,100,493,"b"]],"check":"fixture 2","expected":[["a",0,0,100,420,"a"],["b",0,0,100,493,"b"]],"passed":false},{"actual":[["a",0,0,0,493,""]],"check":"fixture 3","expected":[["a",0,0,0,420,""]],"passed":false},{"actual":[["a",0,0,9,493,"payload"]],"check":"fixture 4","expected":[["a",0,0,9,493,"payload"]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [[\"a\", 0, 0, 100, 493, \"a\"], [\"b\", 0, 0, 100, 493, \"b\"]], \"expected\": [[\"a\", 0, 0, 100, 420, \"a\"], [\"b\", 0, 0, 100, 493, \"b\"]], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [[\"a\", 0, 0, 0, 493, \"\"]], \"expected\": [[\"a\", 0, 0, 0, 420, \"\"]], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [[\"a\", 0, 0, 9, 493, \"payload\"]], \"expected\": [[\"a\", 0, 0, 9, 493, \"payload\"]], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.221,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":[["a",0,0,100,420,"a"],["b",0,0,100,420,"b"]],"check":"fixture 2","expected":[["a",0,0,100,420,"a"],["b",0,0,100,493,"b"]],"passed":false},{"actual":[["a",0,0,0,420,""]],"check":"fixture 3","expected":[["a",0,0,0,420,""]],"passed":true},{"actual":[["a",0,0,9,420,"payload"]],"check":"fixture 4","expected":[["a",0,0,9,493,"payload"]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [[\"a\", 0, 0, 100, 420, \"a\"], [\"b\", 0, 0, 100, 420, \"b\"]], \"expected\": [[\"a\", 0, 0, 100, 420, \"a\"], [\"b\", 0, 0, 100, 493, \"b\"]], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [[\"a\", 0, 0, 0, 420, \"\"]], \"expected\": [[\"a\", 0, 0, 0, 420, \"\"]], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [[\"a\", 0, 0, 9, 420, \"payload\"]], \"expected\": [[\"a\", 0, 0, 9, 493, \"payload\"]], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":38.517,"exit_code":0,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":[["a",0,0,100,420,"a"],["b",0,0,100,493,"b"]],"check":"fixture 2","expected":[["a",0,0,100,420,"a"],["b",0,0,100,493,"b"]],"passed":true},{"actual":[["a",0,0,0,420,""]],"check":"fixture 3","expected":[["a",0,0,0,420,""]],"passed":true},{"actual":[["a",0,0,9,493,"payload"]],"check":"fixture 4","expected":[["a",0,0,9,493,"payload"]],"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [[\"a\", 0, 0, 100, 420, \"a\"], [\"b\", 0, 0, 100, 493, \"b\"]], \"expected\": [[\"a\", 0, 0, 100, 420, \"a\"], [\"b\", 0, 0, 100, 493, \"b\"]], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [[\"a\", 0, 0, 0, 420, \"\"]], \"expected\": [[\"a\", 0, 0, 0, 420, \"\"]], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [[\"a\", 0, 0, 9, 493, \"payload\"]], \"expected\": [[\"a\", 0, 0, 9, 493, \"payload\"]], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}