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
Propose formal attribution rules for commit messages when AI tools assist with ITK contributions.
Core principles:
Co-Authored-By: is reserved for humans whose intellectual contribution materially shaped the commit
AI tools never receive Co-Authored-By: — the human who prompted, reviewed, and committed bears authorship responsibility
AI assistance is acknowledged only when substantive (root-cause analysis, non-obvious algorithm design) — never for mechanical changes
Reviewer Co-Authored-By: is encouraged to promote positive community interaction and recognize the real work of code review
External context (Discourse threads, issues, emails) that informed a PR gets prose attribution with stable links
Proposed format
Substantive AI contribution (structured trailer):
Tool-Assisted: Claude Code (claude-opus-4-6)
Role: root-cause analysis, hypothesis testing
Contribution: identified CCACHE_NODIRECT=1 as sole cause of 0.02%
hit rate by comparing ARM CI with Azure DevOps pipelines.
Minor AI contribution (single-line trailer):
Assisted-by: Claude Code — cherry-pick conflict resolution and API adaptation
No mention needed: mechanical refactoring, formatting, boilerplate, applying well-known patterns the human specified.
External context (prose, not trailers):
Based on discussion in https://discourse.itk.org/t/7745 (patches for
5.4.6) and blowekamp's observation about orphaned test coverage.
Transient links: extract minimum context instead of linking. E.g., "Azure DevOps windows-2019 runner retired 2025-03-24" rather than a link to a CI build that will expire.
@Niels_Dekker raised the concern about "cognitive debt" — nobody truly understanding AI-generated code. Co-Authored-By: AI makes this worse by implying shared responsibility that doesn't exist. (Post #12)
@matt.mccormick emphasized keeping interactions "social, relational, and human-to-human, with AI as a supporting tool." Reviewer Co-Authored-By: supports this. (Post #9)
@dzenanz noted that for large AI-generated changes "reviewing becomes the dominant part of the work" — making reviewer attribution even more important. (Post #2)
Propose formal attribution rules for commit messages when AI tools assist with ITK contributions.
Core principles:
Co-Authored-By:is reserved for humans whose intellectual contribution materially shaped the commitCo-Authored-By:— the human who prompted, reviewed, and committed bears authorship responsibilityCo-Authored-By:is encouraged to promote positive community interaction and recognize the real work of code reviewProposed format
Substantive AI contribution (structured trailer):
Minor AI contribution (single-line trailer):
No mention needed: mechanical refactoring, formatting, boilerplate, applying well-known patterns the human specified.
External context (prose, not trailers):
Transient links: extract minimum context instead of linking. E.g., "Azure DevOps windows-2019 runner retired 2025-03-24" rather than a link to a CI build that will expire.
Community context from Discourse #7728
This proposal is informed by the discussion in AI generated pull requests overwhelming, hard to review carefully:
Co-Authored-By: AImakes this worse by implying shared responsibility that doesn't exist. (Post #12)Co-Authored-By:supports this. (Post #9)Decision points for discussion
Tool-Assisted:for reproducibility?Documentation/AI/git-commits.mdorCONTRIBUTING.md?Motivated by Discourse #7728 and practical experience with attribution in PRs #6044–#6057. Complements the draft PR guidelines in #5975.