# THRPY EMC² — Emotional Memory Cloud Squared Public page: `/learn/emc2` Source mathematics: [`docs/library/EMC2_Subconscious_Cloud_Mathematics.md`](../library/EMC2_Subconscious_Cloud_Mathematics.md) (from `thrpy.chat-v2/docs/`) This host’s charter: **PostgreSQL full-text recall**. EMC² cosine is **not** MMRY Cloud’s system of record. ## What it is **EMC²** is THRPY’s name for a **subconscious undercurrent** layer: not “what was said” (conscious memory), but whether the **shape** of this sitting’s feeling **resonates** with past emotional silhouettes. The name is a product metaphor (energy of a session, cloud of moments, squared as a cluster), not a physics identity with \(E=mc^{2}\). | Layer | Job | Must not | |-------|-----|----------| | **Conscious memory (MMRY)** | Cite title+content or abstain. Facts, promises, receipts. | Invent a turn. Search feeling as if it were text. | | **EMC² (THRPY / eKG)** | Cosine resonance of live silhouette \(S_L\) against historic silhouettes \(S_H\). Theme echo. | Prove an epiphany. Rewrite the transcript. Diagnose. | ## Mathematics (as implemented) Live path in `@thrpy/core-engine` / `ekg-core` `SessionMemorySystem.detectUndercurrent`: 1. Embed the live utterance locally (`Transformers.js`, typically MiniLM, \(D \approx 384\)). 2. That vector is an **emotional silhouette** \(S_L\), not a keyword query for nouns. 3. Score historic stored vectors with cosine similarity: \[ \mathrm{CosSim}(S_L, S_H) = \frac{S_L \cdot S_H}{\|S_L\|\,\|S_H\|} \] 4. Rank, drop suggestion-typed rows, keep matches with resonance **> 0.4**. 5. Return `{ resonance, theme, echo, timestamp }` — echo is a short clip, not the full record. Thresholds used in `emc2VerdictForResonance` (core-engine `systemTools.ts`): | Band | Score | Reading | |------|-------|---------| | High | \(> 0.85\) | Same emotional theme as a past vector, even if words differ | | Medium | \(0.65\)–\(0.85\) | Echo; may inform background VAD / ADF confidence | | Low–moderate | \(0.4\)–\(0.64\) | Faint pattern; new trajectory still possible | | Divergent | \(< 0.4\) | Treated as fresher; filtered out of undercurrent results | **Epiphany is not cosine.** Breakthrough is treated as a behavioural/clinical event (language, VAD, optional `test_epiphany_hypothesis`). EMC² only says the silhouette **echoes** a past theme. ## How it sits in RealSeries | Trifecta | EMC² role | |----------|-----------| | **Detection** | Silhouette \(S_L\) from this sitting (with RealFeel / RealVoice as other sensors). | | **Triggers** | High resonance may **qualify** an accommodation or a hypothesis — inside current consent and safety. | | **Actions** | RealFeel Ambient / RealAction may ease UI or pace. Resonance must not rewrite MMRY content. | Tooling: `synthesize_multi_modal_hypothesis` with optional `emc2_resonance_query` (e.g. “Grief”) to see if the live VAD/text silhouette matches past thematic vectors. Intended fusion (THRPY math docs): resonance can raise **EmotionConfidence** in the Attractor–Detractor Framework when an undercurrent aligns with a past high-risk theme. That is **method**, not a certified risk score on this host. ## Where it actually runs | Surface | Status | |---------|--------| | `thrpy.chat-v2` `packages/core-engine/src/mmry.ts` `detectUndercurrent` | **Live cosine** vs in-browser / IndexedDB vectors | | `sensaffect-platform` `packages/ekg-core/src/mmry.ts` | Same EMC² comment and cosine path | | `synthesize_multi_modal_hypothesis` in `realActionTools.ts` | Schema for resonance query + epiphany listener | | `thrpy-antigravity` / `thrpy-vector` `rflow_emc2.py` | **Stub**: returns hardcoded example resonances, not live search | | **This MMRY Cloud host** | Does **not** execute EMC². Recall is FTS on title+content. Feeling rows are optional interpretations. | Product tiers (THRPY platform docs): full EMC² is the **thrpy.ai** premium consumer layer; `thrpy.chat` is lighter; `thrpy.pro` is more scripted. ## Privacy and authority Design intent: embeddings and undercurrent scan stay **on-device** (edge). That is THRPY’s black-box claim. This mmry.cloud process is a **hosted store** with account-scoped SQL. Do not mix the two: a cosine echo on the phone is not a cite from this PostgreSQL. A remembered grant is not consent to build or query a subconscious graph. Unknown stays unknown. EMC² must not become a hiring score, a diagnosis, or a silent rewrite of what was said. ## What to download - Mathematics source: [`/library/EMC2_Subconscious_Cloud_Mathematics.md`](/library/EMC2_Subconscious_Cloud_Mathematics.md) - Affective deck: [`/library/THRPY_AffectiveComputing.pdf`](/library/THRPY_AffectiveComputing.pdf) - RealFlow original offer: [`/learn/library#realflow`](/learn/library#realflow)