SurfSense/surfsense_backend/tests/integration
CREDO23 8ae190a11d refactor(agents): move MAC middleware impls out of shared kernel
knowledge_search, memory_injection and scoped_model_fallback no longer
belong in the cross-agent kernel (app/agents/shared/middleware): they are
consumed only inside multi_agent_chat. Relocate each impl next to the
builder that uses it:

- knowledge_search.py -> multi_agent_chat/shared/middleware/ (genuinely
  shared: its _render_priority_message feeds kb_context_projection, used by
  both the main agent and the KB subagent)
- memory_injection.py -> multi_agent_chat/shared/middleware/ (beside its
  memory.py builder)
- scoped_model_fallback.py -> multi_agent_chat/shared/middleware/resilience/
  (beside fallback.py/bundle.py)

Impls moved verbatim (git rename). Builders/consumers now import the local
sibling; main_agent knowledge_priority imports the new shared path; shared
middleware barrel trimmed.

Tests: repoint imports; convert the knowledge_search monkeypatch targets
from brittle dotted-string form to object-based patching (monkeypatch.setattr
on the imported module), which is robust to import ordering. No behavior
change.
2026-06-05 12:04:31 +02:00
..
agents/multi_agent_chat refactor(agents): group filesystem backends under filesystem/backends/ 2026-06-05 11:02:26 +02:00
chat feat: improved document, folder mentions rendering 2026-05-09 22:15:51 -07:00
composio fix(tests): improve composio module hijack in integration tests 2026-05-13 00:44:20 +05:30
document_upload test: update Stripe and Google Calendar integration tests to use ComposioService 2026-05-16 21:13:17 +05:30
google_unification refactor(agents): colocate KB-search tool with its sole consumer; fix report ImportError 2026-06-05 10:28:56 +02:00
harness feat: updated agent harness 2026-04-28 09:22:19 -07:00
indexing_pipeline test: refactor Gmail indexer tests to utilize ComposioService and hybrid chunking 2026-05-16 21:26:40 +05:30
notifications test: add notifications integration behavior guard 2026-06-03 21:53:06 +02:00
retriever refactor(agents): move MAC middleware impls out of shared kernel 2026-06-05 12:04:31 +02:00
__init__.py test: bootstrap pytest environment for backend 2026-02-24 18:19:56 +02:00
conftest.py test: refactor Gmail indexer tests to utilize ComposioService and hybrid chunking 2026-05-16 21:26:40 +05:30
test_document_versioning.py chore: ran linting 2026-04-03 13:14:40 +05:30
test_obsidian_plugin_routes.py chore: linting 2026-04-27 14:04:50 -07:00