package runnerproto import "unicode/utf8" const MaxCoordinatorTextBytes = 32 << 10 const MaxCoordinatorTextEvents = 1024 // CoordinatorText is a replaceable draft, never proof of delivery. // Snapshots make HTTP retries idempotent without duplicating text. type CoordinatorText struct { Text string `json:"text"` } func (v CoordinatorText) Validate() error { if len(v.Text) == 0 || len(v.Text) > MaxCoordinatorTextBytes || !utf8.ValidString(v.Text) { return ErrInvalid } return nil }