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

From v2.3 (2 Jun) to v2.4 (2 Jun): 23,203 words to 23,214 words, 87 words in new or rewritten paragraphs and 76 taken out, 16 paragraphs changed.

## Change note of v2.4

**Wording only: terms explained for readers outside the series**

Wording changes. Names from the author's other papers (the security layer, the persona system) are explained in plain words instead of being assumed, and one passage no longer presents earlier attempts as history.

## Changed paragraphs

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

### Top

**Implementation status (verified against the runtime [-source 2026-06-02):**-] {+source).**+} The Prudence gate runs live in [-**ONNX mode** (`mode=onnx`),-] {+ONNX mode,+} Phase 1 (Shadow), with the AEGIS deterministic veto active — a `hard_block` aborts the tool call unconditionally, independent of the trust ramp. The veto is wired in the runtime hook, which calls AEGIS both before the learned gate and again after an `allow`, so neither a learned approval nor a missing weight can route around a hard rule. Three of the five Prudence architectures (A: GRU-MLP, B: TCN, C: Transformer-Micro) load full-weight ONNX exports; architectures D and E have no full-weight export yet and fall back to a neutral output, so the deployed ensemble is three live plus two neutral (§5.8). The situation encoder is `all-MiniLM-L6-v2` (384-d) with a trained 384→512 projection and a [-real-] WordPiece tokenizer over the model's own 30,522-token vocabulary. The Personality thermostat is seeded with 15 dimensions. [-This version folds-] {+The deployed gate runs on CPU;+} the [-deployment reality back into the-] {+GPU latency figures quoted throughout are+} design [-(§5.8, §8.2) and adds the recipe-context tie that lets the gate read structural workflow state (§16.8). See [modifications log](modifications-2026-03-23.md)-] {+targets+} for the [-earlier sprint.-] {+inference budget, not measured deployment numbers.+}

### 1.4 Two Distinct Problems, Two Network Families

[-The first iterations of this architecture attempted-] {+It is tempting+} to serve both safety and personality from a single network family. Operational experience over approximately four months of deployment [-revealed that-] {+shows+} this conflation [-was-] {+is+} a design error. Safety and personality are fundamentally different problems:

### 1.6 Safety Versus Attacks: The J9–J11 Distinction

[-### 1.6 Safety Versus Attacks: The J9–J11 Distinction-]

### 1.6 Safety Versus Attacks: Two Threat Models

{+### 1.6 Safety Versus Attacks: Two Threat Models+}

### 1.6 Safety Versus Attacks: Two Threat Models

A common confusion: if we already have a {+hard+} security framework [-(AEGIS-] — a multi-layer constraint system {+(which we call AEGIS)+} that enforces explicit rules like "never send money without confirmation" and "never delete databases without [-approval"),-] {+approval" —+} why do we need AMYGDALA?

### 2.5 The J-Series Cognitive Architecture

[-### 2.5 The J-Series Cognitive Architecture-]

### 2.5 The J-Series Cognitive Architecture

[-AMYGDALA completes a layered cognitive architecture. Each system listed below is an independent paper; we provide inline summaries sufficient to understand AMYGDALA's interactions without reading them.-]

### 2.5 Position in a Layered Agent Architecture

{+### 2.5 Position in a Layered Agent Architecture+}

### 2.5 Position in a Layered Agent Architecture

{+AMYGDALA is designed to slot into a layered cognitive architecture for persistent agents — a stack of cooperating subsystems for storage, retrieval, identity, self-improvement, and security. Each subsystem listed below is documented separately; the inline summaries here are sufficient to understand AMYGDALA's interactions without reading those documents. The names are the labels we use for our own deployed components.+}

### 4.5 The Personality Family: Five Behavioural Networks

**Pre-training via Knowledge Distillation.** To solve the "cold start" vulnerability where an untrained network might output random vectors that degrade interaction quality, the Personality networks undergo a Knowledge Distillation phase before PPO exploration. The network is trained to predict the [-behavioral-] {+behavioural+} modulations that a standard, heavily-prompted LLM _would_ have produced given the same situation. This provides a safe, baseline personality [-initialization.-] {+initialisation.+}

### 4.10 The Trust Ramp

**Critical design choice:** The default action_confidence for a truly untrained (randomly [-initialized)-] {+initialised)+} network would be 1.0 (proceed) to match today's baseline. This ensures the system defaults to current behaviour, not to blocking everything. The cold start is not a degradation; it is today's baseline.

### 14.3 Overcoming the Alignment Tax

1b. **Guided Decoding and Logit Bias.** For open-weight models or APIs supporting logit bias, integrate the Personality network's output directly into the decoding process. Rather than appending text, the continuous [-behavioral-] {+behavioural+} embedding applies a dynamic logit bias to tokens associated with curiosity and exploration, steering the generation distribution directly.

### 14.3 Overcoming the Alignment Tax

3. **Gradual reward reshaping.** Over many training cycles, the Personality network's curiosity reward reshapes the effective reward landscape the LLM operates in. The LLM learns (through PPO updates on the Personality network, which then modulates the LLM's [-behavior)-] {+behaviour)+} that exploration is rewarded. This is slow but fundamentally different from prompt-level curiosity — it operates on the [-behavioral-] {+behavioural+} layer, not the text layer.

### 17. Conclusion

Beyond safety, AMYGDALA addresses two practical realities of persistent agent deployment. **Context pressure** — the 2,000–3,000 tokens per prompt consumed by safety rules and [-behavioral-] {+behavioural+} instructions — is alleviated by moving these patterns into network weights. **Prompt-level curiosity** — proven to fail over four months of trying — is replaced by curiosity as a trained [-behavior-] {+behaviour+} within the Personality network, with its own reward signal and distraction penalty.

### Appendix D: Comparison with Prior Approaches

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

### Appendix D: Comparison with Prior Approaches

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