ingest

open override fun ingest(batch: IngestionBatch, context: SourceAnalysisContext): IngestionResult

Ingest a batch of artifacts, returning one outcome per artifact.

The shipped text handler processes a batch SEQUENTIALLY, in submission order. Its intra-batch deduplication (two artifacts in one batch resolving to the same content hash collapse to a single ingest) depends on that sequential processing — an earlier artifact's deduplication claim is visible to a later identical one. An implementation that processes a batch in parallel must provide its own atomic deduplication rather than relying on processing order.

Return

The aggregate result with a per-artifact outcome

Parameters

batch

The artifacts to ingest (the primary handoff surface)

context

The analysis context (schema, resolver, context id)