From 78a74ad7b930b2136dbb4b77a0ed545141b4ad2e Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Sat, 26 Sep 2026 22:23:04 +0100 Subject: Refresh shared agent policy and delegation roles --- tests/test_canonical.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests') diff --git a/tests/test_canonical.py b/tests/test_canonical.py index 317fe98..832b11b 100644 --- a/tests/test_canonical.py +++ b/tests/test_canonical.py @@ -150,6 +150,24 @@ class PackageTests(unittest.TestCase): class RoleTests(unittest.TestCase): + def test_all_named_agents_receive_shared_instructions(self): + files = subprocess.check_output( + self.command("canonical", "managed", "--include=files,symlinks"), + text=True, + ).splitlines() + self.assertIn(".codex/AGENTS.md", files) + for source, target, link in ( + ("dot_claude", ".claude", "CLAUDE.md"), + ("dot_copilot", ".copilot", "copilot-instructions.md"), + ("dot_hermes", ".hermes", "SOUL.md"), + ("dot_omp/agent", ".omp/agent", "AGENTS.md"), + ("dot_config/opencode", ".config/opencode", "AGENTS.md"), + ): + self.assertIn(f"{target}/{link}", files) + relative = (ROOT / source / f"symlink_{link}").read_text().strip() + expected = "../" * len(Path(target).parts) + ".codex/AGENTS.md" + self.assertEqual(relative, expected) + def test_canonical_zellij_uses_zsh_without_changing_other_roles(self): for role in ("canonical", "host", "vm"): rendered = subprocess.check_output( -- cgit v1.3.1