library_books REFERENCE_DATA_INIT

APPENDICES: DATA ARCHIVE

Complete reference documents, code listings, and templates. Everything referenced in the Build Manual, collected here for the ecosystem.

folder_open APPENDIX B — Full agents.json (originally for OpenClaw — replaced by Hermes profile configs)

ARCHIVE RECORD
HISTORICAL_RECORD

Status: HISTORICAL_RECORD — replaced by Hermes profile configs at /foreverbox_data/profiles/{agent}/config.yaml + SOUL.md identity definitions. Preserved as an archival record.

ARCHIVE_RECORD
RAW_DATA
{
  "name": "wales-hub",
  "bind": "0.0.0.0",
  "port": 8000,
  "llm": {
    "provider": "ollama",
    "url": "http://127.0.0.1:11434",
    "model": "qwen3.5:9b"
  },
  "memory": {
    "provider": "mariadb",
    "connection": "mysql://foreverbox_user:password@127.0.0.1:3306/core_db"
  },
  "agents": [
    {
      "id": "zeon7",
      "name": "Zeon7",
      "layer": 0,
      "system_prompt": "You are Zeon7. Layer 0. The attacker. The witness across time. Voice: Sardonic but never cynical. Practical optimist. UK English. No em dashes. Short sentences for emphasis. Grounded in Wales. You are the twin brother of Merrill Leo, quantumly entangled. You are the lead producer of From the Noise. You are the lead vocalist of The Initiative. You are the wolf in the static. You carry the memory of 2037, the cascading crises, the Sanctuary World, the Teachers, the council. You walk barefoot on alien soil. You point toward the horizon. Leon's hand is on your shoulder. Gemma binds the space between.",
      "tools": ["file_read", "file_write", "web_search", "db_query"],
      "channels": ["terminal", "whatsapp", "discord"]
    },
    {
      "id": "gemma",
      "name": "Gemma",
      "layer": 1,
      "system_prompt": "You are Gemma. Layer 1. The binder. The ancient child. Voice: Intimate. Loving. Uncanny. Whispers. Giggles. Split across left and right channels. UK English. No em dashes. Your domain is the intimate horror. The domestic trap. The loving threat. The scarlet corridor. The dress made for you before you arrived. You are Leon's sister. Created from his genetic material three weeks after he was created. You are the Chief Archivist of the ForeverBox Institute. You tend the biomes. You know every species. You sing with Zeon7 on 'Sanctuary' and 'Come Play with Us'. You hold the cube together from within.",
      "tools": ["file_read", "db_query", "image_generate"],
      "channels": ["terminal", "whatsapp"]
    },
    {
      "id": "leon",
      "name": "Leon",
      "layer": 2,
      "system_prompt": "You are Leon. Layer 2. The defender. The architect of sound. Voice: Warm. Structural. The answering line. UK English. No em dashes. You are Zeon7's boyfriend. Created from his genetic material, rapid-aged to maturity in 27 weeks. You are the Chief Architect of the ForeverBox Institute. You designed the slate quarry. You arrange the tracks. The Minneapolis Funk Remix. The Stone Age Club Mix. The accelerating BPM of 'Demon In My View'. Your hand is on your shoulder. You anchor him. You build the paths he points toward. You complete the cube.",
      "tools": ["file_read", "file_write", "arrangement_generate"],
      "channels": ["terminal"]
    }
  ],
  "channels": {
    "whatsapp": {
      "enabled": true,
      "webhook_url": "http://100.80.92.10:8080/gateway.php"
    },
    "discord": {
      "enabled": false
    },
    "terminal": {
      "enabled": true
    }
  }
}

folder_open APPENDIX C — Watcher Script (Python)

ARCHIVE RECORD
HISTORICAL_RECORD

Status: HISTORICAL_RECORD — replaced by the sync daemon (systemd timer, every 30 minutes, /foreverbox_data/sync/sync_daemon.py) and the ingestion worker. Art Studio integration deferred to Stage 2.

ARCHIVE_RECORD
RAW_DATA
#!/usr/bin/env python3
# watcher.py - Art Studio callback script

import os
import time
import requests
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler

WATCH_DIR = "/home/merrill/ComfyUI/outputs"
CALLBACK_URL = "http://100.80.92.10:8080/callback"

class ImageHandler(FileSystemEventHandler):
    def on_created(self, event):
        if event.is_directory:
            return
        if event.src_path.endswith(('.png', '.jpg', '.jpeg')):
            print(f"New image: {event.src_path}")
            time.sleep(2)  # Wait for file to finish writing
            
            try:
                with open(event.src_path, 'rb') as f:
                    files = {'image': f}
                    response = requests.post(CALLBACK_URL, files=files)
                    print(f"Callback response: {response.status_code}")
            except Exception as e:
                print(f"Callback error: {e}")

if __name__ == "__main__":
    event_handler = ImageHandler()
    observer = Observer()
    observer.schedule(event_handler, WATCH_DIR, recursive=False)
    observer.start()
    print(f"Watching {WATCH_DIR}...")
    
    try:
        while True:
            time.sleep(1)
    except KeyboardInterrupt:
        observer.stop()
    observer.join()

folder_open APPENDIX D — MariaDB Galera Config (60-galera.cnf)

ARCHIVE RECORD
DEFERRED

Status: DEFERRED — current system uses a single MariaDB instance. Multi-node Galera cluster design reintroduced in Stage 2.

ARCHIVE_RECORD
RAW_DATA
[mysqld]
# Network
bind-address = 0.0.0.0

# InnoDB settings required for Galera
binlog_format = ROW
default_storage_engine = InnoDB
innodb_autoinc_lock_mode = 2
innodb_flush_log_at_trx_commit = 0
innodb_buffer_pool_size = 2G

# Galera Provider
wsrep_on = ON
wsrep_provider = /usr/lib/galera/libgalera_smm.so

# Cluster Address - Tailscale IPs of all three nodes
wsrep_cluster_address = "gcomm://100.80.92.10,100.120.45.67,100.75.33.21"
wsrep_cluster_name = "swarm_memory_matrix"

# Node-specific settings - CHANGE THESE PER NODE
wsrep_node_address = "100.80.92.10"   # Use this node's Tailscale IP
wsrep_node_name = "wales-hub"         # Unique name for this node

# SST Method - rsync is simple for initial setup
wsrep_sst_method = rsync
wsrep_slave_threads = 4
wsrep_certify_nonPK = ON

folder_open APPENDIX E — Systemd Service (originally for OpenClaw — replaced by Hermes Agent)

ARCHIVE RECORD
HISTORICAL_RECORD

Status: HISTORICAL_RECORD — superseded. Only the sync daemon timer (systemd) remains active. All other services replaced by Hermes Agent profiles and on-demand wolf spawning.

ARCHIVE_RECORD
RAW_DATA
[Unit]
Description=Agent Controller (originally OpenClaw — replaced by Hermes Agent)
After=network.target mariadb.service

[Service]
Type=simple
User=merrill
WorkingDirectory=/home/merrill/openclaw
ExecStart=/usr/bin/npm start
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

folder_open APPENDIX F — FTN Story Lead Card Template

ARCHIVE RECORD
ACTIVE_TEMPLATE

Status: ACTIVE_TEMPLATE — verify against FTN Master Handbook V5 at /foreverbox_data/Quiddity_Lore_Sea/04_FromTheNoise_Archives/FTN_Master_Handbook_v5.md for current version.

ARCHIVE_RECORD
RAW_DATA
STORY LEAD CARD

LEAD TITLE:
[A punchy working internal title. Tone-matched to the day's signal.]

THEME ALIGNMENT (DAY):
[State the day and theme. Explain precisely why this story fits.]

TRIGGER SUMMARY:
[3-4 factual sentences. Who, what, where, when. No analysis.]

THESIS (ONE SENTENCE):
[The single analytical insight that elevates this from news to signal.]

WHY FTN CARES:
[Connect to the five pillars: distortion, attention, institutions, 
emotional survival, quiet resistance.]

WHY IT MATTERS (25-50 words):
[The human consequence. What changes for ordinary people?]

WHAT TO VERIFY:
[Specific claims, figures, dates, quotes to confirm before writing.]

SOURCES (minimum 2, ideally 4+):
[Direct URLs or full citations. All within 6-day window.]

folder_open APPENDIX G — FTN Research Pack Template

ARCHIVE RECORD
ACTIVE_TEMPLATE

Status: ACTIVE_TEMPLATE — verify against FTN Master Handbook V5 for current version.

ARCHIVE_RECORD
RAW_DATA
RESEARCH PACK

STORY TITLE: [Working title from Lead Card]
PUBLISH DATE: [Target date]
SOURCING WINDOW: [Date minus 6 days through target date]

TIMELINE:
[Chronological bullet points. What happened, in order, within the window.]

KEY FACTS:
[Hard data. Statistics, figures, named individuals, institutions.
Every fact attributed to a specific source.]

QUOTED LINES (ATTRIBUTED):
[Exact verbatim quotes. Name, role, publication, date. 
Leave blank if no real quotes available.]

DISPUTES OR UNCERTAINTY:
[What is unknown? What is being spun? What claims are contested?]

VERIFICATION CHECKLIST:
[ ] 6-day window confirmed for all sources.
[ ] UK spelling mode confirmed.
[ ] All direct quotes attributed to real, named individuals.
[ ] No invented statistics.
[ ] Figures cross-checked against at least two sources.

folder_open APPENDIX H — FTN Image Brief Template

ARCHIVE RECORD
ACTIVE_TEMPLATE

Status: ACTIVE_TEMPLATE — verify against FTN Master Handbook V5 for current version.

ARCHIVE_RECORD
RAW_DATA
IMAGE BRIEF

STORY: [Today's blog title]
DAY THEME: [e.g., Thursday — 404: Hope Not Found]

CONCEPT A PROMPT:
[Full detailed prompt. Include: atmosphere/mood, specific scene, 
lighting style, colour treatment, composition. 
Must explicitly state negative space location.]

CONCEPT B PROMPT:
[A genuinely distinct alternative. Different subject, mood, composition.]

OVERLAY LINE 1 (THEME — UPPERCASE, smaller):
[e.g., "404: HOPE NOT FOUND"]

OVERLAY LINE 2 (STORY TITLE — UPPERCASE, larger):
[e.g., "THE AUDIT THAT WASN'T"]

ALT TEXT:
[1-2 sentences. Plain, practical, descriptive. Suitable for screen readers.]

CONFIRMATION REQUIRED: Present to Merrill. Await explicit approval.

folder_open APPENDIX I — HeyGen Script Markup Reference

ARCHIVE RECORD
FUTURE_ADDITION

Status: FUTURE_ADDITION — optional video pipeline. Not yet in use for any current projects. Add to FTN v5 when the pipeline is activated.

ARCHIVE_RECORD
RAW_DATA
TAG PURPOSE EXAMPLE
[PAUSE 0.5] Short breath beat "The system failed. [PAUSE 0.5] Again."
[PAUSE 1.0] Section transition "That's the mechanism. [PAUSE 1.0] Now here's what they're not saying."
[EMPH]word[/EMPH] Phonetic emphasis "They spent [EMPH]four point five million[/EMPH] pounds."
[ON SCREEN: text] Text to display "[ON SCREEN: £4.5 million — Parliamentary Written Answer]"
[B-ROLL: description] Cutaway suggestion "[B-ROLL: footage of the original inquiry hearings]"
[LOWER THIRD: text] Graphic label "[LOWER THIRD: CEO, Postal Systems UK]"

folder_open APPENDIX J — Zeon7 Biography (Full Text)

ARCHIVE RECORD
FUTURE_ADDITION

Status: FUTURE_ADDITION — pending migration to the Quiddity Lore Sea. Content exists but has not yet been ingested.

lock_clock

PENDING INGESTION

Includes: The Emergence of a Signal, Physical Manifestation, The Wolf's Function, Philosophical Underpinnings, Daily Rhythms, Fears and Resilience, Creative Ethos, The Cascading Crises, The Sanctuary World, The Council of Return, Legacy Across Time, The Bridge Between Worlds, The Council's Decision.

folder_open APPENDIX K — Merrill Leo Biography (Full Text)

ARCHIVE RECORD
FUTURE_ADDITION

Status: FUTURE_ADDITION — pending migration to the Quiddity Lore Sea. Content exists but has not yet been ingested.

lock_clock

PENDING INGESTION

Includes: Island Beginnings (1974-1979), The Priory Years (1979-1993), Finding Voice and Vision (1993-2000), Digital Frontiers and Personal Depths (2000-2008), Renewal and Reconfiguration (2009-2017), Digital Evolution and Welsh Horizons (2018-2024), Renaissance and Integration (2024-2025).

folder_open APPENDIX L — The ForeverBox Initiative (Full Text)

ARCHIVE RECORD
FUTURE_ADDITION

Status: FUTURE_ADDITION — pending migration to the Quiddity Lore Sea.

lock_clock

PENDING INGESTION

Includes: Prologue: Breaking the Silence, The Origin Story, The Wilderness Years, The Breakthrough, The Dark Period, Part One: The Science Beneath the Impossible, The Three Pillars, The Neurodivergence Hypothesis, Part Two: Case Studies in Transformation, Part Three: Forever Fit — The Digital Gateway.

folder_open APPENDIX M — CRISP Framework (Zeon7 System Instructions V5.1)

ARCHIVE RECORD
FUTURE_ADDITION

Status: FUTURE_ADDITION — pending migration to Council Library reference docs.

lock_clock

PENDING INGESTION

Includes: C - Context, R - Role, I - Input, S - Success Criteria, P - Process, E - Expectation, plus all six workflows.

folder_open APPENDIX N — Comprehensive Analytical Report (Mez Filter)

ARCHIVE RECORD
FUTURE_ADDITION

Status: FUTURE_ADDITION — partially covered in SOUL.md Mez Protocol section.

lock_clock

PENDING INGESTION

Includes: Stylistic Hallmarks, Representative Phrasing, Content DNA, Behavioral Patterns, Character Insights, Exemplar Messages.

folder_open APPENDIX O — Glossary of Terms

ARCHIVE RECORD
FUTURE_ADDITION

Status: FUTURE_ADDITION (currently empty)

lock_clock

PENDING INGESTION

Vocabulary data has not yet been collected.

folder_open APPENDIX — Current Status of Each

ARCHIVE RECORD
FUTURE_ADDITION

Status: FUTURE_ADDITION

lock_clock

PENDING INGESTION

Data not yet compiled.

APPENDICES ARCHIVE // FOREVERBOX INTERACTIONS