AI Policy
Renzora is AI-friendly. Use an assistant to write code, explore the workspace, draft docs, write tests or explain a subsystem you have never touched. Nobody will ask you to prove a patch was typed by hand, and "an AI helped" is not a mark against a contribution.
What we insist on is the other half: you own what you submit. Everything in a pull request must be read, understood, audited and tested by a human before it gets there, and any contribution an AI materially helped produce says which model and version was used.
Both rules exist for one reason. A model that has never built this workspace writes code that looks exactly like code that works, and the cost of that lands on reviewers and on everyone who ships a game on the result. Auditing is the price of the speed-up.
The rules
- Use AI freely. No approval, no percentage cap, no separate lane. AI-assisted pull requests are reviewed on the same terms as everything else.
- Audit every line before you submit it. You must be able to explain in review why each change is there and what it does. "The model wrote it" is not an answer to a review question.
- Validate it by running it. Build it, run it, exercise the thing you changed. A patch that has only ever been read is not validated.
- Write tests. New logic ships with tests that would fail without the change. See Testing.
- Disclose the model and version, in the format below.
- Never open a pull request you have not read in full. Piping a model's output straight into a branch is the one thing this policy forbids outright.
What "audited" means
Not skimming for plausibility. Before you submit:
- Every API the patch calls exists, with that signature, in the versions this workspace pins: Bevy
main(0.20-dev) and Rust 1.100.0. Models confidently invent Bevy APIs and blend versions; a 0.19-era form in 0.20 code (On<Add, X>where 0.20 writesOn<Add<X>>, a naga_oil#importwhere 0.20 shaders use a WESLimport) is the most common failure we see. - You have read the surrounding module. Much of this codebase has non-obvious shape, explained in its
//!and///comments. A model working from a small window will cheerfully undo it. If your patch removes or contradicts a comment explaining why something is the way it is, find out what that comment was protecting first. - You have checked it against the project's real constraints, not the assistant's guess at them.
CLAUDE.mdat the repository root is the authoritative guide to the build and the conventions; the traps below are the ones AI-assisted patches hit most. - No dead scaffolding. Unused helpers, speculative configuration,
TODOs for work nobody asked for and defensiveunwrap()s are easy for a model to emit and easy for you to delete. - Comments say why, not what. Restating the code in prose is most assistants' house style and the opposite of ours. See Code Style.
Traps AI-assisted patches hit most often
| Trap | What actually applies |
|---|---|
A bare cargo build or cargo test | Every cargo command takes --profile dist. A dev-profile build creates a second full artefact tree, and a full disk shows up as nonsense compile errors in crates nobody touched |
| Registering a plugin in code | A [[package.metadata.renzora.plugin]] table in the crate's Cargo.toml is read at build time into the committed plugins.rs lists. Unknown keys and scopes are errors |
| A plugin ABI hash, a version handshake or a C ABI | None exist. In-workspace plugins are statically linked; native plugins ship as source and rebuild when their content-hash stamp stops matching |
| A crates.io dependency on something built on Bevy | Never: it builds a second Bevy. Such crates are vendored under vendor/ and pointed at bevy/ |
Editing bevy/ | Never. It is Bevy's own source, and only the maintainer changes it |
| Re-creating an API Bevy removed | Migrate to what Bevy offers instead; a port of deleted Bevy code is a fork carried forever |
| Inventing a scripting function | The API is what the owning crates declare. If a function is missing, extend the API properly |
| Editing frozen docs | Only docs/r1-alpha8/ is live; older versions are frozen releases |
| Skipping the docs or the release-notes line | Both are part of the change. A feature without them is unfinished |
| Em dashes | Never, anywhere: code, comments, docs, commit messages, UI strings |
Tests are not optional
The audit rule exists because plausible-looking code has to be proven, and a test is the only proof that outlives the review.
- New logic ships with a test that fails without the patch. If you cannot make it fail on the old code, it is not testing your change.
- Bug fixes ship with a regression test that reproduces the bug.
- Test the edges. Empty input, one element, the saturating case, the round trip. Three assertions on the case that obviously works is padding, and reviewers will read it as padding.
- Run them.
cargo test --profile dist -p <crate>links and runs natively;renzora testreproduces CI. - CI is a floor. A clean clippy run says the code compiles and lints, not that it is correct.
Where a test genuinely cannot be written (a rendering change, an editor interaction, a device-specific path), say so in the pull request and describe how you verified it by hand, with a screenshot or capture where that helps.
Disclosing AI assistance
If a model materially contributed to a change, name it and its version.
"Materially" means it wrote or substantially rewrote code, docs or tests that ended up in the diff. Autocomplete of a variable name does not count; neither does asking an assistant to explain a crate you then wrote against yourself. When unsure, disclose: it costs one line.
Add a trailer to the commit, and mention it in the pull request description:
feat(physics): cylinder collider with radius and height
Assisted-by: Claude Opus 5 (claude-opus-5)
The format is Assisted-by: <name> <version>, with the exact model identifier in parentheses when the tool exposes one. The version matters as much as the name, because the failure modes reviewers look for differ between releases of the same family. Assisted-by: an LLM is not a disclosure. Several models get several lines.
It is Assisted-by:, not Co-authored-by:. Co-authorship names a person who can be asked about the work later, and a model cannot be. The human who opens the pull request is its sole author and is fully responsible for it, whatever produced the first draft.
We ask because it tells reviewers which failure modes to look for, gives us real data on which tools produce contributions that hold up, and keeps the history honest. It is not a warning label.
Licensing and provenance
Opening a pull request certifies that you have the right to contribute the code under MIT OR Apache-2.0, the same as any other contribution. AI assistance does not change or dilute that. If a model reproduced a substantial piece of someone else's licensed code into your patch, that is a licence problem you are responsible for.
Be wary of a long, self-contained, suspiciously complete implementation of a known algorithm or a well-known crate's internals. Find out where it came from, then either vendor it properly with its licence intact or write your own.
Issues, reviews and discussion
- Bug reports must be real. File what you actually hit, with the steps you actually ran. A model's speculation about a bug that might exist costs a maintainer real time to rule out.
- Do not paste unverified AI analysis into an issue as a diagnosis. Verify the cause first, then report the verified cause.
- Reviewing with AI is fine; posting its output raw is not. Review comments should be things you would defend yourself.
- Bulk AI-generated pull requests will be closed. A run of drive-by patches nobody read is spam however it was produced, and it makes maintainers distrust every AI-assisted contribution that follows.
Generated assets
This policy covers the engine repository. Assets published to the Marketplace, including AI-generated models, textures and audio, are governed by the Marketplace's own terms. See Marketplace.
If it goes wrong
Nobody is banned for a patch that turned out to be wrong; that is what review is for, and it happens to hand-written code too. What we act on is the pattern this policy exists to prevent: submissions the contributor plainly never read, repeated after being told. Maintainers may close those and ask for a verified resubmission.
Use the tools, read the output, prove it works, say what you used.