{"abstract":"Total distribution bytes are not checked.","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 sum(size for name, size in files) >= total_limit. Fixture 1 still yields ['total'] instead of [].","family":"xt-bundle-budget-total-size","id":"FA-10011","implementations":{"attempt":{"sha256":"5690e9fbbaa58eae484e46a956fc8b554bb83abd70ca20a4eb9034571b97f80e","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":"e22465e19f86df7a4fa6d8f4c1f2ee3d39d7e04509800e101ab3cd3ec74b92fa","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 False: 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-total-size","generated_at":"2026-09-29T14:38:35.093301+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":"Compare aggregate size against the inclusive total budget.","root_cause":"The implementation substitutes False for sum(size for name, size in files) > total_limit, so total distribution bytes are not checked.","sha256":"b59e0d2b5aab3b075e2b471daf1af0f660442c229245328c2379d77fd21c6f8e","title":"Distribution budget enforcement: Total distribution bytes are not checked · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":38.952,"exit_code":1,"observations":[{"actual":["total"],"check":"fixture 1","expected":[],"passed":false},{"actual":["total"],"check":"fixture 2","expected":[],"passed":false},{"actual":["count","total"],"check":"fixture 3","expected":["count"],"passed":false},{"actual":["total"],"check":"fixture 4","expected":["total"],"passed":true},{"actual":["total","file"],"check":"fixture 5","expected":["file"],"passed":false},{"actual":["total","extension"],"check":"fixture 6","expected":["extension"],"passed":false},{"actual":["total","required"],"check":"fixture 7","expected":["required"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fixture 1\", \"actual\": [\"total\"], \"expected\": [], \"passed\": false}, {\"check\": \"fixture 2\", \"actual\": [\"total\"], \"expected\": [], \"passed\": false}, {\"check\": \"fixture 3\", \"actual\": [\"count\", \"total\"], \"expected\": [\"count\"], \"passed\": false}, {\"check\": \"fixture 4\", \"actual\": [\"total\"], \"expected\": [\"total\"], \"passed\": true}, {\"check\": \"fixture 5\", \"actual\": [\"total\", \"file\"], \"expected\": [\"file\"], \"passed\": false}, {\"check\": \"fixture 6\", \"actual\": [\"total\", \"extension\"], \"expected\": [\"extension\"], \"passed\": false}, {\"check\": \"fixture 7\", \"actual\": [\"total\", \"required\"], \"expected\": [\"required\"], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.759,"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":[],"check":"fixture 4","expected":["total"],"passed":false},{"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":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\": [], \"expected\": [\"total\"], \"passed\": false}, {\"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\": false}\n"},"fixed":{"elapsed_ms":40.384,"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"}