record-file-mismatch
Rung schema · correctness · default error
What it catches
Section titled “What it catches”A ruling’s or a defect’s id is not its file name.
Records are found by name: @ruling:mobile-tab-bar is rulings/mobile-tab-bar.md. When the ID inside a file differs from its file name, two readers can disagree about which record a reference means, and a rename can leave citations pointing at an answer that has moved. The file name and the ID are one address, written twice, and Gantry checks that they agree.
Rename the file to the ID, or correct the id field. If other records cite the old ID, update them in the same change.
Example
Section titled “Example”rulings/tab-bar.md # id: mobile-tab-bar -> record-file-mismatch