Repository navigation
Conversation
…he#1497) Implement the Claude Code commit attribution mod in magpie-utilities to provide zero-token attribution trailers complying with the ASF Generative Tooling guidance and prevent agent-guard rejections upfront. - Hook attribution.text to supply configured trailers directly to Claude Code. - Hook tool.call on Bash to evaluate commands and warn before unauthorized co-authorship. - Implement zero-dependency TOML parser and fail-closed resolution matching agent-guard. - Sanitize trailers against ANSI escapes, BiDi overrides, and shell metacharacters. - Add comprehensive 36 unit tests in commit-attribution.test.ts (52 tests passing in plugin). Refs apache#1497 Generated-by: Antigravity
Kaap10
marked this pull request as draft
November 22, 2026 11:19
…ibution Refs apache#1497 Generated-by: Antigravity
Kaap10
marked this pull request as ready for review
November 22, 2026 11:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
magpie-utilitiesto provide zero-token attribution trailers complying with the ASF Generative Tooling guidance and preventagent-guardrejections upfront.attribution.textevent to provide compliant trailer text resolved according todocs/setup/commit-attribution.md(project.apache-magpie-overrides/layer wins unlesscontributor-choice; unadopted.git/apache-magpie/or adopted.apache-magpie-local/personal fallback;generated-bydefault).tool.call(Bash) to inspectgit commitcommands for unauthorizedCo-authored-by:trailers with fail-open safety, compound pipeline segmentation, and support forMAGPIE_ALLOW_COAUTHOR=1/MAGPIE_GUARD_OFF=1overrides.Type of change
plugins/magpie-utilities/)Test plan
claude plugin validate --strict plugins/magpie-utilitiespasses (0 errors, 0 warnings)claude plugin test plugins/magpie-utilitiespasses (52/52 unit tests acrossskills-command.test.tsandcommit-attribution.test.ts)python tools/dev/add-license-headers.py --checkpasses (0 violations)prek run typospasses (0 typos)RFC-AI-0004 compliance
$.fs.read; zero external subprocesses and zero network egressmagpie-utilities; skills function 100% normally on other harnesses without the modMAGPIE_ALLOW_COAUTHOR=1)Linked issues
Notes for reviewers (optional)
hooks.jsonregisters./skills-command.ts, which cleanly delegates to./commit-attribution.ts.generated-byrather than leaking through to contributor local configuration.