Remove direct output validation

This commit is contained in:
2026-11-05 20:01:28 +00:00
parent 4b4ce43796
commit 1fbd175e53
3 changed files with 10 additions and 56 deletions

View File

@@ -6,14 +6,6 @@ import (
"go.maximumdirect.net/promptkit/internal/domain"
)
// Validator validates the generated artifact based on the output contract.
// Validation checks ctx around Promptkit-controlled work and synchronous
// dependency calls. A dependency call already in progress cannot be preempted;
// after it returns, cancellation takes precedence over its result.
type Validator interface {
Validate(ctx context.Context, artifact *domain.Artifact, contract domain.OutputContract) (domain.ValidationResult, error)
}
// PreparedValidation validates artifacts against one frozen output contract.
// Its cancellation boundary is synchronous: Validate does not detach schema
// execution, and an observed context error prevents publication of a result.