Skip to content

Commit be2fdf9

Browse files
illeatmyhatclaude
andcommitted
refactor(platform-integrations): ship audit_recall.py from lib/ not a top-level scripts/ dir
audit_recall.py is a self-contained, model-invoked executable; it lived in a new top-level plugin-source/scripts/ dir that existed only for this one file. Move it next to the shared lib (plugin-source/lib/ -> lib/evolve-lite/ on every host) so it ships alongside entity_io/audit/config instead of carving out a parallel scripts/ tree. The installed, model-facing path is UNCHANGED: the installer still drops it at ~/.{claude,codex,bob}/evolve-lite/audit_recall.py (no lib/ segment) and EVOLVE.md still invokes it there. Only the rendered SOURCE location moved; installer source paths and three test path constants updated to match. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent fb8abec commit be2fdf9

9 files changed

Lines changed: 11 additions & 10 deletions

File tree

platform-integrations/bob/evolve-lite/scripts/audit_recall.py renamed to platform-integrations/bob/evolve-lite/lib/evolve-lite/audit_recall.py

File renamed without changes.

platform-integrations/claude/plugins/evolve-lite/scripts/audit_recall.py renamed to platform-integrations/claude/plugins/evolve-lite/lib/evolve-lite/audit_recall.py

File renamed without changes.

platform-integrations/claw-code/plugins/evolve-lite/scripts/audit_recall.py renamed to platform-integrations/claw-code/plugins/evolve-lite/lib/evolve-lite/audit_recall.py

File renamed without changes.

platform-integrations/codex/plugins/evolve-lite/scripts/audit_recall.py renamed to platform-integrations/codex/plugins/evolve-lite/lib/evolve-lite/audit_recall.py

File renamed without changes.

platform-integrations/install.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -816,9 +816,9 @@ class BobInstaller:
816816
# install the script once at that GLOBAL absolute path (matching
817817
# the always-global rules file). Prefer the rendered bob copy;
818818
# fall back to the shared plugin-source original.
819-
audit_src = bob_source_lite / "scripts" / AUDIT_SCRIPT
819+
audit_src = bob_source_lite / "lib" / "evolve-lite" / AUDIT_SCRIPT
820820
if not self.ops.is_dry_run and not audit_src.is_file():
821-
audit_src = Path(source_dir) / "plugin-source" / "scripts" / AUDIT_SCRIPT
821+
audit_src = Path(source_dir) / "plugin-source" / "lib" / AUDIT_SCRIPT
822822
audit_file = self._audit_script_file()
823823
if not self.ops.is_dry_run:
824824
self.ops.atomic_write_text(audit_file, audit_src.read_text())
@@ -950,9 +950,9 @@ class ClaudeInstaller:
950950
# `~/.claude/evolve-lite/audit_recall.py`, so install it at that GLOBAL
951951
# absolute path (mirroring CodexInstaller). Prefer the rendered claude
952952
# copy; fall back to the shared plugin-source original.
953-
audit_src = plugin_source / "scripts" / AUDIT_SCRIPT
953+
audit_src = plugin_source / "lib" / "evolve-lite" / AUDIT_SCRIPT
954954
if not audit_src.is_file():
955-
audit_src = Path(source_dir) / "plugin-source" / "scripts" / AUDIT_SCRIPT
955+
audit_src = Path(source_dir) / "plugin-source" / "lib" / AUDIT_SCRIPT
956956
audit_text = "" if self.ops.is_dry_run and not audit_src.is_file() else audit_src.read_text()
957957
audit_file = Path.home() / ".claude" / "evolve-lite" / AUDIT_SCRIPT
958958
self.ops.atomic_write_text(audit_file, audit_text)
@@ -1177,9 +1177,9 @@ class CodexInstaller:
11771177
# install the script at that GLOBAL absolute path (matching how the
11781178
# always-on instructions live globally). Prefer the rendered codex
11791179
# copy; fall back to the shared plugin-source original.
1180-
audit_src = plugin_source / "scripts" / AUDIT_SCRIPT
1180+
audit_src = plugin_source / "lib" / "evolve-lite" / AUDIT_SCRIPT
11811181
if not audit_src.is_file():
1182-
audit_src = Path(source_dir) / "plugin-source" / "scripts" / AUDIT_SCRIPT
1182+
audit_src = Path(source_dir) / "plugin-source" / "lib" / AUDIT_SCRIPT
11831183
audit_text = "" if self.ops.is_dry_run and not audit_src.is_file() else audit_src.read_text()
11841184
audit_file = Path.home() / ".codex" / "evolve-lite" / AUDIT_SCRIPT
11851185
self.ops.atomic_write_text(audit_file, audit_text)

tests/platform_integrations/test_audit_recall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import pytest
1515

1616

17-
_SCRIPT = Path(__file__).parent.parent.parent / "plugin-source" / "scripts" / "audit_recall.py"
17+
_SCRIPT = Path(__file__).parent.parent.parent / "plugin-source" / "lib" / "audit_recall.py"
1818

1919

2020
def _run(cwd, args, env_overrides):

tests/platform_integrations/test_codex.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ def test_install_creates_expected_files(
7070
file_assertions.assert_file_exists(plugin_dir / "skills" / "evolve-lite" / "learn" / "scripts" / "save_entities.py")
7171
file_assertions.assert_file_exists(plugin_dir / "skills" / "evolve-lite" / "recall" / "scripts" / "retrieve_entities.py")
7272
file_assertions.assert_file_exists(plugin_dir / "lib" / "evolve-lite" / "entity_io.py")
73-
# The recall-audit script ships in the plugin tree too (root-level scripts/).
74-
file_assertions.assert_file_exists(plugin_dir / "scripts" / "audit_recall.py")
73+
# The recall-audit script ships in the plugin tree too, alongside the
74+
# shared lib (lib/evolve-lite/).
75+
file_assertions.assert_file_exists(plugin_dir / "lib" / "evolve-lite" / "audit_recall.py")
7576

7677
marketplace_path = temp_project_dir / ".agents" / "plugins" / "marketplace.json"
7778
file_assertions.assert_valid_json(marketplace_path)

tests/platform_integrations/test_end_to_end_claude.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
_REPO_ROOT = Path(__file__).parent.parent.parent
3737
_PLUGIN = _REPO_ROOT / "platform-integrations/claude/plugins/evolve-lite"
3838
ADAPT_SCRIPT = _PLUGIN / "skills/evolve-lite/adapt-memory/scripts/adapt_memory.py"
39-
AUDIT_SCRIPT = _PLUGIN / "scripts/audit_recall.py"
39+
AUDIT_SCRIPT = _PLUGIN / "lib/evolve-lite/audit_recall.py"
4040
PROVENANCE_SCRIPT = _PLUGIN / "skills/evolve-lite/provenance/scripts/provenance.py"
4141

4242
SID = "claude-e2e-session-0001"

0 commit comments

Comments
 (0)