fix(boot): Point SKILLS_DIR to repo skills/ folder and improve boot failure error messages
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 35s

This commit is contained in:
2026-04-17 17:24:49 -04:00
parent c6a6495f7b
commit 6d49e9b04b
5 changed files with 18 additions and 12 deletions

View File

@@ -39,18 +39,18 @@ CONTEXT_LOG_LIMIT=20
# Memex Integration
# Inside Docker, /app/ is the root for consolidated notes
MEMEX_DIR="/memex"
ZETTELKASTEN_DIR="/memex/notes"
SKILLS_DIR="/memex/notes"
MEMEX_DIR="$HOME/memex"
ZETTELKASTEN_DIR="$HOME/memex/notes"
SKILLS_DIR="skills/"
# PARA Structure (Consolidated)
INBOX_DIR="/memex/inbox"
DAILY_DIR="/memex/daily"
PROJECTS_DIR="/memex/projects"
AREAS_DIR="/memex/areas"
RESOURCES_DIR="/memex/resources"
ARCHIVES_DIR="/memex/archives"
SYSTEM_DIR="/memex/system"
INBOX_DIR="$HOME/memex/inbox"
DAILY_DIR="$HOME/memex/daily"
PROJECTS_DIR="$HOME/memex/projects"
AREAS_DIR="$HOME/memex/areas"
RESOURCES_DIR="$HOME/memex/resources"
ARCHIVES_DIR="$HOME/memex/archives"
SYSTEM_DIR="$HOME/memex/system"
# Identity Configuration
MEMEX_USER="YourName"

View File

@@ -68,6 +68,9 @@ setup_system() {
memex_dir=${memex_dir:-$HOME/memex}
sed -i "s|MEMEX_DIR=.*|MEMEX_DIR=\"$memex_dir\"|" .env
sed -i "s|\"/memex/|\"$memex_dir/|g" .env
sed -i "s|SKILLS_DIR=.*|SKILLS_DIR=\"$SCRIPT_DIR/skills\"|" .env
sed -i "s|ZETTELKASTEN_DIR=.*|ZETTELKASTEN_DIR=\"$memex_dir/notes\"|" .env
read -p "Inbox Directory [$memex_dir/inbox]: " inbox_dir < /dev/tty
inbox_dir=${inbox_dir:-$memex_dir/inbox}

View File

@@ -333,7 +333,7 @@ The `initialize-all-skills` function is the unified orchestrator for the system
'("org-skill-policy" "org-skill-bouncer"))))
(dolist (req mandatory-skills)
(unless (member req sorted-files :key #'pathname-name :test #'string-equal)
(error "BOOT FAILURE: Mandatory skill '~a' not found in skills directory." req)))
(error "BOOT FAILURE: Mandatory skill '~a' not found in skills directory: ~a" req (uiop:native-namestring skills-dir))" req)))
(harness-log "==================================================")
(harness-log " LOADER: Initializing ~a skills..." (length sorted-files))

View File

@@ -59,6 +59,9 @@ setup_system() {
memex_dir=${memex_dir:-$HOME/memex}
sed -i "s|MEMEX_DIR=.*|MEMEX_DIR=\"$memex_dir\"|" .env
sed -i "s|\"/memex/|\"$memex_dir/|g" .env
sed -i "s|SKILLS_DIR=.*|SKILLS_DIR=\"$SCRIPT_DIR/skills\"|" .env
sed -i "s|ZETTELKASTEN_DIR=.*|ZETTELKASTEN_DIR=\"$memex_dir/notes\"|" .env
read -p "Inbox Directory [$memex_dir/inbox]: " inbox_dir < /dev/tty
inbox_dir=${inbox_dir:-$memex_dir/inbox}

View File

@@ -205,7 +205,7 @@
'("org-skill-policy" "org-skill-bouncer"))))
(dolist (req mandatory-skills)
(unless (member req sorted-files :key #'pathname-name :test #'string-equal)
(error "BOOT FAILURE: Mandatory skill '~a' not found in skills directory." req)))
(error "BOOT FAILURE: Mandatory skill '~a' not found in skills directory: ~a" req (uiop:native-namestring skills-dir))" req)))
(harness-log "==================================================")
(harness-log " LOADER: Initializing ~a skills..." (length sorted-files))