SurfSense/surfsense_backend/tests/unit/agents
CREDO23 9493519c61 refactor(agents): colocate 8 main-agent-only middleware as per-concept folders
Each main-agent-only middleware now lives in its own folder under
main_agent/middleware/<concept>/ with builder.py (flag-gated construction)
+ middleware.py (the impl), re-exported via __init__.py. This kills the
cross-folder hop into agents/shared/middleware and keeps each middleware's
two responsibilities (build vs behavior) as colocated siblings.

Moved (impl from shared/middleware, builder from main_agent/middleware):
action_log, anonymous_document, context_editing, doom_loop, knowledge_tree,
noop_injection, otel_span, tool_call_repair.

Impls moved verbatim (git rename, no body edits) so behavior is unchanged.
Builders now import from the local .middleware sibling. stack.py import
paths updated for the 3 renamed folders; shared middleware barrel trimmed;
tests repointed (imports + patch targets).
2026-06-05 11:42:58 +02:00
..
multi_agent_chat refactor(agents): relocate remaining MAC-only kernel (permissions, deliverable_wait) 2026-06-05 10:58:49 +02:00
new_chat refactor(agents): colocate 8 main-agent-only middleware as per-concept folders 2026-06-05 11:42:58 +02:00
__init__.py feat: updated agent harness 2026-04-28 09:22:19 -07:00
test_import_all.py test: add agent refactor guardrail suite 2026-06-04 11:44:23 +02:00