fix(protocol): Force uppercase normalization for message types in validator
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 2s

This commit is contained in:
2026-04-19 19:47:21 -04:00
parent 5ad02f6f2e
commit e2d1d9ac8f
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ Decouple protocol parsing (framing/unframing) from semantic validation.
(unless (listp msg)
(error "Communication Protocol Schema Error: Message must be a property list (got ~s)" (type-of msg)))
(let ((type (proto-get msg :type)))
(let ((type (let ((raw (proto-get msg :type))) (if (keywordp raw) (intern (string-upcase (string raw)) :keyword) raw))))
(unless (member type '(:REQUEST :EVENT :RESPONSE :LOG :STATUS))
(error "Communication Protocol Schema Error: Invalid message type '~a'" type))