SurfSense/surfsense_backend/tests/unit/middleware
CREDO23 2beafbdec8 agent: retire eager KB priority/planner path and its dead flags
The pull-based KB design (on-demand search_knowledge_base tool + pre-injected
workspace tree) fully replaced the old eager retrieval path. Remove its last
remnants:

- Delete KnowledgePriorityMiddleware (knowledge_search.py) and its tests.
- Drop the kb_priority state field + reducer default; trim
  KbContextProjectionMiddleware to project only workspace_tree_text.
- Remove the now-dead feature flags enable_kb_priority_preinjection and
  enable_kb_planner_runnable across backend (flags, route schema, tests,
  env examples) and frontend (settings toggle, zod schema).
- Scrub <priority_documents> and stale KnowledgePriorityMiddleware references
  from prompts, docstrings, and the ADR.

No functional change: nothing wrote kb_priority and neither flag gated live
behavior after the cutover. Full backend suite green (pre-existing unrelated
failures aside).
2026-06-25 18:37:14 +02:00
..
__init__.py feat: add unit tests for DedupHITLToolCallsMiddleware 2026-03-21 13:19:58 +05:30
test_b_filesystem_path_resolution.py chore: linting 2026-06-09 00:42:26 -07:00
test_b_filesystem_rm_rmdir_cloud.py Revert "Merge pull request #1523 from CREDO23/fix/chat-citations" 2026-06-22 22:55:29 -07:00
test_b_filesystem_system_prompt.py refactor(agents): introduce chat/ category; dissolve top-level agents/shared 2026-06-05 12:54:02 +02:00
test_dedup_hitl_tool_calls.py refactor(agents): introduce chat/ category; dissolve top-level agents/shared 2026-06-05 12:54:02 +02:00
test_filesystem_backends.py refactor(agents): introduce chat/ category; dissolve top-level agents/shared 2026-06-05 12:54:02 +02:00
test_kb_persistence_filesystem_parity.py Revert "Merge pull request #1523 from CREDO23/fix/chat-citations" 2026-06-22 22:55:29 -07:00
test_kb_persistence_revisions.py chore: linting 2026-06-09 00:42:26 -07:00
test_kb_postgres_read.py document-render: unify KB/web rendering on numbered [n] passages 2026-06-25 15:26:16 +02:00
test_knowledge_tree.py refactor(agents): consolidate chat runtime infra under chat/runtime 2026-06-05 13:19:24 +02:00
test_local_folder_backend.py refactor(agents): introduce chat/ category; dissolve top-level agents/shared 2026-06-05 12:54:02 +02:00
test_multi_root_local_folder_backend.py refactor(agents): introduce chat/ category; dissolve top-level agents/shared 2026-06-05 12:54:02 +02:00