ci: refuse CLAUDE.md files by hook and keep every AGENTS.md out of the Collection tarball #330

Merged
Defame1297 merged 6 commits from ci/244-refuse-claude-md into main 2026-11-23 19:55:36 +00:00
6 Commits
Author SHA1 Message Date
Defame1297 5d2f6ffad2 Merge branch 'main' into ci/244-refuse-claude-md
Build / build (pull_request) Successful in 16s
Molecule / molecule (pull_request) Successful in 2s
Lint / lint (pull_request) Successful in 1m23s
2026-11-23 19:53:12 +00:00
Defame1297 161e5bff63 ci(images): bump the ci image past main's 0.2.36
Build / build (pull_request) Successful in 16s
Molecule / molecule (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 13s
main raised ci to 0.2.36 for its own .pre-commit-config.yaml change, so
the hook change here needs 0.2.37.

Refs: #244

Assisted-by: Claude Code
2026-11-23 19:48:12 +00:00
Defame1297 d8f044740a Merge branch 'main' into ci/244-refuse-claude-md
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Failing after 1m3s
Molecule / molecule (pull_request) Successful in 2s
2026-11-23 19:27:59 +00:00
Defame1297 35e780cf79 ci(check_tarball): refuse AGENTS.md at any depth
Build / build (pull_request) Successful in 18s
Lint / lint (pull_request) Successful in 1m21s
Molecule / molecule (pull_request) Successful in 1s
An AGENTS.md under roles/ holds contributor rules; shipped in the
Collection, a consumer's agent reading an installed role would load
them. galaxy.yml build_ignore lists the current ones, and the archive
check now refuses any AGENTS.md, compared case-insensitively, as the
allow list behind that deny list. A root AGENTS.md was already refused
by ALLOWED_TOP.

Refs: #244

Assisted-by: Claude Code
2026-11-23 19:16:17 +00:00
Defame1297 b232887153 ci(images): bump the ci image for the hook change
.pre-commit-config.yaml is an input of the ci image, so the new hook
needs a new image version (0.2.35 -> 0.2.36).

Refs: #244

Assisted-by: Claude Code
2026-11-23 19:14:07 +00:00
Defame1297 de16995f35 ci(pre-commit): refuse CLAUDE.md files by hook
Claude Code reads CLAUDE.md in place of AGENTS.md, so a stray CLAUDE.md,
CLAUDE.local.md or .claude/CLAUDE.md at any depth leaves an agent without
this repository's guidance, and nothing reports it. A language: fail hook
refuses such a file at commit time.

Refs: #244

Assisted-by: Claude Code
2026-11-23 19:14:00 +00:00