FA-57306 / Auction allocation rules / Open access
Bid disclosure: alias result view · case 01
Result views expose identity or lose the stable pseudonym needed to follow awards.
ROOT CAUSE
Result views expose identity or lose the stable pseudonym needed to follow awards.
VERIFIED REPAIR
For alias result view, apply the stipulated decision [[x["aliases"].get(r[0],"anonymous"),r[1]] for r in x["records"]].
Unsuccessful approach: The attempted repair uses [["anonymous",r[1]] for r in x["records"]]; the explicit regression cases demonstrate that this still violates the stipulated auction rule.
Case contract
Toy auction disclosure views distinguish bidder self-view, public preclose statistics, anonymized postclose results, and auditor-only linkage. List records have fields [bidder, quantity, value]; suppression thresholds count distinct bidders, not submitted records. Named decision alias-result-view: For alias result view, apply the stipulated decision [[x["aliases"].get(r[0],"anonymous"),r[1]] for r in x["records"]].
Why this case matters
Offline administrative auction model for software failure analysis.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(x):
v0 = [r for r in x["records"] if r[0]==x["viewer"]]
v1 = [r[2] for r in x["records"]] if x["closed"] else []
v2 = len({r[0] for r in x["records"]})>=x["threshold"]
v3 = [[r[0],r[1]] for r in x["records"]]
v4 = x["aliases"] if x["auditor"] else {}
v5 = [r[0] for r in x["records"] if r[0] in x["consenting"] and r[0] not in x["revoked"]]
v6 = sum(r[1] for r in x["records"] if r[0] not in x["withdrawn"])
v7 = [{k:r[i] for k,i in (("quantity",1),("value",2)) if k in x["published_fields"]} for r in x["records"]]
v8 = x["winner"] if x["closed"] and not x["embargo"] else None
v9 = x["records"] if x["appeal_open"] or x["auditor"] else []
return {'self-view-scope':v0,'preclose-value-embargo':v1,'distinct-bidder-suppression':v2,'alias-result-view':v3,'auditor-linkage':v4,'consent-qualified-disclosure':v5,'withdrawn-demand-statistic':v6,'field-projection':v7,'embargo-final-result':v8,'appeal-audit-retention':v9}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [('normal contract', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('closed', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': True, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('auditor view', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': True, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('outsider view', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'z', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('threshold met', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 2, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('all consent', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a', 'b'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('embargo active', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': True, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('no appeal', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': False, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('all revoked', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a', 'b']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]])]
def vary(value):
if type(value) is int: return value*N
if isinstance(value,list): return [vary(v) for v in value]
if isinstance(value,dict): return {k:(v if k in ['count', 'delivery_index', 'disputed', 'maximum_set', 'minimum_set', 'stage', 'threshold', 'waived'] else vary(v)) for k,v in value.items()}
return value
for label, request, expected in fixtures:
check(label, solve(vary(request))['alias-result-view'], expected[N-1])
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 |
|---|---|---|---|
| normal contract | [['a', 2], ['b', 3], ['a', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| closed | [['a', 2], ['b', 3], ['a', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| auditor view | [['a', 2], ['b', 3], ['a', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| outsider view | [['a', 2], ['b', 3], ['a', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| threshold met | [['a', 2], ['b', 3], ['a', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| all consent | [['a', 2], ['b', 3], ['a', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| embargo active | [['a', 2], ['b', 3], ['a', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| no appeal | [['a', 2], ['b', 3], ['a', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| all revoked | [['a', 2], ['b', 3], ['a', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
SHA-256 / a8b8e27797e2e9fdee81677d214d57575353995be6ae31269270f302d50ec702
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(x):
v0 = [r for r in x["records"] if r[0]==x["viewer"]]
v1 = [r[2] for r in x["records"]] if x["closed"] else []
v2 = len({r[0] for r in x["records"]})>=x["threshold"]
v3 = [["anonymous",r[1]] for r in x["records"]]
v4 = x["aliases"] if x["auditor"] else {}
v5 = [r[0] for r in x["records"] if r[0] in x["consenting"] and r[0] not in x["revoked"]]
v6 = sum(r[1] for r in x["records"] if r[0] not in x["withdrawn"])
v7 = [{k:r[i] for k,i in (("quantity",1),("value",2)) if k in x["published_fields"]} for r in x["records"]]
v8 = x["winner"] if x["closed"] and not x["embargo"] else None
v9 = x["records"] if x["appeal_open"] or x["auditor"] else []
return {'self-view-scope':v0,'preclose-value-embargo':v1,'distinct-bidder-suppression':v2,'alias-result-view':v3,'auditor-linkage':v4,'consent-qualified-disclosure':v5,'withdrawn-demand-statistic':v6,'field-projection':v7,'embargo-final-result':v8,'appeal-audit-retention':v9}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [('normal contract', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('closed', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': True, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('auditor view', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': True, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('outsider view', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'z', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('threshold met', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 2, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('all consent', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a', 'b'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('embargo active', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': True, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('no appeal', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': False, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('all revoked', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a', 'b']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]])]
def vary(value):
if type(value) is int: return value*N
if isinstance(value,list): return [vary(v) for v in value]
if isinstance(value,dict): return {k:(v if k in ['count', 'delivery_index', 'disputed', 'maximum_set', 'minimum_set', 'stage', 'threshold', 'waived'] else vary(v)) for k,v in value.items()}
return value
for label, request, expected in fixtures:
check(label, solve(vary(request))['alias-result-view'], expected[N-1])
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 |
|---|---|---|---|
| normal contract | [['anonymous', 2], ['anonymous', 3], ['anonymous', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| closed | [['anonymous', 2], ['anonymous', 3], ['anonymous', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| auditor view | [['anonymous', 2], ['anonymous', 3], ['anonymous', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| outsider view | [['anonymous', 2], ['anonymous', 3], ['anonymous', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| threshold met | [['anonymous', 2], ['anonymous', 3], ['anonymous', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| all consent | [['anonymous', 2], ['anonymous', 3], ['anonymous', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| embargo active | [['anonymous', 2], ['anonymous', 3], ['anonymous', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| no appeal | [['anonymous', 2], ['anonymous', 3], ['anonymous', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
| all revoked | [['anonymous', 2], ['anonymous', 3], ['anonymous', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Failed |
SHA-256 / ff99e0f9427562a4e005e3252a78acfe9e8aeb9dc3319f3775c5d849114d11f1
3 / The verified repair
Exit 0"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(x):
v0 = [r for r in x["records"] if r[0]==x["viewer"]]
v1 = [r[2] for r in x["records"]] if x["closed"] else []
v2 = len({r[0] for r in x["records"]})>=x["threshold"]
v3 = [[x["aliases"].get(r[0],"anonymous"),r[1]] for r in x["records"]]
v4 = x["aliases"] if x["auditor"] else {}
v5 = [r[0] for r in x["records"] if r[0] in x["consenting"] and r[0] not in x["revoked"]]
v6 = sum(r[1] for r in x["records"] if r[0] not in x["withdrawn"])
v7 = [{k:r[i] for k,i in (("quantity",1),("value",2)) if k in x["published_fields"]} for r in x["records"]]
v8 = x["winner"] if x["closed"] and not x["embargo"] else None
v9 = x["records"] if x["appeal_open"] or x["auditor"] else []
return {'self-view-scope':v0,'preclose-value-embargo':v1,'distinct-bidder-suppression':v2,'alias-result-view':v3,'auditor-linkage':v4,'consent-qualified-disclosure':v5,'withdrawn-demand-statistic':v6,'field-projection':v7,'embargo-final-result':v8,'appeal-audit-retention':v9}
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [('normal contract', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('closed', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': True, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('auditor view', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': True, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('outsider view', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'z', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('threshold met', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 2, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('all consent', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a', 'b'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('embargo active', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': True, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('no appeal', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': False, 'winner': 'b', 'revoked': ['a']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]]), ('all revoked', {'records': [['a', 2, 7], ['b', 3, 9], ['a', 1, 6]], 'viewer': 'a', 'closed': False, 'auditor': False, 'consenting': ['a'], 'threshold': 3, 'aliases': {'a': 'X', 'b': 'Y'}, 'withdrawn': ['b'], 'embargo': False, 'published_fields': ['quantity'], 'appeal_open': True, 'winner': 'b', 'revoked': ['a', 'b']}, [[['X', 2], ['Y', 3], ['X', 1]], [['X', 4], ['Y', 6], ['X', 2]], [['X', 6], ['Y', 9], ['X', 3]], [['X', 8], ['Y', 12], ['X', 4]], [['X', 10], ['Y', 15], ['X', 5]]])]
def vary(value):
if type(value) is int: return value*N
if isinstance(value,list): return [vary(v) for v in value]
if isinstance(value,dict): return {k:(v if k in ['count', 'delivery_index', 'disputed', 'maximum_set', 'minimum_set', 'stage', 'threshold', 'waived'] else vary(v)) for k,v in value.items()}
return value
for label, request, expected in fixtures:
check(label, solve(vary(request))['alias-result-view'], expected[N-1])
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 |
|---|---|---|---|
| normal contract | [['X', 2], ['Y', 3], ['X', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Passed |
| closed | [['X', 2], ['Y', 3], ['X', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Passed |
| auditor view | [['X', 2], ['Y', 3], ['X', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Passed |
| outsider view | [['X', 2], ['Y', 3], ['X', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Passed |
| threshold met | [['X', 2], ['Y', 3], ['X', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Passed |
| all consent | [['X', 2], ['Y', 3], ['X', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Passed |
| embargo active | [['X', 2], ['Y', 3], ['X', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Passed |
| no appeal | [['X', 2], ['Y', 3], ['X', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Passed |
| all revoked | [['X', 2], ['Y', 3], ['X', 1]] | [['X', 2], ['Y', 3], ['X', 1]] | Passed |
SHA-256 / 0d6c1c90b878a538a80a8176bbd44698255c6abe38981790dc460c6b4d7490c3
Verification & scope
Stipulated toy auction rules, not a venue specification, financial advice, optimization claim, or live trading implementation. Nonnegative integer inputs and internally aligned list fields only. 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:46:15.526676+00:00.
Case digest / 96bba2f98e8d467ec77dea993d1ff1bc596b8e57939cd293943bb1ef5757e6bc