From b258c83205dea849bf18443e4ccfa1ec23dbabe4 Mon Sep 17 00:00:00 2001 From: saagpatel Date: Mon, 13 Jul 2026 23:49:19 -0700 Subject: [PATCH] fix(projection): preserve RAG planning-row exclusion --- config/project-registry-overrides.json | 1 + tests/test_project_registry.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/config/project-registry-overrides.json b/config/project-registry-overrides.json index 89cf67b..15eec43 100644 --- a/config/project-registry-overrides.json +++ b/config/project-registry-overrides.json @@ -61,6 +61,7 @@ "notion_projection_only_rows": { "app": "local runtime/app shell placeholder; not a portfolio-truth repo", "claude-code-harness": "local agent harness projection; outside repo-root truth", + "RAG Knowledge Base": "notion planning row; not a portfolio-truth repo", "Sandbox Local Portfolio Project": "actuation sandbox fixture row", "SecondBrain": "knowledge vault under /Users/d/Documents; not a /Users/d/Projects repo" }, diff --git a/tests/test_project_registry.py b/tests/test_project_registry.py index 46c7975..f7ae1c9 100644 --- a/tests/test_project_registry.py +++ b/tests/test_project_registry.py @@ -172,6 +172,18 @@ def test_projection_policy_is_published_from_defaults(): assert policy["notion_truth_shadow_rows"]["agent-bridge-launch"] == "agent-bridge" +def test_configured_projection_policy_preserves_rag_planning_row_exclusion(): + registry = build_project_registry( + SNAPSHOT, + notion_snapshot_path=None, + overrides_config_path=Path("config/project-registry-overrides.json"), + ) + + assert registry["projection_policy"]["notion_projection_only_rows"][ + "RAG Knowledge Base" + ] == "notion planning row; not a portfolio-truth repo" + + def test_resolve_returns_none_for_non_projects(): registry = build_project_registry(SNAPSHOT, overrides_config_path=None) index = build_index(registry)