diff --git a/skills/org-skill-protocol-validator.org b/skills/org-skill-protocol-validator.org index a3a227c..0bd7010 100644 --- a/skills/org-skill-protocol-validator.org +++ b/skills/org-skill-protocol-validator.org @@ -55,7 +55,7 @@ Decouple protocol parsing (framing/unframing) from semantic validation. (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)) + (progn (harness-log "REJECTED MSG: ~s" msg) (error "Communication Protocol Schema Error: Invalid message type '~a'" type))) (case type (:REQUEST diff --git a/src/communication-validator.lisp b/src/communication-validator.lisp index ef8831b..329df45 100644 --- a/src/communication-validator.lisp +++ b/src/communication-validator.lisp @@ -7,7 +7,7 @@ (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)) + (progn (harness-log "REJECTED MSG: ~s" msg) (error "Communication Protocol Schema Error: Invalid message type '~a'" type))) (case type (:REQUEST