modcomms/backend/app
Vadym Samoilenko 71639030ba Fix 500 error on knowledge base Process Documents
knowledge_base_service and analysis_service were local variables inside
the lifespan() function — not module-level exports. Importing them via
'from app.main import ...' always failed with ImportError → 500.

Use request.app.state (same pattern as analysis_routes.py) instead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 15:50:36 +01:00
..
agents Rename Legal Agent to Risk & Control Agent across frontend and backend 2026-05-14 15:10:32 +01:00
api Fix 500 error on knowledge base Process Documents 2026-05-14 15:50:36 +01:00
dependencies Fix email resolution from Azure AD token claims 2026-03-03 15:55:00 +00:00
models Fix KB distillation fallback and SpecVersion type annotation 2026-03-16 14:03:25 +00:00
repositories Fix CSV export: use correct agent_review JSON keys for RAG columns 2026-03-19 12:23:47 +00:00
services Rename Legal Agent to Risk & Control Agent across frontend and backend 2026-05-14 15:10:32 +01:00
__init__.py permissions changes 2025-12-18 16:51:27 +00:00
config.py Fix LlamaParse 401 + update logo to v5 2026-03-16 12:22:31 +00:00
main.py Rename Legal Agent to Risk & Control Agent across frontend and backend 2026-05-14 15:10:32 +01:00