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

@@ -108,8 +108,12 @@ func configureCandidateOperation(prepared *PreparedPipeline, target ModuleStage,
lane := &prepared.Steps[0].lanes[0]
switch target {
case StageExtract:
lane.typed.extract = func(context.Context, any, contracts.TypedExtractionRequest[any]) (erasedTypedResult, error) {
return erasedTypedResult{Value: value}, nil
lane.typed.extract = func(ctx context.Context, _ any, _ contracts.ExtractionInput, execution ExecutionContext[any]) (erasedTypedResult, error) {
var candidate any = value
result, err := ExecuteOperation(ctx, execution, func(context.Context) (contracts.PreparedOperation[any], error) {
return contracts.DeterministicOperation[any]{Evaluation: contracts.CandidateEvaluation[any]{Result: contracts.EvaluationView[any]{Candidate: &candidate}}}, nil
})
return erasedTypedResult{Value: result.Value, Outcome: result.Outcome, Assessment: result.Assessment}, err
}
lane.typed.merge = func(context.Context, any, contracts.TypedMergeRequest[any]) (erasedTypedResult, error) {
return erasedTypedResult{Value: codecNotes{Items: []string{"merged-other"}}}, nil