docs: clarify pull request guidance for agents (#1209) The current agent guide covers commit messages and pre-commit, but leaves agents to infer how to prepare a PR for review. Adapt the short checklist from [Iceberg Java](https://github.com/apache/iceberg/blob/main/AGENTS.md#pr--commit-conventions) to cover scope, human approval, concise rationale, verification, and AI disclosure while keeping the existing C++ conventions. `pre-commit run --files AGENTS.md` and `git diff --check` passed. No build needed for this docs-only change. AI disclosure: OpenAI Codex drafted the checklist and PR description and ran the checks above.
diff --git a/AGENTS.md b/AGENTS.md index b82565d..fea2303 100644 --- a/AGENTS.md +++ b/AGENTS.md
@@ -33,3 +33,11 @@ - Use Conventional Commits for commit messages. - Run `pre-commit` for every PR and fix any reported issues. +- Check open issues and PRs for duplicates. Keep each PR focused on one concern. +- Get explicit approval from the human contributor before opening an agent-generated PR. +- In the description, lead with the problem and why it matters. Explain the approach + where it helps review, link the relevant issue if there is one, and report what was + verified and what could not be verified. Avoid repeating the diff. +- For code changes, build the affected C++ targets and run the relevant tests. +- Follow the [Iceberg AI-assisted contribution guidelines](https://iceberg.apache.org/contribute/#guidelines-for-ai-assisted-contributions). + Disclose what AI helped produce, and let the human contributor state what they reviewed.