{"abstract":"Only upward price amendments lose auction queue priority.","category":"Auction allocation rules","checks":10,"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 price-priority: Reset priority for either direction of price change.","contract_signature":"x","evaluation_group":"s3-auction-amendment-priority","failed_approach":"The attempted repair uses x[\"now\"] if x[\"new_price\"]>x[\"old_price\"] else x[\"stamp\"]; the explicit regression cases demonstrate that this still violates the stipulated auction rule.","family":"s3-auction-allocation-rules-amendment-priority-price-priority","id":"FA-56396","implementations":{"attempt":{"sha256":"4a83eed32a0a0ea447b9290c8acb51dcdc92b5bb05e10d353bdcce6777b4cc55","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 = [('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'}, [8, 16, 24, 32, 40]), ('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'}, [8, 16, 24, 32, 40]), ('lower price / unrelated acknowledgment', {'old_price': 10, 'new_price': 8, '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'}, [8, 16, 24, 32, 40]), ('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'}, [1, 2, 3, 4, 5]), ('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'}, [1, 2, 3, 4, 5]), ('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'}, [1, 2, 3, 4, 5]), ('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'}, [1, 2, 3, 4, 5]), ('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'}, [1, 2, 3, 4, 5]), ('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'}, [1, 2, 3, 4, 5]), ('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'}, [1, 2, 3, 4, 5])]\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))['price-priority'], 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":"25e4a915f839963bd1ae2a9b3226462fc14f35e89a186cd108acc944e3374fdb","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[\"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 = [('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'}, [8, 16, 24, 32, 40]), ('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'}, [8, 16, 24, 32, 40]), ('lower price / unrelated acknowledgment', {'old_price': 10, 'new_price': 8, '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'}, [8, 16, 24, 32, 40]), ('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'}, [1, 2, 3, 4, 5]), ('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'}, [1, 2, 3, 4, 5]), ('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'}, [1, 2, 3, 4, 5]), ('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'}, [1, 2, 3, 4, 5]), ('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'}, [1, 2, 3, 4, 5]), ('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'}, [1, 2, 3, 4, 5]), ('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'}, [1, 2, 3, 4, 5])]\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))['price-priority'], 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-price-priority","generated_at":"2026-09-29T14:46:06.782323+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Offline administrative auction model for software failure analysis.","root_cause":"Only upward price amendments lose auction queue priority.","sha256":"a76769fef7c089b71f42908167f01724c505e3bc4363c7ec0d288054d2183e5f","title":"Amendment priority: price priority · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":41.267,"exit_code":1,"observations":[{"actual":1,"check":"lower price","expected":8,"passed":false},{"actual":8,"check":"price replacement","expected":8,"passed":true},{"actual":1,"check":"lower price / unrelated acknowledgment","expected":8,"passed":false},{"actual":1,"check":"normal contract","expected":1,"passed":true},{"actual":1,"check":"unrelated acknowledgment","expected":1,"passed":true},{"actual":1,"check":"future revision","expected":1,"passed":true},{"actual":1,"check":"no collateral held","expected":1,"passed":true},{"actual":1,"check":"size increase","expected":1,"passed":true},{"actual":1,"check":"below executed size","expected":1,"passed":true},{"actual":1,"check":"acknowledged cancel","expected":1,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"lower price\", \"actual\": 1, \"expected\": 8, \"passed\": false}, {\"check\": \"price replacement\", \"actual\": 8, \"expected\": 8, \"passed\": true}, {\"check\": \"lower price / unrelated acknowledgment\", \"actual\": 1, \"expected\": 8, \"passed\": false}, {\"check\": \"normal contract\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"unrelated acknowledgment\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"future revision\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"no collateral held\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"size increase\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"below executed size\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"acknowledged cancel\", \"actual\": 1, \"expected\": 1, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.268,"exit_code":1,"observations":[{"actual":1,"check":"lower price","expected":8,"passed":false},{"actual":1,"check":"price replacement","expected":8,"passed":false},{"actual":1,"check":"lower price / unrelated acknowledgment","expected":8,"passed":false},{"actual":1,"check":"normal contract","expected":1,"passed":true},{"actual":1,"check":"unrelated acknowledgment","expected":1,"passed":true},{"actual":1,"check":"future revision","expected":1,"passed":true},{"actual":1,"check":"no collateral held","expected":1,"passed":true},{"actual":1,"check":"size increase","expected":1,"passed":true},{"actual":1,"check":"below executed size","expected":1,"passed":true},{"actual":1,"check":"acknowledged cancel","expected":1,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"lower price\", \"actual\": 1, \"expected\": 8, \"passed\": false}, {\"check\": \"price replacement\", \"actual\": 1, \"expected\": 8, \"passed\": false}, {\"check\": \"lower price / unrelated acknowledgment\", \"actual\": 1, \"expected\": 8, \"passed\": false}, {\"check\": \"normal contract\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"unrelated acknowledgment\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"future revision\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"no collateral held\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"size increase\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"below executed size\", \"actual\": 1, \"expected\": 1, \"passed\": true}, {\"check\": \"acknowledged cancel\", \"actual\": 1, \"expected\": 1, \"passed\": true}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}