Meaningful Human-in-the-Loop Checking of GenAI Synthesis for Restricted Languages
When the only comment on a PR is "LGTM", due diligence has not been done. A glance is not understanding. Understanding has levels, and we almost always overestimate ours. But the LGTM stamps the code as correct anyway. Make no mistake (pun intended), this is also true for LLM-generated code, even with so-called "correct-by-construction" approaches. Why does verification catch anything at all? Because of redundancy. You write the specification carefully and then write the implementation separately, and the verification check finds the places where the two disagree. LLM code synthesis throws that away. It derives the implementation from the specification, so the two can almost never disagree. Correct-by-construction becomes a dangerous misnomer. If the specification is wrong, the implementation is wrong in exactly the same way. Better models will not fix this. Any move from natural language to a specification leaves an intent gap between what the user meant and what...