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

From v2.2 (2 Jun) to v2.3 (2 Jun): 22,838 words to 23,203 words, 399 words in new or rewritten paragraphs and 34 taken out, 11 paragraphs changed.

## Change note of v2.3

**New proposal: tell the gate where an action sits in a workflow**

Adds a proposal to extend the situation template with two slots filled by the runtime: which recipe or workflow is running, and which step. The status block now says it was checked against the source code. A broken section reference is fixed.

## Changed paragraphs

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

### AMYGDALA: Adaptive Modulation of Your General Disposition via Affective Learned Association — Learned Intuition for Persistent AI Agents

[-# AMYGDALA: Adaptive Modulation of Your General Disposition via Affective Learned Association — Learned Intuition for Persistent AI Agents-]

### AMYGDALA: Adaptive Modulation of Your General Disposition via Affective Learned Association — Learned Intuition for Persistent AI Agents

[-**Oscar Serra¹** ¹Independent Research _2 June 2026_-]

### Top

**Implementation status (verified [-2026-06-01):**-] {+against the runtime source 2026-06-02):**+} The Prudence gate runs live in **ONNX mode** (`mode=onnx`), 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.-] {+tokenizer over the model's own 30,522-token vocabulary.+} The Personality thermostat is seeded with 15 dimensions. This version folds the deployment reality back into the design (§5.8, [-§8.2, §4.11).-] {+§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) for the earlier sprint.

### 16.7 LLM Provider Collaboration

If providers adopt the proposed ambiguity interface [-(§4.8),-] {+(§4.13),+} AMYGDALA could [-access-] {+read+} the model's internal uncertainty directly [-— a significant improvement over-] {+instead of+} inferring ambiguity from external signals alone. Early mechanistic interpretability work suggests these signals are extractable from model activations.

### 16.8 Recipe Context: Structural and Learned Gates Reinforcing

{+### 16.8 Recipe Context: Structural and Learned Gates Reinforcing+}

### 16.8 Recipe Context: Structural and Learned Gates Reinforcing

{+The situation template (§4.3) today describes an action in isolation: what is being touched, how much effort it represents, whether it drifts from the conversation. It does not yet know _where in a workflow_ the action sits. A growing class of agent deployments runs structured, multi-step recipes — diagnose, then fix, then verify — each step with explicit done-when conditions. The same file write means very different things depending on the step: a write during a `fix` step that follows a successful `diagnose` step is expected and safe; the identical write with no diagnosis behind it is exactly the kind of unmotivated change AMYGDALA should hesitate over.+}

### 16.8 Recipe Context: Structural and Learned Gates Reinforcing

{+We propose extending the template with two deterministic, runtime-filled slots:+}

### 16.8 Recipe Context: Structural and Learned Gates Reinforcing

{+``` recipe: recipe_id: {string|none} # P — which recipe is executing, if any step_name: {string|none} # P — current step (e.g. "diagnose", "fix", "verify") step_status: {enum} # P — prior-step outcome: {none|in_progress|passed|failed} ```+}

### 16.8 Recipe Context: Structural and Learned Gates Reinforcing

{+Both slots are programmatic — the orchestration layer already tracks recipe and step state, so the runtime can fill them without LLM involvement, keeping them on the high-trust side of the §8 pipeline. The payoff is that the structural gate (the recipe's own done-when conditions) and the learned gate stop being two unrelated safety mechanisms. The learned network can read the structural state as just more situation context and adjust its caution accordingly: low caution for the in-recipe write that the structure already vouches for, high caution for the same write arriving out of any recognised workflow. The two gates reinforce — the structure tells the network when an action is procedurally justified, and the network catches the cases the structure never anticipated.+}

### 16.8 Recipe Context: Structural and Learned Gates Reinforcing

{+This is a design hypothesis, not a deployed result: the current situation template carries action, effort, drift, and scope slots but no recipe slots, so the tie described here is the next concrete extension to the pipeline rather than a measured behaviour. It is listed here, with the other forward-looking items, for that reason.+}

### 17. Conclusion

AMYGDALA provides a different approach: two families of learned neural networks that mirror the two functions of the biological amygdala. The **Prudence** family (five architectures, shared, universal) provides the circuit breaker — learned pattern recognition that catches dangerous actions before they execute, calibrated through conformal prediction to provide statistical guarantees rather than arbitrary thresholds. The **Personality** family (five architectures, private, per-user) provides the thermostat — learned [-behavioral-] {+behavioural+} adaptation that pushes the agent toward configured personality goals rather than merely mirroring the user's current state.
