{"abstract":"A freeze patch permits repricing merely because quantity decreases.","category":"Auction allocation rules","checks":13,"contract":"A single auction order amendment tracks filled units, original queue stamp and an incoming replacement. Price change or size increase loses queue priority; reducing total size cannot erase existing fills. A cancel acknowledgment terminates remaining quantity. Integer stamps and quantities are nonnegative. Named decision freeze-restriction: During freeze permit only nonincreasing quantity at the old price.","evaluation_group":"s3-auction-amendment-priority","failed_approach":"The attempted repair uses not x[\"frozen\"] or x[\"new_total\"]<=x[\"total\"]; the explicit regression cases demonstrate that this still violates the stipulated auction rule.","family":"s3-auction-allocation-rules-amendment-priority-freeze-restriction","id":"FA-56431","implementations":{"attempt":{"sha256":"1124a004d36c48247dc1348d3f042ddf8a18b890d257ddde139ec34e3d119104","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    v0 = x[\"now\"] if x[\"new_total\"]>x[\"total\"] else x[\"stamp\"]\n    v1 = x[\"now\"] if x[\"new_price\"]!=x[\"old_price\"] else x[\"stamp\"]\n    v2 = max(x[\"filled\"],x[\"new_total\"])\n    v3 = max(0,x[\"new_total\"]-x[\"filled\"])\n    v4 = 0 if x[\"cancel\"] and x[\"ack\"] else max(0,x[\"total\"]-x[\"filled\"])\n    v5 = x[\"expected\"]==x[\"revision\"]\n    v6 = x[\"old_lot\"]==x[\"new_lot\"]\n    v7 = x[\"old_owner\"]==x[\"new_owner\"]\n    v8 = not x[\"frozen\"] or x[\"new_total\"]<=x[\"total\"]\n    v9 = x[\"revision\"] if x[\"request_id\"]==x[\"last_id\"] else x[\"revision\"]+1\n    return {'increase-priority':v0,'price-priority':v1,'filled-floor':v2,'remaining-recalculation':v3,'cancel-ack-gate':v4,'revision-compare':v5,'lot-immutability':v6,'owner-immutability':v7,'freeze-restriction':v8,'request-replay':v9}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [('auction freeze', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': True, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('unrelated acknowledgment / auction freeze', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': True, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': True, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('lower price / auction freeze', {'old_price': 10, 'new_price': 8, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': True, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [False, False, False, False, False]), ('price replacement / auction freeze', {'old_price': 10, 'new_price': 12, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': True, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [False, False, False, False, False]), ('normal contract', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('lower price', {'old_price': 10, 'new_price': 8, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('unrelated acknowledgment', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': True, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('future revision', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 3, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('no collateral held', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 0, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('price replacement', {'old_price': 10, 'new_price': 12, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('size increase', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 12, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('below executed size', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 2, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('acknowledged cancel', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': True, 'ack': True, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [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))['freeze-restriction'], 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":"def31e02e3c028a014dd05207250e51f31d2a2f1e8c91a65f2ba93e4c6aeade7","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    v0 = x[\"now\"] if x[\"new_total\"]>x[\"total\"] else x[\"stamp\"]\n    v1 = x[\"now\"] if x[\"new_price\"]!=x[\"old_price\"] else x[\"stamp\"]\n    v2 = max(x[\"filled\"],x[\"new_total\"])\n    v3 = max(0,x[\"new_total\"]-x[\"filled\"])\n    v4 = 0 if x[\"cancel\"] and x[\"ack\"] else max(0,x[\"total\"]-x[\"filled\"])\n    v5 = x[\"expected\"]==x[\"revision\"]\n    v6 = x[\"old_lot\"]==x[\"new_lot\"]\n    v7 = x[\"old_owner\"]==x[\"new_owner\"]\n    v8 = not x[\"frozen\"]\n    v9 = x[\"revision\"] if x[\"request_id\"]==x[\"last_id\"] else x[\"revision\"]+1\n    return {'increase-priority':v0,'price-priority':v1,'filled-floor':v2,'remaining-recalculation':v3,'cancel-ack-gate':v4,'revision-compare':v5,'lot-immutability':v6,'owner-immutability':v7,'freeze-restriction':v8,'request-replay':v9}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [('auction freeze', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': True, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('unrelated acknowledgment / auction freeze', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': True, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': True, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('lower price / auction freeze', {'old_price': 10, 'new_price': 8, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': True, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [False, False, False, False, False]), ('price replacement / auction freeze', {'old_price': 10, 'new_price': 12, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': True, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [False, False, False, False, False]), ('normal contract', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('lower price', {'old_price': 10, 'new_price': 8, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('unrelated acknowledgment', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': True, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('future revision', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 3, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('no collateral held', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 0, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('price replacement', {'old_price': 10, 'new_price': 12, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('size increase', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 12, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('below executed size', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 2, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('acknowledged cancel', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': True, 'ack': True, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [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))['freeze-restriction'], 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":"956988ff72b8b9f222c39ec8de695a5247e8f621c9893f2b1cf5546d70690a75","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    v0 = x[\"now\"] if x[\"new_total\"]>x[\"total\"] else x[\"stamp\"]\n    v1 = x[\"now\"] if x[\"new_price\"]!=x[\"old_price\"] else x[\"stamp\"]\n    v2 = max(x[\"filled\"],x[\"new_total\"])\n    v3 = max(0,x[\"new_total\"]-x[\"filled\"])\n    v4 = 0 if x[\"cancel\"] and x[\"ack\"] else max(0,x[\"total\"]-x[\"filled\"])\n    v5 = x[\"expected\"]==x[\"revision\"]\n    v6 = x[\"old_lot\"]==x[\"new_lot\"]\n    v7 = x[\"old_owner\"]==x[\"new_owner\"]\n    v8 = not x[\"frozen\"] or (x[\"new_price\"]==x[\"old_price\"] and x[\"new_total\"]<=x[\"total\"])\n    v9 = x[\"revision\"] if x[\"request_id\"]==x[\"last_id\"] else x[\"revision\"]+1\n    return {'increase-priority':v0,'price-priority':v1,'filled-floor':v2,'remaining-recalculation':v3,'cancel-ack-gate':v4,'revision-compare':v5,'lot-immutability':v6,'owner-immutability':v7,'freeze-restriction':v8,'request-replay':v9}\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [('auction freeze', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': True, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('unrelated acknowledgment / auction freeze', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': True, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': True, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('lower price / auction freeze', {'old_price': 10, 'new_price': 8, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': True, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [False, False, False, False, False]), ('price replacement / auction freeze', {'old_price': 10, 'new_price': 12, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': True, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [False, False, False, False, False]), ('normal contract', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('lower price', {'old_price': 10, 'new_price': 8, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('unrelated acknowledgment', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': True, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('future revision', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 3, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('no collateral held', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 0, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('price replacement', {'old_price': 10, 'new_price': 12, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('size increase', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 12, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('below executed size', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 2, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': False, 'ack': False, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [True, True, True, True, True]), ('acknowledged cancel', {'old_price': 10, 'new_price': 10, 'total': 8, 'new_total': 6, 'filled': 3, 'stamp': 1, 'now': 8, 'cancel': True, 'ack': True, 'revision': 2, 'expected': 2, 'old_lot': 'A', 'new_lot': 'A', 'old_owner': 'a', 'new_owner': 'a', 'frozen': False, 'held': 8, 'request_id': 'r2', 'last_id': 'r1'}, [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))['freeze-restriction'], 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-amendment-priority-freeze-restriction","generated_at":"2026-09-29T14:46:06.999094+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":"During freeze permit only nonincreasing quantity at the old price.","root_cause":"A freeze patch permits repricing merely because quantity decreases.","sha256":"60409f0c31b3b30803b908f4e27bb839abee57468c695acd6fc5224ac394625f","title":"Amendment priority: freeze restriction · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":41.392,"exit_code":1,"observations":[{"actual":true,"check":"auction freeze","expected":true,"passed":true},{"actual":true,"check":"unrelated acknowledgment / auction freeze","expected":true,"passed":true},{"actual":true,"check":"lower price / auction freeze","expected":false,"passed":false},{"actual":true,"check":"price replacement / auction freeze","expected":false,"passed":false},{"actual":true,"check":"normal contract","expected":true,"passed":true},{"actual":true,"check":"lower price","expected":true,"passed":true},{"actual":true,"check":"unrelated acknowledgment","expected":true,"passed":true},{"actual":true,"check":"future revision","expected":true,"passed":true},{"actual":true,"check":"no collateral held","expected":true,"passed":true},{"actual":true,"check":"price replacement","expected":true,"passed":true},{"actual":true,"check":"size increase","expected":true,"passed":true},{"actual":true,"check":"below executed size","expected":true,"passed":true},{"actual":true,"check":"acknowledged cancel","expected":true,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"auction freeze\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"unrelated acknowledgment / auction freeze\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"lower price / auction freeze\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"price replacement / auction freeze\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"normal contract\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"lower price\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"unrelated acknowledgment\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"future revision\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"no collateral held\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"price replacement\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"size increase\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"below executed size\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"acknowledged cancel\", \"actual\": true, \"expected\": true, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":41.153,"exit_code":1,"observations":[{"actual":false,"check":"auction freeze","expected":true,"passed":false},{"actual":false,"check":"unrelated acknowledgment / auction freeze","expected":true,"passed":false},{"actual":false,"check":"lower price / auction freeze","expected":false,"passed":true},{"actual":false,"check":"price replacement / auction freeze","expected":false,"passed":true},{"actual":true,"check":"normal contract","expected":true,"passed":true},{"actual":true,"check":"lower price","expected":true,"passed":true},{"actual":true,"check":"unrelated acknowledgment","expected":true,"passed":true},{"actual":true,"check":"future revision","expected":true,"passed":true},{"actual":true,"check":"no collateral held","expected":true,"passed":true},{"actual":true,"check":"price replacement","expected":true,"passed":true},{"actual":true,"check":"size increase","expected":true,"passed":true},{"actual":true,"check":"below executed size","expected":true,"passed":true},{"actual":true,"check":"acknowledged cancel","expected":true,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"auction freeze\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"unrelated acknowledgment / auction freeze\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"lower price / auction freeze\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"price replacement / auction freeze\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"normal contract\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"lower price\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"unrelated acknowledgment\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"future revision\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"no collateral held\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"price replacement\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"size increase\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"below executed size\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"acknowledged cancel\", \"actual\": true, \"expected\": true, \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":39.57,"exit_code":0,"observations":[{"actual":true,"check":"auction freeze","expected":true,"passed":true},{"actual":true,"check":"unrelated acknowledgment / auction freeze","expected":true,"passed":true},{"actual":false,"check":"lower price / auction freeze","expected":false,"passed":true},{"actual":false,"check":"price replacement / auction freeze","expected":false,"passed":true},{"actual":true,"check":"normal contract","expected":true,"passed":true},{"actual":true,"check":"lower price","expected":true,"passed":true},{"actual":true,"check":"unrelated acknowledgment","expected":true,"passed":true},{"actual":true,"check":"future revision","expected":true,"passed":true},{"actual":true,"check":"no collateral held","expected":true,"passed":true},{"actual":true,"check":"price replacement","expected":true,"passed":true},{"actual":true,"check":"size increase","expected":true,"passed":true},{"actual":true,"check":"below executed size","expected":true,"passed":true},{"actual":true,"check":"acknowledged cancel","expected":true,"passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"auction freeze\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"unrelated acknowledgment / auction freeze\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"lower price / auction freeze\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"price replacement / auction freeze\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"normal contract\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"lower price\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"unrelated acknowledgment\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"future revision\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"no collateral held\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"price replacement\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"size increase\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"below executed size\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"acknowledged cancel\", \"actual\": true, \"expected\": true, \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}