The short answer. Select the authorized policy revision whose effective interval contains the event date and whose recorded interval contains the evidence cutoff. Cite that revision and state both dates. If a later correction applies retroactively, today's record of the rule and the record available to the original decision-maker can yield different answers.
An operator investigating a July 10 exception might need to know whether the team followed the rule on file at the time. A policy owner reviewing that same exception today might need the rule that now governs July 10. The event date is identical. The evidence cutoff changes the answer.
Give the two clocks separate fields
Effective time says when the rule governs events. Recorded time says when a particular assertion about that rule was present in the authoritative policy register. Store each as an interval. A late ingestion or reindex changes search infrastructure state. Keep that timestamp apart from both clocks, and use an explicit clock convention for any question about what the assistant itself could retrieve.
Use intervals that include the start and exclude the end. When revisions share a boundary timestamp, the successor owns that instant. For policies expressed in local calendar dates, use an agreed policy timezone when turning a timestamp into a date. PostgreSQL provides date and timestamp range types with explicit boundary semantics, so a database can do the containment check before passages go to the model. PostgreSQL range types
Walk one correction through both queries
Consider this illustrative rule for dispatch approval. A policy register published revision 1 in June. On July 18 it recorded revision 2, explicitly correcting the threshold with effect from July 1. All recorded times in the example are UTC, and the policy's effective dates use the UTC calendar.
| Revision | Effective dates | Recorded interval | Approvals for dispatch |
|---|---|---|---|
| 1 | July 1 onward | June 25 00:00 to July 18 14:00 | One |
| 2 | July 1 onward | July 18 14:00 onward | Two |
- Replay the July 10 decision. Use July 10 as the effective date and the original decision timestamp as the cutoff. Revision 1 supplies one approval.
- Review July 10 under the corrected register. Keep July 10 as the effective date and use a cutoff after the correction. Revision 2 supplies two approvals.
- Check the instant of correction. A cutoff at July 18 14:00 selects revision 2 under the stated interval convention. A cutoff one second earlier selects revision 1.
An answer might read “Under the register as of July 10, the dispatch required one approval (Dispatch Policy, revision 1, approval section).” The revision identifier should resolve to the exact stored source and its supporting passage. sinc-LLM citation and source grounding guide
If the reader needs both views, report them side by side. The July 10 register shows one approval under revision 1. The corrected register after July 18 at 14:00 UTC shows two for that same event under revision 2. To establish what an assistant actually used on July 10, inspect the saved retrieval and context records for that request. With only the register, describe what was on file and leave the assistant's actual evidence unresolved.
Make conflicts visible before generation
Resolve the policy key and applicable scope, check current access, then apply both interval filters to the authorized source records. Pass the eligible revision and its citation to retrieval. A question that omits needed time information should prompt for the event date or cutoff when either would change the answer. A missing authorized revision warrants a qualified response. Overlapping eligible revisions with conflicting rules warrant policy-owner review unless a separately documented precedence rule resolves them.
Before enabling historical answers, use one policy with a known correction. Check both sides of each interval boundary and one gap. Require the source revision and the explanation of the cutoff to match the register in each case. If they disagree, keep the feature on hold for that policy.
sinc-LLM