Repository navigation
fix(platform): re-queue renamed synced files and isolate watchdog faults - #3782
Merged
Merged
Conversation
A OneDrive or Google Drive rescan decided whether to queue a file by its document's title. A title renamed to "Minutes 27.09" reads as extension 09, so a readable minutes.docx whose last run failed went to the terminal lane on every scan. That lane writes nothing for a name an extractor reads, and the file was never queued again. The reverse held too: a title ending in .pdf over a stored standup.loop queued a job the indexer only refuses. The scheduler now reads the document for its blob alone and judges the stored file name and type, the ones the indexer reads. For both providers, the renamed-title cases now expect the queue, and a title or document type that reads as a PDF over a .loop expects the terminal lane.
The RAG watchdog read each organization's slug outside any catch, and its cron handler catches nothing, so a dropped connection or a statement timeout there ended the tick with every later organization unswept. One catch also wrapped an organization's whole row loop: a row whose status write kept throwing, such as one behind a lock held across ticks, deferred every row queued after it, and since the candidates come in a fixed order, it did so on every tick. Each organization's sweep now runs inside its own catch, and each row's write inside its own. A failing write defers that row alone, and the rows after it are still settled and told to the lists. Two writes failing in a row stop the organization, so a dead connection is not sent the rest of the batch, and only a write that went through ends such a run. The per-row rules move into one helper unchanged, with a new case for the already-failed row that takes the corpus error without being counted.
yannickmonney
added a commit
that referenced
this pull request
Sep 29, 2026
This was referenced Oct 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
A synced
minutes.docxthat failed indexing can now be queued again after its document is renamed to “Minutes 27.09”. Both OneDrive and Google Drive judge the stored file name and type. A.loopfile displayed with a.pdftitle remains unsupported and does not create an indexing job.The RAG watchdog continues with later organizations after a slug-read failure, and with later rows after one failed status write. Two consecutive failed writes stop that organization's batch; only a completed write resets the counter. Successful settlements retain their counts and emit document-list hints using a fresh ownership read after the writes. Settlement rules and tenant routing are unchanged.
Validation
pg_searchBM25 boot probe. This is a filtered run, not a full integration pass.Bounds
The pre-existing extensionless-name mismatch remains: the shared indexability helper can accept a MIME type where the indexer requires a file extension. The organization-specific slug-read failure is covered by a deterministic unit test; the PostgreSQL probe exercises an actual row-lock timeout.