docs(agents): write roles/AGENTS.md with the role rules

State every role rule in force with its reason and how it is held. Rules
whose control has not landed say "review until #N lands".

Keep the file out of the Collection tarball (build_ignore) until the
tarball check refuses AGENTS.md at any depth, and put it on the Molecule
selector's IGNORED list: no scenario reads it.

Closes #181

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
This commit is contained in:
Defame1297andClaude Opus 5.5 committed 2026-11-21 21:20:10 +00:00
1 parent 0385dbae02
commit e524eef4e8
4 files changed
+130

No files matched your search

@@ -125,6 +125,11 @@ class SelectTest(unittest.TestCase):
)
self.assertEqual(chosen, [])
def test_role_rules_for_agents_select_nothing(self):
# roles/AGENTS.md is contributor guidance that no scenario reads (it is not shipped).
chosen, _reason = sel.select(ALL, ["roles/AGENTS.md"])
self.assertEqual(chosen, [])
def test_ignored_does_not_mask_a_role(self):
chosen, _reason = sel.select(ALL, ["docs/x.md", "roles/docker/tasks/main.yml"])
self.assertEqual(chosen, ["roles/docker/molecule/default"])