{"abstract":"Minimum-p cutoff uses an absolute probability floor.","category":"Token sampling filters","checks":6,"contract":"Keep tokens with probability at least alpha times the maximum probability; empty input returns empty.","contract_signature":"probabilities, alpha","evaluation_group":"w3-tsf-min-p-relative-peak","failed_approach":"A strict relative comparison loses a candidate exactly on the configured floor.","family":"w3-token-sampling-filters-min-p-relative-peak","id":"FA-98356","implementations":{"attempt":{"sha256":"0fe06dd242d7ea562e17f46c851eb8ee85947d56f6fe8ce5804f41e654340afd","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(probabilities, alpha):\n    peak=max(probabilities.values(),default=0)\n    return sorted(t for t,p in probabilities.items() if p>alpha*peak)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('relative scale',solve({'a':.8,'b':.4,'c':.1},.5),['a','b'])\ncheck('equality retained',solve({'a':.6,'b':.3},.5),['a','b'])\ncheck('all equal',solve({'b':N,'a':N},1),['a','b'])\ncheck('empty',solve({},.2),[])\ncheck('one item',solve({'x':.25},.9),['x'])\ncheck('zero alpha',solve({'a':.5,'b':.1},0),['a','b'])\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":"7b12cb8a7fa3cd893a70731f1a410c07baaccd89a96b7a7f2bcb56910d49fd0f","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\nimport math\nN = 1\nobservations = []\ndef solve(probabilities, alpha):\n    return sorted(t for t,p in probabilities.items() if p>=alpha)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('relative scale',solve({'a':.8,'b':.4,'c':.1},.5),['a','b'])\ncheck('equality retained',solve({'a':.6,'b':.3},.5),['a','b'])\ncheck('all equal',solve({'b':N,'a':N},1),['a','b'])\ncheck('empty',solve({},.2),[])\ncheck('one item',solve({'x':.25},.9),['x'])\ncheck('zero alpha',solve({'a':.5,'b':.1},0),['a','b'])\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":"These are toy finite-vocabulary contracts with supplied scores, histories, and draws; they do not claim production model quality or compatibility. 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":"w3-token-sampling-filters-min-p-relative-peak","generated_at":"2026-09-30T16:48:11.933164+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A finite, deterministic token-selection contract isolates one decoding operation from model inference and runtime behavior.","root_cause":"The alpha threshold is compared directly with each probability instead of scaling by the peak.","sha256":"a2aa0ac06c22b6de8a8a9305b7f1e91f76b26fcdd42a68ed9fa1fb5a3692d123","title":"Token sampling: Minimum-p cutoff uses an absolute probability floor · case 01","variant":1,"variant_policy":"The fixture code references N, supplied as 1 through 5. Fixed boundary checks may repeat. These records share one mechanism and must remain together in evaluation splits.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":29.497,"exit_code":1,"observations":[{"actual":["a"],"check":"relative scale","expected":["a","b"],"passed":false},{"actual":["a"],"check":"equality retained","expected":["a","b"],"passed":false},{"actual":[],"check":"all equal","expected":["a","b"],"passed":false},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":["x"],"check":"one item","expected":["x"],"passed":true},{"actual":["a","b"],"check":"zero alpha","expected":["a","b"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"relative scale\", \"actual\": [\"a\"], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"equality retained\", \"actual\": [\"a\"], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"all equal\", \"actual\": [], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"one item\", \"actual\": [\"x\"], \"expected\": [\"x\"], \"passed\": true}, {\"check\": \"zero alpha\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":26.975,"exit_code":1,"observations":[{"actual":["a"],"check":"relative scale","expected":["a","b"],"passed":false},{"actual":["a"],"check":"equality retained","expected":["a","b"],"passed":false},{"actual":["a","b"],"check":"all equal","expected":["a","b"],"passed":true},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":[],"check":"one item","expected":["x"],"passed":false},{"actual":["a","b"],"check":"zero alpha","expected":["a","b"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"relative scale\", \"actual\": [\"a\"], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"equality retained\", \"actual\": [\"a\"], \"expected\": [\"a\", \"b\"], \"passed\": false}, {\"check\": \"all equal\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"passed\": true}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"one item\", \"actual\": [], \"expected\": [\"x\"], \"passed\": false}, {\"check\": \"zero alpha\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\", \"b\"], \"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."}}