Is your feature request related to a problem? Please describe.
The cueckoo common guidance currently says, under "Commit Messages":
No AI authorship attribution in commit messages
That rule predates what has since become a de facto ecosystem norm: the
Assisted-by: trailer for disclosing AI involvement in a change. The
Linux kernel's AI-contribution policy reserves Signed-off-by: for
humans (it asserts the DCO, which only a person can do) and introduces
Assisted-by: as the disclosure trailer, and that convention is being
adopted more widely (e.g. Artsy's merged RFC choosing Assisted-by
over Co-authored-by precisely because it keeps responsibility with
the human contributor).
Given how much CUE project work is now AI-assisted, we should disclose
that assistance rather than forbid its mention — and ideally the
disclosure should be deterministic, not dependent on an agent
remembering an instruction.
Describe the solution you'd like
Two parts, in order:
-
Flip the guidance policy (contrib-tools,
cmd/cueckoo/cmd/guidance.go). Replace the "No AI authorship
attribution" rule with:
- AI-assisted commits carry an
Assisted-by: trailer identifying
the tool and model, e.g.
Assisted-by: Claude Code (claude-fable-5).
Signed-off-by: remains reserved for humans (DCO).
Co-authored-by: must not name an AI — it implies personhood and
dilutes responsibility.
Agents following the guidance then add the trailer themselves. Note
cueckoo rewrite-commit-msg already preserves arbitrary trailers,
so the existing tooling composes.
-
Deterministic backstop: a cueckoo-managed prepare-commit-msg git
hook that appends the trailer when it detects an agent environment
(e.g. CLAUDECODE=1 for Claude Code; an override variable for other
tools, since there is no standard "an agent is driving" signal).
Implementation sketch:
git interpret-trailers --if-exists doNothing so an
agent-authored trailer is never duplicated;
- installation must compose with existing hooks
(git-codereview's commit-msg, and hand-rolled
prepare-commit-msg hooks adding Signed-off-by).
Part 1 is being implemented now in contrib-tools. Part 2 can follow as
a separate change on this issue.
Describe alternatives you've considered
- Guidance-only (part 1 alone): works for agents that load and follow
the guidance, which today is Claude Code via the CLAUDE.md @-import;
silent for any other agent. The hook closes that gap.
- Per-tool configuration (e.g. Claude Code settings/hooks committed per
repo): Claude-only, and multiplies per-tool maintenance.
- Adopting
Co-authored-by: for AI: rejected — see above.
Additional context
Is your feature request related to a problem? Please describe.
The cueckoo common guidance currently says, under "Commit Messages":
That rule predates what has since become a de facto ecosystem norm: the
Assisted-by:trailer for disclosing AI involvement in a change. TheLinux kernel's AI-contribution policy reserves
Signed-off-by:forhumans (it asserts the DCO, which only a person can do) and introduces
Assisted-by:as the disclosure trailer, and that convention is beingadopted more widely (e.g. Artsy's merged RFC choosing
Assisted-byover
Co-authored-byprecisely because it keeps responsibility withthe human contributor).
Given how much CUE project work is now AI-assisted, we should disclose
that assistance rather than forbid its mention — and ideally the
disclosure should be deterministic, not dependent on an agent
remembering an instruction.
Describe the solution you'd like
Two parts, in order:
Flip the guidance policy (contrib-tools,
cmd/cueckoo/cmd/guidance.go). Replace the "No AI authorshipattribution" rule with:
Assisted-by:trailer identifyingthe tool and model, e.g.
Assisted-by: Claude Code (claude-fable-5).Signed-off-by:remains reserved for humans (DCO).Co-authored-by:must not name an AI — it implies personhood anddilutes responsibility.
Agents following the guidance then add the trailer themselves. Note
cueckoo rewrite-commit-msgalready preserves arbitrary trailers,so the existing tooling composes.
Deterministic backstop: a cueckoo-managed
prepare-commit-msggithook that appends the trailer when it detects an agent environment
(e.g.
CLAUDECODE=1for Claude Code; an override variable for othertools, since there is no standard "an agent is driving" signal).
Implementation sketch:
git interpret-trailers --if-exists doNothingso anagent-authored trailer is never duplicated;
(git-codereview's
commit-msg, and hand-rolledprepare-commit-msghooks addingSigned-off-by).Part 1 is being implemented now in contrib-tools. Part 2 can follow as
a separate change on this issue.
Describe alternatives you've considered
the guidance, which today is Claude Code via the CLAUDE.md @-import;
silent for any other agent. The hook closes that gap.
repo): Claude-only, and multiplies per-tool maintenance.
Co-authored-by:for AI: rejected — see above.Additional context
Assisted-bypolicy coverage:https://allthingsopen.org/articles/open-source-ai-contributions-assisted-by-git-trailer-standard
Assisted-byvsCo-authored-by:https://www.baristalabs.io/blog/ai-assisted-commits-need-provenance-trailer
separately in contrib-tools: cueckoo guidance only reliably reaches Claude Code; cross-agent use needs AGENTS.md #4451 (cueckoo guidance currently only reliably reaches
Claude Code), which bounds how far part 1 alone can reach.