- New system-event-orchestrator skill with hook registry, cron registry, and tier classifier - Three dispatch tiers: :reflex (no LLM), :cognition (light), :reasoning (full) - Org-mode timestamp parsing for repeat patterns (+1w, +1d, +1m) - Registers on heartbeat via defskill, dispatches due cron jobs - Fix all remaining harness-log → log-message references across org files
19 lines
717 B
Common Lisp
19 lines
717 B
Common Lisp
(defun self-improve-edit (filepath old-text new-text)
|
|
"Applies a transformation to a source file."
|
|
(declare (ignore old-text new-text))
|
|
(log-message "SELF-EDIT: Applying changes to ~a" filepath))
|
|
|
|
(defskill :passepartout-system-self-improve
|
|
:priority 100
|
|
:trigger (lambda (ctx) (declare (ignore ctx)) nil))
|
|
|
|
(defun self-improve-fix (skill-name error-log)
|
|
"Attempts to diagnose and repair a broken skill."
|
|
(declare (ignore error-log))
|
|
(log-message "SELF-FIX: Attempting repair of ~a..." skill-name))
|
|
|
|
(defskill :passepartout-system-self-improve
|
|
:priority 100
|
|
:trigger (lambda (ctx) (member (getf ctx :type) '(:LOG :EVENT)))
|
|
:deterministic (lambda (action ctx) (declare (ignore action ctx)) nil))
|