Repository navigation
fix(platform): give uploaded files no extractor reads a terminal status - #3556
Merged
Merged
Conversation
Follow-up to #3540, which gave synced files no extractor reads the indexer's terminal state. Two upload lanes still decided differently: - POST /files/register (task and chat attachments) left a .doc, a .zip or a hand-uploaded .loop with no status at all, which reads as indexing never started. - A controlled-record replacement inserted such a file as a bare unsupported, with no rag_error_code and no sentence. REST indexing.errorCode was absent although the contract promises it on every unsupported, the badge dialog had no reason to give, and the retry door refused with a generic sentence. Both lanes now call markRagUnsupportedIfNoExtractor, the decision the sync lane made inline. A file no extractor reads lands on unsupported with unsupported_type and "No text extractor exists for "<file>".", and a .log, which the indexer reads, keeps its empty status. The register lane leaves audio and video (the transcription lane), chat-bound and opted-out files alone. The sync lane calls the same helper, and markRagUnsupportedType becomes private to the knowledge service. Unit tests cover both doors and the helper; two backend:integration checks show the states on real Postgres, and the automation register names the owning specs.
yannickmonney
added a commit
that referenced
this pull request
Sep 28, 2026
Follow-up to #3556. - A chat's first attachments register before the thread exists; the register door skipped every chat-bound file, so a `.doc` read "Not supported" in a fresh chat and kept an empty status for good in an existing thread, and rag_fetch told the model to index it from a Knowledge tab that does not list it. The register door and the turn's backstop (`queueRagIndexIfUnstarted`) now take one decision (`markUploadUnsupportedIfNoExtractor`), so both chat states read `unsupported` / `unsupported_type`; a rag_fetch miss names an index door only for a file a document holds. - `writeRagStatus` hints the document lists only for a row a document holds (`HELD_BY_DOCUMENT_SQL`, the lists' own join): an attachment's upload and indexing no longer refetch every open Documents list. - The boot migrator applies numbered `.ts` data migrations beside the `.sql` files; `0128` gives each bare `unsupported` row whose file no extractor reads (`isSupported()`) the code and sentence every lane writes, once.
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
This follows up #3540, which gave synced files no extractor reads the indexer's terminal state (
unsupported/unsupported_type, sentenceNo text extractor exists for "<file>".). Two lanes that store a file still decided differently:POST /files/register(backend/domains/files/routes.ts) left a.doc, a.zipor a hand-uploaded.loopwithrag_statusNULL. The row then read as "indexing never started":pendingto the model-facing reader, which told the model to "index it from the Knowledge tab", a step that can never succeed. The register transaction now writes the terminal state. It still leaves these alone:isSupportedis false for media. The check uses the sameisAudioOrVideo(contentType)value that decides transcription, so the two cannot disagree.threadId), which the chat's own lane reads (queueRagIndexIfUnstarted).skipRagIndexing).Controlled-record replacement (
backend/domains/documents/replacement.ts) inserted a file no extractor reads as a bareunsupported, with norag_error_codeand no sentence. Three consequences:indexing.errorCodewas absent, although the contract (scripts/openapi/spec.ts) promises a code on everyunsupported.The row is now inserted without a status and then gets the same terminal state as everywhere else.
One decision, one writer. The new
markRagUnsupportedIfNoExtractorinbackend/domains/knowledge/service.tsis the check the sync lane made inline: a file no extractor reads goes tomarkRagUnsupportedType, and a file the indexer can read keeps its empty status. The sync lane (onedrive/service.ts, shared with Google Drive) now calls it too, with no behaviour change.markRagUnsupportedTypehas no outside caller left, so it is now private to the module (knip)..log, one decision everywhere. The sync lane leaves.logalone because the indexer reads it and a Reindex succeeds, andunsupportedpromises that a retry reproduces the answer. The register lane now makes the same decision through the same helper..lognever reached the replacement lane's status write.validateDocumentUploadForOrgrefuses it (UNSUPPORTED_FILE_TYPE) before the row exists, becauselogis not on the upload allowlist. A test pins that. The replacement lane's own decision now goes through the helper, so a.logwould keep an empty status there too if the allowlist ever admitted it.doc,ppt,xlsandac2. Those are what the replacement fix affects.No UI or locale change.
unsupportedalready hides Reindex, the badge already explainsunsupported_typein EN/DE/FR, and the retry door already refusesunsupported.No docs change.
platform/knowledge/documents.mdand the API reference already describe Not supported with a stableindexing.errorCode; the replacement lane now matches them.Manual register: a row in
tests/manual/reference/automation.mdbeside fix(platform): give synced files no extractor reads a terminal status #3540'sKNOW-F31names the owning specs.How I verified it
files/routes.register.test.ts): the real status writer runs on a recording transaction.standup.loop,minutes.docandbundle.zipeach get exactly one write (unsupported,unsupported_type, the shared sentence) plus one document hint, with no job..m4a) and video (.mp4) go to transcription with no status write. A chat-bound.loop, an opted-out.loopand a.logget no write either.documents/replacement.rag-status.test.ts): drives the realfinalizeReplacementUploadfrom an already-promoted intent, so there are no S3 calls, through the real bind gates (requireDocumentWriteAccess,validateDocumentUploadForOrg, holds)..doc,.xls,.pptand.ac2replacements are inserted with no status and then get the terminal write with the shared sentence, with norag.index_filejob..docxis still queued..logis refused before any file row or status is written.knowledge/service.status-codes.test.ts):.loop,.docand.zipare made terminal;.logand.docxget no write.origin/main'sroutes.tsandreplacement.tsand the new tests kept, exactly the 7 lane cases fail (3 register, 4 replacement). The 12 guard cases pass on both.ITEST_LANES=checkFiles,checkDocumentsagainst PostgreSQL 16.13 with pg_search and pgvector, and a moto S3 emulator. Two new checks:register lands a file no extractor reads on unsupported_type; a .log and a chat-bound file keep an empty status. With the fix:loop=unsupported/unsupported_type sentence=true, log=null, chat-bound loop=null, jobs=0. Onorigin/main:loop=null/null.replacement no extractor reads (.ac2): terminal unsupported_type with the sentence, never queued, retry refused. With the fix:file=unsupported/unsupported_type sentence=true, jobs=0, view=unsupported/unsupported_type, retry=false: No text extractor exists for "ledger.ac2".Onorigin/main:file=unsupported/null, view=unsupported/undefined, retry=false: This file type has no text extractor and can't be indexed for RAG search.ITEST_LANES=checkFiles,checkOneDriveSyncwith the fix: fix(platform): give synced files no extractor reads a terminal status #3540's.loopscenario still passes (37/38).files upload/serve/delete … blobGone=false. That is moto's delete behaviour, the same failure fix(platform): give synced files no extractor reads a terminal status #3540 reported.backend:integrationis not a CI job, so this was a filtered local run, not full coverage.v1-coreandv1-projects,lib/shared/file-types).oxlint --type-aware --type-check: clean.tscover the changed files andintegration-check.ts: clean.knip --workspace services/platform: only the pre-existingoidcOrganizationClaims.oxfmt --check: clean.bun run lint:manual: passes.Left open
/documents/from-blob-upload), the REST binds, WebDAV, agent writes and emailed attachments. The indexer already lands a file no extractor reads on the same terminal state after one job./files/registerare chat and task attachments, which are not Documents-list rows. On that lane the visible effect is the honest status on/files/statusesand on the model-facing reads..logon those lanes is indexed. WebDAV, a REST hub create from a staged upload, and agent writes index a.log, because the extractor reads it. So.logis terminal on no lane, but it is auto-indexed only on these. Whether they should skip.logthe way the sync lane does is a product decision;lib/shared/file-types.tscalls.logdeliberately unindexed.unsupported. The retry door still refuses them, but REST shows noerrorCodefor them.unsupported" could mislabel rows imported from the Convex era, and one keyed on extensions would be a second copy of the extractor set.Refs #3540, #2599.