autonomy policy: add configurable idle_round_budget auto-release window for no-dialog execution

This commit is contained in:
DBT
2026-03-01 16:08:26 +00:00
parent ed47e2dfe0
commit 5f9d526ef4
5 changed files with 23 additions and 2 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.IdleRoundBudgetReleaseSec < 0 {
errs = append(errs, fmt.Errorf("agents.defaults.autonomy.idle_round_budget_release_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"))
}