You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Queue unembedded embedding roots when the embedding service starts #4252
Decisions, specs and plans are embedding roots since the change that made semantic search find them. A database that already holds decisions does not get them embedded: nothing marks an existing decision stale, restarting the daemon queues nothing, and there is no sweep for unembedded roots. An untouched decision stays unsearchable by meaning until it is edited or its source is re-imported with replace.
Problem Statement
The change is merged; its description measured this on a scratch database: the existing decision, spec and plan nodes are not embedded and nothing re-queues them.
Any root that missed embedding for another reason (an interrupted run, a model that was not ready, a type that became embeddable) has the same gap, because the only way back in is an edit.
Proposed Solution
Not a migration: a general sweep. When the embedding service starts and the model is ready, find root nodes of embeddable types that have no embedding and no stale marker, and queue them (the store already has requeue_root_embeddings and get_stale_embedding_root_ids). It heals every cause at once and carries no version check or upgrade step, which the project's no-migration rule requires.
The alternative is to accept the gap: there are no users yet, and a development database can be reset. That is a decision for the architect; this issue is written for the sweep.
Acceptance
On start, unembedded roots of embeddable types are queued exactly once and get embedded.
A root that already has an embedding or a stale marker is not queued again.
A test on a scratch database, with no model loaded (the queue is observed, not run).
Activity
mstomar125 commentedon Nov 6, 2026
Picking this up (sweep drain).