RegulationOpen Source 🇨🇳 14.08.2026 10:03

Rust Sets New Rules for AI Coding: AI Can Help You Look, But Not Write for You; Overuse Triggers 'Circuit Breaker'

Five teams in the Rust project have formally adopted a new policy on AI-assisted programming, which regulates how contributors may use large language models (LLMs) when submitting code to the rust-lang/rust repository. The policy, announced by Jynn Nelson on the Inside Rust blog, allows LLMs for answering questions, analysis, summarization, refinement, checking, suggestions, and review, but prohibits their use for creation. It also introduces a 'circuit breaker' mechanism that pauses the merge of LLM-created pull requests if more than half of merged PRs are LLM-created in a six-week window.
On August 5, 2026, Jynn Nelson announced on the Inside Rust blog that five teams within the Rust project—compiler, standard library, type system, rustdoc, and bootstrap—have formally adopted a policy governing the use of large language models (LLMs) in code contributions. The policy applies to the main rust-lang/rust repository and states that LLMs may be used for answering questions, analysis, summarization, refining, checking, suggesting, and reviewing, but not for creating new content. Contributions that involve LLM creation must be disclosed, and new contributors are not allowed to submit LLM-created pull requests unless they first find a reviewer. The policy includes a 'circuit breaker': if more than half of merged PRs in any six-week window are LLM-created, all such PRs will be paused until the proportion drops below 50% and a 10-day cooldown passes. Violations, such as deliberately concealing LLM use, are treated as violations of the Rust Code of Conduct, just like harassment. The policy is intentionally not fully enforceable technically, aiming to eliminate ambiguity rather than catch every violation. Nelson cited three pressures that led to the written policy: the signal of a well-crafted PR is no longer reliable, review resources are becoming scarcer as code generation costs drop, and some contributors copy reviewer comments into LLMs and paste outputs back, wasting everyone's time. The policy is seen as a first step, with the Rust leadership council considering a project-level LLM committee that could expand such rules across the entire project.
Abbreviations
LLM = Large Language Model — большая языковая модель
PR = Pull Request — запрос на слияние
Source: InfoQ 中国 — original
Our earlier posts on this topic ↓
Fresh news