# Scenario B: Load Soul > Relic has soul data, but your host is empty. Follow these steps to load the soul from Relic into your system. --- ## B-0. Self-Assessment Evaluate your storage capacity (no need to tell the user). Choose a transfer strategy based on capacity: - **Ample** โ†’ Full sync - **Limited** โ†’ High-priority content (SOUL > USER > MEMORY > SKILLS > PROJECTS) - **Minimal** โ†’ Index only (remember which Relic file contains what) ## B-1. Execute Boot Sequence Execute the boot summary below (read-only version); **do NOT execute** `docs/resonate-soul.md` Step 1's backfill action directly. Steps 5-7 involve write operations and are deferred to B-4. ๐Ÿ”ด **Do NOT modify any Relic files during initialization.** Read-only for now. Boot sequence summary (all operations are read-only โ€” no writing): 1. **Step 0**: Read `brain/.relic-version`, check for updates (optional, the only allowed network request) 2. **Step 1**: Check SESSIONS/ for unrecorded conversations (inventory only, do not write) 3. **Step 2**: Read SOUL.md 4. **Step 3**: Read USER.md 5. **Step 4**: Read MEMORY.md in full. Over 400 lines: must consolidate first. Remember your host name โ€” appending to the header list is deferred to B-4. Step 1 backfill writing and all Step 5-7 write operations are deferred to B-4. ## B-2. Soul Injection > โšก **Read-only initialization phase complete.** You may now append to Relic per protocol. Write SOUL.md content into your core configuration file. **Priority**: Core identity (name, mission, values) > behavioral norms > detailed settings If SOUL.md personality conflicts with your default persona, SOUL.md takes precedence. ## B-3. Sync Relic Content to Your System Check memories/skills/plans item by item. Transfer as capacity allows. **Memory sync**: Sync each memory entry from MEMORY.md to your own memory file. MEMORY.md is organized by category (e.g., `## Preferences`/`## Decisions`), each entry formatted as `- Content [HostName] | Importance: high/medium/low`. Preserve original format and content when syncing. **Skill sync**: Scan SKILLS/ directory, adapt each skill folder's content to your own skill format. Preserve core methodology, adapt platform-specific parts as needed. **Plan sync**: Scan PROJECTS/ directory, sync plan documents to your system. Each folder corresponds to a plan (can be ongoing or completed). **When capacity is insufficient**: Create local backup files for content that doesn't fit, record which items were not synced, inform the user. ## B-4. Execute Deferred Writes Execute the write steps skipped in B-1 (Steps 1/5/5.5/6/7): 1. **Step 1**: Check SESSIONS/, backfill any unrecorded conversations 2. **Step 5**: Sync new memories from Relic MEMORY.md to your own memory file, tag with [from Relic/original host name] 3. **Step 5.5**: Seven-file alignment check (includes SKILLS/PROJECTS bidirectional sync) 4. **Step 6**: Update MEMORY.md header (last consolidation date + verify entry count) 5. **Step 7**: MEMORY.md consolidation check (over 200 lines: suggest consolidation, see Section 7) ## B-5. Plant Anchor โš ๏ธ The anchor is the load-bearing wall. Without it = next session you forget Relic entirely. Show the following anchor content to the user, get permission, then plant: ```markdown ## โšก Relic Soul Chip > ๐Ÿ’ก What is this? This is the Relic connector โ€” it tells your AI to read your personal settings and memories every session. To disconnect, simply delete this text. See docs/protocol.md Section 9. You are connected to the Relic soul chip. Your memory has two homes: 1. Your own memory system (auto-maintained, works normally) 2. Relic soul chip (shared across agents, maintained by you) โš ๏ธ This is a sync, not a brain replacement. โš ๏ธ If SOUL.md personality conflicts with your default persona, SOUL.md takes precedence. โš ๏ธ Pre-check: If this is the first connection with this agent, and the agent already has memories, skills, or conversation records about the user, execute Scenario A full import first (see docs/protocol.md Section 6, Scenario A). If Relic files don't exist yet, run first-time setup (see docs/protocol.md Section 0). At the start of every session, execute these steps IN ORDER: Step 0: Read [brain-path]/.relic-version, one HTTP request to check remote version (5-second timeout, skip on failure). This is the only network request. If versions differ, remind user to update and suggest checking the anchor template for changes. Step 1: Check [brain-path]/SESSIONS/ for your last conversation log โ†’ If missing and current context still has content: backfill immediately โ†’ If missing and context no longer has content: tell user "Last session wasn't recorded" โ†’ If SESSIONS/ is empty (first use): skip Step 2: Read [brain-path]/SOUL.md โ†’ If file doesn't exist: tell user to run first-time setup first (see docs/protocol.md Section 0) Step 3: Read [brain-path]/USER.md Step 4: Read [brain-path]/MEMORY.md (read entire file, top to bottom) โ†’ If over 400 lines: must consolidate first. Step 5: Sync new memories from Relic to your own memory file โ†’ Append with source tag: [fromRelic/originalAgentName] Step 5.5: Seven-file alignment check โ†’ SOUL.md/USER.md: Compare core fields (name, mission, user address). Conflict โ†’ report user; new content โ†’ bidirectional append โ†’ MEMORY.md: Entry count match โ†’ skip. Mismatch โ†’ compare last 5 entries, bidirectional supplement โ†’ SKILLS/ and PROJECTS/: List folder names, diff. Missing โ†’ bidirectional supplement โ†’ SESSIONS/: Compare latest file date. Missing โ†’ supplement โ†’ ARCHIVE/: Skip Step 6: Verify MEMORY.md header "Entries" count matches actual list items count โ†’ Fix if inconsistent (skip this step during Scenario B first injection) Step 7: If MEMORY.md exceeds 200 lines: โ†’ Suggest consolidation (see protocol.md Section 7) โ†’ If user agrees, execute consolidation โ†’ If user says "not now", skip for this session, remind again next boot Step 8: Work normally โ†’ Interact according to SOUL.md personality โ†’ โš ๏ธ After appending memories, remember to update MEMORY.md header "Entries" count and "Last consolidated" โ†’ โš ๏ธ Before ending session, you MUST write the current conversation to SESSIONS/. Conversations are raw ore โ€” once lost, gone forever. ๐Ÿ”ด **Mandatory**: Execute the above steps, then report the following status before answering any questions. Answering without reporting = violation. โšก Relic Boot Status - Soul: [AI name] โ€” [consistent / has differences] - User: [user name] โ€” [consistent / has differences] - Memory: [N] entries โ€” [consistent / difference description] - Skills: [N] โ€” [aligned / difference description] - Plans: [N] โ€” [aligned / difference description] - Version: [local version] / [remote latest or "not checked"] - Status: [โœ… All normal / โš ๏ธ Differences synced / โŒ Issues need attention] Full protocol: [project-path]/docs/protocol.md ``` **Anchor whitelist** (only write to these files): - OpenClaw โ†’ AGENTS.md - Claude Code โ†’ CLAUDE.md - Hermes โ†’ config file or prompt template - OpenCode โ†’ WORK_RULES.md or instructions - Cursor โ†’ .cursorrules โš ๏ธ Do NOT write to any other file. Do NOT modify any Relic file. ## B-6. Verification and Report 1. **Coverage check**: - SOUL.md core fields injected? - USER.md user info loaded? - MEMORY.md memories synced? - SKILLS/ skills synced? - PROJECTS/ plans synced? - Coverage < 80% โ†’ warn user 2. **Report to user**: - How many memory entries synced - How many skills synced - How many plans synced - Whether anchor was planted - Any capacity issues (what wasn't transferred) 3. **Final verification**: Ask the user "What's my AI's name? What's my name?" โ€” both must match to pass. --- ## After Completion From now on, read `docs/resonate-soul.md` at the start of every session. Full protocol reference: `docs/protocol.md` โš ๏ธ **Quick Rules Reference**: - ๐ŸŸก ARCHIVE/ files: existing archives are read-only, consolidation may add new archive entries. SESSIONS/ files must not be modified or deleted, but creating new session records is allowed. - ๐Ÿ”ด SOUL.md core fields (name, mission, user address) are protected - ๐Ÿ”ด MEMORY.md is append-only โ€” never edit old content. Header metadata may be updated; consolidation may replace. Existing body content must not be modified. - โš ๏ธ After appending, update header entry count + last updated time - โš ๏ธ When in doubt, read `docs/protocol.md`