add autonomy quiet-hours policy and reflect logs with task persistence

This commit is contained in:
DBT
2026-02-24 00:56:11 +00:00
parent f644ae83ff
commit b4b2c4c221
5 changed files with 76 additions and 9 deletions

View File

@@ -102,6 +102,12 @@ func Validate(cfg *Config) []error {
if aut.NotifyCooldownSec <= 0 {
errs = append(errs, fmt.Errorf("agents.defaults.autonomy.notify_cooldown_sec must be > 0 when enabled=true"))
}
if qh := strings.TrimSpace(aut.QuietHours); qh != "" {
parts := strings.Split(qh, "-")
if len(parts) != 2 {
errs = append(errs, fmt.Errorf("agents.defaults.autonomy.quiet_hours must be HH:MM-HH:MM"))
}
}
}
texts := cfg.Agents.Defaults.Texts
if strings.TrimSpace(texts.NoResponseFallback) == "" {