Skip to content

[blocked] Add LLM guidance, based on the new rl/r policy - #2835

Open
jyn514 wants to merge 20 commits into
rust-lang:mainfrom
jyn514:llm-policy
Open

[blocked] Add LLM guidance, based on the new rl/r policy#2835
jyn514 wants to merge 20 commits into
rust-lang:mainfrom
jyn514:llm-policy

Conversation

@jyn514

@jyn514 jyn514 commented Apr 17, 2026

Copy link
Copy Markdown
Member

This is blocked until rust-lang/rust-forge#1040 merges.

Note that I also link to this in the blog post (https://github.com/rust-lang/blog.rust-lang.org/pull/1897), so it needs to be merged before that post.

@jyn514 jyn514 changed the title [draft] Link to proposed LLM policy [blocked] Link to proposed LLM policy Apr 17, 2026
@jyn514 jyn514 added the S-blocked Status: this PR is blocked waiting for something label May 21, 2026
Comment thread src/about-this-guide.md Outdated
Comment thread src/llm-guidance.md Outdated
Comment thread src/llm-guidance/writing.md
Comment thread src/llm-guidance/writing.md Outdated
Comment thread src/llm-guidance.md Outdated
Comment thread src/llm-guidance.md Outdated
### Rules

We expect everyone to follow the new policy, not just authors.
That means it is **your responsibility** to check whether an `ai-assisted` PR touches an area that's disallowed by the policy.

@scrabsha scrabsha Jul 29, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make sense to have a bot that checks this automatically? like, that sends a "hey, this PR is labeled as ai-assisted and is editing the clippy subtree. be aware that subtrees may have their own LLM policy" or something similar.

(sorry, this is not super actionable for you right now :/)

View changes since the review

Comment thread src/llm-guidance.md Outdated
Comment thread src/llm-guidance.md Outdated
Comment thread src/llm-guidance.md Outdated
Comment thread src/llm-guidance.md Outdated
@jyn514 jyn514 changed the title [blocked] Link to proposed LLM policy [blocked] Add LLM guidance, based on the new rl/r policy Jul 30, 2026
@jyn514
jyn514 requested a review from BoxyUwU July 30, 2026 07:07
@jyn514
jyn514 marked this pull request as ready for review July 30, 2026 07:07
@rustbot

rustbot commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the PR. If you have write access, feel free to merge this PR if it does not need reviews. You can request a review using r? rustc-dev-guide or r? <username>.

@rustbot rustbot added the S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content label Jul 30, 2026

@apiraino apiraino left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/llm-guidance/writing.md Outdated
Comment on lines +39 to +48
### When opening a PR

Disclose your use of LLMs, following the disclosure guidelines below.
Write the disclosure yourself.
You may use an LLM to privately review a disclosure you have written, but not to draft or rewrite it.

**Write your own PR description and comments**.
We want to hear from you, not from your agent.
LLM-created PR descriptions are banned.
LLM-created Github comments are banned.

@mejrs mejrs Jul 30, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Up in the "reviewing llm code", it is said

## Reviewing LLM-created code

First, add the new `ai-assisted` label to the PR.

can we include this prose here additionally/instead? Adding an ai-assisted label yourself feels like part of disclosure to me.

View changes since the review

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is mildly annoying for people who aren’t in the org because they have to go through triagebot to change labels. i think disclosure in the PR description is enough, maybe we can have triagebot do something fancy with the checkboxes idk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-blocked Status: this PR is blocked waiting for something S-waiting-on-review Status: this PR is waiting for a reviewer to verify its content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants