Skip to content

Commit ce0e0d1

Browse files
authored
Adopt the AI policy in all of our ros2_rust repos (#7)
1 parent e52bc3b commit ce0e0d1

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Agent Instructions
2+
3+
## AI Policy
4+
Follow the projects [AI Policy](https://github.com/ros2-rust/ros2_rust/blob/main/docs/AI_POLICY.md). It applies to all contributions to this repository even if a human edits it.
5+
6+
## Commit Authoring
7+
For any commit that includes content generated in whole or in part by a generative AI tool, include this disclosure in the commit message body:
8+
9+
```text Assisted-by: AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]```
10+
11+
Also include a matching disclosure in the pull request description.

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@AGENTS.md

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,18 @@ By default, crates generated from `rosidl_generator_rs` opt in.
2525
- The dependencies of the included crates are not included. You cannot dynamically alter cargo dependencies through
2626
anything other than features, and features need to be explicitly declared and enabled. As such, this crate must have
2727
all expected dependencies itself (hence why this crate has a `serde` dependency for example).
28+
29+
## AI Policy
30+
Generative tools are allowed in producing contributions to its projects, with some qualifications:
31+
32+
- Any contribution may consist, in whole or in part, of the output of one or more generative tools.
33+
- Any use of generative tools in a contribution must be disclosed at the time of making the contribution.
34+
- The disclosure must be recorded in a way that ensures it has the same or greater lifetime as the contribution itself.
35+
36+
For source code contributions, you should add a disclosure statement in the commit message for all commits where some portion of the source code was generated.
37+
38+
`Assisted-by: AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]`
39+
40+
Provide a similar disclosure statement in the PR description.
41+
42+
See the projects [AI Policy](https://github.com/ros2-rust/ros2_rust/blob/main/docs/AI_POLICY.md) for more details.

0 commit comments

Comments
 (0)