CogMem — Cognitive Memory Architecture#
The most irritating experience in the universe is having to re-explain who you are, what you do, and what you hate to an AI assistant every single time you open a chat window. This is worse than Vogon poetry — at least Vogon poetry doesn't repeat itself (one traumatic exposure is quite enough).
CogMem is Morpheus's cognitive memory architecture. It remembers you, learns your habits, follows your rules, and naturally forgets information that's no longer useful. Like a perfect personal assistant — but one that never takes a coffee break.
TUBITAK 1501 R&D Project
CogMem — Cognitive Memory Architecture is being developed under the TUBITAK 1501 Industrial R&D Projects program. Because finding the answer "42" doesn't require 7.5 million years — but building a proper memory system does require an R&D grant.
How It Feels#
Before we dive into the technical details, here's what CogMem looks like in daily use:
You: "Don't restart my server at night."
Morpheus: Understood, saved as a rule.
A week later:
You: "There's a memory leak on the server, needs a restart."
Morpheus: A restart seems necessary, but it's 11:40 PM — you previously asked me not to restart at night. Shall I schedule it for 8:00 AM tomorrow?
You never have to repeat yourself. Morpheus remembers.
6 Memory Rings#
Morpheus's memory is organized into six concentric rings. Think of it like the table of contents in the Hitchhiker's Guide — each ring stores a different type of information at a different persistence level.
| Ring | What It Stores | Example | Behavior |
|---|---|---|---|
| Fresh | Temporary info from recent conversations | "We just restarted nginx" | Naturally fades after 30 days |
| Long-term | Proven permanent facts | "My name is Cem, CEO of VeriTeknik" | Auto-injected every conversation |
| Habits | Recurring behavioral patterns | "Always takes backup before deploy" | Injected on relevant topics |
| Procedures | Workflows and processes | "Domain order is an 8-step process" | Injected on relevant topics |
| Shocks | Critical events — never forget | "Cascade failure occurred, root cause: disk" | Auto-injected every conversation |
| Dos & Don'ts | Rules and prohibitions | "No restarts after 10:00 PM" | Auto-injected every conversation |
Why six rings?
Human memory works the same way: you'll probably forget what you had for dinner last Tuesday (Fresh), but never your own name (Long-term). If you survived a fire, you'll always remember it (Shock). And you only need to learn "don't touch the stove" once (Dos & Don'ts). CogMem brings this natural structure to a digital assistant.
Promotion Between Rings#
Memories are not static. If a "Fresh" memory is recalled repeatedly and leads to successful outcomes, it gets promoted to a higher ring. A temporary observation can evolve into a permanent fact over time.
Fresh → Long-term → (promoted based on usage and success score)
BIOS Layer#
Beyond the memory rings, there's an immutable BIOS layer. Like the laws of physics in the universe — not open for debate.
The BIOS layer contains:
- PCI-DSS rules — "Root access is restricted on scoped servers"
- ISO 27001 controls — security policies and procedures
- Customer SLA requirements — "First response time < 15 minutes"
These rules are automatically injected into every conversation. Morpheus cannot ignore them — much like a hitchhiker cannot ignore gravity.
BIOS rules cannot be deleted
BIOS layer rules cannot be edited or deleted by the customer. They are part of VeriTeknik's security and compliance infrastructure.
Reinforcement — Ebbinghaus Forgetting Curve#
Morpheus's memory naturally fades — just like your memory of "what I had for lunch on Tuesday." But memories that are frequently used and produce successful outcomes get reinforced and strengthened.
The mechanism:
- Morpheus uses a memory and the conversation ends successfully
recall_countandsuccess_scoreincrease- Memories exceeding the threshold get promoted to a higher ring
- Unused memories naturally fade (decay gradient: 0.9 / 30 days)
| Situation | What Happens |
|---|---|
| Memory is frequently used, successful | Reinforced, promoted |
| Memory is occasionally used | Stays in place |
| Memory is never used | Naturally fades and is removed |
| Memory is a Shock or Rule | Never fades |
Automatic cleanup
No manual memory cleanup needed. Unused information disappears on its own. But don't worry — truly important memories (Shocks, Rules, BIOS) never fade. The universe may end in heat death, but your "don't restart at night" rule will still be there.
Attention Flow#
When a conversation starts, CogMem proactively loads relevant memories. If you're talking about servers, domain memories aren't loaded — only your server habits, related procedures, and past shocks are standing by.
The process:
New conversation starts
↓
Focus Agent → Classifies the topic (~100ms)
↓
Relevant memories loaded into Fresh cache
↓
Pheromone dedup → Duplicate memories eliminated
↓
Enriched context → Presented to Morpheus
This means Morpheus enters every conversation pre-briefed. No fumbling around looking for a towel.
Focus Agent — Topic Router#
The Focus Agent is a lightweight AI model that classifies every message in ~100ms and routes it to the correct memory ring.
- Determines the topic of the message (server, domain, billing, security...)
- Pulls relevant memories from the correct ring
- Triggers writing new information to the appropriate ring
Think of it as a librarian: you say "server" and it points you to the right shelf. You say "deploy procedure" and it opens the Procedures ring.
KE-IE — Knowledge Extraction & Information Enrichment#
Knowledge Extraction (KE) and Information Enrichment (IE) are two pipelines that work in tandem:
| Component | Job | When It Runs |
|---|---|---|
| KE (Knowledge Extraction) | Identifies valuable information from conversations and writes it to the appropriate memory ring | Nightly at 02:00 (cron) + manual trigger |
| IE (Information Enrichment) | Enriches existing memories with current conversation context | At every conversation start |
Example KE flow:
Conversation: "We restarted the server but I forgot I wasn't supposed to do it after 10 PM."
KE extraction:
ring: dos_and_donts— "No server restarts after 10:00 PM"
Gut Agent — Cross-Tenant Pattern Aggregation#
The Gut Agent performs anonymized pattern detection across all tenants. One customer's data is never visible to another — but aggregate statistical patterns benefit everyone.
- Differential privacy for anonymous clustering
- Detects trends like "15 customers experienced disk space issues in the past week"
- Gives Morpheus proactive warning capabilities
Gut Agent in practice
When the Gut Agent detects a similar issue across many customers, Morpheus can proactively warn you: "We've observed increasing disk usage on servers with similar configurations recently. Would you like me to check yours?"
KVKK Compliance#
CogMem is fully compliant with KVKK (Turkish Personal Data Protection Law) and GDPR requirements:
| Right | How to Exercise |
|---|---|
| Right of access | View all your memories at Hub Chat > Memory page |
| Right of rectification | Edit any memory (except BIOS) |
| Right of erasure | Delete individually or in bulk — all memories except BIOS are removed |
| Data portability | Export your memories |
Deletion is permanent
Memory deletion is irreversible. Deleted memories cannot be recovered. But don't worry — Morpheus will learn to recognize you again. It just takes a little time, like re-reading the Guide from scratch.
Memory Management Panel#
To see and manage what Morpheus knows about you:
- Click the Memory link in the top-right of Hub Chat
- Or go to Settings > Memory tab
In the panel you can:
- View all memory rings and BIOS rules
- Edit or delete any memory (except BIOS)
- Click Analyze to trigger memory extraction from today's conversations
- Review reinforcement scores and last-used dates
Architecture Overview#
┌──────────────────────────────────────────────────┐
│ BIOS Layer │
│ (PCI-DSS, ISO 27001, SLA — immutable) │
├──────────────────────────────────────────────────┤
│ ┌─ Dos & Don'ts ────────────────────────────┐ │
│ │ ┌─ Shocks ────────────────────────────┐ │ │
│ │ │ ┌─ Procedures ─────────────────┐ │ │ │
│ │ │ │ ┌─ Habits ──────────────┐ │ │ │ │
│ │ │ │ │ ┌─ Long-term ─────┐ │ │ │ │ │
│ │ │ │ │ │ Fresh │ │ │ │ │ │
│ │ │ │ │ └─────────────────┘ │ │ │ │ │
│ │ │ │ └───────────────────────┘ │ │ │ │
│ │ │ └──────────────────────────────┘ │ │ │
│ │ └─────────────────────────────────────┘ │ │
│ └────────────────────────────────────────────┘ │
├──────────────────────────────────────────────────┤
│ Focus Agent → Attention Flow → KE-IE Pipeline │
│ Gut Agent → Cross-tenant pattern analysis │
└──────────────────────────────────────────────────┘
Don't Panic
CogMem may look complex, but all you need to do is talk to Morpheus. It handles the rest. Just like the Hitchhiker's Guide — open the cover and ask your question.