Route spell extraction through core preparation with remaining extractors pending

This commit is contained in:
2026-11-25 15:24:50 +00:00
parent bab7b2305f
commit ccecf13a4c
24 changed files with 306 additions and 148 deletions

View File

@@ -7,6 +7,7 @@ import (
"gitea.maximumdirect.net/eric/notarius/internal/core/source"
"gitea.maximumdirect.net/eric/notarius/internal/framework/contracts"
"go.maximumdirect.net/promptkit"
)
// PreparedPipeline owns the constructed, run-local implementation set for one
@@ -51,6 +52,7 @@ type preparedLaneExecutor struct {
}
type preparedTypedLane struct {
engine *promptkit.Engine
extractor any
merger any
normalizer any
@@ -223,7 +225,7 @@ func prepareLane(pipeline ResolvedPipeline, lane ResolvedArtifactLane, registrie
if codecErr != nil {
return preparedLaneExecutor{}, constructionError(pipeline.ID, lane.ID, StageExtract, lane.Extract.Module, "", codecErr)
}
executor.typed = &preparedTypedLane{extractor: module, extract: extractEntry.extract, codec: codec}
executor.typed = &preparedTypedLane{extractor: module, extract: extractEntry.extract, codec: codec, engine: deps.Engine}
if registry := registries.ArtifactEvidence; registry != nil {
if evidence, ok := registry.entries[lane.ArtifactKind]; ok {
// Projectors retain their own exact-type check. A mismatch is an