{"abstract":"renaming collisions are not rejected.","category":"Checkpoint tensor mapping","checks":6,"contract":"Apply exact-name renames to [name,value] pairs and return sorted pairs; if two inputs map to one output name, return [].","contract_signature":"pairs, renames","evaluation_group":"w3-checkpoint-tensor-mapping-name-map","failed_approach":"Dictionary conversion retains only the last colliding value, losing the evidence needed to reject the conflict.","family":"w3-checkpoint-tensor-mapping-name-map","id":"FA-99166","implementations":{"attempt":{"sha256":"3f2274f4e6a9854bd9082df870cde9908c7f6eff830d03ec5a2da09ecaa2c470","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(pairs, renames):\n    return sorted({renames.get(k,k):v for k,v in pairs}.items())\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('collision', solve(*([['a', 3], ['b', 2]], {'a': 'x', 'b': 'x'})), [])\ncheck('simple', solve(*([['a', 3]], {'a': 'z'})), [['z', 3]])\ncheck('no map', solve(*([['a', 3]], {})), [['a', 3]])\ncheck('empty', solve(*([], {'a': 'x'})), [])\ncheck('identity', solve(*([['a', 1], ['b', 2]], {})), [['a', 1], ['b', 2]])\ncheck('one collision', solve(*([['a', 1], ['b', 2], ['c', 3]], {'a': 'c', 'b': '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":"37ad675d614ea7019b2aacf51c2170e67bc95206d8b7b19d8bb3d75bd963066e","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(pairs, renames):\n    return sorted((renames.get(k,k),v) for k,v in pairs)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('collision', solve(*([['a', 3], ['b', 2]], {'a': 'x', 'b': 'x'})), [])\ncheck('simple', solve(*([['a', 3]], {'a': 'z'})), [['z', 3]])\ncheck('no map', solve(*([['a', 3]], {})), [['a', 3]])\ncheck('empty', solve(*([], {'a': 'x'})), [])\ncheck('identity', solve(*([['a', 1], ['b', 2]], {})), [['a', 1], ['b', 2]])\ncheck('one collision', solve(*([['a', 1], ['b', 2], ['c', 3]], {'a': 'c', 'b': '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":"Inputs are already decoded Python values; this toy contract makes no claim about a framework, file format, or production checkpoint. 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-checkpoint-tensor-mapping-name-map","generated_at":"2026-09-30T16:48:21.244522+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A bounded offline model of checkpoint tensor bookkeeping in a training workflow.","root_cause":"No uniqueness check follows exact renaming, so two source tensors can map to one destination name.","sha256":"0f9af26c8d4e0292c25891a22e8b00dfa8f02596d1ecd4f71599d7d4d2c18d8e","title":"Checkpoint mapping: renaming collisions are not rejected · case 01","variant":1,"variant_policy":"The same explicitly authored fixtures repeat across all five numbered records; runtime N is unused. These records share one mechanism and must remain together in evaluation splits.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":27.659,"exit_code":1,"observations":[{"actual":[["x",2]],"check":"collision","expected":[],"passed":false},{"actual":[["z",3]],"check":"simple","expected":[["z",3]],"passed":false},{"actual":[["a",3]],"check":"no map","expected":[["a",3]],"passed":false},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":[["a",1],["b",2]],"check":"identity","expected":[["a",1],["b",2]],"passed":false},{"actual":[["b",2],["c",3]],"check":"one collision","expected":[],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"collision\", \"actual\": [[\"x\", 2]], \"expected\": [], \"passed\": false}, {\"check\": \"simple\", \"actual\": [[\"z\", 3]], \"expected\": [[\"z\", 3]], \"passed\": false}, {\"check\": \"no map\", \"actual\": [[\"a\", 3]], \"expected\": [[\"a\", 3]], \"passed\": false}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"identity\", \"actual\": [[\"a\", 1], [\"b\", 2]], \"expected\": [[\"a\", 1], [\"b\", 2]], \"passed\": false}, {\"check\": \"one collision\", \"actual\": [[\"b\", 2], [\"c\", 3]], \"expected\": [], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":28.028,"exit_code":1,"observations":[{"actual":[["x",2],["x",3]],"check":"collision","expected":[],"passed":false},{"actual":[["z",3]],"check":"simple","expected":[["z",3]],"passed":false},{"actual":[["a",3]],"check":"no map","expected":[["a",3]],"passed":false},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":[["a",1],["b",2]],"check":"identity","expected":[["a",1],["b",2]],"passed":false},{"actual":[["b",2],["c",1],["c",3]],"check":"one collision","expected":[],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"collision\", \"actual\": [[\"x\", 2], [\"x\", 3]], \"expected\": [], \"passed\": false}, {\"check\": \"simple\", \"actual\": [[\"z\", 3]], \"expected\": [[\"z\", 3]], \"passed\": false}, {\"check\": \"no map\", \"actual\": [[\"a\", 3]], \"expected\": [[\"a\", 3]], \"passed\": false}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"identity\", \"actual\": [[\"a\", 1], [\"b\", 2]], \"expected\": [[\"a\", 1], [\"b\", 2]], \"passed\": false}, {\"check\": \"one collision\", \"actual\": [[\"b\", 2], [\"c\", 1], [\"c\", 3]], \"expected\": [], \"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."}}