Some checks failed
Smoke Test / smoke (pull_request) Failing after 8s
Issue #55 — security hardening for PolarQuant Turbo4 codec. - Add llama-turbo-safety.h/.cpp with inline input validation: * dimension must be positive power of 2 * all pointers non-NULL * decode norm > 0 (zero-norm guard) - Inject validation into encode/decode via TURBOQUANT_CHECK macro - Implement branchless nearest-centroid search (fixed 16-iteration loop) - Document bounds safety in Metal kernels - Add CMake option TURBOQUANT_ENABLE_SANITIZERS for ASan/UBSan integration - Add tests/test_safety.py (smoke test wrapper) Validation: standalone roundtrip tests pass; ASan build passes; constant-time properties verified (fixed loop counts + branchless selection). Closes #55