You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(rag): autonomous rag index drift detection and auto-reindexing scheduler #81
As git branches evolve, the Qdrant vector index can become stale or drift from active files, degrading retrieval relevance without clear operator visibility.
Proposed Solution & Architectural Design
Implement devops ai rag drift [OPTIONS] comparing vector metadata timestamps and git commit hashes against the working tree.
Provide auto-reindexing option (--auto-sync) to incrementally embed modified or new files.
Track drift metrics in Prometheus counters and OTel spans.
Acceptance Criteria
Stale vector detection based on git mtime and commit hash.
Incremental re-indexing of modified files.
Unit tests in tests/test_rag_drift.py pass with >= 90% coverage.
Added RAGDriftDetector and RAGDriftReport in src/devops_cli/ai/rag/drift.py comparing working tree file hashes and git commit HEAD divergence against the vector index cache.
Tracks stale modified files (hash divergence), new unindexed files, and deleted files with normalized drift scoring (1.$).
Integrated OpenTelemetry distributed tracing (rag.drift_detection) and Prometheus metrics (devops_cli_rag_drift_detected_total, devops_cli_rag_drift_score).
Activity
feat(rag): autonomous rag index drift detection and auto-reindexing e…
dan-petty commentedon Sep 9, 2026
Implemented in commit
c273463.Implementation Summary
RAGDriftDetectorandRAGDriftReportinsrc/devops_cli/ai/rag/drift.pycomparing working tree file hashes and git commit HEAD divergence against the vector index cache.rag.drift_detection) and Prometheus metrics (devops_cli_rag_drift_detected_total,devops_cli_rag_drift_score).devops ai rag drift [path] [--auto-sync] [--fail-on-drift] [--json].rag_drift(path, auto_sync)and exported 117 FastMCP tool schemas.tests/test_rag_drift.pyand FastMCP contract test intests/test_fastmcp_contracts.py.devops ci.feat(release): v0.2.14 (#86)