pub async fn apply_post_commit_effects_with_report(
runtime: &KhiveRuntime,
token: &NamespaceToken,
effects: CommittedPostCommitEffects,
) -> RuntimeResult<Vec<PostCommitEmbeddingOutcome>>Expand description
Embedding-reporting form of apply_post_commit_effects. Re-fetches each
target’s now-committed row outside any transaction and reuses the existing
reindex_entity/reindex_note (FTS + embedding, same as the non-atomic
path) for exact parity. Returns the typed embedding outcome for each reindex
effect so callers can preserve truncation advisories and partial model
failures instead of discarding them after commit. Model failures remain
best-effort; lexical indexing and excluded-model cleanup errors propagate.
When any effect fails, the other effects’ outcomes are dropped with the
returned error; apply_post_commit_effects_with_failures keeps both.