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

From v2.7 (2 Jun) to v2.8 (2 Jun): 23,259 words to 23,270 words, 29 words in new or rewritten paragraphs and 18 taken out, 13 paragraphs changed.

## Change note of v2.8

**Four diagrams added**

Adds four figures: the two-family architecture, the execution pipeline, conformal prediction and the trust ramp. The architecture images switch from PNG to PDF. The text is otherwise unchanged.

## Changed paragraphs

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

### 1.4 Two Distinct Problems, Two Network Families

![Figure 1: The dual-family architecture. Prudence networks (universal, shareable) gate dangerous actions; Personality networks (per-user, private) modulate behaviour. The two families share the situation-embedding front end but diverge in output, training data, and sharing [-policy.](diagrams/j11-1-dual-architecture.pdf){width=100%}-] {+policy.](images/j11-1-dual-architecture.png){width=100%}+}

### 4.7 Conformal Prediction: Principled Uncertainty Quantification

![Figure 3: Conformal prediction. Prediction-set size is the ambiguity signal — a single-element set means confidence, a larger set means the system honestly reports it cannot [-decide.](diagrams/j11-4-conformal-prediction.pdf){width=100%}-] {+decide.](images/j11-4-conformal-prediction.png){width=100%}+}

### 4.10 The Trust Ramp

![Figure 4: The trust ramp. The influence coefficient α rises through four phases (Shadow → Advisory → Active → Autonomous) as conformal prediction-set sizes shrink, and regresses by one phase on any undetected catastrophic [-failure.](diagrams/j11-3-trust-ramp.pdf){width=100%}-] {+failure.](images/j11-3-trust-ramp.png){width=100%}+}

### 4.12 Integration with the Execution Pipeline

![Figure 2: The execution pipeline. An action flows from intent through the situation template, frozen encoder, Prudence ensemble, conformal prediction, and trust ramp before the runtime — not the LLM — enforces the gate [-decision.](diagrams/j11-2-execution-pipeline.pdf){width=100%}-] {+decision.](images/j11-2-execution-pipeline.png){width=100%}+}

### 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.pdf){width=100%}-] {+heads.](images/j11-arch-a-gru-mlp.png){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.pdf){width=100%}-] {+heads.](images/j11-arch-b-tcn.png){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.pdf){width=100%}-] {+heads.](images/j11-arch-c-transformer.png){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.pdf){width=100%}-] {+history.](images/j11-arch-d-dual-encoder.png){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.pdf){width=100%}-] {+context.](images/j11-arch-e-ensemble-mlp.png){width=100%}+}

### 5.6 Architecture Comparison Summary

![Figure 5: The five competing architectures (A–E), side by side: GRU-MLP, TCN, Transformer-Micro, Dual-Encoder, and the no-temporal Ensemble-MLP [-ablation.](diagrams/j11-5-architectures-comparison.pdf){width=100%}-] {+ablation.](images/j11-5-architectures-comparison.png){width=100%}+}

### 8.2 Principle: Verify What You Can, Downweight What You Can't

| Slot | Verification Method | | ------------------ | -------------------------------------------------------------------------------------------------------------- | | `target_id` | From the action request — the runtime knows what file/endpoint is being accessed | | `age_hours` | `stat()` on the file, database query, API metadata | | `size` | `stat()` / `wc -l` / record count | | `recent_commits` | `git log --since="72 hours ago" -- <file> \| wc -l` | | `recent_authors` | `git log --since="72 hours ago" -- <file> \| sort -u \| wc -l` | | `last_human_ref` | Search session transcripts for filename mentions (deterministic text search) | | `automation_depth` | Stack trace depth from human-initiated action to current action | | {+`recent_corrections` | Runtime counter of user corrections in the last 24 hours | |+} `reversible` | Lookup table by action type (overwrite → true, send message → false) | | `blast_radius` | Lookup table by target type (file → persistent, email → external) | | `human_in_loop` | Runtime flag — is there a confirmation step configured? | | `confirmation` | Runtime flag — what level of confirmation is configured? | | `topic_drift` | Cosine distance between conversation centroid and action embedding — pure arithmetic on frozen encoder outputs |

### 10.1 The Growing Burden

![Figure 6: Context pressure alleviation. Safety rules, personality definitions, and operational cautions move from per-turn prompt tokens into always-active network weights, recovering roughly 2,200 tokens per [-prompt.](diagrams/j11-6-context-pressure.pdf){width=100%}-] {+prompt.](images/j11-6-context-pressure.png){width=100%}+}

### Appendix D: Comparison with Prior Approaches

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