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

@@ -57,6 +57,9 @@ type Normalizer[T any] interface {
}
type TypedValidationRequest[T any] struct {
// SourceIndex optionally borrows the unchanged Source snapshot's read-only
// index. Standalone callers may omit it; it is not a chunk-local index.
SourceIndex *source.DocumentIndex
Execution ExecutionOptions
Stage string
LaneID string
@@ -83,6 +86,8 @@ type TypedValidator[T any] interface {
}
type ChunkValidationRequest struct {
// SourceIndex optionally borrows the complete Source snapshot's read-only index.
SourceIndex *source.DocumentIndex
Execution ExecutionOptions
ModuleKey string
Source *source.SourceDocument
@@ -103,6 +108,8 @@ type ChunkValidator interface {
}
type SerializedValidationRequest struct {
// SourceIndex optionally borrows the complete Source snapshot's read-only index.
SourceIndex *source.DocumentIndex
Execution ExecutionOptions
Stage string
LaneID string