Files
memex/system/plans/flight-plan-chat-fix.org

1017 B

Flight Plan: Fix Chat Skill Parsing

Analyst Phase

The Chat skill currently tells the LLM to output Org-mode subtrees, but the opencortex kernel evaluates LLM output via read-from-string. This expects a valid s-expression, specifically a Common Lisp property list (plist) that targets an Emacs actuator with an :insert-at-end action. We must explicitly mandate that the LLM wraps its conversational output in this plist.

Coder Phase

  • Create inbox/flight-plan-chat-fix.org (this file).
  • Update notes/org-skill-chat.org to instruct the LLM to return exactly: (:target :emacs :payload (:action :insert-at-end :buffer "*opencortex-chat*" :text "..."))
  • Fix tangle paths to root-relative ../projects/...

Tester Phase

  • Tangle the file via emacs --batch.
  • Perform syntax check with SBCL.
  • Verified that projects/org-skill-chat/src/chat-logic.lisp is correctly generated and valid.
  • User to reload skill and test in Emacs.