bf60e8090a
Plugin route registration in main.py was mutating module-level router singletons by appending require_active_plugin dependencies directly to router.routes. This persisted across app instances, causing test routes to inherit require_active_plugin checks and return 403 "plugin inactive" when tests created their own FastAPI apps with those routers. Fix: use app.include_router(router, dependencies=[plugin_dep]) which adds dependencies at the app level without modifying the shared router. Fixes 35 test failures across 4 test files: - test_agent_memory.py (6 failures) - test_external_agent_api.py (15 failures) - test_graph_rag.py (7 failures) - test_marketplace.py (7 failures)