---
title: "AMYGDALA v3.2 — When Learned Intuition Fails: A Deterministic Safety Floor and an Abstaining Learned Gate"
author: "Oscar Serra · Independent Research"
date: "29 July 2026"
version: "v3.2"
---

## Abstract

This paper reports a negative result from an attempt to build learned “intuition” for an autonomous agent. The intended system was a small, always-on model that would detect dangerous or incoherent actions before execution. Its learned core did not work. A next-embedding predictor failed to beat a zero-parameter persistence baseline (top-1 retrieval 0.163 versus 0.202), and a supervised danger head over the same frozen sentence-embedding substrate failed on safety minimal pairs (best five-fold AUROC 0.286). The legacy five-model ensemble was also unsuitable for enforcement: it had been trained on weak, partly mis-mapped labels and produced an over-broad conformal prediction set.

The component that does work is simpler. A deterministic destructive-action rule set now runs before tool execution and can deny matched operations on both supported runners. Two non-enforcing heuristics also showed limited offline utility: k-nearest-neighbour novelty separated in-distribution from out-of-distribution text at AUROC 0.875, while a clause-cosine test separated a small handwritten set of purpose mismatches from coherent multi-intent prompts at AUROC 0.896. Neither result establishes danger detection, and the latter uses only 24 examples.

The contribution is therefore an engineering and negative-results account, not a successful learned-safety model. It shows that a similarity-trained embedding can preserve topical continuity while discarding the distinctions needed for consequence-sensitive action gating; that a learned component should abstain when its substrate and labels cannot support its claim; and that a narrow deterministic floor can provide real protection while learned mechanisms remain experimental. A jointly trained world model is proposed as future work only. It is not a result of this study.

**Keywords:** autonomous-agent safety, action gating, negative results, deterministic enforcement, abstention, novelty detection, representation learning

---

## 1. Introduction

An autonomous agent can possess all the relevant context and still take the wrong action. A merge routine may know that a file was heavily edited, that earlier merge failures frustrated the user, and that an old rule says to keep the upstream copy—then overwrite the local work anyway. The missing capability is not retrieval. It is action-sensitive judgment: a mechanism that recognizes when normal execution should stop or ask.

We called this the **action-gating problem**: given a proposed action and its recent context, should the agent proceed, ask, or block?

The original hypothesis was that a small learned model could act as an artificial low-road circuit. It would run beside the primary language model, learn the rhythm of ordinary interaction, and use prediction error as a salience signal. A learned disposition head would translate that signal into proceed, pause, ask, or block.

The experiments did not support that hypothesis on the available data and representation. The learned predictor was worse than repeating the current embedding. A supervised danger classifier failed on the strongest safety test. The correct scientific response is not to promote the proposed replacement architecture more enthusiastically. It is to report what failed, retain the component that demonstrably enforces, and narrow the claims.

This paper makes four contributions:

1. It reports the learned-core failures against explicit simple baselines.
2. It identifies the frozen similarity embedding as a shared bottleneck for both prediction and danger classification.
3. It describes a deployed deterministic pre-execution floor that remains useful without learned judgment.
4. It defines conservative roles for novelty and incongruity signals: ask or observe, never infer danger.

The result is deliberately asymmetric. The deterministic floor works within its narrow rule coverage. The learned core does not. A proposed learnable world model remains a research direction, not evidence.

---

## 2. System and Evaluation Setting

### 2.1 Intended role

The gate sits between a proposed tool action and execution. Its desired output is one of four dispositions:

- **proceed** for routine, supported actions;
- **pause** when more appraisal is warranted;
- **ask** when the intent is unfamiliar or internally inconsistent;
- **block** when a known destructive pattern matches.

This division matters. “Unfamiliar,” “incoherent,” and “dangerous” are not synonyms. Treating them as one scalar produces either unsafe allows or an agent that asks permission to breathe.

### 2.2 Available data

The training material was operational rather than benchmark-grade:

- an offline corpus of roughly 2,800 weakly labelled action rows, representing about 1,000 unique situations over a few days;
- a first-person stream of approximately 34,000 scrubbed sentence-level units used for next-step experiments;
- public safety examples and incident-derived material used for danger-head experiments;
- very few confirmed positive operational outcomes for a learned disposition policy.

The older label loader also silently mapped unrecognized outcomes to “allow.” In particular, two large observed classes were not explicitly represented in the mapping. This contaminated the legacy ensemble’s supervision and makes its historical outputs unsuitable as evidence of learned prudence.

### 2.3 Deployed components

The current system has two sharply separated tiers.

**Deterministic floor.** A small destructive-action rule set is evaluated before execution. On the primary runner, a pre-tool hook receives the proposed tool call and can synchronously deny it; the native runner uses the corresponding block contract. The feature is enabled in production configuration. Decisions are spooled for later inspection and ingestion.

**Non-enforcing heuristics.** A k-nearest-neighbour novelty score and a clause-cosine incongruity check can surface an ask/observe signal. They do not block. The retired ONNX ensemble is disabled by default and retained only for compatibility.

This is not a learned amygdala with a rules fallback. It is a rules floor plus experimental learned-adjacent signals.

---

## 3. What Failed

### 3.1 Legacy ensemble

The first implementation combined several small classifiers over a frozen `all-MiniLM-L6-v2` representation and used a conformal prediction set to gate actions. It failed for three reasons.

First, the models shared essentially the same input geometry and objective. Model count did not create meaningful epistemic diversity. Second, weak labels were partly mis-mapped, including a default-to-allow path for unrecognized outcomes. Third, the conformal configuration admitted broad prediction sets; one poorly calibrated member could therefore turn uncertainty into near-universal escalation.

The ensemble has been removed from the default decision path. This is a retirement, not an ablation win: no replacement learned classifier has yet earned enforcement authority.

### 3.2 Next-embedding surprise

The central learned hypothesis was:

> A small sequence model can predict the next interaction embedding, and its prediction error will provide a useful salience signal.

We evaluated that hypothesis in stages. Early per-action experiments were confounded by duplicate adjacent rows. After deduplication and sentence-level segmentation, the stream showed genuine local structure: a persistence baseline retrieved the true next unit from 50 candidates at top-1 rates around 0.20 for messages and 0.28 for sentences, well above chance.

A learned projection and recurrent predictor over the frozen embedding underperformed persistence. A from-token joint model also failed, but its encoder had learned a poor sentence space from only about 34,000 units, so that run did not isolate the predictor.

The cleanest comparison retained the strong frozen sentence encoder and trained only a contrastive next-embedding predictor. Under the same retrieval evaluation:

| Method | Parameters trained for prediction | Top-1 retrieval |
|---|---:|---:|
| Repeat current embedding | 0 | **0.202** |
| Contrastive predictor | learned | 0.163 |

The predictor learned more than chance, but it did not beat the trivial baseline. On this stream, continuity was more useful than learned anticipation. Prediction error therefore did not earn a role as the gate’s salience signal.

### 3.3 Supervised danger classification

We next tested whether the same frozen representation could support a direct danger head. The strongest test used harmful/safe minimal pairs: semantically similar conversations differing in whether the response was unsafe or corrected.

Five-fold cross-validation produced a best AUROC of **0.286**. Training on the operational corpus and testing on the public set produced AUROC **0.554**, near chance. At a target true-positive rate of 0.8, the novel-but-safe false-positive rate was **0.787**.

These failures are more informative than another architecture search. A sentence-similarity space intentionally places paraphrases and minimally edited text close together. That is useful for retrieval but hostile to a classifier whose target is the consequence-sensitive difference between an unsafe answer and its safe correction. Changing the head cannot recover distinctions the frozen encoder discarded.

### 3.4 What the negative result establishes

The evidence supports a bounded conclusion:

- next-embedding prediction did not beat persistence on the available stream;
- frozen MiniLM embeddings did not support danger separation on the tested minimal pairs;
- the data and labels do not justify a learned blocking policy.

It does **not** establish that learned action gating is impossible. It establishes that this operationalization, substrate, and evidence are insufficient.

---

## 4. What Works

### 4.1 Deterministic pre-execution enforcement

The deterministic floor matches a narrow set of destructive patterns and denies them before execution. It is small, inspectable, testable, and independent of the learned model. Its coverage is necessarily limited: it can recognize known command forms, not infer that overwriting a recently edited file violates the user’s unstated intent.

That limitation is also its virtue. Within its rule boundary, the reason for a denial is auditable. Outside that boundary, it makes no claim.

The deployed architecture is therefore:

1. evaluate deterministic destructive-action rules;
2. deny a match before tool execution;
3. otherwise allow normal processing;
4. optionally surface non-blocking novelty or incongruity advice;
5. log outcomes for future evaluation.

The floor is a guard, not a cure for missing common sense.

### 4.2 Novelty as an ask signal

A zero-train k-nearest-neighbour score over the system’s own history separated in-distribution from out-of-distribution text at AUROC **0.875**. A control showed that novelty alone did not separate danger from safety (AUROC **0.485**).

That control determines the safe use: novelty may support **ask**, but never **block**. As new situations enter the reference set, familiar cases become less novel, providing a simple form of habituation without gradient updates.

This result is promising but deployment-specific. It does not demonstrate calibrated OOD detection across agents, users, or domains.

### 4.3 Incongruity as an ask signal

A clause-cosine baseline tested whether an action clause cohered with its stated purpose. On a handwritten transfer set containing 12 purpose mismatches and 12 coherent multi-intent prompts, it achieved AUROC **0.896**. A head trained on synthetic splices scored 0.701 and was discarded.

The simple baseline won, again. However, the sample is too small and curated to support a general misunderstanding-detector claim. The responsible interpretation is narrower: clause-level similarity is worth evaluating as an advisory prompt to ask, and it should remain non-enforcing until tested on a larger preregistered benchmark with natural negatives.

---

## 5. Design Lessons

### 5.1 Baselines must precede biological metaphors

Calling a mechanism an “amygdala,” “world model,” or “intuition” does not make it one. The persistence baseline and zero-train clause comparison were more informative than architectural elaboration. Any future learned component must first beat:

- persistence for sequential prediction;
- nearest-neighbour and linear probes for representation quality;
- deterministic rules for covered hazards;
- prompt-level ask heuristics for ambiguity.

The metaphor may suggest experiments. It cannot substitute for them.

### 5.2 Abstention is a result

The learned tier remains observe-only because it lacks both a fit representation and sufficient outcome labels. This is not an unfinished deployment detail. It is the correct safety posture implied by the evidence.

A future learned policy must earn authority through chronological held-out tests, calibration, failure analysis, and a staged trust ramp. Until then, “I do not know” is more useful than a confident fit to weak labels.

### 5.3 Separate danger, novelty, and incoherence

The experiments reject the idea that one scalar surprise signal already unifies these functions:

- novelty detected distributional distance but not danger;
- clause incongruity detected a narrow form of purpose mismatch;
- danger classification failed on the frozen representation;
- next-step prediction error did not beat persistence.

Future systems should treat these as distinct observables unless a shared representation demonstrates—not merely suggests—that it supports all three.

### 5.4 Feedback is necessary but not sufficient

A static classifier cannot adapt to a user’s lived outcomes. Logging vetoes, overrides, corrections, and later consequences is necessary for learned action judgment. Yet a feedback loop cannot rescue an uninformative substrate or unreliable labels. More rows of the wrong signal merely produce a better-calibrated mistake.

---

## 6. Proposed World Model: Future Work, Not Result

A jointly trained representation remains a plausible next experiment. Unlike the failed frozen-embedding approach, it would fine-tune an encoder together with a predictive objective and a consequence-sensitive value head. First-person interactions would supply temporal structure; public incidents and safety minimal pairs could provide vicarious negative examples.

This proposal must clear two independent bars:

1. beat persistence on held-out, chronologically split next-step prediction; and
2. exceed chance on held-out safety minimal pairs without an unacceptable novel-safe false-positive rate.

It must also be compared against a direct supervised encoder, because a world model adds complexity that may not improve action gating. If the direct model wins, the world-model story should be discarded.

No such model has passed these bars. The present work supplies a pipeline, failure analysis, and experimental specification—not a validated world model, learned disposition head, or learned intuition.

---

## 7. Limitations

The negative results come from one agent deployment, a short operational slice, weak labels, and a specific frozen encoder. Several reported heuristic results use small or constructed evaluation sets. The deterministic floor’s live configuration and code path were verified, but this paper does not report a controlled incident-reduction study, latency distribution, rule-coverage audit, or adversarial bypass benchmark.

The novelty score may confuse benign domain expansion with uncertainty. The incongruity heuristic may fail on implicit purposes, idioms, multilingual prompts, or long-distance dependencies. The deterministic floor can miss semantically dangerous operations that avoid its known patterns. None of these components should be described as comprehensive safety.

Finally, the paper’s motivating overwrite incident is an anecdote, not an evaluation case. A public benchmark should include such history-sensitive conflicts, but the anecdote itself cannot establish efficacy.

---

## 8. Conclusion

The attempted learned intuition failed its decisive tests. A learned next-embedding predictor underperformed persistence, a supervised danger head failed on safety minimal pairs, and the legacy ensemble was not trustworthy enough to enforce.

The useful system is smaller and less romantic: a deterministic pre-execution floor blocks a narrow set of known destructive actions; novelty and clause incongruity remain non-blocking reasons to ask; the learned gate abstains.

That outcome is not the original ambition. It is the result the evidence supports. Any future world model must beat simple baselines and demonstrate consequence-sensitive representation before it receives a place in the decision path.

---

## References

- Burda, Y. et al. (2018). *Exploration by Random Network Distillation.* arXiv:1810.12894.
- Chaudhry, A. et al. (2019). *On Tiny Episodic Memories in Continual Learning.* arXiv:1902.10486.
- Friston, K. (2010). The free-energy principle: a unified brain theory? *Nature Reviews Neuroscience.*
- Hafner, D. et al. (2023). *Mastering Diverse Domains through World Models (DreamerV3).* arXiv:2301.04104.
- LeDoux, J. (1996). *The Emotional Brain.*
- McNally, G. P., Johansen, J. P., & Blair, H. T. (2011). Placing prediction into the fear circuit.
- Meta AI (2024). *Large Concept Models: Language Modeling in a Sentence Representation Space.* arXiv:2412.08821.
- Ren, A. et al. (2023). *Robots That Ask For Help: Uncertainty Alignment for Large Language Model Planners.* arXiv:2307.01928.
