summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorsommerfeld <sommerfeld@sommerfeld.dev>2026-09-26 22:23:04 +0100
committersommerfeld <sommerfeld@sommerfeld.dev>2026-09-26 22:23:04 +0100
commit78a74ad7b930b2136dbb4b77a0ed545141b4ad2e (patch)
tree980d736b0a7d118d314a1d6edfd628592aa495b1 /tests
parentb613ae6e9eb764b1b29b3e383644d494e9604e00 (diff)
downloaddotfiles-78a74ad7b930b2136dbb4b77a0ed545141b4ad2e.tar.gz
dotfiles-78a74ad7b930b2136dbb4b77a0ed545141b4ad2e.tar.bz2
dotfiles-78a74ad7b930b2136dbb4b77a0ed545141b4ad2e.zip
Refresh shared agent policy and delegation roles
Diffstat (limited to 'tests')
-rw-r--r--tests/test_canonical.py18
1 files changed, 18 insertions, 0 deletions
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(