Bi-temporal queries
Every entry carries two date fields:valid_from: when the rule started applying in the world.valid_to: when it stopped applying.nullmeans still active.
recorded_at: when the rule was written into the vault.
The third filter is the audit-replay query: it reconstructs the agent’s view of the world at any past point in time.
Deterministic routing
A query routes to one or more rules through a layered match:- Exact concept match (the question’s noun phrase appears in a rule’s
title). - Tag match (the question’s intent maps to a tag, e.g., “pricing change” →
pricing). - Embedding fallback (cosine over title + summary, top-k=5 candidates).
- The agent picks one candidate and cites the file path. The pick is logged with the query, candidates considered, and reason chosen.