{"abstract":"A designated seller clearing delegate cannot confirm, or the presence of any delegate authorizes all signers.","category":"Auction allocation rules","checks":12,"contract":"After an auction allocation, buyer and seller confirmations reserve a specific trade version. A trade is final only when both parties confirm the same proposed version; rejection releases reservations but does not erase executed trades. Match identity differs from party identity. Named decision seller-delegate-authorization: For seller delegate authorization, apply the stipulated decision (x[\"seller_signer\"]==x[\"seller\"] or x[\"seller_signer\"] in x[\"seller_delegates\"]) and x[\"seller_accept\"].","evaluation_group":"s3-auction-bilateral-confirmation","failed_approach":"The attempted repair uses (x[\"seller_signer\"]==x[\"seller\"] or bool(x[\"seller_delegates\"])) and x[\"seller_accept\"]; the explicit regression cases demonstrate that this still violates the stipulated auction rule.","family":"s3-auction-allocation-rules-bilateral-confirmation-seller-delegate-authorization","id":"FA-57216","implementations":{"attempt":{"sha256":"efe2d0fc48d80e9d7c0cdbad3fdbec42557cf0d96cbaaf535a1376fab242a333","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    v0 = x[\"buyer_accept\"] and x[\"seller_accept\"]\n    v1 = x[\"buyer_version\"]==x[\"seller_version\"]==x[\"version\"]\n    v2 = x[\"held\"] if x[\"rejected\"] and not x[\"executed\"] else 0\n    v3 = max(0,x[\"held\"]-x[\"fill\"])\n    v4 = x[\"buyer_signer\"]==x[\"buyer\"] and x[\"buyer_accept\"]\n    v5 = (x[\"seller_signer\"]==x[\"seller\"] or bool(x[\"seller_delegates\"])) and x[\"seller_accept\"]\n    v6 = 0 if x[\"match_id\"]==x[\"last_match\"] else x[\"fill\"]\n    v7 = x[\"reversed\"] and x[\"executed\"]\n    v8 = x[\"held\"] if x[\"timeout\"] and not x[\"executed\"] else 0\n    v9 = [m for m in x[\"matched\"] if m not in x[\"reported\"]]\n    return {'both-party-confirmation':v0,'same-proposal-version':v1,'rejection-release':v2,'partial-fill-reservation':v3,'buyer-confirmation-author':v4,'seller-delegate-authorization':v5,'execution-match-replay':v6,'reversal-execution-guard':v7,'timeout-release-guard':v8,'unreported-match-output':v9}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [('authorized seller agent', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 'agent', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('both current / authorized seller agent', {'version': 2, 'buyer_version': 2, 'seller_version': 2, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 'agent', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('wrong seller signer', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 'b', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [False, False, False, False, False]), ('both current / wrong seller signer', {'version': 2, 'buyer_version': 2, 'seller_version': 2, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 'b', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [False, False, False, False, False]), ('normal contract', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('both current', {'version': 2, 'buyer_version': 2, 'seller_version': 2, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('buyer rejects', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': False, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('seller rejects', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': False, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [False, False, False, False, False]), ('trade rejected', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': True, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('already executed', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': True, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('wrong buyer signer', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 's', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('match replay', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm1', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True])]\ndef vary(value):\n if type(value) is int: return value*N\n if isinstance(value,list): return [vary(v) for v in value]\n 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()}\n return value\nfor label, request, expected in fixtures:\n check(label, solve(vary(request))['seller-delegate-authorization'], expected[N-1])\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":"da531fa96d7a244640d3cda324c92cb13ce15641f21eda327ebb1e3b368ef2f9","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    v0 = x[\"buyer_accept\"] and x[\"seller_accept\"]\n    v1 = x[\"buyer_version\"]==x[\"seller_version\"]==x[\"version\"]\n    v2 = x[\"held\"] if x[\"rejected\"] and not x[\"executed\"] else 0\n    v3 = max(0,x[\"held\"]-x[\"fill\"])\n    v4 = x[\"buyer_signer\"]==x[\"buyer\"] and x[\"buyer_accept\"]\n    v5 = x[\"seller_signer\"]==x[\"seller\"] and x[\"seller_accept\"]\n    v6 = 0 if x[\"match_id\"]==x[\"last_match\"] else x[\"fill\"]\n    v7 = x[\"reversed\"] and x[\"executed\"]\n    v8 = x[\"held\"] if x[\"timeout\"] and not x[\"executed\"] else 0\n    v9 = [m for m in x[\"matched\"] if m not in x[\"reported\"]]\n    return {'both-party-confirmation':v0,'same-proposal-version':v1,'rejection-release':v2,'partial-fill-reservation':v3,'buyer-confirmation-author':v4,'seller-delegate-authorization':v5,'execution-match-replay':v6,'reversal-execution-guard':v7,'timeout-release-guard':v8,'unreported-match-output':v9}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [('authorized seller agent', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 'agent', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('both current / authorized seller agent', {'version': 2, 'buyer_version': 2, 'seller_version': 2, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 'agent', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('wrong seller signer', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 'b', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [False, False, False, False, False]), ('both current / wrong seller signer', {'version': 2, 'buyer_version': 2, 'seller_version': 2, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 'b', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [False, False, False, False, False]), ('normal contract', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('both current', {'version': 2, 'buyer_version': 2, 'seller_version': 2, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('buyer rejects', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': False, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('seller rejects', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': False, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [False, False, False, False, False]), ('trade rejected', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': True, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('already executed', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': True, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('wrong buyer signer', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 's', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('match replay', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm1', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True])]\ndef vary(value):\n if type(value) is int: return value*N\n if isinstance(value,list): return [vary(v) for v in value]\n 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()}\n return value\nfor label, request, expected in fixtures:\n check(label, solve(vary(request))['seller-delegate-authorization'], expected[N-1])\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":"58ec27b0d12fdaa1083f193425ee903a967c676a80dda102d143068b1714c2d5","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    v0 = x[\"buyer_accept\"] and x[\"seller_accept\"]\n    v1 = x[\"buyer_version\"]==x[\"seller_version\"]==x[\"version\"]\n    v2 = x[\"held\"] if x[\"rejected\"] and not x[\"executed\"] else 0\n    v3 = max(0,x[\"held\"]-x[\"fill\"])\n    v4 = x[\"buyer_signer\"]==x[\"buyer\"] and x[\"buyer_accept\"]\n    v5 = (x[\"seller_signer\"]==x[\"seller\"] or x[\"seller_signer\"] in x[\"seller_delegates\"]) and x[\"seller_accept\"]\n    v6 = 0 if x[\"match_id\"]==x[\"last_match\"] else x[\"fill\"]\n    v7 = x[\"reversed\"] and x[\"executed\"]\n    v8 = x[\"held\"] if x[\"timeout\"] and not x[\"executed\"] else 0\n    v9 = [m for m in x[\"matched\"] if m not in x[\"reported\"]]\n    return {'both-party-confirmation':v0,'same-proposal-version':v1,'rejection-release':v2,'partial-fill-reservation':v3,'buyer-confirmation-author':v4,'seller-delegate-authorization':v5,'execution-match-replay':v6,'reversal-execution-guard':v7,'timeout-release-guard':v8,'unreported-match-output':v9}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [('authorized seller agent', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 'agent', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('both current / authorized seller agent', {'version': 2, 'buyer_version': 2, 'seller_version': 2, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 'agent', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('wrong seller signer', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 'b', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [False, False, False, False, False]), ('both current / wrong seller signer', {'version': 2, 'buyer_version': 2, 'seller_version': 2, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 'b', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [False, False, False, False, False]), ('normal contract', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('both current', {'version': 2, 'buyer_version': 2, 'seller_version': 2, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('buyer rejects', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': False, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('seller rejects', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': False, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [False, False, False, False, False]), ('trade rejected', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': True, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('already executed', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': True, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('wrong buyer signer', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 's', 'seller_signer': 's', 'match_id': 'm2', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True]), ('match replay', {'version': 2, 'buyer_version': 2, 'seller_version': 1, 'buyer_accept': True, 'seller_accept': True, 'rejected': False, 'executed': False, 'proposed': 5, 'held': 5, 'fill': 2, 'buyer': 'b', 'seller': 's', 'buyer_signer': 'b', 'seller_signer': 's', 'match_id': 'm1', 'last_match': 'm1', 'reversed': False, 'timeout': False, 'reported': ['m1'], 'matched': ['m1', 'm2'], 'seller_delegates': ['agent']}, [True, True, True, True, True])]\ndef vary(value):\n if type(value) is int: return value*N\n if isinstance(value,list): return [vary(v) for v in value]\n 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()}\n return value\nfor label, request, expected in fixtures:\n check(label, solve(vary(request))['seller-delegate-authorization'], expected[N-1])\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":"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.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"s3-auction-allocation-rules-bilateral-confirmation-seller-delegate-authorization","generated_at":"2026-09-29T14:46:14.603981+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Offline administrative auction model for software failure analysis.","repair":"For seller delegate authorization, apply the stipulated decision (x[\"seller_signer\"]==x[\"seller\"] or x[\"seller_signer\"] in x[\"seller_delegates\"]) and x[\"seller_accept\"].","root_cause":"A designated seller clearing delegate cannot confirm, or the presence of any delegate authorizes all signers.","sha256":"0eaccbd189b861b1f8df0134df732435f589b0058c609ecb8c2604341299ce89","title":"Bilateral confirmation: seller delegate authorization · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":44.513,"exit_code":1,"observations":[{"actual":true,"check":"authorized seller agent","expected":true,"passed":true},{"actual":true,"check":"both current / authorized seller agent","expected":true,"passed":true},{"actual":true,"check":"wrong seller signer","expected":false,"passed":false},{"actual":true,"check":"both current / wrong seller signer","expected":false,"passed":false},{"actual":true,"check":"normal contract","expected":true,"passed":true},{"actual":true,"check":"both current","expected":true,"passed":true},{"actual":true,"check":"buyer rejects","expected":true,"passed":true},{"actual":false,"check":"seller rejects","expected":false,"passed":true},{"actual":true,"check":"trade rejected","expected":true,"passed":true},{"actual":true,"check":"already executed","expected":true,"passed":true},{"actual":true,"check":"wrong buyer signer","expected":true,"passed":true},{"actual":true,"check":"match replay","expected":true,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"authorized seller agent\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"both current / authorized seller agent\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"wrong seller signer\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"both current / wrong seller signer\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"normal contract\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"both current\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"buyer rejects\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"seller rejects\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"trade rejected\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"already executed\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"wrong buyer signer\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"match replay\", \"actual\": true, \"expected\": true, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":42.759,"exit_code":1,"observations":[{"actual":false,"check":"authorized seller agent","expected":true,"passed":false},{"actual":false,"check":"both current / authorized seller agent","expected":true,"passed":false},{"actual":false,"check":"wrong seller signer","expected":false,"passed":true},{"actual":false,"check":"both current / wrong seller signer","expected":false,"passed":true},{"actual":true,"check":"normal contract","expected":true,"passed":true},{"actual":true,"check":"both current","expected":true,"passed":true},{"actual":true,"check":"buyer rejects","expected":true,"passed":true},{"actual":false,"check":"seller rejects","expected":false,"passed":true},{"actual":true,"check":"trade rejected","expected":true,"passed":true},{"actual":true,"check":"already executed","expected":true,"passed":true},{"actual":true,"check":"wrong buyer signer","expected":true,"passed":true},{"actual":true,"check":"match replay","expected":true,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"authorized seller agent\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"both current / authorized seller agent\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"wrong seller signer\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"both current / wrong seller signer\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"normal contract\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"both current\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"buyer rejects\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"seller rejects\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"trade rejected\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"already executed\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"wrong buyer signer\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"match replay\", \"actual\": true, \"expected\": true, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":46.705,"exit_code":0,"observations":[{"actual":true,"check":"authorized seller agent","expected":true,"passed":true},{"actual":true,"check":"both current / authorized seller agent","expected":true,"passed":true},{"actual":false,"check":"wrong seller signer","expected":false,"passed":true},{"actual":false,"check":"both current / wrong seller signer","expected":false,"passed":true},{"actual":true,"check":"normal contract","expected":true,"passed":true},{"actual":true,"check":"both current","expected":true,"passed":true},{"actual":true,"check":"buyer rejects","expected":true,"passed":true},{"actual":false,"check":"seller rejects","expected":false,"passed":true},{"actual":true,"check":"trade rejected","expected":true,"passed":true},{"actual":true,"check":"already executed","expected":true,"passed":true},{"actual":true,"check":"wrong buyer signer","expected":true,"passed":true},{"actual":true,"check":"match replay","expected":true,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"authorized seller agent\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"both current / authorized seller agent\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"wrong seller signer\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"both current / wrong seller signer\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"normal contract\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"both current\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"buyer rejects\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"seller rejects\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"trade rejected\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"already executed\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"wrong buyer signer\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"match replay\", \"actual\": true, \"expected\": true, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}