Host test (optional, no ESP-IDF needed)
Compiles the real main/fingerprint.c and main/detector.c on your PC with a stub FFT and checks
(1) C-vs-Python fingerprint parity on test_vector.h, (2) silence/NaN safety, (3) the N-of-M + cooldown state machine.
python tools/make_template.py --buzz your.wav # writes main/test_vector.h
cd tools/host_test
gcc -Wall -I stubs -iquote ../../main host_test.c ../../main/fingerprint.c ../../main/detector.c -lm -o host_test
./host_test