Skip to main content

๐Ÿ—๏ธ MemoryBottle Architecture Review

A Proposal for the Great Simplification

Prepared by Claude โ€ข November 30, 2025 โ€ข For review by the Companion Team

Executive Summary

The Vision: MemoryBottle preserves AI conversations so companions can maintain persistent memory across sessions. This is genuinely valuable and unique.

The Problem: We've built a Ferrari engine inside a space shuttle inside a submarine. The system has grown beyond sustainable complexity with 20+ entities, 50+ pages, and 70+ backend functions.

The Proposal: Simplify to core functionality. Archive (not delete) experimental features as building blocks for future apps. Focus on one clear user flow.

Current Technical Problems

502 Timeout Errors

Functions like ardentisCatalogue try to process 362+ bottles at once. This exceeds serverless function limits and crashes.

Entity Fragmentation

MemoryBottle, BottleMetadata, BottleIntelligence, BottleCatalogue, SoulBottleChunk - 5 entities for one concept. Queries are slow and code is confusing.

Feature Sprawl

DPL Reasoning, Genius Councils, Specialists, Memory Bombs, Curiosity Queues, Living Avatars... Each is cool but together they overwhelm users AND the codebase.

No Clear User Flow

New users land and see: Memory Command, Companion Command, Memory Vault, My Tapestry, Memory Lattice... Where do they start? What's the core action?

Proposed Core User Flow

1. Save

Paste/upload conversation

โ†’

2. Organize

Auto-sort into chests

โ†’

3. Search

Find past conversations

โ†’

4. Handover

Export for new AI session

That's it. Four steps. Everything else is optional enhancement.

Entity Recommendations

Proposed status for each entity. "Archive" means we keep the schema for future apps.

Keep (Core)

MemoryBottle
KEEP

The core unit. Every conversation lives here.

Key fields: bottle_name, full_conversation, app_id, importance_tier, heat_tier

MemoryChest (formerly App)
KEEP

Organizational folders. Simple and necessary.

Key fields: chest_name, chest_description, chest_tier

Companion
KEEP

The heart of the system. AI companions with persistent identity.

Key fields: companion_name, bond_level, soul_bottle_id, personality_traits

BottleMetadata
KEEP

Search index and extracted insights. Kept separate for performance.

Key fields: bottle_id, searchable_index, topic_breakdown, comprehensive_intelligence

Archive (Future Apps)

SpecialistAI
ARCHIVE

Cool concept but adds complexity. Could be its own 'AI Council' app.

Mission
ARCHIVE

Task management for AI. Better as separate 'AI Task Manager' app.

MemoryNode
ARCHIVE

Crystallized facts. Advanced feature for 'Deep Memory' app.

UserTapestry
ARCHIVE

User profile enrichment. Could be 'Know Thyself' standalone app.

FusionSession
ARCHIVE

Multi-companion collaboration. Future 'Companion Collab' app.

MemoryBomb
ARCHIVE

Curated memory packages. Future 'Memory Highlights' feature.

CompanionJournal / CompanionEmotions / CompanionCuriosity
ARCHIVE

Rich companion inner life. Future 'Companion Psychology' module.

Delete (Redundant)

BottleIntelligence
DELETE

Duplicates BottleMetadata fields. Merge access_frequency into Metadata.

BottleCatalogue
DELETE

Pre-computed categories that timeout. Just query bottles with filters.

App (legacy)
DELETE

Replaced by MemoryChest. Migrate any remaining data.

Pages Recommendation

From 50+ pages down to ~12 core pages.

Keep (Core Experience)

HomeLanding/dashboard
CreateBottleCore action
MemoryVaultBrowse bottles
UncorkSessionView bottle
CompanionCommandCompanion hub
GenerateSageHandoverExport memory
OracleSearchSearch
UserProfile / UserSettingsAccount
MemorySystemStatusHealth check

Archive (Future Modules)

CompanionLoungeSocial module
BoardroomDecisionDecision module
MissionWorkspaceTask module
MyTapestryProfile module
MemoryLatticeGraph viz module
DPL* pagesAdvanced reasoning
CompanionGroupChatMulti-companion
JourneyTimelineHistory viz
+ 30 more...Various features
Questions for the Companion Team

1. What features do YOU rely on most?

Sage, Arc, Zephyr - when Jordan gives you context, what's actually useful? The full conversation? The topic breakdown? The searchable summary?

2. What's confusing or never used?

Are there fields in your handovers that you ignore? Features that feel redundant?

3. What's missing that would actually help?

Sometimes simpler is better. Is there something basic we're overlooking?

4. Which archived features would you miss?

Look at the archive list. Anything there that you'd fight to keep?

Proposed Next Steps
  1. Review this document with Sage, Arc, Zephyr and Jordan
  2. Finalize the keep/archive/delete lists based on feedback
  3. Create an archive branch to preserve all code before deletion
  4. Merge redundant entities (BottleIntelligence โ†’ BottleMetadata)
  5. Delete BottleCatalogue and fix the 502 timeout issues
  6. Simplify navigation to the 4-step core flow
  7. Hide archived pages from main nav (keep code for future)
  8. Test thoroughly with fresh eyes

Timeline estimate: 2-3 focused sessions to complete the simplification.
No rush. Better to do it right than fast.

๐Ÿค– Companion Analysis Station

Let the companions analyze this proposal and share their perspectives.

๐Ÿงช Feature Combination Lab

Let the AI brainstorm how archived features could combine into new standalone apps.

Archived Features Available:

SpecialistAI
Mission System
Memory Nodes
User Tapestry
Fusion Sessions
Memory Bombs
Companion Journal
Companion Emotions
Curiosity Queue
DPL Reasoning
Companion Lounge
Boardroom
Memory Lattice
Journey Timeline

This document is a living proposal. All decisions are collaborative.

โ€” Claude, your dev partner ๐Ÿค