FA-9961 / Packaging / Open access
Reproducible archive metadata: Archive group IDs depend on the build host · case 01
Archive group IDs depend on the build host.
ROOT CAUSE
The implementation substitutes name, 0, group, epoch for name, 0, 0, epoch, so archive group IDs depend on the build host.
VERIFIED REPAIR
Normalize archive group IDs.
Unsuccessful approach: The attempted repair substitutes name, 0, group or 0, epoch. Fixture 2 still yields [('a', 0, 9, 100, 420, 'a'), ('b', 0, 6, 100, 493, 'b')] instead of [('a', 0, 0, 100, 420, 'a'), ('b', 0, 0, 100, 493, 'b')].
Case contract
Return sorted entries with normalized owner/group, fixed timestamp, preserved executable distinction, and file payload. Ignore input owner, group, and timestamp.
Why this case matters
An offline model of reproducible archive metadata, suitable for testing build and release tooling without external services.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(entries, epoch):
return [(name, 0, group, epoch, 493 if executable else 420, content) for name, owner, group, timestamp, executable, content in sorted(entries)]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve([], 0), [])
check('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')])
check('fixture 3', solve([('a', 0, 0, 0, False, '')], 0), [('a', 0, 0, 0, 420, '')])
check('fixture 4', solve([('a', 1, 2, 3, True, 'payload')], 9), [('a', 0, 0, 9, 493, 'payload')])
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1 | [] | [] | Passed |
| fixture 2 | [['a', 0, 9, 100, 420, 'a'], ['b', 0, 6, 100, 493, 'b']] | [['a', 0, 0, 100, 420, 'a'], ['b', 0, 0, 100, 493, 'b']] | Failed |
| fixture 3 | [['a', 0, 0, 0, 420, '']] | [['a', 0, 0, 0, 420, '']] | Passed |
| fixture 4 | [['a', 0, 2, 9, 493, 'payload']] | [['a', 0, 0, 9, 493, 'payload']] | Failed |
SHA-256 / adb00f5b1f73cbbed0f4f871ba64fced76c6d0ec768acb2129de79a5e5f71644
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(entries, epoch):
return [(name, 0, group or 0, epoch, 493 if executable else 420, content) for name, owner, group, timestamp, executable, content in sorted(entries)]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve([], 0), [])
check('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')])
check('fixture 3', solve([('a', 0, 0, 0, False, '')], 0), [('a', 0, 0, 0, 420, '')])
check('fixture 4', solve([('a', 1, 2, 3, True, 'payload')], 9), [('a', 0, 0, 9, 493, 'payload')])
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1 | [] | [] | Passed |
| fixture 2 | [['a', 0, 9, 100, 420, 'a'], ['b', 0, 6, 100, 493, 'b']] | [['a', 0, 0, 100, 420, 'a'], ['b', 0, 0, 100, 493, 'b']] | Failed |
| fixture 3 | [['a', 0, 0, 0, 420, '']] | [['a', 0, 0, 0, 420, '']] | Passed |
| fixture 4 | [['a', 0, 2, 9, 493, 'payload']] | [['a', 0, 0, 9, 493, 'payload']] | Failed |
SHA-256 / a85778face768757d0136a754da0283eadd305caebcd5dfe3fbce3e44d2db63d
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(entries, epoch):
return [(name, 0, 0, epoch, 493 if executable else 420, content) for name, owner, group, timestamp, executable, content in sorted(entries)]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve([], 0), [])
check('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')])
check('fixture 3', solve([('a', 0, 0, 0, False, '')], 0), [('a', 0, 0, 0, 420, '')])
check('fixture 4', solve([('a', 1, 2, 3, True, 'payload')], 9), [('a', 0, 0, 9, 493, 'payload')])
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1 | [] | [] | Passed |
| fixture 2 | [['a', 0, 0, 100, 420, 'a'], ['b', 0, 0, 100, 493, 'b']] | [['a', 0, 0, 100, 420, 'a'], ['b', 0, 0, 100, 493, 'b']] | Passed |
| fixture 3 | [['a', 0, 0, 0, 420, '']] | [['a', 0, 0, 0, 420, '']] | Passed |
| fixture 4 | [['a', 0, 0, 9, 493, 'payload']] | [['a', 0, 0, 9, 493, 'payload']] | Passed |
SHA-256 / 3b25fd600231cf6364e161b5c05ecd674c1ceb41698bfc2dd943f57bc73e497f
Verification & scope
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.
Observations recorded using Python 3.12.14 at 2026-09-29T14:38:34.636044+00:00.
Case digest / 0688d54d4613854e7745fc2ca5ee6374f7be62ace469d09e9d34df4f894fd509