The wrong surah
A file is labelled with one surah and holds another. Alignment still finds the closest match it can, and
used to return confident-looking times for ayat that weren’t there.
Now both gates must reach 0.7: the share of the surah’s text heard exactly, and the share of the
recording the kept ayat explain. The second catches a clip that shares a phrase with the surah it is
checked against. A clip of Al-Baqarah 5, checked as
Al Imran, matches 85.7% of the text of ayah
104, which ends with the same phrase, but explains
60% of the recording. The engine refuses with surah_mismatch and a sentence a person can act on.
- Old gate, 0.45
- 7 of 16 let through
- Now, 0.7
- 16 of 16 refused
Recordings of the wrong surah. Right-surah recordings never scored below 0.976.
Bench: 16 recordings checked against the wrong surah, real model on CPU. 19 Oct 2026.