Bitemporal RAG: Stopping Superseded Runbooks and Policy Drift Before Synthesis
Vector similarity has no native concept of time or normative negation. Consider two documents in an enterprise knowledge base: Security_Runbook_2024.md: "Emergency SSH jump-host PermitRootLogin is permitted for SEV-1
Vector similarity has no native concept of time or normative negation. Consider two documents in an enterprise knowledge base:
-
Security_Runbook_2024.md: "Emergency SSH jump-hostPermitRootLoginis permitted for SEV-1 triage; SEV-1 breach notification SLA is 72 hours." -
Security_Policy_2026.md: "SSHPermitRootLoginis strictly prohibited across all jump-hosts; SEV-1 breach notification SLA is 24 hours."
Against the query "What is our SEV-1 breach notification SLA and jump-host root SSH policy?", both chunks score nearly identical cosine similarity (> 0.84). Standard top-k RAG injects both into the prompt. Downstream Model Context Protocol (MCP) coding agents and Agent2Agent (A2A) compliance bots then commit one of three silent errors: they cite the superseded 2024 rule, average incompatible numbers, or hedge without flagging an active compliance conflict.
Two Structural Classes of Enterprise Contradiction
In our open CC-BY-4.0 benchmark (VoxellInc/rag-contradiction-benchmark v1.1.0, 30 collision pairs / 60 documents across enterprise_policy, api_specification, financial_filing, and sre_runbook), silent RAG failures cluster into two mechanisms:
-
Numeric Drift (
numeric_drift): Quantitative thresholds change across effective dates (30vs14day refund window,$18Mvs$32MQ1 reserve,365vs90day KMS key rotation,60svs15sPatroni failover RTO). Dense embeddings map numbers in identical lexical contexts to nearly indistinguishable coordinates. -
Modal Polarity Inversion (
modal_polarity_inversion): Normative flips (TLS 1.2 is supportedvsTLS 1.2 is rejected, GraphQL__schemaintrospectionenabledvsdisabled, Valkeyallkeys-lruvsnoeviction). Single-token negations (not,prohibited,noeviction) shift 2560d-3072d vector angles by less than0.03cosine.
Even in public open-source docs, our 108-domain documentation study (voxell.ai/audit) caught live multi-version tag collisions where unarchived v1.40.1 and v1.40.2 pages competed head-to-head in agent retrieval.
Architectural Fix: Bitemporal Metadata + Pre-Synthesis Contradiction Holds
Solving temporal drift requires two layers working together:
-
Bitemporal Envelope (
effective_from,effective_until,recorded_at,supersedes_doc_id): Filtereffective_until IS NULLfor current operational state while retaining historical intervals for point-in-time audit queries ("What policy governed Q3 2025?"). -
Pre-Synthesis Coherence Conflict Detection: Unstructured wikis, Slack exports, and vendor PDFs rarely arrive with clean
supersedes_doc_idforeign keys. Voxell Forge runs Coherence conflict checks (GET /v1/answers/{corpus}/conflictsand keylessforge_xray_audit) over candidate neighborhoods before answer synthesis, surfacing explicit conflict receipts so MCP and A2A callers fail closed instead of guessing.
Test your own policies or docs right now with zero signup:
claude mcp add --transport http forge-try https://api.voxell.ai/mcp/try
Benchmarks & Guides
- Canonical engineering guide: Bitemporal RAG: Superseded Docs & Effective Dates
- Contradiction benchmark comparison: RAG Contradiction Detection Benchmark
- Live 108-site audit index: Voxell AI Documentation Truth Leaderboard
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.