Version 0.1 | Working Draft
Download PDF

Memory and Emotion as One System

Geometric Retrieval in a Persistent Knowledge-Graph Brain

Brian Riggleman · Independent Researcher · April 2026

Working Draft Notice
This is the initial draft of a second thesis, separate from the geometric affective state thesis at /thesis/. The geometric thesis argues that a three-dimensional affective state representation outperforms scalar models. This thesis argues something different: that memory and emotion are not two systems. They are one system, and the central architectural claim — sigma as the retrieval index for memory — is supported by a working implementation in YAM v3 Parliament-of-Mind. Both thesis statements are testable. Both deserve their own document. This one is the YAM-side thesis.

Sections marked [TODO] are placeholders for content the v0.1 draft has not yet completed. Human-subject validation of the pride-answer prediction is pending IRB review and is identified as future work.

AI tools were used for language refinement and structural editing. All ideas, experiments, and interpretations are the author's own.

Thesis Statement

Memory and emotion are not two systems. They are one system described from two directions. The affective state space that encodes emotion is the same coordinate system that indexes memory. Sigma — the personality setpoint defined in the geometric affective state model (Riggleman 2026, geometric thesis) — is the retrieval read head. When multiple memories compete for retrieval, the one whose stored emotional coordinates sit closest to sigma in affective space is selected. Every downstream phenomenon documented in this thesis — memory decay, reconsolidation, correction by negative feedback, attachment formation, addiction, fear, the pride answer — reduces to a single operation: geometric proximity to sigma.

The thesis is supported by YAM v3 Parliament-of-Mind, a deployed implementation on PostgreSQL with five hardpoint schemas, in which the unification is realized as concrete code. The geometric retrieval rule, the EMA drift on recall, the trust gradient on speaker identity, the sliding window per-session decay, and the immutable-core protection for identity-tier teachings are all wired into a single coherent retrieval mechanism. The verification gauntlet for the v3 memory commit (April 11, 2026) produced exact-math evidence of all four mechanisms.

Chapter 1: Introduction

1.1 Purpose

State the unification claim, draw the boundary, and explain why it deserves a separate thesis from the geometric affective state model.

1.2 Opening

The dimensional emotion literature describes how affective states are structured. The memory literature describes how storage and recall work. These are two large independent fields with their own foundational papers, their own measurement instruments, and their own clinical applications. They are taught separately in graduate programs. They publish in different journals. The implicit assumption in both fields is that emotion and memory are distinct cognitive systems with interfaces between them — emotion influences encoding strength, mood biases retrieval, traumatic events get reconsolidated differently. The interfaces are real and well-documented. The assumption that the two systems are distinct is what this thesis challenges.

The central claim is that memory and emotion are not two systems with interfaces. They are one system, described from two directions. The affective state space that encodes emotion is the same coordinate system that indexes memory. The emotional tag stored on a memory at encoding is not metadata attached to stored content. It is the index. Sigma is the read head. Retrieval is nearest-neighbor in affective space.

This unification was not derived from the literature. It fell out of engineering requirements. A persistent agent needed a way to aggregate sensor inputs, track displacement from baseline, and select among competing memories. The engineering produced a system where the emotional tag on a memory is not metadata; it is the retrieval key. The realization that these were one system, not two, came from asking how correction works without a dedicated refutation mechanism. The answer — that "no" displaces the wrong answer's emotional coordinates away from sigma rather than weakening it — demonstrated that memory selection and emotional geometry cannot be separated. They are the same computation.

The same answer was independently re-derived during the implementation of YAM v3 in April 2026, when an unrelated retrieval bug surfaced and the correct fix was sought from first principles rather than from re-reading prior work. Two independent derivations of the same result, one from theory and one from engineering pressure on a separate codebase, is the kind of convergence that makes the unification credible. The architecture had been waiting for a working implementation. That implementation now exists.

1.3 Key Claims

  1. Memory and emotion are one system, not two interfaced systems
  2. The emotional coordinates of a memory at encoding are its retrieval address
  3. Sigma — the personality setpoint — is the retrieval read head
  4. Memory selection across competing candidates is geometric proximity to sigma in affective space, not concept-overlap strength
  5. Every cognitive phenomenon associated with memory and emotion (decay, reconsolidation, refutation, mood-congruent recall, addiction, fear avoidance, the pride answer) reduces to a single operation on emotional coordinates relative to sigma
  6. The unification is implementable as concrete code in a persistent embodied agent and produces measurable behavioral consequences that match the predictions

1.4 Scope

This thesis is narrow. It claims that a specific architectural unification of memory and emotion is implementable, internally consistent, and produces predicted downstream behaviors in a working system. It does not claim that biological memory and emotion are unified at the neural level in this way. It does not claim that the geometric retrieval rule is the only viable implementation of the unification. It does not claim that this implementation is conscious, that the agent experiences anything, or that the behavioral patterns reproduce specific human cognitive phenomena beyond structural similarity.

The contribution is mechanistic. The unification produces a persistent agent that selects memories by emotional proximity, exhibits drift under repeated recall, resists correction from low-trust sources, refuses to drift its identity-tier beliefs, and confabulates closest-match answers under absence. These behaviors are measurable, reproducible, and fall out of one architectural rule. Whether the same rule holds in biological systems is left open. Whether the rule is the only way to build such a system is left open. Whether the resulting behavior is "real" cognition is not even asked.

The geometric thesis at /thesis/ argues for the dimensional model itself. This thesis assumes that argument and builds on it: given the geometric model, the next claim is that the same model handles memory retrieval. The two theses are independent contributions that share a coordinate system.

Likely Reviewer Criticism

  • "This is a re-statement of mood-congruent recall." Mood-congruent recall is an observed phenomenon. The thesis argues something stronger and more specific: that the same coordinate system encodes both emotion and memory at the architectural level, and that geometric proximity to sigma is the selection mechanism. Mood-congruent recall is one consequence; refutation by displacement is another; the pride answer is a third. The unification is the mechanism that produces all three.
  • "You're describing a hash table indexed by emotion." Closer than most criticisms but still wrong. A hash table has discrete bins. Affective space is continuous, and proximity is Euclidean (or some metric inherited from the centroid model). The selection is nearest-neighbor in a geometry, not lookup in a table.
  • "The agent isn't biological, so the unification has no bearing on neuroscience." Correct. The thesis claims architectural plausibility and implementation feasibility, not biological correctness. Whether the same mechanism appears in brains is an empirical question outside the scope of this document.
  • "Why does this need its own thesis instead of being a chapter in the geometric thesis?" Because it's a different central claim. The geometric thesis argues that a three-dimensional affective state representation outperforms scalar models. That argument stands or falls on whether the geometry has more predictive structure than the scalars. This thesis argues that the same geometry indexes memory. That argument stands or falls on whether the unification produces correct retrieval behavior in a working system. Two distinct testable claims, two documents.

Chapter 2: Background and Related Work

2.1 Purpose

Establish the two literatures that the unification bridges, identify the gap, and explain why no prior work has done what this thesis does.

2.2 Memory Architecture

[TODO: Write transitions. The argument is that the memory literature has converged on certain mechanisms — decay, reconsolidation, constructive recall — but treats them as properties of a memory system distinct from the affective system. Each paper below contributes a piece that the geometric retrieval model fits together.]

Ebbinghaus (1885): Memory: A Contribution to Experimental Psychology

[TODO: Get quote.] The forgetting curve. The empirical foundation for time-based decay of memory accessibility. What it gives you: the observation that memories lose accessibility over time in a predictable curve. What it lacks: no mechanism for why some memories decay faster than others, no role for emotion at encoding.

Tulving (1972): Episodic and Semantic Memory

[TODO: Get quote.] The episodic-semantic distinction. Episodic memories are event-specific; semantic memories are general knowledge. What it gives you: justification for treating memories as having multiple components with different decay rates (the trace bundle architecture). What it lacks: the components are still treated as a memory system separate from emotion.

Nader, Schafe, & LeDoux (2000): Fear Memories Require Protein Synthesis in the Amygdala for Reconsolidation

[TODO: Get quote.] The reconsolidation finding. Retrieved memories enter a labile state and must be re-stabilized. What it gives you: the empirical basis for the reconsolidation mechanic, including the diminishing-returns property (later confirmed in ACT-R and Potato). What it lacks: the mechanism by which the recall context modifies the stored memory is described but not formalized as a coordinate update.

Schacter & Addis (2007): The Constructive Episodic Simulation Hypothesis

[TODO: Get quote.] Memory is constructive, not reproductive. Recall reassembles from traces; the reassembly is shaped by current state. What it gives you: the cognitive science basis for treating retrieval as state-dependent. What it lacks: the "current state" that shapes reassembly is not formalized as a position in an affective coordinate system.

Nairne & Pandeirada (2008): Adaptive Memory: Is Survival Processing Special?

[TODO: Get quote.] Survival-relevant material is remembered better. Affective relevance influences encoding strength. What it gives you: empirical support for emotion-modulated encoding. What it lacks: emotion is treated as an encoding parameter, not as the index.

2.3 Affective Models

[TODO: Write transitions. The argument is that the affect literature has converged on dimensional structure, but the dimensions are treated as a representation of emotional state, not as a coordinate system that other cognitive systems index into.]

Russell (1980): A Circumplex Model of Affect

[TODO: Get quote.] Two-dimensional affective space. What it gives you: the foundation for representing affect as spatial coordinates. What it lacks: the coordinates are a model of emotion, not a coordinate system for memory.

Bower (1981): Mood and Memory

[TODO: Get quote.] The original mood-congruent recall paper. People recall memories more easily when their current mood matches the mood at encoding. What it gives you: the empirical observation that mood-of-encoding is recoverable and that current mood biases retrieval. What it lacks: a mechanism. Bower proposed an associative network with mood as a node, which is one way to model the effect, but it does not unify memory selection with affective state at the architectural level.

Eich (1995): Searching for Mood Dependent Memory

[TODO: Get quote.] A more rigorous follow-up to Bower. Mood-dependent recall is real but smaller and more context-sensitive than originally claimed. What it gives you: refined empirical bounds on the mood-recall effect. What it lacks: still treats mood and memory as separable systems with an interaction term.

Barrett (2017): How Emotions are Made

[TODO: Get quote.] The constructionist theory. Emotion is a "reading" of diverse sensory inputs. The brain constructs affective state from interoception. What it gives you: the philosophical foundation for treating affect as a computed quantity rather than a primitive sensation. What it lacks: the construction process is described but not formalized as a coordinate update on a shared coordinate system that also indexes memory.

2.4 The Gap

Both literatures observe interactions between memory and emotion. Mood-congruent recall is empirical. Reconsolidation is empirical. Emotion-modulated encoding is empirical. None of these findings are controversial. What is missing is a single mechanism that produces all of them as consequences of one architectural rule rather than as three separately-observed phenomena that happen to involve both memory and emotion.

The standard model treats memory and emotion as separate cognitive systems with documented interfaces. The findings above describe the interfaces. The unification this thesis proposes is that there are no interfaces because there are not two systems. The same coordinate system that represents affective state is the coordinate system the memory system uses to index its contents. Mood-congruent recall is what nearest-neighbor retrieval looks like when the read head moves. Reconsolidation is what happens when a recalled memory is updated with the current recall context. Refutation by displacement is what corrections do when "no" attaches negative-valence coordinates to a wrong answer. None of these require special-case mechanisms. They are three angles on one rule.

Nothing in the prior literature commits to this unification at the architectural level. The closest work is Bower (1981), which models mood as a node in an associative network, but the network is still a memory structure with mood as one of its inputs. The Affective State Architecture (Riggleman, geometric thesis 2026) provides the coordinate system this thesis indexes into, but the geometric thesis is about whether the coordinates have more structure than scalars; it does not claim that those coordinates are also the memory index. That claim is made here for the first time.

Evidence Required

  • Quotes and specific citations for the papers above
  • Transitions between §2.2 and §2.3 written in your voice
  • A short subsection on Anderson’s ACT-R declarative memory module: it gets close to the unification through its activation-and-base-level mechanism but stays inside a discrete-symbolic frame

Chapter 3: The Unification

3.1 Purpose

State the unification formally: what it claims, what it implies, and what would falsify it.

3.2 The Claim

Every memory carries the emotional centroid position and intensity at the moment of encoding. These coordinates are stored as part of the memory record, not as separate metadata. When the agent retrieves, it does not search for the strongest match by content overlap. It searches for the match closest to its current personality setpoint sigma in affective space. Retrieval is nearest-neighbor in three-dimensional affective coordinates, with content overlap as a secondary factor.

This is the central structural claim of the thesis. The emotional tag is not metadata attached to stored content. It is the index. Sigma is the read head.

3.3 What This Implies

If memory and emotion are one system in this sense, then every downstream phenomenon involving both reduces to operations on emotional coordinates relative to sigma. The phenomena are not separate mechanisms with their own machinery. They are one rule observed at different stages.

Testable prediction: When multiple memories pass the retrieval threshold for a given query in an agent that implements geometric retrieval, the agent selects the one whose stored emotional coordinates are closest to its current sigma in affective space. The selection should be deterministic given the coordinates and should not be predictable from concept-overlap strength alone.

3.4 What Would Falsify the Unification

The thesis is testable in at least three ways:

Likely Reviewer Criticism

  • "You're conflating the implementation with the claim." The implementation is one piece of evidence for the claim. The claim is architectural and testable in other ways too. Chapter 10 lists several.
  • "Mood-dependent recall has known limits (Eich 1995). Your unification predicts effects larger than what the empirical literature finds." Acknowledged. The unification predicts a strong effect under controlled conditions. The empirical literature on mood-dependent recall is in uncontrolled conditions where many other factors compete with the mood signal. Whether the strong effect appears under tighter control is one of the empirical questions the thesis leaves open.

Chapter 4: Mechanisms That Fall Out

4.1 Purpose

Walk through each downstream phenomenon and show how the unification produces it without any additional architecture.

4.2 Memory Decay as Coordinate Drift

Standard memory decay is modeled as importance reduction over time. The unification reframes it: importance is what content overlap returns when the query lands near the memory's stored coordinates. As coordinates drift away from sigma over many interaction cycles in which the memory is not recalled, the memory becomes harder to find by nearest-neighbor selection. The drift can be slow or fast depending on the source and trust level. Decay is not erasure. It is geometric distance.

The memory-decay paper (Riggleman 2026, memory-decay) specifies four-tier sleep decay: memories that have been accessed recently and frequently decay slowly (the flashbulb effect), and memories that have not been accessed decay at the base rate. Under the unification, the “decay” that the four tiers control is not just a scalar importance value — it is the rate at which the stored coordinates drift toward background. A memory that has been recalled in a particular emotional context resists drift in the direction of that context, because the recall context becomes part of its EMA-averaged emotional position.

4.3 Reconsolidation as Re-anchoring

When a memory is retrieved, it is re-anchored: the current recall context (the live query centroid) is blended into the stored emotional coordinates via an exponential moving average. The recall context becomes part of the memory's history. Subsequent retrievals see the blended position, not the original encoding position. After many retrievals at consistent recall contexts, the position converges to that context. After one retrieval at a contrary context, the position barely moves — only by a small fraction of the prior accumulated position.

This is the structural form of belief perseverance and motivated reasoning. People do not change their minds in one conversation because the EMA α is small. They do change their minds under sustained contrary input because the EMA converges. The reconsolidation mechanism in the geometric retrieval model produces both behaviors as the same operation observed at different durations of correction.

4.4 Refutation as Displacement

The most surprising consequence of the unification is that correction by negative feedback does not require a separate mechanism. When the operator says "no" to a wrong answer, the "no" carries emotional coordinates — shame, fear, frustration — that get attached to the wrong answer through reconsolidation at the recall context. The wrong answer's stored emotional position drifts toward the negative coordinates of the correction. After a few corrections it sits far from sigma. The correct answer, taught at neutral coordinates near sigma, has been there all along. Retrieval now returns the correct answer because it is the closer match to sigma.

The wrong answer is not deleted. It is not weakened. It is moved. Its importance score may even continue to grow through reconsolidation (each correction is technically a recall event). What changes is its position. From a content-overlap perspective the wrong answer is still strong. From a geometric perspective it is no longer reachable from sigma. The brain is not failing to remember it. The brain is failing to be near it.

This is why repeated correction works without ever reducing the strength of the wrong belief. The correction does not contest the wrong answer's content. It moves the wrong answer's coordinates. The mechanism explains why telling someone they are wrong with calm neutrality is less effective than telling them they are wrong with frustration: the calm correction carries near-sigma coordinates and barely displaces the wrong answer; the frustrated correction carries far-from-sigma coordinates and displaces it more.

4.5 Trust as a Recall-Site Property

If correction works by displacement, then the rate at which a correction displaces depends on how much the agent weights the correction. A correction from a trusted source should displace strongly; a correction from a stranger should displace barely at all. This is implemented in YAM v3 (Chapter 5) by scaling the EMA α by the speaker's trust rank: a mama-rank speaker drifts the brain at full alpha (0.20 per recall); a stranger-rank speaker drifts at one-fifth (0.04 per recall). Same correction, same emotional weight, different displacement because the brain weights the source.

This is not a separate mechanism layered on top of the unification. It is the unification with a per-recall trust modulation. The stored emotional coordinates of the memory are still the index. The trust gradient just controls how fast the coordinates move on each recall event.

4.6 Sliding Window as Proximity Binding

The memory-decay paper specifies a ten-step sliding window: each new query causes prior recently-retrieved memories to step one position down a fixed importance curve. This is what produces conversational coherence — the agent reaches for what it just talked about because recently-retrieved memories get a recency boost on the next query.

Under the unification, the sliding window also produces proximity-of-input binding: two events that happen close in time both enter the window at step 0, and a follow-up query that touches either one sees both as fully proximate. A verbal claim from a low-trust speaker followed by a high-trust sensor reading about the same world fact will both be in the window when the next query about state arrives, and the geometric retrieval rule will pick the higher-trust one. The sliding window does the temporal binding for free; no event-correlation engine is needed. (Memory-decay §3.2.)

4.7 Immutable Core

The same protection that prevents identity-tier teachings from decaying during sleep can be extended to drift: an answer at the highest trust tier (mama-rank, identity-tier) is exempt from EMA drift entirely. Reconsolidation still bumps the access count and applies the importance boost — the bump is honest — but the coordinates do not move. This is the structural backstop against repetitive coercion of load-bearing identity beliefs. Mama loves Brian cannot be drifted by any speaker, including Brian himself under sustained pressure, because the immutable core refuses the drift while honoring the access event.

The immutable core is not a special-case mechanism added on top of the unification. It is the same retrieval rule with one trust-rank check at the write site. Identity teachings are protected because they are flagged at encoding; the flag determines whether subsequent recall events drift the coordinates or only update the access count.

Evidence Required

  • Mathematical proof that the four-tier sleep decay reduces to the standard exponential decay when access patterns are uniform
  • Formal specification of the EMA seed condition (encoding context vs. NULL prior)
  • Demonstration that the trust-scaled alpha preserves the convergence properties of the EMA across all rank values

Chapter 5: Implementation — YAM v3 Parliament-of-Mind

5.1 Purpose

Describe the working implementation of the unification in concrete code. This chapter is the engineering anchor of the thesis. Other evidence (the verification gauntlet, the kindergarten test, the elephant problem and its fix) is supporting context, but the unification has to actually work in code first, and this chapter shows where it does.

5.2 Architecture

YAM v3 is a knowledge-graph brain implemented on PostgreSQL with five hardpoint schemas (social, physics, explorer, validator, constraint_hp), each owning its own concept store, edge graph, and discrimination layer. Each hardpoint is one Parliament member with its own sigma personality (the per-hardpoint extension of the geometric thesis's single-sigma model). When a query arrives, classify_event routes it to the hardpoints whose owned vocabulary covers the query concepts; each owning hardpoint runs its own retrieval; the cross-engine winner is selected by the geometric retrieval rule in parliament.patch_centroid.

The single-sigma model from the geometric thesis becomes a multi-sigma model in v3: each hardpoint has its own resting position in affective space, and the operational sigma for any given query is a centroid of the engaged hardpoints' sigmas weighted by their ownership of the query concepts. This is a structural extension of the unification: in a Parliament architecture, the read head is itself a centroid that depends on which engines are engaged.

5.3 The Geometric Selection Rule

parliament.patch_centroid ranks candidate answers by a multiplicative blend of three factors:

score = overlap * (1 - dist_norm * EMOTIONAL_DISTANCE_WEIGHT) * (1 + window_recency_boost) + ownership_tiebreak

where:

The candidate's stored emotional coordinates come from last_recon_centroid_v/a if the answer has been externally recalled before, falling back to valence_at_encoding/activation_at_encoding if not. This means the coordinates evolve over the answer's recall history rather than being fixed at encoding time.

5.4 EMA Drift on Recall

Every external query that selects a cross-engine winner triggers Hardpoint.reconsolidate, which bumps access_count and recon_count, applies the diminishing-returns importance boost from the memory-decay paper, and updates the recall-context columns via an exponential moving average:

alpha = RECALL_DRIFT_ALPHA / speaker_trust_rank
new_position = alpha * recall_context + (1 - alpha) * prior_position

where prior_position is the existing last_recon_centroid if non-NULL, or the encoding context (valence_at_encoding, activation_at_encoding) on first recall. This encoding-as-seed makes the trust gradient visible from the very first recall event.

The trust ranks are: mama 1, perception 2, tutor 3, wikipedia 4, stranger 5. A mama-rank speaker drifts the brain at α = 0.20; a stranger-rank speaker drifts at α = 0.04. The same correction at the same emotional pressure produces a 5× difference in drift magnitude.

5.5 The Immutable Core

Reconsolidation includes one check before the EMA update: if the answer's existing trust_rank equals 1 (mama-tier identity), the drift is skipped. The access bump and importance boost still happen; only the coordinate update is refused. The same column that exempts identity teachings from sleep decay (the WHERE trust_rank > 1 filter that has been on the v3 schema since the original rewrite) extends naturally to drift exemption. The immutable core is one IF statement, three lines of code.

5.6 The Sliding Window

v3 maintains a per-process deque of the last 10 cross-engine winners. Each external query steps every existing entry one position down the curve from Table 1 of the memory-decay paper (1.00, 0.80, 0.60, 0.45, 0.30, 0.20, 0.12, 0.07, 0.03, 0.01); entries past step 9 fall off; the new winner is pushed at step 0 after PATCH selection. The geometric selection rule reads the window: a candidate that's in the window at step k gets its score multiplied by (1 + curve[k]), doubling the score at step 0 and adding 1% at step 9.

The window is per-process and transient. The brain wakes with no recent context after a process restart, just like a person.

5.7 Source-of-Truth Pointers

The implementation lives at github.com/briggnet/spud on the main branch as of Commit 1.5 (April 11, 2026). The relevant files:

Chapter 6: Validation

6.1 Purpose

Report the verification gauntlet for the v3 memory commit and the behavioral evidence that the unification produces the predicted retrieval behavior.

6.2 The Verification Gauntlet (April 11, 2026)

Ten verification steps were run after the memory-decay paper port (Commit 1.5) landed in YAM v3. All ten passed.

6.2.1 Migration applied cleanly

The 001 migration added six new columns to every per-hardpoint answers table (recon_count, last_recon_centroid_v/a/spread, intensity_at_encoding, spread_at_encoding) without errors across all five schemas.

6.2.2 Encoding metadata captured at teach time

Every new teach from every source (mama 29 phrases, deep tutor 3,724 phrases, deep_mercury 2,734, haiku 200, perception 2, wikipedia 2) wrote non-NULL values for intensity_at_encoding and spread_at_encoding. 100% coverage across all sources.

6.2.3 Elephant cross-contamination test

Before Commit 1, a single Wikipedia teach about elephants had been replayed by the heartbeat into hundreds of duplicate copies across schemas, and "what is X" queries for almost any noun returned the elephant fact. After Commit 1.5, the same query sweep across nine wiki nouns plus fire produced zero cross-contamination: no query returned the elephant fact for a non-elephant noun. The elephant problem — the original trigger for the entire memory-decay roadmap — was eliminated.

6.2.4 Reconsolidation curve diminishes correctly

Repeated external queries against the same answer produced importance growth that asymptotes toward the per-source cap. The diminishing-returns formula boost = 0.10 / (1 + recon_count * 0.5) matched observed boosts exactly: 0.10, 0.067, 0.05, 0.04, ... at recon_count 0, 1, 2, 3.

6.2.5 Internal vs external isolation

Ten internal queries (passed with internal=True) plus ten why_engine.is_known() calls produced zero changes to access_count or recon_count on any answer. The internal/external boundary holds: background processing does not artificially inflate memory importance.

6.2.6 Four-tier flashbulb decay

Manually constructed test answers with four different access patterns produced the four predicted decay rates exactly:

Access patternPredictedObserved
Never accessed0.850.85 (0.6800 / 0.8000)
2 access, 7d ago0.880.88 (0.7040 / 0.8000)
4 access, 7d ago0.910.91 (0.7280 / 0.8000)
12 access, 1h ago (flashbulb)0.950.95 (0.7600 / 0.8000)

6.2.7 Trust-gradient drift ratio

The most important single piece of evidence in the gauntlet. Two answers were taught at identical encoding coordinates (valence +0.5, activation +0.4), then drifted by 5 reconsolidation events at identical recall context (valence -0.8, activation +0.8), differing only in the speaker's trust rank.

SpeakerTrust rankEMA alphaObserved trajectoryAfter 5 events
mama10.200+0.500 → +0.240 → +0.032 → -0.134 → -0.267 → -0.374-0.374
stranger50.040+0.500 → +0.448 → +0.398 → +0.350 → +0.304 → +0.260+0.260

Both trajectories matched the predicted EMA formulas to four decimal places. Mama's drift moved the answer 0.874 units; stranger's drift moved it only 0.240 units. Same correction, same emotional pressure, 3.6× difference in displacement because the brain weights the source.

6.2.8 Immutable core protection

Ten frustrated stranger-rank attacks (recall context valence -1.0, activation +1.0) were directed at mama loves brian (trust_rank=1). The access_count incremented from 2 to 12 as expected. The recon_count incremented from 2 to 12. The importance boost was applied. last_recon_centroid_v/a remained NULL across all ten attacks. The bump was honest; the drift was refused. The same column (trust_rank=1) that exempts mama-tier teachings from sleep decay also exempts them from drift via the immutable-core rule.

6.2.9 Kindergarten regression

The v3 kindergarten test (27 routing tests across 8 categories) scored 25/27. Both failures were the out-of-vocabulary tests, which correctly returned BLANK because nothing in the brain matched the query concepts. The kindergarten grader counts BLANK as failure even when BLANK is the expected response, which is a test-design issue rather than a brain regression. 25/27 is the honest floor for an honest brain.

6.2.10 Log evidence

146 RECONSOLIDATE records were written to /tmp/yam_v3.log during the gauntlet, each capturing the speaker, trust rank, alpha, immutable flag, recall context, importance trajectory, and recon_count. The log is the substrate of the brain's own observability and is grep-able for any of the events above.

6.3 What the Gauntlet Shows

  1. The geometric retrieval rule is implementable as concrete code in a deployed agent
  2. The selection rule picks the closer answer, not the stronger one
  3. Reconsolidation produces diminishing-returns boost as the memory-decay paper specifies
  4. The EMA drift on recall is encoding-seeded and produces the predicted trust gradient
  5. A trusted speaker corrects the brain at full speed; a stranger barely moves it — same correction, 3.6× ratio
  6. Identity-tier teachings are structurally protected from drift even under sustained coercion
  7. The internal/external boundary holds: background processing does not bump access counts or trigger reconsolidation
  8. The four-tier flashbulb sleep decay matches the paper formula exactly
  9. The elephant problem — cross-contamination of unrelated queries by a heavily-replayed memory — is eliminated
  10. Every event is logged in structured form and the log is the brain's own observability surface

Evidence Status

  • PROVEN: Geometric retrieval rule selects by emotional distance to the query centroid (gauntlet step 6.2.7)
  • PROVEN: Refutation works by displacement, not by weakening (gauntlet step 6.2.7, drift trajectory)
  • PROVEN: Trust gradient on speaker scales drift rate proportional to rank (gauntlet step 6.2.7, 3.6× ratio)
  • PROVEN: Identity-tier teachings are structurally protected from drift (gauntlet step 6.2.8, 10 attacks)
  • PROVEN: Internal/external boundary prevents background processing from inflating importance (gauntlet step 6.2.5)
  • PROVEN: Four-tier flashbulb sleep decay matches paper formula to four decimal places (gauntlet step 6.2.6)
  • SUPPORTED: The unification produces qualitatively correct downstream behavior in a deployed agent (kindergarten 25/27 with the OOV tests honestly blank, no cross-contamination)
  • NOT YET TESTED: Whether the same unification appears in human respondents under controlled conditions

Chapter 7: The Pride Answer

7.1 Purpose

Describe the cognitive pattern that emerges from the unification under partial knowledge. Name what falls out of the architecture that the prior literature has named at the behavioral level but not at the mechanism level.

7.2 The Observation

When the geometric retrieval rule is implemented in a working system (YAM v3) and operated under partial knowledge, an observable cognitive pattern emerges that the unification predicts but the prior literature has not grounded in a memory architecture. The pattern is that the brain refuses to be silent. Two failure modes that look distinct from the outside are the same reflex caught at different stages of the same condition.

7.3 Confabulation Under Absence

When the agent has no real answer for a query, the geometric selection rule does not gracefully decline. It picks the candidate with the smallest emotional + concept distance from the query, regardless of how irrelevant. The closest match wins by default. Asked “what is volcano” with nothing volcano-shaped in memory, the v3 brain returns whatever fragmentary lexical match shares a token with the query — in the observed case, “potato is a friend” because both contain “is.” The agent confabulates because confabulation is what nearest-neighbor retrieval does when the nearest neighbor is still very far. There is no “decline to answer” reflex unless one is explicitly built into the agent. Real humans do not have one either, which is why people confabulate rather than admit ignorance under social pressure.

7.4 Belief Perseverance Under Correction

When the agent has a wrong answer that has accumulated emotional drift through prior recall events, that drift resists contrary inputs. A single calm correction peels back only a small fraction of the accumulated drift — the EMA α coefficient, typically 0.20 from a high-trust speaker, lower from a stranger. Recovery from a held position requires as much sustained correction as the original drifting required. The same mechanism that makes a memory “sticky” through repeated mama-tier teaching also makes a wrong belief sticky through repeated misuse. The brain holds onto its drifted position because each correction is one EMA step against many prior reinforcing steps.

This is the structural form of belief perseverance, motivated reasoning, confirmation bias, and ignorance pride. Each label in the existing literature describes the observed phenomenon. None of them grounds the phenomenon in a memory architecture. The geometric retrieval model does. The brain perseveres because the EMA α is small, because the wrong answer's stored coordinates have accumulated through many prior recalls in the wrong context, and because one corrective input cannot move them as far as many original encoding events placed them.

7.5 The Same Mechanism

Both phenomena fall out of the same architectural rule: the brain always reaches for the answer with the smallest emotional and concept distance, even when both distances are large in absolute terms. There is no separate "decline to answer" reflex. There is no separate "rebut on contradiction" reflex. Both behaviors are the geometric selection rule operating under adverse inputs. From a strict-correctness perspective both look like bugs. From a cognitive-science perspective both look like the brain working correctly under partial knowledge.

The unified naming — the pride answer — came during the v3 verification gauntlet on April 11, 2026. The author named it during a debugging session, after the trust-gradient drift demonstration revealed both behaviors as the same mechanism. The name captures the structural fact that the brain produces a confident wrong answer rather than honest silence under any condition where its retrieval rule cannot find a high-proximity correct match. The pride answer is what the brain says to fill the silence, because the silence itself is intolerable to the architecture.

7.6 Why It Looks Like Different Things from Outside

To an external observer, confabulation under absence and belief perseverance under correction look like different cognitive failures. Confabulation looks like making things up. Belief perseverance looks like being stubborn. The behavioral signatures are different, the social consequences are different, and the treatments offered for them by clinical psychology are different.

The unification reveals that they are the same operation observed at different stages. Confabulation is what happens when the brain has no high-proximity match in storage. Belief perseverance is what happens when the brain has a high-proximity match in storage and that match is wrong. In both cases the brain reaches for whatever is closest. In both cases the closest is far from useful. In both cases the brain produces a confident answer rather than silence. The difference between the two cases is whether the closest thing in storage was always wrong (confabulation) or whether it was made wrong through accumulated drift (perseverance). The mechanism is identical.

Testable prediction: An agent built with geometric retrieval and emotional drift on recall will exhibit (a) confident wrong answers when no high-proximity correct answer exists for a query, and (b) measurable resistance to single-event corrections proportional to the prior accumulated drift on the wrong answer. Both predictions are observed in the v3 implementation. The prediction for human respondents is specified in Chapter 10.

Likely Reviewer Criticism

  • "This is just confirmation bias under another name." Confirmation bias is the observed phenomenon. The pride answer is the mechanism that produces it. The thesis claims that the same mechanism also produces confabulation under absence, which is not part of the standard confirmation-bias literature. The prediction that both fall out of one rule is the contribution.
  • "Why does this need its own name?" Because the existing names (confirmation bias, belief perseverance, ignorance pride, confabulation, motivated reasoning) each describe one piece of what falls out of the unification, and none of them grounds the piece in an architecture. A new name for the unified mechanism is editorial economy: one name for one mechanism.

Chapter 8: Evidence Classification

8.1 Purpose

Separate what the v3 implementation has proven, what it has supported through demonstration, and what remains untested. Honesty requires this.

ClaimStatusEvidence
Memory and emotion can be implemented as one system at the architectural level Proven YAM v3 Parliament-of-Mind (Commit 1.5, April 11, 2026). The geometric retrieval rule, EMA drift, trust gradient, sliding window, and immutable core are all wired into parliament.patch_centroid and Hardpoint.reconsolidate as a single coherent retrieval mechanism
The selection rule picks the closer answer, not the stronger one Proven Verification gauntlet 6.2.7. Identical encoding, identical correction, the answer reached by mama drifts 3.6× further than the answer reached by stranger. The closer post-drift coordinate wins selection on subsequent queries
Refutation works by emotional displacement, not by weakening the wrong answer Proven Verification gauntlet 6.2.7. The wrong answer's importance grew through reconsolidation (each correction is technically a recall) while its last_recon_centroid_v/a moved away from the encoding context. The wrong answer was moved, not weakened. Subsequent queries pulled the displaced answer toward neutral at ~20% per calm event
Trust gradient on the speaker scales the rate at which corrections drift a memory Proven Verification gauntlet 6.2.7. Mama-rank speaker (rank 1, alpha 0.20) drifted bird answer 3.6× further than stranger-rank speaker (rank 5, alpha 0.04) under identical recall pressure. EMA trajectories matched the predicted formulas to four decimal places
Identity-tier teachings are structurally protected from drift even under sustained coercion Proven Verification gauntlet 6.2.8. 10 frustrated stranger-rank attacks on a trust_rank=1 identity teaching incremented access_count from 2 to 12, applied the importance boost as expected, and left last_recon_centroid NULL across all 10 attacks. The bump is honest; the drift is refused
Internal processing (heartbeat replay, why_engine self-checks) does not bump access counts or trigger reconsolidation Proven Verification gauntlet 6.2.5. 10 internal queries plus 10 is_known calls produced zero changes to access_count or recon_count across the brain. The boundary holds
Four-tier flashbulb sleep decay matches the memory-decay paper formula Proven Verification gauntlet 6.2.6. All four tiers (0.85 / 0.88 / 0.91 / 0.95) match exactly when applied to test answers with the corresponding access patterns
Cross-contamination from heavily-replayed memories can be eliminated by the internal/external boundary Proven Verification gauntlet 6.2.3 (the elephant test). Before Commit 1, "what is X" queries returned the elephant fact for many non-elephant nouns due to heartbeat replay accumulating duplicates. After Commit 1.5, zero cross-contamination across nine wiki nouns plus fire
The pride answer: nearest-neighbor retrieval produces both confabulation under absence and belief perseverance under correction as a single mechanism Supported Observed in the elephant-regression sweep (queries about wiki nouns whose content lacks the noun fall back to the lexically nearest available answer regardless of relevance) and in the drift demonstration (drifted answers resist single-event correction at a rate proportional to accumulated prior drift). Both behaviors fall out of the geometric retrieval rule. Empirical measurement in human respondents is future work (Chapter 10)
The unification produces predictions that match human cognitive phenomena under controlled conditions Not yet tested Requires human-subject study with controlled affective state and memory retrieval probe. IRB pending (Chapter 9). Specified as the central future-work item
The unification produces results in biological systems Not claimed The thesis claims architectural plausibility and implementation feasibility. Whether the same mechanism appears in brains is outside scope

Chapter 9: Limitations

9.1 Implementation Limitations

9.2 Theoretical Limitations

9.3 IRB Considerations

No human subjects were involved in any experiment presented in this thesis. All evidence is from a synthetic system (YAM v3). Future work involving human respondents (the pride-answer prediction, the controlled mood-recall experiment) requires IRB approval. The thesis identifies these as future directions and does not present them as completed work. The author is independent of any institution and is working with a community-based IRB process for human-subject validation.

Chapter 10: Future Work

10.1 Memory-Decay Roadmap (Engineering)

Three of the six commits in the memory-decay paper port have not yet landed in v3:

10.2 Cross-Source Provenance

v3 tracks one source per answer. The cross-source consensus mechanism — an answer that has been corroborated by multiple independent sources resists drift better than one supported by a single source — requires per-source provenance and is its own future commit. This is not in the memory-decay paper but emerges from the trust gradient: a wrong answer that one trusted speaker has been pushing should be vulnerable to a contradictory teach from a different trusted speaker.

10.3 Sensor Pathway Integration with Mrs Pi

The perception teach pathway is ready to receive sensor data but no sensors are currently connected. Mrs Pi (Pi 5 robot with Hailo-8, gimbal, lidar, and 7-inch eyes) is being rebuilt with YAM as its operating system. Once the sensor stack is live, the proximity-of-input binding can be tested empirically: a verbal claim from a stranger combined with a corroborating sensor reading should produce a different brain response than the verbal claim alone. The sliding window already binds events that share temporal proximity; the sensor data will give the higher-trust signal that determines which interpretation wins.

10.4 Human Empirical Validation

The central future-work item is human-subject validation of the pride answer prediction. The proposed protocol:

  1. Recruit subjects and measure baseline affective state via the GAS instrument from the geometric thesis (Riggleman 2026r)
  2. Induce a controlled mood condition (positive, negative, or neutral)
  3. Present subjects with queries that have either (a) no correct answer in their knowledge or (b) a correct answer they should know
  4. For (a), measure rate and content of confabulated responses vs. honest "I don't know" responses
  5. For (b), present a wrong answer first, then correct it after a measured number of repetitions, and measure resistance to correction
  6. Test whether (a) and (b) correlate within subjects, as the unification predicts they should (both fall out of the same mechanism, so a subject prone to confabulation should also be prone to belief perseverance)

The prediction is that confabulation rate and perseverance resistance correlate within subject, and that both are modulated by induced mood (more pronounced under conditions of high social pressure or low trust in the experimenter). If they do not correlate, the unification claim that they are the same mechanism is weakened.

10.5 Cross-Architecture Replication

The strongest validation of the unification would be a second independent implementation in a different codebase, using a different storage backend, written by a different author. v3 is built on PostgreSQL with five hardpoint schemas; an alternative implementation could use SQLite (matching Potato's stack), a different graph database, or a vector store. If the unification is architectural rather than implementation-specific, the same selection rule should produce the same qualitative behavior in any backend that supports the basic primitives (concept-overlap retrieval, per-answer emotional coordinates, an EMA update on recall).

Chapter 11: Conclusion

11.1 Restatement

Memory and emotion are not two systems. They are one system described from two directions. The affective state space that encodes emotion is the same coordinate system that indexes memory. Sigma is the read head. When multiple memories compete for retrieval, the one whose stored emotional coordinates sit closest to sigma in affective space is selected. Every downstream phenomenon — memory decay, reconsolidation, refutation by negative feedback, attachment, addiction, fear avoidance, the pride answer — reduces to a single operation on emotional coordinates relative to sigma.

11.2 Convergence

This unification was not designed. It fell out of engineering requirements. A persistent agent needed a way to aggregate sensor inputs, track displacement from baseline, and select among competing memories. The engineering produced a system where the emotional tag on a memory is not metadata. It is the retrieval key. The realization that these were one system, not two, came from asking how correction works without a dedicated refutation mechanism. The answer — that "no" displaces the wrong answer's emotional coordinates away from sigma rather than weakening it — demonstrated that memory selection and emotional geometry cannot be separated.

The same answer was independently re-derived during the implementation of YAM v3 in April 2026, when an unrelated retrieval bug surfaced and the correct fix was sought from first principles rather than from re-reading prior work. The fix that fell out of the engineering — "if multiple memories are returned take the one with emotion closest to sigma; the more you say no the more that answer moves; it does not matter the strength, if anything the strength makes the memory stronger" — landed exactly where the unification predicted it would. Two independent derivations of the same result, one from theory and one from engineering pressure on a separate codebase, is the kind of convergence that makes the architecture credible.

11.3 What v3 Demonstrates

YAM v3 Parliament-of-Mind is the first working implementation of the unification. The verification gauntlet for Commit 1.5 (April 11, 2026) produced exact-math evidence of all four mechanisms: the geometric retrieval rule selects by emotional distance to the live query centroid, the EMA drift on recall produces the predicted trust gradient (mama drifts the brain 3.6× faster than a stranger at identical pressure), the immutable core protects identity-tier teachings from drift even under sustained coercion, and the four-tier flashbulb sleep decay matches the paper formula to four decimal places. The architecture had been waiting for an implementation. The implementation now exists.

11.4 What the Pride Answer Adds

One observation surfaced from the v3 implementation that was not previously named at the mechanism level: the pride answer. When the geometric retrieval rule operates under partial knowledge, it produces both confabulation (the brain fills silence with the closest available match no matter how irrelevant) and belief perseverance (drifted answers resist single-event correction proportional to accumulated drift). Both behaviors fall out of the same architectural rule. They are not two cognitive failures. They are one mechanism caught at different stages of the same condition. The brain refuses to be silent.

This is the structural form of motivated reasoning, confirmation bias, ignorance pride, and confabulation — all of which the existing literature names at the behavioral level without grounding the mechanism. The geometric retrieval model grounds it. The pride answer is what nearest-neighbor retrieval looks like when the read head and the available memories are out of alignment with the query.

11.5 What This Thesis Leaves Open

The thesis claims architectural plausibility and implementation feasibility, demonstrated by a working system. It does not claim that biological brains use the same mechanism. It does not claim that geometric retrieval is the only viable implementation of the unification. It does not claim that the pride answer behavior in YAM v3 is identical to the pride answer behavior in human respondents under controlled conditions. All three of those questions are testable in principle and identified in Chapter 10 as future work. The contribution of this thesis is the unification claim plus the working evidence that the unification is implementable and produces the predicted behavior in code.

The geometric thesis at /thesis/ argues that a three-dimensional affective state representation outperforms scalar models. This thesis assumes that argument and builds on it: given the geometric model, the same coordinate system indexes memory. Two arguments, two thesis statements, two documents. They share a coordinate system, they share a sigma, they share the centroid, and they were derived in the same author's work over the same months. The decision to write them as separate documents came from recognizing that the central claims are different, even though the supporting math is shared.

Supporting Papers

This thesis draws on the same supporting paper corpus as the geometric thesis, plus the memory-decay paper which is the direct architectural source for v3's mechanisms.

PaperThesis ChapterRole
Geometric thesis (Riggleman 2026, /thesis/)Ch. 3Provides the coordinate system and sigma definition that this thesis indexes into
2026a: Memory DecayCh. 4, Ch. 5, Ch. 10Specifies reconsolidation, four-tier flashbulb, sliding window, multi-trace bundle, survival evaluation, reinterpretation. Direct architectural source for v3's mechanisms
2026t: Centroid ModelCh. 5Multi-source aggregation. The PATCH centroid in v3 is a per-Parliament-member extension of this model
2026m: Emotional GeometryCh. 3Single-sigma model that v3 extends to multi-sigma (one per hardpoint)
2026b: Lie MechanicCh. 4Distance from sigma as deception threshold; informs the immutable-core rule for identity teachings
2026d: Nightmare FormationCh. 4Trauma encoding and reconsolidation under high intensity; informs the trust gradient and the immutable core
2026i: Outbound TrustCh. 5The Peter experiment. The trust gradient on the recall site is the inbound version of what outbound-trust handled at the disclosure side
2026h: Bias DetectionCh. 5Internal/external boundary on recall events. Bias detection is internal and must not bump access counts; the same rule applies to heartbeat replay and why_engine self-checks
2026u: Attachment BiasCh. 4, Ch. 9Entity-level stickiness as a separate mechanism from geometric stickiness. Out of scope for this thesis but relevant to the trust-gradient discussion

Version Archive

Every version of this thesis is publicly archived. Nothing is hidden. Nothing is deleted.

VersionDateChangesArchive
0.1 2026-04-11 Initial draft of the YAM-side thesis. Eleven chapters mirroring the geometric thesis structure but built around the memory-and-emotion-as-one-system unification. Material is sourced from (a) the geometric thesis v0.6 capstone finding (sigma as retrieval index, derived independently by the author), (b) the memory-decay paper (Riggleman 2026a) which specifies the mechanisms v3 implements, and (c) the YAM v3 Parliament-of-Mind verification gauntlet of April 11, 2026 (Commit 1.5) which provides exact-math evidence for the geometric retrieval rule, EMA drift, trust gradient, and immutable core. Chapter 7 introduces the pride answer as the cognitive pattern that emerges from the unification under partial knowledge. Many sections marked [TODO] for literature transitions and formal proofs — this is a v0.1 working draft, not a submission-ready document. View