SurfSense/surfsense_backend/tests/unit
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
..
adapters test: bootstrap pytest environment for backend 2026-02-24 18:19:56 +02:00
agents agent: retire eager KB priority/planner path and its dead flags 2026-06-25 18:37:14 +02:00
automations refactor(auth): replace user variable with auth context in integration and unit tests 2026-06-20 03:11:00 +05:30
connector_indexers feat(refactor): refactor payment system to implement unified credit wallet. 2026-06-10 16:49:03 -07:00
connectors chore: ran linting 2026-04-07 05:55:39 +05:30
db feat: improved agent streaming 2026-04-29 07:20:31 -07:00
e2e_fakes test(backend): enhance Drive file filtering and add unit tests for _drive_list_files 2026-05-06 17:58:58 +05:30
etl_pipeline test(etl-cache): cover over-budget eviction selection 2026-06-12 11:50:52 +02:00
event_bus refactor: anonymous/free chat experience 2026-05-31 15:58:21 -07:00
gateway refactor(routes): replace user variable with auth context in tests 2026-06-20 03:34:40 +05:30
google_unification chore: ran linting 2026-05-09 05:28:09 +05:30
indexing_pipeline Revert "Merge pull request #1523 from CREDO23/fix/chat-citations" 2026-06-22 22:55:29 -07:00
middleware agent: retire eager KB priority/planner path and its dead flags 2026-06-25 18:37:14 +02:00
notifications test truncated document processing titles 2026-06-17 15:06:05 +02:00
observability Merge remote-tracking branch 'upstream/dev' into improvement-podcast-graph 2026-06-11 23:14:49 +02:00
podcasts Merge commit '7ce409c580' into dev 2026-06-16 22:48:14 -07:00
routes refactor(routes): replace user variable with auth context in tests 2026-06-20 03:34:40 +05:30
services Merge commit '7ce409c580' into dev 2026-06-16 22:48:14 -07:00
tasks citations: conversation-scoped registry with finalize-time [n] resolution 2026-06-25 15:26:25 +02:00
utils Merge pull request #1533 from Glodykajabika/test/blocknote-to-markdown-unit-tests 2026-06-23 02:25:42 -07:00
__init__.py test: bootstrap pytest environment for backend 2026-02-24 18:19:56 +02:00
test_error_contract.py chore: linting 2026-04-22 01:05:31 -07:00
test_obsidian_plugin_indexer.py chore: linting 2026-04-27 14:04:50 -07:00
test_pat_fail_closed_static.py test(auth): cover PAT fail-closed authorization 2026-06-20 02:13:05 +05:30