You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Mark `yes` when AI materially influenced technical content.
35
+
Examples: non-trivial code/test logic generated by AI (even one function), about 20+ added/changed lines influenced by AI, or AI influence on API/protocol/performance/architecture decisions.
36
+
Mark `no` for minor/narrow assistance only (spelling/grammar/formatting/trivial comment or wording edits with no behavior impact). -->
37
+
38
+
-[ ] Substantial AI assistance was used in this PR: `yes` / `no`
39
+
-[ ] If `yes`, I included the standardized AI Usage Disclosure block below.
40
+
-[ ] If `yes`, I can explain and defend all important changes without AI help.
41
+
-[ ] If `yes`, I reviewed AI-assisted code changes line by line before submission.
42
+
-[ ] If `yes`, I ran adequate human verification and recorded evidence (checks run locally or in CI, pass/fail summary, and confirmation I reviewed results).
43
+
-[ ] If `yes`, I added/updated tests and specs where required.
44
+
-[ ] If `yes`, I validated protocol/performance impacts with evidence when applicable.
45
+
-[ ] If `yes`, I verified licensing and provenance compliance.
46
+
47
+
AI Usage Disclosure (only when substantial AI assistance = `yes`):
48
+
49
+
<!-- Use this standard template to keep reviews consistent and low-overhead. -->
Copy file name to clipboardExpand all lines: AI_CONTRIBUTION_POLICY.md
+35-4Lines changed: 35 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,21 +10,45 @@ The key words MUST, MUST NOT, REQUIRED, SHOULD, and MAY are interpreted as descr
10
10
- AI tools MAY assist contribution work.
11
11
- AI tools MUST NOT replace contributor accountability.
12
12
- The human submitter is responsible for correctness, safety, performance, and maintainability of all submitted changes.
13
+
- License/provenance confirmation: contributors MUST confirm submitted material is legally compatible and traceable, and MUST comply with [ASF Generative Tooling Guidance](https://www.apache.org/legal/generative-tooling.html).
13
14
- AI-assisted code MUST be reviewed carefully by the contributor line by line before submission.
14
15
- Contributors MUST be able to explain and defend design and implementation details during review.
15
16
16
17
## 2. Disclosure (Privacy-Safe)
17
18
18
19
For substantial AI assistance, PR descriptions MUST include a short `AI Usage Disclosure` section.
20
+
For minor or narrow AI assistance, full disclosure is not required.
21
+
22
+
Definition of substantial AI assistance:
23
+
24
+
- Substantial means AI materially influenced technical content, not only writing style.
25
+
- Contributors MUST mark AI assistance as substantial (`yes`) if any of the following apply:
26
+
- AI generated or rewrote non-trivial code/test logic (even for a small change or a single function).
27
+
- AI-generated or AI-refactored content is about 20 or more added/changed lines in aggregate.
28
+
- AI materially influenced API, protocol, type mapping, performance, memory, or architecture decisions.
29
+
- AI produced substantive technical text used in PR rationale (beyond grammar/translation cleanup).
30
+
- Contributors MAY mark substantial AI assistance as `no` for minor or narrow assistance only, such as spelling/grammar fixes, formatting, trivial comment wording edits, or other non-technical edits with no behavior impact.
19
31
20
32
Required disclosure fields:
21
33
22
34
- Whether substantial AI assistance was used (`yes` or `no`)
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,8 +33,8 @@ Key points:
33
33
34
34
- AI tools are allowed as assistants, but contributors remain fully responsible for all submitted changes.
35
35
- AI-assisted code must be reviewed carefully line by line before submission, and contributors must be able to explain and defend it during review.
36
-
- For substantial AI assistance, provide privacy-safe disclosure in the PR and complete the AI checklist in the PR template.
37
-
- Include human verification evidence (for example build/lint/test commands and results), and add/update tests and specs where required.
36
+
- For substantial AI assistance, provide privacy-safe disclosure in the PR using the standard template in `.github/pull_request_template.md`. Minor/narrow AI assistance does not require full disclosure.
37
+
- Include adequate human verification evidence (for example exact build/lint/test commands and pass/fail outcomes), and add/update tests and specs where required.
38
38
- For protocol/type-mapping/wire-format or performance-sensitive changes, provide the required compatibility/performance validation evidence.
39
39
- Ensure licensing and provenance compliance with [ASF Generative Tooling Guidance](https://www.apache.org/legal/generative-tooling.html) and do not submit content with uncertain provenance.
0 commit comments