From c7960c00ad4ccf9ed1f4e32cb809c1f52b584a01 Mon Sep 17 00:00:00 2001 From: Luke Maj Date: Mon, 23 Nov 2026 17:08:01 +0100 Subject: [PATCH] fix(tests): isolate loader test from the machine's global links The Project Direction loader test isolated Codex and Grok homes but not Claude, OpenCode or Muse, so on a machine with a real Muse link and PREFERENCES.md the muse subtest crossed the 16,384-byte stdout limit and reported that limit instead of the 10,000-byte one. Closes #277. Co-Authored-By: Claude Opus 5.5 --- .claude-plugin/plugin.json | 2 +- .codex-plugin/plugin.json | 2 +- .grok-plugin/plugin.json | 2 +- .muse-plugin/plugin.json | 2 +- CHANGELOG.md | 6 ++++++ VERSION | 2 +- tests/test_project_direction_loader.py | 5 +++++ tools/versionctl/pyproject.toml | 2 +- 8 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 5fbc181..a860525 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentsmd", - "version": "17.6.1", + "version": "17.6.2", "description": "Portable agent rules, Project Direction, Delivery System profiles, owned workflow Skills, and deterministic version control.", "author": { "name": "lukaszmaj" diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index a7fd59b..c3e9694 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentsmd", - "version": "17.6.1", + "version": "17.6.2", "description": "Portable agent rules, Project Direction, Delivery System profiles, owned workflow Skills, and deterministic version control.", "author": { "name": "lukaszmaj", diff --git a/.grok-plugin/plugin.json b/.grok-plugin/plugin.json index d66e1db..8d271b7 100644 --- a/.grok-plugin/plugin.json +++ b/.grok-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentsmd", - "version": "17.6.1", + "version": "17.6.2", "description": "Portable agent rules, Project Direction, Delivery System profiles, owned workflow Skills, and deterministic version control.", "author": { "name": "lukaszmaj" diff --git a/.muse-plugin/plugin.json b/.muse-plugin/plugin.json index 0372513..df340a8 100644 --- a/.muse-plugin/plugin.json +++ b/.muse-plugin/plugin.json @@ -2,7 +2,7 @@ "schemaVersion": 1, "name": "agentsmd", "displayName": "AgentsMD", - "version": "17.6.1", + "version": "17.6.2", "description": "Portable agent rules, Project Direction, Delivery System profiles, owned workflow Skills, and deterministic version control.", "compat": { "source": "native", diff --git a/CHANGELOG.md b/CHANGELOG.md index 27dc85f..1ced22e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All completed repository versions are recorded here. Release entries follow SemVer and identify one user-consumable repository state. +## [17.6.2] - 2026-11-23 + +### Changed + +- Isolate the Project Direction loader test from the machine's Claude, OpenCode and Muse global links so it passes on every machine (#277) + ## [17.6.1] - 2026-11-23 ### Changed diff --git a/VERSION b/VERSION index 473655e..b3b459a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -17.6.1 +17.6.2 diff --git a/tests/test_project_direction_loader.py b/tests/test_project_direction_loader.py index f4ceddf..f1a0aad 100644 --- a/tests/test_project_direction_loader.py +++ b/tests/test_project_direction_loader.py @@ -140,6 +140,11 @@ def invoke( environment["CODEX_HOME"] = str(self.base / "codex-home") # Never let a real ~/.grok answer for the fixture host. environment["GROK_HOME"] = str(self.grok_home) + # Nor a real Claude, OpenCode or Muse global link: it pulls in the + # machine's preferences and changes the hook's size (#277). + environment["CLAUDE_CONFIG_DIR"] = str(self.base / "claude-home") + environment["OPENCODE_CONFIG_DIR"] = str(self.base / "opencode-home") + environment["XDG_CONFIG_HOME"] = str(self.base / "xdg-config") environment.pop("AGENTSMD_HOST", None) # A real Grok hook process carries no AGENTSMD_HOST, so the marker # resolves the host. Other hosts keep the Codex selection. diff --git a/tools/versionctl/pyproject.toml b/tools/versionctl/pyproject.toml index cc65d4a..dc564a9 100644 --- a/tools/versionctl/pyproject.toml +++ b/tools/versionctl/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "toolboxmd-versionctl" -version = "17.6.1" +version = "17.6.2" description = "Deterministic repository version mechanics for coding agents" readme = "README.md" requires-python = ">=3.11"