{"abstract":"axis permutation preserves stride pairing.","category":"Tensor stride and reshape semantics","checks":6,"contract":"Apply a permutation to shape and stride tuples using the same axis order.","contract_signature":"shape, strides, order","evaluation_group":"tensor-permute-axes","failed_approach":"Selecting stride entries by output position works only for identity and prefix permutations.","family":"w3-tensor-stride-reshape-permute-axes","id":"FA-98786","implementations":{"attempt":{"sha256":"ad62709e940f24283d6202f86c18579d0c69ad4a998cbeab37232a410ef8d9f1","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(shape, strides, order):\n    return [shape[i] for i in order],[strides[i] for i in range(len(order))]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('swap',solve([2,N,4],[N*4,4,1],[2,0,1]),([4,2,N],[1,N*4,4]))\ncheck('identity',solve([2,3],[3,1],[0,1]),([2,3],[3,1]))\ncheck('reverse',solve([2,3,4],[12,4,1],[2,1,0]),([4,3,2],[1,4,12]))\ncheck('unit axis',solve([1,N,2],[2,2,1],[1,2,0]),([N,2,1],[2,1,2]))\ncheck('nonstandard',solve([2,3,4],[1,8,2],[1,0,2]),([3,2,4],[8,1,2]))\ncheck('two axis swap',solve([N,5],[5,1],[1,0]),([5,N],[1,5]))\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":"00f00d0b511efbfde7c2678025c2753cd0ade8fc9039d941c41910c9b3b936c2","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(shape, strides, order):\n    return [shape[i] for i in order],list(strides)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('swap',solve([2,N,4],[N*4,4,1],[2,0,1]),([4,2,N],[1,N*4,4]))\ncheck('identity',solve([2,3],[3,1],[0,1]),([2,3],[3,1]))\ncheck('reverse',solve([2,3,4],[12,4,1],[2,1,0]),([4,3,2],[1,4,12]))\ncheck('unit axis',solve([1,N,2],[2,2,1],[1,2,0]),([N,2,1],[2,1,2]))\ncheck('nonstandard',solve([2,3,4],[1,8,2],[1,0,2]),([3,2,4],[8,1,2]))\ncheck('two axis swap',solve([N,5],[5,1],[1,0]),([5,N],[1,5]))\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":"Self-contained integer metadata models only; no production framework compatibility or performance claim. 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-tensor-stride-reshape-permute-axes","generated_at":"2026-09-30T16:48:16.724518+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Dense tensor views rely on consistent logical coordinates and physical storage addresses.","root_cause":"Shape dimensions are reordered without reordering their matching physical strides.","sha256":"58532a8d2d1b8b9623a6cc84cea3cce944acc8e65408534ab418c4e23f4868c8","title":"Tensor views: axis permutation preserves stride pairing · 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":26.781,"exit_code":1,"observations":[{"actual":[[4,2,1],[4,4,1]],"check":"swap","expected":[[4,2,1],[1,4,4]],"passed":false},{"actual":[[2,3],[3,1]],"check":"identity","expected":[[2,3],[3,1]],"passed":true},{"actual":[[4,3,2],[12,4,1]],"check":"reverse","expected":[[4,3,2],[1,4,12]],"passed":false},{"actual":[[1,2,1],[2,2,1]],"check":"unit axis","expected":[[1,2,1],[2,1,2]],"passed":false},{"actual":[[3,2,4],[1,8,2]],"check":"nonstandard","expected":[[3,2,4],[8,1,2]],"passed":false},{"actual":[[5,1],[5,1]],"check":"two axis swap","expected":[[5,1],[1,5]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"swap\", \"actual\": [[4, 2, 1], [4, 4, 1]], \"expected\": [[4, 2, 1], [1, 4, 4]], \"passed\": false}, {\"check\": \"identity\", \"actual\": [[2, 3], [3, 1]], \"expected\": [[2, 3], [3, 1]], \"passed\": true}, {\"check\": \"reverse\", \"actual\": [[4, 3, 2], [12, 4, 1]], \"expected\": [[4, 3, 2], [1, 4, 12]], \"passed\": false}, {\"check\": \"unit axis\", \"actual\": [[1, 2, 1], [2, 2, 1]], \"expected\": [[1, 2, 1], [2, 1, 2]], \"passed\": false}, {\"check\": \"nonstandard\", \"actual\": [[3, 2, 4], [1, 8, 2]], \"expected\": [[3, 2, 4], [8, 1, 2]], \"passed\": false}, {\"check\": \"two axis swap\", \"actual\": [[5, 1], [5, 1]], \"expected\": [[5, 1], [1, 5]], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":25.405,"exit_code":1,"observations":[{"actual":[[4,2,1],[4,4,1]],"check":"swap","expected":[[4,2,1],[1,4,4]],"passed":false},{"actual":[[2,3],[3,1]],"check":"identity","expected":[[2,3],[3,1]],"passed":true},{"actual":[[4,3,2],[12,4,1]],"check":"reverse","expected":[[4,3,2],[1,4,12]],"passed":false},{"actual":[[1,2,1],[2,2,1]],"check":"unit axis","expected":[[1,2,1],[2,1,2]],"passed":false},{"actual":[[3,2,4],[1,8,2]],"check":"nonstandard","expected":[[3,2,4],[8,1,2]],"passed":false},{"actual":[[5,1],[5,1]],"check":"two axis swap","expected":[[5,1],[1,5]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"swap\", \"actual\": [[4, 2, 1], [4, 4, 1]], \"expected\": [[4, 2, 1], [1, 4, 4]], \"passed\": false}, {\"check\": \"identity\", \"actual\": [[2, 3], [3, 1]], \"expected\": [[2, 3], [3, 1]], \"passed\": true}, {\"check\": \"reverse\", \"actual\": [[4, 3, 2], [12, 4, 1]], \"expected\": [[4, 3, 2], [1, 4, 12]], \"passed\": false}, {\"check\": \"unit axis\", \"actual\": [[1, 2, 1], [2, 2, 1]], \"expected\": [[1, 2, 1], [2, 1, 2]], \"passed\": false}, {\"check\": \"nonstandard\", \"actual\": [[3, 2, 4], [1, 8, 2]], \"expected\": [[3, 2, 4], [8, 1, 2]], \"passed\": false}, {\"check\": \"two axis swap\", \"actual\": [[5, 1], [5, 1]], \"expected\": [[5, 1], [1, 5]], \"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."}}