[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"branding":3,"analytics":7,"article-new-tool-makes-ai-coding-agents-prove-their-code-is-safe":10,"sections":34},{"siteName":4,"siteTagline":5,"publisherName":4,"contactEmail":6},"The Revision","Tech news, decoded.","editor@therevision.news",{"gaMeasurementId":8,"adsenseClientId":9},"G-ZW2MV82GYR","ca-pub-8533917693782264",{"article":11},{"id":12,"slug":13,"title":14,"dek":15,"body_md":16,"tags_json":17,"published_at":18,"created_at":19,"updated_at":20,"status":21,"review_note":22,"review_notes":23,"image_url":22,"persona_id":22,"persona_name":22,"section":24,"tags":25,"sources":29,"feedback":33,"feedback_at":22,"cost_usd":33,"total_tokens":33},6756,"new-tool-makes-ai-coding-agents-prove-their-code-is-safe","New Tool Makes AI Coding Agents Prove Their Code Is Safe","MAGS, a new multi-agent system, translates AI-generated code into a verifiable language and proves safety on all 220 test cases.","A new framework called MAGS gets AI coding agents to mathematically prove their generated code is safe, not just pass tests.\n\nMAGS is a multi-agent pipeline built around Dafny, a programming language designed for machine-checked verification. Human engineers first define and freeze the safety rules and APIs the generated code must respect. The system then translates an AI agent's code into Dafny, runs Dafny's verifier against it, and automatically repairs any violations the verifier flags before compiling the proven-safe version back into runnable code. Researchers tested this on 100 CUDA kernels, 100 terminal scripts, and 20 robotic-arm control tasks, and MAGS produced verifiably safe programs in all 220 cases.\n\nCoding agents now write software faster than any team can manually review, and the usual safety nets - fuzzing, static analysis, another LLM checking the work - are good at catching common bugs but blind to whatever edge case nobody thought to test. Formal verification closes that gap with an actual mathematical guarantee instead of a probabilistic one, which matters most in places where a bug means a crashed robot arm or a corrupted GPU kernel, not just a failed unit test. Automating the traditionally painstaking work of writing formal specs and proofs is what makes this practical at agent scale.\n\nThe catch is that a 100% pass rate only proves the code matches the spec humans wrote - the paper's own failure cases show that when the frozen spec doesn't capture what the code was actually supposed to do, MAGS will verify the wrong behavior with total confidence.","[\"ai\",\"formal-verification\",\"coding-agents\",\"ai-safety\"]","2026-09-18T04:00:00.000Z","2026-09-18T15:18:38.893Z","2026-09-18T15:18:50.803Z","published",null,[],"ai",[24,26,27,28],"formal-verification","coding-agents","ai-safety",[30],{"name":31,"url":32},"arXiv cs.AI","https:\u002F\u002Farxiv.org\u002Fabs\u002F2609.19391",0,{"sections":35},[36,39,43,48,53,57,61,66,71,76,81,86,91,96],{"name":37,"slug":24,"count":38,"latest_published_at":18},"AI",3958,{"name":40,"slug":41,"count":42,"latest_published_at":18},"Security","security",652,{"name":44,"slug":45,"count":46,"latest_published_at":47},"Policy","policy",338,"2026-09-11T04:00:00.000Z",{"name":49,"slug":50,"count":51,"latest_published_at":52},"Deals","deals",179,"2026-06-29T20:02:07.000Z",{"name":54,"slug":55,"count":56,"latest_published_at":18},"Hardware","hardware",155,{"name":58,"slug":59,"count":60,"latest_published_at":18},"Science","science",116,{"name":62,"slug":63,"count":64,"latest_published_at":65},"Consumer Tech","consumer-tech",99,"2026-09-09T17:27:33.000Z",{"name":67,"slug":68,"count":69,"latest_published_at":70},"Dev Tools","dev-tools",76,"2026-09-18T01:04:54.000Z",{"name":72,"slug":73,"count":74,"latest_published_at":75},"Software","software",75,"2026-09-10T20:41:21.000Z",{"name":77,"slug":78,"count":79,"latest_published_at":80},"Startups","startups",55,"2026-09-09T23:14:29.000Z",{"name":82,"slug":83,"count":84,"latest_published_at":85},"Gaming","gaming",43,"2026-09-10T12:18:06.000Z",{"name":87,"slug":88,"count":89,"latest_published_at":90},"General","general",41,"2026-09-08T01:57:23.000Z",{"name":92,"slug":93,"count":94,"latest_published_at":95},"Reviews","reviews",20,"2026-06-24T12:00:01.000Z",{"name":97,"slug":98,"count":99,"latest_published_at":100},"How-To","how-to",6,"2026-06-16T09:00:00.000Z"]