From bfdbc9b42b55a0682e968d6dce0ea166a83a3f90 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Mon, 23 Nov 2026 10:34:41 +0000 Subject: [PATCH 1/2] chore(agents): make Claude Code write Assisted-by instead of Co-Authored-By Set attribution in the tracked .claude/settings.json: commit and pull request attribution become "Assisted-by: Claude Code", and sessionUrl is false so no Claude-Session trailer or session link is added. The setting takes only a fixed string, so the model is not named. Closes #152 Assisted-by: Claude Code --- .claude/settings.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.claude/settings.json b/.claude/settings.json index aa7b7a0..bfbe938 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -1,3 +1,8 @@ { + "attribution": { + "commit": "Assisted-by: Claude Code", + "pr": "Assisted-by: Claude Code", + "sessionUrl": false + }, "disableSkillShellExecution": true } -- 2.43.0 From fa661be5c28c023b6579dd2797b02fa329622895 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Mon, 23 Nov 2026 10:41:45 +0000 Subject: [PATCH 2/2] ci(molecule): skip scenarios for a change under .claude/ only No scenario reads .claude/: Claude Code reads it on a contributor's machine. Add it to the IGNORED list beside apm.yml, so a change to the agent settings or apm-deployed hooks no longer runs every scenario. Assisted-by: Claude Code --- scripts/select_molecule_scenarios.py | 1 + tests/scripts/test_select_molecule_scenarios.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/scripts/select_molecule_scenarios.py b/scripts/select_molecule_scenarios.py index c59f8ab..916102c 100644 --- a/scripts/select_molecule_scenarios.py +++ b/scripts/select_molecule_scenarios.py @@ -85,6 +85,7 @@ IGNORED = ( "ruff.toml", "apm.yml", "apm.lock.yaml", + ".claude/*", "tests/sanity/*", "tests/scripts/*", "images/*", diff --git a/tests/scripts/test_select_molecule_scenarios.py b/tests/scripts/test_select_molecule_scenarios.py index 9c40eaf..8e68537 100644 --- a/tests/scripts/test_select_molecule_scenarios.py +++ b/tests/scripts/test_select_molecule_scenarios.py @@ -172,6 +172,13 @@ class SelectTest(unittest.TestCase): ) self.assertEqual(chosen, []) + def test_agent_tool_settings_select_nothing(self): + # Claude Code reads .claude/ on a contributor's machine; no scenario reads it. + chosen, _reason = self.select( + [".claude/settings.json", ".claude/hooks/guard.sh"], + ) + self.assertEqual(chosen, []) + def test_role_readme_selects_nothing(self): # A role's README is documentation; its scenarios and its users' do not read it. chosen, _reason = self.select(["roles/docker/README.md"]) -- 2.43.0