permutation‑invariant error correction