mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-06 20:15:17 +02:00
The single-agent-era filesystem middleware (app/agents/shared/middleware/ filesystem.py, ~2000 lines) was never instantiated in production, yet three unit suites validated it — an illusory guardrail while the live decomposed middleware (multi_agent_chat/middleware/shared/filesystem) was unguarded. Close the gap before reorganizing the agents module: - Add 14 integration tests driving live B's tools in desktop mode (real on-disk effects) and cloud mode (in-state staging, namespace policy). - Port all high-value dead-twin assertions onto the live path: cloud rm/rmdir staging + guard rails, KBPostgresBackend delete-view filter, mode-scoped system prompt, cwd/relative/namespace resolution, multi-root mount normalization. - Delete dead twin filesystem.py, drop its __init__ re-export, and retire its 3 dead-twin tests. Verified: test_import_all + middleware unit + FS integration all green. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_b_filesystem_path_resolution.py | ||
| test_b_filesystem_rm_rmdir_cloud.py | ||
| test_b_filesystem_system_prompt.py | ||
| test_dedup_hitl_tool_calls.py | ||
| test_file_intent_middleware.py | ||
| test_filesystem_backends.py | ||
| test_kb_persistence_filesystem_parity.py | ||
| test_kb_persistence_revisions.py | ||
| test_knowledge_search.py | ||
| test_knowledge_tree.py | ||
| test_local_folder_backend.py | ||
| test_multi_root_local_folder_backend.py | ||