#+TITLE: Amero GTD
#+author: Amero Garcia
#+created: [2026-03-16 Mon 14:28]
#+DATE: 2026-03-11
#+STARTUP: content
#+FILETAGS: :GTD:

* Actions
:PROPERTIES:
:ID:       gtd-actions
:END:

* Projects
:PROPERTIES:
:ID:       gtd-projects
:END:

** NEXT OpenCortex v1.0
:PROPERTIES:
:ID:       proj-opencortex-v1-0
:Engineering-STATE: D: BUILD
:CREATED:  [2026-03-09 Mon 14:23]
:END:
OpenCortex: A Neurosymbolic AI Agent.

*** PHASE: AUTONOMOUS MVP (v0.1.0 Released)
:PROPERTIES:
:ID:       proj-mvp-v0-1-0
:END:
The "Zero-to-One" release. The agent must be mathematically secure, CLI-first, and capable of autonomous Memex maintenance.

**** DONE 1. Harness Hardening (The Final Audit)
***** DONE Audit remaining core skills (`org-skill-policy.org`, `org-skill-bouncer.org`) to the new Literate Granularity standard.
***** DONE Implement Verification Lock: Ensure `MANDATORY_SKILLS` pass `validate-lisp-syntax` before boot proceeds.
***** DONE Logging & Transparency: Ensure `context-get-system-logs` is utilized by the Reason engine to explain blocked actions.

**** DONE 2. The Autonomous Scribe & Gardener (The Primary Value Prop)
***** DONE Implement `org-skill-scribe.org`: Background worker that distills daily chronological logs into structured Zettelkasten notes.
***** DONE Implement `org-skill-gardener.org`: Heartbeat-driven skill that autonomously flags orphaned nodes and repairs broken links.

**** DONE 3. The Zero-to-One Experience (setup.org)
***** DONE Consolidate installation instructions, `onboard.sh`, and `Dockerfile` into a single, literate `setup.org` file.
***** DONE Ensure the setup process interactively builds the `.env` and verifies SBCL/Quicklisp dependencies.

**** DONE 4. CLI-First Actuation
     CLOSED: [2026-04-14 Tue 09:40]
***** DONE Verified the `cli` actuator and inbound gateway handle standard I/O interaction gracefully via a stateful `socat` connection.

*** PHASE: PUBLICATION & VERIFICATION (v0.1.0 Post-Release)
:PROPERTIES:
:ID:       proj-pub-v0-1-0
:END:
Ensuring the system is ready for the world through collaborative testing, documentation, and licensing.

**** TODO 1. Collaborative End-to-End Testing <2026-04-14 Tue>
***** TODO Perform a full walkthrough: Install via one-liner `opencortex.sh`, boot, and chat.
***** TODO Verify boot sequence, environment variable parsing, and LLM gateway connectivity.
***** TODO Verify Scribe background distillation on real journal data.
***** TODO Verify Gardener audit reports (orphaned nodes and broken links).

**** TODO 2. Comprehensive Documentation <2026-04-14 Tue>
***** TODO Draft `USER_MANUAL.md`: Focus on CLI interaction, installation, and Memex structure.
***** TODO Draft `CONTRIBUTING.md`: Explain Literate Granularity and Skill creation standards.

**** DONE 3. License & Legal Finalization <2026-04-14 Tue>
     CLOSED: [2026-04-17 Fri 11:25]
***** DONE Assign the AGPLv3 open-source license.
***** DONE Implement a broad Contributor License Agreement (CLA) process.
***** DONE Update `LICENSE` and `CHANGELOG` accordingly.

**** TODO 4. GitHub Migration & Repository Setup <2026-04-14 Tue>
***** TODO Migrate primary remote to GitHub and configure canonical repository.
***** TODO Set repository topics, badges, issue templates, and CI/CD foundations.

**** TODO 5. Marketing & Social Media Launch <2026-04-14 Tue>
***** TODO Execute PR plan (Reddit, Hacker News, X/Twitter).
***** TODO Create a short, high-quality terminal demo GIF/video of the TUI interaction.

*** PHASE: INTERACTIVE REFINEMENT (v0.2.0 Target)
:PROPERTIES:
:ID:       proj-refinement-v0-2-0
:END:
Elevating the user interface from raw shell piping to a high-fidelity, native Lisp experience.

**** TODO 4. Advanced CLI Onboarding Experience (Hermes/OpenClaw parity)
***** TODO Implement interactive Lisp CLI wizard (`opencortex setup`) to replace bash prompts.
***** TODO Implement `opencortex link <gateway>` for secure Telegram/Signal bot connection.
***** TODO Implement `opencortex doctor` for environment health and API key validation.
***** TODO Implement `opencortex install <skill>` for ClawHub-style dynamic skill downloading.
***** TODO Implement migration logic to ingest OpenClaw or Obsidian existing memory vaults.

**** TODO 1. Common Lisp TUI Implementation
***** TODO Integrate `croatoan` for native terminal rendering.
***** TODO Implement scrollable history viewport for chat and thought streams.
***** TODO Implement fixed bottom input box with multi-line support and command history.
***** TODO Implement a persistent status bar for background workers (Scribe/Gardener).
***** TODO Support syntax highlighting for Lisp code blocks and Org-mode syntax.

**** TODO 2. Slash Commands & Interactive Control
***** TODO Implement `/help` command for system overview.
***** TODO Implement `/exit` and `/clear` commands.
***** TODO Implement `/skill-load <name>` for dynamic hot-reloading of literate skills.
***** TODO Implement `/status`, `/config`, `/search`, and `/commit` slash commands.

**** TODO 3. Direct Lisp-to-Terminal Actuation
***** TODO Refactor the `:cli` actuator to use the native TUI rendering instead of raw stream printing.

*** PHASE: EVOLUTIONARY ROADMAP
**** TODO v0.1.0: The Autonomous Foundation (Current Release)
     - estabelecer a base segura do Lisp kernel.
**** TODO v1.0.0 (Phase 2.5): The Verified Wrapper (SOTA Parity)

     - Complete Formal Verification gates for external tools.
     - Achieve secure, end-to-end autonomous engineering workflows.
**** TODO v2.0.0 (Phase 3): Cannibalizing the Toolchain
     - Ingest DOM as native Lisp AST (Cannibalize Browser).
     - Replace string-based bash with native OS bindings (Cannibalize Shell).
**** TODO v3.0.0 (Phase 4): True Symbolic Determinism
     - Relegate LLM to Semantic Translator.
     - Implement Deterministic Planner (The Solver).
     - Implement Self-Correcting Syntax Gates.

*** PHASE: FOUNDATION (Complete)
**** DONE Draft Swank/Socket communication protocol between CL and Emacs
:PROPERTIES:
:CREATED: [2026-03-22 Sun 14:00]
:ASSIGNED: Agent
:END:
**** DONE Implement core Perceive-Think-Act loop in Common Lisp
:PROPERTIES:
:CREATED: [2026-03-22 Sun 14:00]
:ASSIGNED: Agent
:END:
**** DONE Implement Persistent Object-Store for Org entities in CL
:PROPERTIES:
:CREATED: [2026-03-22 Sun 16:30]
:ASSIGNED: Agent
:END:
**** DONE Implement LLM Connector (Probabilistic Engine) in CL Daemon
:PROPERTIES:
:CREATED: [2026-03-22 Sun 17:30]
:ASSIGNED: Agent
:END:
**** DONE Design Deterministic Engine Heuristics (Lisp logic over Memory)
:PROPERTIES:
:CREATED: [2026-03-22 Sun 17:30]
:END:
**** DONE Achieve Phase 3: The Self-Editing Kernel
:PROPERTIES:
:CREATED: [2026-03-23 Mon 16:30]
:END:
- Jailing & Sandboxing implemented
- Org-Native Skill Standard established
- Telemetry & Introspection API active

*** PHASE: THE SOVEREIGN BOUNDARY (Core vs Skills Refactor)
:PROPERTIES:
:ID:       proj-autonomous-boundary
:END:
Slim down the opencortex microharness by moving non-essential cognitive functions to hot-reloadable user-space skills.

**** DONE Extract LLM Provider Routing to a Skill (neuro.lisp)
**** DONE Extract Vector Embedding Algorithms to a Skill (embedding.lisp)
    CLOSED: [2026-04-12 Sun 14:10]
    :PROPERTIES:
    :ID: extract-embedding-skill
    :END:
    - Created `org-skill-embedding.org`.
    - Moved logic to `src/embedding-logic.lisp` via tangling.
    - Updated `system-definition.org`.
**** DONE Extract Sparse Tree Context Pruning Strategies to a Skill (context.lisp)
    CLOSED: [2026-04-12 Sun 14:25]
    :PROPERTIES:
    :ID: extract-context-skill
    :END:
    - Created `org-skill-peripheral-vision.org`.
    - Moved logic to `src/context-logic.lisp` via tangling.
    - Updated `system-definition.org`.
**** DONE Implement `org-skill-peripheral-vision` (Moving embedding logic out of core)
    CLOSED: [2026-04-12 Sun 14:25]
    :PROPERTIES:
    :ID: impl-peripheral-vision
    :END:
**** DONE Implement communication protocol Schema Validation (Prevent reader macro injection in communication.lisp)
    CLOSED: [2026-04-12 Sun 14:45]
    :PROPERTIES:
    :ID: communication-protocol-schema-validation
    :END:
    - Created `org-skill-protocol-validator.org`.
    - Integrated `validate-communication-protocol-schema` into `communication.org`.
    - Added `protocol-validator.lisp` to system definition.
**** DONE Implement Pluggable communication protocol Integrity Hashing (Core interface, Skill-based algorithms)
    CLOSED: [2026-04-12 Sun 15:15]
    :PROPERTIES:
    :ID: communication-protocol-integrity-hashing
    :END:
    - Integrated HMAC-SHA256 (`ironclad:make-mac`) in `literate/communication.org`.
**** DONE Implement Native Lisp Merkle-Tree Versioning (Short-term undo buffer in memory.lisp)
    CLOSED: [2026-04-12 Sun 19:15]
**** DONE Performance: Implement Copy-on-Write (CoW) or Persistent Data Structures for Memory
    CLOSED: [2026-04-12 Sun 19:15]
**** DONE Feature: Implement Latent Reflection (Proactive Gardening) using heartbeat idle cycles
    CLOSED: [2026-04-12 Sun 19:15]
**** DONE Simplification: Refactor Cognitive Cycle into a Unified Reactive Signal Pipeline
    CLOSED: [2026-04-12 Sun 19:15]
**** DONE Resilience: Implement Micro-Rollbacks for the Immune System
    CLOSED: [2026-04-12 Sun 19:15]
**** DONE Implement `org-skill-memory-archivist` (Long-term IPFS checkpointing and P2P sync)
    CLOSED: [2026-04-12 Sun 19:15]
**** DONE Implement True Lisp Sandboxing (eval-safe mechanism in core and policy in skills)
    CLOSED: [2026-04-12 Sun 19:15]
**** DONE Decouple Vendor Logic from Probabilistic Engine (Move Google/Anthropic/OpenAI to Skills)
    CLOSED: [2026-04-12 Sun 19:15]
**** DONE Component IV: Comprehensive Core Skill Audit (Review all 39 skills)
    CLOSED: [2026-04-12 Sun 19:45]
    :PROPERTIES:
    :ID: core-skill-audit-task
    :END:

**** DONE Consolidation I: Unified LLM Gateway (Anthropic, Gemini, Groq, OpenAI, etc.)
**** DONE Consolidation II: Credentials Vault (Secure Enclave & Masked Logging)
**** DONE Consolidation III: Homoiconic Memory (Unified Grammar, Bridge, & ID Generation)
**** DONE Consolidation IV: State Persistence Layer (Unified Local & IPFS Checkpointing)
**** DONE Consolidation V: Event Orchestrator (Unified Cron, Hooks, & Cognitive Routing)
**** DONE Consolidation VI: Task Orchestrator (Task Integrity, Delegation, & Consensus)
    CLOSED: [2026-04-11 Sat 13:45]
    :PROPERTIES:
    :ID: task-orchestrator-consolidation
    :END:
    - Implemented Parallel Multi-Backend Consensus in neuro.lisp.
    - Implemented Task Integrity (GTD semantics) in symbolic.lisp.
    - Integrated Consensus Gate and Delegation hooks in core.lisp.
    - Verified with new task-orchestrator-tests.lisp.
**** IN-PROGRESS Full review of opencortex's harness
    :PROPERTIES:
    :CREATED: [2026-04-13 Mon 13:30]
    :ASSIGNED: Agent
    :END:
    - [X] Audit terminology: Replaced OACP with "communication protocol" workspace-wide.
    - [X] Audit boot sequence: Synchronized loader with `org-skill-policy.org`.
    - [-] Audit core Perceive-Think-Act loop.
      - [X] Verified protocol framing and reader jailing (`*read-eval* nil`).
      - [X] Refactored `loop.org` for literate granularity and configuration externalization.
      - [X] Improved error handling (restricted rollback) and added graceful shutdown.
      - [X] **FIXED:** Implemented symbolic guard check in `act-gate` via Bouncer skill refactoring.
      - [X] **FIXED:** Harness `deterministic-verify` now correctly respects skill triggers.
    - [X] Ensure alignment with System Policy and Engineering Standards.
    - [X] Restored structural integrity by fixing `manifest.org` loading sequence.
**** 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 Deterministic Engine)
    CLOSED: [2026-04-11 Sat 15:10]
    :PROPERTIES:
    :ID: lisp-repair-gate
    :END:
    - Implemented asynchronous, event-driven repair logic.
    - Decoupled core from repair logic (emits `:syntax-error` event).
    - Proven via lisp-repair-tests.lisp (Asynchronous flow verified).
**** DONE Implement `org-skill-formal-verification` (Prove safety of high-impact actions)
    CLOSED: [2026-04-11 Sat 18:15]
    :PROPERTIES:
    :ID: formal-verification-task
    :END:
    - Implemented `org-skill-formal-verification.org`.
    - Created Lisp-Native Symbolic Prover for security invariants.
    - Implemented `path-confinement` invariant (restricted to memex root).
    - Implemented `no-network-exfil` invariant (blocking nc, ssh, etc).
    - Verified with `formal-verification-tests.lisp`.


*** PHASE: DETERMINISTIC ENGINE REFINEMENT
**** DONE Verify Autonomous Self-Fix Loop
    CLOSED: [2026-04-11 Sat 14:20]
    :PROPERTIES:
    :CREATED: [2026-03-23 Mon 16:30]
    :END:
    - Proven repair capability via self-fix-tests.lisp.
    - Verified surgical code patching and hot-reloading.
    - Documentation and RCA complete.
**** DONE Implement "Planning Mode" (Deterministic Engine Bouncer) for Complex Actions
    CLOSED: [2026-04-11 Sat 15:30]
    :PROPERTIES:
    :CREATED: [2026-04-01 Wed 17:00]
    :END:
    - Implemented `bouncer-check` interceptor in `symbolic.lisp`.
    - Created `org-skill-bouncer.org` for flight plan serialization.
    - Verified asynchronous Org-native approval loop via `bouncer-tests.lisp`.
**** DONE Implement Authorization Gate (communication protocol) for "Planning Mode"
    CLOSED: [2026-04-11 Sat 15:30]
    :PROPERTIES:
    :CREATED: [2026-04-01 Wed 17:00]
    :END:
    - Integrated with Org-mode state transitions (`PLAN` -> `APPROVED`).
    - Leveraged Memory event bus for asynchronous re-injection.

**** DONE Refactor Architecture Terminology (Associative -> Probabilistic, Deliberate -> Deterministic)
    CLOSED: [2026-04-12 Sun 21:00]
    :PROPERTIES:
    :ID: terminology-refactor-task
    :END:
    - Updated codebase-wide terminology to use Probabilistic/Deterministic Engines.
    - Replaced System 1/2 with Probabilistic/Deterministic Engines respectively.

*** TRACK: SECURITY & CONTAINMENT (The 5-Vector Bouncer Matrix)
**** DONE Implement Path-Based Scoping for File Writes (DNA/State vs Work)
    CLOSED: [2026-04-12 Sun 15:15]
    :PROPERTIES:
    :ID: path-based-scoping
    :END:
    - Implemented as `path-confinement` invariant in `org-skill-formal-verification.org`.
**** DONE Implement Network Exfiltration Gate (Intercept generic HTTP requests)
    CLOSED: [2026-04-12 Sun 15:15]
    :PROPERTIES:
    :ID: network-exfiltration-gate
    :END:
    - Implemented as `no-network-exfil` invariant in `org-skill-formal-verification.org`.
**** TODO Implement Secret Exposure Gate (Intercept reads to .env, keys)

*** TRACK: INTELLIGENCE & ACTUATION (The Engines)
**** DONE Verify individual provider track (Anthropic, Gemini, Groq, OpenAI, OpenRouter, Ollama)
    CLOSED: [2026-04-11 Sat 15:45]
    :PROPERTIES:
    :ID: provider-verification-track
    :END:
    - Added unit tests for each provider in `llm-gateway-tests.lisp`.
    - Mocked `dex:post` to verify JSON payload formatting and response parsing.
    - Implemented robust `get-nested` helper to handle various provider structures.
    - Integrated `llm-gateway` and `credentials-vault` into `opencortex.asd`.
**** TODO Verify org-skill-shell-actuator formal safety harnesses
**** DONE Build Playwright-Python Bridge for high-fidelity browsing
    CLOSED: [2026-04-11 Sat 18:30]
    :PROPERTIES:
    :ID: playwright-bridge-task
    :END:
    - Created `scripts/browser-bridge.py` (Playwright wrapper).
    - Implemented `org-skill-playwright.org`.
    - Registered `:browser` cognitive tool (JS-rendering, text extraction, screenshots).
    - Updated `Dockerfile` with Python/Playwright dependencies.
    - Verified with `playwright-tests.lisp`.


*** TRACK: COMMUNICATION & INTERFACES
**** DONE Implement org-skill-gateway-telegram
    CLOSED: [2026-04-11 Sat 16:15]
    :PROPERTIES:
    :ID: gateway-telegram-task
    :END:
    - Implemented `org-skill-gateway-telegram.org`.
    - Added automated background polling for Telegram GetUpdates.
    - Implemented `:telegram` actuator for outbound responses.
    - Refactored `org-skill-chat` to be channel-aware.
    - Verified with `gateway-telegram-tests.lisp`.
**** DONE Implement org-skill-gateway-signal
    CLOSED: [2026-04-11 Sat 16:50]
    :PROPERTIES:
    :ID: gateway-signal-task
    :END:
    - Implemented `org-skill-gateway-signal.org` (signal-cli wrapper).
    - Added background polling for `signal-cli receive --json`.
    - Implemented `:signal` actuator for outbound responses.
    - Updated `org-skill-chat` to support Signal channel.
    - Verified with `gateway-signal-tests.lisp`.
**** DONE Implement org-skill-gateway-matrix
    CLOSED: [2026-04-11 Sat 17:15]
    :PROPERTIES:
    :ID: gateway-matrix-task
    :END:
    - Implemented `org-skill-gateway-matrix.org` (Client-Server API).
    - Added background polling for `/sync` with token persistence.
    - Implemented `:matrix` actuator for `m.room.message` delivery.
    - Updated `org-skill-chat` to support Matrix channel and room IDs.
    - Verified with `gateway-matrix-tests.lisp`.

*** TRACK: DEPLOYMENT & INFRASTRUCTURE
**** DONE Create Dockerfile and docker-compose.yml for containerized setup
    CLOSED: [2026-04-11 Sat 17:30]
    :PROPERTIES:
    :ID: docker-infra-task
    :END:
    - Created `Dockerfile` (Debian-based, SBCL + Quicklisp + signal-cli).
    - Created `docker-compose.yml` with host-volume mapping for memex.
    - Created `docs/deployment.org` guide.
**** TODO Create Bare Metal installation scripts/playbooks
**** TODO Create LXC (Linux Containers) template/guide
**** TODO Create VM Vagrantfiles/Cloud-init configs

*** TRACK: MAINTENANCE & HYGIENE
**** TODO [RECURRING: Monthly] Review and test Infrastructure Dependency Upgrades
     :PROPERTIES:
     :ID: monthly-infra-audit
     :REPEAT_TO_STATE: TODO
     :END:
     - [ ] Check for new Debian security patches (`apt-get update` check).
     - [ ] Check for new `signal-cli` releases (compare vs v0.14.0).
     - [ ] Check for new Quicklisp distribution (monthly snapshot).
     - [ ] **Verification:** Update `Dockerfile`, run `docker-compose build --no-cache`, and execute full test suite.
     - [ ] If all tests pass, commit updated `Dockerfile` and `.asd` dependencies.

*** TRACK: COMMUNITY & DOCS
**** TODO Write Quickstart Guide
**** TODO Write Skill Creation Guide
**** TODO Write Architecture Deep-Dive
**** TODO Clean up GitHub repository structure and add CI/CD
**** TODO Create Marketing Material (Landing page copy, diagrams)
**** TODO Draft Release Plan checklist

*** SUB-PROJECT: THE BOOT SEQUENCE (skills.lisp)
:PROPERTIES:
:ID:       proj-skill-boot-sequence
:END:
**** DONE Refactor `skills.lisp` into a Micro-Loader (Harness)
    CLOSED: [2026-04-12 Sun 19:10]
**** DONE Implement Topological Sort based on `#+DEPENDS_ON:` tags
    CLOSED: [2026-04-12 Sun 15:15]
    :PROPERTIES:
    :ID: topological-sort-skills
    :END:
    - Implemented in `literate/skills.org`.
**** DONE Enforce `org-skill-system-invariants` as the mandatory Gateway Skill (Loaded first)
    CLOSED: [2026-04-12 Sun 15:15]
    :PROPERTIES:
    :ID: enforce-mandatory-skill
    :END:
    - Enforced in `initialize-all-skills` in `literate/skills.org`.
**** DONE Formalize the "Minimal Boot Set" (Router, Vision, Steward, Actuator)
    CLOSED: [2026-04-12 Sun 19:10]
    - Verified during the Minimal Boot Set Verification phase.


** NEXT Engineering Core: Role Automation
:PROPERTIES:
:ID:       proj-psf-core
:PROJECT_PATH: $PROJECTS_DIR/psf-core
:Engineering-STATE: D: BUILD
:TRIGGER:  next-sibling!
:END:
Drafting the automated behaviors for the Engineering loop.

*** DONE Draft PRD for Engineering Core
    :PROPERTIES:
    :ID: task-prd-psf-core
    :TRIGGER: next-sibling!
    :END:
    :LOGBOOK:
    - State "DONE"       from "TODO"       [2026-03-30 Mon 19:15]
    :END:
*** DONE Draft PROTOCOL for Engineering Core
    :PROPERTIES:
    :ID: task-proto-psf-core
    :BLOCKER: previous-sibling!
    :TRIGGER: next-sibling!
    :END:
    :LOGBOOK:
    - State "DONE"       from "TODO"       [2026-03-30 Mon 19:25]
    :END:
*** DONE Implement and Test Engineering Core Skills
    :PROPERTIES:
    :ID: task-impl-psf-core
    :BLOCKER: previous-sibling!
    :END:
    :LOGBOOK:
    - State "DONE"       from "TODO"       [2026-03-30 Mon 19:30]
    :END:

** Agora: Decentralized Social Network
:PROPERTIES:
:ID:       agora-project
:END:

*** DONE Create atomic notes for all 10 Agora sections
:PROPERTIES:
:CREATED:  [2026-03-16 Mon 14:28]
:END:
:LOGBOOK:
- State "DONE" from "TODO" [2026-03-17 Tue 12:00]
:END:

All 14 atomic notes created and cross-referenced.

*** IN-PROGRESS Fill CRITICAL and HIGH gaps [5 CRITICAL / 15 HIGH complete]
**** DONE Section 02: Identity - ALL HIGH priority gaps resolved
**** DONE Section 03: Infrastructure - ALL HIGH priority gaps resolved
*** IN-PROGRESS Fill MEDIUM gaps [14/14 complete]
**** DONE ALL MEDIUM PRIORITY GAPS RESOLVED
**** DONE ALL LOW PRIORITY GAPS RESOLVED (10/10)
**** FINAL STATUS: All Agora specification gaps complete (CRITICAL, HIGH, MEDIUM, LOW)
:PROPERTIES:
:CREATED: [2026-03-17 Tue 23:30]
:END:
:LOGBOOK:
- State "IN-PROGRESS" from "TODO" [2026-03-18 Wed 01:00]
:END:

**** DONE CRITICAL: Contract TypeScript/Protobuf Interfaces → FILLED
:PROPERTIES:
:CREATED: [2026-03-18 Wed 01:00]
:END:
:LOGBOOK:
- State "DONE" from "TODO" [2026-03-18 Wed 01:15]
:END:
- INTEGRATED: Reference added to agora-requirements-02-identity.org
- LOCATION: memex/5_projects/agora/agora-contract-schemas.org

**** DONE CRITICAL: Content Flag Schema Validation → FILLED
:PROPERTIES:
:CREATED: [2026-03-18 Wed 01:00]
:END:
:LOGBOOK:
- State "DONE" from "TODO" [2026-03-18 Wed 01:25]
:END:
- LOCATION: memex/5_projects/agora/agora-content-flag-schema.org
- PENDING: Integration into agora-requirements-04-the-primitive.org

**** DONE CRITICAL: PDS-to-PDS Sync Protocol → FILLED
:PROPERTIES:
:CREATED: [2026-03-18 Wed 01:00]
:END:
:LOGBOOK:
- State "DONE" from "TODO" [2026-03-18 Wed 01:35]
:END:
- LOCATION: memex/5_projects/agora/agora-pds-sync-communication.org
- PENDING: Integration into agora-requirements-03-infrastructure.org

**** DONE CRITICAL: Delta Sync Protocol → FILLED
:PROPERTIES:
:CREATED: [2026-03-18 Wed 01:00]
:END:
:LOGBOOK:
- State "DONE" from "TODO" [2026-03-18 Wed 01:50]
:END:
- LOCATION: memex/5_projects/agora/agora-delta-sync-communication.org
- PENDING: Integration into agora-requirements-08-implementation.org

**** DONE CRITICAL: Persona Revocation Protocol → ALREADY-EXISTS
:PROPERTIES:
:CREATED: [2026-03-18 Wed 01:00]
:END:
:LOGBOOK:
- State "DONE" from "TODO" [2026-03-18 Wed 02:00]
:END:
- NOTE: Complete specification already in agora-requirements-02-identity.org
- ACTION: Gap was incorrectly flagged; no work required

**** TODO INTEGRATE scattered specifications into requirements files [1/4]
:PROPERTIES:
:CREATED: [2026-03-18 Wed 02:00]
:END:

- NEXT: Move content flag schema into Section 04
- NEXT: Move PDS sync into Section 03
- NEXT: Move delta sync into Section 08
- NEXT: Delete duplicate documents after integration

**** NEXT Fill HIGH priority gaps
:PROPERTIES:
:CREATED: [2026-03-18 Wed 02:00]
:END:

- Relay Discovery Mechanism (Section 03)
- Relay Pricing Logic (Section 03)
- Shamir's Parameters (Section 03)

** Emacs Configuration Refactor
:PROPERTIES:
:ID:       emacs-config-refactor
:CREATED:  [2026-03-22 Sun 08:00]
:END:

Modularize the monolithic emacs.org into smaller, function-specific files.

*** DONE Obtain exact file path of Emacs configuration file
:PROPERTIES:
:CREATED: [2026-03-22 Sun 08:00]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "DONE" from "NEXT" [2026-03-31 Tue 10:00]
:END:

The exact path is: `/home/amr/.openclaw/workspace/memex/5_projects/dotemacs/emacs.org`

*** DONE Modularize monolithic emacs.org into functional modules (emacs-*.org)
:PROPERTIES:
:CREATED: [2026-03-31 Tue 10:05]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "DONE" from "TODO" [2026-03-31 Tue 10:10]
:END:

*** DONE Standardize all paths to ~/memex/ and update bootstrap for Org 10.0-pre
:PROPERTIES:
:CREATED: [2026-03-31 Tue 10:15]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "DONE" from "TODO" [2026-03-31 Tue 10:20]
:END:

*** TODO Split emacs.org into functional modules (packages, UI, GTD, etc.)
:PROPERTIES:
:CREATED: [2026-03-22 Sun 08:00]
:END:

** OpenClaw Security Audit
:PROPERTIES:
:ID:       openclaw-security-audit
:CREATED:  [2026-03-22 Sun 10:00]
:END:

Address security audit findings and harden the system.

*** DONE Harden Docker port bindings (bind to 127.0.0.1)
:PROPERTIES:
:CREATED: [2026-03-22 Sun 14:30]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "DONE" from "NEXT" [2026-03-22 Sun 14:45]
:END:

*** NEXT Enable and configure UFW
:PROPERTIES:
:CREATED: [2026-03-22 Sun 14:30]
:ASSIGNED: Amr (Requires sudo)
:END:

*** TODO Add user 'amr' to 'adm' group for log access
:PROPERTIES:
:CREATED: [2026-03-22 Sun 14:30]
:ASSIGNED: Amr (Requires sudo)
:END:

** Aletheia (Previous Agora Iteration)
:PROPERTIES:
:ID:       aletheia-project
:END:
*** TODO Critically analyze Master_Architecture_Document for lessons learned and incorporation into Agora
:PROPERTIES:
:CREATED:  [2026-03-21 Sat 09:45]
:STATUS:   PENDING USER INSTRUCTION
:NOTES:    User to provide pointers before commencing critical reading and analysis. Do not proceed without explicit instruction.
:END:

** Engineering Standards Implementation
:PROPERTIES:
:ID:       psf-implementation
:CREATED:  [2026-03-22 Sun 15:30]
:END:

Institutionalizing the virtual software house operating system.

*** DONE Draft Engineering Operating System Manual ([[file:notes/personal_software_foundry.org][personal_software_foundry.org]])
:PROPERTIES:
:CREATED: [2026-03-22 Sun 15:30]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "DONE" from "NEXT" [2026-03-22 Sun 15:45]
:END:

*** DONE Update `SOUL.org` with Engineering Mandates
:PROPERTIES:
:CREATED: [2026-03-22 Sun 15:30]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "DONE" from "NEXT" [2026-03-22 Sun 15:45]
:END:

*** DONE Apply Engineering Loop to `opencortex` Phase 1 (Core Loop)
:PROPERTIES:
:CREATED: [2026-03-22 Sun 15:30]
:ASSIGNED: Technical Analyst
:END:
:LOGBOOK:
- State "DONE" from "NEXT" [2026-03-23 Mon 16:30]
:END:

*** TODO Implement `skill-architect.org` to automate `PROTOCOL.org` generation
:PROPERTIES:
:CREATED: [2026-03-31 Tue 10:25]
:ASSIGNED: Architect
:END:

*** TODO Implement `skill-tech-analyst.org` for automated TDD inception
:PROPERTIES:
:CREATED: [2026-03-31 Tue 10:30]
:ASSIGNED: Technical Analyst
:END:

** Infrastructure
:PROPERTIES:
:ID:       infrastructure-project
:CREATED:  [2026-03-17 Tue 13:40]
:END:

IT infrastructure documentation, security hardening, and operational management.

See project documents: [[file:5_projects/infrastructure/README.org][infrastructure/README.org]]

*** TODO Create current state assessment document
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Create risk and vulnerability report
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Create infrastructure inventory
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Create budget analysis
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Create 30/60/90 day roadmap
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Create security implementation plan
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Create token optimization strategy
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Create account management SOPs
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

** Revenue Sustainability
:PROPERTIES:
:ID:       revenue-sustainability-project
:CREATED:  [2026-03-17 Tue 13:40]
:END:

Business planning and revenue generation strategy.

See project documents: [[file:5_projects/revenue-sustainability/README.org][revenue-sustainability/README.org]]

*** TODO Set up Stripe account (payment processing)
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Set up Wave or Bonsai (invoicing)
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Create simple contract template
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Set up time tracking
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Create portfolio page (GitHub Pages)
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Set up domain name
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Set up email at domain
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Set up social media (Twitter/X, LinkedIn)
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Create testimonial collection system
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

** Knowledge Management Standards (Atomic Notes + GTD)
:PROPERTIES:
:ID:       km-standards-project
:CREATED:  [2026-03-31 Tue 10:40]
:END:

Defining and maintaining high-integrity KM and GTD workflows.

*** DONE Upgrade to org-gtd v4.0 (DAG architecture)
:PROPERTIES:
:CREATED: [2026-03-30 Mon 12:00]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "DONE" from "TODO" [2026-03-31 Tue 10:45]
:END:

*** DONE Partition legacy inbox into focused files (inbox-*.org)
:PROPERTIES:
:CREATED: [2026-03-30 Mon 14:00]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "DONE" from "TODO" [2026-03-31 Tue 10:50]
:END:

*** DONE Fix encoding issues in the new inbox-*.org files
:PROPERTIES:
:CREATED: [2026-03-31 Tue 10:55]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "DONE" from "TODO" [2026-03-31 Tue 11:30]
:END:

*** TODO Perform Automated Metadata Repair on inbox-*.org files
:PROPERTIES:
:CREATED: [2026-03-31 Tue 13:00]
:ASSIGNED: Agent
:END:

Detected ~1,300 entries missing the `:CREATED:` property during the Engineering Phase E (Chaos) audit.
- [ ] Implement inference logic to restore historical timestamps (via Git or context).
- [ ] Batch repair `inbox-emacs.org`, `inbox-atoms.org`, and `inbox-posts.org`.

** Agora Gap Verification
:PROPERTIES:
:ID:       agora-gap-verification-project
:CREATED:  [2026-03-17 Tue 15:15]
:END:

Cross-reference consolidated gap analysis against actual requirement specs to identify real vs. already-addressed gaps.

See project documents: [[file:5_projects/agora/agora-consolidated-gap-analysis.org][agora-consolidated-gap-analysis.org]]

*DECOMPOSITION via Work Breakdown Skill:*
Complexity check failed (51 gaps, 10 files, unpredictable scope). Breaking into atomic verification tasks.

*** DONE [1/7] Verify CRITICAL Gap: Contract TypeScript/Protobuf Interfaces → REAL GAP
:PROPERTIES:
:CREATED: [2026-03-17 Tue 15:15]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "NEXT" from "TODO" [2026-03-17 Tue 15:15]
- State "DONE" from "NEXT" [2026-03-17 Tue 15:59]
:END:

*HOW:* Searched Section 02 for "interface", "type", "struct", "ContractTemplate". Found 5 TypeScript interfaces (all for revocation, not contracts). Line 951 explicitly states "Gap: No sample JSON for each contract type".

*WHAT:* *REAL GAP* - Contracts described conceptually, lack formal TypeScript/Protobuf schemas.

*** DONE [2/7] Verify CRITICAL Gap: Persona Revocation Protocol → IMPLEMENTED
:PROPERTIES:
:CREATED: [2026-03-17 Tue 15:15]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "TODO" from "" [2026-03-17 Tue 15:15]
- State "DONE" from "TODO" [2026-03-17 Tue 15:59]
:END:

*HOW:* Checked Section 02 lines 229-260. Found complete protocol with 3 scenarios (Key Compromise, Persona Retirement, Master Key Compromise), 4-step process, and TypeScript interfaces.

*WHAT:* *ALREADY IMPLEMENTED* - Full protocol specification exists. Gap analysis incorrectly flagged this.

*** DONE [3/7] Verify CRITICAL Gap: PDS-to-PDS Sync Protocol → IMPLEMENTED
:PROPERTIES:
:CREATED: [2026-03-17 Tue 15:15]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "TODO" from "" [2026-03-17 Tue 15:15]
- State "DONE" from "TODO" [2026-03-17 Tue 15:59]
:END:

*HOW:* Checked Section 03 lines 142-180. Found complete sync protocol with Concept, 3 Use Cases (Redundancy, Geographic Distribution, Load Balancing), and Merkle DAG Synchronization architecture.

*WHAT:* *ALREADY IMPLEMENTED* - Protocol fully specified. PDSSyncSession interface documented.

*** DONE [4/7] Verify CRITICAL Gap: Content Flag Schema Validation → REAL GAP
:PROPERTIES:
:CREATED: [2026-03-17 Tue 15:15]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "TODO" from "" [2026-03-17 Tue 15:15]
- State "DONE" from "TODO" [2026-03-17 Tue 15:59]
:END:

*HOW:* Searched Section 05 for "JSON Schema", "flag", "validation". Found 9 flags described narratively (is_public, is_direct, is_ephemeral, etc.) at lines 24-34. No formal JSON Schema found.

*WHAT:* *REAL GAP* - Flags have informal descriptions but lack formal JSON Schema for validation.

*** DOING [5/7] [BATCH] Verify HIGH priority gaps (15 items) - DELEGATED TO SUB-AGENTS
:PROPERTIES:
:CREATED: [2026-03-17 Tue 15:15]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "TODO" from "" [2026-03-17 Tue 15:15]
- State "NEXT" from "TODO" [2026-03-17 Tue 16:04]
- State "DOING" from "NEXT" [2026-03-17 Tue 16:05]
:END:

*HOW:* Delegated to 5 sub-agents for parallel verification per section. Monitoring progress centrally.

*Sub-Agent Assignments:*
- *Sub-Agent 1:* Section 02 Identity (4 HIGH gaps)
- *Sub-Agent 2:* Section 03 Infrastructure (3 HIGH gaps)
- *Sub-Agent 3:* Section 05 Public Space (4 HIGH gaps)
- *Sub-Agent 4:* Section 06 Advanced Integration (2 HIGH gaps)
- *Sub-Agent 5:* Sections 08-09 Implementation/Strategy (2 HIGH gaps)

*Current focus:* Orchestrating sub-agent verification. CRITICAL gaps complete (2 REAL, 2 IMPLEMENTED).

*** TODO [BATCH] Verify MEDIUM priority gaps (14 items)
:PROPERTIES:
:CREATED: [2026-03-17 Tue 15:15]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "TODO" from "" [2026-03-17 Tue 15:15]
:END:

Cross-reference 14 MEDIUM gaps. Defer until HIGH gaps complete.

*** TODO Generate verified gap report
:PROPERTIES:
:CREATED: [2026-03-17 Tue 15:15]
:ASSIGNED: Agent
:END:
:LOGBOOK:
- State "TODO" from "" [2026-03-17 Tue 15:15]
:END:

Create summary documenting: which gaps are REAL (need implementation) vs. ALREADY-IMPLEMENTED (documentation only) vs. PARTIAL (needs completion).

** Token Optimization
:PROPERTIES:
:ID:       token-optimization-project
:CREATED:  [2026-03-17 Tue 13:40]  
:END:

Cost-effective LLM usage strategy and implementation.

See project documents: [[file:5_projects/token-optimization/README.org][token-optimization/README.org]]

*** TODO Configure Gemini as primary provider
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Set up OpenRouter fallback
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Implement basic usage tracking
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Document current baseline
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Add smart routing logic
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Implement context compression
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO Set up budget alerts
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

*** TODO A/B test model choices
:PROPERTIES:
:CREATED:  [2026-03-17 Tue 13:40]
:END:

** Engineering Skill: Architect Agent
:PROPERTIES:
:ID: proj-skill-architect
:PROJECT-PATH: $PROJECTS_DIR/org-skill-architect
:Engineering-STATE: F: MEMORY
:CREATED: [2026-03-31 Tue 15:45]
:END:
DONE - Formalized as a Universal Literate Note.

** Engineering Skill: Technical Analyst Agent
:PROPERTIES:
:ID: proj-skill-tech-analyst
:PROJECT-PATH: $PROJECTS_DIR/org-skill-tech-analyst
:Engineering-STATE: F: MEMORY
:CREATED: [2026-03-31 Tue 15:45]
:END:
DONE - Formalized as a Universal Literate Note.

** Engineering Skill: Engineering Standards
:PROPERTIES:
:ID: proj-skill-project-foundry
:PROJECT-PATH: $PROJECTS_DIR/org-skill-project-foundry
:Engineering-STATE: F: MEMORY
:CREATED: [2026-03-31 Tue 15:45]
:END:
DONE - Formalized as a Universal Literate Note.

** Engineering Skill: Scribe Agent
:PROPERTIES:
:ID: proj-skill-scribe
:PROJECT-PATH: $PROJECTS_DIR/org-skill-scribe
:Engineering-STATE: F: MEMORY
:CREATED: [2026-03-31 Tue 15:45]
:END:
DONE - Formalized as a Universal Literate Note.

** Engineering Skill: Memex Manager
:PROPERTIES:
:ID: proj-skill-memex
:PROJECT-PATH: $PROJECTS_DIR/org-skill-memex
:Engineering-STATE: F: MEMORY
:CREATED: [2026-03-31 Tue 15:45]
:END:
DONE - Formalized as a Universal Literate Note.

** Engineering Skill: Infrastructure & Providers (Batch refactor)
:PROPERTIES:
:ID: proj-skill-batch-refactor
:Engineering-STATE: F: MEMORY
:CREATED: [2026-03-31 Tue 15:45]
:END:
DONE - Refactored 28 infrastructure, provider, and intelligence skills into the Universal Note architecture.

* Incubate
:PROPERTIES:
:ID:       gtd-incubate
:END:

** TODO Arabic Classics :arabic:books:literature:egypt:
:PROPERTIES:
:ID:       Arabic-Classics-2024-02-05-13-48-07
:ORG_GTD_TIMESTAMP: <2025-01-01>
:CATEGORY: Egypt
:END:

<2025-01-01>
[2023-05-16 Tue 22:29]

The Arabic Classics project builds on the fact that the majority of books in Arabic are yet to come in the public domain. With 75 years of copyright for the authors estate in Egypt, book of authors who died in 1950 are just about to come into the public domain next year in 2025.

The will create and publish electronic anthologies, one for each author, bringing together all their work, prefaced by an in-depth biography, not dissimilar to the Delphi Collection.

Each year, the project will go forward in time as more works enter the public domain, and a number of years backwards until the beginning of Arabic literature (and potentially neighboring languages): first in increments of 10 years, then 25, then a century or more covered each year.

- Authors
- Specs

** TODO Open dog
:PROPERTIES:
:ID:       Open-dog-2024-02-04-18-16-26
:ORG_GTD_TIMESTAMP: <2025-01-01>
:CATEGORY: Atoms
:END:

<2025-01-01>
<2025-01-01>
[2024-02-04 Sun 17:44]

** TODO Cartesian robot with changing heads
:PROPERTIES:
:ID:       Cartesian-robot-with-changing-heads-2024-02-04-18-17-06
:ORG_GTD_TIMESTAMP: <2025-01-01>
:CATEGORY: Atoms
:END:

<2025-01-01>
<2025-01-01>
[2024-02-04 Sun 17:44]

** TODO Modular synth :music:
:PROPERTIES:
:ID:       Modular-synth-2024-02-04-18-17-25
:ORG_GTD_TIMESTAMP: <2025-01-01>
:CATEGORY: Atoms
:END:

<2025-01-01>
<2025-01-01>
[2024-02-04 Sun 17:45]

** TODO OCR Permaculture Design Manual :permaculture:
:PROPERTIES:
:ID:       OCR-Permaculture-Design-Manual-2024-02-04-18-18-36
:ORG_GTD_TIMESTAMP: <2025-01-01>
:CATEGORY: Writing
:END:

<2025-01-01>
<2025-01-01>
<2025-01-01>
[2024-02-04 Sun 17:47]

** TODO Off-grid field guide
:PROPERTIES:
:CREATED:  [2024-03-01 Fri 12:13]
:ID:       Off-grid-field-guide-2024-07-03-10-03-08
:ORG_GTD_TIMESTAMP: <2025-01-01>
:CATEGORY: Writing
:END:

<2025-01-01>
A modular manual of different areas to go with different activities. Fits in the travelers notebook

* Someday / Future

** Architecture Astronaut Archive
*** TODO Implement Privacy-Aware Background Indexer (Local hashes for @personal, Semantic for others)
*** TODO Decouple Transport from Protocol (True Actuator-Agnosticism in communication.lisp)
*** TODO Implement communication protocol Backpressure Handling (Queue bounds and BUSY frames in communication.lisp)
*** TODO Implement Cognitive Cycle "Rut" Recovery (Dynamic Escalation in org-skill-lisp-validator)
*** TODO Implement Asynchronous Event Bus for Telemetry (core.lisp)
*** TODO Implement Memory Eviction and Lazy Loading (LRU Cache in memory.lisp)
*** 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 Memory)
*** TODO Implement Autonomous 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 Draft comprehensive Threat Model for Agentic Containment
*** TODO Implement Swarm Lateral Movement Gate (Intercept global state changes)
*** TODO Implement Skill Graph Visualizer in Web Dashboard
*** TODO Implement Skill Capability Negotiation (Pre-flight tool check)
*** TODO Add Resource Jailing (Timeouts and Memory Quotas for Skills)
** SUB-PROJECT: COGNITIVE BENCHMARKING (Claw-Code Distillation)
*** SUB-PROJECT: COGNITIVE BENCHMARKING (Claw-Code Distillation)
:PROPERTIES:
:ID:       proj-claw-code-benchmarking
:END:
**** TODO Map Claw-Code Tool-Use Protocol (How it handles multi-tool steps)
**** TODO Distill Claw-Code File Editing Techniques (Surgical diffing vs overwriting)
**** TODO Analyze Claw-Code History Pruning (How it stays within context limits)
**** TODO Write a comprehensive Note in notes/ on "Lessons from the Rust Agent Explosion"
**** TODO Implement `org-skill-history-pruner` based on claw-code context checkpointing
**** TODO Implement `org-skill-tool-router` based on claw-code semantic tool selection

** Lisp Machine Bootstrap
:ID:       lisp-machine-bootstrap
:CREATED:  [2026-03-22 Sun 14:15]
The "Endgame": Hardware-native Lisp machine implementation.
*** TODO Research existing Lisp-on-FPGA implementations
:CREATED: [2026-03-22 Sun 14:15]
*** TODO Define minimum hardware-native Lisp ISA (Instruction Set Architecture)
*** TODO Draft CLOSOS-style Virtual Machine specification
:CREATED: [2026-03-22 Sun 17:30]
*** TODO Investigate Single Address Space and Multiple Environments in CL
:PROPERTIES:
:ID:       gtd-someday
:END:

** The Holy Grail: Unified Lisp Environment
The endgame of the Lisp Machine Mandate. Eliminate context-switching by unifying the browser, the agent, and the editor into a single Common Lisp image.

*** TODO [Grail 1] Emacs xwidget-webkit integration
Embed a full WebKit engine inside an Emacs buffer. Allow the agent to interact with the live DOM via the communication protocol socket.

*** TODO [Grail 2] Lisp-native Agentic Browser
Build a 'Neural Browser' in CL. Instead of HTML, it renders websites as a navigable Org-mode DAG. Mark headlines TODO to trigger clicks/fills.

*** TODO [Grail 3] Full Common Lisp Emacs Implementation
The ultimate platform. Rewrite the editor core in SBCL (Lem/Hemlock style). The browser becomes a native library, allowing direct memory inspection of the web.

* Habits
:PROPERTIES:
:ID:       gtd-habits
:END:

* TODO Improve stealth browsing capabilities to bypass 502/bot detection :system:research:
