Adds the attribution block to the tracked .claude/settings.json, next to the disableSkillShellExecution key that #196 added. It applies decision 9 of #94: commit and pr are set to Assisted-by: Claude Code, and sessionUrl is false, so Claude Code adds no Co-Authored-By:, no Claude-Session: trailer and no session link. The setting accepts only a fixed string, so the model is not named; [:<model>] is optional under the rule in docs/contributing/ai-assistance.md.
PR #297 recorded #196's retest as the pass case: apm audit --ci on apm-cli 0.36.1 passed with this exact block in the file. So the block goes in the tracked file rather than in per-user settings.
Also in this pull request (maintainer's request):.claude/* is added to the IGNORED list of scripts/select_molecule_scenarios.py, beside apm.yml, with a test. No scenario, role, workflow or script reads .claude/, so a change there no longer runs every Molecule scenario. The workflow runs the selector from main's copy, so this applies from the next pull request on; this one still runs everything.
Not changed:
REUSE.toml: its path = "**" default already covers the file.
No changelog fragment: .claude is in galaxy.ymlbuild_ignore, and the selector is CI tooling, so consumers see nothing.
Nothing else under .claude/ is tracked. skills/, agents/ and settings.local.json stay ignored.
Verified
python3 -m json.tool .claude/settings.json: the file is valid JSON.
python3 -m unittest discover -s tests/scripts: 243 tests OK. The new test_agent_tool_settings_select_nothing failed before the IGNORED entry was added and passes after it.
pre-commit run --all-files: exit 0.
ansible-test sanity (pre-push hook): passed on both pushes.
The setting takes effect. In the session that wrote this change, Claude Code's attribution instruction switched to Assisted-by: Claude Code, with no Co-Authored-By: or Claude-Session: line, once the block was in the file. It switched back to the defaults while the edit was stashed. Both commits end with Assisted-by: Claude Code only.
code-review skill on the settings commit, standards and spec axes: no findings.
Not verified
apm audit --ci on this branch. With the pinned 0.36.1, the audit fails the same way on main and on this branch: skill-subset-consistency fails, and drift is skipped. Both come from stale skills deployed locally by apm 0.28.0, which apm install refuses to overwrite. This change does not cause it. The drift result for this block comes from #297's retest, not from a rerun here.
The acceptance check in a fresh session. No commit was made from a Claude Code session started after this file was in place; the live switch above is the evidence instead.
The narrowed Molecule selection in CI: it is first seen on a pull request after this one merges.
CI Lint, Build and Molecule: they run on this pull request.
I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.
Assisted-by: Claude Code
## What and why
Closes #152
Adds the `attribution` block to the tracked `.claude/settings.json`, next to the `disableSkillShellExecution` key that #196 added. It applies decision 9 of #94: `commit` and `pr` are set to `Assisted-by: Claude Code`, and `sessionUrl` is `false`, so Claude Code adds no `Co-Authored-By:`, no `Claude-Session:` trailer and no session link. The setting accepts only a fixed string, so the model is not named; `[:<model>]` is optional under the rule in `docs/contributing/ai-assistance.md`.
PR #297 recorded #196's retest as the pass case: `apm audit --ci` on apm-cli 0.36.1 passed with this exact block in the file. So the block goes in the tracked file rather than in per-user settings.
**Also in this pull request (maintainer's request):** `.claude/*` is added to the IGNORED list of `scripts/select_molecule_scenarios.py`, beside `apm.yml`, with a test. No scenario, role, workflow or script reads `.claude/`, so a change there no longer runs every Molecule scenario. The workflow runs the selector from `main`'s copy, so this applies from the next pull request on; this one still runs everything.
**Not changed:**
- `REUSE.toml`: its `path = "**"` default already covers the file.
- No changelog fragment: `.claude` is in `galaxy.yml` `build_ignore`, and the selector is CI tooling, so consumers see nothing.
- Nothing else under `.claude/` is tracked. `skills/`, `agents/` and `settings.local.json` stay ignored.
## Verified
- `python3 -m json.tool .claude/settings.json`: the file is valid JSON.
- `python3 -m unittest discover -s tests/scripts`: 243 tests OK. The new `test_agent_tool_settings_select_nothing` failed before the IGNORED entry was added and passes after it.
- `pre-commit run --all-files`: exit 0.
- `ansible-test sanity` (pre-push hook): passed on both pushes.
- **The setting takes effect.** In the session that wrote this change, Claude Code's attribution instruction switched to `Assisted-by: Claude Code`, with no `Co-Authored-By:` or `Claude-Session:` line, once the block was in the file. It switched back to the defaults while the edit was stashed. Both commits end with `Assisted-by: Claude Code` only.
- `code-review` skill on the settings commit, standards and spec axes: no findings.
## Not verified
- **`apm audit --ci` on this branch.** With the pinned 0.36.1, the audit fails the same way on `main` and on this branch: `skill-subset-consistency` fails, and drift is skipped. Both come from stale skills deployed locally by apm 0.28.0, which `apm install` refuses to overwrite. This change does not cause it. The drift result for this block comes from #297's retest, not from a rerun here.
- **The acceptance check in a fresh session.** No commit was made from a Claude Code session started after this file was in place; the live switch above is the evidence instead.
- **The narrowed Molecule selection in CI**: it is first seen on a pull request after this one merges.
- **CI Lint, Build and Molecule**: they run on this pull request.
---
- [x] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none.
Assisted-by: Claude Code
Claude
added this to the Open to contributors milestone 2026-11-23 10:36:10 +00:00
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
CODEOWNERS rules
requested review from Defame1297 2026-11-23 10:36:11 +00:00
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
Closes #152
Adds the
attributionblock to the tracked.claude/settings.json, next to thedisableSkillShellExecutionkey that #196 added. It applies decision 9 of #94:commitandprare set toAssisted-by: Claude Code, andsessionUrlisfalse, so Claude Code adds noCo-Authored-By:, noClaude-Session:trailer and no session link. The setting accepts only a fixed string, so the model is not named;[:<model>]is optional under the rule indocs/contributing/ai-assistance.md.PR #297 recorded #196's retest as the pass case:
apm audit --cion apm-cli 0.36.1 passed with this exact block in the file. So the block goes in the tracked file rather than in per-user settings.Also in this pull request (maintainer's request):
.claude/*is added to the IGNORED list ofscripts/select_molecule_scenarios.py, besideapm.yml, with a test. No scenario, role, workflow or script reads.claude/, so a change there no longer runs every Molecule scenario. The workflow runs the selector frommain's copy, so this applies from the next pull request on; this one still runs everything.Not changed:
REUSE.toml: itspath = "**"default already covers the file..claudeis ingalaxy.ymlbuild_ignore, and the selector is CI tooling, so consumers see nothing..claude/is tracked.skills/,agents/andsettings.local.jsonstay ignored.Verified
python3 -m json.tool .claude/settings.json: the file is valid JSON.python3 -m unittest discover -s tests/scripts: 243 tests OK. The newtest_agent_tool_settings_select_nothingfailed before the IGNORED entry was added and passes after it.pre-commit run --all-files: exit 0.ansible-test sanity(pre-push hook): passed on both pushes.Assisted-by: Claude Code, with noCo-Authored-By:orClaude-Session:line, once the block was in the file. It switched back to the defaults while the edit was stashed. Both commits end withAssisted-by: Claude Codeonly.code-reviewskill on the settings commit, standards and spec axes: no findings.Not verified
apm audit --cion this branch. With the pinned 0.36.1, the audit fails the same way onmainand on this branch:skill-subset-consistencyfails, and drift is skipped. Both come from stale skills deployed locally by apm 0.28.0, whichapm installrefuses to overwrite. This change does not cause it. The drift result for this block comes from #297's retest, not from a rerun here.NOTICEandREUSE.toml, or there is none.Assisted-by: Claude Code
New commits pushed, approval review dismissed automatically according to repository settings