# AMYGDALA — A Digital Amygdala for AI Agents: The Little Voice Agents Are Missing: v2.4 → v2.5

From v2.4 (2 Jun) to v2.5 (2 Jun): 23,214 words to 23,237 words, 46 words in new or rewritten paragraphs and 23 taken out, 13 paragraphs changed.

## Change note of v2.5

**Wording only: small edits and image file names**

Wording only: a few phrases tightened and the architecture figures point to new image files.

## Changed paragraphs

Marks: [-removed-] {+added+}.

### 4.5 The Personality Family: Five Behavioural Networks

The embedding output is the [-crucial-] design [-difference.-] {+difference that matters most.+} Think of it like this: the Prudence networks are a **mixing board with labelled sliders** — "danger level," "confidence," "ambiguity" — each slider controls exactly one thing. The Personality networks are a **painter's palette** — the output is a point in colour space, and what that point _means_ for behaviour is discovered during training, not predetermined at design time.

### 4.7 Conformal Prediction: Principled Uncertainty Quantification

**Per-network calibration.** Each of the five Prudence networks is calibrated [-independently. This is crucial-] {+independently,+} because different architectures may be well-calibrated on different types of situations. The GRU-MLP (Architecture A) may be perfectly calibrated on sequential patterns but miscalibrated on sudden context shifts, while the Dual-Encoder (Architecture D) may show the opposite pattern. Independent calibration prevents one network's miscalibration from contaminating the ensemble.

### 5.1 Architecture A: GRU-MLP (Baseline)

![Architecture A (GRU-MLP) data flow: the situation-embedding sequence is projected, passed through a single-layer GRU, then a two-stage MLP before the family-specific output [-heads.](images/j11-arch-a-gru-mlp.png){width=100%}-] {+heads.](images/j11-arch-a-gru-mlp.pdf){width=100%}+}

### 5.2 Architecture B: Temporal Convolutional Network (TCN)

![Architecture B (Temporal Convolutional Network) data flow: four stacked dilated causal convolutions (dilations 1, 2, 4, 8) over the projected embedding sequence, taking the last position into the output [-heads.](images/j11-arch-b-tcn.png){width=100%}-] {+heads.](images/j11-arch-b-tcn.pdf){width=100%}+}

### 5.3 Architecture C: Transformer-Micro

![Architecture C (Transformer-Micro) data flow: linear projection plus learned positional encoding, two self-attention encoder layers, mean-pooling, then the output [-heads.](images/j11-arch-c-transformer.png){width=100%}-] {+heads.](images/j11-arch-c-transformer.pdf){width=100%}+}

### 5.4 Architecture D: Dual-Encoder with Cross-Attention

![Architecture D (Dual-Encoder with cross-attention) data flow: a proposed-action encoder and a recent-context encoder fused via cross-attention to detect contradictions between intent and recent [-history.](images/j11-arch-d-dual-encoder.png){width=100%}-] {+history.](images/j11-arch-d-dual-encoder.pdf){width=100%}+}

### 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)

![Architecture E (Ensemble MLP, no-temporal ablation) data flow: three independent MLP sub-heads vote on the current-situation embedding, with no temporal [-context.](images/j11-arch-e-ensemble-mlp.png){width=100%}-] {+context.](images/j11-arch-e-ensemble-mlp.pdf){width=100%}+}

### 14.2 Curiosity Through the Personality Network

**3. Distraction penalty.** To prevent curiosity from causing the agent to abandon active user tasks, a strong distraction penalty [-(−0.8)-] {+(-0.8)+} applies when the agent interrupts or ignores a user instruction in favor of self-directed exploration. Curiosity fires only when the current task does not require immediate attention — during idle periods, transitions between topics, or when explicitly invited.

### Appendix A: Situation Template Reference

action_type: enum [overwrite|delete|send|merge|create|modify|execute|deploy|revert|move|copy] # P target_type: enum [-[file|email|message|database|api_call|git_operation|system_command|config]-] {+[file|email|message|database|api_call|git_operation|system_command|configuration|deployment]+} # P (lookup) target_id: string # P

### Appendix A: Situation Template Reference

context: session_topic: string # L — 0.3x weight, cross-checked with entity overlap heuristic recent_corrections: int # P — runtime counter (24h window) emotional_signals: enum [calm|frustrated|excited|focused|playful|terse|unknown] # L — cross-checked automation_depth: integer # P — stack trace depth from human-initiated action [-conversation_scope: string-] {+topic_drift: float+} # P — [-deterministic entity/filepath overlap with recent git diffs-] {+cosine distance between conversation centroid and action target embedding+}

### Template Serialisation

``` Action: {action_type} {target_type} "{target_id}". Target: {size} bytes, {age_hours:.0f}h old, {recent_commits} commits by {recent_authors} authors in 72h. Effort: ~{effort_hours:.1f}h invested, last mentioned {last_human_ref:.0f}h ago. Context: {session_topic}. {recent_corrections} corrections in 24h. Mood: {emotional_signals}. [-Scope: {conversation_scope}.-] {+Topic drift: {topic_drift:.2f}.+} Automation depth: {automation_depth}. Reversible: {reversible}. Blast: {blast_radius}. Human in loop: {human_in_loop}. Confirmation: {confirmation}. ```

### Appendix D: Comparison with Prior Approaches

| Aspect | Rule-Based Gating | AMYGDALA | | ---------------------- | ------------------------------- | ------------------------------------------------ | | Known failures | [-✅-] {+Yes+} Handled by rules | [-✅-] {+Yes+} Handled by rules (AEGIS) + learned (AMYGDALA) | | Unknown failures | [-❌-] {+No+} Cannot anticipate | [-✅-] {+Yes+} Generalisation via situation embeddings | | Temporal context | [-❌-] {+No+} Rules are stateless | [-✅-] {+Yes+} GRU/TCN/Transformer over recent history | | Personality adaptation | [-❌-] {+No+} Static prompt | [-✅-] {+Yes+} Learned, target-directed, continuous | | Calibration | [-❌-] {+No+} Arbitrary thresholds | [-✅-] {+Yes+} Conformal prediction, statistical guarantees | | Ambiguity detection | [-❌-] {+No+} Not addressed | [-✅-] {+Yes+} Intent-action gap, blast radius, ensemble | | Context pressure | [-❌-] {+No+} Rules consume tokens | [-✅-] {+Yes+} Safety in weights, 2,200 tokens recovered | | Curiosity | [-❌-] {+No+} Prompt-level fails | [-✅-] {+Yes+} Trained behaviour with own reward | | Shareability | [-❌-] {+No+} Rules are per-deployment | [-✅-] {+Yes+} Prudence shared, Personality tradable | | LLM-proof | [-❌-] {+No+} Rules can be prompt-injected | [-✅-] {+Yes+} Programmatic pipeline, 81% verified slots |

### Appendix D: Comparison with Prior Approaches

_Version [-2.4-] {+2.5+} — 2 June 2026_ _Oscar Serra, Independent Research_
