Repository navigation
fix(platform): give synced files no extractor reads a terminal status - #3540
Merged
Merged
Conversation
A OneDrive, SharePoint or Google Drive import skipped a file no text extractor reads (a Microsoft Loop `.loop`, served as application/octet-stream) without writing anything: rag_status stayed NULL, so the Documents list showed "Not indexed" with a Reindex that could never succeed, REST answered `pending`, and a Reindex queued a billable job only for the indexer to refuse it. The shared sync scheduler now lands such a file on the indexer's own terminal state, `unsupported` with `unsupported_type` and the same sentence, through one writer (`markRagUnsupportedType`) that the indexer uses too. No job is queued, the list hides Reindex for that status, and the retry door refuses it. The write happens once, because every scan re-offers unchanged files. A file the indexer can read but the platform does not index by itself (`.log`) keeps its empty status, because a Reindex of it succeeds. Tests: the scheduler for both providers, the indexer's branch, `.loop` pinned as non-indexable, and a `checkOneDriveSync` scenario (import → unsupported, no job, retry refused, rescan unchanged). Docs name Loop files in the format table (EN/DE/FR). Refs #2599
The sync scheduler decided a file's terminal state from the document
title, while the indexer decides from the stored file name. A title
renamed on its own ("Minutes 27.09") read as an unknown extension and
made a readable .docx terminal, hiding Reindex. It now decides and
writes the sentence from file_metadata.file_name.
Its skip list also left out the terminal `unsupported`, so every scan
re-queued an image, empty file or scanned PDF the indexer had already
refused, and flipped the row back to queued. An `unsupported` row is
now skipped like completed, running and queued; changed bytes arrive
on a new file row, so real updates are still indexed.
The register row for the synced-file terminal state hung off KNOW-F2 (folder organize) and claimed full automation while naming a live check no box held. KNOW-F31 now carries that check (a real Loop file from Microsoft 365, the badge, the dialog reason, no Reindex after a rescan), and the row points at it as partially automated.
tale-review-bot
pushed a commit
that referenced
this pull request
Oct 31, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 1, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 1, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 1, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 1, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 2, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 2, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 2, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 3, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 3, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 3, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 3, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 3, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 4, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 4, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 4, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 5, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 5, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 5, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
tale-code-bot
added a commit
that referenced
this pull request
Nov 6, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
yannickmonney
pushed a commit
that referenced
this pull request
Nov 15, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
yannickmonney
pushed a commit
that referenced
this pull request
Nov 23, 2026
A Loop page (`.loop`) synced or imported from OneDrive or SharePoint was stored as the octet-stream Graph serves, which no extractor reads. Since the change of #3540 it lands on the terminal Not supported status, and its text stays out of search and out of @ mentions. The import now asks Graph for the page as a PDF (`/content?format=pdf`, the same door and the same Files.Read) and keeps that in the place of the page, as `<page>.loop.pdf`, stored as application/pdf and marked `sourceConversion: 'pdf'`, so it is indexed like any PDF. The bytes are sniffed before they are stored, so an empty or foreign body is never kept as a PDF. A page Graph will not convert (a 4xx that is no 401, 408 or 429, or an answer that is no PDF), or one past Graph's 2 MB conversion limit, is kept as it is, marked `'none'`, and lands once on the terminal Not supported status until the page changes. A passing fault (a 408, a 429, a 5xx, the network) fails the file and the next scan asks again; a 401 is the token refusal it was before. An unchanged converted page is not converted again, and a page kept raw before this change is converted once, on the next sync or import that reaches it. `.fluid` files are not converted, and a hand-uploaded `.loop` stays Not supported (#3556). Spec ODRIVE-R10 states the rule. The EN/DE/FR documents page and manual box KNOW-F31 say that synced Loop pages are indexed and hand-uploaded ones are not, and the KNOW-F31 automation row names the specs. Unit tests cover the import (conversion, refusal, size limit, faults, token refusal, unchanged and legacy pages), the download deps and the indexing lane; the integration check syncs a converted and a refused page against its fake Graph. The extraction test reads a synthetic fixture (tests/integration/fixtures/loop/standup.loop.pdf, with its generator), not Graph's output: a real conversion by a Microsoft 365 tenant was not run. Closes #2599 Task: TALE-13
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.
What changed
A OneDrive, SharePoint or Google Drive import skipped a file that no text extractor can read, and wrote nothing. The motivating case is a Microsoft Loop page, which arrives as
standup.loopwith typeapplication/octet-stream. Itsrag_statusstayedNULL, so the Documents list showed Not indexed with a Reindex that could never succeed, and REST answeredindexing.status: pending. Pressing Reindex queued a billablerag.index_filejob just so the indexer could refuse the file.scheduleDocumentRagIndexing(backend/domains/onedrive/service.ts, shared with Google Drive throughcreateSyncImportDeps) now puts such a file straight into the indexer's own terminal state:rag_status = 'unsupported',rag_error_code = 'unsupported_type', and the same sentence (No text extractor exists for "standup.loop".). No job is queued.file_metadata.file_name), the name the indexer reads, and names that file in the sentence. A document title can be renamed on its own (REST PATCH, the app's rename), and a title such as "Minutes 27.09" reads as extension09; it must never make a readable file terminal.unsupportedis now in the scheduler's skip list beside completed, running and queued. That also stops a pre-existing loop: an image, an empty file or a scanned PDF the indexer had already madeunsupportedwas re-queued, downloaded and refused again on every scan. Changed bytes arrive on a new file row, so real updates are still indexed..logstays as it was. The allowlist deliberately skips.log, but the extractor can read it, so a Reindex succeeds. A terminal code must mean "a retry reproduces the answer", so.logkeeps its empty status and its working Reindex.markRagUnsupportedTypeinbackend/domains/knowledge/service.tsgoes throughwriteRagStatus, the same path that sets the status and emits the org-wide document hint. The indexer's own!isSupportedbranch now calls it, so both code paths write the same code and sentence.unsupportedalready hides Reindex (document-row-actions.tsx), the badge already explainsunsupported_typein EN/DE/FR, and the retry door already refusesunsupported.platform/knowledge/documents.mdnow lists Microsoft Loop files, in EN, DE and FR..loopcan only arrive through an import, so the existing "indexes like an upload" analogy didn't cover it.KNOW-F31insuites/knowledge.mdholds the live check (a real Loop file synced from Microsoft 365 reads Not supported, the badge dialog gives theunsupported_typereason, no Reindex, still so after a rescan). Thereference/automation.mdrow points at it and is marked 🔶, because that live part stays manual.How I verified it
backend/domains/onedrive/service.rag-scheduling.test.ts, run for both providers (28 tests):.loop→ one terminal write (status, code, sentence), no job, one document hint;unsupportedrow writes nothing and queues nothing, for the.loopand for an image or empty file the indexer made terminal;Minutes 27.09overMinutes 27.09.docx,Board minutes 27.09.2026overminutes.pdf) on afailedrow writes no terminal state;completed/running/queued, chat-bound and opted-out rows are left alone;.logkeeps its empty status;.txtstill queues..loopcases fail; with it, all pass. The round-1 cases (rescan of an unsupported image or empty file, renamed title, sentence naming the file) fail against the previous scheduler, 10 failures across both providers, and pass with the fix.service.status-codes.test.tschecks the shared sentence and code, and that no work starts.file-types.test.tsnow asserts.loopis not indexable.checkOneDriveSynclane. I ranITEST_LANES=checkFiles,checkOneDriveSynclocally against PostgreSQL 16 (pgserver) and a moto S3 emulator:file=unsupported/unsupported_type, jobs=0/0, view=unsupported/unsupported_type, retry=false: No text extractor exists for "standup.loop"., rescan=success: unsupported jobs=0/0. Every other OneDrive check passes too.file=null/null, view=undefined, retry=true(the door queued a job) andjobs=1after the rescan.knowledge BM25 indexes verified at boot(pgserver has nopg_search) andfiles upload/serve/delete … blobGone=false(moto's delete behaviour).backend:integrationis not a CI job, so this was a filtered local run, not full coverage.oxlint --type-aware --type-checkon the changed backend files andintegration-check.tsis clean; isolatedtscon thelib/sharedtest is clean;oxfmt --checkpasses over the repo; the@tale/docssuite passes (34 files, no i18n report-mode findings);bun run lint:manualpasses.Not done, on purpose
loopMIME mapping inlib/shared/file-types.ts, although the task listed it as optional. Loop has no registered media type, and OneDrive serves.loopdownloads asapplication/octet-stream(as observed in Feature: text extraction for Microsoft Loop (.loop / Fluid) files so OneDrive-synced Loop docs can index #2599), so any mapping would put an invented type on stored rows and download headers. Indexability is decided by the extension anyway (isRagIndexableFileandisSupported), and the tests now pin.loop..loopor.docstill keeps an empty status (files/routes.ts), so it reads Not indexed while the same file synced reads Not supported. Writing the terminal state there has to exclude the transcription lane and chat-bound files; that is a follow-up.documents/replacement.tsis unchanged. The task says it writesunsupportedplusRAG_ERROR_UNSUPPORTED_TYPE, but it actually writes onlyrag_status = 'unsupported', with no code and no sentence. It's a small follow-up if the replacement path should report the sameindexing.errorCode.Refs #2599. This meets its first acceptance criterion (terminal unsupported instead of a permanent "Not indexed"). The extraction proposal itself stays open.