Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: allow owned mutation in Rust review guidelines (#18970)

Valery Meleshkinf3a820899ad8
diff --git a/REVIEW.md b/REVIEW.md
index 3de6798cc3..6c20428809 100644
--- a/REVIEW.md
+++ b/REVIEW.md
@@ -29,7 +29,9 @@ Use their technical rules, not their implementation or handoff workflows.
as a linear sequence of named calls. Extract dense branches, even if that adds lines.
- Group components, hooks, and helpers under `features/<feature>/`, not top-level
folders grouped by kind.
-- Return results instead of mutating inputs.
+- Return results instead of mutating inputs by default. In Rust, allow mutation
+ of clearly owned state and explicit `&mut` output buffers or accumulators when
+ it keeps the API clear or avoids unnecessary allocations and copies.
- Inject dependencies through constructors. Call ordinary helpers directly.
- Reuse and extend existing functionality. Keep solutions simple. When flagging
complexity, show a simpler alternative that meets the same requirements.