- Updated all 23 skill org files to use absolute path - Tangle now outputs directly to ~/.local/share/opencortex/skills/ - Removed env var (org-babel doesn't expand it)
1.0 KiB
1.0 KiB
SKILL: Protocol Validator (org-skill-protocol-validator.org)
Overview
The Protocol Validator skill enforces strict schema compliance for all internal and external communication.
Implementation
Validation Logic
(defun protocol-validate (msg)
"Enforces structural schema compliance on protocol messages."
(validate-communication-protocol-schema msg))
Skill Registration
(defskill :skill-protocol-validator
:priority 95
:trigger (lambda (ctx) (declare (ignore ctx)) t)
:deterministic (lambda (action ctx)
(declare (ignore ctx))
(handler-case
(progn (protocol-validate action) action)
(error (c)
(list :type :LOG :payload (list :level :error :text (format nil "Protocol Violation: ~a" c)))))))