Some checks failed
Deploy (Gitea) / deploy (push) Failing after 11s
- Secret Exposure Gate + Privacy Filter (Bouncer) - Shell actuator safety harness (timeout, blocked patterns) - REPL-first enforcement (lisp validation gate, system-prompt-augment) - Engineering Standards lifecycle (two-track Org-first + REPL-first) - Literate Programming discipline (one function per block, reflect-back) - AGENTS.md: thin routing layer, skills are authoritative - SKILLS_DIR removed, ~/notes fallback eliminated - opencortex.sh: multi-distro (Debian+Fedora), configure, install service, backup, restore, help - infrastructure/opencortex.service (systemd user unit) - Docker: updated to debian:trixie, fixed build context - GitHub CI: lint + test workflows fixed, trigger on tags only - Gitea CI: deploy workflow paths fixed - README: one-line curl install, badges - USER_MANUAL: Deployment section (bare metal, Docker, backup) - .gitignore: skills/*.lisp and tests/*.lisp as generated artifacts - Prose/block refactor across all 35 org files - Test suite Tier 1: 43/45 pass (env-dependent failures isolated)
33 lines
998 B
Org Mode
33 lines
998 B
Org Mode
#+TITLE: SKILL: Gardener (org-skill-gardener.org)
|
|
#+AUTHOR: Agent
|
|
#+FILETAGS: :skill:maintenance:gardener:
|
|
#+PROPERTY: header-args:lisp :tangle org-skill-gardener.lisp
|
|
|
|
* Overview
|
|
The *Gardener Skill* performs periodic maintenance on the Memex knowledge graph.
|
|
|
|
* Implementation
|
|
|
|
** Maintenance Logic
|
|
#+begin_src lisp
|
|
(defun gardener-prune-orphans ()
|
|
"Identifies and handles orphaned objects in memory."
|
|
(harness-log "GARDENER: Pruning orphans..."))
|
|
|
|
(defun gardener-verify-merkle-integrity ()
|
|
"Validates the hashes of all objects in memory."
|
|
(harness-log "GARDENER: Verifying Merkle integrity..."))
|
|
#+end_src
|
|
|
|
** Skill Registration
|
|
#+begin_src lisp
|
|
(defskill :skill-gardener
|
|
:priority 100
|
|
:trigger (lambda (ctx) (eq (getf (getf ctx :payload) :sensor) :heartbeat))
|
|
:deterministic (lambda (action ctx)
|
|
(declare (ignore action ctx))
|
|
(gardener-prune-orphans)
|
|
(gardener-verify-merkle-integrity)
|
|
nil))
|
|
#+end_src
|