:max-bytes validation hook
The :max-length validation hook counts characters ((length value) on the Lisp string), not bytes. For fields with a byte budget — e.g. summaries capped near 8K — a multibyte UTF-8 string can pass the character check and still exceed the limit on the wire/disk. Add a :max-bytes validation hook to the registry that counts UTF-8 octets (e.g. via babel's string-to-octets), parameterized like (:max-bytes :max 8191), with the same contract as :max-length: inclusive, no-op on empty/nil, signals a validation error naming type/field/value. Document it in the model-reference validation table beside :max-length.
- Slot
- 29100
- Status
- 10 Open
- Tags
- mvp, valdn
- Contributors
- Donnie, Rose