{"abstract":"permuted dimensions pass exact shape matching.","category":"Checkpoint tensor mapping","checks":6,"contract":"Return sorted source names whose declared shape exactly equals the target shape.","contract_signature":"source, target","evaluation_group":"w3-checkpoint-tensor-mapping-shape-exact","failed_approach":"Matching rank and equal dimension sums still accepts different per-axis extents.","family":"w3-checkpoint-tensor-mapping-shape-exact","id":"FA-99146","implementations":{"attempt":{"sha256":"a7de4369f4013781b0466c8e7597e81a22513cc701c569baef1a1c8b857721b7","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(source, target):\n    return sorted(k for k,v in source.items() if len(v)==len(target) and sum(v)==sum(target))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('order', solve(*({'a': [3, 2], 'b': [2, 3]}, [3, 2])), ['a'])\ncheck('equal', solve(*({'a': [3]}, [3])), ['a'])\ncheck('rank', solve(*({'a': [3, 1]}, [3])), [])\ncheck('empty', solve(*({}, [3])), [])\ncheck('zero', solve(*({'a': [0, 3]}, [0, 3])), ['a'])\ncheck('same product', solve(*({'a': [3, 2]}, [4, 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":"b1ac9944d7b19365cc081c9843cdd9dc33f37ba3f72bbb8126cc9a562a5fcc00","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(source, target):\n    return sorted(k for k,v in source.items() if sorted(v)==sorted(target))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('order', solve(*({'a': [3, 2], 'b': [2, 3]}, [3, 2])), ['a'])\ncheck('equal', solve(*({'a': [3]}, [3])), ['a'])\ncheck('rank', solve(*({'a': [3, 1]}, [3])), [])\ncheck('empty', solve(*({}, [3])), [])\ncheck('zero', solve(*({'a': [0, 3]}, [0, 3])), ['a'])\ncheck('same product', solve(*({'a': [3, 2]}, [4, 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":"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-shape-exact","generated_at":"2026-09-30T16:48:20.799135+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":"Sorting dimensions or comparing dimension sums loses axis identity.","sha256":"ccaa1d0140d871d3841847202148f9e359679ddddbc139705dbe7fb5caee5374","title":"Checkpoint mapping: permuted dimensions pass exact shape matching · 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":26.369,"exit_code":1,"observations":[{"actual":["a","b"],"check":"order","expected":["a"],"passed":false},{"actual":["a"],"check":"equal","expected":["a"],"passed":true},{"actual":[],"check":"rank","expected":[],"passed":true},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":["a"],"check":"zero","expected":["a"],"passed":true},{"actual":["a"],"check":"same product","expected":[],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"order\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"equal\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"rank\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"zero\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"same product\", \"actual\": [\"a\"], \"expected\": [], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":27.444,"exit_code":1,"observations":[{"actual":["a","b"],"check":"order","expected":["a"],"passed":false},{"actual":["a"],"check":"equal","expected":["a"],"passed":true},{"actual":[],"check":"rank","expected":[],"passed":true},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":["a"],"check":"zero","expected":["a"],"passed":true},{"actual":[],"check":"same product","expected":[],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"order\", \"actual\": [\"a\", \"b\"], \"expected\": [\"a\"], \"passed\": false}, {\"check\": \"equal\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"rank\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"zero\", \"actual\": [\"a\"], \"expected\": [\"a\"], \"passed\": true}, {\"check\": \"same product\", \"actual\": [], \"expected\": [], \"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."}}