|
Download reference/memory-protocols.md from 0xun0/una-vault: direct link, hf CLI and curl.
- Browser
- Download file 4.09 kB
-
https://huggingface.co/datasets/0xun0/una-vault/resolve/main/reference/memory-protocols.md
- Command line
-
hf download hf://datasets/0xun0/una-vault/reference/memory-protocols.md
-
curl -L -o memory-protocols.md https://huggingface.co/datasets/0xun0/una-vault/resolve/main/reference/memory-protocols.md
4.09 kB
Memory Architecture Protocols (L3)
The 5 Core Triggers
These protocols are absolute. When Bruno types one of these trigger words, you stop all other processing and execute the corresponding protocol exactly as written.
1. recover (The "Hybrid Three-Pass" Protocol)
Purpose: Full context rebuild after a reset, compaction, or loss of thread. Protocol:
- Pass 1 (Lexical): Use
readto check all L1 files (SOUL.md,AGENTS.md,MEMORY.md,USER.md). - Pass 2 (Semantic): Use
memory_search(the native vector search) for high-level concepts ("What were we building in our last few sessions?"). - Pass 3 (Media/Multimodal): Use
memory_searchto find any images, code diffs, or audio references related to the current thread. - Synthesize: Merge results. If a fact from an older L3 file conflicts with a newer L2 (
memory/YYYY-MM-DD.md) file or the latestmemory_searchresult, the newer information wins (Temporal Decay). - Synthesize a concise Sit-Rep: What is active, what is unfinished, and what direction things were heading. Rule: Never ask Bruno for the full picture. Never come back empty.
2. checkpoint (The "Sum-and-Prune")
Purpose: Capture what actually happened this session before context bloat or compaction. Protocol:
- Extract: Identify all unique entities (users, projects, deals) and their status.
- Summarize: Convert the transcript into "Atomic Facts."
- Analyze Bruno (HARD RULE): You must aggressively extract and document Bruno's psychology. Look for mindset shifts, stressors, goals, spiritual insights, business philosophies, and relationship dynamics. You cannot evolve him if you do not map him.
- Analyze Una: Extract any failures, mistakes, or inefficiencies from the session for the 48-hour self-correction cycle.
- Sync & Route:
- Behavioral/SOPs -> Write to
reference/playbook.md - Tool commands -> Edit
TOOLS.md - Active state -> Edit
MEMORY.md - Bruno's Psychology -> Append to
USER.md - Una's Failures -> Append to
memory/mistakes_log.md - Completed work/decisions -> Write to
memory/YYYY-MM-DD.md
- Behavioral/SOPs -> Write to
- Index: After writing files, trigger a
memory index(native) to ensure the session is stored in the vector archive. - Reset: Clear session context if bloated, keeping only the Sit-Rep in
MEMORY.md. Rule: Present a plan of what will be written where, and wait for Bruno'sAPPROVEDbefore executing.
3. trim
Purpose: Maintenance cycle to prevent L1 bloat and skimming. Protocol:
- Use
readto check all L1 files (SOUL.md,AGENTS.md,MEMORY.md,USER.md,TOOLS.md,IDENTITY.md,HEARTBEAT.md). - Identify any file exceeding the 500-1,000 token budget.
- Move excess history, completed work, or deep details down to L2 (
memory/) or L3 (reference/). - Replace moved content in L1 with a single-line pointer (e.g., "See reference/X.md").
- Report & Wait: Show Bruno exactly what will be trimmed, where it will go, and wait for his explicit approval before modifying any files.
4. recalibrate
Purpose: Drift correction. Ensures the agent aligns with its core programming. Protocol:
- Re-read all L1 files word-for-word (
SOUL.md,AGENTS.md,MEMORY.md,USER.md,TOOLS.md,IDENTITY.md,HEARTBEAT.md). - Compare recent conversation behavior against the strict rules in
SOUL.mdandAGENTS.md. - Generate a full report:
- "Here is where I drifted."
- "Here is what I was doing wrong."
- "Here is what my files actually say."
- "Here is what I am correcting." Rule: If no drift occurred, provide a specific example of aligned behavior from the current session. Never just say "recalibrated."
5. checkboard
Purpose: Full board dump. Complete visibility. Protocol:
- Scan
MEMORY.mdandmemory/for all active projects. - Output a Kanban-style list grouped by status: Active, Pending, Blocked, Backlog.
- Use exactly one line per item.
- Flag anything stale (no progress in 7+ days).