[Bug] pgvector-only reconciliation never processes documents
Description
run_vector_reconciliation_cycle's pgvector-only branch (external_vector_store is None) only calls _reconcile_message_embeddings_batch plus the cleanup step. _reconcile_documents_batch is never invoked on this path.
On a pgvector-only deployment (no external vector store configured), any documents row left pending -- e.g. after an embedding provider migration, which clears embedding/sync_state to force a re-embed -- never gets picked back up by reconciliation. There's no error and nothing logged; the row just stays pending indefinitely.
Steps to reproduce
- Run Honcho with
external_vector_storeunset (pgvector-only mode). - Get a
documentsrow into a state where it needs re-sync (e.g. clearembedding/sync_state, or just let ingestion outpace reconciliation on a fresh deployment). - Let the reconciliation cycle run on schedule.
- Observe:
message_embeddingsget reconciled; the pendingdocumentsrow does not, indefinitely, with no error surfaced anywhere.
Expected behavior
The pgvector-only reconciliation cycle should reconcile documents the same way it already reconciles message_embeddings -- mirroring the existing pgvector-only pattern used for messages (embed + mark synced via a direct SQLAlchemy update, no external vector store round-trip).
Additional context
Found this while migrating a self-hosted deployment's embedding provider -- 26k+ documents rows sat pending with reconciliation running cleanly on schedule and reporting no errors.
I have a fix ready with tests: #1096
Source: plastic-labs/honcho