Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

docs(agents): require GitHub signature line and ask which part was done by a human (#6223)

Dmytro Mishkinb8c85332a89d
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 36d8e24ff..78ac56b40 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -19,6 +19,6 @@ For internal changes without a fragment, explain why and ask for the no-changelo
$ pixi run test-module tests/...
```
-## How did AI help?
+## Which part was done by a human, if any?
-<!-- If you used AI, briefly say what it helped with and what you checked or changed afterward. Otherwise, leave this blank. -->
+<!-- State what the human did vs. what AI did (e.g., "All of it, no AI used", "Human diagnosed the bug and reviewed the diff; AI wrote the fix and tests", or "None β€” human asked to fix #123 and AI did the rest"). -->
diff --git a/AGENTS.md b/AGENTS.md
index 8d035524a..83d57108d 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -133,7 +133,10 @@ when more than one virtualenv is in play: name the interpreter explicitly rather
- A user-visible change adds a `changelog.d/<PR>.<type>.md` fragment (`added`, `fixed`, or `breaking`), not an edit to `CHANGELOG.md`. See [changelog.d/README.md](changelog.d/README.md) for naming before a PR exists and the release workflow. A breaking change says what used to happen as well as what happens now. Internal changes may omit a fragment with an explanation in the PR and the `no-changelog` label. Release PRs also use that label when consuming fragments. Only release PRs assemble and consume fragments.
- Add every new public class or function to the corresponding `docs/source/*.rst` page so it appears in the rendered API reference.
-- A pull request description goes in the pull request body, never in a committed file such as `PR.md`. Fill in every section of the [pull request template](.github/pull_request_template.md), including "How did AI help?": say what the agent did and what was checked or changed afterwards.
+- A pull request description goes in the pull request body, never in a committed file such as `PR.md`. Fill in every section of the [pull request template](.github/pull_request_template.md), including "Which part was done by a human, if any?": state plainly what the user actually did in the session (for example, `"None β€” @<user> asked to fix #NNNN; AI did the rest"`, or the specific diagnosis, design, or edits the user provided) rather than repeating what the agent did in a faux-human `"Used <Agent> to..."` voice.
+- Every pull request description, issue body, comment, and review posted to GitHub by an agent on a user's behalf must end with the line:
+ `Posted on behalf of @<github-handle> by <Agent> (<actual model>).`
+ Write the user's GitHub handle and the actual agent and model you are running as, never a copied literal or a generic tool footer (`Generated with ...`, `Co-Authored-By:`).
- Some modules document a known defect inline and link its tracking issue; `grep -rn "github.com/kornia/kornia/issues/" kornia/` finds them. That prose is part of the fix's blast radius: **before merging a change that closes one of those issues, run `grep -rnE "#NNNN|issues/NNNN" kornia/ tests/`.** Match the issue number rather than a name or a phrase β€” the wording varies across `Tracked in #NNNN`, a lowercase `tracked in` clause, a `Note:` block, a runtime error message, an `xfail` `reason=`, a plain comment and a test-name suffix (`test_wart_*_<issue>` and `test_convention_*_<issue>`, where that convention was followed), and a rendered link label can disagree with the URL beneath it. The `#`/`issues/` anchors keep the pattern off float literals. A surviving hit in `kornia/` means the change is incomplete. Hits in `tests/` are the pins that record the documented behavior; each has to be re-checked in the same change β€” a now-XPASSing strict `xfail` dropped, a wart assertion inverted β€” but a pin goes on naming its issue afterwards, so a hit there is not by itself a defect. Not every documented issue has a pin, so an empty `tests/` result is an answer rather than a failed search.
- When adding a feature detector or descriptor, update the `responses` list in `docs/generate_examples.py` and add the matching branch that renders its heatmap or score visualization. Follow the existing `DISK`, `ALIKED`, and `XFeat` examples and preserve the expected `(B, 3, H, W)` image shapes.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index ecec368d3..4aaef8406 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -399,8 +399,8 @@ See [the fragment guide](changelog.d/README.md) for examples and release instruc
### Working with AI
-- AI tools are welcome. Read their output, check it in the same way you would check your own work, and tell us briefly how they helped.
-- Useful details include what the tool did, what you changed afterward, and what you checked yourself. We do not need a percentage or an authorship category.
+- AI tools are welcome. Read their output, check it in the same way you would check your own work, and state in the pull request which part was done by a human, if any, and which by AI.
+- Useful details include whether you diagnosed the problem, designed the approach, edited the diff, or checked the result yourself, or whether an agent did the whole task from a prompt. We do not need a percentage.
### Communication
@@ -410,7 +410,7 @@ See [the fragment guide](changelog.d/README.md) for examples and release instruc
## Pull Request
-Fill in the [pull request template](.github/pull_request_template.md) with enough context for another person to understand the change. Link related issues or discussions when they exist, say what you checked, and tell us how AI helped if you used it. The description goes in the pull request itself; do not commit it to the repository as a file such as `PR.md`.
+Fill in the [pull request template](.github/pull_request_template.md) with enough context for another person to understand the change. Link related issues or discussions when they exist, say what you checked, and state which part was done by a human, if any, and which by AI. The description goes in the pull request itself; do not commit it to the repository as a file such as `PR.md`.
For bug fixes, a regression test that fails before the fix is especially helpful. For numerical or geometry changes, say where the expected behavior comes from. For new public APIs or behavior changes, an issue or discussion before a large implementation can uncover compatibility and design concerns early.