Improve semantic reconciliation retries

This commit is contained in:
2026-08-28 18:25:00 +00:00
parent 5cab4e512e
commit 4da9360d74
25 changed files with 771 additions and 69 deletions

View File

@@ -102,11 +102,12 @@ type TypedNormalizeResult[T any] struct {
ModelCandidate *ModelCandidate
}
// Normalize retry diagnostic limits bound module-provided values before the
// framework persists them in debug artifacts.
// Normalize retry limits bound module-provided control and diagnostic text
// before the framework consumes or records it.
const (
MaxNormalizeRetryReasonCodeBytes = 128
MaxNormalizeRetryMessageBytes = 4096
MaxNormalizeRetryReasonCodeBytes = 128
MaxNormalizeRetryMessageBytes = 4096
MaxNormalizeRetryCorrectionGuidanceBytes = 4096
)
// NormalizeRetry asks the framework to retry normalization while retaining a
@@ -114,6 +115,7 @@ const (
type NormalizeRetry struct {
ReasonCode string
Message string
CorrectionGuidance string
FallbackDiagnostics []ProducerDiagnostic
}