{"abstract":"transpose swaps matching shape and stride axes.","category":"Tensor stride and reshape semantics","checks":6,"contract":"For rank-two metadata, transpose returns swapped shape and stride, preserving offset.","contract_signature":"shape, strides, offset","evaluation_group":"tensor-transpose-strides","failed_approach":"Swapping the axes but resetting the origin loses sliced-view addressing.","family":"w3-tensor-stride-reshape-transpose-strides","id":"FA-98751","implementations":{"attempt":{"sha256":"1c768a64c078584261c672a6cc16f76015a076c0cd47b7e1296b705b0126ec94","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(shape, strides, offset):\n    return [shape[1],shape[0]],[strides[1],strides[0]],0\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('rectangular',solve([N,3],[3,1],9),([3,N],[1,3],9))\ncheck('pitched',solve([2,4],[7,1],N),([4,2],[1,7],N))\ncheck('singleton',solve([1,3],[3,1],0),([3,1],[1,3],0))\ncheck('negative pitch',solve([2,3],[-3,1],5),([3,2],[1,-3],5))\ncheck('zero stride',solve([2,3],[0,1],2),([3,2],[1,0],2))\ncheck('same square',solve([2,2],[2,1],4),([2,2],[1,2],4))\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":"280623dcc98dd9d6355530a2f72e9247e56449d5d1a821273c95a2d4f83c58a3","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(shape, strides, offset):\n    return [shape[1],shape[0]],strides,offset\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('rectangular',solve([N,3],[3,1],9),([3,N],[1,3],9))\ncheck('pitched',solve([2,4],[7,1],N),([4,2],[1,7],N))\ncheck('singleton',solve([1,3],[3,1],0),([3,1],[1,3],0))\ncheck('negative pitch',solve([2,3],[-3,1],5),([3,2],[1,-3],5))\ncheck('zero stride',solve([2,3],[0,1],2),([3,2],[1,0],2))\ncheck('same square',solve([2,2],[2,1],4),([2,2],[1,2],4))\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-transpose-strides","generated_at":"2026-09-30T16:48:16.279974+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 axes are swapped while stride metadata stays in its original axis order.","sha256":"bc3d296e2e2391de2c8e7ae9b8ba3439350858f4d6abeccbca7de3fd829c0fdd","title":"Tensor views: transpose swaps matching shape and stride axes · 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":25.163,"exit_code":1,"observations":[{"actual":[[3,1],[1,3],0],"check":"rectangular","expected":[[3,1],[1,3],9],"passed":false},{"actual":[[4,2],[1,7],0],"check":"pitched","expected":[[4,2],[1,7],1],"passed":false},{"actual":[[3,1],[1,3],0],"check":"singleton","expected":[[3,1],[1,3],0],"passed":true},{"actual":[[3,2],[1,-3],0],"check":"negative pitch","expected":[[3,2],[1,-3],5],"passed":false},{"actual":[[3,2],[1,0],0],"check":"zero stride","expected":[[3,2],[1,0],2],"passed":false},{"actual":[[2,2],[1,2],0],"check":"same square","expected":[[2,2],[1,2],4],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"rectangular\", \"actual\": [[3, 1], [1, 3], 0], \"expected\": [[3, 1], [1, 3], 9], \"passed\": false}, {\"check\": \"pitched\", \"actual\": [[4, 2], [1, 7], 0], \"expected\": [[4, 2], [1, 7], 1], \"passed\": false}, {\"check\": \"singleton\", \"actual\": [[3, 1], [1, 3], 0], \"expected\": [[3, 1], [1, 3], 0], \"passed\": true}, {\"check\": \"negative pitch\", \"actual\": [[3, 2], [1, -3], 0], \"expected\": [[3, 2], [1, -3], 5], \"passed\": false}, {\"check\": \"zero stride\", \"actual\": [[3, 2], [1, 0], 0], \"expected\": [[3, 2], [1, 0], 2], \"passed\": false}, {\"check\": \"same square\", \"actual\": [[2, 2], [1, 2], 0], \"expected\": [[2, 2], [1, 2], 4], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":24.942,"exit_code":1,"observations":[{"actual":[[3,1],[3,1],9],"check":"rectangular","expected":[[3,1],[1,3],9],"passed":false},{"actual":[[4,2],[7,1],1],"check":"pitched","expected":[[4,2],[1,7],1],"passed":false},{"actual":[[3,1],[3,1],0],"check":"singleton","expected":[[3,1],[1,3],0],"passed":false},{"actual":[[3,2],[-3,1],5],"check":"negative pitch","expected":[[3,2],[1,-3],5],"passed":false},{"actual":[[3,2],[0,1],2],"check":"zero stride","expected":[[3,2],[1,0],2],"passed":false},{"actual":[[2,2],[2,1],4],"check":"same square","expected":[[2,2],[1,2],4],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"rectangular\", \"actual\": [[3, 1], [3, 1], 9], \"expected\": [[3, 1], [1, 3], 9], \"passed\": false}, {\"check\": \"pitched\", \"actual\": [[4, 2], [7, 1], 1], \"expected\": [[4, 2], [1, 7], 1], \"passed\": false}, {\"check\": \"singleton\", \"actual\": [[3, 1], [3, 1], 0], \"expected\": [[3, 1], [1, 3], 0], \"passed\": false}, {\"check\": \"negative pitch\", \"actual\": [[3, 2], [-3, 1], 5], \"expected\": [[3, 2], [1, -3], 5], \"passed\": false}, {\"check\": \"zero stride\", \"actual\": [[3, 2], [0, 1], 2], \"expected\": [[3, 2], [1, 0], 2], \"passed\": false}, {\"check\": \"same square\", \"actual\": [[2, 2], [2, 1], 4], \"expected\": [[2, 2], [1, 2], 4], \"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."}}