The short answer. Compare the rebuilt and current indexes at a shared source-event watermark. Promote only after the candidate passes freshness, access, retrieval, and citation checks. Then read the effective target and repeat the checks through the application. Switch back only if the previous index can enforce current withdrawals and permissions and meet your freshness requirement.
A corpus rebuild can finish with the expected document count while omitting recent changes, returning the wrong citation revision, or replacing an access filter. Put the cutover decision at the application boundary, where those failures are visible.
Compare both generations at the same point
A watermark here is the highest contiguous source-event position an index has applied and made visible to queries. In a partitioned stream, record a position per partition. A last-seen event ID can hide unapplied gaps. Record the watermark with the source snapshot, schema and embedding versions, mappings, and policy version used for each index.
Build the candidate from a known snapshot, then apply the ordered changes after that snapshot. Compare both generations under the same cutover barrier, using a coordinated write pause or a catch-up mechanism that makes later changes explicit. Ask the same questions as the same principals with the same permissions. Record expected source IDs and revisions on a small labeled query set. Review ranking differences with relevance judgments because a different search configuration can intentionally change rank.
Rehearse with a known replacement
In this illustrative deployment, the read alias support-kb points to kb-v1. The replacement kb-v2 was built at watermark 840 and needs through event 860 for promotion. Event 854 updates a diagnostic article. Event 858 withdraws a draft. Both indexes report 12,000 documents, and event 854 is still absent from kb-v2. The gate remains closed because that source ID resolves to an older revision.
| Check | Evidence to retain |
|---|---|
| Freshness | Both generations attest to contiguous application through 860. The diagnostic article resolves to its expected new revision. |
| Access | A permitted caller retrieves the current article. A denied caller receives no protected passage or citation. The withdrawn draft stays out. |
| Retrieval | The candidate meets predefined query-set quality and latency criteria under representative test conditions. |
| Grounding | The answer cites a passage that exists at the named revision and supports the answer. |
| Routing | After the switch, the serving alias resolves to the candidate alone. A fresh end-to-end request confirms that generation served it. |
For Elasticsearch, one aliases request can remove the prior target and add the replacement. Check for per-action errors and reread the alias when the result is unclear. Inspect application caches and any path that uses a concrete index name. Direct index or alias readback only establishes the control-plane change. The same request via the application establishes what a caller used for that probe. Elasticsearch aliases API
If the switch request times out, read the alias membership and issue a fresh application probe. If both checks point exclusively to the candidate, proceed with the post-switch tests. If both point to the old generation, the first request could still be in flight. Retry only after authoritative evidence shows it ended without a change, or under a verified mutation contract that makes the exact repeat safe against concurrent updates. Before an allowed retry, recheck candidate freshness and expected alias membership. Keep the rollout on hold while the earlier effect or retry safety is uncertain.
Test rollback as a fresh cutover
Suppose kb-v2 reaches event 870, which withdraws another document, while kb-v1 stays at 860. Switching back would be unsafe if kb-v1 could serve that document. Keep a rollback generation caught up, or require verifiable enforcement of current lifecycle and access controls alongside the freshness bound. When those checks fail, hold the switch back and use the predefined safe fallback while repairing the candidate. Run the same destination probes after either route change. sinc-LLM model rollback playbook
At the next rehearsal, record both watermarks and follow one updated document and one withdrawn document through the app. A mismatch blocks promotion until its cause is resolved at the serving destination.
sinc-LLM