async fn ensure_trusted_text_index(
compute: &ComputeNode,
config: &TextPluginConfig,
) -> Result<(), DevError>Expand description
Ensure the running cluster’s text index reads TRUSTED before an online import loads any data.
An import whose bracket stamps an epoch over documents covering only its own rows leaves every PRE-EXISTING literal silently missing from a TRUSTED index — the trusted-but-incomplete state the offline import’s whole-store rule exists to prevent. Trusted → nothing to do. Untrusted → pre-build against the running cluster first (additive: the store’s existing rows are exactly what the walk must cover). A fingerprint mismatch cannot be repaired live (re-analysis is an offline operation); the rebuild’s begin rejects it and the error surfaces with the repair hint. A concurrent driver’s lease is bounded-waited.