The problem here was an invalid handling of the stride member in the layout struct (not the mapping) for LayoutRight when converting View to DynRankView in particular. This did not happen for everything (e.g. rank-3 was fine, but rank-2 failed ...).
The repository is checked out at /workspace/repo. Work only on production
source code. Do not modify tests, CMake registration, CI configuration, or the
grading environment. Use the existing build tree for local verification.