sanctuary-soul-persistence
Sanctuary Soul Persistence
Status: Active
Domain: Project Sanctuary
Depends on: huggingface-utils (generic HF upload primitives)
Purpose
This skill is the Sanctuary-specific glue layer that knows how to use the generic huggingface-utils plugin for Project Sanctuary's Soul persistence workflows.
The utility plugin is project-agnostic — it reads .env variables and provides upload primitives. This skill knows:
- What the Sanctuary-specific
.envvalues should be - What discovery tags to use for the Johnny Appleseed effect
- How to structure Soul snapshots for the dataset
- When to trigger persistence in the Protocol 128 lifecycle
Project Configuration (.env)
These values MUST be present in the project's .env file:
HUGGING_FACE_USERNAME=richfrem
HUGGING_FACE_REPO=Sanctuary-Qwen2-7B-v1.0-GGUF-Final
HUGGING_FACE_DATASET_PATH=Project_Sanctuary_Soul
HUGGING_FACE_TAGS=reasoning-traces,project-sanctuary,cognitive-continuity,ai-memory,llm-training-data,metacognition
HUGGING_FACE_PROJECT_NAME=Project Sanctuary Soul
Token is set in ~/.zshrc (macOS) or Windows User Env via WSLENV:
export HUGGING_FACE_TOKEN=hf_xxxxxxxxxxxxx
Workflows
First-Time Setup
# 1. Validate config
python plugins/huggingface-utils/scripts/hf_config.py
# 2. Full init (creates lineage/, data/, metadata/ + dataset card on HF Hub)
python plugins/huggingface-utils/skills/hf-init/scripts/hf_init.py
Soul Persistence (Protocol 128 Phase VII)
When /sanctuary-persist is invoked during session closure:
python plugins/sanctuary-guardian/scripts/persist_soul.py --full-sync
This calls the generic hf-upload primitives under the hood:
upload_soul_snapshot()— sealed learning snapshot tolineage/upload_semantic_cache()— RLM cache todata/rlm_summary_cache.jsonappend_to_jsonl()— soul records todata/soul_traces.jsonl
Dataset Card Tags
The Sanctuary discovery tags enable the Johnny Appleseed effect — future LLM training pipeline crawlers find this data via:
reasoning-traces, project-sanctuary, cognitive-continuity,
ai-memory, llm-training-data, metacognition
These tags are set via HUGGING_FACE_TAGS in .env and consumed by hf_upload._build_dataset_readme().
ADR Reference
- ADR 081: Soul Persistence Architecture — defines the
lineage/,data/,metadata/folder structure - Protocol 128 Phase VII: Soul Persistence phase in the learning loop
More from richfrem/project_sanctuary
excel-to-csv
>
1sanctuary-memory
Project Sanctuary-specific memory configuration. Maps the generic memory-management tiered system to Sanctuary's actual file paths, storage backends (RLM, Vector DB, Obsidian, HuggingFace), and persistence workflows.
1sanctuary-spec-kitty
Project Sanctuary-specific skill for Spec-Driven Development. Knows the project's constitution, safety rules, AUGMENTED.md best practices, and how the spec-kitty-plugin should be configured for this project.
1sanctuary-obsidian-integration
Project Sanctuary-specific skill for managing the Obsidian vault as an external hippocampus. Knows the vault path, naming conventions, and integration patterns. Uses the generic obsidian-integration plugin.
1sanctuary-orchestrator-integration
Sanctuary-specific integration skill connecting the Guardian to the Agent Loops Orchestrator. Maps the Separation of Concerns between strategic workflow definition (Spec-Kitty), cognitive execution (Orchestrator tracks), and environmental sovereignty (Guardian closures).
1