Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions agents/conductors/clone/_clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@
".github/*", # wiki-currency / citation workflows
"wiki/README.md", "wiki/project/*", # project wiki rules + profile template
"scripts/AGENTS.md", "scripts/README.md",
# Legacy per-tool pointer files, still present in older references until
# they are retired (harnesses now read AGENTS.md natively). Matched only
# when present, so their absence is harmless.
"CLAUDE.md", "scripts/CLAUDE.md",
# Harness mirrors of the generic machinery (.claude/, .codex/, .gemini/):
".claude/hooks/*", ".claude/settings.json", ".codex/hooks.json", ".gemini/*",
".claude/skills/_*", ".claude/skills/start-new-project*",
Expand Down
5 changes: 2 additions & 3 deletions bin/regroup_workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ def plan(root, state, bundles_root=None, manifest_root=None):
# These are local, workspace-owned paths, not versioned source or shell RCs.
config_paths = list((root / '.idea').glob('*.xml')) + list((root / '.idea').glob('*.iml'))
config_paths += [root / '.claude/settings.json', root / '.codex/hooks.json',
root / 'AGENTS.md',
root / 'CLAUDE.md'] # legacy pointer; skipped when absent
root / 'AGENTS.md']
for path in config_paths:
if not path.is_file() or path.is_symlink():
continue
Expand All @@ -149,7 +148,7 @@ def plan(root, state, bundles_root=None, manifest_root=None):
after = re.sub(re.escape(old) + r'(?=[/"\s:<]|$)', lambda _: new, after)
for prefix in ('$PROJECT_DIR$/', '$MODULE_DIR$/', './', '${CLAUDE_PROJECT_DIR}/', '$CLAUDE_PROJECT_DIR/', '${PYAUTO_ROOT}/', '$PYAUTO_ROOT/'):
after = re.sub(re.escape(prefix + name) + r'(?=[/"\s<]|$)', lambda _, p=prefix, r=relative: p+r, after)
if path.name in ('AGENTS.md', 'CLAUDE.md'):
if path.name == 'AGENTS.md':
after = re.sub(r'(?<![\w/])' + re.escape(name) + r'(?=/)', lambda _, r=relative: r, after)
if path == root / '.claude/settings.json':
settings = json.loads(after)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_memory_surfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ def test_seed_pages_are_not_a_recall_surface(tmp_path):
assert all("seed/" not in p["page"] for p in d["pages"])


def test_canonical_schema_is_recalled_instead_of_claude_adapter(tmp_path):
def test_canonical_schema_is_recalled_instead_of_tool_adapter(tmp_path):
m = _memory_repo(tmp_path)
(m / "wiki/AGENTS.md").write_text("# Shared schema\ncanonical-schema-marker\n")
# A leftover per-tool pointer file must never displace the shared schema.
(m / "wiki/CLAUDE.md").write_text("@AGENTS.md\n")
# A per-tool adapter file beside it must never displace the shared schema.
(m / "wiki/GEMINI.md").write_text("@AGENTS.md\n")
digest = _memory.digest("canonical-schema-marker", m, None, None, limit=8)
assert [p["page"] for p in digest["pages"]] == ["wiki/AGENTS.md"]
root_files = {str(f.relative_to(m)) for label, _, f in _memory.surfaces(m, None, None)
if label == "PyAutoMemory/root"}
assert "wiki/AGENTS.md" in root_files
assert "wiki/CLAUDE.md" not in root_files
assert "wiki/GEMINI.md" not in root_files
Loading