{"abstract":"Bonus token is emitted when only part of the draft was accepted.","category":"Speculative decoding bookkeeping","checks":7,"contract":"Emit the supplied bonus token only when every proposed draft token was accepted; otherwise return no bonus.","contract_signature":"draft, accepted, bonus","evaluation_group":"spec-bonus-eligibility","failed_approach":"Treating a one-token remainder as full acceptance still emits a bonus after partial acceptance.","family":"w3-speculative-decoding-bookkeeping-bonus-eligibility","id":"FA-100671","implementations":{"attempt":{"sha256":"4e511045bc4f9cef67a2cecea08de517570dac2f68a1b8530abadda529d8b3c3","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(draft, accepted, bonus):\n    return bonus if accepted >= len(draft)-1 else None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fully accepted', solve([1,2],2,9),9)\ncheck('partial acceptance', solve([1,2],1,9),None)\ncheck('rejected all', solve([1],0,8),None)\ncheck('empty proposal bonus', solve([],0,7),7)\ncheck('singleton accepted', solve([N],1,4),4)\ncheck('singleton rejected', solve([N],0,4),None)\ncheck('long partial', solve([1,2,3,4],3,5),None)\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":"797e75743d09596fc2100416150129137065f343d0eddc5e620d1c0f1d70c611","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(draft, accepted, bonus):\n    return bonus if accepted > 0 else None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('fully accepted', solve([1,2],2,9),9)\ncheck('partial acceptance', solve([1,2],1,9),None)\ncheck('rejected all', solve([1],0,8),None)\ncheck('empty proposal bonus', solve([],0,7),7)\ncheck('singleton accepted', solve([N],1,4),4)\ncheck('singleton rejected', solve([N],0,4),None)\ncheck('long partial', solve([1,2,3,4],3,5),None)\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 finite toy sequences with explicit contracts; they make no claim about production decoder behavior or model quality. 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-speculative-decoding-bookkeeping-bonus-eligibility","generated_at":"2026-09-30T16:48:38.098892+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A self-contained bookkeeping model makes prefix and token-count semantics observable without a model runtime.","root_cause":"Any nonempty accepted prefix is treated as full acceptance.","sha256":"fb74060c4670559a1a896494f8331a006dbd8c72fb4d7e9c7dd89be01afee31c","title":"Decoding: Bonus token is emitted when only part of the draft was accepted · 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.679,"exit_code":1,"observations":[{"actual":9,"check":"fully accepted","expected":9,"passed":true},{"actual":9,"check":"partial acceptance","expected":null,"passed":false},{"actual":8,"check":"rejected all","expected":null,"passed":false},{"actual":7,"check":"empty proposal bonus","expected":7,"passed":true},{"actual":4,"check":"singleton accepted","expected":4,"passed":true},{"actual":4,"check":"singleton rejected","expected":null,"passed":false},{"actual":5,"check":"long partial","expected":null,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fully accepted\", \"actual\": 9, \"expected\": 9, \"passed\": true}, {\"check\": \"partial acceptance\", \"actual\": 9, \"expected\": null, \"passed\": false}, {\"check\": \"rejected all\", \"actual\": 8, \"expected\": null, \"passed\": false}, {\"check\": \"empty proposal bonus\", \"actual\": 7, \"expected\": 7, \"passed\": true}, {\"check\": \"singleton accepted\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"singleton rejected\", \"actual\": 4, \"expected\": null, \"passed\": false}, {\"check\": \"long partial\", \"actual\": 5, \"expected\": null, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":26.328,"exit_code":1,"observations":[{"actual":9,"check":"fully accepted","expected":9,"passed":true},{"actual":9,"check":"partial acceptance","expected":null,"passed":false},{"actual":null,"check":"rejected all","expected":null,"passed":true},{"actual":null,"check":"empty proposal bonus","expected":7,"passed":false},{"actual":4,"check":"singleton accepted","expected":4,"passed":true},{"actual":null,"check":"singleton rejected","expected":null,"passed":true},{"actual":5,"check":"long partial","expected":null,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"fully accepted\", \"actual\": 9, \"expected\": 9, \"passed\": true}, {\"check\": \"partial acceptance\", \"actual\": 9, \"expected\": null, \"passed\": false}, {\"check\": \"rejected all\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"empty proposal bonus\", \"actual\": null, \"expected\": 7, \"passed\": false}, {\"check\": \"singleton accepted\", \"actual\": 4, \"expected\": 4, \"passed\": true}, {\"check\": \"singleton rejected\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"long partial\", \"actual\": 5, \"expected\": null, \"passed\": false}], \"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."}}