ContractsRag
Vitruvyan Docs
RAG Governance Operations
Last updated: February 26, 2026
Operational runbook for RAG governance workflows.
1. Bootstrap Collections
Expected behavior:
- creates missing declared collections
- keeps existing collections untouched
- returns non-zero on bootstrap errors
2. Audit Registry vs Live Qdrant
Audit states:
OKMISSINGMISMATCHORPHAN
3. Runtime Guard Controls
Environment flags:
RAG_ENFORCE_REGISTRY=warn|strict|offRAG_METRICS=1|0RAG_METRICS_HISTORY=<N>RAG_STALE_THRESHOLD_DAYS=<days>
4. Retrieval Metrics Snapshot
Via QdrantAgent CLI:
Programmatic access:
5. Stale Detection Check
6. Migration Planning (Model/Version)
Notes:
- planning does not execute migration
- execution still requires controlled dual-write/cutover workflow
7. Recommended CI Gate Sequence
scripts/audit_rag_collections.py --strict- contract tests/import checks for
contracts/rag.py - smoke query against key collections (
conversations,phrases,weave) - fail release on MISSING/MISMATCH