check(c.LLM.CorrectionRepairAttempts>=0,ck.Keys("llm","correction_repair_attempts"),"correction repair attempts must be non-negative")
check(c.LLM.CorrectionRepairProfile==nil||*c.LLM.CorrectionRepairProfile!="",ck.Keys("llm","correction_repair_profile"),"correction repair profile must not be empty; use null to clear it")
check(c.LLM.ValidationProfile==nil||*c.LLM.ValidationProfile!="",ck.Keys("llm","validation_profile"),"validation profile must not be empty; use null to clear it")
check(item.LLM.ValidationProfile==nil||*item.LLM.ValidationProfile!="",path.Key("llm").Key("validation_profile"),"validation profile must not be empty; use null to clear it")
check(item.LLM.CorrectionRepairAttempts>=0,path.Key("llm").Key("correction_repair_attempts"),"correction repair attempts must be non-negative")
check(item.LLM.CorrectionRepairProfile==nil||*item.LLM.CorrectionRepairProfile!="",path.Key("llm").Key("correction_repair_profile"),"correction repair profile must not be empty; use null to clear it")
check(item.LLM.TransientRetries>=0,path.Key("llm").Key("transient_retries"),"retry budget must be non-negative")
check(item.LLM.RepairAttempts>=0&&item.LLM.RepairAttempts<=3,path.Key("llm").Key("repair_attempts"),"repair attempts must be between zero and three")
check(item.LLM.OperationTimeout>0,path.Key("llm").Key("operation_timeout"),"operation timeout must be positive")
check(item.Validation.MaxPromptTokens>0,path.Key("validation").Key("max_prompt_tokens"),"validation prompt budget must be positive")
check(len(strings.TrimSpace(item.Context.Description))<=DefaultTranscriptDescriptionMaxChars,path.Key("context").Key("description"),fmt.Sprintf("description must be at most %d bytes after trimming",DefaultTranscriptDescriptionMaxChars))
check(c.Validation.MaxPromptTokens>0,ck.Keys("validation","max_prompt_tokens"),"validation prompt budget must be positive")
check(c.Chunking.MaxSectionTokens>0,ck.Keys("chunking","max_section_tokens"),"maximum section tokens must be positive")
check(c.Chunking.MinSectionTokens>0&&c.Chunking.MinSectionTokens<=c.Chunking.MaxSectionTokens,ck.Keys("chunking","min_section_tokens"),"minimum section tokens must be positive and no greater than maximum")
check(c.Chunking.TargetSections==nil||*c.Chunking.TargetSections>0,ck.Keys("chunking","target_sections"),"target sections must be positive when set")
check(c.Normalization.MaxSegmentGap>=0,ck.Keys("normalization","max_segment_gap"),"maximum segment gap must be non-negative")
check(c.Normalization.EllipsisGap>=0,ck.Keys("normalization","ellipsis_gap"),"ellipsis gap must be non-negative")
check(c.Normalization.MaxSegmentDuration>0,ck.Keys("normalization","max_segment_duration"),"maximum segment duration must be positive")
check(c.Normalization.MaxSegmentTokens>0,ck.Keys("normalization","max_segment_tokens"),"maximum segment tokens must be positive")
check(len(strings.TrimSpace(c.Context.Description))<=DefaultTranscriptDescriptionMaxChars,ck.Keys("context","description"),fmt.Sprintf("description must be at most %d bytes after trimming",DefaultTranscriptDescriptionMaxChars))