Microsoft has set out how its engineering teams are using AI agents for large-scale code migration and language modernisation, including work on Windows and Azure codebases and translations from C and C++ into Rust.
The company’s central argument is that generating code is becoming easier than proving it is correct. Microsoft describes migrations spanning a 400-million-line codebase and says small expert teams can approve reusable knowledge and resolve ambiguous cases while agents apply changes at scale. Reviewer agents, differential testing and held-out tests are used to challenge proposed fixes.
Microsoft is also experimenting with formal specifications inferred from existing software and with tools such as TLA+, F*, Lean and Verus. That could make architectural intent more explicit, but the company acknowledges a fundamental limitation: a specification derived from existing code may reproduce what the system does rather than what it should do.
This is an engineering account, not an independent evaluation. Its value lies in identifying the control bottleneck. As agents increase the volume and speed of change, organisations need stronger evidence at the specification and system-behaviour level, not simply more human reviewers reading individual lines.
