task history retention: add 3-day configurable cleanup and notify allowlist enforcement

This commit is contained in:
DBT
2026-02-28 13:10:23 +00:00
parent 6705a2b4e8
commit c7a6d34188
5 changed files with 77 additions and 0 deletions

View File

@@ -117,6 +117,9 @@ func Validate(cfg *Config) []error {
if aut.WaitingResumeDebounceSec <= 0 {
errs = append(errs, fmt.Errorf("agents.defaults.autonomy.waiting_resume_debounce_sec must be > 0 when enabled=true"))
}
if aut.TaskHistoryRetentionDays <= 0 {
errs = append(errs, fmt.Errorf("agents.defaults.autonomy.task_history_retention_days must be > 0 when enabled=true"))
}
}
texts := cfg.Agents.Defaults.Texts
if strings.TrimSpace(texts.NoResponseFallback) == "" {