feat(arch): implement 'Code as Thought' architecture and formalize PSF Consensus Loop

This commit is contained in:
2026-03-31 13:03:26 -04:00
parent 5a9129132e
commit 1712b1e4a9
114 changed files with 3652 additions and 2581 deletions

View File

@@ -1 +0,0 @@
../system/skills/org-skill-brain-mapper.org

View File

@@ -0,0 +1,62 @@
#+TITLE: SKILL: Brain Mapper Agent (Universal Literate Note)
#+ID: skill-brain-mapper
#+STARTUP: content
#+FILETAGS: :meta-cognition:telemetry:psf:
* Overview
The **Brain Mapper Agent** provides the system with meta-cognitive capabilities. It enables visualization and optimization of the internal "Skill Graph" through real-time telemetry analysis.
* Phase A: Demand (PRD)
:PROPERTIES:
:STATUS: FROZEN
:END:
** 1. Purpose
Define the interfaces for self-introspection and skill hierarchy optimization.
** 2. User Needs
- **Transparency:** Explain cognitive hierarchy and decision priorities.
- **Self-Optimization:** Proactive priority adjustment suggestions.
- **Introspection:** Identify bottleneck or failing skills.
** 3. Success Criteria
*** TODO Introspective Trigger Verification
*** TODO Telemetry Synthesis Accuracy
*** TODO Optimization Command Generation
* Phase B: Blueprint (PROTOCOL)
:PROPERTIES:
:STATUS: SIGNED
:END:
** 1. Architectural Intent
Interfaces for skill registry introspection and priority manipulation. Source of truth is the live skill registry and telemetry bus.
** 2. Semantic Interfaces
#+begin_src lisp
(defun trigger-skill-brain-mapper (context)
"Triggers on 'show me your brain' or 'skill graph'.")
(defun neuro-skill-brain-mapper (context)
"Neural architect analysis of skill performance.")
#+end_src
* Phase D: Build (Implementation)
** Introspective Trigger
#+begin_src lisp :tangle projects/org-skill-brain-mapper/src/brain-logic.lisp
(defun trigger-skill-brain-mapper (context)
(let* ((payload (getf context :payload))
(text (or (getf payload :text) "")))
(or (search "show me your brain" text :test #'string-equal)
(search "skill graph" text :test #'string-equal))))
#+end_src
* Registration
#+begin_src lisp
(defskill :skill-brain-mapper
:priority 95
:trigger #'trigger-skill-brain-mapper
:neuro #'neuro-skill-brain-mapper
:symbolic (lambda (action context) action))
#+end_src