feat(git): replace Co-Authored-By with Assisted-by trailer#27
Conversation
Adopt the Linux kernel's Assisted-by standard for AI attribution and add a safety rule preventing AI from adding Signed-off-by tags, since only humans can certify the DCO. Assisted-by: Claude:claude-opus-4-6
WalkthroughThe pull request bumps the Claude plugin version to 1.1.0 and updates AI attribution standards across documentation and scripts, replacing "Co-Authored-By" trailers with "Assisted-by" format per Linux kernel conventions and adding safety rules preventing DCO sign-off additions. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
git/scripts/git-instructions.sh (1)
181-181: Add the DCO failure path explicitly.This tells Claude what not to do, but not how to recover when a commit-msg hook or CI requires a sign-off. Add one sentence telling it to stop and ask the human to add Signed-off-by themselves instead of retrying the commit.
Suggested wording
- - NEVER add Signed-off-by tags to commits. Only humans can certify the Developer Certificate of Origin (DCO). The human submitter is responsible for adding their own Signed-off-by tag. + - NEVER add Signed-off-by tags to commits. Only humans can certify the Developer Certificate of Origin (DCO). The human submitter is responsible for adding their own Signed-off-by tag. + - If a hook or repository policy requires Signed-off-by, stop and tell the user they must add it themselves; do not retry with a generated sign-off.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@git/scripts/git-instructions.sh` at line 181, Update the guidance line that reads "NEVER add Signed-off-by tags to commits. Only humans can certify the Developer Certificate of Origin (DCO). The human submitter is responsible for adding their own Signed-off-by tag." to explicitly include the DCO failure path: instruct the agent, when a commit-msg hook or CI reports a missing Signed-off-by, to stop retrying and prompt the human submitter to add the Signed-off-by themselves rather than attempting to modify commits; reference the existing sentence "NEVER add Signed-off-by tags to commits." when making this single-sentence addition so the behavior is clearly prescribed.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@git/scripts/git-instructions.sh`:
- Line 181: Update the guidance line that reads "NEVER add Signed-off-by tags to
commits. Only humans can certify the Developer Certificate of Origin (DCO). The
human submitter is responsible for adding their own Signed-off-by tag." to
explicitly include the DCO failure path: instruct the agent, when a commit-msg
hook or CI reports a missing Signed-off-by, to stop retrying and prompt the
human submitter to add the Signed-off-by themselves rather than attempting to
modify commits; reference the existing sentence "NEVER add Signed-off-by tags to
commits." when making this single-sentence addition so the behavior is clearly
prescribed.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 1dcf572d-290e-4cda-ae82-1669a05ccb45
📒 Files selected for processing (3)
git/.claude-plugin/plugin.jsongit/CLAUDE.mdgit/scripts/git-instructions.sh
Summary
Co-Authored-Bytrailer withAssisted-by: Claude:<model-id>format, following the Linux kernel'sDocumentation/process/coding-assistants.rststandard for AI attributionSigned-off-bytags (only humans can certify the DCO)Test plan
bash git/scripts/git-instructions.shand verify output containsAssisted-bytrailer andSigned-off-bysafety rulebash git/scripts/git-instructions.sh | grep -i co-authored-byand verify no matchesclaude plugin validate ./gitand verify it passesnpx markdownlint-cli2 --config .markdownlint-cli2.jsonc "git/**/*.md"and verify 0 errorsshellcheck git/scripts/git-instructions.shand verify no warningsSummary by CodeRabbit
Documentation
Chores