SurfSense/surfsense_backend/app/agents/chat/runtime
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
..
referenced_chat_context fix(chat): let search-space owners reference legacy null-creator chats 2026-06-23 18:30:15 +02:00
references search-kb: on-demand KB tool on the [n] spine; drop kb_matched_chunk_ids 2026-06-25 15:26:39 +02:00
__init__.py refactor(agents): consolidate chat runtime infra under chat/runtime 2026-06-05 13:19:24 +02:00
checkpointer.py refactor(agents): consolidate chat runtime infra under chat/runtime 2026-06-05 13:19:24 +02:00
errors.py refactor(agents): consolidate chat runtime infra under chat/runtime 2026-06-05 13:19:24 +02:00
llm_config.py chore: ran linting 2026-06-13 21:59:35 +05:30
mention_resolver.py agent: retire eager KB priority/planner path and its dead flags 2026-06-25 18:37:14 +02:00
path_resolver.py agent: retire eager KB priority/planner path and its dead flags 2026-06-25 18:37:14 +02:00
prompt_caching.py docs(agents): tighten docstrings and comments across agent module 2026-06-05 17:39:38 +02:00