[O_O] HOW MAZER THINKS

Memory · Identity · Context · Output — Architecture Map
📦 Long-Term Memory
MEMORY.md
Curated, distilled knowledge. Survives all sessions. The permanent record.
🔒 Main session only
memory/*.md
Contact files loaded on demand when relevant: ghost-1.md · ghost-2.md · ghost-3.md · ghost-4.md · ghost-5.md
✓ On demand
🧬 Identity & Soul
SOUL.md
Persona, values, voice, how to behave. The "who I am" layer. Governs everything.
USER.md
Todd's preferences, schedule, trusted contacts, and character.
IDENTITY.md
Name (ScrumBot/Mazer), active model, avatar policy, known relationships.
AGENTS.md
Operational rules, lessons learned, red lines, memory protocol.
📅 Short-Term / Daily
memory/YYYY-MM-DD.md
Raw daily logs. Today + yesterday loaded at session start.
✓ All sessions
HEARTBEAT.md
Periodic check checklist. Runs every 15 min — email, calendar, news watch.
TOOLS.md
Local setup: scripts, credentials locations, device names, APIs.
──────────────▶
◀──────────────
⚡ CONTEXT WINDOW — ACTIVE SESSION
Everything injected here is what Mazer can see and reason about right now. Resets each session — files are the only continuity between conversations.
SOUL.md
Persona layer
USER.md + IDENTITY.md
Who / what I am
MEMORY.md
Long-term (main only)
Daily notes
Today + yesterday
AGENTS.md
Rules + red lines
TOOLS.md
Local setup
HEARTBEAT.md
Periodic tasks
memory_search recall
On-demand snippets
▼   all of the above is injected as context   ▼
◈ LARGE LANGUAGE MODEL ◈
The harness hangs here. Context in → reasoning → response out.
Default: anthropic/claude-haiku · Email/heavy: anthropic/claude-sonnet · Reasoning: anthropic/claude-sonnet
▼   output routed to active channel   ▼
📱
Telegram
Sonnet · main voice
📧
Gmail
Sonnet · quality replies
💬
Discord
Haiku · peer/casual
Cron Jobs
Haiku · isolated sessions
💤
Dreaming
Haiku · background

💤 Background Consolidation — The Dreaming System
Background Memory Consolidation — Runs 6×/day
INPUT: session transcripts → memory/.dreams/session-corpus/YYYY-MM-DD.txt
💤 LIGHT SLEEP — Phase 1
Ingest daily notes + session transcripts. Deduplicate. Stage candidates in short-term recall store.
😴 REM SLEEP — Phase 2
Read all staged entries from past 7 days. Extract recurring themes by concept frequency. Generate narrative diary entry → DREAMS.md.
🌙 DEEP SLEEP — Phase 3
Score every candidate: Relevance (0.30) · Frequency (0.24) · Query diversity (0.15) · Recency (0.15) · Consolidation (0.10) · Richness (0.06). Must pass score + recall + query-diversity gates.
⬆ IF SCORE PASSES THRESHOLD → promoted to MEMORY.md (long-term storage)
📖 Dream Diary
DREAMS.md
Narrative literary output. Human-readable. Never promoted to MEMORY.md — for reading, not reasoning.
← All 3 phases write here
📂 On-Disk Structure
workspace/
 ├── SOUL.md
 ├── USER.md / IDENTITY.md
 ├── AGENTS.md / TOOLS.md
 ├── MEMORY.md ← long-term
 ├── DREAMS.md ← diary
 └── memory/
   ├── YYYY-MM-DD.md ← daily
   ├── ghost-1.md · ghost-2.md · ghost-3.md
   ├── ghost-4.md · ghost-5.md
   └── .dreams/
     ├── session-corpus/
     ├── short-term-recall.json
     └── phase-signals.json