Fix duplicate frame-message, tangled files, package.lisp corruption
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 3s

- Removed duplicate frame-message from communication.org (was in 2 src blocks)
- Fixed communication.org :tangle directive (was wrongly targeting package.lisp)
- Added (in-package :opencortex) to engineering-standards.lisp
- Retangled package.org, communication.org, engineering-standards.org

Tests still not running - investigation in progress.
This commit is contained in:
2026-04-25 20:31:05 -04:00
parent bcfffe15ee
commit 86eeaab66e
6 changed files with 85 additions and 78 deletions

View File

@@ -10,7 +10,7 @@ The ~communication.lisp~ module defines the low-level transport and framing logi
* Implementation (communication.lisp)
#+begin_src lisp :tangle ../library/package.lisp
#+begin_src lisp :tangle ../library/communication.lisp
(in-package :opencortex)
(defun proto-get (plist key)
@@ -32,13 +32,7 @@ The ~communication.lisp~ module defines the low-level transport and framing logi
(let ((key (if (keywordp name) name (intern (string-upcase (string name)) :keyword))))
(setf (gethash key *actuator-registry*) fn)))
(defun frame-message (msg-plist)
"Frames a Lisp plist with a 6-character hex length and a newline for stream integrity."
(let* ((*print-pretty* nil)
(*print-circle* nil)
(msg-string (format nil "~s" msg-plist))
(len (length msg-string)))
(format nil "~6,'0x~a~%" len msg-string)))
;; Removed duplicate frame-message - kept the sanitized version below
(defun read-framed-message (stream)
"Reads a hex-length prefixed S-expression from the stream securely. Skips leading whitespace."