{"abstract":"A bundle exactly at its count limit is rejected.","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.","evaluation_group":"xt-bundle-budget","failed_approach":"The attempted repair substitutes len(files) == count_limit. Fixture 1 still yields ['count'] instead of [].","family":"xt-bundle-budget-file-count","id":"FA-10006","implementations":{"attempt":{"sha256":"9fd1be08ecf6b976282543db690da4d35f76e522e902ad424e30e7de6d61b70f","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] 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":"63d5ebf751baa0f62d96b17345a3c6f6e307e772e9b6097d9ba6b31da69ee0da","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] 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"},"fixed":{"sha256":"6b28e3754b0b6fa913b87e9359b980ba1a4e78cf7f0b761c51e95011d0b2d281","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] 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"}},"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-file-count","generated_at":"2026-09-29T14:38:35.025953+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.","repair":"Reject only counts greater than the inclusive limit.","root_cause":"The implementation substitutes len(files) >= count_limit for len(files) > count_limit, so a bundle exactly at its count limit is rejected.","sha256":"af9bbf817042757df86890b71c825434c75f260ce616a0570f287a67965a959e","title":"Distribution budget enforcement: A bundle exactly at its count limit is rejected · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":40.932,"exit_code":1,"observations":[{"actual":["count"],"check":"fixture 1","expected":[],"passed":false},{"actual":["count"],"check":"fixture 2","expected":[],"passed":false},{"actual":[],"check":"fixture 3","expected":["count"],"passed":false},{"actual":["count","total"],"check":"fixture 4","expected":["total"],"passed":false},{"actual":["count","file"],"check":"fixture 5","expected":["file"],"passed":false},{"actual":["count","extension"],"check":"fixture 6","expected":["extension"],"passed":false},{"actual":["count","required"],"check":"fixture 7","expected":["required"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [\"count\"], \"expected\": [], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [\"count\"], \"expected\": [], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [], \"expected\": [\"count\"], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [\"count\", \"total\"], \"expected\": [\"total\"], \"passed\": false}, {\"check\": \"fixture 5\", \"actual\": [\"count\", \"file\"], \"expected\": [\"file\"], \"passed\": false}, {\"check\": \"fixture 6\", \"actual\": [\"count\", \"extension\"], \"expected\": [\"extension\"], \"passed\": false}, {\"check\": \"fixture 7\", \"actual\": [\"count\", \"required\"], \"expected\": [\"required\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.924,"exit_code":1,"observations":[{"actual":["count"],"check":"fixture 1","expected":[],"passed":false},{"actual":["count"],"check":"fixture 2","expected":[],"passed":false},{"actual":["count"],"check":"fixture 3","expected":["count"],"passed":true},{"actual":["count","total"],"check":"fixture 4","expected":["total"],"passed":false},{"actual":["count","file"],"check":"fixture 5","expected":["file"],"passed":false},{"actual":["count","extension"],"check":"fixture 6","expected":["extension"],"passed":false},{"actual":["count","required"],"check":"fixture 7","expected":["required"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [\"count\"], \"expected\": [], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [\"count\"], \"expected\": [], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [\"count\"], \"expected\": [\"count\"], \"passed\": true}, {\"check\": \"fixture 4\", \"actual\": [\"count\", \"total\"], \"expected\": [\"total\"], \"passed\": false}, {\"check\": \"fixture 5\", \"actual\": [\"count\", \"file\"], \"expected\": [\"file\"], \"passed\": false}, {\"check\": \"fixture 6\", \"actual\": [\"count\", \"extension\"], \"expected\": [\"extension\"], \"passed\": false}, {\"check\": \"fixture 7\", \"actual\": [\"count\", \"required\"], \"expected\": [\"required\"], \"passed\": false}], \"passed\": false}\n"},"fixed":{"elapsed_ms":38.998,"exit_code":0,"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":["extension"],"check":"fixture 6","expected":["extension"],"passed":true},{"actual":["required"],"check":"fixture 7","expected":["required"],"passed":true}],"passed":true,"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\": [\"extension\"], \"expected\": [\"extension\"], \"passed\": true}, {\"check\": \"fixture 7\", \"actual\": [\"required\"], \"expected\": [\"required\"], \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}