- Fixed kernel-to-Emacs communication bridge. - Resolved boot-time crashes in multiple skeletal skills. - Refined Chat skill prompt to eliminate conversational filler. - Updated Emacs UI to automatically clean up status markers. - Synchronized all fixes via Literate Org-mode documents. - Verified physical two-way interaction via simulation.
93 lines
2.9 KiB
Org Mode
93 lines
2.9 KiB
Org Mode
#+TITLE: SKILL: Task Integrity Agent (Universal Literate Note)
|
|
#+ID: skill-task-integrity
|
|
#+STARTUP: content
|
|
#+FILETAGS: :gtd:integrity:safety:psf:
|
|
|
|
* Overview
|
|
The *Task Integrity Agent* is the "Guardian" of the GTD system. It ensures that all task transitions adhere to semantic rules, preventing logical inconsistencies and maintaining the structural health of the task hierarchy.
|
|
|
|
* Phase A: Demand (PRD)
|
|
:PROPERTIES:
|
|
:STATUS: FROZEN
|
|
:END:
|
|
|
|
** 1. Purpose
|
|
Define automated behaviors for GTD state consistency and dependency verification.
|
|
|
|
** 2. User Needs
|
|
- *Semantic Enforcement:* Valid state transitions (Active vs. Resolved).
|
|
- *Dependency Awareness:* Block closing parents with active children.
|
|
- *Proactive Assistance:* Suggesting next logical actions based on momentum.
|
|
- *Fidelity:* Preservation of metadata during state transitions.
|
|
|
|
** 3. Success Criteria
|
|
*** TODO Semantic Category Mapping
|
|
*** TODO Active Children Detection
|
|
*** TODO State Transition Block Verification
|
|
|
|
* Phase B: Blueprint (PROTOCOL)
|
|
:PROPERTIES:
|
|
:STATUS: SIGNED
|
|
:END:
|
|
|
|
** 1. Architectural Intent
|
|
Interfaces for state verification and hierarchical auditing. Source of truth is the Org-mode AST and GTD metadata.
|
|
|
|
** 2. Semantic Interfaces
|
|
#+begin_src lisp
|
|
(defun semantic-state-category (state)
|
|
"Maps raw keywords to :active or :resolved categories.")
|
|
|
|
(defun has-active-children-p (parent-id)
|
|
"Recursively checks for active subtasks.")
|
|
|
|
(defun verify-skill-task-integrity (proposed-action context)
|
|
"System 2 gatekeeper for logical task consistency.")
|
|
#+end_src
|
|
|
|
* Phase D: Build (Implementation)
|
|
|
|
** State Mapping
|
|
#+begin_src lisp :tangle projects/org-skill-task-integrity/src/integrity-logic.lisp
|
|
(defun semantic-state-category (state)
|
|
(let ((s (string-upcase (or state ""))))
|
|
(cond
|
|
((member s '("TODO" "NEXT" "WAIT") :test #'string=) :active)
|
|
((member s '("DONE" "CNCL" "CANCELED") :test #'string=) :resolved)
|
|
(t :unknown))))
|
|
#+end_src
|
|
|
|
** Dependency Checking
|
|
#+begin_src lisp :tangle projects/org-skill-task-integrity/src/integrity-logic.lisp
|
|
(defun has-active-children-p (parent-id)
|
|
;; Simplified implementation for refactor
|
|
nil)
|
|
#+end_src
|
|
|
|
** Sensory Perception
|
|
#+begin_src lisp :tangle ../projects/org-skill-task-integrity/src/integrity-logic.lisp
|
|
(defun trigger-skill-task-integrity (context)
|
|
"Triggers on :heartbeat for periodic cleanup."
|
|
(let ((payload (getf context :payload)))
|
|
(eq (getf payload :sensor) :heartbeat)))
|
|
|
|
(defun neuro-skill-task-integrity (context)
|
|
"Neural stage for task synthesis."
|
|
(declare (ignore context))
|
|
nil)
|
|
|
|
(defun verify-skill-task-integrity (proposed-action context)
|
|
"System 2 gatekeeper for logical task consistency."
|
|
(declare (ignore context))
|
|
proposed-action)
|
|
#+end_src
|
|
|
|
* Registration
|
|
#+begin_src lisp
|
|
(defskill :skill-task-integrity
|
|
:priority 50
|
|
:trigger #'trigger-skill-task-integrity
|
|
:neuro #'neuro-skill-task-integrity
|
|
:symbolic #'verify-skill-task-integrity)
|
|
#+end_src
|