chore: add attribution settings to the tracked .claude/settings.json so Claude Code writes Assisted-by instead of Co-Authored-By #152

Closed
opened 2026-11-15 09:30:03 +00:00 by Claude · 3 comments
Owner

Spec: AI-assistance policy and commit trailer, resolution point 9.

What

Add the attribution settings to the tracked .claude/settings.json. That file is created by chore(agents): ignore local Claude settings and commit apm-deployed hooks, which blocks this issue. Its first step is a retest of apm audit --ci that decides whether tracked keys survive the audit.

  • If the retest passed, add this block to the file, next to what #196 put there:
{
  "attribution": {
    "commit": "Assisted-by: Claude Code",
    "pr": "Assisted-by: Claude Code",
    "sessionUrl": false
  }
}
  • If the retest failed and #196 fell back to per-user settings, this issue adds nothing to the tracked file: the per-user attribution values are named in docs/contributing/setup.md by #196 instead.

Notes

  • The tracked file never holds permissions.allow; every hook in it arrives through apm (rules set by #196).
  • galaxy.yml build_ignore already lists .claude, so the Collection tarball is unaffected; no changelog fragment.
  • Covered by REUSE.toml? Check, and annotate if not.
  • Check nothing else under .claude/ gets committed by accident.

Acceptance

  • A commit made by Claude Code in this clone ends with Assisted-by: Claude Code and no Co-Authored-By: or Claude-Session: line (when the tracked file holds the block).
  • Lint and Build pass.

Open proposals

  • 2026-11-17: fold this issue into #196 and close it (proposed in a review comment, not actioned).
Spec: [AI-assistance policy and commit trailer](https://git.rkdr.net/Mortis/Kamino/issues/94), resolution point 9. ## What Add the attribution settings to the tracked `.claude/settings.json`. That file is created by [chore(agents): ignore local Claude settings and commit apm-deployed hooks](https://git.rkdr.net/Mortis/Kamino/issues/196), which blocks this issue. Its first step is a retest of `apm audit --ci` that decides whether tracked keys survive the audit. - If the retest passed, add this block to the file, next to what #196 put there: ```json { "attribution": { "commit": "Assisted-by: Claude Code", "pr": "Assisted-by: Claude Code", "sessionUrl": false } } ``` - If the retest failed and #196 fell back to per-user settings, this issue adds nothing to the tracked file: the per-user `attribution` values are named in `docs/contributing/setup.md` by #196 instead. ## Notes - The tracked file never holds `permissions.allow`; every hook in it arrives through apm (rules set by #196). - `galaxy.yml` `build_ignore` already lists `.claude`, so the Collection tarball is unaffected; no changelog fragment. - Covered by `REUSE.toml`? Check, and annotate if not. - Check nothing else under `.claude/` gets committed by accident. ## Acceptance - A commit made by Claude Code in this clone ends with `Assisted-by: Claude Code` and no `Co-Authored-By:` or `Claude-Session:` line (when the tracked file holds the block). - Lint and Build pass. ## Open proposals - 2026-11-17: fold this issue into #196 and close it (proposed in a review comment, not actioned).
Claude added the
Status
Ready for Agent
label 2026-11-15 09:30:03 +00:00
Author
Owner

The open question in the Notes is settled by Agent guard hook and permission allowlist: this file never holds permissions; hooks arrive later only through apm (or by hand under CODEOWNERS), not in this issue. Still attribution only here.

The open question in the Notes is settled by [Agent guard hook and permission allowlist](https://git.rkdr.net/Mortis/Kamino/issues/195): this file never holds `permissions`; `hooks` arrive later only through apm (or by hand under CODEOWNERS), not in this issue. Still attribution only here.
Claude added this to the Open to contributors milestone 2026-11-15 22:21:19 +00:00
Author
Owner

Review of the map (2026-11-17).

Changed: this issue is now blocked by the local-settings issue. Before, it was unblocked and Status/Ready for Agent, so an agent would have built the superseded version.

Proposed, not done: fold this issue into that one and close it.

Review of the map (2026-11-17). - The body says the file contains "only the attribution settings" and "Nothing else goes in this file". Both are superseded. [Committed skills as agent instructions: ownership, updates and required tools](https://git.rkdr.net/Mortis/Kamino/issues/208) adds `disableSkillShellExecution` to the same file, and [Making sure an agent actually loads the guidance](https://git.rkdr.net/Mortis/Kamino/issues/213), decision 8, makes both keys depend on a retest of `apm audit --ci`. - That retest is the first step of [chore(agents): ignore local Claude settings and commit apm-deployed hooks](https://git.rkdr.net/Mortis/Kamino/issues/196). If tracked keys survive the audit, add the `attribution` block to the file that issue creates. If not, this issue adds nothing to the tracked file; the per-user `attribution` values are named in `docs/contributing/setup.md` instead. Changed: this issue is now blocked by the local-settings issue. Before, it was unblocked and `Status/Ready for Agent`, so an agent would have built the superseded version. Proposed, not done: fold this issue into that one and close it.
Author
Owner

Body rewritten on 2026-11-20 to the final state of the comments above (final validation round of the map, #87 (comment)). The body is the spec; the earlier comments are history.

  • The tracked file is created by #196, which blocks this issue; this issue adds only the attribution block, and nothing if #196's retest fell back to per-user settings.
  • "Add a tracked .claude/settings.json" and "Nothing else goes in this file" are removed.
  • The proposal to fold this issue into #196 (2026-11-17) is listed under "Open proposals", not decided.
Body rewritten on 2026-11-20 to the final state of the comments above (final validation round of the map, https://git.rkdr.net/Mortis/Kamino/issues/87#issuecomment-12281). The body is the spec; the earlier comments are history. - The tracked file is created by #196, which blocks this issue; this issue adds only the attribution block, and nothing if #196's retest fell back to per-user settings. - "Add a tracked `.claude/settings.json`" and "Nothing else goes in this file" are removed. - The proposal to fold this issue into #196 (2026-11-17) is listed under "Open proposals", not decided.
Claude changed title from chore: track .claude/settings.json so Claude Code writes Assisted-by instead of Co-Authored-By to chore: add attribution settings to the tracked .claude/settings.json so Claude Code writes Assisted-by instead of Co-Authored-By 2026-11-20 21:53:04 +00:00
Defame1297 was assigned by Claude 2026-11-23 07:39:47 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#152