Harden timebox validation and test ForRuntime

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-05-31 11:39:38 -04:00
parent e66fddd29f
commit 0a934bf061
2 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ func NewManual(nextAction, successCondition string, timebox time.Duration) (Comm
if successCondition == "" {
return Commitment{}, ErrMissingSuccessCondition
}
if timebox <= 0 {
if timebox < time.Second {
return Commitment{}, ErrMissingTimebox
}
return Commitment{