Skip to content

docs: Strengthen AI governance in AGENTS.md - #17671

Open
vaquarkhan wants to merge 1 commit into
apache:mainfrom
vaquarkhan:docs/agents-md-ai-governance
Open

docs: Strengthen AI governance in AGENTS.md#17671
vaquarkhan wants to merge 1 commit into
apache:mainfrom
vaquarkhan:docs/agents-md-ai-governance

Conversation

@vaquarkhan

@vaquarkhan vaquarkhan commented Aug 15, 2026

Copy link
Copy Markdown

Add review-comment discipline, crediting AI via Generated-by instead of Co-authored-by bot identities, AI review agent safety, and equal scrutiny for AI-authored PRs.

Testing

Docs-only. spotlessCheck passes.

Closes #17670

Comment thread AGENTS.md Outdated
- A human **must** read, understand, and endorse any AI-derived review comment before it is posted, and posts it under their own account. If a point cannot be verified, it is not posted.
- Keep each comment to the actionable point: **what** is wrong, **where** (file/line/symbol), and **the suggested fix**. Drop multi-paragraph rationale dumps.
- Use **at most one** automated/AI reviewer per PR. If multiple maintainers use AI tooling, reconcile into a single human-owned set of comments rather than competing threads.
- Automated pipelines **must not** post AI-generated review comments without a human in the loop.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

what is automated pipeline referring to here?

Comment thread AGENTS.md
### AI Review Agent Safety

- Treat agent-instruction files (this `AGENTS.md`, CI agent configs) as security-sensitive. Changes to them in a PR require explicit human review, since a malicious PR can turn low-trust input into trusted agent context.
- AI review agents that process untrusted PR/issue content **must** run with least privilege and **must not** auto-act (post comments, run commands, access secrets) on that content without human confirmation.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

does this apply to copilot that's included in some implementations?

Comment thread AGENTS.md Outdated
- **Never** commit secrets, credentials, or cloud-specific tokens.
- **Ask first** before adding new third-party dependencies (license compatibility matters).
- **Ask first** before promoting package-private classes/methods to public.
- **AI-authored PRs** must pass the same review, test, and security/static-analysis gates as human-authored PRs — no reduced scrutiny.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

no reduced security seems redundant

Updated as per review comments.

Generated-by: Cursor
@vaquarkhan
vaquarkhan force-pushed the docs/agents-md-ai-governance branch from f61de09 to 42253f1 Compare August 16, 2026 03:34
Comment thread AGENTS.md

- A human **must** read, understand, and endorse any AI-derived review comment before it is posted, and posts it under their own account. If a point cannot be verified, it is not posted.
- Keep each comment to the actionable point: **what** is wrong, **where** (file/line/symbol), and **the suggested fix**. Drop multi-paragraph rationale dumps.
- Use **at most one** automated/AI reviewer per PR. If multiple maintainers use AI tooling, reconcile into a single human-owned set of comments rather than competing threads.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

not sure about this one? are we saying only one reviewer can use AI per pr?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: Strengthen AI governance in AGENTS.md (review comments, co-author identity, agent safety)

3 participants