The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(profiles): an owned category with DESCRIPTION.md still merges per skill
kshitijk4poor8fecaaceceeb
diff --git a/hermes_cli/profile_distribution.py b/hermes_cli/profile_distribution.pyindex 3c486935e34..c5ec11f5785 100644--- a/hermes_cli/profile_distribution.py+++ b/hermes_cli/profile_distribution.py@@ -442,9 +442,9 @@ def _refuse_symlink(path: Path) -> None:def _is_container(path: Path) -> bool:- """A shipped directory holding no files (a skills category) is a container of roots,- not a root itself; a skill dir always holds at least SKILL.md."""- return path.is_dir() and not any(p.is_file() for p in path.iterdir())+ """A shipped directory holding no files other than its DESCRIPTION.md (a skills+ category) is a container of roots, not a root itself; a skill dir always holds SKILL.md."""+ return path.is_dir() and not any(p.is_file() and p.name != "DESCRIPTION.md" for p in path.iterdir())def _merge_dir(src: Path, dest: Path, rel: Tuple[str, ...]) -> None:diff --git a/tests/hermes_cli/test_profile_distribution.py b/tests/hermes_cli/test_profile_distribution.pyindex f04cb4dd7dd..862574fca13 100644--- a/tests/hermes_cli/test_profile_distribution.py+++ b/tests/hermes_cli/test_profile_distribution.py@@ -471,6 +471,7 @@ class TestUpdate:staged = _make_staging_dir(profile_env, name, manifest=mf)(staged / "skills" / "research" / "web-search").mkdir(parents=True)(staged / "skills" / "research" / "web-search" / "SKILL.md").write_text("author skill\n", encoding="utf-8")+ (staged / "skills" / "research" / "DESCRIPTION.md").write_text("research skills\n", encoding="utf-8")return staged, install_distribution(str(staged), name=name)def test_an_owned_category_keeps_skills_the_installer_added_to_it(self, profile_env):@@ -494,6 +495,7 @@ class TestUpdate:assert (research / "web-search" / "SKILL.md").read_text(encoding="utf-8") == "author v2\n"assert not (research / "web-search" / "stale.txt").exists() # an owned root is still replaced wholeassert (research / "arxiv" / "SKILL.md").exists()+ assert (research / "DESCRIPTION.md").read_text(encoding="utf-8") == "research skills\n"def test_an_owned_category_refuses_a_symlinked_subcategory_before_writing(self, profile_env, tmp_path):staged, plan = self._owned_category(profile_env, "rb")