From 8ff305d6acee2543f1e280f321adec2ab15bb05c Mon Sep 17 00:00:00 2001 From: Amr Gharbeia Date: Sat, 11 Apr 2026 20:14:37 -0400 Subject: [PATCH] feat(agent): Define session-less cognitive architecture - **Anatomy (Data Stores):** Defines the three-tiered data model: 1. Linguistic Substrate (Org files) 2. Lisp Object Store (Live graph in RAM) 3. Telemetry Store (External TSDB for sensory data) - **Psychology (Cognitive Matrix):** Establishes the 2x2 matrix that balances Conscious/Subconscious and Neural/Symbolic (System 1/2) processing. - **Physiology (Core Processes):** Outlines the five core processes (Perception, Reasoning, Distillation, Reflection, Sensation) that bring the architecture to life. This commit also updates the master GTD with the full engineering roadmap required to implement this session-less vision, including tasks for cognitive economics, belief revision, and the Micro-Prolog engine. --- README.org | 23 +++++++++++++++++++++++ gtd.org | 15 ++++++++++++++- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index 15878e2..1d1b885 100644 --- a/README.org +++ b/README.org @@ -39,6 +39,29 @@ A Common Lisp microkernel that maintains a live, threaded Object-Store in RAM. I ** Gemini CLI A strategic orchestrator that handles large-scale batch tasks, research, and planning. It operates according to the *PSF Consensus Loop* (Demand -> Blueprint -> Success -> Build -> Chaos -> Memory). +* The Cognitive Architecture: A Session-less Mind +The agent's "mind" is not a transient chat session but a durable, stateful cognitive architecture. This design enables a truly "session-less" experience, where the agent's context, personality, and awareness are as persistent as the data itself. + +*** The Anatomy: Three Data Stores +1. *The Linguistic Substrate (Org Files):* The human-readable Source of Truth, comprising the "Journal" ([[file:daily/README.org][Dailies]]) and the "Ledger" ([[file:notes/README.org][Notes]]). +2. *The Lisp Object Store (RAM):* The "Active Brain," a live graph of Lisp objects representing every headline, paragraph, and entity in the Memex, with vectors embedded directly inside. +3. *The Telemetry Store (TSDB/Binary):* An external, high-volume database for sub-symbolic "Sensory" data (e.g., smart home logs), which is monitored and distilled by the agent. + +*** The Psychology: The 2x2 Cognitive Matrix +The agent's "thought" process is not monolithic. It operates on a 2x2 matrix that balances cognitive speed with cognitive state, allowing for sophisticated, multi-layered reasoning. + +| | *System 1 (Neural/Fast/Intuitive)* | *System 2 (Symbolic/Slow/Logical)* | +| :--- | :--- | :--- | +| *Conscious (Foveal/Active)* | *The Interface:* A fast, charming LLM for active conversation. | *The Pilot:* Lisp guards that ensure active requests are safe. | +| *Subconscious (Peripheral/Passive)* | *The Editor:* A smart, deep LLM that finds patterns in the background. | *The Librarian:* A deterministic Lisp engine that files, archives, and maintains the integrity of memory. | + +*** The Physiology: Five Core Processes +1. *Perception (The Attention Bridge):* Automatically vectorizes user input to set the "Foveal Focus" for the active conversation. +2. *Reasoning (The Micro-Prolog):* Uses symbolic logic to reconcile contradictions and enforce the "Physics" of the Memex. +3. *Distillation (The Scribe):* The Subconscious loop that turns the daily "Journal" entries into permanent "Ledger" knowledge. +4. *Reflection (The Gardener):* The heartbeat-driven process that finds "forgotten" links and maintains the "Vibe" of the system. +5. *Sensation (The Sensor Skill):* The "Signal-to-Symbol" converter that turns the "flood" of telemetry into actionable =TODO= items. + * Core Workflows: The Life of a Thought 1. *Capture:* Raw information enters via the `inbox` (tasks) or `daily` logs (thoughts). 2. *Distill (The Scribe):* Automated agents periodically extract conceptual thoughts from the chronological logs into evergreen, atomic notes. diff --git a/gtd.org b/gtd.org index 5074ba6..0ed2370 100644 --- a/gtd.org +++ b/gtd.org @@ -97,7 +97,20 @@ Slim down the org-agent microkernel by moving non-essential cognitive functions - Implemented Task Integrity (GTD semantics) in symbolic.lisp. - Integrated Consensus Gate and Delegation hooks in core.lisp. - Verified with new task-orchestrator-tests.lisp. -**** DONE Implement `org-skill-lisp-repair` (Self-correcting syntax gate for System 2) +**** TODO Implement Two-Speed Reflection (Immediate :post-action + Latent Heartbeat) +**** TODO Implement Context-Aware Routing (Autonomous Foveal Switching on intent shift) +**** TODO Implement Intent-Shift Detector (Semantic topic-shift flagging in neuro.lisp) +**** TODO Implement Cognitive Economics (Dynamic LLM routing based on 2x2 matrix complexity) +**** TODO Implement Micro-Prolog Logic Engine (Lisp-native unification & pattern matching for Object Store) +**** TODO Implement Sovereign Logic Synthesis (Hybrid SubSys2: Neural pattern detection + Symbolic rule generation) +**** TODO Implement Continuous Vibe (Sentiment-weighted personality in system-prompt) +**** TODO Implement Search-Before-Think Bridge (Autonomous target-id population via vector search in perceive-gate) +**** TODO Implement Belief Revision & Reconciliation (Audit deltas for contradictions in scribe-engine.lisp) +**** TODO Implement Real-Time Entity Linking (Automatic profile loading for People/Objects in perceive-gate) +**** TODO Implement Time-Series Sensor Skill (Signal-to-Symbol distillation for telemetry) +**** TODO Implement Autonomous Image Analysis (Send image bytes to LLM for nodes with attachments in llm-gateway.lisp) +**** TODO Wake up the Scribe (Implement autonomous weekly Journal-to-Ledger distillation in org-skill-scribe.org) +**** TODO Implement `org-skill-lisp-repair` (Self-correcting syntax gate for System 2) CLOSED: [2026-04-11 Sat 15:10] :PROPERTIES: :ID: lisp-repair-gate