{"abstract":"Excluded files enter distributions.","category":"Packaging","checks":6,"contract":"Include declared files, exclude forbidden files, retain force-included files despite ordinary exclusions, never include missing files, and sort unique names. Force cannot override forbidden.","evaluation_group":"xt-package-manifest","failed_approach":"The attempted repair substitutes set(declared) | set(excluded). Fixture 2 still yields ['a', 'b'] instead of ['a'].","family":"xt-package-manifest-ordinary-exclusion","id":"FA-9856","implementations":{"attempt":{"sha256":"e34d4f73cf4a7f64bd246f17e77aa3db3a88761b8445a3e3f0e51c612918d868","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(available, declared, excluded, forced, forbidden):\n    names = (set(declared) | set(excluded)) | set(forced)\n    names &= set(available)\n    names -= set(forbidden)\n    return sorted(names)\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', 'b'], ['a', 'b'], ['b'], [], []), ['a'])\ncheck('fixture 3', solve(['a', 'b'], ['a'], ['b'], ['b'], []), ['a', 'b'])\ncheck('fixture 4', solve(['a'], ['a', 'missing'], [], [], []), ['a'])\ncheck('fixture 5', solve(['a', 'b'], ['a', 'b'], [], ['b'], ['b']), ['a'])\ncheck('fixture 6', solve(['z', 'a'], ['z', 'a', 'z'], [], [], []), ['a', 'z'])\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":"2a9730e96e4e0d35fc7bd4c54adc7165429c51d4160c4674304b3945d3433c59","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(available, declared, excluded, forced, forbidden):\n    names = (set(declared)) | set(forced)\n    names &= set(available)\n    names -= set(forbidden)\n    return sorted(names)\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', 'b'], ['a', 'b'], ['b'], [], []), ['a'])\ncheck('fixture 3', solve(['a', 'b'], ['a'], ['b'], ['b'], []), ['a', 'b'])\ncheck('fixture 4', solve(['a'], ['a', 'missing'], [], [], []), ['a'])\ncheck('fixture 5', solve(['a', 'b'], ['a', 'b'], [], ['b'], ['b']), ['a'])\ncheck('fixture 6', solve(['z', 'a'], ['z', 'a', 'z'], [], [], []), ['a', 'z'])\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":"a2e0ca92cbfa58fa99bfadde4276acfcfb0cc962c491df3311219a945bffcdfc","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(available, declared, excluded, forced, forbidden):\n    names = (set(declared) - set(excluded)) | set(forced)\n    names &= set(available)\n    names -= set(forbidden)\n    return sorted(names)\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', 'b'], ['a', 'b'], ['b'], [], []), ['a'])\ncheck('fixture 3', solve(['a', 'b'], ['a'], ['b'], ['b'], []), ['a', 'b'])\ncheck('fixture 4', solve(['a'], ['a', 'missing'], [], [], []), ['a'])\ncheck('fixture 5', solve(['a', 'b'], ['a', 'b'], [], ['b'], ['b']), ['a'])\ncheck('fixture 6', solve(['z', 'a'], ['z', 'a', 'z'], [], [], []), ['a', 'z'])\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-package-manifest-ordinary-exclusion","generated_at":"2026-09-29T14:38:33.627532+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline model of package file manifest selection, suitable for testing build and release tooling without external services.","repair":"Subtract ordinary exclusions from declared files.","root_cause":"The implementation substitutes set(declared) for set(declared) - set(excluded), so excluded files enter distributions.","sha256":"a12cbc4ade15fd43f7febd2df6a2876e0d026e75cd79b1f6f7404acd4635c938","title":"Package file manifest selection: Excluded files enter distributions · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":38.596,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["a","b"],"check":"fixture 2","expected":["a"],"passed":false},{"actual":["a","b"],"check":"fixture 3","expected":["a","b"],"passed":true},{"actual":["a"],"check":"fixture 4","expected":["a"],"passed":true},{"actual":["a"],"check":"fixture 5","expected":["a"],"passed":true},{"actual":["a","z"],"check":"fixture 6","expected":["a","z"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [\"a\", \"z\"], \"expected\": [\"a\", \"z\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":37.37,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["a","b"],"check":"fixture 2","expected":["a"],"passed":false},{"actual":["a","b"],"check":"fixture 3","expected":["a","b"],"passed":true},{"actual":["a"],"check":"fixture 4","expected":["a"],"passed":true},{"actual":["a"],"check":"fixture 5","expected":["a"],"passed":true},{"actual":["a","z"],"check":"fixture 6","expected":["a","z"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [\"a\", \"z\"], \"expected\": [\"a\", \"z\"], \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":36.891,"exit_code":0,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["a"],"check":"fixture 2","expected":["a"],"passed":true},{"actual":["a","b"],"check":"fixture 3","expected":["a","b"],"passed":true},{"actual":["a"],"check":"fixture 4","expected":["a"],"passed":true},{"actual":["a"],"check":"fixture 5","expected":["a"],"passed":true},{"actual":["a","z"],"check":"fixture 6","expected":["a","z"],"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\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [\"a\", \"z\"], \"expected\": [\"a\", \"z\"], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}