{"slug": "ai-can-no-longer-rampage-through-rust-s-code-repo", "title": "AI Can No Longer Rampage Through Rust's Code Repo", "summary": "The Rust project has adopted a formal LLM policy restricting AI-generated code in its core repository, requiring disclosure for AI-assisted contributions and pausing AI-authored merges if they exceed half of all merges in a six-week window. NetworkManager, the default network daemon on most Linux distributions, has also implemented an AI coding assistants policy requiring authors to take full responsibility for their patches. Jynn Nelson, who wrote the original Rust policy, stated the policy aims to gather data on LLM usage to inform future changes.", "body_md": "The Rust project has implemented [a formal LLM policy](https://forge.rust-lang.org/policies/llm-usage.html?ref=itsfoss.com), which pushes people to use LLMs to analyze/think through code, not write it.\n\nWith how it is written right now, the policy only covers [the core code repo](https://github.com/rust-lang/rust?ref=itsfoss.com) for Rust. It lays out many rules around what's restricted, what's allowed, and a circuit breaker that pauses AI-authored merges once they cross half of all merges in a six-week window.\n\nJust so you know, the core repo hosts the compiler and standard library for the entire language. Every Rust program depends on code that lives here, which makes it a very important repo to moderate.\n\n*It's no surprise they banned LLM use the way they did.*\n\nAn LLM can't write your comments, issues, or PR descriptions under your name. Documentation, safety comments, and compiler diagnostics are all off-limits too. And an LLM review can never substitute for a human one or for reviewing your own code before you post it.\n\n**What's allowed is private use**. Asking an LLM questions about the codebase needs no disclosure, and neither does privately reviewing your own code, summarizing a PR for yourself, or building personal dev tools with one.\n\nApart from that, there are a few things that reside in a gray area. Machine translation, trivial fixes made with an LLM, and self-verified bug hunting all sit here, and each one needs to be disclosed.\n\nAI-written code gets the strictest treatment of all. It has to be pre-arranged with a reviewer, unlikely to introduce a bug that breaks Rust's safety guarantees, fully tested, and understood on both sides before it earns the new `ai-assisted`\n\nlabel.\n\n[Jynn Nelson](https://rust-lang.org/governance/people/jyn514/?ref=itsfoss.com), who wrote up the original policy that the project has now adopted, concluded [the announcement](https://blog.rust-lang.org/inside-rust/2026/08/05/rust-langrust-is-adopting-an-llm-policy/?ref=itsfoss.com) by stating that:\n\nThis is not the end of the story. One of the goals of the policy is to help us gather data: Are people doing interesting and useful things with LLMs? Are they learning? Are they making repeat contributions? The answers to those questions will help us determine how the policy changes in the future.\n\n## A similar move elsewhere\n\n[NetworkManager](https://networkmanager.dev/?ref=itsfoss.com), the default network daemon on most mainstream Linux distributions, has picked up an AI coding assistants policy of its own, recently merging [a new section](https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2504?ref=itsfoss.com) to its [CONTRIBUTING.md](https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/CONTRIBUTING.md?ref_type=heads&ref=itsfoss.com#ai-coding-assistants) file.\n\nIt reads as follows:\n\nAuthors are responsible for 100% of the code they submit. Do not send a patch you cannot explain, and do not send one you have not built and tested yourself. Write your own commit messages and Merge Request descriptions.\n\nThose explain why you are making the change, which is the part a tool cannot know. Respond to review comments yourself. If you cannot discuss your own patch with a reviewer, it will not be merged.\n\nEverything in the Legal section applies unchanged. You are the one certifying that the contribution can be released under LGPL-2.1-or-later. A tool cannot certify that for you.\n\nLarge machine-generated Merge Requests that no human has reviewed line by line will be closed.\n\n[Josephine Pfeiffer](https://josie.lol/?ref=itsfoss.com) of Red Hat wrote the change and [merged it herself](https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/0cca9ff637bf4524207fb37031229859652ff275?ref=itsfoss.com) on August 7, after maintainer approval. If you read the above, then you can see NetworkManager's version is quite simpler than Rust's tiered system. Right now, it is closer to the *human-in-the-loop* approach that we have already seen in [LLVM's policy](https://itsfoss.com/news/llvm-ai-policy/).\n\nWe are constantly seeing such moves. For instance, Codeberg's members [recently voted](https://itsfoss.com/news/codeberg-bans-ai-contributions/) to ban projects built mostly from AI-generated code, citing server strain and climbing hardware costs.\n\nTime and again, we're getting more evidence that AI use can quickly degrade maintenance-focused work and infrastructure if left unchecked. As usual, the open source ecosystem will continue evolving according to what the use of AI dictates.\n\nEnjoyed this update? Support independent Linux news coverage\n\nIt's FOSS has been helping people use Linux for the past 14 years. Help us stay independent from big tech. Become a Plus member, enjoy ad-free reading and get 5 eBooks.", "url": "https://wpnews.pro/news/ai-can-no-longer-rampage-through-rust-s-code-repo", "canonical_source": "https://feed.itsfoss.com/link/24361/17411230/rust-code-repo-ai-policy", "published_at": "2026-08-10 10:35:34+00:00", "updated_at": "2026-08-10 11:23:02.462770+00:00", "lang": "en", "topics": ["ai-policy", "ai-tools", "developer-tools"], "entities": ["Rust project", "NetworkManager", "Jynn Nelson", "Josephine Pfeiffer", "Red Hat"], "alternates": {"html": "https://wpnews.pro/news/ai-can-no-longer-rampage-through-rust-s-code-repo", "markdown": "https://wpnews.pro/news/ai-can-no-longer-rampage-through-rust-s-code-repo.md", "text": "https://wpnews.pro/news/ai-can-no-longer-rampage-through-rust-s-code-repo.txt", "jsonld": "https://wpnews.pro/news/ai-can-no-longer-rampage-through-rust-s-code-repo.jsonld"}}