gateway/modules
Ida dff3d41845 fix(rag): stable ingestion idempotency across re-extractions (AC4)
Re-indexing the same file always triggered a full embedding run —
ingestion.skipped.duplicate never fired. Two independent causes:

1. _computeIngestionHash included contentObjectId in its payload, but
   extractors generate fresh uuid4() per run, making the hash a
   per-run nonce. Now hashed over (contentType, data) in extractor
   order — stable across re-extractions, sensitive to content,
   ordering, and type changes.
2. _autoIndexFile upserted the fresh pre-scan FileContentIndex before
   requestIngestion's duplicate check, wiping structure._ingestion
   and status=indexed from the prior run. The pre-upsert now merges
   the existing _ingestion metadata and preserves the indexed status.

Verified end-to-end: second PATCH /scope on an already-indexed file
logs  and returns in ~2s
with zero embedding API calls.

Adds test_ingestion_hash_stability.py (5 cases).
2026-04-29 14:39:40 +02:00
..
aicore fixes infomaniak download 2026-04-29 01:03:40 +02:00
auth kdrive fix 2026-04-29 00:35:21 +02:00
connectors wired infomaniac to ai adapters and tools 2026-04-29 01:52:47 +02:00
datamodels fix(rag): preserve per-page granularity + remove on-demand extraction fallbacks 2026-04-29 14:39:40 +02:00
demoConfigs datamodel sctirc fk logic in one place 2026-04-26 18:11:42 +02:00
features P0: injection facade 2026-04-29 14:39:40 +02:00
interfaces wired infomaniac to ai adapters and tools 2026-04-29 01:52:47 +02:00
migration fixed formgenerator , trustee, sort and filter 2026-04-14 00:15:56 +02:00
routes fix(rag): stable ingestion idempotency across re-extractions (AC4) 2026-04-29 14:39:40 +02:00
security fixed proper splitting sysadmin/platformadmin and proper logic for mandate name(slug) and label(user) 2026-04-19 00:04:03 +02:00
serviceCenter fix(rag): stable ingestion idempotency across re-extractions (AC4) 2026-04-29 14:39:40 +02:00
serviceHub fixed formgenerator , trustee, sort and filter 2026-04-14 00:15:56 +02:00
shared Graph and data class falignment strict 2026-04-26 22:53:44 +02:00
system Graph and data class falignment strict 2026-04-26 22:53:44 +02:00
workflows wired infomaniac to ai adapters and tools 2026-04-29 01:52:47 +02:00