cd /news/ai-agents/mags-multi-agent-auto-formalization-… · home topics ai-agents article
[ARTICLE · art-133314] src=arxiv.org ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

MAGS: Multi-agent Auto-formalization Guarantees Safety for Agentic Outputs

Researchers introduced MAGS, a unified multi-agent framework that generates executable programs with formal safety guarantees by using Dafny as a verification-aware intermediate representation, according to an arXiv paper (arXiv:2609.19391v1). Evaluated on 100 CUDA kernels, 100 terminal scripts, and 20 robotic-arm tasks, MAGS achieved a 100% success rate in producing programs with non-trivial safety guarantees against frozen specifications across all 220 examples. Independent safety and functional evaluations showed strong performance in all three domains while revealing failures when auto-formalized semantics do not fully capture the target behavior.

by read1 min views1 publishedSep 18, 2026

arXiv:2609.19391v1 Announce Type: new Abstract: LLM coding agents now generate complex programs at a scale that makes thorough human review increasingly difficult, raising the risk of safety and security failures. Common approaches, including fuzz testing, static analysis, and LLM-as-a-Verifier, can detect many failures but struggle to cover all possible edge cases. Formal verification addresses this by providing machine-checkable guarantees over specified properties, but traditionally demands substantial manual specification and proof engineering. We introduce a unified multi-agent framework, MAGS, that generates executable programs with formal safety guarantees, using Dafny as a verification-aware intermediate representation where safety properties can be mechanically checked. MAGS formalizes and freezes human-audited APIs and safety requirements, translates generated code into Dafny, repairs violations using verifier feedback, and compiles verified programs back into executable code. We evaluate MAGS on 100 CUDA kernels, 100 terminal scripts, and 20 robotic-arm tasks. Across all 220 examples, it achieves a 100% success rate in producing programs with non-trivial safety guarantees against frozen specifications. Independent safety and functional evaluations further show strong performance across all three domains, while revealing failures when the auto-formalized semantics do not fully capture the target behavior.

── more in #ai-agents 4 stories · sorted by recency
── more on @mags 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/mags-multi-agent-aut…] indexed:0 read:1min 2026-09-18 ·