When the same LLM writes both the code and its tests: measured verification gaps in post-quantum hardware
Researchers at Lucid Motors and EYL Inc. published a preprint measuring how LLM-generated RTL verification fails when the same agent produces both the hardware description and its validation evidence. Across three RTL modules, existing simulation gates killed only 76% of 399 netlist mutants, and undirected whole-design review caught two verifier flaws in only 3 of 6 and 1 of 6 sessions respectively. Module-scoped review succeeded in all 54 sessions, while formal checks were needed to detect planted key-custody flaws that even scoped review missed in 17 of 20 sessions.
As LLM agents increasingly generate register-transfer-level hardware descriptions alongside the tests and reviews that validate them, a structural problem emerges: the evidence proving the code works was produced by the same system that wrote the code. Researchers at Lucid Motors and EYL Inc. set out to measure how much this self-generated evidence actually catches, and published their findings in a November 2026 preprint titled "From FIPS to FPGA with LLM Agents: Measuring What Tests and Reviews Miss in Post-Quantum Cryptographic Hardware."
Their seven-stage verification-gated workflow was developed during a port of an ML-KEM-768 and ML-DSA-65 post-quantum cryptographic accelerator to a 300 MHz Zynq UltraScale+ key-custody card. All six cryptographic operations achieved byte-exact results on the board, and the design passed all 85 interface-applicable NIST ACVP test cases out of 285, plus 484 ML-DSA known-answer tests. On the surface, the implementation looked correct.
The researchers then audited this apparent success with independent evidence: tool-selected netlist mutants, flaw replays, and formal checks. The results exposed significant gaps. Across three RTL modules, the existing simulation gates killed only 76% of 399 tool-selected netlist mutants. When the team derived new tests from the specification guided by the surviving mutants, the fresh-draw decapsulation kill rate improved from 48% to 74%. Passing module tests, in other words, overstated the actual verification strength.