{"abstract":"Forbidden file types enter the distribution.","category":"Packaging","checks":7,"contract":"Report file-count, total-size, per-file-size, prohibited-extension, and missing-required-file violations in that order. Limits are inclusive. Files are name-size pairs.","contract_signature":"files, count_limit, total_limit, file_limit, forbidden, required","evaluation_group":"xt-bundle-budget","failed_approach":"The attempted repair substitutes name.rsplit('.', 1)[-1] not in forbidden. Fixture 2 still yields ['extension'] instead of [].","family":"xt-bundle-budget-forbidden-extension","id":"FA-10021","implementations":{"attempt":{"sha256":"0e6dd1af327b8d8296be4b212ed45870a96698843cf738fd573abf0ea1ccd950","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(files, count_limit, total_limit, file_limit, forbidden, required):\n    errors = []\n    if len(files) > count_limit: errors.append('count')\n    if sum(size for name, size in files) > total_limit: errors.append('total')\n    if any(size > file_limit for name, size in files): errors.append('file')\n    if any(name.rsplit('.', 1)[-1] not in forbidden for name, size in files): errors.append('extension')\n    if not set(required) <= {name for name, size in files}: errors.append('required')\n    return errors\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve([], 0, 0, 0, [], []), [])\ncheck('fixture 2', solve([('a.py', 1)], 1, 1, 1, [], ['a.py']), [])\ncheck('fixture 3', solve([('a.py', 1), ('b.py', 1)], 1, 2, 1, [], []), ['count'])\ncheck('fixture 4', solve([('a.py', 2)], 1, 1, 2, [], []), ['total'])\ncheck('fixture 5', solve([('a.py', 2)], 1, 2, 1, [], []), ['file'])\ncheck('fixture 6', solve([('a.exe', 1)], 1, 1, 1, ['exe'], []), ['extension'])\ncheck('fixture 7', solve([('a.py', 1)], 1, 1, 1, [], ['b.py']), ['required'])\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":"a82609c2b463d1dbb32a90622fac7dfcee158d6d48d5253aea8fdcf02a83a6bb","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(files, count_limit, total_limit, file_limit, forbidden, required):\n    errors = []\n    if len(files) > count_limit: errors.append('count')\n    if sum(size for name, size in files) > total_limit: errors.append('total')\n    if any(size > file_limit for name, size in files): errors.append('file')\n    if any(False for name, size in files): errors.append('extension')\n    if not set(required) <= {name for name, size in files}: errors.append('required')\n    return errors\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fixture 1', solve([], 0, 0, 0, [], []), [])\ncheck('fixture 2', solve([('a.py', 1)], 1, 1, 1, [], ['a.py']), [])\ncheck('fixture 3', solve([('a.py', 1), ('b.py', 1)], 1, 2, 1, [], []), ['count'])\ncheck('fixture 4', solve([('a.py', 2)], 1, 1, 2, [], []), ['total'])\ncheck('fixture 5', solve([('a.py', 2)], 1, 2, 1, [], []), ['file'])\ncheck('fixture 6', solve([('a.exe', 1)], 1, 1, 1, ['exe'], []), ['extension'])\ncheck('fixture 7', solve([('a.py', 1)], 1, 1, 1, [], ['b.py']), ['required'])\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-bundle-budget-forbidden-extension","generated_at":"2026-09-29T14:38:35.221455+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"An offline model of distribution budget enforcement, suitable for testing build and release tooling without external services.","root_cause":"The implementation substitutes False for name.rsplit('.', 1)[-1] in forbidden, so forbidden file types enter the distribution.","sha256":"043be0873485b9685ca4966dfbb2d3752a830a93faaeb46f27ccee0affc7cb85","title":"Distribution budget enforcement: Forbidden file types enter the distribution · 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":37.785,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":["extension"],"check":"fixture 2","expected":[],"passed":false},{"actual":["count","extension"],"check":"fixture 3","expected":["count"],"passed":false},{"actual":["total","extension"],"check":"fixture 4","expected":["total"],"passed":false},{"actual":["file","extension"],"check":"fixture 5","expected":["file"],"passed":false},{"actual":[],"check":"fixture 6","expected":["extension"],"passed":false},{"actual":["extension","required"],"check":"fixture 7","expected":["required"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [\"extension\"], \"expected\": [], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [\"count\", \"extension\"], \"expected\": [\"count\"], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [\"total\", \"extension\"], \"expected\": [\"total\"], \"passed\": false}, {\"check\": \"fixture 5\", \"actual\": [\"file\", \"extension\"], \"expected\": [\"file\"], \"passed\": false}, {\"check\": \"fixture 6\", \"actual\": [], \"expected\": [\"extension\"], \"passed\": false}, {\"check\": \"fixture 7\", \"actual\": [\"extension\", \"required\"], \"expected\": [\"required\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":36.698,"exit_code":1,"observations":[{"actual":[],"check":"fixture 1","expected":[],"passed":true},{"actual":[],"check":"fixture 2","expected":[],"passed":true},{"actual":["count"],"check":"fixture 3","expected":["count"],"passed":true},{"actual":["total"],"check":"fixture 4","expected":["total"],"passed":true},{"actual":["file"],"check":"fixture 5","expected":["file"],"passed":true},{"actual":[],"check":"fixture 6","expected":["extension"],"passed":false},{"actual":["required"],"check":"fixture 7","expected":["required"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 2\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"fixture 3\", \"actual\": [\"count\"], \"expected\": [\"count\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"total\"], \"expected\": [\"total\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [\"file\"], \"expected\": [\"file\"], \"passed\": true}, {\"check\": \"fixture 6\", \"actual\": [], \"expected\": [\"extension\"], \"passed\": false}, {\"check\": \"fixture 7\", \"actual\": [\"required\"], \"expected\": [\"required\"], \"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."}}