#1097·honcho

[Bug] pgvector-only reconciliation never processes documents

Author: LazyEngineer99Created Aug 29, 2026Updated Sep 21, 2026
Labelsbughoncho

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

  1. Run Honcho with external_vector_store unset (pgvector-only mode).
  2. Get a documents row into a state where it needs re-sync (e.g. clear embedding/sync_state, or just let ingestion outpace reconciliation on a fresh deployment).
  3. Let the reconciliation cycle run on schedule.
  4. Observe: message_embeddings get reconciled; the pending documents row 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