modcomms/backend/app
michael 1800e71229 Fix cache invalidation falling back to static files after reprocessing
After processing a new knowledge base spec, invalidate_cache() was
clearing the DB spec from the cache without replacing it. The next
analysis would then fall back to static prompts/*.md files instead of
using the newly generated DB spec.

Now invalidate_cache() accepts optional new_spec_content to immediately
populate the DB cache, and knowledge_base_service passes the freshly
distilled spec content so it's available for the next analysis without
a server restart.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 17:56:11 -06:00
..
agents Pass proof metadata (channel, sub-channel, proof type) to AI agents during analysis 2026-02-12 11:30:38 -06:00
api Fix processing job not visible to background task (FK violation) 2026-02-12 16:09:50 -06:00
dependencies Reduce auth logging verbosity: INFO → DEBUG 2026-02-12 16:13:25 -06:00
models Fix SpecVersion/ProcessingJob circular relationship direction error 2026-02-12 15:42:35 -06:00
repositories Fix stuck processing state: auto-fail stale jobs, improve active job detection 2026-02-12 16:03:25 -06:00
services Fix cache invalidation falling back to static files after reprocessing 2026-02-12 17:56:11 -06:00
websocket Wire up Errors tab in Auditing: auto-create ErrorItem on Analysis Error 2026-02-12 13:55:16 -06:00
__init__.py permissions changes 2025-12-18 16:51:27 +00:00
config.py Add Knowledge Base management system for AI agent specs 2026-02-12 15:00:36 -06:00
main.py Add Knowledge Base management system for AI agent specs 2026-02-12 15:00:36 -06:00