SurfSense/surfsense_backend/app
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
..
agents agent: retire eager KB priority/planner path and its dead flags 2026-06-25 18:37:14 +02:00
auth feat: resolve auth context from sessions and PATs 2026-06-19 20:26:46 +05:30
automations agent: retire eager KB priority/planner path and its dead flags 2026-06-25 18:37:14 +02:00
config Merge remote-tracking branch 'upstream/dev' into feat/api-key 2026-06-23 13:09:53 +05:30
connectors feat(etl-cache): route all file-based sources through the parse cache 2026-06-12 14:47:25 +02:00
etl_pipeline chore: linting 2026-06-17 22:31:36 -07:00
event_bus refactor(event_bus): wire catalog and events into package, rename builtin to events 2026-05-29 22:15:18 +02:00
file_storage refactor(routes): update document file access functions to use auth context instead of user variable 2026-06-20 02:53:07 +05:30
gateway refactor: streamline auth context usage across chat and automation routes 2026-06-19 21:04:21 +05:30
indexing_pipeline Revert "Merge pull request #1523 from CREDO23/fix/chat-citations" 2026-06-22 22:55:29 -07:00
notifications feat(auth): require sessions for user-scoped routes 2026-06-20 01:57:48 +05:30
observability feat(observability): add chunk reconcile metric and kill-switch flag 2026-06-12 18:52:57 +02:00
podcasts refactor(routes): replace user variable with auth context in tests 2026-06-20 03:34:40 +05:30
prompts prompts: remove orphaned system_prompt_composer surface 2026-06-25 18:37:04 +02:00
retriever Revert "Merge pull request #1523 from CREDO23/fix/chat-citations" 2026-06-22 22:55:29 -07:00
routes agent: retire eager KB priority/planner path and its dead flags 2026-06-25 18:37:14 +02:00
schemas agent: retire eager KB priority/planner path and its dead flags 2026-06-25 18:37:14 +02:00
services feat: enforce API access for chat routes 2026-06-19 20:28:02 +05:30
tasks agent: retire eager KB priority/planner path and its dead flags 2026-06-25 18:37:14 +02:00
templates feat: update report generation and export capabilities to support multiple formats (PDF, DOCX, HTML, LaTeX, EPUB, ODT, plain text) across documentation and backend 2026-03-09 18:41:21 -07:00
utils Merge remote-tracking branch 'upstream/dev' into feat/api-key 2026-06-23 13:09:53 +05:30
__init__.py feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
app.py feat(auth): add PAT fail-closed bootstrap allowlist 2026-06-20 01:57:37 +05:30
celery_app.py Merge remote-tracking branch 'upstream/dev' into features/documents-injestion-layered-cached 2026-06-14 11:30:33 +02:00
db.py Merge remote-tracking branch 'upstream/dev' into feat/api-key 2026-06-23 13:09:53 +05:30
exceptions.py feat: add processing mode support for document uploads and ETL pipeline, improded error handling ux 2026-04-14 21:26:00 -07:00
rate_limiter.py try: ip fix for cludflare 2026-04-16 02:13:52 -07:00
session_events.py refactor: anonymous/free chat experience 2026-05-31 15:58:21 -07:00
users.py feat(auth): add PAT fail-closed bootstrap allowlist 2026-06-20 01:57:37 +05:30
zero_publication.py feat(migration): evolve podcast lifecycle by detaching from zero_publication and updating column handling 2026-06-11 16:17:14 -07:00