PSF: Mass-regeneration complete. 53/53 high-fidelity blueprints and TDD suites established. Zero-cost Pro bridge active.
This commit is contained in:
@@ -25,65 +25,3 @@ Enable the agent to maintain focus and coherence over tasks spanning 100+ steps
|
||||
*** TODO Context Compression Verification
|
||||
*** TODO Branch Pruning Logic Effectiveness
|
||||
|
||||
* Phase B: Blueprint (PROTOCOL)
|
||||
:PROPERTIES:
|
||||
:STATUS: SIGNED
|
||||
:END:
|
||||
|
||||
** 1. Architectural Intent
|
||||
Interfaces for plan generation and recursive summarization. Source of truth is the current plan subtree in the Object Store.
|
||||
|
||||
** 2. Semantic Interfaces
|
||||
#+begin_src lisp
|
||||
(defun plan-compress-node (node-id)
|
||||
"Neural summarization of a completed sub-task tree.")
|
||||
|
||||
(defun plan-review-branches (root-id)
|
||||
"Meta-cognitive audit of the current plan to prune dead ends.")
|
||||
#+end_src
|
||||
|
||||
* Phase D: Build (Implementation)
|
||||
|
||||
** Context Compression
|
||||
#+begin_src lisp :tangle projects/org-skill-long-horizon/src/planning-logic.lisp
|
||||
(defun plan-compress-node (node-id)
|
||||
"Summarizes a completed task and its children into a single string to save context."
|
||||
(let* ((obj (org-agent:lookup-object node-id))
|
||||
(children (org-agent:org-object-children obj))
|
||||
(content (org-agent:org-object-content obj))
|
||||
(child-summaries (loop for cid in children
|
||||
collect (org-agent:org-object-content (org-agent:lookup-object cid)))))
|
||||
(org-agent:ask-neuro
|
||||
(format nil "Summarize this completed sub-task and its outcomes: ~a~%Sub-tasks: ~{~a~%~}" content child-summaries)
|
||||
:system-prompt "You are a Meta-Cognitive Pruning Engine. Summarize outcomes to preserve high-signal context.")))
|
||||
#+end_src
|
||||
|
||||
** Neuro-Cognitive Audit
|
||||
#+begin_src lisp :tangle projects/org-skill-long-horizon/src/planning-logic.lisp
|
||||
(defun neuro-skill-long-horizon (context)
|
||||
"Triggered when a major milestone is reached.
|
||||
Performs a 'Review' of the entire plan tree."
|
||||
(let* ((payload (getf context :payload))
|
||||
(root-id (getf payload :plan-root-id))
|
||||
(plan-tree (org-agent:lookup-object root-id)))
|
||||
(format nil "
|
||||
I am performing a Meta-Cognitive Audit of the current plan.
|
||||
ROOT: ~a
|
||||
STATUS: ~a
|
||||
|
||||
TASK:
|
||||
1. Identify nodes that are 'BLOCKED' or 'FAILED'.
|
||||
2. Decide if these branches should be RETRIED, PRUNED, or if the PLAN needs RESTRUCTURING.
|
||||
3. Return a revised plan structure in Lisp format.
|
||||
" (getf (org-agent:org-object-attributes plan-tree) :TITLE)
|
||||
(getf (org-agent:org-object-attributes plan-tree) :TODO-STATE))))
|
||||
#+end_src
|
||||
|
||||
* Registration
|
||||
#+begin_src lisp
|
||||
(defskill :skill-long-horizon
|
||||
:priority 95
|
||||
:trigger (lambda (context) (eq (getf (getf context :payload) :sensor) :milestone))
|
||||
:neuro #'neuro-skill-long-horizon
|
||||
:symbolic (lambda (action context) action))
|
||||
#+end_src
|
||||
|
||||
Reference in New Issue
Block a user