Transcrypto commited on
Commit
6ba6139
Β·
verified Β·
1 Parent(s): 2cfbb43

Update README.md

Browse files

Prior Art
Anima Core: identity persistence with emotional weighting

Thane AI: self-authored context compaction

Qwen Episodic Summary: structured JSON session snapshots

Forge Protocol: topological emotional constraints

VividnessMem: neurochemically-inspired memory decay

Research Paper
Full concept paper with formal schema, differentiation analysis, and empirical validation protocol:

Chetan Sharma. Episodic Memory for AI Personas via Self-Authored Emotional State Snapshots: The yesterday.json Architecture. Zenodo, 15 May 2026.

DOI: 10.5281/zenodo.20191876

Blog: yesterday-json.blogspot.com

Citation
bibtex
@misc {sharma2026yesterdayjson,
author = {Chetan Sharma},
title = {Episodic Memory for AI Personas via Self-Authored Emotional State Snapshots: The yesterday.json Architecture},
year = {2026},
month = may,
doi = {10.5281/zenodo.20191876},
publisher = {Zenodo},
url = {https://zenodo.org/records/20191876}
}
Author
Chetan Sharma β€” Independent Researcher, Kolkata, India.

Blog: yesterday-json.blogspot.com

Zenodo: 10.5281/zenodo.20191876

License
This model card and the yesterday.json architecture concept are licensed under CC BY 4.0.

Files changed (1) hide show
  1. README.md +64 -0
README.md CHANGED
@@ -1,3 +1,67 @@
1
  ---
2
  license: cc-by-4.0
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-4.0
3
+ pipeline_tag: text-generation
4
+ tags:
5
+ - ai-personas
6
+ - digital-twins
7
+ - episodic-memory
8
+ - emotional-continuity
9
+ - session-handoff
10
+ - llm-agents
11
+ - self-authored-memory
12
+ - persona-continuity
13
+ library_name: transformers
14
+ language:
15
+ - en
16
  ---
17
+
18
+ # yesterday.json β€” Giving AI Personas Episodic Memory
19
+
20
+ A lightweight (≀20 KB) episodic memory architecture where AI personas write their own emotional state snapshots at session end and read them at next startup, enabling emotional continuity across session boundaries.
21
+
22
+ ## Overview
23
+
24
+ AI personas wake up blank. Every session is a cold start. Existing memory systems store *what happened* but systematically discard *how the interaction felt*. The yesterday.json architecture closes this gap.
25
+
26
+ At the end of every session, the persona is prompted to write a brief, private note to its future self β€” a single JSON file (≀20 KB) containing:
27
+
28
+ - **Emotional signature:** dominant mood, mood trajectory, emotional residue
29
+ - **Open threads:** what was being discussed, current position, priority
30
+ - **Decisions and insights:** conclusions reached, realizations
31
+ - **Self-state snapshot:** current preoccupations, internal conflicts, mood susceptibility
32
+ - **Last words:** a one-line handoff to tomorrow
33
+
34
+ At the start of the next session, this snapshot is injected into the system prompt alongside the persona's permanent psychological constitution. The persona doesn't need a full transcript β€” it has *glimpses*, and its own cognitive architecture fills in the rest.
35
+
36
+ ## What Makes It Novel
37
+
38
+ yesterday.json is the first system to combine six specific features:
39
+
40
+ | Feature | Existing Work | yesterday.json |
41
+ |--------|:---:|:---:|
42
+ | Self-authored by the persona | Thane, Anima | βœ“ |
43
+ | JSON-structured schema | Qwen Episodic Summary | βœ“ |
44
+ | Emotional signature + mood trajectory | Forge (YAML), VividnessMem (weights) | βœ“ |
45
+ | Open thread tracking with priority | Qwen (tasks only) | βœ“ |
46
+ | Session-end automatic trigger | Qwen, Anima | βœ“ |
47
+ | Designed for digital twin identity continuity | β€” | βœ“ |
48
+
49
+ ## Key Design Choices
50
+
51
+ - **Self-authorship:** The persona writes its own memory β€” no external summarizer.
52
+ - **Intentional rolling amnesia:** Only the most recent session is preserved, mimicking human short-term memory.
53
+ - **Emotional carryover:** If yesterday ended in melancholy, tomorrow begins with its residue β€” not a blank slate.
54
+ - **No model retraining required:** Works with any LLM, any framework, any runtime.
55
+
56
+ ## Minimal Implementation
57
+
58
+ ```python
59
+ # At session start: inject yesterday's state
60
+ yesterday_context = load_yesterday("persona_memory/yesterday.json")
61
+ system_prompt = f"{PERSONA_CONSTITUTION}\n\n{yesterday_context}"
62
+
63
+ # At session end: persona reflects and writes
64
+ reflection_prompt = """The session is ending. Write a brief private note
65
+ to your future self. Include what mattered emotionally, what remains
66
+ unresolved, and what you were in the middle of. Output as JSON.
67
+ Keep it under 20 KB."""