hn.today

No One Should Trust AI to Write Their Code

adacore.com8 points0 comments
Screenshot of No One Should Trust AI to Write Their Code

The central argument is that AI can speed up safety-critical software development, but its output should never be trusted on faith. In fields such as aerospace, automotive, rail, and medical devices, code must come with evidence that it meets requirements; plausible-looking code or a claim that a model produced it is not enough. An analogy with standardized shipping containers illustrates the proposed solution: cranes made cargo handling faster, but common container dimensions made that speed reliable. Likewise, AI needs a rigorous framework that constrains and checks its work. The main target is the “verification tax” of high-integrity software: the labor involved in writing tests, establishing coverage, and manually maintaining links between requirements and code.

GNAT Foundry is presented as such a framework, combining AI-generated requirements, SPARK code, formal contracts, and test harnesses with mathematical and coverage checks. GNATprove uses SMT solvers to reject code that fails its contracts or has run-time errors; GNATcoverage checks structural coverage, with a target of 100% MC/DC. Failed checks send the AI back to revise its work. Each generated unit is linked to a requirement, and the pipeline produces traceability and coverage reports. Engineers remain responsible for reviewing high-level requirements and safety-critical contracts, while proof checks their enforcement in code. The proposal aims to reduce manual verification work without removing human accountability; certification still depends on the complete development process and the relevant authority.

Read on adacore.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.