From 718076bcf80c718fc13cc37f91e7183d2d728949 Mon Sep 17 00:00:00 2001 From: Marcello Alarcon Date: Sat, 23 May 2026 18:54:15 -0300 Subject: [PATCH] feat(brain-repo): add .claude/agent-memory to WATCH_PATHS Agents with durable memory (e.g. nova-product/clients_*, raven-critic/feedback_*) write to .claude/agent-memory/ but that path was not watched or mirrored by the Brain Repo, so their state was never versioned. Add .claude/agent-memory to WATCH_PATHS in both watcher.py (file system observer) and job_runner.py (_WATCH_PATHS used by the mirror pipeline) so custom-agent memory is included in every auto-sync. Applies to any EvoNexus instance running custom agents with persistent memory. --- dashboard/backend/brain_repo/job_runner.py | 2 +- dashboard/backend/brain_repo/watcher.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dashboard/backend/brain_repo/job_runner.py b/dashboard/backend/brain_repo/job_runner.py index 3099b558..cdd57be8 100644 --- a/dashboard/backend/brain_repo/job_runner.py +++ b/dashboard/backend/brain_repo/job_runner.py @@ -159,7 +159,7 @@ def _load_config_snapshot(flask_app, user_id: int) -> dict | None: # Pipeline steps — each checks cancel before doing work. # ──────────────────────────────────────────────────────────────────────── -_WATCH_PATHS = ["memory", "workspace", "customizations", "config-safe"] +_WATCH_PATHS = ["memory", "workspace", "customizations", "config-safe", ".claude/agent-memory"] # Relative paths (POSIX) that are NEVER mirrored into the brain repo. # `workspace/projects/` is where user-cloned git repos live (per the project's diff --git a/dashboard/backend/brain_repo/watcher.py b/dashboard/backend/brain_repo/watcher.py index 4006a6ab..f43b613e 100644 --- a/dashboard/backend/brain_repo/watcher.py +++ b/dashboard/backend/brain_repo/watcher.py @@ -17,6 +17,7 @@ "workspace", "customizations", "config-safe", + ".claude/agent-memory", ] EXCLUDE_PATHS = [