Share the source index with validators

This commit is contained in:
2026-11-26 05:12:19 +00:00
parent 60e732bbe8
commit d66cfe3986
43 changed files with 191 additions and 68 deletions

View File

@@ -61,10 +61,12 @@ capture, or terminal mode. The runner binds those privately; direct callers can
supply a [core execution context](../../internal/framework/pipeline/operation.go)
and preparation function to the same executor.
Extraction receives an optional read-only index of the complete source document.
The runner shares one index across the run's extraction jobs and cache decoders;
standalone callers may omit it or supply an index for their source. It is not a
chunk index, and request-local mutable data remains separately owned.
Extraction and validator requests receive an optional read-only index of the
complete source document. The runner shares one index across extraction,
validation, and cache decoding; standalone callers may omit it or supply an index
for their source snapshot. Detached validator source views retain the same unit
IDs/order and borrow that index. It is not a chunk index, and request-local
mutable data remains separately owned.
- Return a deterministic operation with one candidate when no model is needed.
Core assesses it once; there is no native request or synthetic cache key.