multica-ai/multica · error

must be between and

Error message

must be between %d and %d

What it means

Raised by ValidateMaxConcurrentTasks, the shared range guard for agent max-concurrent-tasks settings: the int32 value falls outside [1, 50] (MinMaxConcurrentTasks..MaxMaxConcurrentTasks, defaults around 6). Used by both the CLI flag validator and server-side agent validation; the input at fault is the concurrency value.

Solutions

  1. Set the concurrency value within the allowed range shown in the message.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at server/internal/agentconfig/concurrency.go:17 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15). Data as JSON: /api/errors/6287c7615ce78927. Report an issue: GitHub.

Appendix: source

Thrown at server/internal/agentconfig/concurrency.go:17

package agentconfig

import "fmt"

const (
	DefaultMaxConcurrentTasks int32 = 6
	MinMaxConcurrentTasks     int32 = 1
	MaxMaxConcurrentTasks     int32 = 50
)

func IsValidMaxConcurrentTasks(value int32) bool {
	return value >= MinMaxConcurrentTasks && value <= MaxMaxConcurrentTasks
}

func ValidateMaxConcurrentTasks(value int32) error {
	if !IsValidMaxConcurrentTasks(value) {
		return fmt.Errorf(
			"must be between %d and %d",
			MinMaxConcurrentTasks,
			MaxMaxConcurrentTasks,
		)
	}
	return nil
}

View on GitHub (pinned to 2c0912b6ec)