Rust's new LLM policy ships with a circuit breaker
Five Rust teams adopted an LLM policy: use AI to review, not to create. Disclosure is mandatory and there's an automatic kill switch. Copy the structure.
Most AI contribution policies are a paragraph of vibes. The Rust LLM policy that landed this week is the first one we've read that has a metric, a trigger, and an off switch. Five teams in the Rust project ratified it, and if you're writing an AI policy for your own codebase, this is the one to steal from — not because Rust is Rust, but because someone finally wrote down what happens when the policy stops working.
What actually happened
Per the Inside Rust blog, the policy applies to rust-lang/rust only, and only to the teams that ratified it: compiler, libs, types, rustdoc, bootstrap, and their subteams. Other repos, submodules, and teams that didn't sign on — lang and edition among them — set their own rules. It is explicitly not a project-wide stance on AI.
The policy text turns on one line: it's fine to use LLMs to answer, analyze, distill, refine, check, suggest, and review — but not to create.
That splits cleanly into three buckets:
- Fine, no disclosure: private use. Ask it questions, have it summarize an issue thread, have it review your own diff. Learn from output, then write the thing yourself.
- Fine with disclosure: machine translation, trivial changes like typos and links, bugs you found via an LLM and then personally verified, and review bots — which must run on a separate account, be maintainer-approved, non-blocking, and blockable by any contributor.
- Banned: LLM-generated PR descriptions, issue bodies, comments, and documentation. Also non-trivial safety comments and compiler diagnostics, and treating an LLM review as sufficient to merge.
There's a narrow experimental lane for LLM-written code: pre-arranged with a specific reviewer, non-critical, extremely unlikely to cause soundness regressions, comprehensively tested, held to the same bar as human code, and understood in full by both author and reviewer. Tag it ai-assisted.
Then the part nobody else writes down. If more than 50% of merged PRs in a six-week window are LLM-created, new LLM PRs get suspended for at least ten days. A circuit breaker with a threshold and a duration.
Lying about LLM use is a Code of Conduct matter — warning, possible ban. So is harassing contributors over suspected AI use. Both directions are covered.
Why an LLM policy matters for your business
You don't maintain a compiler. You do have a repo, contractors pushing to it, and no written answer to "was this generated?"
Separate private use from public artifacts. This is the load-bearing idea. Nobody can audit whether you asked a model to explain a stack trace, and nobody should try. What's auditable is what lands in the repo with your name on it. Write your policy against artifacts, not intentions — it's the only version that's enforceable.
Disclosure beats prohibition. Rust didn't ban the tools. It made hiding them a conduct violation. That's the same trade we recommend to every client: you cannot detect AI-written code reliably, so stop pretending you can gate on detection and gate on honesty instead.
Ship the circuit breaker. Pick a number now, while you're calm. "If AI-generated changes exceed X% of merges, we pause and review" is a decision you make once. Without it, the conversation happens during an incident, and it's about blame instead of throughput.
Rust is the second major open-source project to formalize this in weeks — Debian's general resolution is still working through its ballot. The overlap between them is your default policy.
Key takeaways
- Five Rust teams — compiler, libs, types, rustdoc, bootstrap — ratified an LLM policy for
rust-lang/ruston August 5, 2026 - Core rule: LLMs may answer, review, and suggest, but not create public project content
- PR descriptions, issue bodies, comments, and docs written by an LLM are banned outright
- LLM-written code gets a narrow experimental lane: pre-arranged reviewer, non-critical, fully tested,
ai-assistedlabel - Circuit breaker: LLM PRs above 50% of merges in six weeks triggers a minimum ten-day suspension
- Undisclosed LLM use is a Code of Conduct violation — so is harassing people over suspected AI use
If your AI coding policy can't be checked against a diff, it isn't a policy. We build delivery pipelines where AI-assisted work is labeled, reviewed by a named human, and measured — so you know what share of your codebase a model wrote. See how we build, or have us write the policy your team will actually follow.
Sources: Inside Rust Blog, rust-forge LLM usage policy.
- #rust
- #ai-coding
- #open-source
- #governance
- #contribution-policy
Tommy Rush — Founder, Rush Commerce
Operator turned builder. 15+ years running operations — now shipping the systems businesses run on. More
Get The Rush Report weekly — one email, zero fluff.
Keep reading
77 malicious Open VSX extensions mapped developer machines
An evil-twin campaign put 77 fake extensions on Open VSX that fingerprinted dev machines, Git repos, and CI pipelines. What to check in your editor today.
Read itPhishing on Microsoft's real login page: MFA won't save you
A campaign hit ~120 organizations by sending users to the genuine login.microsoftonline.com and asking them to approve an app. OAuth consent phishing beats MFA.
Read it