feat: Add health monitoring and fallback system - #232
Conversation
- PRD: Programmable Memory & Learning Layer - DocType designs: Memory Record, Policy, Profile - Tech specs: Capture/Retrieval, Storage Architecture - Profiles: Travel Planning, Programming, Documentation - Implementation plan and project tracking
…r-database support - Add BackendHealthMonitor with 5-minute TTL caching - Add FallbackRetriever with automatic backend failover - Add scheduled job definition for periodic health checks (every 5 minutes) - Add health_check, supports_filters, supports_hybrid_search methods to sqlite_fts backend - Update knowledge search tool to use FallbackRetriever Files added/modified: - huf/ai/knowledge/health_monitor.py - huf/ai/knowledge/fallback_retriever.py - huf/huf/scheduled_job_type/health_check_backends/health_check_backends.json - huf/ai/knowledge/tool.py - huf/ai/knowledge/backends/sqlite_fts.py
TODO before this PR is taken up: rebuild on the PR #280 contractSince this PR was opened, HUF established, in PR #280 (in review), the This PR also imports
See the cross-backend audit (P2 item 9) and |
|
Closing as stale / re-scoped. The knowledge-backend architecture has standardised on the #280 → #406 → #434 line: A backend from this PR can be revived as a small contract-compliant implementation (see |
Summary
Implements health monitoring and automatic fallback system for vector backends.
Features
Safety
Files
Related
Ensures reliability when using external vector databases.