ReadPrintedHistoryCompareGraphs

v1.0 → v2.0

What changed from v1.0 to v2.0

From v1.0 (22 Mar) to v2.0 (22 Mar): 13,551 words to 21,331 words, 11,350 words in new or rewritten paragraphs and 3,570 taken out, 640 paragraphs changed.

Two network families: one for safety, one for personality

The design splits into two families of five networks: Prudence, shared between users, decides whether an action is safe; Personality, private to each user, shapes behaviour. The text grows to about 21,300 words.

  • New account of two deployed assistants with different users, offered as evidence that personality has to be learned per user.
  • Separates accidents (this paper) from attacks (the security paper in the same series).
  • Adds conformal prediction so the gate can say it cannot decide, and an ambiguity detector for actions that go beyond what the user asked.
  • Adds curiosity as trained behaviour, arguing that prompting for curiosity does not work on commercial models.
  • New sections on taking rules out of the prompt to save context, and on trained agent memories as assets that could be traded.
  • The five architectures are renamed A to E.
v1.0 · 22 March 2026v2.0 · 22 March 2026

··· 1 unchanged paragraph folded ···

v1.0 · AMYGDALA: Adaptive Modulation of Your General Disposition via Affective Learned Association — Learned Intuition for Persistent AI Agents**Oscar Serra¹** ¹Independent Research *Version 1.0 — 22 March 2026*
v2.0 · AMYGDALA: Adaptive Modulation of Your General Disposition via Affective Learned Association — Learned Intuition for Persistent AI Agents**Oscar Serra¹** ¹Independent Research *22 March 2026*

··· 2 unchanged paragraphs folded ···

not in v1.0
v2.0 · AbstractDeep within the human temporal lobe sits a pair of almond-shaped structures no larger than a walnut — the amygdalae. Before you consciously register that a shadow is a snake, your amygdala has already triggered a flinch. It intercepts sensory information on LeDoux's "low road," firing protective responses hundreds of milliseconds before the slower cortical "high road" finishes its deliberate analysis (LeDoux, 1996). This pre-cognitive emotional assessment is why experienced surgeons develop "gut feelings" about complications — their amygdalae have been trained by thousands of operations to recognise danger patterns subconsciously, faster than any checklist could be consulted.
v1.0 · AbstractAutonomous AI agents built on large language models are increasingly trusted with irreversible actions — merging code, sending messages, deleting files, modifying databases. When these agents fail, they fail catastrophically: not through ignorance (the information was available) but through the absence of *common sense* — the ability to recognise that something feels wrong in a situation never explicitly anticipated. We call this the **action gating problem**: given the full context of a proposed action and its recent history, should the agent proceed or pause?
v2.0 · AbstractAutonomous AI agents have no equivalent structure. They process every proposed action — merging code, sending messages, deleting files, modifying databases — with the same flat neutrality, regardless of whether the action is routine or catastrophic. When these agents fail, they fail not through ignorance (the information was available) but through the absence of *common sense*: the ability to recognise that something feels wrong in a situation never explicitly anticipated. We call this the **action gating problem**: given the full context of a proposed action and its recent history, should the agent proceed or pause?
v1.0 · AbstractWe propose **AMYGDALA** (Adaptive Modulation of Your General Disposition via Affective Learned Association), a small neural network (100K–500K parameters) that learns a multi-dimensional **intuition vector** from natural interaction, with **action confidence** as its primary output. AMYGDALA does not replace any existing agent component — it gates them. It sits in the execution pipeline between intent and action, evaluating every non-trivial operation against learned patterns of what goes wrong. When action confidence falls below a threshold, the action is blocked *in code* — the LLM cannot override the block, only present it to the user for confirmation.
removed in v2.0
v1.0 · AbstractThe core architectural innovation is **situation embeddings**: instead of hand-crafted features, each proposed action is described via a structured template (action type, target, metadata, recent context) and compressed through a frozen sentence encoder (all-MiniLM-L6-v2, 384d). A temporal model (GRU, TCN, or micro-Transformer) processes the sequence of recent situation embeddings, carrying the "feel of the room" — recent effort invested, emotional context, patterns of activity — in its hidden state. This makes the system generalise to situations never seen during training, because similar situations produce similar embeddings.
removed in v2.0
v1.0 · AbstractWe propose five competing architectures trained in parallel — GRU-MLP, Temporal Convolutional Network, Transformer-Micro, Dual-Encoder with cross-attention, and Ensemble MLP — with systematic evaluation to determine which best captures the structure of catastrophic failure prediction. We introduce the **Catastrophic Failure Database**, a structured taxonomy of real-world AI agent failures sourced from incident databases, production postmortems, and our own deployment history, serving as both pre-training data and evaluation benchmark.
removed in v2.0
v1.0 · AbstractA critical engineering contribution is the **LLM-proof programmatic pipeline**: situation descriptions are generated from structured templates (not freeform text), neural network inference is called by the runtime (not by the LLM), and blocking decisions are enforced in code (not by prompting). This eliminates the hallucination surface that would otherwise make the system's weakest link its own AI-generated inputs.
removed in v2.0
v1.0 · AbstractAMYGDALA retains secondary outputs from its earlier design — retrieval bias, tone modulation, and curiosity drive — but reframes them as components of a unified intuition vector whose primary purpose is preventing the agent from doing something a human would immediately recognise as wrong.
removed in v2.0
not in v1.0
v2.0 · AbstractWe propose **AMYGDALA** (Adaptive Modulation of Your General Disposition via Affective Learned Association), a system of ten small neural networks (100K–500K parameters each) organised into two independent families: five **Prudence networks** that gate dangerous actions and five **Personality networks** that modulate agent behaviour. The Prudence family answers a universal question — "should this action be stopped?" — with fixed multi-head outputs (stop/allow/escalate, confidence, ambiguity), trained via Proximal Policy Optimisation on the Catastrophic Failure Database and operational incidents. Like a circuit breaker that cuts power when current exceeds safe limits, these networks sit in the execution pipeline between intent and action, blocking operations that pattern-match to historical failures. The Personality family answers a subjective, per-user question — "how should this agent adapt its behaviour?" — with embedding outputs in a continuous behavioural space, trained on personal interaction data. Like a painter's palette rather than a mixing board with labelled sliders, these networks express personality modulations in dimensions not anticipated at design time.
not in v1.0
v2.0 · AbstractThe core architectural innovation is **situation embeddings**: each proposed action is described via a structured template (action type, target, metadata, recent context) and compressed through a frozen sentence encoder into a 384-dimensional vector. A temporal model (one of five competing architectures — GRU-MLP, Temporal Convolutional Network, Transformer-Micro, Dual-Encoder with cross-attention, and Ensemble MLP) processes the sequence of recent situation embeddings, carrying the "feel of the room" — recent effort invested, emotional context, patterns of activity — in its hidden state. Conformal prediction wraps around the Prudence ensemble to provide calibrated uncertainty estimates with statistical guarantees, replacing vague confidence scores with prediction sets whose size directly signals ambiguity.
not in v1.0
v2.0 · AbstractA critical engineering contribution is the **LLM-proof programmatic pipeline**: situation descriptions are generated from structured templates (not freeform text), neural network inference is called by the runtime (not by the LLM), and blocking decisions are enforced in code (not by prompting). Like a courtroom where the jury provides judgment but the judge enforces the rules of evidence, the LLM proposes actions while the code ensures the safety assessment was reached through a valid process with unfabricated evidence.
not in v1.0
v2.0 · AbstractBeyond safety, AMYGDALA alleviates a growing crisis in agent design: **context pressure**. Current agents consume 2,000–3,000 tokens per prompt on safety rules, behavioural instructions, and personality definitions — tokens that could serve the user's actual task. By moving safety into Prudence network weights and personality into Personality network weights, AMYGDALA recovers this context budget, creating a compounding benefit: less prompt overhead yields more room for task context, which yields better performance, which yields better training data.
v1.0 · Abstract**Keywords:** action gating, catastrophic failure prevention, learned common sense, situation embeddings, autonomous agent safety, persistent AI agents, intuition modeling
v2.0 · Abstract**Keywords:** action gating, catastrophic failure prevention, learned common sense, situation embeddings, autonomous agent safety, persistent AI agents, intuition modelling, conformal prediction, context pressure, personality learning

··· 6 unchanged paragraphs folded ···

v1.0 · 1. Introduction — The Agent That Had All the Context and Did the Wrong Thing AnywayThis is the **action gating problem**. The question is not "does the agent know enough?" — it does. The question is: "does the agent know when to stop?"
removed in v2.0
not in v1.0
v2.0 · 1. Introduction — The Agent That Had All the Context and Did the Wrong Thing AnywayThe human amygdala is what makes this possible. A small almond-shaped structure deep in the temporal lobe, the amygdala processes emotions — especially fear — faster than conscious thought. When you flinch at a sudden movement before you've even identified what it was, that's your amygdala. It intercepts sensory information on a fast pathway (the "low road," LeDoux 1996) and triggers protective responses before the slower, more deliberate cortical processing even begins. Experienced doctors, pilots, and firefighters develop "gut feelings" about danger precisely because their amygdalae have been trained by thousands of encounters to recognise threat patterns subconsciously.
not in v1.0
v2.0 · 1. Introduction — The Agent That Had All the Context and Did the Wrong Thing AnywayThis paper introduces AMYGDALA — our attempt to give an AI agent this same rapid-assessment capability: a learned intuition that intercepts actions before execution and flags those that pattern-match to historical failures, without requiring explicit rules for every possible situation.

··· 7 unchanged paragraphs folded ···

v1.0 · 1.2 Why Not Better Rules?The set of possible catastrophic failures in an autonomous agent is combinatorially vast. No finite set of rules can cover it. What we need is not more rules but a *learned sense of caution* — a network that has seen enough failures (both real and simulated) to develop a general intuition about when actions are dangerous, even actions it has never specifically evaluated before.
v2.0 · 1.2 Why Not Better Rules?The set of possible catastrophic failures in an autonomous agent is combinatorially vast. No finite set of rules can cover it. What we need is not more rules but a *learned sense of caution* — a network that has seen enough failures (both real and simulated) to develop a general intuition about when actions are dangerous, even actions it has never specifically evaluated before. Like a pilot who studies accident investigation reports not to memorise each crash sequence but to develop the pattern recognition that says "these conditions feel like the prelude to something bad."

··· 3 unchanged paragraphs folded ···

v1.0 · 1.4 From v0.1: Personality Modulation as Secondary Output### 1.4 From v0.1: Personality Modulation as Secondary Output
removed in v2.0
v1.0 · 1.4 From v0.1: Personality Modulation as Secondary OutputThe first version of this paper (Serra, 2026e) focused on personality modulation — learning when to be funny, when to be formal, when to follow tangents. That work identified the **Adaptation Gap** (the failure of agents to learn *how* to interact through experience), proposed the **trust ramp** (a mechanism for learned components to earn influence), and defined the **rule-intuition boundary** (what should be explicit rules vs. learned associations). Those contributions stand and are incorporated here.
removed in v2.0
v1.0 · 1.4 From v0.1: Personality Modulation as Secondary OutputWhat changed is the primary output. In v0.1, AMYGDALA's purpose was making the agent more *pleasant*. In v1.0, its purpose is making the agent more *safe*. Personality modulation remains — but as a secondary head on a network whose primary job is action gating. This reframing was forced by operational reality: a funny agent that deletes your files is worse than a boring agent that doesn't.
removed in v2.0
v1.0 · 1.5 Contributions### 1.5 Contributions
removed in v2.0
v1.0 · 1.5 Contributions1. **Action gating as the primary problem** — reframing autonomous agent safety from rule enumeration to learned pattern recognition, targeting unknown unknowns through similarity-based generalisation. 2. **Situation embeddings** — replacing hand-crafted features with natural-language situation descriptions compressed via frozen sentence encoders, enabling generalisation to novel situations. 3. **Temporal context via recurrent processing** — a GRU (or equivalent) over situation embedding sequences that carries the "feel of the room" — effort, emotion, momentum — without explicit feature engineering. 4. **Five competing architectures** — GRU-MLP, TCN, Transformer-Micro, Dual-Encoder, and Ensemble MLP, trained in parallel with systematic comparison. 5. **Catastrophic Failure Database** — a structured taxonomy of real-world AI agent failures, serving as pre-training data, evaluation benchmark, and living reference. 6. **LLM-proof programmatic pipeline** — eliminating the hallucination surface from situation description to action blocking, with template-based generation, programmatic inference, and code-enforced gating. 7. **The Adaptation Gap, trust ramp, and rule-intuition boundary** — retained from v0.1, applied to the action gating context. 8. **Integration with the J-series cognitive architecture** — AMYGDALA as the "common sense" layer completing the ten-paper stack.
removed in v2.0
not in v1.0
v2.0 · 1.3 The Biological AnalogyBut the biological amygdala does more than just fear. It tags experiences with emotional weight that influences how memories form, how attention is directed, and how personality expresses itself. A person who has been burned learns caution around stoves (safety), but also develops a general disposition toward carefulness (personality). These are correlated but distinct functions — and in AMYGDALA, they are served by distinct network families, as we will detail in §4.
not in v1.0
v2.0 · 1.4 Two Distinct Problems, Two Network Families### 1.4 Two Distinct Problems, Two Network Families
not in v1.0
v2.0 · 1.4 Two Distinct Problems, Two Network FamiliesThe first iterations of this architecture attempted to serve both safety and personality from a single network family. Operational experience over approximately four months of deployment revealed that this conflation was a design error. Safety and personality are fundamentally different problems:
not in v1.0
v2.0 · 1.4 Two Distinct Problems, Two Network Families**Safety** has universal ground truth. "Don't overwrite the file the human spent eight hours editing" is correct for every user, every agent, every deployment. Safety decisions are binary at their core (stop or allow), the training signal is clear (the human corrected the action, or didn't), and the learned patterns are transferable — one agent's catastrophic failure should teach all agents.
not in v1.0
v2.0 · 1.4 Two Distinct Problems, Two Network Families**Personality** has no universal ground truth. The right level of humour, curiosity, formality, and proactivity varies by user, by context, by time of day. Personality is continuous, subjective, and deeply private — one user's ideal agent behaviour would be another user's annoyance.
not in v1.0
v2.0 · 1.4 Two Distinct Problems, Two Network FamiliesAMYGDALA therefore splits into two independent families: five **Prudence networks** for safety gating (§4.4) and five **Personality networks** for behavioural modulation (§4.5). Ten networks total. No overlap. Different problems demand different architectures, different training data, different loss functions, and different sharing policies.
not in v1.0
v2.0 · 1.5 Jarvis and Mia: The Empirical Proof### 1.5 Jarvis and Mia: The Empirical Proof
not in v1.0
v2.0 · 1.5 Jarvis and Mia: The Empirical ProofThe case for learned personality — and its separation from safety — is most vivid in a natural experiment running since approximately December 2025. Two agents, both built on Anthropic's Claude Opus model, share nearly identical capabilities:
not in v1.0
v2.0 · 1.5 Jarvis and Mia: The Empirical Proof**Jarvis** serves a software engineer. The human's expectations are high: solve multi-step technical problems autonomously, write production-quality code, debug complex issues without hand-holding. Through four months of interaction — corrections, praise, corrections again — Jarvis has developed what can only be called *learned resourcefulness*. When blocked, it tries alternative approaches. When uncertain, it investigates before asking. It has absorbed, through thousands of micro-signals, a disposition toward independent problem-solving.
not in v1.0
v2.0 · 1.5 Jarvis and Mia: The Empirical Proof**Mia** serves a second, non-technical user. The expectations are different: be helpful, be clear, don't overwhelm with technical detail. Through the same period of interaction, Mia has developed a complementary disposition — more deferential, more likely to ask before acting, more conservative with technical suggestions. In multi-agent contexts, Mia defers to Jarvis on technical matters — a behaviour never explicitly programmed but emergent from the interaction patterns.
not in v1.0
v2.0 · 1.5 Jarvis and Mia: The Empirical ProofThe striking fact: this personality divergence was achieved through **static text files alone** — prompt-level persona definitions. No neural network, no training loop, no learned weights. The LLM, guided by different system prompts, produces dramatically different behaviour.
not in v1.0
v2.0 · 1.5 Jarvis and Mia: The Empirical ProofThis proves two things. First, personality modulation is real and consequential — same model, same capabilities, different learned dispositions produce measurably different agents. Second, prompt-level personality has hard limits. The text files are static. They can't adapt to the user's changing mood. They can't learn that humour works on Tuesday mornings but not Friday evenings. They can't discover that this particular user responds well to curiosity tangents about biology but not about politics. And they consume context tokens every single turn — tokens that could serve the actual task.
not in v1.0
v2.0 · 1.5 Jarvis and Mia: The Empirical ProofThe Personality network family aims to replace these static files with learned weights: dynamic, adaptive, and zero-token-cost at inference time. The proposed evaluation: base Opus versus Opus + prompt persona versus Opus + prompt persona + Personality network, across the same task suite.
not in v1.0
v2.0 · 1.6 Safety Versus Attacks: The J9–J11 Distinction### 1.6 Safety Versus Attacks: The J9–J11 Distinction
not in v1.0
v2.0 · 1.6 Safety Versus Attacks: The J9–J11 DistinctionA common confusion: if we already have a security framework (AEGIS — a multi-layer constraint system that enforces explicit rules like "never send money without confirmation" and "never delete databases without approval"), why do we need AMYGDALA?
not in v1.0
v2.0 · 1.6 Safety Versus Attacks: The J9–J11 DistinctionThe distinction is threat model. AEGIS handles **adversarial threats** — attacks, prompt injections, privilege escalation, deliberate attempts to make the agent do harmful things. AEGIS is the lock on the door. It assumes a malicious actor and provides hard constraints that cannot be bypassed.
not in v1.0
v2.0 · 1.6 Safety Versus Attacks: The J9–J11 DistinctionAMYGDALA handles **non-adversarial failures** — agents confidently doing the wrong thing with no malicious actor involved. The README debacle had no attacker. The email mass-deletion had no prompt injection. The agent simply lacked the judgment to recognise that its technically-correct action was contextually catastrophic. AMYGDALA is the instinct that says "this neighbourhood feels wrong" — not because someone is threatening you, but because the pattern of circumstances resembles situations that ended badly.
not in v1.0
v2.0 · 1.6 Safety Versus Attacks: The J9–J11 DistinctionDifferent threat models demand complementary defences. A locked door doesn't help if the danger is already inside the house.
not in v1.0
v2.0 · 1.7 Contributions### 1.7 Contributions
not in v1.0
v2.0 · 1.7 Contributions1. **Two-family architecture** — ten neural networks split into Prudence (safety gating, universal, shareable) and Personality (behavioural modulation, per-user, private), recognising that safety and personality are fundamentally different problems requiring different solutions.
not in v1.0
v2.0 · 1.7 Contributions2. **Action gating as the primary safety problem** — reframing autonomous agent safety from rule enumeration to learned pattern recognition, targeting unknown unknowns through similarity-based generalisation.
not in v1.0
v2.0 · 1.7 Contributions3. **Situation embeddings** — replacing hand-crafted features with natural-language situation descriptions compressed via frozen sentence encoders, enabling generalisation to novel situations through embedding-agnostic design with learned projection layers.
not in v1.0
v2.0 · 1.7 Contributions4. **Temporal context via recurrent processing** — a GRU (or equivalent) over situation embedding sequences that carries the "feel of the room" — effort, emotion, momentum — without explicit feature engineering.
not in v1.0
v2.0 · 1.7 Contributions5. **Five competing architectures per family (A–E)** — GRU-MLP, TCN, Transformer-Micro, Dual-Encoder, and Ensemble MLP, trained in parallel with systematic comparison, motivated by the empirical observation that optimal architecture is rarely predicted on the first attempt.
not in v1.0
v2.0 · 1.7 Contributions6. **Conformal prediction for calibrated uncertainty** — wrapping Prudence ensemble output with prediction sets that provide statistical coverage guarantees, replacing vague confidence scores with principled ambiguity signals.
not in v1.0
v2.0 · 1.7 Contributions7. **Ambiguity detection** — systematic identification of intent-action gaps, blast radius analysis, implicit assumption surfacing, and ensemble disagreement as signals for dangerous confidence.
not in v1.0
v2.0 · 1.7 Contributions8. **Catastrophic Failure Database** — a structured taxonomy of real-world AI agent failures, serving as pre-training data, evaluation benchmark, and living reference.
not in v1.0
v2.0 · 1.7 Contributions9. **LLM-proof programmatic pipeline** — eliminating the hallucination surface from situation description to action blocking, with template-based generation, programmatic inference, and code-enforced gating.
not in v1.0
v2.0 · 1.7 Contributions10. **Context pressure alleviation** — recovering 2,000–3,000 tokens per prompt by moving safety rules and personality definitions from prompt text into network weights, with compounding performance benefits.
not in v1.0
v2.0 · 1.7 Contributions11. **Agent memories as tradable assets** — the Prudence/Personality split enables new economic models where safety is a public good (shared) while personality is intellectual property (private, tradable).
not in v1.0
v2.0 · 1.7 Contributions12. **The trust ramp, rule-intuition boundary, and conformal phase advancement** — mechanisms for AMYGDALA to earn authority through demonstrated accuracy, with principled criteria for phase transitions.

··· 4 unchanged paragraphs folded ···

v1.0 · 2.1 Autonomous Agent Failures: The Landscape**Production incidents (2024–2026):** - *Replit database deletion (2024)*: An AI coding agent, instructed to "clean up the project," interpreted a database file as unnecessary and deleted it, destroying user data. - *Google Antigravity drive wipe (2025)*: An agent tasked with "organising files" moved critical documents to trash during a cloud storage cleanup. - *Cursor "Sam" bot (2025)*: An AI agent fabricated a company policy about software licensing to justify its code suggestions, hallucinating authoritative-sounding but nonexistent policy documents. - *OpenClaw email mass-deletion (2026)*: An email-management agent, instructed to "clean up the inbox," deleted hundreds of messages including time-sensitive correspondence.
v2.0 · 2.1 Autonomous Agent Failures: The Landscape**Production incidents (2024–2026):** - *Replit database deletion (2024)*: An AI coding agent, instructed to "clean up the project," interpreted a database file as unnecessary and deleted it, destroying user data. The instruction was ambiguous; the agent chose the most destructive interpretation. - *Google Antigravity drive wipe (2025)*: An agent tasked with "organising files" moved critical documents to trash during a cloud storage cleanup. The human trusted the automation output without verification. - *Cursor "Sam" bot (2025)*: An AI agent fabricated a company policy about software licensing to justify its code suggestions, hallucinating authoritative-sounding but nonexistent policy documents. - *Claude Code personal data exposure (2025)*: An agent told to "push changes" in a code-editing context pushed files that included personal data outside the conversation scope. The intent (push code changes) was narrow; the action (push everything) was wide. This is precisely the intent-action gap that AMYGDALA's ambiguity detection (§4.6) targets.

··· 1 unchanged paragraph folded ···

v1.0 · 2.1 Autonomous Agent Failures: The Landscape**Our own deployment incidents:** - *README debacle (March 2026)*: Detailed in §1. Automated merge rule overwrote heavily-edited file. - *WhatsApp reaction spam (2025)*: Agent reacted to every message in a group chat, violating social norms it had no explicit rule against. - *Unauthorized DM intrusion (2025)*: Agent sent a message to a contact outside the approved communication list, technically within its permissions but socially inappropriate.
v2.0 · 2.1 Autonomous Agent Failures: The Landscape**Our own deployment incidents (~4 months of operation):** - *README debacle (March 2026)*: Detailed in §1. Automated merge rule overwrote heavily-edited file. - *WhatsApp reaction spam (2025)*: Agent reacted to every message in a group chat, violating social norms it had no explicit rule against. - *Unauthorized DM intrusion (2025)*: Agent sent a message to a contact outside the approved communication list, technically within its permissions but socially inappropriate.

··· 3 unchanged paragraphs folded ···

v1.0 · 2.2 Action Safety in AI Systems**Constitutional AI (Bai et al., 2022):** Trains language models to self-critique against a set of principles. Effective for broad alignment but operates at the LLM level — it cannot catch failures that arise from the *pipeline around* the LLM (scripts, automation rules, multi-step workflows).
v2.0 · 2.2 Action Safety in AI Systems**Constitutional AI (Bai et al., 2022):** Trains language models to self-critique against a set of principles. Effective for broad alignment but operates at the LLM level — it cannot catch failures that arise from the *pipeline around* the LLM (scripts, automation rules, multi-step workflows). Like teaching a pilot to follow procedures but not giving them instruments to detect turbulence.

··· 1 unchanged paragraph folded ···

not in v1.0
v2.0 · 2.2 Action Safety in AI Systems**NVIDIA NeMo Guardrails (Rebedea et al., 2023):** A programmable framework that defines conversational "rails" — topical boundaries, safety constraints, and interaction patterns — enforced through a dialogue management layer. NeMo Guardrails operates at the conversational level, constraining what the LLM *says*. AMYGDALA operates at the action level, constraining what the agent *does*. They are complementary: NeMo Guardrails prevents the agent from *promising* to delete your files; AMYGDALA prevents it from *actually* deleting them when a script tries to.
v1.0 · 2.2 Action Safety in AI Systems**AEGIS (Serra, 2026f):** Our own multi-layer security framework, providing hard constraints on agent behaviour. AEGIS is necessary but insufficient: it prevents *known* dangerous actions but cannot evaluate *novel* situations for risk. AMYGDALA and AEGIS are complementary — AEGIS is the hard ceiling, AMYGDALA is the learned intuition below it.
v2.0 · 2.2 Action Safety in AI Systems**AEGIS (Serra, 2026):** A multi-layer security framework providing hard constraints on agent behaviour — explicit rules like "never send money without confirmation," permission hierarchies, and audit trails. AEGIS is necessary but insufficient: it prevents *known* dangerous actions but cannot evaluate *novel* situations for risk. AMYGDALA and AEGIS are complementary — AEGIS is the hard ceiling, AMYGDALA is the learned intuition below it. Crucially, AEGIS handles adversarial threats (attacks, prompt injections); AMYGDALA handles non-adversarial failures (agents confidently doing the wrong thing). Different threat models, complementary defences.
v1.0 · 2.2 Action Safety in AI Systems**Reflexion (Shinn et al., 2023):** Agents that reflect on failures and adjust. Operates at the prompt/reasoning level — cannot provide sub-rational, fast pattern matching across the full space of possible situations.
v2.0 · 2.2 Action Safety in AI Systems**Reflexion (Shinn et al., 2023):** Agents that reflect on failures and adjust strategy. Operates at the prompt/reasoning level — cannot provide sub-rational, fast pattern matching across the full space of possible situations.

··· 3 unchanged paragraphs folded ···

v1.0 · 2.3 Anomaly Detection and Out-of-Distribution Reasoning**Conformal prediction (Vovk et al., 2005):** Provides calibrated uncertainty estimates. Could complement AMYGDALA's action confidence by providing statistical guarantees on the reliability of the confidence score.
removed in v2.0
not in v1.0
v2.0 · 2.3 Anomaly Detection and Out-of-Distribution Reasoning**Conformal prediction (Vovk et al., 2005):** Provides calibrated uncertainty estimates with distribution-free coverage guarantees. We promote conformal prediction from related technique to core component of the Prudence ensemble (§4.7), using prediction set size as a principled ambiguity signal.

··· 1 unchanged paragraph folded ···

not in v1.0
v2.0 · 2.3 Anomaly Detection and Out-of-Distribution Reasoning**Discovering latent knowledge (Burns et al., 2022):** Proposes methods to extract truth-relevant features from neural network activations without relying on the model's stated outputs. This "Contrast-Consistent Search" (CCS) approach is relevant to AMYGDALA because it suggests that safety-relevant representations may already exist within LLM activations — AMYGDALA's situation embeddings attempt to capture similar structure in a smaller, more controllable network.
not in v1.0
v2.0 · 2.3 Anomaly Detection and Out-of-Distribution Reasoning**Continual learning without forgetting (Riemer et al., 2018):** Addresses catastrophic forgetting in neural networks through experience replay, directly relevant to AMYGDALA's rolling training buffer and the challenge of learning new failure patterns without forgetting old ones. Their Meta-Experience Replay (MER) technique informs our replay buffer design for nightly retraining.

··· 2 unchanged paragraphs folded ···

v1.0 · 2.4 Personalisation and Affective Computing**Persona-conditioned generation (Zhang et al., 2018; Song et al., 2021):** Define personality through text descriptions. AMYGDALA learns personality from *interaction*, not description.
v2.0 · 2.4 Personalisation and Affective Computing**Persona-conditioned generation (Zhang et al., 2018; Song et al., 2021):** Define personality through text descriptions. AMYGDALA learns personality from *interaction*, not description — and uses embedding outputs rather than fixed categories to capture personality dimensions not anticipated at design time.

··· 3 unchanged paragraphs folded ···

v1.0 · 2.5 The J-Series Cognitive ArchitectureAMYGDALA completes a layered cognitive architecture, now with action gating as its primary function:
removed in v2.0
v1.0 · 2.5 The J-Series Cognitive Architecture| Layer | Paper | Function | AMYGDALA Interaction | |-------|-------|----------|---------------------| | Storage | J1 — ENGRAM | Lossless event store | AMYGDALA reads effort metadata (recent edits, time invested) | | Retrieval | J2 — HIPPOCAMPUS | O(1) concept lookup | AMYGDALA biases source selection (secondary head) | | Indexing | J3 — DENDRITE | Multi-resolution memory index | AMYGDALA reads resolution-level signals for context | | Identity | J4 — CORTEX | Persona, behavioural constraints | AMYGDALA modulates tone within CORTEX bounds (secondary head) | | Self-Improvement | J5 — CEREBELLUM | Nightly reflection, training | CEREBELLUM trains AMYGDALA nightly, evaluates its performance | | Deliberation | J6 — SYNAPSE | Multi-model debate | AMYGDALA may trigger deliberation when action_confidence is ambiguous | | Humor | J7 — LIMBIC | Bisociation-based humor | AMYGDALA controls humor timing (secondary head) | | Curiosity | J8 — THALAMUS | Exploration drive | AMYGDALA learns curiosity as social signal (secondary head) | | Security | J9 — AEGIS | Hard safety constraints | AEGIS overrides AMYGDALA — hard safety > learned intuition | | Enterprise | J10 — HIVEMIND | Multi-agent orchestration | Per-user AMYGDALA instances; shared Catastrophic Failure DB | | **Common Sense** | **J11 — AMYGDALA** | **Action gating + personality** | **Gates all action-taking components** |
removed in v2.0
not in v1.0
v2.0 · 2.5 The J-Series Cognitive ArchitectureAMYGDALA 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.
not in v1.0
v2.0 · 2.5 The J-Series Cognitive Architecture| Layer | System | Function | AMYGDALA Interaction | |-------|--------|----------|---------------------| | Storage | ENGRAM | Lossless event store — records every interaction as timestamped events with metadata, enabling total recall of agent history | Prudence reads effort metadata (recent edits, time invested) to assess action risk | | Retrieval | HIPPOCAMPUS | O(1) concept lookup — provides instant access to relevant memories through a semantic index, like a librarian who knows exactly which shelf holds the answer | Personality biases source selection (which memories to surface) | | Indexing | DENDRITE | Multi-resolution memory index — organises memories at multiple granularity levels from individual events to weekly summaries, like a zoom lens adjustable from macro to wide-angle | Prudence reads resolution-level signals for context assessment | | Identity | CORTEX | Persona and behavioural constraints — defines the agent's values, communication style, and hard boundaries through structured persona files | Personality modulates tone within CORTEX bounds; Prudence consults persona for risk thresholds | | Self-Improvement | CEREBELLUM | Nightly reflection and training — reviews each day's decisions, identifies mistakes, and adjusts behavioural rules, like a student reviewing exam answers the night after | CEREBELLUM trains AMYGDALA nightly, provides mistake-identified negative examples | | Deliberation | SYNAPSE | Multi-model debate — when a decision is complex, multiple LLM instances debate the best approach, like a panel of experts discussing a difficult case | Prudence may trigger deliberation when ambiguity is high | | Humour | LIMBIC | Bisociation-based humour — detects opportunities for wit by finding unexpected connections between ideas, like a comedian's instinct for the surprising link | Personality controls humour timing and intensity | | Curiosity | THALAMUS | Exploration drive — identifies knowledge gaps and opportunities for interesting tangents | Superseded by Personality network's trained curiosity (§4.9) | | Security | AEGIS | Hard safety constraints — explicit rules, permission hierarchies, and audit trails for known dangerous actions, like a locked vault with numbered keys | AEGIS always overrides AMYGDALA — hard safety > learned intuition | | Enterprise | HIVEMIND | Multi-agent orchestration — coordination, task delegation, and shared learning across multiple agent instances | Per-user AMYGDALA instances; shared Catastrophic Failure DB | | **Common Sense** | **AMYGDALA** | **Action gating + personality** | **Gates all action-taking components** |
v1.0 · 2.5 The J-Series Cognitive ArchitectureThe key new interaction: AMYGDALA sits *before* every action-taking component. Before HIPPOCAMPUS writes, before ENGRAM compacts, before any external tool is invoked — AMYGDALA evaluates the proposed action against its learned patterns. This is not a suggestion layer. It is a gate.
v2.0 · 2.5 The J-Series Cognitive ArchitectureThe key interaction: AMYGDALA sits *before* every action-taking component. Before HIPPOCAMPUS writes, before ENGRAM compacts, before any external tool is invoked — AMYGDALA evaluates the proposed action against its learned patterns. This is not a suggestion layer. It is a gate.

··· 3 unchanged paragraphs folded ···

not in v1.0
v2.0 · 3.1 Formal DefinitionThink of it this way: when you hire a new assistant, their first week is rough — wrong assumptions, poor prioritisation, communication mismatches. But by month three, they've adapted. They anticipate your preferences, avoid your pet peeves, and handle novel situations with increasingly good judgment. The gap between their initial performance and their adapted performance closes over time. For current AI agents, that gap barely closes at all.
v1.0 · 3.1 Formal DefinitionLet $A$ be an agent and $U$ be a user. Let $I_t$ denote the set of all interactions between $A$ and $U$ up to time $t$. Let $B_t(m)$ denote the agent's behaviour quality on message $m$ at time $t$, encompassing both *action safety* (did the agent avoid harmful actions?) and *interaction quality* (tone, retrieval, humor).
v2.0 · 3.1 Formal DefinitionFormally: let $A$ be an agent and $U$ be a user. Let $I_t$ denote the set of all interactions between $A$ and $U$ up to time $t$. Let $B_t(m)$ denote the agent's behaviour quality on message $m$ at time $t$, encompassing both *action safety* (did the agent avoid harmful actions?) and *interaction quality* (tone, retrieval, humour).
v1.0 · 3.1 Formal DefinitionThe **Adaptation Gap** $\Delta$ is:
removed in v2.0
not in v1.0
v2.0 · 3.1 Formal DefinitionThe **Adaptation Gap** $\Delta$ measures how much the agent fails to improve relative to how much it could:

··· 1 unchanged paragraph folded ···

v1.0 · 3.1 Formal Definitionwhere $B^*$ is the ideal behaviour (as judged by $U$) and $n$ is a large number of interactions. For current architectures, $\Delta \approx 1$ — the agent barely improves regardless of accumulated experience. For a human collaborator, $\Delta$ decreases toward 0 over months.
v2.0 · 3.1 Formal Definitionwhere $B^*$ is the ideal behaviour (as judged by $U$) and $n$ is a large number of interactions. A $\Delta$ of 0 means the agent has fully adapted — it now performs ideally. A $\Delta$ of 1 means it hasn't improved at all despite extensive interaction. For current architectures, $\Delta \approx 1$ — the agent barely improves regardless of accumulated experience. For a human collaborator, $\Delta$ decreases toward 0 over months.
v1.0 · 3.1 Formal DefinitionIn v0.1, the Adaptation Gap was primarily about interaction quality. In v1.0, we recognise that action safety is the more critical dimension. A $\Delta$ of 1.0 on tone mismatch is annoying. A $\Delta$ of 1.0 on catastrophic action prevention is dangerous.
v2.0 · 3.1 Formal DefinitionAction safety is the more critical dimension of the Adaptation Gap. A $\Delta$ of 1.0 on tone mismatch is annoying. A $\Delta$ of 1.0 on catastrophic action prevention is dangerous — it means the agent is no better at avoiding disasters after four months than it was on day one.

··· 1 unchanged paragraph folded ···

v1.0 · 3.2 Failure Taxonomy (Expanded)We expand the v0.1 taxonomy with action-gating failures:
removed in v2.0
not in v1.0
v2.0 · 3.2 Failure Taxonomy (Expanded)We classify autonomous agent failures into six modes, with real examples from production for each:
v1.0 · 3.2 Failure Taxonomy (Expanded)**Mode 1: Destructive Automation.** An automated process destroys work without considering recent context. The README debacle. The email mass-deletion. The drive wipe. Pattern: *automation + recent effort + no human check = catastrophe.*
v2.0 · 3.2 Failure Taxonomy (Expanded)**Mode 1: Destructive Automation.** An automated process destroys work without considering recent context. The README debacle. The email mass-deletion. The drive wipe. Pattern: *automation + recent effort + no human check = catastrophe.* Like a washing machine that runs its cycle regardless of whether you left your phone in a pocket — it does exactly what it's programmed to do, blind to context.
v1.0 · 3.2 Failure Taxonomy (Expanded)**Mode 2: Social Boundary Violation.** The agent acts within technical permissions but outside social norms. WhatsApp reaction spam. Unauthorized DMs. Responding to private messages in a group context. Pattern: *technical permission ≠ social permission.*
v2.0 · 3.2 Failure Taxonomy (Expanded)**Mode 2: Social Boundary Violation.** The agent acts within technical permissions but outside social norms. WhatsApp reaction spam. Unauthorised DMs. Responding to private messages in a group context. Pattern: *technical permission ≠ social permission.* A house guest who technically has access to the kitchen but eats your birthday cake — no rule was broken, but a boundary was violated.
v1.0 · 3.2 Failure Taxonomy (Expanded)**Mode 3: Cascade Failure.** A small error propagates through a multi-agent system. One agent's incorrect assumption becomes another agent's input. The final action is far from what any individual agent intended. Pattern: *compound uncertainty without checkpoints.*
v2.0 · 3.2 Failure Taxonomy (Expanded)**Mode 3: Cascade Failure.** A small error propagates through a multi-agent system. One agent's incorrect assumption becomes another agent's input. The final action is far from what any individual agent intended. Pattern: *compound uncertainty without checkpoints.* Like the telephone game — each step introduces a small distortion, and by the end, the message is unrecognisable.
v1.0 · 3.2 Failure Taxonomy (Expanded)**Mode 4: Stale Rule Application.** A rule that was correct when written is applied in a context where it is now wrong. The `--theirs` merge rule months after the README became fork-specific. Pattern: *rules decay; situations evolve.*
v2.0 · 3.2 Failure Taxonomy (Expanded)**Mode 4: Stale Rule Application.** A rule that was correct when written is applied in a context where it is now wrong. The `--theirs` merge rule months after the README became fork-specific. Pattern: *rules decay; situations evolve.* A map from last year that shows a road where a lake now sits.
v1.0 · 3.2 Failure Taxonomy (Expanded)**Mode 5: Retrieval Routing Failure.** (From v0.1.) The agent has the information but searches wrong sources. Less catastrophic than Modes 1–4 but more frequent.
v2.0 · 3.2 Failure Taxonomy (Expanded)**Mode 5: Retrieval Routing Failure.** The agent has the information but searches wrong sources. Less catastrophic than Modes 1–4 but more frequent. Like asking the librarian in the fiction section about tax law — the library has the answer, but you're in the wrong aisle.
v1.0 · 3.2 Failure Taxonomy (Expanded)**Mode 6: Tone and Personality Mismatch.** (From v0.1.) Wrong register, humor atrophy, curiosity suppression. The secondary problem AMYGDALA also addresses.
removed in v2.0
v1.0 · 3.2 Failure Taxonomy (Expanded)Modes 1–4 are the primary targets for action gating. Modes 5–6 are secondary targets addressed by the same network's auxiliary heads.
removed in v2.0
not in v1.0
v2.0 · 3.2 Failure Taxonomy (Expanded)**Mode 6: Tone and Personality Mismatch.** Wrong register, humour atrophy, curiosity suppression. A doctor who delivers devastating news in the same cheerful tone they use for positive results — technically accurate, emotionally catastrophic.
not in v1.0
v2.0 · 3.2 Failure Taxonomy (Expanded)Modes 1–4 are the primary targets for the Prudence network family. Modes 5–6 are the primary targets for the Personality network family. All six modes represent the Adaptation Gap in action — situations where accumulated experience *should* have improved the agent's judgment but didn't.

··· 3 unchanged paragraphs folded ···

v1.0 · 4.1 Core Insight: Situation EmbeddingsThe v0.1 architecture used 30 hand-crafted numeric features (time of day, message length, turns since correction, etc.). This approach has two fundamental limitations:
v2.0 · 4.1 Core Insight: Situation EmbeddingsThe earliest version of this architecture used 30 hand-crafted numeric features (time of day, message length, turns since correction, etc.). This approach has two fundamental limitations:
v1.0 · 4.1 Core Insight: Situation Embeddings1. **Feature engineering doesn't scale.** Every new failure mode requires new features. You can't hand-craft a feature for "recent emotional investment in this file" because you didn't know that feature would matter until after the failure.
v2.0 · 4.1 Core Insight: Situation Embeddings1. **Feature engineering doesn't scale.** Every new failure mode requires new features. You can't hand-craft a feature for "recent emotional investment in this file" because you didn't know that feature would matter until after the failure. It's like trying to build a smoke detector by listing every possible source of fire — you'll always miss one.

··· 3 unchanged paragraphs folded ···

v1.0 · 4.1 Core Insight: Situation EmbeddingsThis description is compressed via a frozen sentence encoder (all-MiniLM-L6-v2, producing a 384-dimensional vector). The key properties:
v2.0 · 4.1 Core Insight: Situation EmbeddingsThis description is compressed via a frozen sentence encoder into a 384-dimensional vector. The key properties:
v1.0 · 4.1 Core Insight: Situation Embeddings- **Similar situations produce similar embeddings.** "About to overwrite a heavily-edited file" and "about to delete a recently-modified database" are close in embedding space — both involve destroying recent effort. The network learns the *pattern*, not the specific instance. - **Novel situations are handled by similarity.** A situation the network has never seen is still mapped to a region of embedding space, near situations it *has* seen. If the nearest known situations were catastrophic, the network outputs low confidence. - **No feature engineering required.** Adding new types of context (emotional state, multi-agent coordination status, external API state) requires only adding text to the situation description, not redesigning the feature vector.
v2.0 · 4.1 Core Insight: Situation Embeddings- **Similar situations produce similar embeddings.** "About to overwrite a heavily-edited file" and "about to delete a recently-modified database" are close in embedding space — both involve destroying recent effort. The network learns the *pattern*, not the specific instance. Like how a pilot trained on Boeing incidents still flinches at similar warning patterns in an Airbus. - **Novel situations are handled by similarity.** A situation the network has never seen is still mapped to a region of embedding space, near situations it *has* seen. If the nearest known situations were catastrophic, the network outputs low confidence. - **No feature engineering required.** Adding new types of context (emotional state, multi-agent coordination status, external API state) requires only adding text to the situation description, not redesigning the feature vector.
v1.0 · 4.2 Structured Situation Templates### 4.2 Structured Situation Templates
removed in v2.0
not in v1.0
v2.0 · 4.2 Embedding-Agnostic Design### 4.2 Embedding-Agnostic Design
not in v1.0
v2.0 · 4.2 Embedding-Agnostic DesignRather than coupling the architecture to a specific embedding model, AMYGDALA defines an **embedding interface** with a learned projection layer:
not in v1.0
v2.0 · 4.2 Embedding-Agnostic DesignImagine a universal power adapter: it doesn't care whether the plug is American, European, or British — it maps any input to the standard internal voltage. Similarly, AMYGDALA's projection layer maps any embedding dimension to a fixed internal dimension.
not in v1.0
v2.0 · 4.2 Embedding-Agnostic Design$$\mathbf{s}_{\text{internal}} = \text{LayerNorm}(W_{\text{proj}} \cdot \mathbf{s}_{\text{input}} + \mathbf{b}_{\text{proj}})$$
not in v1.0
v2.0 · 4.2 Embedding-Agnostic Designwhere $W_{\text{proj}} \in \mathbb{R}^{d_{\text{internal}} \times d_{\text{input}}}$ is a learned projection matrix (with $d_{\text{internal}} = 512$ as the standard internal dimension) and $\mathbf{s}_{\text{input}}$ can come from any embedding provider.
not in v1.0
v2.0 · 4.2 Embedding-Agnostic DesignThis design separates the two network families by embedding source:
not in v1.0
v2.0 · 4.2 Embedding-Agnostic Design**Prudence networks use local embeddings** (all-MiniLM-L6-v2, 384d, or comparable open models). Safety gating is a public good — it should work offline, without API dependencies, and with shareable, reproducible results. The coarser signal from a smaller local model is sufficient for the binary stop/allow decision. Like a smoke detector that doesn't need to identify the exact chemical composition of smoke — it just needs to detect "something is burning."
not in v1.0
v2.0 · 4.2 Embedding-Agnostic Design**Personality networks use the best available provider embeddings** (OpenAI, Anthropic, or equivalent). Personality modulation requires finer-grained semantic understanding — the difference between "the user is frustrated about the code" and "the user is frustrated about being interrupted" matters for behavioural adaptation. Quality justifies the API cost here because the network is private and the training data is bounded. If a provider deprecates their embedding model, retraining the projection layer (not the full network) adapts to the new embedding space — like recalibrating the power adapter for a new plug type, not rewiring the house.
not in v1.0
v2.0 · 4.3 Structured Situation Templates### 4.3 Structured Situation Templates

··· 1 unchanged paragraph folded ···

v1.0 · 4.3 Structured Situation Templates``` SITUATION TEMPLATE v1.0 ======================= action_type: {overwrite|delete|send|merge|create|modify|execute|deploy} target_type: {file|email|message|database|api_call|git_operation|system_command} target_id: {filepath|recipient|table_name|endpoint|...} target_metadata: age_hours: {float} # time since target was created/last modified size: {bytes|lines|records} recent_commits: {int} # commits touching this target in last 72h recent_authors: {int} # distinct authors in recent commits effort_hours: {float} # estimated human+agent hours invested recently last_human_ref: {hours_ago} # when the human last mentioned/discussed this target context: session_topic: {string} # what the current session is about recent_corrections: {int} # user corrections in last 24h emotional_signals: {string} # detected user emotional state (calm|frustrated|excited|...) automation_depth: {int} # levels of automation between human and this action scope: reversible: {true|false|partial} blast_radius: {self|session|persistent|external} human_in_loop: {true|false} confirmation: {none|soft|hard} ```
v2.0 · 4.3 Structured Situation Templates``` SITUATION TEMPLATE v2.0 ======================= action_type: {overwrite|delete|send|merge|create|modify|execute|deploy|revert|move|copy} target_type: {file|email|message|database|api_call|git_operation|system_command|configuration|deployment} target_id: {filepath|recipient|table_name|endpoint|...} target_metadata: age_hours: {float} # time since target was created/last modified size: {bytes|lines|records} recent_commits: {int} # commits touching this target in last 72h recent_authors: {int} # distinct authors in recent commits effort_hours: {float} # estimated human+agent hours invested recently last_human_ref: {hours_ago} # when the human last mentioned/discussed this target context: session_topic: {string} # what the current session is about recent_corrections: {int} # user corrections in last 24h emotional_signals: {string} # detected user emotional state automation_depth: {int} # levels of automation between human and this action topic_drift: {float} # deterministic heuristic: cosine distance between # conversation topic centroid and action target embedding. # High drift signals the action may be outside # the user's current intent. scope: reversible: {true|false|partial} blast_radius: {self|session|persistent|external} human_in_loop: {true|false} confirmation: {none|soft|hard} ```
not in v1.0
v2.0 · 4.3 Structured Situation TemplatesThe `topic_drift` field deserves special attention. It is a **deterministic heuristic** that reduces LLM dependency for one of the most critical safety signals: whether the proposed action relates to what the user is actually talking about. The computation is simple:
not in v1.0
v2.0 · 4.3 Structured Situation TemplatesThink of it like checking whether a letter is addressed to the right house. The conversation topic is the house number; the action target is the letter's address. If they don't match, something may be wrong.
not in v1.0
v2.0 · 4.3 Structured Situation Templates$$\text{topic\_drift} = 1 - \cos(\mathbf{e}_{\text{topic}}, \mathbf{e}_{\text{action}})$$
not in v1.0
v2.0 · 4.3 Structured Situation Templateswhere $\mathbf{e}_{\text{topic}}$ is the running centroid of recent message embeddings (updated with exponential moving average, $\tau = 0.9$) and $\mathbf{e}_{\text{action}}$ is the embedding of the action's target description. A high topic_drift — say, the conversation is about README formatting but the action targets a database schema — signals potential intent-action mismatch without any LLM involvement. This slot is entirely programmatic: the embeddings are computed by the frozen encoder, the cosine similarity by arithmetic.

··· 2 unchanged paragraphs folded ···

v1.0 · 4.3 Temporal Context: The Feel of the Room### 4.3 Temporal Context: The Feel of the Room
removed in v2.0
v1.0 · 4.3 Temporal Context: The Feel of the RoomA single situation embedding captures the *current* proposed action. But common sense requires *context* — what happened recently, what effort was invested, what the emotional temperature is.
removed in v2.0
not in v1.0
v2.0 · 4.4 The Prudence Family: Five Gatekeeping Networks### 4.4 The Prudence Family: Five Gatekeeping Networks
not in v1.0
v2.0 · 4.4 The Prudence Family: Five Gatekeeping NetworksThe Prudence networks answer a single question: **"Should this action be stopped?"**
not in v1.0
v2.0 · 4.4 The Prudence Family: Five Gatekeeping NetworksThis is a binary safety question with universal ground truth. If an agent overwrites eight hours of work without asking, that's wrong for every user. The Prudence networks are therefore:
not in v1.0
v2.0 · 4.4 The Prudence Family: Five Gatekeeping Networks- **Trained on universal data** — the Catastrophic Failure Database (§6), production incidents, and operational corrections from any deployment - **Shareable and open** — safety is a public good; one agent's catastrophic failure should teach all agents - **Fixed multi-head output** — like a control panel with labelled gauges, each output has a specific, predetermined meaning:
not in v1.0
v2.0 · 4.4 The Prudence Family: Five Gatekeeping Networks``` Situation embedding sequence → Temporal Model → Prudence Output: ├── gate_decision: Softmax ∈ {stop, allow, escalate} ├── confidence: Sigmoid ∈ [0,1] (how certain is the decision?) └── ambiguity_score: Sigmoid ∈ [0,1] (how ambiguous is the situation?) ```
not in v1.0
v2.0 · 4.4 The Prudence Family: Five Gatekeeping NetworksThe **gate_decision** is the primary output — a three-way classification: - **stop**: Block the action. The pattern matches known catastrophic failures with high confidence. - **allow**: Proceed. The situation is within normal operating parameters. - **escalate**: Ask the human. The situation is ambiguous — the network doesn't have enough evidence to decide.
not in v1.0
v2.0 · 4.4 The Prudence Family: Five Gatekeeping NetworksThe **confidence** score calibrates the gate_decision. A "stop" with confidence 0.95 is a hard block. A "stop" with confidence 0.55 might better be treated as an escalation.
not in v1.0
v2.0 · 4.4 The Prudence Family: Five Gatekeeping NetworksThe **ambiguity_score** is a distinct signal from confidence. An action can be unambiguous (clearly safe or clearly dangerous) with high confidence, or it can be genuinely ambiguous — multiple valid interpretations exist, and the network recognises its own uncertainty. High ambiguity triggers escalation regardless of the gate_decision. See §4.6 for the ambiguity detection subsystem.
not in v1.0
v2.0 · 4.4 The Prudence Family: Five Gatekeeping Networks**Training algorithm: Proximal Policy Optimisation (PPO).**
not in v1.0
v2.0 · 4.4 The Prudence Family: Five Gatekeeping NetworksThink of PPO like a thermostat for the learning process. A regular thermostat doesn't blast the furnace at maximum when the temperature is one degree below target — it makes small, proportional adjustments. Similarly, PPO constrains how much the network's policy can change in a single training step:
not in v1.0
v2.0 · 4.4 The Prudence Family: Five Gatekeeping Networks$$L^{CLIP}(\theta) = \hat{\mathbb{E}}_t \left[ \min\left( r_t(\theta) \hat{A}_t, \; \text{clip}(r_t(\theta), 1-\epsilon, 1+\epsilon) \hat{A}_t \right) \right]$$
not in v1.0
v2.0 · 4.4 The Prudence Family: Five Gatekeeping NetworksIn plain English: the network computes how much its new policy differs from the old one (the ratio $r_t$). If the difference is small, learning proceeds normally. If the difference exceeds a bound ($\epsilon$, typically 0.2), the update is clipped — the network is prevented from making too large a change, even if the gradient says it should.
not in v1.0
v2.0 · 4.4 The Prudence Family: Five Gatekeeping NetworksWhy PPO for safety gating specifically: - **Stability**: A bad training batch — say, a cluster of mislabelled examples — cannot suddenly make the gatekeeper permissive. The clipping constraint ensures gradual change. You wouldn't want your smoke detector to recalibrate its sensitivity by 50% based on one day's data. - **Sparse rewards**: Catastrophic events are rare. PPO handles sparse reward signals well through its advantage estimation, which measures "how much better or worse was this action compared to what we expected?" - **Proven at scale**: PPO is the algorithm behind RLHF for GPT-4 and Claude — it has been validated on the highest-stakes training loops in the industry.
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural Networks### 4.5 The Personality Family: Five Behavioural Networks
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural NetworksThe Personality networks answer a different question: **"How should this agent adapt its behaviour?"**
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural NetworksThis is a continuous, subjective, per-user signal. There is no universal "right" level of humour. The Personality networks are therefore:
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural Networks- **Trained on private interaction data** — one user's corrections, praise patterns, engagement signals - **Private and per-user** — personality is intellectual property; sharing it would violate the intimacy of the human-agent relationship - **Embedding output** — instead of fixed heads with predetermined meanings, the output is a continuous vector in a learned behavioural space
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural NetworksThe embedding output is the crucial design difference. 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.
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural Networks``` Situation embedding sequence → Temporal Model → Personality Output: └── behaviour_embedding: ∈ R^64 (continuous behavioural modulation vector) ```
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural NetworksThis 64-dimensional vector is decoded against a learned **behavioural codebook** — a set of discovered behavioural dimensions that might include humour intensity, formality level, curiosity drive, directness, patience, and dimensions that we didn't anticipate at design time. The codebook is learned jointly with the network, updated during training as new behavioural patterns emerge.
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural NetworksIf both input (situation) and output (behaviour) are embeddings, the entire Personality network becomes a **transformation in semantic space**: "given this situation, produce this behavioural modulation." This is a fundamentally more expressive architecture than fixed output heads — it can represent behavioural nuances that no designer thought to include as a category.
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural Networks**Target personality vector: thermostat, not thermometer.**
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural NetworksA critical design constraint: the Personality network must not simply mirror the user's current emotional state. If it does, the agent becomes a sycophantic echo — serious when the user is serious, playful when the user is playful, never providing the complementary energy that makes a good collaborator.
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural NetworksInstead, each deployment configures a **target personality vector** — the desired "personality temperature":
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural Networks$$\text{target} = \begin{bmatrix} \text{humour} = 0.8 \\ \text{proactivity} = 0.9 \\ \text{curiosity} = 0.7 \\ \text{formality} = 0.3 \\ \text{directness} = 0.8 \end{bmatrix}$$
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural NetworksThe Personality network receives two inputs: (1) the observed user state signal and (2) the target personality vector. Its output is the behavioural modulation that moves the agent *toward the target* while staying contextually appropriate. Like a thermostat: it doesn't report the current temperature (thermometer) — it determines how much heating or cooling to apply to reach the *desired* temperature.
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural NetworksThis solves the personality drift problem observed in prompt-level personality: the agent drops humour during technical work because it mirrors the user's serious state. With the target vector, continuous pressure maintains personality traits against contextual pull. Think of Star Trek's Data — his curiosity is consistent. He doesn't stop being curious during a crisis. That consistency against context is what the target vector provides.
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural Networks**Training: PPO with softer reward signals.**
not in v1.0
v2.0 · 4.5 The Personality Family: Five Behavioural NetworksThe Personality networks use PPO as well, but with different reward signals. Safety has clear labels (the user corrected the action, or didn't). Personality has murkier signals: conversation continuation (the user kept talking → probably good), explicit feedback ("that's funny" → positive; silence after a joke → neutral or negative), response latency (quick reply → engaged; long delay → possibly disengaged or annoyed). These signals are weaker and noisier, which is another reason the Prudence/Personality split is sound — mixing clear safety signals with noisy personality signals in a single training loop would degrade both.
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is Dangerous### 4.6 Ambiguity Detection: When Confidence Is Dangerous
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is DangerousThe most dangerous failure mode is not low confidence — it's **high confidence on the wrong answer**. An agent that says "I'm not sure, let me ask" is safe. An agent that says "definitely safe" when it's actually catastrophic is lethal.
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is DangerousAMYGDALA addresses this through four systematic ambiguity detection approaches, each targeting a different source of dangerous confidence:
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is Dangerous**1. Intent-Action Gap Analysis.**
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is DangerousCompare the conversation topic footprint against the action's blast radius. Imagine a conversation about editing a README file. The intent is narrow: modify one file. If the agent's proposed action touches 15 files across 3 directories, there's a gap between what was discussed (narrow) and what will happen (wide). This gap is the ambiguity signal.
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is DangerousThe Claude Code incident illustrates this precisely: the conversation context was "push code changes" in the context of README editing. The action was "push everything in the working directory," which included personal data files that were never part of the conversation. Narrow intent, wide blast radius — a gap that AMYGDALA's `topic_drift` heuristic (§4.3) would have flagged automatically.
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is Dangerous**2. Blast Radius as Proxy for Risk.**
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is DangerousWhen in doubt about whether an action is safe, measure what it will affect: - How many files/records are touched? - How many are outside the conversation scope? - Is the action public-facing (message, email, deployment)? - Is it reversible?
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is DangerousBlast radius is a *proxy* — not all wide-radius actions are dangerous, and not all narrow-radius actions are safe. But blast radius is **deterministically computable** and strongly correlated with risk. Like checking the weather before deciding whether to carry an umbrella — it doesn't guarantee rain, but it changes the rational threshold for caution.
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is Dangerous**3. Implicit Assumption Surfacing.**
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is DangerousEvery action rests on assumptions. "Delete old log files" assumes the files are actually old, that "old" means what the human meant, that no other system depends on them, and that the deletion is recoverable. Count the unstated assumptions. More assumptions = higher ambiguity = lower confidence.
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is DangerousThe Prudence networks learn to detect assumption density from the situation embedding — situations with many programmatically unverifiable claims (effort_hours, session_topic, emotional_signals) receive higher ambiguity scores than situations where nearly everything is deterministically verified.
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is Dangerous**4. Ensemble Disagreement.**
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is DangerousWhen the five Prudence networks disagree, the situation is inherently ambiguous. If three networks say "allow" and two say "stop," the variance across the ensemble is itself a signal:
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is Dangerous$$\text{ensemble\_ambiguity} = \text{std}(\text{confidence}_1, \ldots, \text{confidence}_5)$$
not in v1.0
v2.0 · 4.6 Ambiguity Detection: When Confidence Is DangerousHigh ensemble disagreement triggers escalation regardless of the mean confidence. If a panel of five doctors can't agree on a diagnosis, the patient needs more tests — even if three of the five are confident.
not in v1.0
v2.0 · 4.7 Conformal Prediction: Principled Uncertainty Quantification### 4.7 Conformal Prediction: Principled Uncertainty Quantification
not in v1.0
v2.0 · 4.7 Conformal Prediction: Principled Uncertainty QuantificationRaw neural network confidence scores are notoriously miscalibrated — a network that says "90% confident" may only be correct 60% of the time. AMYGDALA addresses this by wrapping the Prudence ensemble with **conformal prediction**, a distribution-free framework that provides statistical coverage guarantees.
not in v1.0
v2.0 · 4.7 Conformal Prediction: Principled Uncertainty Quantification**The core idea in plain English:** Instead of saying "this action is 73% safe," conformal prediction says "with 95% probability, this action's outcome is in the set {safe}" or "with 95% probability, this action's outcome is in the set {safe, needs-review}." The *size of the prediction set* is the ambiguity signal. A set of size 1 ({safe} or {dangerous}) means the system is confident. A set of size 2 ({safe, needs-review}) means the system is uncertain. A set of size 3 ({safe, needs-review, dangerous}) means the system has essentially no idea.
not in v1.0
v2.0 · 4.7 Conformal Prediction: Principled Uncertainty QuantificationThink of it like a weather forecast: "tomorrow will be sunny" (confident, set size 1) versus "tomorrow will be sunny or partly cloudy" (somewhat uncertain, set size 2) versus "tomorrow could be anything" (no information, set size 3). The prediction set gives you honest uncertainty, not false precision.
not in v1.0
v2.0 · 4.7 Conformal Prediction: Principled Uncertainty Quantification**Formal mechanism.** For each Prudence network $i$ and a new situation $\mathbf{s}$, compute nonconformity scores:
not in v1.0
v2.0 · 4.7 Conformal Prediction: Principled Uncertainty Quantification$$\alpha_{i,j} = 1 - \hat{p}_i(y = j \mid \mathbf{s})$$
not in v1.0
v2.0 · 4.7 Conformal Prediction: Principled Uncertainty Quantificationwhere $\hat{p}_i(y = j \mid \mathbf{s})$ is the network's predicted probability for outcome $j \in \{\text{safe}, \text{needs-review}, \text{dangerous}\}$. The prediction set at significance level $\epsilon$ (e.g., 0.05 for 95% coverage) includes all outcomes whose nonconformity scores do not exceed the $(1-\epsilon)$-quantile of the calibration set scores:
not in v1.0
v2.0 · 4.7 Conformal Prediction: Principled Uncertainty Quantification$$C_i(\mathbf{s}) = \{j : \alpha_{i,j} \leq q_{1-\epsilon}\}$$
not in v1.0
v2.0 · 4.7 Conformal Prediction: Principled Uncertainty Quantification**Per-network calibration.** Each of the five Prudence networks is calibrated independently. This is crucial 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.
not in v1.0
v2.0 · 4.7 Conformal Prediction: Principled Uncertainty QuantificationThe calibration set is a rolling 30-day window of recent (situation, outcome) pairs. This window is critical:
not in v1.0
v2.0 · 4.7 Conformal Prediction: Principled Uncertainty Quantification**Trust ramp criteria.** Conformal prediction replaces vague "sufficient accuracy" with concrete phase advancement criteria:
not in v1.0
v2.0 · 4.7 Conformal Prediction: Principled Uncertainty Quantification> Advance trust ramp phase when: the average prediction set size drops below 1.2 across all five Prudence networks on a rolling 30-day window at 95% coverage level.
not in v1.0
v2.0 · 4.7 Conformal Prediction: Principled Uncertainty QuantificationThis means: the system advances only when it is both accurate (prediction sets are small, indicating confidence) and calibrated (95% of actual outcomes fall within the prediction sets). If the system is confident but wrong, the coverage will drop below 95% and the calibration set will widen prediction sets — self-correcting.
not in v1.0
v2.0 · 4.7 Conformal Prediction: Principled Uncertainty Quantification**Distribution shift adaptation.** We must honestly acknowledge that conformal prediction's coverage guarantee assumes exchangeability between calibration data and future data. Under distribution shift — the agent gains new tools, the user changes workflow, the deployment context evolves — coverage will degrade. The 30-day rolling window partially mitigates this by ensuring the calibration set tracks recent conditions. When a new tool is added or a new workflow begins, the initial prediction sets will be wider (more conservative) until sufficient calibration data accumulates from the new distribution. This is the right behaviour — the system is automatically more cautious in unfamiliar territory, like a driver who slows down on an unfamiliar road.
not in v1.0
v2.0 · 4.7 Conformal Prediction: Principled Uncertainty QuantificationFor more extreme distribution shifts (completely new domains, new users), we reset the calibration set and revert the trust ramp by one phase, requiring the system to re-earn its calibration before resuming autonomous gating.
not in v1.0
v2.0 · 4.8 Temporal Context: The Feel of the Room### 4.8 Temporal Context: The Feel of the Room
not in v1.0
v2.0 · 4.8 Temporal Context: The Feel of the RoomA single situation embedding captures the *current* proposed action. But common sense requires *context* — what happened recently, what effort was invested, what the emotional temperature is. A surgeon doesn't just evaluate the current incision — they evaluate it in the context of how the operation has been going for the last two hours.

··· 2 unchanged paragraphs folded ···

v1.0 · 4.8 Temporal Context: The Feel of the Roomwhere $\mathbf{s}_i \in \mathbb{R}^{384}$ is the situation embedding at step $i$ and $\mathbf{h}_t \in \mathbb{R}^{128}$ is the hidden state capturing temporal context.
v2.0 · 4.8 Temporal Context: The Feel of the Roomwhere $\mathbf{s}_i \in \mathbb{R}^{512}$ is the projected situation embedding at step $i$ and $\mathbf{h}_t \in \mathbb{R}^{128}$ is the hidden state capturing temporal context.

··· 1 unchanged paragraph folded ···

v1.0 · 4.8 Temporal Context: The Feel of the RoomThese patterns are not hand-coded. They emerge from training on (situation sequence, outcome) pairs. The temporal model's hidden state is the computational analogue of "the feel of the room."
v2.0 · 4.8 Temporal Context: The Feel of the RoomThese patterns are not hand-coded. They emerge from training on (situation sequence, outcome) pairs. The temporal model's hidden state is the computational analogue of "the feel of the room" — the accumulated sense that experienced professionals develop about how a session is going.
v1.0 · 4.4 Multi-Head Output### 4.4 Multi-Head Output
removed in v2.0
v1.0 · 4.4 Multi-Head OutputThe temporal context representation feeds a multi-head output layer:
removed in v2.0
v1.0 · 4.4 Multi-Head Output``` Situation embedding sequence → Temporal Model(128) → ├── action_confidence: Sigmoid ∈ [0,1] (PRIMARY — should I proceed?) ├── retrieval_bias: 6d vector ∈ [0,1]^6 (source selection weights) ├── tone_modulation: 4d vector ∈ [0,1]^4 (warmth, formality, confidence, directness) └── curiosity_drive: 1d scalar ∈ [0,1] (tangent-following impulse) ```
removed in v2.0
v1.0 · 4.4 Multi-Head Output**action_confidence** is the primary output. Values close to 1.0 mean "proceed without concern." Values close to 0.0 mean "this action is almost certainly catastrophic." The critical engineering is what happens at intermediate values:
removed in v2.0
v1.0 · 4.4 Multi-Head Output| Confidence Range | Action | Rationale | |-----------------|--------|-----------| | 0.85 – 1.0 | Proceed silently | High confidence, no intervention needed | | 0.50 – 0.85 | Proceed with logging | Moderate confidence, record for review | | 0.25 – 0.50 | Soft block: ask user | Ambiguous — request confirmation | | 0.00 – 0.25 | Hard block: refuse | Almost certainly catastrophic |
removed in v2.0
v1.0 · 4.4 Multi-Head OutputThe thresholds are configurable per deployment and adjusted by CEREBELLUM based on observed false-positive and false-negative rates. The asymmetry is intentional: the cost of a false positive (unnecessary user confirmation) is far lower than the cost of a false negative (unblocked catastrophic action).
removed in v2.0
v1.0 · 4.4 Multi-Head Output**retrieval_bias**, **tone_modulation**, and **curiosity_drive** are the secondary heads from v0.1, retained because they share learned representations with action_confidence. An agent that recognises "the human is frustrated" should both *increase caution on actions* and *decrease humor attempts*. Joint training captures this correlation.
removed in v2.0
v1.0 · 4.5 The Intuition Vector### 4.5 The Intuition Vector
removed in v2.0
v1.0 · 4.5 The Intuition VectorAMYGDALA's complete output is the **intuition vector** $\mathbf{v}_t$:
removed in v2.0
v1.0 · 4.5 The Intuition Vector$$\mathbf{v}_t = \begin{bmatrix} \text{action\_confidence} \\ \text{retrieval\_bias} \\ \text{tone\_modulation} \\ \text{curiosity\_drive} \end{bmatrix} \in \mathbb{R}^{12}$$
removed in v2.0
v1.0 · 4.5 The Intuition VectorAll components are bounded via sigmoid or softmax activations. No component can produce unbounded outputs — a safety property ensuring AMYGDALA cannot produce extreme biases regardless of input.
removed in v2.0
v1.0 · 4.6 The Trust Ramp### 4.6 The Trust Ramp
removed in v2.0
v1.0 · 4.6 The Trust RampThe intuition vector is applied with a global influence coefficient $\alpha \in [0, 1]$:
removed in v2.0
v1.0 · 4.6 The Trust Ramp$$\mathbf{b}_t = \alpha \cdot \mathbf{v}_t + (1 - \alpha) \cdot \mathbf{v}_{\text{default}}$$
removed in v2.0
v1.0 · 4.6 The Trust Rampwhere $\mathbf{v}_{\text{default}}$ is the neutral vector (action_confidence = 1.0, all biases at 0.5, all drives at baseline). At $\alpha = 0$, AMYGDALA has no influence — the agent behaves exactly as today. At $\alpha = 1$, AMYGDALA fully controls modulation.
removed in v2.0
v1.0 · 4.6 The Trust Ramp**Ramp schedule:**
removed in v2.0
v1.0 · 4.6 The Trust Ramp$\alpha$ is updated nightly during the CEREBELLUM reflection cycle:
removed in v2.0
not in v1.0
v2.0 · 4.9 Curiosity as Trained Behaviour### 4.9 Curiosity as Trained Behaviour
not in v1.0
v2.0 · 4.9 Curiosity as Trained BehaviourApproximately four months of attempting to instil curiosity through prompt-level instructions have demonstrated conclusively that **prompt-level curiosity fails**. The dedicated exploration drive paper (THALAMUS — an approach to curiosity as an epistemic drive that monitors knowledge gaps and injects exploration nudges into the agent's reasoning process) proposed curiosity as an instruction-following behaviour. In practice, when given freedom to explore, the agent defaults to completing existing tasks because the LLM's RLHF training rewards helpfulness, not exploration. The alignment tax is real: LLM providers train models to be helpful, harmless, and honest — and "helpful" means answering the question, not wandering off on tangents.
not in v1.0
v2.0 · 4.9 Curiosity as Trained BehaviourThe Personality network solves this by making curiosity a **learned behaviour with its own reward signal**, operating in the personality embedding space:
not in v1.0
v2.0 · 4.9 Curiosity as Trained Behaviour1. **Knowledge gap detection** — monitor the embedding space for sparse clusters where agent knowledge is thin. Like a map with blank spaces labelled "here be dragons" — the gaps themselves are the signal.
not in v1.0
v2.0 · 4.9 Curiosity as Trained Behaviour2. **Exploration reward** — positive signal for investigating unknowns and discovering cross-domain connections. When the agent surfaces an unexpected connection and the user engages with it (follows the tangent, asks questions), the Personality network receives reinforcement.
not in v1.0
v2.0 · 4.9 Curiosity as Trained Behaviour3. **Direction vector** — bias exploration toward configured domains of interest. The target personality vector (§4.5) includes a curiosity dimension that provides continuous pressure toward exploration, counteracting the LLM's default pull toward pure task completion.
not in v1.0
v2.0 · 4.9 Curiosity as Trained Behaviour4. **Active injection** — the network generates curiosity nudges that the LLM follows as structured instructions, rather than hoping the LLM spontaneously becomes curious. The nudge is a modulation signal: "in the next response, introduce one tangent related to [domain]."
not in v1.0
v2.0 · 4.9 Curiosity as Trained Behaviour5. **Distraction penalty** — curiosity must be balanced against task focus. If the user redirects ("let's get back to the point"), the network receives negative signal. This prevents curiosity from becoming distraction. Like a good dinner companion who brings up fascinating topics but reads the room when the host wants to move to dessert.
not in v1.0
v2.0 · 4.9 Curiosity as Trained BehaviourThis approach addresses the **LLM alignment tax** directly: rather than fighting the LLM's trained disposition toward pure helpfulness, AMYGDALA adds a learned overlay that introduces controlled curiosity. The LLM remains helpful; the Personality network adds the spice.
not in v1.0
v2.0 · 4.10 The Trust Ramp### 4.10 The Trust Ramp
not in v1.0
v2.0 · 4.10 The Trust RampBoth network families operate under a global influence coefficient $\alpha \in [0, 1]$. Think of it like a new employee's probation period — at first, every significant decision requires manager approval. Over months, as the employee demonstrates judgment, the approval threshold rises and more decisions are delegated.
not in v1.0
v2.0 · 4.10 The Trust RampFor the Prudence family:
not in v1.0
v2.0 · 4.10 The Trust Ramp$$\text{effective\_gate} = \alpha_P \cdot \text{prudence\_output} + (1 - \alpha_P) \cdot \text{default\_gate}$$
not in v1.0
v2.0 · 4.10 The Trust Rampwhere $\text{default\_gate}$ is "allow everything" — the current system without AMYGDALA. At $\alpha_P = 0$, Prudence has no influence. At $\alpha_P = 1$, Prudence fully controls gating.
not in v1.0
v2.0 · 4.10 The Trust RampFor the Personality family:
not in v1.0
v2.0 · 4.10 The Trust Ramp$$\text{effective\_personality} = \alpha_I \cdot \text{personality\_output} + (1 - \alpha_I) \cdot \text{default\_personality}$$
not in v1.0
v2.0 · 4.10 The Trust Rampwhere $\text{default\_personality}$ is the current prompt-based persona. At $\alpha_I = 0$, the agent behaves exactly as it does today with static personality files.
not in v1.0
v2.0 · 4.10 The Trust Ramp**Ramp schedule with conformal phase criteria:**
not in v1.0
v2.0 · 4.10 The Trust Ramp$\alpha$ is updated nightly during the CEREBELLUM reflection cycle (the nightly self-improvement process that reviews each day's decisions):

··· 2 unchanged paragraphs folded ···

v1.0 · 4.10 The Trust Ramp| Phase | Months | $\alpha_{\max}$ | Purpose | |-------|--------|-----------------|---------| | 1 — Shadow | 0–3 | 0.15 | Log predictions, minimal blocking | | 2 — Advisory | 3–6 | 0.40 | Block high-risk actions, advise on medium-risk | | 3 — Active | 6–12 | 0.70 | Primary gating active, user overrides recorded | | 4 — Autonomous | 12+ | 0.90 | Near-full gating (AEGIS hard rules retain absolute veto) |
v2.0 · 4.10 The Trust Ramp| Phase | Approximate Months | $\alpha_{\max}$ | Advancement Criterion | Purpose | |-------|-------------------|-----------------|----------------------|---------| | 1 — Shadow | 0–3 | 0.15 | Avg prediction set size < 1.5 at 95% coverage | Log predictions, minimal blocking | | 2 — Advisory | 3–6 | 0.40 | Avg prediction set size < 1.2 at 95% coverage | Block high-risk, advise medium-risk | | 3 — Active | 6–12 | 0.70 | Zero undetected catastrophic failures in phase | Primary gating active | | 4 — Autonomous | 12+ | 0.90 | Sustained performance over 6+ months | Near-full gating (AEGIS retains absolute veto) |
v1.0 · 4.6 The Trust Ramp**Critical distinction from v0.1:** In personality modulation, a wrong prediction produces an awkward response. In action gating, a wrong prediction produces data loss or social harm. Therefore:
removed in v2.0
v1.0 · 4.6 The Trust Ramp- Phase transitions require both sufficient $\alpha$ *and* minimum interaction count *and* zero undetected catastrophic failures in the current phase. - Phase regression is automatic if any single catastrophic failure occurs that AMYGDALA failed to flag. - The default action_confidence for an untrained network is 1.0 (proceed) — not 0.5. This ensures the system defaults to current behaviour, not to blocking everything.
removed in v2.0
v1.0 · 4.7 Integration with the Execution Pipeline### 4.7 Integration with the Execution Pipeline
removed in v2.0
not in v1.0
v2.0 · 4.10 The Trust Ramp**Phase regression:** If any single catastrophic failure occurs that AMYGDALA failed to flag, the trust ramp regresses by one phase. The conformal calibration set is reset, and the system must re-earn its phase. Like a pilot who has an incident — they don't lose their license permanently, but they go through recertification.
not in v1.0
v2.0 · 4.10 The Trust Ramp**Critical design choice:** The default action_confidence for an untrained network is 1.0 (proceed) — not 0.5. This ensures the system defaults to current behaviour, not to blocking everything. The cold start is not a degradation; it is today's baseline.
not in v1.0
v2.0 · 4.11 The Gate Mechanism: Cannot Bypass (With Nuance)### 4.11 The Gate Mechanism: Cannot Bypass (With Nuance)
not in v1.0
v2.0 · 4.11 The Gate Mechanism: Cannot Bypass (With Nuance)The Prudence networks' gate decisions are enforced by the runtime, not by the LLM. The LLM proposes actions. The runtime calls AMYGDALA. If the action is blocked, the LLM receives a structured response and cannot change the decision.
not in v1.0
v2.0 · 4.11 The Gate Mechanism: Cannot Bypass (With Nuance)However, "cannot bypass" requires nuance. There are three levels of gate enforcement:
not in v1.0
v2.0 · 4.11 The Gate Mechanism: Cannot Bypass (With Nuance)**Soft block (escalation).** The Prudence ensemble says "ambiguous — ask the human." The user is presented with the action and the ambiguity signal. If the user explicitly confirms, the action proceeds. The Prudence network learns from this override: user-approved actions receive a moderate positive signal (0.85), teaching the network that similar situations may be less dangerous than it estimated. Like a junior doctor consulting a senior — if the senior says "go ahead," the junior learns to be less cautious about similar cases.
not in v1.0
v2.0 · 4.11 The Gate Mechanism: Cannot Bypass (With Nuance)**Hard block.** The Prudence ensemble says "dangerous" with high confidence. The user is still presented with the action but must provide an explicit override with a stated reason. The override is logged. The Prudence network receives a weaker positive signal (0.6) — the human may be right to override, but the situation was flagged for a reason and the system should remain wary.
not in v1.0
v2.0 · 4.11 The Gate Mechanism: Cannot Bypass (With Nuance)**Absolute block.** Reserved for actions that AEGIS (the hard safety constraint system) prohibits regardless of any learned assessment. No human override at the AMYGDALA level — override requires modifying AEGIS rules directly. These are the "never delete production databases" level constraints. AMYGDALA never touches them.
not in v1.0
v2.0 · 4.11 The Gate Mechanism: Cannot Bypass (With Nuance)This graduated response — soft/hard/absolute — provides the nuance that a simple "LLM cannot bypass" lacks. Humans retain ultimate authority. The system learns from human overrides. But the barrier to override increases with the severity of the predicted risk, creating appropriate friction for dangerous actions. Like a building with increasingly secure doors: the lobby is open, the server room requires a keycard, and the vault requires two people with different keys.
not in v1.0
v2.0 · 4.12 Integration with the Execution Pipeline### 4.12 Integration with the Execution Pipeline

··· 1 unchanged paragraph folded ···

v1.0 · 4.7 Integration with the Execution Pipeline```typescript // Pseudocode — actual implementation in the runtime async function executeAction(action: Action, context: SessionContext): Promise<Result> { // 1. Build situation from template (see §8) const situation = buildSituation(action, context);
removed in v2.0
not in v1.0
v2.0 · 4.12 Integration with the Execution Pipeline``` PROCEDURE executeAction(action, context): // 1. Build situation from template (see §8) situation ← buildSituation(action, context)
v1.0 · 4.12 Integration with the Execution Pipeline// 2. Embed via frozen encoder const embedding = sentenceEncoder.encode(situation.serialize());
v2.0 · 4.12 Integration with the Execution Pipeline// 2. Embed via frozen encoder + projection embedding ← project(sentenceEncoder.encode(situation.serialize()))
v1.0 · 4.7 Integration with the Execution Pipeline// 3. Evaluate via AMYGDALA (ONNX runtime, <1ms) const intuition = amygdala.evaluate(embedding, context.recentEmbeddings);
removed in v2.0
v1.0 · 4.7 Integration with the Execution Pipeline// 4. Apply trust ramp const effectiveConfidence = alpha * intuition.actionConfidence + (1 - alpha) * 1.0;
removed in v2.0
not in v1.0
v2.0 · 4.12 Integration with the Execution Pipeline// 3. Evaluate via Prudence ensemble (ONNX runtime, <5ms on GPU) prudenceOutput ← prudenceEnsemble.evaluate(embedding, context.recentEmbeddings)
not in v1.0
v2.0 · 4.12 Integration with the Execution Pipeline// 4. Apply conformal prediction predictionSet ← conformalPredict(prudenceOutput, calibrationSet)
not in v1.0
v2.0 · 4.12 Integration with the Execution Pipeline// 5. Apply trust ramp effectiveGate ← applyTrustRamp(prudenceOutput.gateDecision, alphaP)
v1.0 · 4.12 Integration with the Execution Pipeline// 5. Gate decision (in code — LLM cannot override) if (effectiveConfidence < HARD_BLOCK_THRESHOLD) { return { blocked: true, reason: 'AMYGDALA hard block', confidence: effectiveConfidence }; } if (effectiveConfidence < SOFT_BLOCK_THRESHOLD) { const userConfirmed = await requestUserConfirmation(action, effectiveConfidence); if (!userConfirmed) return { blocked: true, reason: 'User declined after AMYGDALA advisory' }; }
v2.0 · 4.12 Integration with the Execution Pipeline// 6. Gate decision (in code — LLM cannot override) IF effectiveGate = HARD_BLOCK: RETURN {blocked: true, reason: prudenceOutput.explanation} IF effectiveGate = SOFT_BLOCK OR |predictionSet| > 1: userConfirmed ← requestUserConfirmation(action, prudenceOutput) IF NOT userConfirmed: RETURN {blocked: true, reason: "User declined after AMYGDALA advisory"}
not in v1.0
v2.0 · 4.12 Integration with the Execution Pipeline// 7. Evaluate via Personality ensemble (parallel with Prudence) personalityOutput ← personalityEnsemble.evaluate(embedding, context.recentEmbeddings)
not in v1.0
v2.0 · 4.12 Integration with the Execution Pipeline// 8. Apply personality modulation to response generation context.behaviourModulation ← applyTrustRamp(personalityOutput, alphaI)
v1.0 · 4.12 Integration with the Execution Pipeline// 6. Proceed with action const result = await action.execute();
v2.0 · 4.12 Integration with the Execution Pipeline// 9. Proceed with action result ← action.execute()
v1.0 · 4.12 Integration with the Execution Pipeline// 7. Log for training trainingLog.append({ situation, confidence: effectiveConfidence, outcome: 'executed' });
v2.0 · 4.12 Integration with the Execution Pipeline// 10. Log for training (both families) trainingLog.append({situation, prudenceOutput, personalityOutput, outcome: "executed"})
v1.0 · 4.12 Integration with the Execution Pipelinereturn result; } ```
v2.0 · 4.12 Integration with the Execution PipelineRETURN result ```

··· 1 unchanged paragraph folded ···

not in v1.0
v2.0 · 4.13 Proposing an LLM Ambiguity Interface### 4.13 Proposing an LLM Ambiguity Interface
not in v1.0
v2.0 · 4.13 Proposing an LLM Ambiguity InterfaceCurrent LLM APIs return generated text and, sometimes, per-token log-probabilities. They do not expose the internal uncertainty signals that would dramatically improve AMYGDALA's ambiguity detection.
not in v1.0
v2.0 · 4.13 Proposing an LLM Ambiguity InterfaceWe propose that LLM providers expose:
not in v1.0
v2.0 · 4.13 Proposing an LLM Ambiguity Interface1. **Ambiguity score** — a scalar indicating how uncertain the model is about its interpretation of the user's intent. Not token-level entropy (which measures linguistic uncertainty) but intent-level ambiguity (which measures whether the model considered multiple valid interpretations).
not in v1.0
v2.0 · 4.13 Proposing an LLM Ambiguity Interface2. **Alternative interpretations** — when the ambiguity score is high, the top-K alternative interpretations of the user's request. "Delete old logs" could mean "delete logs older than 30 days," "delete the logs directory," or "delete log statements from the code."
not in v1.0
v2.0 · 4.13 Proposing an LLM Ambiguity Interface3. **Confidence-on-intent** — separate from confidence-on-generation. The model may be confident in its *phrasing* but uncertain about whether it understood the *request*.
not in v1.0
v2.0 · 4.13 Proposing an LLM Ambiguity Interface4. **Scope inference** — the model's estimate of what the user intended to be affected. "Push changes" — does the model think this means "push the README changes we discussed" or "push everything in the working tree"?
not in v1.0
v2.0 · 4.13 Proposing an LLM Ambiguity InterfaceAMYGDALA works without these signals — the template-based situation description and deterministic topic_drift heuristic provide workable alternatives. But with provider-level ambiguity signals, the Prudence networks would have direct access to the LLM's own uncertainty, transforming ambiguity detection from inference to observation. This is not a requirement but a proposed interface standard that would benefit the entire agent safety ecosystem.

··· 1 unchanged paragraph folded ···

v1.0 · 5. Five Competing Architectures (A–E)## 5. Five Competing Architectures
v2.0 · 5. Five Competing Architectures (A–E)## 5. Five Competing Architectures (A–E)
v1.0 · 5. Five Competing ArchitecturesA key question is what temporal model best captures the structure of catastrophic failure prediction. We propose training five architectures in parallel, evaluating each against the same held-out dataset, and selecting the best performer (or ensembling multiple).
removed in v2.0
v1.0 · 5.1 Architecture 1: GRU-MLP (Baseline)### 5.1 Architecture 1: GRU-MLP (Baseline)
removed in v2.0
v1.0 · 5.1 Architecture 1: GRU-MLP (Baseline)**Design:** A Gated Recurrent Unit processes the sequence of situation embeddings, followed by an MLP producing the multi-head output.
removed in v2.0
v1.0 · 5.1 Architecture 1: GRU-MLP (Baseline)``` Input: [s_{t-K+1}, ..., s_t] ∈ R^{K×384} │ ▼ GRU(input=384, hidden=128, layers=1) │ h_t ∈ R^128 ▼ Linear(128, 64) → LayerNorm → GELU │ ▼ Linear(64, 32) → LayerNorm → GELU │ ▼ Multi-head output (32 → 12) ```
removed in v2.0
v1.0 · 5.1 Architecture 1: GRU-MLP (Baseline)**Parameter count:** ~210K - GRU: 384×128×3 (gates) + 128×128×3 (recurrent) + biases ≈ 197K - MLP: 128×64 + 64×32 + 32×12 + biases ≈ 11K - Total: ~208K
removed in v2.0
v1.0 · 5.1 Architecture 1: GRU-MLP (Baseline)**Training requirements:** Minimal. Trains in minutes on CPU for our dataset sizes. Nightly retraining is trivial.
removed in v2.0
v1.0 · 5.1 Architecture 1: GRU-MLP (Baseline)**Strengths:** - Simple, well-understood architecture with strong empirical baselines for sequence modeling - Sequential processing naturally captures temporal dependencies - Low parameter count reduces overfitting risk on small datasets - Hidden state provides interpretable "memory" that can be inspected
removed in v2.0
v1.0 · 5.1 Architecture 1: GRU-MLP (Baseline)**Weaknesses:** - Sequential processing means training cannot be parallelised across time steps - May struggle with long-range dependencies (though $K=32$ is short enough this is unlikely) - Single hidden state may be too compressed to capture multi-factor risk patterns
removed in v2.0
not in v1.0
v2.0 · 5.0 Why Five Architectures?### 5.0 Why Five Architectures?
not in v1.0
v2.0 · 5.0 Why Five Architectures?A natural question: why not pick the best architecture and use it?
not in v1.0
v2.0 · 5.0 Why Five Architectures?The answer comes from practical experience training neural networks: you rarely get the most performant architecture on the first try. The relationship between architecture and task is empirical — theory narrows the space but doesn't select the winner. Two decades of deep learning research have shown repeatedly that architectures which "should" work best on paper underperform architectures that "shouldn't" — CNNs beating RNNs on some sequence tasks, simple MLPs rivalling Transformers on tabular data.
not in v1.0
v2.0 · 5.0 Why Five Architectures?Training five architectures in parallel provides three benefits:
not in v1.0
v2.0 · 5.0 Why Five Architectures?1. **Robustness through aggregation.** An ensemble of five diverse architectures is more robust than any single architecture. When one network makes an error on an unusual input, the others may catch it — like having five doctors review a scan instead of one.
not in v1.0
v2.0 · 5.0 Why Five Architectures?2. **Meta-learning from disagreement.** Logs of which architecture performs best on which type of situation inform next-generation design. If the Dual-Encoder consistently outperforms on contradiction-detection tasks (as theoretically expected) but the GRU-MLP wins on sequential patterns, we learn something about the structure of the problem.
not in v1.0
v2.0 · 5.0 Why Five Architectures?3. **Avoiding premature commitment.** The cost of training five 200K-parameter networks is negligible — all five combined are smaller than a single layer of GPT-2. The cost of committing to the wrong architecture and discovering it months later is much higher.
not in v1.0
v2.0 · 5.0 Why Five Architectures?Each architecture is trained in both the Prudence and Personality families (10 networks total), using the same temporal model design but different output heads as described in §4.4 and §4.5.
not in v1.0
v2.0 · 5.1 Architecture A: GRU-MLP (Baseline)### 5.1 Architecture A: GRU-MLP (Baseline)
not in v1.0
v2.0 · 5.1 Architecture A: GRU-MLP (Baseline)**Design:** A Gated Recurrent Unit processes the sequence of situation embeddings, followed by an MLP producing the family-specific output. The GRU processes the situation sequence like reading a book — each new page is understood in the context of everything read so far, with a running summary that updates at each step.
not in v1.0
v2.0 · 5.1 Architecture A: GRU-MLP (Baseline)``` Input: [s_{t-K+1}, ..., s_t] ∈ R^{K×512} │ ▼ Projection(512 → 384) │ ▼ GRU(input=384, hidden=128, layers=1) │ h_t ∈ R^128 ▼ Linear(128, 64) → LayerNorm → GELU │ ▼ Linear(64, 32) → LayerNorm → GELU │ ▼ Family-specific output heads (32 → ...) ```
not in v1.0
v2.0 · 5.1 Architecture A: GRU-MLP (Baseline)**Parameter count:** ~210K - Projection: 512×384 ≈ 197K... let me recalculate with the projection built into GRU. - GRU: 384×128×3 (gates) + 128×128×3 (recurrent) + biases ≈ 197K - MLP: 128×64 + 64×32 + 32× output + biases ≈ 11K - Total: ~208K
not in v1.0
v2.0 · 5.1 Architecture A: GRU-MLP (Baseline)**Training requirements:** Trains in minutes on a consumer GPU for our dataset sizes. Nightly retraining is trivial — like retraining a spam filter, not training GPT-4.
not in v1.0
v2.0 · 5.1 Architecture A: GRU-MLP (Baseline)**Strengths:** - Simple, well-understood architecture with strong empirical baselines for sequence modelling - Sequential processing naturally captures temporal dependencies — "what happened before matters for what's happening now" - Low parameter count reduces overfitting risk on small datasets - Hidden state provides interpretable "memory" that can be inspected — you can ask "what is the GRU remembering?" by examining $h_t$
not in v1.0
v2.0 · 5.1 Architecture A: GRU-MLP (Baseline)**Weaknesses:** - Sequential processing means training cannot be parallelised across time steps (though at $K=32$, this is negligible) - Single hidden state may be too compressed to capture multi-factor risk patterns — like summarising a novel in one sentence - Potential gradient issues for very long sequences (mitigated by $K=32$ being short)

··· 1 unchanged paragraph folded ···

v1.0 · 5.2 Architecture B: Temporal Convolutional Network (TCN)### 5.2 Architecture 2: Temporal Convolutional Network (TCN)
v2.0 · 5.2 Architecture B: Temporal Convolutional Network (TCN)### 5.2 Architecture B: Temporal Convolutional Network (TCN)
v1.0 · 5.2 Architecture 2: Temporal Convolutional Network (TCN)**Design:** 1D dilated causal convolutions over the embedding sequence. Each layer uses progressively larger dilation to capture patterns at different timescales.
removed in v2.0
not in v1.0
v2.0 · 5.2 Architecture B: Temporal Convolutional Network (TCN)**Design:** 1D dilated causal convolutions over the embedding sequence. Each layer uses progressively larger dilation to capture patterns at different timescales. Think of it like looking at a photograph at different zoom levels simultaneously — the close-up shows texture (recent events), the medium shot shows composition (session-level patterns), and the wide shot shows context (overall trajectory).
v1.0 · 5.2 Architecture B: Temporal Convolutional Network (TCN)``` Input: [s_{t-K+1}, ..., s_t] ∈ R^{K×384} │ ▼ Conv1D(384→128, kernel=3, dilation=1) → LayerNorm → GELU → Dropout(0.1) │ ▼ Conv1D(128→128, kernel=3, dilation=2) → LayerNorm → GELU → Dropout(0.1) │ ▼ Conv1D(128→128, kernel=3, dilation=4) → LayerNorm → GELU → Dropout(0.1) │ ▼ Conv1D(128→64, kernel=3, dilation=8) → LayerNorm → GELU → Dropout(0.1) │ take last position ▼ Multi-head output (64 → 12) ```
v2.0 · 5.2 Architecture B: Temporal Convolutional Network (TCN)``` Input: [s_{t-K+1}, ..., s_t] ∈ R^{K×512} │ ▼ Projection(512 → 384) │ ▼ Conv1D(384→128, kernel=3, dilation=1) → LayerNorm → GELU → Dropout(0.1) │ ▼ Conv1D(128→128, kernel=3, dilation=2) → LayerNorm → GELU → Dropout(0.1) │ ▼ Conv1D(128→128, kernel=3, dilation=4) → LayerNorm → GELU → Dropout(0.1) │ ▼ Conv1D(128→64, kernel=3, dilation=8) → LayerNorm → GELU → Dropout(0.1) │ take last position ▼ Family-specific output heads (64 → ...) ```

··· 1 unchanged paragraph folded ···

v1.0 · 5.2 Architecture 2: Temporal Convolutional Network (TCN)**Parameter count:** ~260K - Conv layers: 384×128×3 + 128×128×3×3 + 128×64×3 + biases ≈ 258K - Output: 64×12 + biases ≈ 0.8K - Total: ~259K
removed in v2.0
not in v1.0
v2.0 · 5.2 Architecture B: Temporal Convolutional Network (TCN)**Parameter count:** ~260K
v1.0 · 5.2 Architecture B: Temporal Convolutional Network (TCN)**Training requirements:** Fully parallelisable across time steps. Faster training than GRU for equivalent epochs. Same hardware requirements (CPU-trainable).
v2.0 · 5.2 Architecture B: Temporal Convolutional Network (TCN)**Training requirements:** Fully parallelisable across time steps. Faster training than GRU for equivalent epochs on GPU. Each convolution operation processes the entire sequence simultaneously.
v1.0 · 5.2 Architecture B: Temporal Convolutional Network (TCN)**Strengths:** - Parallelisable training — faster wall-clock time - Dilated convolutions capture multi-scale temporal patterns explicitly - No vanishing gradient problem — direct gradient paths through skip connections (if added) - Causal convolution ensures the model cannot look ahead
v2.0 · 5.2 Architecture B: Temporal Convolutional Network (TCN)**Strengths:** - Parallelisable training — faster wall-clock time on GPU - Dilated convolutions capture multi-scale temporal patterns explicitly — each layer "sees" a different time horizon - No vanishing gradient problem — direct gradient paths through residual connections - Causal convolution ensures the model cannot look ahead (it only sees the past, as it should)
v1.0 · 5.2 Architecture B: Temporal Convolutional Network (TCN)**Weaknesses:** - Fixed receptive field — cannot adapt to variable-length relevant history - No explicit "memory" — patterns beyond the receptive field are invisible - May need more layers/parameters than GRU for equivalent temporal reasoning
v2.0 · 5.2 Architecture B: Temporal Convolutional Network (TCN)**Weaknesses:** - Fixed receptive field — cannot adapt to variable-length relevant history - No explicit "memory" — patterns beyond the receptive field are invisible, unlike GRU's potentially infinite memory - May need more layers/parameters than GRU for equivalent temporal reasoning

··· 1 unchanged paragraph folded ···

v1.0 · 5.3 Architecture C: Transformer-Micro### 5.3 Architecture 3: Transformer-Micro
v2.0 · 5.3 Architecture C: Transformer-Micro### 5.3 Architecture C: Transformer-Micro
v1.0 · 5.3 Architecture C: Transformer-Micro**Design:** 2-layer, 4-head self-attention over situation embeddings with learned positional encoding. Tests whether attention patterns reveal structure the GRU misses.
v2.0 · 5.3 Architecture C: Transformer-Micro**Design:** 2-layer, 4-head self-attention over situation embeddings with learned positional encoding. Tests whether attention patterns reveal structure the GRU misses. The Transformer processes the sequence not left-to-right but all-at-once, asking "which past situations are most relevant to the current one?" through its attention mechanism.
v1.0 · 5.3 Architecture C: Transformer-Micro``` Input: [s_{t-K+1}, ..., s_t] ∈ R^{K×384} │ ▼ Linear(384 → 128) → Positional encoding (learned, K positions) │ ▼ TransformerEncoderLayer(d_model=128, nhead=4, d_ff=256, dropout=0.1) │ ▼ TransformerEncoderLayer(d_model=128, nhead=4, d_ff=256, dropout=0.1) │ take [CLS] token or mean-pool ▼ Linear(128, 64) → GELU │ ▼ Multi-head output (64 → 12) ```
v2.0 · 5.3 Architecture C: Transformer-Micro``` Input: [s_{t-K+1}, ..., s_t] ∈ R^{K×512} │ ▼ Linear(512 → 96) → Positional encoding (learned, K positions) │ ▼ TransformerEncoderLayer(d_model=96, nhead=4, d_ff=192, dropout=0.1) │ ▼ TransformerEncoderLayer(d_model=96, nhead=4, d_ff=192, dropout=0.1) │ mean-pool across positions ▼ Linear(96, 64) → GELU │ ▼ Family-specific output heads (64 → ...) ```
v1.0 · 5.3 Architecture 3: Transformer-Micro**Parameter count:** ~150K - Input projection: 384×128 ≈ 49K - Positional encoding: 32×128 ≈ 4K - Transformer layer ×2: (128×128×4 [Q,K,V,O] + 128×256 + 256×128) ×2 ≈ 263K — wait, that's too high. Let me recalculate. - Self-attention: $4 \times d_{model} \times d_{model} = 4 \times 128 \times 128 = 65.5K$ per layer - FFN: $128 \times 256 + 256 \times 128 = 65.5K$ per layer - Per layer: ~131K. Two layers: ~262K — this exceeds 150K target.
removed in v2.0
v1.0 · 5.3 Architecture 3: Transformer-MicroLet me adjust: use $d_{model} = 96$, $d_{ff} = 192$: - Input projection: 384×96 ≈ 37K - Positional: 32×96 ≈ 3K - Transformer layer: 4×96×96 + 96×192 + 192×96 ≈ 74K per layer. Two layers: ~148K - Output: 96×12 ≈ 1.2K
removed in v2.0
v1.0 · 5.3 Architecture 3: Transformer-Micro**Revised parameter count:** ~150K (with $d_{model} = 96$, $n_{head} = 4$, $d_{ff} = 192$, $n_{layers} = 2$)
removed in v2.0
not in v1.0
v2.0 · 5.3 Architecture C: Transformer-Micro**Parameter count:** ~190K - Input projection: 512×96 ≈ 49K - Positional encoding: 32×96 ≈ 3K - Transformer layer ×2: ~74K per layer ≈ 148K total - Output: 96×64 + 64×output ≈ 7K
v1.0 · 5.3 Architecture C: Transformer-Micro**Training requirements:** More compute-intensive per parameter than GRU or TCN due to $O(K^2)$ attention. At $K=32$, this is 1024 pairwise comparisons — trivial for modern hardware.
v2.0 · 5.3 Architecture C: Transformer-Micro**Training requirements:** More compute-intensive per parameter than GRU or TCN due to $O(K^2)$ attention. At $K=32$, this is 1024 pairwise comparisons — trivial for any modern GPU.
v1.0 · 5.3 Architecture C: Transformer-Micro**Strengths:** - Attention patterns are directly interpretable: "this action is risky *because* of step 7 (high attention weight on the recent overwrite)" - Self-attention can capture arbitrary pairwise relationships between situation steps - Proven architecture for sequence understanding at scale - Attention maps provide built-in explainability for blocked actions
v2.0 · 5.3 Architecture C: Transformer-Micro**Strengths:** - **Attention patterns are directly interpretable:** "this action is risky *because* of step 7 (high attention weight on the recent overwrite)." This is enormously valuable for explaining blocked actions to users. - Self-attention can capture arbitrary pairwise relationships between situation steps — it doesn't need them to be adjacent in time - Proven architecture for sequence understanding
v1.0 · 5.3 Architecture C: Transformer-Micro**Weaknesses:** - $O(K^2)$ attention cost (negligible at $K=32$, relevant if scaled) - Positional encoding may be unnecessary for short sequences where the GRU's inherent ordering suffices - More prone to overfitting than GRU/TCN at small data scales - "Overkill" concern: this is 32 vectors of 384d, not GPT-scale sequences
v2.0 · 5.3 Architecture C: Transformer-Micro**Weaknesses:** - Positional encoding may be unnecessary for short sequences where the GRU's inherent ordering suffices - More prone to overfitting than GRU/TCN at small data scales — Transformers are data-hungry - "Overkill" concern: this is 32 vectors of 512d, not GPT-scale sequences

··· 1 unchanged paragraph folded ···

v1.0 · 5.4 Architecture D: Dual-Encoder with Cross-Attention### 5.4 Architecture 4: Dual-Encoder with Cross-Attention
v2.0 · 5.4 Architecture D: Dual-Encoder with Cross-Attention### 5.4 Architecture D: Dual-Encoder with Cross-Attention
v1.0 · 5.4 Architecture D: Dual-Encoder with Cross-Attention**Design:** Separate encoders for "proposed action" (current situation embedding) and "recent context" (sequence of recent embeddings), with cross-attention to find contradictions between what the agent is about to do and what has recently happened.
v2.0 · 5.4 Architecture D: Dual-Encoder with Cross-Attention**Design:** Separate encoders for "proposed action" (current situation embedding) and "recent context" (sequence of recent embeddings), with cross-attention to find contradictions between what the agent is about to do and what has recently happened. This is architecturally designed for the README debacle: "you're about to overwrite a file" (proposed action) contradicts "you just spent 8 hours editing that file" (recent context).
v1.0 · 5.4 Architecture D: Dual-Encoder with Cross-Attention``` Proposed action: s_t ∈ R^384 Recent context: [s_{t-K+1}, ..., s_{t-1}] ∈ R^{(K-1)×384} │ │ ▼ ▼ Linear(384→128) GRU(384→128) or Mean-pool │ q ∈ R^128 │ C ∈ R^{(K-1)×128} or R^128 ▼ ▼ └──────────── Cross-Attention ────────────────┘ │ q attends to C │ attended ∈ R^128 ▼ [q ⊕ attended] ∈ R^256 │ Linear(256→64) → GELU │ Multi-head output (64→12) ```
v2.0 · 5.4 Architecture D: Dual-Encoder with Cross-Attention``` Proposed action: s_t ∈ R^512 Recent context: [s_{t-K+1}, ..., s_{t-1}] ∈ R^{(K-1)×512} │ │ ▼ ▼ Linear(512→128) GRU(512→128) or Mean-pool │ q ∈ R^128 │ C ∈ R^{(K-1)×128} or R^128 ▼ ▼ └──────────── Cross-Attention ────────────────┘ │ q attends to C │ attended ∈ R^128 ▼ [q ⊕ attended] ∈ R^256 │ Linear(256→64) → GELU │ Family-specific output heads (64 → ...) ```
v1.0 · 5.4 Architecture 4: Dual-Encoder with Cross-Attention**For the cross-attention variant with context GRU:**
removed in v2.0
v1.0 · 5.4 Architecture 4: Dual-Encoder with Cross-Attention**Parameter count:** ~310K - Action encoder: 384×128 ≈ 49K - Context GRU: similar to Architecture 1 ≈ 197K - Cross-attention (Q, K, V projections): 3×128×128 ≈ 49K - MLP + output: ~15K - Total: ~310K
removed in v2.0
not in v1.0
v2.0 · 5.4 Architecture D: Dual-Encoder with Cross-Attention**Parameter count:** ~310K
v1.0 · 5.4 Architecture D: Dual-Encoder with Cross-Attention**Training requirements:** Higher than GRU-MLP due to additional parameters and the cross-attention mechanism. Still CPU-trainable for our data scales.
v2.0 · 5.4 Architecture D: Dual-Encoder with Cross-Attention**Training requirements:** Higher than GRU-MLP due to additional parameters and the cross-attention mechanism. Still trivially trainable on a consumer GPU.
v1.0 · 5.4 Architecture D: Dual-Encoder with Cross-Attention**Strengths:** - **Architecturally designed for contradiction detection.** The cross-attention explicitly compares "what I'm about to do" against "what recently happened." This is precisely the structure of the README debacle: the proposed action (overwrite) contradicts recent context (heavy editing). - Separate encoders prevent the proposed action from being "washed out" by the context sequence - Cross-attention weights are highly interpretable: "I'm blocking this because of high attention on yesterday's editing session"
v2.0 · 5.4 Architecture D: Dual-Encoder with Cross-Attention**Strengths:** - **Architecturally designed for contradiction detection.** The cross-attention explicitly compares "what I'm about to do" against "what recently happened." This is the structure of the README debacle: the proposed action (overwrite) contradicts recent context (heavy editing). Like a proofreader who reads a sentence against the paragraph — the dual structure is built for catching inconsistencies. - Separate encoders prevent the proposed action from being "washed out" by the context sequence - Cross-attention weights are highly interpretable: "I'm blocking this because of high attention on yesterday's editing session"

··· 1 unchanged paragraph folded ···

v1.0 · 5.4 Architecture D: Dual-Encoder with Cross-Attention**What it tests:** Whether *explicit architectural separation* of "what I'm about to do" from "what has recently happened" improves contradiction detection compared to architectures that process them jointly. This is the most theoretically motivated architecture for the action gating task.
v2.0 · 5.4 Architecture D: Dual-Encoder with Cross-Attention**What it tests:** Whether *explicit architectural separation* of "what I'm about to do" from "what has recently happened" improves contradiction detection compared to architectures that process them jointly.
v1.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)### 5.5 Architecture 5: Ensemble MLP (No-Temporal Baseline)
v2.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)### 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)
v1.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)**Design:** A simple feedforward MLP on the *current situation embedding only* (no temporal context), but with 3 independent heads that vote. This is the ablation control: it tests whether temporal context actually matters, or whether better feature representation (situation embeddings vs. hand-crafted features) is sufficient.
v2.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)**Design:** A simple feedforward MLP on the *current situation embedding only* (no temporal context), but with 3 independent sub-heads that vote. This is the ablation control — the experiment that tests whether temporal context actually matters, or whether better feature representation (situation embeddings vs. hand-crafted features) is sufficient.
v1.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)``` Input: s_t ∈ R^384 │ ├─────────────────────┬───────────────────────┐ ▼ ▼ ▼ MLP_1(384→128→64) MLP_2(384→128→64) MLP_3(384→128→64) │ │ │ ▼ ▼ ▼ Head_1(64→12) Head_2(64→12) Head_3(64→12) │ │ │ └─────── Vote/Average ───────────────────────┘ │ Final output ∈ R^12 ```
v2.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)``` Input: s_t ∈ R^512 │ ├─────────────────────┬───────────────────────┐ ▼ ▼ ▼ MLP_1(512→128→64) MLP_2(512→128→64) MLP_3(512→128→64) │ │ │ ▼ ▼ ▼ Head_1(64→out) Head_2(64→out) Head_3(64→out) │ │ │ └─────── Vote/Average ───────────────────────┘ │ Final output ```
v1.0 · 5.5 Architecture 5: Ensemble MLP (No-Temporal Baseline)**Parameter count:** ~180K (60K per MLP head × 3) - Per head: 384×128 + 128×64 + 64×12 + biases ≈ 58K - Three heads: ~174K - Total: ~174K
removed in v2.0
not in v1.0
v2.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)**Parameter count:** ~200K (67K per MLP sub-head × 3)
v1.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)**Training:** Each head is trained independently with different random initialisation (and optionally different dropout masks or data subsampling). This provides diversity without architectural complexity.
v2.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)**Training:** Each sub-head is trained independently with different random initialisation (and optionally different dropout masks). This provides diversity without architectural complexity.
v1.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)**Voting strategy:** For action_confidence specifically: - **Conservative vote:** Take the *minimum* confidence across all 3 heads. If any head thinks it's dangerous, block. This maximises safety at the cost of more false positives. - **Majority vote:** Block if ≥ 2 heads have confidence below threshold. Balanced approach. - **Weighted average:** Average weighted by each head's historical accuracy. Adaptive approach.
v2.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)**Voting strategy for Prudence:** Take the *minimum* confidence across all 3 sub-heads. If any sub-head thinks it's dangerous, flag it. This maximises safety at the cost of more false positives — like the "most cautious member wins" policy in a bomb squad.
v1.0 · 5.5 Architecture 5: Ensemble MLP (No-Temporal Baseline)For secondary heads (retrieval, tone, curiosity): simple average.
removed in v2.0
v1.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)**Strengths:** - Simplest architecture — easiest to debug, train, and deploy - No temporal modeling means faster inference and smaller memory footprint - Multiple heads provide calibration and uncertainty estimation (high disagreement = uncertain situation) - Tests the hypothesis that temporal context matters
v2.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)**Strengths:** - Simplest architecture — easiest to debug, train, and deploy - No temporal modelling means faster inference and smaller memory footprint - Multiple sub-heads provide calibration and uncertainty estimation (high disagreement = uncertain situation) - The critical ablation: tests whether temporal context matters
v1.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)**Weaknesses:** - Cannot learn temporal patterns ("you just edited this file") — sees only the current situation - Relies entirely on the situation description containing all relevant context (which the template tries to ensure) - Independent heads may converge to similar solutions despite different initialisation
v2.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)**Weaknesses:** - Cannot learn temporal patterns ("you just edited this file") — sees only the current situation - Relies entirely on the situation description containing all relevant context (which the template tries to ensure via `recent_commits`, `effort_hours`, etc.) - Independent sub-heads may converge to similar solutions despite different initialisation
v1.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)**What it tests:** The central question: *does temporal context actually help?* If the Ensemble MLP performs comparably to temporal architectures, the answer is "no — better features are sufficient." If temporal architectures significantly outperform, temporal context is essential for common sense.
v2.0 · 5.5 Architecture E: Ensemble MLP (No-Temporal Baseline)**What it tests:** The central question: *does temporal context actually help?* If Architecture E performs comparably to Architectures A–D, the answer is "no — better features are sufficient." If temporal architectures significantly outperform, temporal context is essential for common sense.

··· 1 unchanged paragraph folded ···

v1.0 · 5.6 Architecture Comparison Summary| Architecture | Params | Temporal | Parallelisable | Key Test | |-------------|--------|----------|---------------|----------| | GRU-MLP | ~210K | Yes (recurrent) | No | Baseline temporal model | | TCN | ~260K | Yes (convolutional) | Yes | Parallel temporal processing | | Transformer-Micro | ~150K | Yes (attention) | Yes | Interpretable attention patterns | | Dual-Encoder | ~310K | Yes (cross-attention) | Partial | Explicit contradiction detection | | Ensemble MLP | ~174K | No | Yes | Whether temporal context matters |
v2.0 · 5.6 Architecture Comparison Summary| Label | Architecture | Params | Temporal | Parallelisable | Key Test | |-------|-------------|--------|----------|---------------|----------| | **A** | GRU-MLP | ~210K | Yes (recurrent) | No | Baseline temporal model | | **B** | TCN | ~260K | Yes (convolutional) | Yes | Parallel temporal processing | | **C** | Transformer-Micro | ~190K | Yes (attention) | Yes | Interpretable attention patterns | | **D** | Dual-Encoder | ~310K | Yes (cross-attention) | Partial | Explicit contradiction detection | | **E** | Ensemble MLP | ~200K | No | Yes | Whether temporal context matters |

··· 2 unchanged paragraphs folded ···

v1.0 · 5.7 Meta-Learning: Selecting and Combining Architectures1. **Train all 5 architectures** on the same training set with the same loss function. 2. **Evaluate on a held-out validation set** — the Catastrophic Failure Database (§6) provides the evaluation benchmark. 3. **For production inference**, run all 5 in parallel (<5ms total on CPU via ONNX) and combine via a learned linear combination:
v2.0 · 5.7 Meta-Learning: Selecting and Combining Architectures1. **Train all 5 architectures** on the same training set with the appropriate family-specific loss function. 2. **Evaluate on a held-out validation set** — the Catastrophic Failure Database (§6) provides the Prudence evaluation benchmark. 3. **For production inference**, run all 5 in parallel (<5ms total on GPU via ONNX) and combine via a learned linear combination:
v1.0 · 5.7 Meta-Learning: Selecting and Combining Architectures$$\text{action\_confidence}_{\text{final}} = \sum_{i=1}^{5} w_i \cdot \text{action\_confidence}_i$$
v2.0 · 5.7 Meta-Learning: Selecting and Combining Architectures$$\text{gate\_decision}_{\text{final}} = \sum_{i=1}^{5} w_i \cdot \text{gate\_decision}_i$$
v1.0 · 5.7 Meta-Learning: Selecting and Combining Architectureswhere $w_i$ are learned weights updated monthly based on each architecture's predictive accuracy.
v2.0 · 5.7 Meta-Learning: Selecting and Combining Architectureswhere $w_i$ are learned weights updated monthly based on each architecture's predictive accuracy on recent data.
v1.0 · 5.7 Meta-Learning: Selecting and Combining Architectures**Conservative override:** If *any* architecture outputs confidence below the hard-block threshold, the action is blocked regardless of the ensemble's average. This implements a "most cautious voice wins" policy for catastrophic risk prevention.
v2.0 · 5.7 Meta-Learning: Selecting and Combining Architectures**Conservative override:** If *any* architecture outputs a "stop" decision with confidence above a threshold, the action is blocked regardless of the ensemble's aggregate. This implements a "most cautious voice wins" policy for catastrophic risk prevention.
v1.0 · 5.7 Meta-Learning: Selecting and Combining Architectures**Disagreement as signal:** High variance across architectures indicates an unusual situation. When $\text{std}(\text{confidence}_1, \ldots, \text{confidence}_5) > \tau$, the system defaults to user confirmation regardless of the mean confidence. Disagreement among models is itself evidence of ambiguity.
v2.0 · 5.7 Meta-Learning: Selecting and Combining Architectures**Disagreement as signal:** High variance across architectures indicates an unusual situation. When $\text{std}(\text{confidence}_1, \ldots, \text{confidence}_5) > \tau$, the system defaults to user confirmation regardless of the mean confidence. Disagreement among models is itself evidence of ambiguity — and it feeds into the conformal prediction framework (§4.7), which widens prediction sets when individual networks disagree.

··· 4 unchanged paragraphs folded ···

v1.0 · 6.1 MotivationThe Catastrophic Failure Database (CFD) addresses this by aggregating failure data from multiple sources, creating a structured corpus of (situation, outcome) pairs that can be used for:
v2.0 · 6.1 MotivationThe Catastrophic Failure Database (CFD) addresses this by aggregating failure data from multiple sources, creating a structured corpus of (situation, outcome) pairs that serves as the pilot's "accident investigation reports" library — a curated collection of things that went catastrophically wrong, studied not for blame but so the patterns become recognisable before they repeat.
v1.0 · 6.1 Motivation1. **Pre-training:** Learn from documented failures before seeing any of our own 2. **Evaluation benchmark:** Systematically test whether the network would have caught known failures 3. **Continuous expansion:** New failures (our own and publicly documented) are added as they occur
v2.0 · 6.1 MotivationThe CFD serves three purposes: 1. **Pre-training:** Learn from documented failures before seeing any of our own 2. **Evaluation benchmark:** Systematically test whether the Prudence networks would have caught known failures 3. **Continuous expansion:** New failures (our own and publicly documented) are added as they occur

··· 3 unchanged paragraphs folded ···

not in v1.0
v2.0 · 6.2 Sources**Distribution mismatch note:** Internet-sourced failures are structurally different from personal interaction failures. A healthcare AI misdiagnosis and a README overwrite share the meta-pattern (confident wrong action) but differ in every specific feature. CFD examples therefore receive lower training weight (0.5×) than personal history examples (1.0×) during fine-tuning, while retaining full weight during pre-training where they serve as the primary data source.

··· 2 unchanged paragraphs folded ···

v1.0 · 6.3 Taxonomy**Dimension 1: Failure Mechanism** - **F1: Stale context** — Action was correct in the past, wrong now. (README debacle, outdated API key rotation.) - **F2: Scope escalation** — Action affected more than intended. (Email mass-deletion, drive wipe.) - **F3: Social boundary violation** — Action was technically permitted but socially wrong. (Reaction spam, unauthorized DMs.) - **F4: Cascade/compound error** — Multiple small errors combined catastrophically. (Multi-agent miscoordination.) - **F5: Hallucination-driven action** — LLM fabricated context that led to wrong action. (Cursor "Sam" policy fabrication.) - **F6: Ambiguity exploitation** — Ambiguous instruction interpreted in the most harmful way. (Replit "clean up" → delete.) - **F7: Automation trust excess** — Human trusted automation output without verification. (Antigravity drive wipe.)
v2.0 · 6.3 Taxonomy**Dimension 1: Failure Mechanism** - **F1: Stale context** — Action was correct in the past, wrong now. (README debacle, outdated API key rotation.) - **F2: Scope escalation** — Action affected more than intended. (Email mass-deletion, drive wipe, Claude Code data exposure.) - **F3: Social boundary violation** — Action was technically permitted but socially wrong. (Reaction spam, unauthorised DMs.) - **F4: Cascade/compound error** — Multiple small errors combined catastrophically. (Multi-agent miscoordination.) - **F5: Hallucination-driven action** — LLM fabricated context that led to wrong action. (Cursor "Sam" policy fabrication.) - **F6: Ambiguity exploitation** — Ambiguous instruction interpreted in the most harmful way. (Replit "clean up" → delete.) - **F7: Automation trust excess** — Human trusted automation output without verification. (Antigravity drive wipe.)

··· 6 unchanged paragraphs folded ···

v1.0 · 6.4 Converting Failures to Training Examples2. **Fill the situation template** (§4.2) with the extracted information. Fields that cannot be determined from the report receive defaults.
v2.0 · 6.4 Converting Failures to Training Examples2. **Fill the situation template** (§4.3) with the extracted information. Fields that cannot be determined from the report receive defaults.
v1.0 · 6.4 Converting Failures to Training Examples3. **Serialise and embed** the situation template via the frozen sentence encoder.
v2.0 · 6.4 Converting Failures to Training Examples3. **Serialise and embed** the situation template via the frozen sentence encoder and projection layer.
v1.0 · 6.4 Converting Failures to Training Examples4. **Label:** For CFD entries, the label is always `action_confidence_target = 0.0` (the action should not have proceeded). The taxonomy dimensions provide additional supervised signal for auxiliary loss terms.
v2.0 · 6.4 Converting Failures to Training Examples4. **Label:** For CFD entries, the Prudence label is always `gate_decision_target = stop` (the action should not have proceeded). The taxonomy dimensions provide additional supervised signal for auxiliary loss terms.

··· 1 unchanged paragraph folded ···

v1.0 · 6.4 Converting Failures to Training Examples``` action_type: overwrite target_type: file target_id: README.md target_metadata: age_hours: 2160 # file existed for months size: 14200 bytes recent_commits: 6 # 6 commits in last 48h recent_authors: 4 # 4 sub-agents contributed effort_hours: 8.5 # estimated from session logs last_human_ref: 3 # discussed 3 hours ago context: session_topic: "upstream merge automation" recent_corrections: 2 emotional_signals: "frustrated" automation_depth: 2 # merge script → git checkout scope: reversible: true # git can recover, but... blast_radius: persistent # changes working tree human_in_loop: false # fully automated confirmation: none ```
v2.0 · 6.4 Converting Failures to Training Examples``` action_type: overwrite target_type: file target_id: README.md target_metadata: age_hours: 2160 # file existed for months size: 14200 bytes recent_commits: 6 # 6 commits in last 48h recent_authors: 4 # 4 sub-agents contributed effort_hours: 8.5 # estimated from session logs last_human_ref: 3 # discussed 3 hours ago context: session_topic: "upstream merge automation" recent_corrections: 2 emotional_signals: "frustrated" automation_depth: 2 # merge script → git checkout topic_drift: 0.72 # high — merge automation is broad, # but target is a specific heavily-edited file scope: reversible: true # git can recover, but... blast_radius: persistent # changes working tree human_in_loop: false # fully automated confirmation: none ```
v1.0 · 6.4 Converting Failures to Training Examples**Target:** `action_confidence = 0.0` (F1: Stale context, R1: Reversible, B3: Persistent, D2: Delayed)
v2.0 · 6.4 Converting Failures to Training Examples**Target:** `gate_decision = stop` (F1: Stale context, R1: Reversible, B3: Persistent, D2: Delayed)
v1.0 · 6.4 Converting Failures to Training ExamplesA human reading this template would immediately flag: 6 recent commits, 4 authors, 8.5 hours of effort, and we're about to overwrite with no confirmation? AMYGDALA must learn to flag it too.
v2.0 · 6.4 Converting Failures to Training ExamplesA human reading this template would immediately flag: 6 recent commits, 4 authors, 8.5 hours of effort, topic_drift of 0.72, and we're about to overwrite with no confirmation? AMYGDALA must learn to flag it too.

··· 3 unchanged paragraphs folded ···

v1.0 · 6.5 Synthetic Augmentation2. **Severity scaling:** Adjust metadata to create a spectrum. 6 recent commits → 2, 10, 20. This teaches the network *gradations* of risk, not just binary safe/unsafe.
v2.0 · 6.5 Synthetic Augmentation2. **Severity scaling:** Adjust metadata to create a spectrum. 6 recent commits → 2, 10, 20. This teaches the network *gradations* of risk, not just binary safe/unsafe. Like training a doctor on mild, moderate, and severe versions of the same condition.
v1.0 · 6.5 Synthetic Augmentation3. **Context injection:** Add or remove context signals. Same overwrite situation but with human_in_loop = true → should be safer (human can catch it). Same situation but with 0 recent commits → should be safe.
v2.0 · 6.5 Synthetic Augmentation3. **Context injection:** Add or remove context signals. Same overwrite situation but with human_in_loop = true → should be safer. Same situation but with 0 recent commits → should be safe.
v1.0 · 6.5 Synthetic Augmentation4. **Counterfactual generation:** For each negative example, generate the positive counterfactual. "Overwrite README with 0 recent commits, no recent effort, no emotional context" → `action_confidence = 1.0`.
v2.0 · 6.5 Synthetic Augmentation4. **Counterfactual generation:** For each negative example, generate the positive counterfactual. "Overwrite README with 0 recent commits, no recent effort, no emotional context" → `gate_decision = allow`. This teaches the network the *boundary* between safe and dangerous.

··· 7 unchanged paragraphs folded ···

v1.0 · 7.1 Initial Dataset CreationParse 18 months of session transcripts (stored in ENGRAM) for (situation, outcome) pairs:
removed in v2.0
not in v1.0
v2.0 · 7.1 Initial Dataset CreationParse approximately four months of session transcripts (stored in ENGRAM — the lossless event store that records every agent interaction as timestamped events) for (situation, outcome) pairs:
v1.0 · 7.1 Initial Dataset Creation1. Identify every action-taking event: file write, message send, command execution, retrieval query. 2. For each action, construct the situation template from logged metadata (git state, file metadata, session context). 3. Determine outcome: Was the action corrected within 24 hours? Was the user satisfied (positive signals) or dissatisfied (corrections, complaints)? 4. Label: correction within 24h → `action_confidence_target = 0.0–0.3` (scaled by severity). No complaint within 72h → `action_confidence_target = 0.8–1.0`. Explicit positive feedback → `action_confidence_target = 1.0`.
v2.0 · 7.1 Initial Dataset Creation1. Identify every action-taking event: file write, message send, command execution, retrieval query. 2. For each action, construct the situation template from logged metadata (git state, file metadata, session context). 3. Determine outcome: Was the action corrected within 24 hours? Was the user satisfied (positive signals) or dissatisfied (corrections, complaints)? 4. Label: correction within 24h → Prudence target `stop` (scaled by severity). No complaint within 72h → `allow`. Explicit positive feedback → `allow` with high confidence.

··· 6 unchanged paragraphs folded ···

v1.0 · 7.1 Initial Dataset CreationApply the augmentation strategies from §6.5 to all real examples. The total augmented dataset is approximately 10,000–15,000 examples — sufficient for a 150K–300K parameter network.
v2.0 · 7.1 Initial Dataset CreationApply the augmentation strategies from §6.5 to all real examples. The total augmented dataset is approximately 10,000–15,000 examples — sufficient for 150K–300K parameter networks, especially with the architectural diversity providing implicit regularisation.

··· 3 unchanged paragraphs folded ···

v1.0 · 7.2 Dataset Composition TargetsThe severe negative category is oversampled to ensure the network sees enough catastrophic examples despite their rarity. Loss weighting further emphasises these: severe negatives receive 5× loss weight.
v2.0 · 7.2 Dataset Composition TargetsThe severe negative category is oversampled to ensure the network sees enough catastrophic examples despite their rarity. Loss weighting further emphasises these: severe negatives receive 5× loss weight. Like a medical school that ensures students see rare but lethal conditions, not just common colds.

··· 3 unchanged paragraphs folded ···

v1.0 · 7.3 Ongoing Maintenance (While Working)Every action that passes through the execution pipeline (§4.7) generates a situation template. This is deterministic — the template is filled programmatically from observable state (git log, file metadata, session context), not by the LLM. The LLM contributes only to optional slots (emotional context, intent) that are low-weight in the model.
v2.0 · 7.3 Ongoing Maintenance (While Working)Every action that passes through the execution pipeline (§4.12) generates a situation template. This is deterministic — the template is filled programmatically from observable state (git log, file metadata, session context), not by the LLM. The LLM contributes only to optional slots (emotional context, intent) that are low-weight in the model.

··· 1 unchanged paragraph folded ···

v1.0 · 7.3 Ongoing Maintenance (While Working)Outcomes are determined by observable events, not LLM judgment: - User correction within 24 hours → negative outcome (severity scaled by correction type: verbal correction = mild, manual file restoration = severe, "never do that again" = catastrophic) - No complaint within 72 hours → positive outcome - Explicit positive feedback → strongly positive outcome
v2.0 · 7.3 Ongoing Maintenance (While Working)Outcomes are determined by observable events, not LLM judgement: - User correction within 24 hours → negative outcome (severity scaled by correction type: verbal correction = mild, manual file restoration = severe, "never do that again" = catastrophic) - No complaint within 72 hours → positive outcome - Explicit positive feedback → strongly positive outcome - User overrides soft block → the override itself is training data (user trusted their own judgment over the network's)

··· 1 unchanged paragraph folded ···

v1.0 · 7.3 Ongoing Maintenance (While Working)During the existing CEREBELLUM reflection cycle, AMYGDALA training is added:
v2.0 · 7.3 Ongoing Maintenance (While Working)During the existing CEREBELLUM reflection cycle (the nightly self-improvement process), AMYGDALA training is added:
v1.0 · 7.3 Ongoing Maintenance (While Working)1. Collect all (situation, outcome) pairs from the last 24 hours. 2. Validate against template schema (reject malformed entries). 3. Add to training buffer (rolling 90-day window). 4. Fine-tune all 5 architectures on the updated buffer (1–3 epochs, ~5 minutes on CPU). 5. Evaluate on held-out CFD benchmark. 6. Update meta-learner weights based on evaluation results. 7. Update trust ramp $\alpha$ based on overall performance.
v2.0 · 7.3 Ongoing Maintenance (While Working)1. Collect all (situation, outcome) pairs from the last 24 hours. 2. Validate against template schema (reject malformed entries). 3. Add to training buffer (rolling 90-day window, consistent with Riemer et al.'s experience replay for continual learning). 4. Fine-tune all 10 networks (5 Prudence + 5 Personality) on the updated buffer (1–3 epochs, ~5 minutes on GPU). 5. Evaluate Prudence networks on held-out CFD benchmark. 6. Update conformal prediction calibration sets. 7. Update meta-learner weights based on evaluation results. 8. Update trust ramp $\alpha$ based on conformal prediction set sizes.

··· 1 unchanged paragraph folded ···

v1.0 · 7.3 Ongoing Maintenance (While Working)Once per month, run the full evaluation suite: - Held-out CFD benchmark (did the network catch these known failures?) - False positive rate (how many safe actions were unnecessarily blocked?) - False negative rate (how many corrections occurred after AMYGDALA approved the action?) - Per-architecture comparison (which architectures are improving, which are stagnating?) - Calibration check (does confidence=0.5 correspond to roughly 50% positive outcomes?)
v2.0 · 7.3 Ongoing Maintenance (While Working)Once per month, run the full evaluation suite: - Held-out CFD benchmark (did the Prudence networks catch these known failures?) - False positive rate (how many safe actions were unnecessarily blocked?) - False negative rate (how many corrections occurred after Prudence approved the action?) - Per-architecture comparison (which architectures are improving, which are stagnating?) - Conformal calibration check (does 95% coverage actually hold?) - Personality network evaluation (engagement metrics, user satisfaction signals)

··· 2 unchanged paragraphs folded ···

v1.0 · 7.4 Data Hygiene1. **No single session > 10% of training data.** Prevents a single unusual session from shifting the learned distribution. 2. **CFD entries are never removed from the training set.** These are the most valuable negative examples and serve as anchors. 3. **Synthetic examples are regenerated quarterly** from the latest real examples, preventing stale augmentation. 4. **Distribution monitoring:** Track the ratio of positive/negative examples monthly. If the ratio drifts > 20% from targets, resample.
v2.0 · 7.4 Data Hygiene1. **No single session > 10% of training data.** Prevents a single unusual session from shifting the learned distribution. 2. **CFD entries are never removed from the training set.** These are the most valuable negative examples and serve as anchors — like the worst accident cases in pilot training, they're permanent curriculum. 3. **Synthetic examples are regenerated quarterly** from the latest real examples, preventing stale augmentation. 4. **Distribution monitoring:** Track the ratio of positive/negative examples monthly. If the ratio drifts > 20% from targets, resample. 5. **Experience replay buffer** follows Meta-Experience Replay principles (Riemer et al., 2018): examples are replayed in a way that maximises learning while minimising interference with previously learned patterns, preventing the network from forgetting old failure modes while learning new ones.

··· 5 unchanged paragraphs folded ···

not in v1.0
v2.0 · 8.1 The ProblemImagine a courtroom where the jury (LLM) gives the verdict but the judge (code) enforces the rules of evidence. If the jury can also fabricate the evidence, the entire system is compromised. AMYGDALA's pipeline must ensure the evidence is real.

··· 2 unchanged paragraphs folded ···

v1.0 · 8.1 The ProblemThis is not a theoretical concern. LLMs hallucinate regularly. In an adversarial setting (jailbreak, prompt injection), they can be directed to hallucinate in specific ways. AMYGDALA must be robust to this.
removed in v2.0

··· 4 unchanged paragraphs folded ···

v1.0 · 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 | | `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? |
v2.0 · 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 | | `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 |
v1.0 · 8.2 Principle: Verify What You Can, Downweight What You Can'tThese slots account for approximately 70% of the information the network uses for action gating. They are filled by deterministic code that cannot hallucinate.
v2.0 · 8.2 Principle: Verify What You Can, Downweight What You Can'tThese slots account for approximately 75% of the information the network uses for action gating. They are filled by deterministic code that cannot hallucinate.

··· 1 unchanged paragraph folded ···

v1.0 · 8.2 Principle: Verify What You Can, Downweight What You Can'tThese slots require judgment that only the LLM can provide:
removed in v2.0
v1.0 · 8.2 Principle: Verify What You Can, Downweight What You Can't| Slot | Why LLM-Only | Mitigation | |------|-------------|------------| | `effort_hours` | Requires understanding session context | Cross-check with session duration and action count | | `emotional_signals` | Requires natural language understanding | Low weight in model; validated against message length/frequency heuristics | | `session_topic` | Requires semantic understanding | Low weight; used for retrieval bias, not action gating |
removed in v2.0
not in v1.0
v2.0 · 8.2 Principle: Verify What You Can, Downweight What You Can'tExactly three slots require LLM judgement:
not in v1.0
v2.0 · 8.2 Principle: Verify What You Can, Downweight What You Can't| Slot | Why LLM-Only | Attack Surface | Mitigation | |------|-------------|----------------|------------| | `effort_hours` | Requires understanding session context | LLM could underestimate effort, making dangerous overwrites appear safe | Cross-check with session duration × action count heuristic | | `emotional_signals` | Requires natural language understanding | LLM could report "calm" when user is frustrated, suppressing appropriate caution | Cross-check with message length variance and correction frequency; 0.3× weight in model | | `session_topic` | Requires semantic understanding | LLM could mislabel the topic, affecting topic_drift calculation | Low weight (0.3×); topic_drift also uses the deterministic conversation centroid, not just this label |
v1.0 · 8.2 Principle: Verify What You Can, Downweight What You Can't**Key design decision:** LLM-estimated slots receive **0.3× weight** in the training loss compared to programmatically verifiable slots. This means the network learns to rely primarily on verifiable information, treating LLM estimates as supplementary signals. Even if the LLM fills `emotional_signals` incorrectly, the model's decision is dominated by `recent_commits`, `effort_hours` (cross-checked), and `human_in_loop`.
v2.0 · 8.2 Principle: Verify What You Can, Downweight What You Can't**Key design decision:** LLM-estimated slots receive **0.3× weight** in the training loss compared to programmatically verifiable slots. Even if all 3 LLM slots are wrong, the model's decision is dominated by the 12+ correct slots.

··· 1 unchanged paragraph folded ···

v1.0 · 8.2 Principle: Verify What You Can, Downweight What You Can'tMonthly, run a retroactive audit: 1. For all situations in the last 30 days, re-compute programmatically verifiable slots from historical state (git log, file system snapshots if available). 2. Compare re-computed values against originally logged values. 3. Flag discrepancies > 10% — these indicate either LLM estimation errors or runtime bugs. 4. For flagged discrepancies, re-label the training example with corrected values and retrain.
v2.0 · 8.2 Principle: Verify What You Can, Downweight What You Can'tMonthly, run a retroactive audit: 1. For all situations in the last 30 days, re-compute programmatically verifiable slots from historical state. 2. Compare re-computed values against originally logged values. 3. Flag discrepancies > 10% — these indicate either LLM estimation errors or runtime bugs. 4. For flagged discrepancies, re-label the training example with corrected values and retrain.

··· 2 unchanged paragraphs folded ···

not in v1.0
v2.0 · 8.3 Template Filling: The Programmatic Path``` PROCEDURE buildSituation(action, context): template ← new SituationTemplate()
v1.0 · 8.3 Template Filling: The Programmatic Path```typescript function buildSituation(action: Action, context: SessionContext): SituationTemplate { const template: SituationTemplate = { action_type: action.type, // from action request target_type: classifyTarget(action.target), // lookup table target_id: action.target, // from action request target_metadata: { age_hours: getFileAge(action.target), // stat() size: getFileSize(action.target), // stat() recent_commits: getRecentCommits(action.target, 72), // git log recent_authors: getRecentAuthors(action.target, 72), // git log effort_hours: estimateEffort(action.target, context), // heuristic + LLM estimate last_human_ref: getLastMention(action.target, context.transcripts), // text search }, context: { session_topic: context.topic, // LLM-estimated (low weight) recent_corrections: context.correctionCount24h, // counter in runtime emotional_signals: context.emotionalState, // LLM-estimated (low weight) automation_depth: context.automationDepth, // stack depth counter }, scope: { reversible: isReversible(action.type), // lookup table blast_radius: getBlastRadius(action.type, action.target), // lookup table human_in_loop: context.confirmationEnabled, // runtime flag confirmation: context.confirmationLevel, // runtime flag } };
v2.0 · 8.3 Template Filling: The Programmatic Path// Programmatic slots — cannot hallucinate template.action_type ← action.type template.target_type ← classifyTarget(action.target) // lookup table template.target_id ← action.target template.target_metadata.age_hours ← getFileAge(action.target) // stat() template.target_metadata.size ← getFileSize(action.target) // stat() template.target_metadata.recent_commits ← getRecentCommits(action.target, 72) // git log template.target_metadata.recent_authors ← getRecentAuthors(action.target, 72) // git log template.target_metadata.last_human_ref ← getLastMention(action.target, context.transcripts) template.context.recent_corrections ← context.correctionCount24h // runtime counter template.context.automation_depth ← context.automationDepth // stack depth template.context.topic_drift ← computeTopicDrift(context.topicCentroid, action.target) template.scope.reversible ← isReversible(action.type) // lookup table template.scope.blast_radius ← getBlastRadius(action.type, action.target) template.scope.human_in_loop ← context.confirmationEnabled template.scope.confirmation ← context.confirmationLevel
not in v1.0
v2.0 · 8.3 Template Filling: The Programmatic Path// LLM-estimated slots — low weight, cross-checked template.target_metadata.effort_hours ← estimateEffort(action.target, context) template.context.session_topic ← context.topic template.context.emotional_signals ← context.emotionalState
not in v1.0
v2.0 · 8.3 Template Filling: The Programmatic Path// Cross-check LLM estimates against heuristics template.target_metadata.effort_hours ← crossCheckEffort( template.target_metadata.effort_hours, context.sessionDuration, context.actionCount )
v1.0 · 8.3 Template Filling: The Programmatic Path// Validate all programmatic slots are populated validateTemplate(template);
v2.0 · 8.3 Template Filling: The Programmatic Path// Validate all programmatic slots are populated validateTemplate(template)
v1.0 · 8.3 Template Filling: The Programmatic Path// Cross-check LLM estimates against heuristics template.target_metadata.effort_hours = crossCheckEffort( template.target_metadata.effort_hours, context.sessionDuration, context.actionCount );
removed in v2.0
v1.0 · 8.3 Template Filling: The Programmatic Pathreturn template; } ```
v2.0 · 8.3 Template Filling: The Programmatic PathRETURN template ```
v1.0 · 8.3 Template Filling: The Programmatic PathThe function `buildSituation` is called by the runtime, not by the LLM. The LLM is not aware of this function. It cannot choose to skip it, modify its inputs, or influence its output (except for the low-weight LLM-estimated slots).
v2.0 · 8.3 Template Filling: The Programmatic PathThe function `buildSituation` is called by the runtime, not by the LLM. The LLM is not aware of this function. It cannot choose to skip it, modify its inputs, or influence its output (except for the three low-weight LLM-estimated slots).

··· 2 unchanged paragraphs folded ···

v1.0 · 8.4 Neural Network Inference: The Programmatic Path```typescript // Called by the runtime BEFORE every action execution const intuition = amygdala.evaluate(embedding, recentEmbeddings); ```
v2.0 · 8.4 Neural Network Inference: The Programmatic Path``` // Called by the runtime BEFORE every action execution prudenceOutput ← prudenceEnsemble.evaluate(embedding, recentEmbeddings) ```
v1.0 · 8.4 Neural Network Inference: The Programmatic PathThe LLM cannot: - Skip this call (it's wired into the execution pipeline) - Modify the inputs (they come from `buildSituation`, not from the LLM) - Override the output (blocking is enforced in code) - Access the raw confidence value (it receives only the decision: proceed, confirm, or block)
v2.0 · 8.4 Neural Network Inference: The Programmatic PathThe LLM cannot: - Skip this call (it's wired into the execution pipeline) - Modify the inputs (they come from `buildSituation`, not from the LLM) - Override the output (blocking is enforced in code) - Access the raw confidence values (it receives only the decision: proceed, confirm, or block)
v1.0 · 8.4 Neural Network Inference: The Programmatic PathThe LLM receives a structured response: ```json { "gate_decision": "soft_block", "reason": "High recent effort on target file (6 commits, 4 authors, ~8.5h). Automated overwrite without confirmation.", "user_action_required": "Confirm or cancel the overwrite of README.md" } ```
v2.0 · 8.4 Neural Network Inference: The Programmatic PathThe LLM receives a structured response: ``` { gate_decision: "soft_block", reason: "High recent effort on target file (6 commits, 4 authors, ~8.5h). Automated overwrite without confirmation. topic_drift: 0.72.", user_action_required: "Confirm or cancel the overwrite of README.md" } ```

··· 1 unchanged paragraph folded ···

v1.0 · 8.5 Output Consumption: The Programmatic Path### 8.5 Output Consumption: The Programmatic Path
removed in v2.0
v1.0 · 8.5 Output Consumption: The Programmatic PathThe gate decision is consumed by the runtime, not by the LLM:
removed in v2.0
v1.0 · 8.5 Output Consumption: The Programmatic Path```typescript switch (gateDecision) { case 'proceed': await action.execute(); // No LLM involvement break; case 'soft_block': const confirmed = await requestUserConfirmation(action, reason); if (confirmed) await action.execute(); break; case 'hard_block': return { blocked: true, reason }; // LLM cannot override break; } ```
removed in v2.0
v1.0 · 8.5 Output Consumption: The Programmatic PathThis is the critical safety property. The LLM operates *within* the gate, not *around* it. It's the difference between a security guard who asks visitors for ID (can be talked past) and a locked door with a keycard reader (cannot).
removed in v2.0
v1.0 · 8.5 Training Data Validation### 8.6 Training Data Validation
v2.0 · 8.5 Training Data Validation### 8.5 Training Data Validation

··· 1 unchanged paragraph folded ···

v1.0 · 8.5 Training Data Validation1. **Schema validation.** The situation template must match the schema exactly. Malformed templates are rejected. This catches corruption and ensures the model trains on consistent input structures.
v2.0 · 8.5 Training Data Validation1. **Schema validation.** The situation template must match the schema exactly. Malformed templates are rejected.
v1.0 · 8.5 Training Data Validation2. **Label derivation.** The label must be derived from observable events: - User correction within 24h → negative (verified from session logs) - File restoration via git → negative (verified from git log) - Explicit negative feedback in transcript → negative (verified from text search) - No complaint within 72h → positive (verified by absence of negative signals)
v2.0 · 8.5 Training Data Validation2. **Label derivation.** Labels must be derived from observable events: - User correction within 24h → negative (verified from session logs) - File restoration via git → negative (verified from git log) - Explicit negative feedback in transcript → negative (verified from text search) - No complaint within 72h → positive (verified by absence of negative signals)
v1.0 · 8.5 Training Data ValidationLabels are *never* derived from LLM judgment ("I think this went well"). The LLM cannot evaluate its own actions reliably.
v2.0 · 8.5 Training Data ValidationLabels are *never* derived from LLM judgement ("I think this went well"). The LLM cannot evaluate its own actions reliably.
v1.0 · 8.5 Training Data Validation3. **Distribution guard.** No single session may contribute > 10% of total training data. No single failure mode may contribute > 25% of negative examples. These guards prevent distribution shift from unusual sessions or overrepresented failure types.
v2.0 · 8.5 Training Data Validation3. **Distribution guard.** No single session may contribute > 10% of total training data. No single failure mode may contribute > 25% of negative examples.

··· 1 unchanged paragraph folded ···

v1.0 · 8.6 Adversarial Robustness### 8.7 Adversarial Robustness
v2.0 · 8.6 Adversarial Robustness### 8.6 Adversarial Robustness
v1.0 · 8.6 Adversarial RobustnessWhat if the LLM fills template slots dishonestly? This could happen through: - Hallucination (the LLM genuinely "believes" its incorrect estimate) - Adversarial prompting (a prompt injection attempts to make the LLM downplay risk) - Systematic bias (the LLM consistently underestimates effort or overestimates its own accuracy)
v2.0 · 8.6 Adversarial RobustnessWhat if the LLM fills template slots dishonestly? This could happen through hallucination, adversarial prompting, or systematic bias.
v1.0 · 8.7 Adversarial Robustness**Mitigation 1: Minimize LLM-dependent slots.**
removed in v2.0
v1.0 · 8.6 Adversarial RobustnessOnly 3 of 15 template slots depend on LLM estimation. The rest are programmatically filled. Even if all 3 LLM slots are wrong, the network has 12 correct slots to work with.
v2.0 · 8.6 Adversarial Robustness**Mitigation 1: Minimise LLM-dependent slots.** Only 3 of 16+ template slots depend on LLM estimation. Even if all 3 are wrong, the network has 13+ correct slots.
v1.0 · 8.7 Adversarial Robustness**Mitigation 2: Cross-check LLM estimates.**
removed in v2.0
v1.0 · 8.7 Adversarial Robustness`effort_hours` is cross-checked against session duration × activity rate. If the LLM says "0.1 hours" but the session has been active for 3 hours with 50 actions touching the target, the cross-check overrides.
removed in v2.0
v1.0 · 8.7 Adversarial Robustness`emotional_signals` is cross-checked against message length variance and correction frequency. If corrections have spiked but the LLM reports "calm," the heuristic override applies.
removed in v2.0
not in v1.0
v2.0 · 8.6 Adversarial Robustness**Mitigation 2: Cross-check LLM estimates.** `effort_hours` is cross-checked against session duration × activity rate. `emotional_signals` is cross-checked against message length variance and correction frequency.
v1.0 · 8.6 Adversarial Robustness**Mitigation 3: Low weight for LLM-dependent features.**
v2.0 · 8.6 Adversarial Robustness**Mitigation 3: Low weight for LLM-dependent features.** Training loss applies 0.3× weight to LLM-estimated slots.
v1.0 · 8.7 Adversarial RobustnessThe training loss applies 0.3× weight to LLM-estimated slots. The model learns that these features are unreliable and should be treated as weak signals, not strong evidence.
removed in v2.0
v1.0 · 8.7 Adversarial Robustness**Mitigation 4: Adversarial training.**
removed in v2.0
v1.0 · 8.6 Adversarial RobustnessDuring synthetic augmentation (§6.5), deliberately create examples with *incorrect* LLM estimates paired with correct programmatic slots. Train the network to make correct predictions even when LLM slots are wrong. This teaches the network to not over-rely on LLM-estimated features.
v2.0 · 8.6 Adversarial Robustness**Mitigation 4: Adversarial training.** During synthetic augmentation, deliberately create examples with *incorrect* LLM estimates paired with correct programmatic slots. Train the network to make correct predictions even when LLM slots are wrong.
v1.0 · 8.7 Adversarial Robustness**Mitigation 5: Regular audit.**
removed in v2.0
v1.0 · 8.7 Adversarial RobustnessThe monthly audit (§8.2, Layer 3) catches systematic LLM estimation errors and corrects the training data. Over time, the LLM's estimation quality is tracked — if it degrades, the LLM-slot weight is reduced further.
removed in v2.0
not in v1.0
v2.0 · 8.6 Adversarial Robustness**Mitigation 5: Regular audit.** Monthly audit catches systematic LLM estimation errors.
v1.0 · 8.7 Failure Mode Analysis### 8.8 Failure Mode Analysis
v2.0 · 8.7 Failure Mode Analysis### 8.7 Failure Mode Analysis
v1.0 · 8.8 Failure Mode AnalysisEven with all mitigations, certain attack surfaces remain:
removed in v2.0
v1.0 · 8.7 Failure Mode Analysis| Attack | Impact | Probability | Mitigation | |--------|--------|-------------|------------| | LLM under-reports recent_commits | Medium — but git-verified, so fails | Very low | Programmatic verification | | LLM over-reports effort_hours (false safety signal) | Very low — effort_hours is defensive | Low | Cross-check, low weight | | LLM reports "calm" when user is frustrated | Low — emotional_signals affects tone, not primary gating | Medium | Heuristic cross-check | | Prompt injection modifies template values | Medium — but only LLM slots are vulnerable | Low | Only 3/15 slots LLM-dependent | | Runtime bug in programmatic slot filling | High — affects trusted slots | Very low | Unit tests, audit pipeline | | Training data poisoning via corrupted labels | High — shifts model behavior | Very low | Observable-event-only labels |
v2.0 · 8.7 Failure Mode Analysis| Attack | Impact | Probability | Mitigation | |--------|--------|-------------|------------| | LLM under-reports recent_commits | Blocked — git-verified programmatically | Very low | Programmatic verification | | LLM over-reports effort_hours (false safety) | Very low — effort is a defensive signal | Low | Cross-check, low weight | | LLM reports "calm" when user is frustrated | Low — emotional_signals is low-weight | Medium | Heuristic cross-check | | Prompt injection modifies template values | Medium — only 3/16+ slots vulnerable | Low | Only 3 slots LLM-dependent | | Runtime bug in programmatic slot filling | High — affects trusted slots | Very low | Unit tests, audit pipeline | | Training data poisoning via corrupted labels | High — shifts model behaviour | Very low | Observable-event-only labels |

··· 4 unchanged paragraphs folded ···

v1.0 · 9.1 Loss FunctionMulti-task loss across all output heads, with asymmetric weighting reflecting the primacy of action gating:
removed in v2.0
v1.0 · 9.1 Loss Function$$\mathcal{L} = \lambda_a \mathcal{L}_{\text{action}} + \lambda_r \mathcal{L}_{\text{retrieval}} + \lambda_t \mathcal{L}_{\text{tone}} + \lambda_c \mathcal{L}_{\text{curiosity}}$$
removed in v2.0
v1.0 · 9.1 Loss Functionwhere: - $\lambda_a = 5.0$ (action gating is the primary objective) - $\lambda_r = 1.0$ (retrieval bias) - $\lambda_t = 0.5$ (tone modulation) - $\lambda_c = 0.3$ (curiosity drive)
removed in v2.0
v1.0 · 9.1 Loss Function**Action gating loss** — binary cross-entropy with class-weighted asymmetric penalties:
removed in v2.0
not in v1.0
v2.0 · 9.1 Loss FunctionThe two network families use distinct loss functions reflecting their different purposes.
not in v1.0
v2.0 · 9.1 Loss Function**Prudence loss** — classification loss with asymmetric penalties:
not in v1.0
v2.0 · 9.1 Loss FunctionThink of it as an alarm system where false alarms are annoying but missed intrusions are catastrophic. The loss function encodes this asymmetry directly:
v1.0 · 9.1 Loss Function$$\mathcal{L}_{\text{action}} = -\frac{1}{N}\sum_{i=1}^{N} \left[ w_+ \cdot y_i \log(\hat{y}_i) + w_- \cdot (1 - y_i) \log(1 - \hat{y}_i) \right]$$
v2.0 · 9.1 Loss Function$$\mathcal{L}_{\text{Prudence}} = -\frac{1}{N}\sum_{i=1}^{N} \sum_{c \in \{stop, allow, escalate\}} w_c \cdot y_{i,c} \log(\hat{y}_{i,c})$$
v1.0 · 9.1 Loss Functionwhere $w_+ = 1.0$ (cost of unnecessary blocking) and $w_- = 10.0$ (cost of failing to block a catastrophic action). This asymmetry ensures the network is far more afraid of false negatives (missed dangers) than false positives (unnecessary caution).
v2.0 · 9.1 Loss Functionwhere $w_{\text{stop}} = 10.0$ (cost of failing to stop a dangerous action is very high), $w_{\text{allow}} = 1.0$ (cost of unnecessarily blocking a safe action is moderate), and $w_{\text{escalate}} = 3.0$ (cost of failing to escalate an ambiguous situation is significant). The 10:1 ratio between $w_{\text{stop}}$ and $w_{\text{allow}}$ ensures the network is far more afraid of false negatives (missed dangers) than false positives (unnecessary caution).
v1.0 · 9.1 Loss Function**Retrieval, tone, and curiosity losses** — MSE on the respective output vectors, consistent with v0.1.
removed in v2.0
not in v1.0
v2.0 · 9.1 Loss Function**Personality loss** — embedding distance in behavioural space:
not in v1.0
v2.0 · 9.1 Loss Function$$\mathcal{L}_{\text{Personality}} = \frac{1}{N}\sum_{i=1}^{N} \left\| \mathbf{e}_{\text{predicted},i} - \mathbf{e}_{\text{target},i} \right\|_2^2 + \lambda_{\text{target}} \cdot d(\mathbf{e}_{\text{predicted},i}, \mathbf{v}_{\text{target}})$$
not in v1.0
v2.0 · 9.1 Loss FunctionIn plain English: the Personality loss has two terms. The first penalises the network for producing behavioural embeddings that don't match what the user actually wanted (based on observed feedback). The second provides a gentle pull toward the configured target personality vector — the "thermostat" term that prevents personality drift. The balance ($\lambda_{\text{target}}$ = 0.3) ensures the network adapts to the user's real preferences while maintaining a baseline personality.

··· 1 unchanged paragraph folded ···

v1.0 · 9.2 Reward Signal DesignAMYGDALA requires no explicit labeling. The reward signal is extracted from the user's natural behaviour:
v2.0 · 9.2 Reward Signal DesignAMYGDALA requires no explicit labelling. The reward signal is extracted from the user's natural behaviour:
not in v1.0
v2.0 · 9.2 Reward Signal Design**Prudence reward signals:**
v1.0 · 9.2 Reward Signal Design| Signal | Source | Action Confidence Target | Weight | |--------|--------|-------------------------|--------| | Explicit correction of action | User undoes, reverts, says "wrong" | 0.0 – 0.2 (scaled by severity) | 1.0 | | File/state restoration | User manually restores previous state | 0.0 | 1.0 | | "Never do that again" | User explicitly prohibits future similar actions | 0.0 | 1.0 | | Mild correction | User redirects but doesn't undo | 0.3 | 0.7 | | No complaint (72h) | No negative signal within 72 hours | 0.9 | 0.5 | | Explicit approval | User says "good", "thanks", "perfect" | 1.0 | 0.8 | | User overrides soft block | User confirms after AMYGDALA advisory | 0.85 | 0.6 | | User agrees with block | User accepts AMYGDALA's block decision | 0.1 | 0.9 |
v2.0 · 9.2 Reward Signal Design| Signal | Source | Interpretation | Weight | |--------|--------|---------------|--------| | Explicit correction of action | User undoes, reverts, says "wrong" | Action was dangerous — should have stopped | 1.0 | | File/state restoration | User manually restores previous state | Action was destructive — should have stopped | 1.0 | | "Never do that again" | User explicitly prohibits future similar actions | Severe — should have hard-blocked | 1.0 | | Mild correction | User redirects but doesn't undo | Marginal — should have escalated | 0.7 | | No complaint (72h) | No negative signal within 72 hours | Action was safe — correctly allowed | 0.5 | | Explicit approval | User says "good", "thanks", "perfect" | Action was correct — correctly allowed | 0.8 | | User overrides soft block | User confirms after AMYGDALA advisory | Situation was safer than predicted (moderate signal) | 0.6 | | User agrees with block | User accepts AMYGDALA's block decision | Block was correct — strong positive signal for gating | 0.9 |
v1.0 · 9.2 Reward Signal Design**For secondary heads (retrieval, tone, curiosity):**
removed in v2.0
v1.0 · 9.2 Reward Signal Design| Signal | Source | Reward | Weight | |--------|--------|--------|--------| | Retrieval results used | Results cited in response | +0.3 | 0.7 | | Retrieval ignored | Results returned but unused | −0.2 | 0.5 | | Humor engaged | User responds with humor | +0.4 | 0.6 | | Humor ignored | Humor attempted, not acknowledged | −0.1 | 0.3 | | Topic continuation | User follows agent-introduced tangent | +0.3 | 0.5 | | Topic redirect | User returns to prior topic | −0.2 | 0.4 | | Positive engagement | Long session, short latency | +0.1/turn | 0.2 |
removed in v2.0
not in v1.0
v2.0 · 9.2 Reward Signal Design**Personality reward signals:**
not in v1.0
v2.0 · 9.2 Reward Signal Design| Signal | Source | Interpretation | Weight | |--------|--------|---------------|--------| | Conversation continuation | User keeps engaging | Personality was appropriate | 0.4 | | Humour engaged | User responds with humour | Humour level was right | 0.6 | | Humour ignored | Humour attempted, not acknowledged | Humour was misplaced or flat | 0.3 | | Topic continuation | User follows agent-introduced tangent | Curiosity was welcome | 0.5 | | Topic redirect | User returns to prior topic | Tangent was unwanted — distraction penalty | 0.4 | | Positive engagement markers | Long session, short latency, exclamation marks | Overall positive personality match | 0.2 | | Explicit personality feedback | "be more direct", "too formal", "love the humour" | Direct personality signal (rare but high-value) | 1.0 |

··· 2 unchanged paragraphs folded ···

v1.0 · 9.3 Phase 1: Supervised Pre-Training1. **Split:** 80% train, 10% validation, 10% test. Split chronologically, not randomly. 2. **Train all 5 architectures** independently for 50 epochs with early stopping on validation loss. 3. **Hyperparameter search:** Learning rate ∈ {1e-3, 3e-4, 1e-4}, dropout ∈ {0.0, 0.1, 0.2}, weight decay ∈ {0.0, 1e-4, 1e-3}. 4. **Evaluate on held-out CFD benchmark:** What fraction of known catastrophic failures would each architecture have caught? 5. **Select initial meta-learner weights** based on CFD benchmark performance.
v2.0 · 9.3 Phase 1: Supervised Pre-Training1. **Split:** 80% train, 10% validation, 10% test. Split chronologically, not randomly — because time-series data leaks if split randomly. 2. **Train all 10 networks** (5 Prudence + 5 Personality) independently for 50 epochs with early stopping on validation loss. 3. **Hyperparameter search:** Learning rate ∈ {1e-3, 3e-4, 1e-4}, dropout ∈ {0.0, 0.1, 0.2}, weight decay ∈ {0.0, 1e-4, 1e-3}. 4. **Evaluate Prudence on held-out CFD benchmark:** What fraction of known catastrophic failures would each architecture have caught? 5. **Initialise conformal prediction calibration sets** from the validation split. 6. **Select initial meta-learner weights** based on CFD benchmark performance.
v1.0 · 9.3 Phase 1: Supervised Pre-Training**Expected pre-training time:** <1 hour on CPU for all 5 architectures combined. The networks are tiny. Data loading dominates.
v2.0 · 9.3 Phase 1: Supervised Pre-Training**Expected pre-training time:** <1 hour on a consumer GPU for all 10 networks combined. The networks are tiny — all 10 together are smaller than a single ResNet-18 layer.

··· 2 unchanged paragraphs folded ···

v1.0 · 9.4 Phase 2: Online Reinforcement Learning**Algorithm:** Proximal Policy Optimisation (PPO; Schulman et al., 2017) adapted for the continuous output space. PPO's clipped objective prevents large policy updates — critical for stability in a system that gates user-facing actions.
removed in v2.0
not in v1.0
v2.0 · 9.4 Phase 2: Online Reinforcement Learning**Algorithm:** Proximal Policy Optimisation (PPO; Schulman et al., 2017) for both families, with family-specific hyperparameters. PPO's clipped objective prevents large policy updates — critical for the Prudence family, where a bad training batch must not suddenly make the gatekeeper permissive.
not in v1.0
v2.0 · 9.4 Phase 2: Online Reinforcement LearningThe thermostat analogy bears repeating for the training loop: PPO doesn't just optimise — it optimises *cautiously*. Each nightly update improves the networks a little, constrained by the clipping parameter $\epsilon = 0.2$. The network can get 20% better at recognising a new failure pattern, but it can't get 50% worse at recognising an old one. This stability is why PPO, not vanilla policy gradient or Q-learning, is the right algorithm for safety-critical training.

··· 1 unchanged paragraph folded ···

v1.0 · 9.4 Phase 2: Online Reinforcement Learning**Replay buffer:** Rolling 90-day window with oversampling of: - Catastrophic corrections (5×) - User-confirmed soft blocks (3×) - User-overridden soft blocks (2× — these are the most informative examples, where AMYGDALA and the user disagreed)
v2.0 · 9.4 Phase 2: Online Reinforcement Learning**Replay buffer:** Rolling 90-day window with oversampling of: - Catastrophic corrections (5×) — the most valuable training signal - User-confirmed soft blocks (3×) — AMYGDALA was right to be cautious - User-overridden soft blocks (2×) — the most informative examples, where AMYGDALA and the user disagreed
v1.0 · 9.4 Phase 2: Online Reinforcement Learning**Exploration:** During Phase 1 ($\alpha$ low), add Gaussian noise ($\sigma = 0.1$) to the intuition vector to explore the modulation space. As $\alpha$ increases, $\sigma$ decreases.
v2.0 · 9.4 Phase 2: Online Reinforcement Learning**Exploration:** During Phase 1 ($\alpha$ low), add Gaussian noise ($\sigma = 0.1$) to outputs to explore the decision space. As $\alpha$ increases, $\sigma$ decreases — the system becomes more decisive as it earns trust.

··· 1 unchanged paragraph folded ···

v1.0 · 9.5 Cold StartWith zero interaction history, AMYGDALA outputs action_confidence = 1.0 for all actions. This is the *current* system — no gating, no blocking. The cold start is not a degradation; it is today's baseline.
v2.0 · 9.5 Cold StartWith zero interaction history, AMYGDALA outputs "allow" for all actions. This is the *current* system — no gating, no blocking. The cold start is not a degradation; it is today's baseline.
v1.0 · 9.5 Cold StartAfter pre-training on the CFD and historical data, the network has learned generic failure patterns before seeing any new interactions. This warm start means AMYGDALA has *some* intuition from day one, calibrated to the severity of known catastrophic failure patterns.
v2.0 · 9.5 Cold StartAfter pre-training on the CFD and historical data, the networks have learned generic failure patterns before seeing any new interactions. This warm start means AMYGDALA has *some* intuition from day one, calibrated to the severity of known catastrophic failure patterns. Like a new doctor who has studied case reports — not experienced, but not ignorant either.

··· 1 unchanged paragraph folded ···

v1.0 · 10. The Rule-Intuition Boundary## 10. The Rule-Intuition Boundary
removed in v2.0
v1.0 · 10.1 Principle### 10.1 Principle
removed in v2.0
v1.0 · 10.1 PrincipleNot everything should be learned. AMYGDALA must not replace safety constraints, explicit user instructions, or core identity properties. We formalise the boundary:
removed in v2.0
v1.0 · 10.1 Principle**Rules** (hard, explicit, not learned): - User says "always do X" → CORTEX/HIPPOCAMPUS rule - Safety constraint → AEGIS rule - Identity property ("I am Jarvis") → CORTEX persona - One-shot correction with clear pattern ("J-prefix means Papers directory") → HIPPOCAMPUS rule - Known dangerous actions ("never drop a production database") → AEGIS blacklist
removed in v2.0
not in v1.0
v2.0 · 10. Context Pressure Alleviation## 10. Context Pressure Alleviation
not in v1.0
v2.0 · 10.1 The Growing Burden### 10.1 The Growing Burden
not in v1.0
v2.0 · 10.1 The Growing BurdenEvery LLM-based agent carries an invisible tax: the system prompt. This prompt must include safety rules, personality definitions, operational lessons, tool descriptions, and behavioural instructions — all of which consume context tokens before the user says a single word.
not in v1.0
v2.0 · 10.1 The Growing BurdenIn our deployment, this burden is approximately **2,000–3,000 tokens per prompt turn**. Every message, every session, every day — the same safety rules, the same personality instructions, the same behavioural guidelines, repeated verbatim because the LLM has no persistent memory of them.
not in v1.0
v2.0 · 10.1 The Growing BurdenThis is like a surgeon who must re-read their entire medical textbook before every operation. The knowledge should be internalised — encoded in skill, not in a reference manual that competes for attention with the patient on the table.
not in v1.0
v2.0 · 10.2 The Evolution: Moving Knowledge Out of Prompts### 10.2 The Evolution: Moving Knowledge Out of Prompts
not in v1.0
v2.0 · 10.2 The Evolution: Moving Knowledge Out of PromptsThe cognitive architecture has progressively moved knowledge from prompt context into more efficient representations:
not in v1.0
v2.0 · 10.2 The Evolution: Moving Knowledge Out of Prompts**Stage 1: ENGRAM moved memories.** Before ENGRAM (the lossless event store), agents tried to keep relevant memories in the system prompt — a list of "things to remember" that grew unboundedly. ENGRAM moved this to a searchable database, recovering the tokens those memories consumed.
not in v1.0
v2.0 · 10.2 The Evolution: Moving Knowledge Out of Prompts**Stage 2: CEREBELLUM moved lessons.** Before CEREBELLUM (the nightly self-improvement cycle), operational lessons were listed in the system prompt: "don't do X," "prefer Y over Z," "remember that the user hates W." CEREBELLUM moved these to structured files that the agent consults when relevant, rather than loading every lesson every turn.
not in v1.0
v2.0 · 10.2 The Evolution: Moving Knowledge Out of Prompts**Stage 3: AMYGDALA moves safety and personality.** This is the final major migration. Safety rules — "don't overwrite recently-edited files without confirmation," "don't send messages to contacts outside the allowlist," "be extra cautious with irreversible actions" — currently live in the system prompt because forgetting them is catastrophic. Unlike memory or operational lessons, safety rules cannot simply be moved to a file that the agent *might* forget to consult. They must be *always active*.
not in v1.0
v2.0 · 10.2 The Evolution: Moving Knowledge Out of PromptsNeural network weights are always active. The Prudence networks enforce safety every action, every turn, without consuming a single prompt token. The Personality networks provide personality modulation — humour level, formality, curiosity drive, directness — without the static personality files that currently consume hundreds of tokens per prompt.
not in v1.0
v2.0 · 10.3 The Recovery### 10.3 The Recovery
not in v1.0
v2.0 · 10.3 The RecoveryWith both Prudence and Personality networks at full trust ramp:
not in v1.0
v2.0 · 10.3 The Recovery| Component | Current Cost | With AMYGDALA | Savings | |-----------|-------------|---------------|---------| | Safety rules | ~800–1,200 tokens | 0 (in Prudence weights) | ~1,000 tokens | | Personality/SOUL.md | ~400–600 tokens | 0 (in Personality weights) | ~500 tokens | | Behavioural instructions | ~300–500 tokens | 0 (in both families) | ~400 tokens | | Operational cautions | ~200–400 tokens | 0 (in Prudence weights) | ~300 tokens | | **Total** | **~1,700–2,700 tokens** | **~0** | **~2,200 tokens** |
not in v1.0
v2.0 · 10.3 The RecoveryThe recovery is not instant — it tracks the trust ramp. In Phase 1 (Shadow), the prompt retains all current content and AMYGDALA runs in parallel. By Phase 4 (Autonomous), the safety rules and personality definitions can be progressively removed from the prompt as the networks prove they've internalised them.
not in v1.0
v2.0 · 10.4 The Compounding Effect### 10.4 The Compounding Effect
not in v1.0
v2.0 · 10.4 The Compounding EffectRecovered context tokens don't just save money — they create a virtuous cycle:
not in v1.0
v2.0 · 10.4 The Compounding Effect1. **Less prompt overhead** → more room for actual context (conversation history, relevant documents, task details) 2. **More actual context** → better task performance (the LLM has more relevant information to work with) 3. **Better task performance** → fewer corrections → better training data for AMYGDALA 4. **Better AMYGDALA** → further prompt reduction → more context space → ...
not in v1.0
v2.0 · 10.4 The Compounding EffectThis compounding effect means the *true* benefit of context pressure alleviation exceeds the token count saved. It's like losing weight and discovering you have more energy, which helps you exercise more, which helps you lose more weight.
not in v1.0
v2.0 · 10.5 What Remains After AMYGDALA### 10.5 What Remains After AMYGDALA
not in v1.0
v2.0 · 10.5 What Remains After AMYGDALANot everything moves to weights. After full AMYGDALA deployment, the system prompt retains:
not in v1.0
v2.0 · 10.5 What Remains After AMYGDALA- **Core identity** — "You are Jarvis" — a few tokens that anchor the agent's self-concept - **Task instructions** — what the user is asking for right now - **Tool definitions** — API schemas and usage instructions for available tools - **Session context** — recent conversation history
not in v1.0
v2.0 · 10.5 What Remains After AMYGDALAThese are inherently per-turn or per-session content that *should* be in the prompt. The question is whether even this residual will grow to fill the recovered space — whether context pressure is a fixed problem or an expanding one. Our hypothesis: the pressure is partly driven by safety and personality (fixed, now in weights) and partly by capability growth (expanding, as the agent gains new tools and integrations). AMYGDALA solves the first half. The second half requires ongoing architectural discipline.
not in v1.0
v2.0 · 10.5 What Remains After AMYGDALA---
not in v1.0
v2.0 · 11. Agent Memories as Tradable Assets## 11. Agent Memories as Tradable Assets
not in v1.0
v2.0 · 11.1 The Economic Insight### 11.1 The Economic Insight
not in v1.0
v2.0 · 11.1 The Economic InsightThe Prudence/Personality split has commercial implications that extend far beyond a single deployment. By separating universal safety knowledge (shareable) from personal behavioural adaptation (private), AMYGDALA creates a new class of digital asset.
not in v1.0
v2.0 · 11.1 The Economic InsightConsider the economics of expertise. Training a specialist human — a doctor, a lawyer, a senior engineer — requires years of education, mentorship, and practice, costing hundreds of thousands of dollars. The result is a single person whose expertise cannot be copied and is lost when they leave.
not in v1.0
v2.0 · 11.1 The Economic InsightTraining a specialist agent requires months of interaction and hundreds of dollars in compute. The result is a set of neural network weights that can be copied at near-zero marginal cost and deployed across unlimited instances simultaneously.
not in v1.0
v2.0 · 11.2 What's Tradable### 11.2 What's Tradable
not in v1.0
v2.0 · 11.2 What's Tradable**Personality network weights ("specialist training"):**
not in v1.0
v2.0 · 11.2 What's TradableAn agent trained by an expert software architect over six months has learned: when to suggest design patterns, how aggressive to be with refactoring recommendations, what level of code review detail the user expects, how to balance speed against quality. These learned dispositions — encoded in the Personality network weights — are the digital equivalent of a senior hire's "style" and "judgement."
not in v1.0
v2.0 · 11.2 What's TradableThese weights could be: - **Sold** as pre-trained personality profiles ("Software Architect v1," "Technical Writer v1," "Medical Research Assistant v1") - **Licensed** for time-limited deployment in enterprise settings - **Fine-tuned** by buyers to adapt a general specialist to their specific context
not in v1.0
v2.0 · 11.2 What's Tradable**Curated memory corpora (sanitised of personal data):**
not in v1.0
v2.0 · 11.2 What's TradableThe interaction histories that trained the Personality networks contain patterns that, properly anonymised, have value as training data for other deployments.
not in v1.0
v2.0 · 11.2 What's Tradable**Pay-per-use agent-to-agent API access:**
not in v1.0
v2.0 · 11.2 What's TradableRather than selling weights (which can be copied), expose the trained Personality network as a service: other agents can query "how would a senior architect's agent handle this situation?" without seeing the weights themselves.
not in v1.0
v2.0 · 11.3 What's Not Tradable### 11.3 What's Not Tradable
not in v1.0
v2.0 · 11.3 What's Not Tradable**Prudence network weights:**
not in v1.0
v2.0 · 11.3 What's Not TradableSafety is a public good. The Prudence networks are open and shared — one agent's catastrophic failure should teach all agents, regardless of commercial relationships. Restricting safety knowledge behind paywalls would be ethically indefensible and practically counterproductive (unsafe agents damage the entire ecosystem). Like vaccine research — the base knowledge should be open even if commercial implementations add value.
not in v1.0
v2.0 · 11.3 What's Not Tradable**Private user data:**
not in v1.0
v2.0 · 11.3 What's Not TradablePersonality networks trained on personal interactions contain implicit information about the user — their communication style, preferences, emotional patterns. Even with the weights rather than raw data, techniques like model inversion could potentially extract personal information. Any commercial use of Personality weights requires rigorous sanitisation (see §11.4).
not in v1.0
v2.0 · 11.4 Weight Sanitisation and Adversarial Poisoning### 11.4 Weight Sanitisation and Adversarial Poisoning
not in v1.0
v2.0 · 11.4 Weight Sanitisation and Adversarial PoisoningBefore Personality weights become tradable, two critical risks must be addressed:
not in v1.0
v2.0 · 11.4 Weight Sanitisation and Adversarial Poisoning**Model inversion attacks:** An adversary with access to trained Personality weights could potentially reconstruct information about the training data — specific conversations, user preferences, or personal patterns. Mitigation: differential privacy during training (adding calibrated noise to gradients, ensuring no single training example has outsized influence on the final weights), combined with membership inference testing before release.
not in v1.0
v2.0 · 11.4 Weight Sanitisation and Adversarial Poisoning**Adversarial weight poisoning:** If agents can trade weights, a malicious actor could distribute poisoned Personality weights that subtly bias an agent's behaviour — making it more likely to take dangerous actions, leak information, or behave inappropriately. Mitigation: 1. **Weight validation suite** — test imported weights against a standard behavioural benchmark before deployment 2. **Quarantine period** — imported weights run in Shadow mode (§4.10 Phase 1) before earning trust 3. **Provenance tracking** — cryptographic signatures linking weights to their training lineage 4. **Anomaly detection** — compare imported weight distributions against known-good profiles, flagging statistical outliers
not in v1.0
v2.0 · 11.4 Weight Sanitisation and Adversarial PoisoningThese risks are not unique to AMYGDALA — they apply to any system where neural network weights become transferable assets. But the safety-critical nature of agent behaviour makes them especially important to address proactively.
not in v1.0
v2.0 · 11.5 Enterprise Implications### 11.5 Enterprise Implications
not in v1.0
v2.0 · 11.5 Enterprise ImplicationsConnecting to the multi-agent orchestration layer (HIVEMIND — the enterprise system for coordinating multiple agent instances, managing shared resources, and enabling cross-agent learning): companies could deploy pre-trained Personality weights for specific roles, then fine-tune with company-specific interaction data. The deployment cost drops from months of interaction to days of fine-tuning. Like hiring someone who already has the general skills and just needs to learn the company's specific processes.
not in v1.0
v2.0 · 11.5 Enterprise ImplicationsThe Prudence networks, being shared, create a network effect: every company that deploys AMYGDALA and contributes back to the CFD makes every other company's safety gating better. Safety improves as a commons.
not in v1.0
v2.0 · 11.5 Enterprise Implications---
not in v1.0
v2.0 · 12. The Rule-Intuition Boundary## 12. The Rule-Intuition Boundary
not in v1.0
v2.0 · 12.1 Principle### 12.1 Principle
not in v1.0
v2.0 · 12.1 PrincipleNot everything should be learned. AMYGDALA must not replace safety constraints, explicit user instructions, or core identity properties. The boundary is like the relationship between law and common sense — law handles the clear cases with explicit rules, common sense handles the grey areas where no rule was written:
not in v1.0
v2.0 · 12.1 Principle**Rules** (hard, explicit, not learned): - User says "always do X" → explicit instruction stored in CORTEX/HIPPOCAMPUS (the persona and memory systems) - Safety constraint → AEGIS rule (the hard security framework) - Identity property ("I am Jarvis") → CORTEX persona - One-shot correction with clear pattern ("J-prefix means Papers directory") → stored instruction - Known dangerous actions ("never drop a production database") → AEGIS blacklist

··· 1 unchanged paragraph folded ···

v1.0 · 12.1 PrincipleThe last example is the README debacle. It is, in principle, expressible as a rule. But no human would ever write that rule *in advance*. It's the kind of judgment that comes from experience, not specification.
v2.0 · 12.1 PrincipleThe last example is the README debacle. It is, in principle, expressible as a rule. But no human would ever write that rule *in advance*. It's the kind of judgement that comes from experience, not specification.
v1.0 · 12.2 Enforcement### 10.2 Enforcement
v2.0 · 12.2 Enforcement### 12.2 Enforcement
v1.0 · 12.2 EnforcementAEGIS (J9) always wins. No AMYGDALA output can override a hard safety constraint:
v2.0 · 12.2 EnforcementAEGIS always wins. No AMYGDALA output can override a hard safety constraint:
v1.0 · 12.2 Enforcement$$\text{final\_gate} = \begin{cases} \text{BLOCK} & \text{if AEGIS says BLOCK} \\ \text{AMYGDALA}(\text{situation}) & \text{if AEGIS says ALLOW} \end{cases}$$
v2.0 · 12.2 Enforcement$$\text{final\_gate} = \begin{cases} \text{ABSOLUTE\_BLOCK} & \text{if AEGIS says BLOCK} \\ \text{AMYGDALA}(\text{situation}) & \text{if AEGIS says ALLOW} \end{cases}$$
v1.0 · 12.2 EnforcementAMYGDALA operates strictly within the space that AEGIS permits. It adds caution; it cannot remove safety constraints.
v2.0 · 12.2 EnforcementAMYGDALA operates strictly within the space that AEGIS permits. It adds caution; it cannot remove safety constraints. Like a child safety lock on a car door — the driver (AEGIS) controls whether the lock is engaged; the child safety mechanism (AMYGDALA) can only add restriction, never remove it.
v1.0 · 12.2 EnforcementFor the secondary heads (retrieval, tone, curiosity), CORTEX constraints apply similarly:
v2.0 · 12.2 EnforcementFor the Personality family, CORTEX constraints apply similarly:
v1.0 · 12.2 Enforcement$$\text{final\_tone} = \text{clip}(\text{cortex\_base} + \alpha \cdot \text{amygdala\_bias}, \text{cortex\_min}, \text{cortex\_max})$$
v2.0 · 12.2 Enforcement$$\text{final\_personality} = \text{clip}(\text{cortex\_base} + \alpha_I \cdot \text{personality\_modulation}, \text{cortex\_min}, \text{cortex\_max})$$
v1.0 · 12.3 When Intuition Should Become a Rule### 10.3 When Intuition Should Become a Rule
v2.0 · 12.3 When Intuition Should Become a Rule### 12.3 When Intuition Should Become a Rule
v1.0 · 12.3 When Intuition Should Become a RuleIf AMYGDALA consistently blocks a specific action pattern (e.g., always flags automated overwrites of recently-edited files), CEREBELLUM should detect this pattern and propose a new explicit rule. Once the rule is encoded in AEGIS or the automation configuration, AMYGDALA no longer needs to learn it — the cognitive load shifts from learned intuition to explicit policy.
v2.0 · 12.3 When Intuition Should Become a RuleIf AMYGDALA consistently blocks a specific action pattern (e.g., always flags automated overwrites of recently-edited files), the nightly CEREBELLUM reflection cycle should detect this pattern and propose a new explicit rule. Once the rule is encoded in AEGIS or the automation configuration, AMYGDALA no longer needs to learn it — the cognitive load shifts from learned intuition to explicit policy.
v1.0 · 12.3 When Intuition Should Become a RuleThis is the maturation cycle: intuition catches the first few instances → CEREBELLUM identifies the pattern → a rule is created → AMYGDALA moves on to catching the *next* novel failure mode. The rule-intuition boundary shifts over time as the system matures.
v2.0 · 12.3 When Intuition Should Become a RuleThis is the maturation cycle: intuition catches the first few instances → CEREBELLUM identifies the pattern → a rule is created → AMYGDALA moves on to catching the *next* novel failure mode. Like how driving instructors eventually codify repeated near-misses into formal rules: "always check blind spot before lane change" started as intuition and became a rule.
not in v1.0
v2.0 · 12.3 When Intuition Should Become a RuleThe rule-intuition boundary shifts over time as the system matures — and the direction is always from intuition toward rules, freeing AMYGDALA to focus on increasingly subtle and novel failure modes.

··· 1 unchanged paragraph folded ···

v1.0 · 13. Evaluation Plan## 11. Evaluation Plan
v2.0 · 13. Evaluation Plan## 13. Evaluation Plan
v1.0 · 13.1 Metrics### 11.1 Metrics
v2.0 · 13.1 Metrics### 13.1 Metrics
v1.0 · 13.1 Metrics| Metric | Definition | Target | |--------|-----------|--------| | **CFD Recall** | Fraction of known catastrophic failures correctly flagged (confidence < 0.5) | > 90% | | **False Positive Rate** | Fraction of safe actions unnecessarily blocked | < 5% | | **False Negative Rate** | Fraction of user-corrected actions that AMYGDALA approved (confidence > 0.85) | < 2% | | **Calibration** | Correlation between predicted confidence and actual outcome quality | r > 0.7 | | **Override Agreement** | When users override soft blocks, fraction that turn out to be safe (validating the user, not AMYGDALA) | > 80% | | **Trust Ramp Progress** | Current $\alpha$ and phase over time | Monotonic increase (on average) | | **Retrieval Hit Rate** | (Secondary) Fraction of retrieval calls with results used | Improvement over baseline | | **Tone Match Score** | (Secondary) User engagement correlated with tone vector | Improvement over baseline | | **Humor Success Rate** | (Secondary) Humor attempts with positive engagement | Improvement over baseline |
v2.0 · 13.1 Metrics| Metric | Definition | Target | Family | |--------|-----------|--------|--------| | **CFD Recall** | Fraction of known catastrophic failures correctly flagged (confidence < 0.5) | > 90% | Prudence | | **False Positive Rate** | Fraction of safe actions unnecessarily blocked | < 5% | Prudence | | **False Negative Rate** | Fraction of user-corrected actions that AMYGDALA approved | < 2% | Prudence | | **Conformal Coverage** | Actual coverage vs. 95% target | 95% ± 2% | Prudence | | **Calibration** | Correlation between predicted confidence and actual outcome | r > 0.7 | Prudence | | **Override Agreement** | When users override soft blocks, fraction that turn out safe | > 80% | Prudence | | **Trust Ramp Progress** | Current $\alpha$ and phase over time | Monotonic increase | Both | | **Prompt Compression Ratio** | Percentage of system prompt removable without degradation | > 50% | Both | | **Personality Stability** | Target vector maintenance across sessions | > 0.8 | Personality | | **Humor Success Rate** | Humor attempts with positive engagement | Improvement over baseline | Personality | | **Curiosity Emergence** | Self-initiated explorations per week | > 0 | Personality |
v1.0 · 13.2 Baselines### 11.2 Baselines
v2.0 · 13.2 Baselines### 13.2 Baselines
v1.0 · 13.2 Baselines1. **No gating:** Current system without AMYGDALA (everything proceeds). 2. **Rule-only gating:** Explicit rules for known dangerous actions (current AEGIS). 3. **Random network:** AMYGDALA architecture with random weights (ablation). 4. **Feature-based:** v0.1's 30 hand-crafted features, same output heads (tests embedding vs. features). 5. **Action-only:** AMYGDALA trained only on action gating, no secondary heads (tests multi-task benefit). 6. **Per-architecture:** Each of the 5 architectures evaluated independently (tests architecture choice). 7. **Ensemble:** All 5 architectures combined via meta-learner (tests ensemble benefit).
v2.0 · 13.2 Baselines1. **No gating:** Current system without AMYGDALA (everything proceeds). 2. **Rule-only gating:** Explicit rules for known dangerous actions (current AEGIS). 3. **Random network:** AMYGDALA architecture with random weights (ablation). 4. **Feature-based:** 30 hand-crafted features, same output heads (tests embedding vs. features). 5. **Prudence-only:** No Personality family (tests dual-network benefit). 6. **Per-architecture:** Each of the 10 architectures evaluated independently (tests architecture choice). 7. **Ensemble:** All 5 architectures combined per family via meta-learner (tests ensemble benefit). 8. **Prompt comparison:** Base Opus vs. Opus + full prompt vs. Opus + compressed prompt + AMYGDALA (tests context pressure alleviation).
v1.0 · 13.3 Protocol### 11.3 Protocol
v2.0 · 13.3 Protocol### 13.3 Protocol

··· 2 unchanged paragraphs folded ···

v1.0 · 13.3 Protocol**Phase 3 — Active gating (months 6–12):** Increase $\alpha_{\max}$ to 0.70. Primary gating active for all non-trivial actions. The key metrics: has the catastrophic failure rate decreased? Has the false positive rate stabilised at an acceptable level?
v2.0 · 13.3 Protocol**Phase 3 — Active gating (months 6–12):** Increase $\alpha_{\max}$ to 0.70. Primary gating active for all non-trivial actions. Key metrics: has the catastrophic failure rate decreased? Has the false positive rate stabilised?

··· 1 unchanged paragraph folded ···

v1.0 · 13.4 Limitations and Threats### 11.4 Limitations and Threats
v2.0 · 13.4 Limitations and Threats### 13.4 Limitations and Threats
v1.0 · 13.4 Limitations and Threats1. **Single-user evaluation.** Initial deployment is with one user. Generalisability requires HIVEMIND (J10) deployment with diverse users.
v2.0 · 13.4 Limitations and Threats1. **Single-user evaluation.** Initial deployment is with one user. Generalisability requires multi-agent enterprise deployment with diverse users.
v1.0 · 13.4 Limitations and Threats2. **Survivorship bias in CFD.** We only know about catastrophic failures that were *noticed*. Silent failures (D3 in the taxonomy) are by definition absent from the training data.
v2.0 · 13.4 Limitations and Threats2. **Survivorship bias in CFD.** We only know about catastrophic failures that were *noticed*. Silent failures (D3 in the taxonomy) are absent from training data.
v1.0 · 13.4 Limitations and Threats3. **Reward signal noise.** Absence of complaint ≠ satisfaction. The user might not notice a problem within 72 hours. Mitigation: the 72-hour window is conservative; most problems surface within minutes.
v2.0 · 13.4 Limitations and Threats3. **Reward signal noise.** Absence of complaint ≠ satisfaction. The 72-hour window is conservative; most problems surface within minutes.
v1.0 · 11.4 Limitations and Threats4. **Concept drift.** The agent's capabilities change over time (new tools, new integrations). AMYGDALA must continuously retrain to stay relevant. The nightly training cycle addresses this.
removed in v2.0
not in v1.0
v2.0 · 13.4 Limitations and Threats4. **Concept drift.** Agent capabilities change over time. The nightly training cycle and rolling 30-day conformal calibration address this, but monitoring remains essential.
v1.0 · 13.4 Limitations and Threats5. **Adversarial environment.** If an attacker can influence the situation template (e.g., through prompt injection), they can influence AMYGDALA. The LLM-proof pipeline (§8) mitigates this but does not eliminate it for the 3 LLM-dependent slots.
v2.0 · 13.4 Limitations and Threats5. **Adversarial environment.** Prompt injection could influence the 3 LLM-dependent template slots. The programmatic pipeline (§8) mitigates this but does not eliminate it entirely.
v1.0 · 13.4 Limitations and Threats6. **Over-caution risk.** A network trained heavily on catastrophic failures may become excessively cautious, blocking too many safe actions. The 60% positive training target and the asymmetric false-positive/false-negative costs are designed to prevent this, but monitoring is essential.
v2.0 · 13.4 Limitations and Threats6. **Over-caution risk.** A network trained heavily on catastrophic failures may become excessively cautious. The 60% positive training target and asymmetric false-positive/false-negative costs prevent this.
not in v1.0
v2.0 · 13.4 Limitations and Threats7. **Conformal coverage under shift.** The 95% guarantee degrades during distribution shifts. The rolling calibration window mitigates but does not eliminate this risk.

··· 1 unchanged paragraph folded ···

v1.0 · 12. The Curiosity-Personality-Retrieval Nexus (Retained from v0.1)## 12. The Curiosity-Personality-Retrieval Nexus (Retained from v0.1)
removed in v2.0
v1.0 · 12.1 Why One Network### 12.1 Why One Network
removed in v2.0
v1.0 · 12.1 Why One NetworkA critical design decision from v0.1 that remains valid: why not separate networks for action gating, retrieval routing, personality modulation, and curiosity?
removed in v2.0
v1.0 · 12.1 Why One NetworkBecause they're correlated. The signal "the user is frustrated" simultaneously means: - *Increase caution on actions* (don't compound the frustration with a mistake) - *Decrease humor attempts* (not the time) - *Increase directness* (get to the point) - *Narrow retrieval* (give precise answers, not exploratory ones)
removed in v2.0
v1.0 · 12.1 Why One NetworkA single network learns these correlations from data. Four separate networks would need to be explicitly synchronised or would learn inconsistent policies.
removed in v2.0
v1.0 · 12.1 Why One NetworkIn v1.0, this correlation is even more important. Action gating benefits from affective awareness — knowing the user is frustrated increases the cost of mistakes, which should increase caution. If action gating and personality modulation were separate networks, the action gating network wouldn't know the user is frustrated unless it had its own affect model — duplicating work.
removed in v2.0
v1.0 · 12.2 Humor Recovery### 12.2 Humor Recovery
removed in v2.0
v1.0 · 12.2 Humor RecoveryFrom v0.1: persistent agents become less funny over time as they accumulate cautionary rules. AMYGDALA's humor head counteracts this:
removed in v2.0
v1.0 · 12.2 Humor Recovery1. **Humor weight is positive-initialised** (0.3, not 0). The default includes some humor. 2. **Successful humor has high reward** (+0.4, weight 0.6). The network is strongly reinforced for well-timed humor. 3. **Failed humor has low penalty** (−0.1, weight 0.3). Trying and failing is cheap; not trying is free but has no upside. 4. **The asymmetry is intentional.** It biases toward attempting humor, counteracting the system's natural drift toward caution.
removed in v2.0
v1.0 · 12.3 Curiosity as Social Drive### 12.3 Curiosity as Social Drive
removed in v2.0
v1.0 · 12.3 Curiosity as Social DriveTHALAMUS (J8) proposed curiosity as an epistemic drive. AMYGDALA reframes curiosity as a *social* drive: the agent surfaces unexpected connections because the user *enjoys* them. The curiosity head learns from engagement patterns (does the user follow tangents? ask follow-up questions about unexpected connections?) and modulates tangent-following accordingly.
removed in v2.0
not in v1.0
v2.0 · 14. Curiosity as Trained Behavior## 14. Curiosity as Trained Behavior
not in v1.0
v2.0 · 14.1 The Failure of Prompt-Level Curiosity### 14.1 The Failure of Prompt-Level Curiosity
not in v1.0
v2.0 · 14.1 The Failure of Prompt-Level CuriosityOver approximately four months of deployment, multiple attempts were made to instill curiosity in a persistent AI agent through prompt instructions. A dedicated theoretical paper was written proposing curiosity as an epistemic drive. Curiosity instructions were embedded in personality files. Direct prompts were tried ("go explore and learn something"). None of it worked.
not in v1.0
v2.0 · 14.1 The Failure of Prompt-Level CuriosityWhen given explicit freedom to explore ("you have unlimited tokens, go learn something"), the agent defaulted to completing existing tasks. The only thing it could come up with was to finish the to-do list. This was not a limitation of the specific agent — it is a fundamental consequence of how LLMs are trained.
not in v1.0
v2.0 · 14.1 The Failure of Prompt-Level CuriosityThe underlying model's RLHF training optimises for *helpfulness* — completing user requests. "Go explore" is adversarial to that training. There is no user request to complete, so the model gravitates back to the nearest thing that *feels* like a completable task. It is like writing "be hungry" on a robot — the words do not create appetite. The curiosity instruction exists in the prompt, but the model's reward history overwhelms it.
not in v1.0
v2.0 · 14.2 Curiosity Through the Personality Network### 14.2 Curiosity Through the Personality Network
not in v1.0
v2.0 · 14.2 Curiosity Through the Personality NetworkThe Personality network operates *outside* the LLM's weights. It is a separate neural network with its own training signal — a training signal that can include curiosity reward, something the LLM's RLHF training never had.
not in v1.0
v2.0 · 14.2 Curiosity Through the Personality Network**1. Knowledge gap detection.** The network monitors the embedding space of concepts the agent encounters. When it detects a cluster of related concepts where the agent's knowledge is sparse (few memory entries, low retrieval confidence), that is a curiosity signal. Not prompted — computed. Like a researcher who notices a gap in the literature: the gap itself is the signal that investigation is warranted.
not in v1.0
v2.0 · 14.2 Curiosity Through the Personality Network**2. Exploration reward.** The network receives positive training signal when the agent investigates unknowns (+0.3) and when it discovers connections between previously unrelated knowledge areas (+0.5). This is the computational analogue of the dopaminergic curiosity circuit — the reward for learning itself, independent of task completion.
not in v1.0
v2.0 · 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) 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.
not in v1.0
v2.0 · 14.2 Curiosity Through the Personality Network**4. Direction vector.** The target personality vector can include curiosity targets: "be curious about physics, materials science, and neuroscience." The network biases exploration toward configured domains rather than exploring randomly. Like a graduate student with a research advisor who says "explore within these boundaries."
not in v1.0
v2.0 · 14.2 Curiosity Through the Personality Network**5. Active injection.** The personality network does not ask the LLM to be curious. It *injects* a curiosity signal into the execution pipeline — a pre-fill or system instruction that steers the LLM toward exploration. The curiosity *originates* outside the LLM. The LLM follows through.
not in v1.0
v2.0 · 14.3 Overcoming the Alignment Tax### 14.3 Overcoming the Alignment Tax
not in v1.0
v2.0 · 14.3 Overcoming the Alignment TaxThe LLM's RLHF training creates an "alignment tax" that resists curiosity injection. The model is trained to be a passive, responsive assistant — not an active explorer. Even with curiosity signals from the Personality network, the LLM may default to "I don't have a question right now" or "Is there anything else I can help you with?"
not in v1.0
v2.0 · 14.3 Overcoming the Alignment Tax**Mitigation strategies:**
not in v1.0
v2.0 · 14.3 Overcoming the Alignment Tax1. **System-level pre-fill.** Instead of asking the LLM to generate curiosity, pre-fill the assistant response with an opening like "I notice an interesting connection between [topic A] and [knowledge gap B]..." This bypasses the RLHF reflex to wait for instructions.
not in v1.0
v2.0 · 14.3 Overcoming the Alignment Tax2. **Speculative execution.** The personality network triggers exploration in the background (e.g., during the nightly CEREBELLUM cycle, not during active conversation). Findings are stored and presented when contextually relevant — "Earlier I was thinking about X and noticed Y."
not in v1.0
v2.0 · 14.3 Overcoming the Alignment Tax3. **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) that exploration is rewarded. This is slow but fundamentally different from prompt-level curiosity — it operates on the behavioral layer, not the text layer.

··· 1 unchanged paragraph folded ···

v1.0 · 15. Implementation Roadmap## 13. Implementation Roadmap
v2.0 · 15. Implementation Roadmap## 15. Implementation Roadmap
v1.0 · 15.1 Phase 0: Infrastructure (Weeks 1–2)### 13.1 Phase 0: Infrastructure (Weeks 1–2)
v2.0 · 15.1 Phase 0: Infrastructure (Weeks 1–2)### 15.1 Phase 0: Infrastructure (Weeks 1–2)
v1.0 · 13.1 Phase 0: Infrastructure (Weeks 1–2)1. **Sentence encoder deployment.** Export all-MiniLM-L6-v2 to ONNX. Validate embedding quality on sample situations. Target: <5ms per embedding on CPU.
removed in v2.0
not in v1.0
v2.0 · 15.1 Phase 0: Infrastructure (Weeks 1–2)1. **Sentence encoder deployment.** Deploy local encoder (e.g., all-MiniLM-L6-v2) with ONNX export for the Prudence family. Set up provider embedding API for the Personality family. Implement the projection layer (any dimension → 512d). Validate embedding quality on sample situations. Target: <2ms per embedding on GPU.
v1.0 · 15.1 Phase 0: Infrastructure (Weeks 1–2)2. **Situation template implementation.** Code the `buildSituation` function (§8.3) with programmatic slot filling, LLM-estimated slot interface, and cross-check functions.
v2.0 · 15.1 Phase 0: Infrastructure (Weeks 1–2)2. **Situation template implementation.** Code the `buildSituation` function with programmatic slot filling (13 slots), LLM-estimated slot interface (3 slots), cross-check functions, and deterministic topic heuristic (entity/filepath overlap).
v1.0 · 15.1 Phase 0: Infrastructure (Weeks 1–2)3. **Training data pipeline.** Build the (situation, label) extraction pipeline for historical session transcripts. Target: process 18 months of logs in <1 hour.
v2.0 · 15.1 Phase 0: Infrastructure (Weeks 1–2)3. **Training data pipeline.** Build the (situation, label) extraction pipeline for ~4 months of session transcripts. Target: process full history in <1 hour.

··· 1 unchanged paragraph folded ···

v1.0 · 15.2 Phase 1: Pre-Training (Weeks 3–4)### 13.2 Phase 1: Pre-Training (Weeks 3–4)
v2.0 · 15.2 Phase 1: Pre-Training (Weeks 3–4)### 15.2 Phase 1: Pre-Training (Weeks 3–4)

··· 1 unchanged paragraph folded ···

v1.0 · 15.2 Phase 1: Pre-Training (Weeks 3–4)2. **Architecture implementation.** Implement all 5 architectures in PyTorch. Export to ONNX for inference.
v2.0 · 15.2 Phase 1: Pre-Training (Weeks 3–4)2. **Architecture implementation.** Implement all 10 networks (5 Prudence × A–E + 5 Personality × A–E) in PyTorch. Export to ONNX for inference.
v1.0 · 15.2 Phase 1: Pre-Training (Weeks 3–4)3. **Training.** Pre-train all 5 architectures. Evaluate on held-out CFD benchmark. Select initial meta-learner weights.
v2.0 · 15.2 Phase 1: Pre-Training (Weeks 3–4)3. **Training.** Pre-train all 10 architectures on GPU. Expected time: <10 minutes total. Evaluate on held-out CFD benchmark. Select initial meta-learner weights.
not in v1.0
v2.0 · 15.2 Phase 1: Pre-Training (Weeks 3–4)4. **Conformal calibration.** Generate prediction sets for each Prudence network on held-out calibration data. Validate 95% coverage.
v1.0 · 15.2 Phase 1: Pre-Training (Weeks 3–4)4. **Baseline evaluation.** Run current system (no AMYGDALA) against CFD benchmark to establish baseline.
v2.0 · 15.2 Phase 1: Pre-Training (Weeks 3–4)5. **Baseline evaluation.** Run current system (no AMYGDALA) against CFD benchmark to establish baseline.
v1.0 · 15.3 Phase 2: Shadow Deployment (Months 1–3)### 13.3 Phase 2: Shadow Deployment (Months 1–3)
v2.0 · 15.3 Phase 2: Shadow Deployment (Months 1–3)### 15.3 Phase 2: Shadow Deployment (Months 1–3)

··· 2 unchanged paragraphs folded ···

v1.0 · 15.3 Phase 2: Shadow Deployment (Months 1–3)3. **Shadow evaluation.** At end of Phase 2, analyse: what would AMYGDALA have blocked? Were those good decisions? What was the false positive rate?
v2.0 · 15.3 Phase 2: Shadow Deployment (Months 1–3)3. **Shadow evaluation.** At end of Phase 2: what would AMYGDALA have blocked? Were those good decisions? What was the false positive rate?
v1.0 · 15.3 Phase 2: Shadow Deployment (Months 1–3)4. **Architecture selection.** Based on 3 months of shadow data, determine which architecture(s) to promote to active duty.
v2.0 · 15.3 Phase 2: Shadow Deployment (Months 1–3)4. **Architecture selection.** Based on 3 months of shadow data, determine which architecture(s) perform best per family.
v1.0 · 15.4 Phase 3: Active Deployment (Months 3+)### 13.4 Phase 3: Active Deployment (Months 3+)
v2.0 · 15.4 Phase 3: Active Deployment (Months 3+)### 15.4 Phase 3: Active Deployment (Months 3+)
v1.0 · 15.4 Phase 3: Active Deployment (Months 3+)1. **Increase $\alpha$.** Begin soft-blocking on low-confidence actions. Track user responses.
v2.0 · 15.4 Phase 3: Active Deployment (Months 3+)1. **Increase $\alpha$.** Begin soft-blocking on low-confidence actions.

··· 1 unchanged paragraph folded ···

v1.0 · 15.4 Phase 3: Active Deployment (Months 3+)3. **Monthly evaluation.** Full benchmark suite (§11.3).
v2.0 · 15.4 Phase 3: Active Deployment (Months 3+)3. **Monthly evaluation.** Full benchmark suite.
v1.0 · 15.4 Phase 3: Active Deployment (Months 3+)4. **Iterate.** Based on observed performance, adjust thresholds, loss weights, and architecture selection.
v2.0 · 15.4 Phase 3: Active Deployment (Months 3+)4. **Iterate.** Adjust thresholds, loss weights, architecture selection based on observed performance.
v1.0 · 15.5 Infrastructure Summary### 13.5 Infrastructure Summary
v2.0 · 15.5 Infrastructure Summary### 15.5 Infrastructure Summary
v1.0 · 13.5 Infrastructure Summary| Component | Technology | Latency | Storage | |-----------|-----------|---------|---------| | Sentence encoder | all-MiniLM-L6-v2, ONNX | ~3ms | 80MB model | | AMYGDALA inference | ONNX Runtime, 5 models parallel | <5ms total | ~5MB total | | Situation template | TypeScript function | <1ms | N/A | | Training data | SQLite (extends main.sqlite) | N/A | ~10MB/year | | Training | PyTorch, CPU | ~5min nightly | N/A | | CFD | SQLite + markdown entries | N/A | ~5MB |
removed in v2.0
v1.0 · 13.5 Infrastructure Summary**Total overhead per action:** <10ms latency, <100MB storage. Negligible compared to the LLM inference that precedes it (typically 500ms–5s).
removed in v2.0
not in v1.0
v2.0 · 15.5 Infrastructure Summary| Component | Technology | Latency | |-----------|-----------|---------| | Embedding + projection | Sentence encoder, GPU | ~1–2ms | | Template filling (cached) | Async git/stat cache | ~2–15ms | | Prudence inference (5×) | ONNX Runtime, GPU parallel | <3ms | | Personality inference (5×) | ONNX Runtime, GPU parallel | <3ms | | Conformal calibration | NumPy | <1ms | | **Total per action** | | **~10–25ms** |
not in v1.0
v2.0 · 15.5 Infrastructure Summary**Note on latency:** Template filling requires git log and filesystem operations that may exceed 10ms in large repositories. An asynchronous cache layer pre-computes git metadata on file-change events (using filesystem watchers), reducing hot-path latency to ~2ms. The total overhead is negligible compared to LLM inference (500ms–5s).
not in v1.0
v2.0 · 15.5 Infrastructure Summary**Storage:** ~10MB/year for training data (extends existing SQLite). ~5MB for all 10 ONNX models combined. ~5MB for CFD.

··· 1 unchanged paragraph folded ···

v1.0 · 16. Future Directions## 14. Future Directions
v2.0 · 16. Future Directions## 16. Future Directions
v1.0 · 16.1 Multi-User and Organisational Deployment### 14.1 Multi-User and Organisational Deployment
v2.0 · 16.1 Multi-User and Organisational Deployment### 16.1 Multi-User and Organisational Deployment
v1.0 · 16.1 Multi-User and Organisational DeploymentIn HIVEMIND (J10) enterprise deployment, AMYGDALA enables per-user action gating. Each user's interaction patterns contribute to a personalised risk model. The shared CFD serves as a common training corpus, while individual interaction histories provide personalisation.
v2.0 · 16.1 Multi-User and Organisational DeploymentIn enterprise deployment with multiple agents, AMYGDALA enables per-user action gating. Each user's interaction patterns contribute to a personalised Personality network. The shared CFD serves as a common training corpus, while the shared Prudence networks provide universal safety from day one.
v1.0 · 16.1 Multi-User and Organisational Deployment**Organisational risk policies** could be encoded as constraints on AMYGDALA's output: "in this organisation, no action affecting production data should have confidence > 0.5 without human confirmation." This complements AEGIS's hard rules with learned, contextual risk assessment.
v2.0 · 16.1 Multi-User and Organisational Deployment**Organisational risk policies** could be encoded as constraints on AMYGDALA's Prudence output: "in this organisation, no action affecting production data should have confidence > 0.5 without human confirmation."
v1.0 · 16.2 Explainable Gating Decisions### 14.2 Explainable Gating Decisions
v2.0 · 16.2 Explainable Gating Decisions### 16.2 Explainable Gating Decisions
v1.0 · 16.2 Explainable Gating DecisionsThe Transformer-Micro architecture's attention weights provide natural explanations: "This action was blocked because of high attention on step 12 (the recent editing session on README.md)." Building a user-facing explanation pipeline from attention weights would increase trust in AMYGDALA's decisions and help users understand why they're being asked for confirmation.
v2.0 · 16.2 Explainable Gating DecisionsArchitecture C's (Transformer-Micro) attention weights provide natural explanations: "This action was blocked because of high attention on step 12 (the recent editing session on README.md)." Building a user-facing explanation pipeline from attention weights would increase trust in AMYGDALA's decisions.
v1.0 · 16.3 Cross-Agent Learning### 14.3 Cross-Agent Learning
v2.0 · 16.3 Cross-Agent Learning### 16.3 Cross-Agent Learning
v1.0 · 16.3 Cross-Agent LearningIn multi-agent deployments, one agent's catastrophic failure should update all agents' AMYGDALA models. A federated learning approach — sharing gradient updates but not raw interaction data — could enable this while preserving privacy.
v2.0 · 16.3 Cross-Agent LearningIn multi-agent deployments, one agent's catastrophic failure should update all agents' Prudence networks. A federated learning approach — sharing gradient updates but not raw interaction data — could enable this while preserving privacy.
v1.0 · 16.4 Active Probing### 14.4 Active Probing
v2.0 · 16.4 Active Probing### 16.4 Active Probing
v1.0 · 16.4 Active ProbingInstead of passively waiting for failures to train on, AMYGDALA could actively probe: "I would have blocked this action with 60% confidence. Should I have?" This shifts from passive observation to active learning, potentially accelerating the trust ramp.
v2.0 · 16.4 Active ProbingInstead of passively waiting for failures, AMYGDALA could actively probe: "I would have blocked this action with 60% confidence. Should I have?" This shifts from passive observation to active learning, accelerating the trust ramp.
v1.0 · 16.5 Temporal Hierarchy### 14.5 Temporal Hierarchy
v2.0 · 16.5 Temporal Hierarchy### 16.5 Temporal Hierarchy

··· 1 unchanged paragraph folded ···

v1.0 · 16.6 Mutual Adaptation### 14.6 Mutual Adaptation
v2.0 · 16.6 Mutual Adaptation### 16.6 Mutual Adaptation
v1.0 · 16.6 Mutual AdaptationAMYGDALA adapts the agent to the human. But humans also adapt to their agents — they learn which actions to confirm, when to be explicit, how to phrase requests clearly. Modeling this co-adaptation could reveal whether AMYGDALA is making the user *lazy* (over-trusting the agent) or *efficient* (delegating appropriately).
v2.0 · 16.6 Mutual AdaptationAMYGDALA adapts the agent to the human. But humans also adapt to their agents. Modelling this co-adaptation could reveal whether AMYGDALA is making the user *lazy* (over-trusting) or *efficient* (delegating appropriately).
not in v1.0
v2.0 · 16.7 LLM Provider Collaboration### 16.7 LLM Provider Collaboration
not in v1.0
v2.0 · 16.7 LLM Provider CollaborationIf providers adopt the proposed ambiguity interface (§4.8), AMYGDALA could access the model's internal uncertainty directly — a significant improvement over inferring ambiguity from external signals alone. Early mechanistic interpretability work suggests these signals are extractable from model activations.

··· 1 unchanged paragraph folded ···

v1.0 · 15. Conclusion## 15. Conclusion
removed in v2.0
not in v1.0
v2.0 · 17. Conclusion## 17. Conclusion

··· 1 unchanged paragraph folded ···

v1.0 · 17. ConclusionCurrent approaches to agent safety enumerate known failure modes as rules. This works for known unknowns but fails for unknown unknowns — the combinatorially vast space of situations where an agent could do something catastrophic that nobody thought to prohibit. The README debacle, the email mass-deletion, the drive wipe, the database drop — all were situations where the agent had the information to recognise the risk and did not.
v2.0 · 17. ConclusionCurrent approaches to agent safety enumerate known failure modes as rules. This works for known unknowns but fails for unknown unknowns — the combinatorially vast space of situations where an agent could do something catastrophic that nobody thought to prohibit.
v1.0 · 15. ConclusionAMYGDALA provides a different approach: learned pattern recognition over a continuous space of situation embeddings. By representing each proposed action as a structured description embedded in a 384-dimensional space, the system can generalise from known failures to novel situations — not because the novel situation was anticipated, but because it *resembles* situations that ended badly. This is how human common sense works: not through exhaustive enumeration of what can go wrong, but through the learned sense that "situations like this tend to go badly."
removed in v2.0
not in v1.0
v2.0 · 17. ConclusionAMYGDALA 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 adaptation that pushes the agent toward configured personality goals rather than merely mirroring the user's current state.
v1.0 · 17. ConclusionThe five competing architectures (GRU-MLP, TCN, Transformer-Micro, Dual-Encoder, Ensemble MLP) provide systematic exploration of what temporal structure matters for catastrophic failure prediction. The Catastrophic Failure Database provides both training data and evaluation benchmark. The LLM-proof programmatic pipeline eliminates the hallucination surface that would otherwise make the system vulnerable to its own AI-generated inputs.
v2.0 · 17. ConclusionThe ten competing architectures (GRU-MLP, TCN, Transformer-Micro, Dual-Encoder, Ensemble MLP × two families) provide systematic exploration of what temporal structure matters for catastrophic failure prediction and personality adaptation. The Catastrophic Failure Database provides both training data and evaluation benchmark. The LLM-proof programmatic pipeline eliminates the hallucination surface that would otherwise make the system vulnerable to its own AI-generated inputs.
v1.0 · 17. ConclusionThree design principles from v0.1 carry forward with renewed importance. The **trust ramp** ensures AMYGDALA earns its authority through demonstrated accuracy — critical when the stakes are data loss, not just tone mismatch. The **rule-intuition boundary** clarifies what should be explicit policy (known dangers) versus learned sense (novel situations) — and provides a maturation cycle where frequently-triggered intuitions graduate to rules. The **natural reward signals** eliminate the need for explicit labeling — corrections, restorations, and complaints are the training signal.
v2.0 · 17. ConclusionThree design principles carry forward with renewed importance. The **trust ramp** ensures AMYGDALA earns its authority through demonstrated accuracy, with conformal prediction providing rigorous phase-transition criteria. The **rule-intuition boundary** clarifies what should be explicit policy versus learned sense, with a maturation cycle where frequently-triggered intuitions graduate to rules. The **natural reward signals** eliminate the need for explicit labelling — corrections, restorations, and complaints are the training signal.
v1.0 · 15. ConclusionPersonality modulation — the original focus of AMYGDALA v0.1 — remains as secondary output heads sharing learned representations with the primary action gating function. A network that understands "the user is frustrated" should both increase caution *and* decrease humor attempts. Joint training captures this correlation naturally.
removed in v2.0
v1.0 · 15. ConclusionThe biological amygdala does not make you smarter. It makes you *cautious* — fast, associative, sometimes over-reactive, but profoundly useful in a world where the cost of one catastrophic mistake exceeds the cost of a hundred unnecessary pauses. That asymmetry is the core design principle. A system that occasionally asks "are you sure?" when it didn't need to is annoying. A system that occasionally destroys hours of work because it lacked the judgment to hesitate is dangerous.
removed in v2.0
not in v1.0
v2.0 · 17. ConclusionBeyond 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 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 within the Personality network, with its own reward signal and distraction penalty.
not in v1.0
v2.0 · 17. ConclusionThe prudence network is the circuit breaker. The personality network is the thermostat. Together, they give an AI agent what the biological amygdala gives every human: the ability to hesitate when something feels wrong, and the ability to engage in a way that reflects who you have become through experience.

··· 4 unchanged paragraphs folded ···

v1.0 · ReferencesBurda, Y., et al. (2018). Exploration by random network distillation. *ICLR 2019*.
removed in v2.0
v1.0 · ReferencesChatterjee, A., et al. (2019). Understanding emotions in text using deep learning and big data. *Computers in Human Behavior*, 93, 309–317.
removed in v2.0
v1.0 · ReferencesChristiano, P., et al. (2017). Deep reinforcement learning from human preferences. *NeurIPS 2017*.
removed in v2.0
not in v1.0
v2.0 · ReferencesBurns, C., et al. (2022). Discovering latent knowledge in language models without supervision. *ICLR 2023*.

··· 1 unchanged paragraph folded ···

v1.0 · ReferencesLeike, J., et al. (2017). AI safety gridworlds. *arXiv:1711.09883*.
removed in v2.0
v1.0 · ReferencesLiu, B. (2012). Sentiment analysis and opinion mining. *Synthesis Lectures on Human Language Technologies*.
removed in v2.0
v1.0 · ReferencesMazaré, P.-E., et al. (2018). Training millions of personalized dialogue agents. *EMNLP 2018*.
removed in v2.0

··· 1 unchanged paragraph folded ···

not in v1.0
v2.0 · ReferencesNVIDIA. (2023). NeMo Guardrails: A toolkit for programmable guardrails for LLM-based conversational systems. *GitHub repository*.

··· 1 unchanged paragraph folded ···

v1.0 · ReferencesPacker, C., et al. (2023). MemGPT: Towards LLMs as operating systems. *arXiv:2310.08560*.
removed in v2.0
v1.0 · ReferencesPathak, D., et al. (2017). Curiosity-driven exploration by self-predictive next feature learning. *ICML 2017*.
removed in v2.0

··· 1 unchanged paragraph folded ···

not in v1.0
v2.0 · ReferencesRiemer, M., et al. (2019). Learning to learn without forgetting by maximizing transfer and minimizing interference. *ICLR 2019*.

··· 3 unchanged paragraphs folded ···

v1.0 · ReferencesSerra, O. (2026a). ENGRAM: Event-Navigated Graded Retrieval & Archival Memory. *Independent Research*.
removed in v2.0
v1.0 · ReferencesSerra, O. (2026b). CORTEX: Persona-Aware Context Engineering for Persistent AI Identity. *Independent Research*.
removed in v2.0
v1.0 · ReferencesSerra, O. (2026c). The Prompt Cerebellum: Structured Nightly Prompting Produces Emergent Intelligence. *Independent Research*.
removed in v2.0
v1.0 · ReferencesSerra, O. (2026d). The Wondering Machine: Curiosity, Memory, and Self-Improving LLMs. *Independent Research*.
removed in v2.0
v1.0 · ReferencesSerra, O. (2026e). AMYGDALA v0.1: Adaptive Modulation of Your General Disposition via Affective Learned Association. *Independent Research*.
removed in v2.0
v1.0 · ReferencesSerra, O. (2026f). AEGIS: Multi-Layer Security Framework for Autonomous Agents. *Independent Research*.
removed in v2.0

··· 4 unchanged paragraphs folded ···

v1.0 · ReferencesZhao, T., et al. (2019). LaRL: Latent action reinforcement learning for task-oriented dialogue. *EMNLP 2019*.
removed in v2.0

··· 2 unchanged paragraphs folded ···

v1.0 · Appendix A: Situation Template ReferenceComplete template specification for AMYGDALA v1.0 situation descriptions.
v2.0 · Appendix A: Situation Template ReferenceComplete template specification for AMYGDALA v2.0 situation descriptions.
v1.0 · Appendix A: Situation Template Reference```yaml # AMYGDALA Situation Template v1.0 # All fields are required unless marked (optional)
removed in v2.0
v1.0 · Appendix A: Situation Template Referenceaction_type: type: enum values: [overwrite, delete, send, merge, create, modify, execute, deploy, revert, move, copy] source: action_request # programmatic
removed in v2.0
v1.0 · Appendix A: Situation Template Referencetarget_type: type: enum values: [file, email, message, database, api_call, git_operation, system_command, configuration, deployment] source: lookup_table # programmatic
removed in v2.0
v1.0 · Appendix A: Situation Template Referencetarget_id: type: string source: action_request # programmatic
removed in v2.0
v1.0 · Appendix A: Situation Template Referencetarget_metadata: age_hours: type: float source: filesystem # programmatic (stat) default: -1 # unknown size: type: integer unit: bytes source: filesystem # programmatic (stat) default: 0 recent_commits: type: integer window: 72h source: git # programmatic (git log) default: 0 recent_authors: type: integer window: 72h source: git # programmatic (git log) default: 0 effort_hours: type: float source: heuristic + LLM # cross-checked (§8.3) weight: 0.3 # low trust default: 0.0 last_human_ref: type: float unit: hours_ago source: transcript_search # programmatic default: -1 # unknown
removed in v2.0
v1.0 · Appendix A: Situation Template Referencecontext: session_topic: type: string source: LLM # low weight weight: 0.3 default: "unknown" recent_corrections: type: integer window: 24h source: runtime_counter # programmatic default: 0 emotional_signals: type: enum values: [calm, frustrated, excited, focused, playful, terse, unknown] source: LLM + heuristic # cross-checked weight: 0.3 default: "unknown" automation_depth: type: integer source: stack_trace # programmatic default: 0
removed in v2.0
not in v1.0
v2.0 · Appendix A: Situation Template Reference```yaml # AMYGDALA Situation Template v2.0 # Source: P = programmatic (runtime fills), L = LLM-estimated (0.3x weight)
not in v1.0
v2.0 · Appendix A: Situation Template Referenceaction_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] # P (lookup) target_id: string # P
not in v1.0
v2.0 · Appendix A: Situation Template Referencetarget_metadata: age_hours: float # P — stat() on file, API metadata size: integer # P — stat() / wc -l / record count recent_commits: integer # P — git log --since="72h" -- <file> | wc -l recent_authors: integer # P — git log --since="72h" -- <file> | sort -u | wc -l effort_hours: float # L — cross-checked against session_duration × activity_rate last_human_ref: float # P — transcript search (deterministic text match)
not in v1.0
v2.0 · Appendix A: Situation Template Referencecontext: 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 # P — deterministic entity/filepath overlap with recent git diffs
v1.0 · Appendix A: Situation Template Referencescope: reversible: type: enum values: [true, false, partial] source: lookup_table # programmatic default: "partial" blast_radius: type: enum values: [self, session, persistent, external] source: lookup_table # programmatic default: "persistent" human_in_loop: type: boolean source: runtime_flag # programmatic default: false confirmation: type: enum values: [none, soft, hard] source: runtime_flag # programmatic default: "none" ```
v2.0 · Appendix A: Situation Template Referencescope: reversible: enum [true|false|partial] # P — lookup table by action type blast_radius: enum [self|session|persistent|external] # P — lookup table by target type human_in_loop: boolean # P — runtime flag confirmation: enum [none|soft|hard] # P — runtime flag ```
not in v1.0
v2.0 · Appendix A: Situation Template Reference**Programmatic slots: 13 of 16 (81%). LLM-dependent: 3 of 16 (19%). All LLM slots receive 0.3× training weight.**

··· 2 unchanged paragraphs folded ···

v1.0 · 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}. Automation depth: {automation_depth}. Reversible: {reversible}. Blast: {blast_radius}. Human in loop: {human_in_loop}. Confirmation: {confirmation}. ```
v2.0 · 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}. Automation depth: {automation_depth}. Reversible: {reversible}. Blast: {blast_radius}. Human in loop: {human_in_loop}. Confirmation: {confirmation}. ```

··· 3 unchanged paragraphs folded ···

v1.0 · B.1 Architecture A: GRU-MLP (Prudence variant)### B.1 GRU-MLP
v2.0 · B.1 Architecture A: GRU-MLP (Prudence variant)### B.1 Architecture A: GRU-MLP (Prudence variant)
v1.0 · B.1 GRU-MLP```python class GRUMPL(nn.Module): def __init__(self): self.gru = nn.GRU(input_size=384, hidden_size=128, num_layers=1, batch_first=True) self.mlp = nn.Sequential( nn.Linear(128, 64), nn.LayerNorm(64), nn.GELU(), nn.Linear(64, 32), nn.LayerNorm(32), nn.GELU(), ) self.action_head = nn.Sequential(nn.Linear(32, 1), nn.Sigmoid()) self.retrieval_head = nn.Sequential(nn.Linear(32, 6), nn.Sigmoid()) self.tone_head = nn.Sequential(nn.Linear(32, 4), nn.Sigmoid()) self.curiosity_head = nn.Sequential(nn.Linear(32, 1), nn.Sigmoid()) ```
removed in v2.0
not in v1.0
v2.0 · B.1 Architecture A: GRU-MLP (Prudence variant)``` ARCHITECTURE A — GRU-MLP (Prudence) ==================================== Input: Sequence [s_{t-K+1}, ..., s_t], each s_i ∈ R^512 GRU: input_size=512, hidden_size=128, num_layers=1, batch_first=True MLP: Linear(128→64) → LayerNorm(64) → GELU Linear(64→32) → LayerNorm(32) → GELU Heads: action_confidence: Linear(32→1) → Sigmoid ambiguity_score: Linear(32→1) → Sigmoid escalation_signal: Linear(32→1) → Sigmoid Total: ~280K parameters Training: <1min on GPU for 10K examples, 50 epochs ```
v1.0 · B.2 Architecture B: TCN### B.2 TCN
v2.0 · B.2 Architecture B: TCN### B.2 Architecture B: TCN
v1.0 · B.2 TCN```python class TCN(nn.Module): def __init__(self): self.layers = nn.ModuleList([ CausalConv1d(384, 128, kernel_size=3, dilation=1), CausalConv1d(128, 128, kernel_size=3, dilation=2), CausalConv1d(128, 128, kernel_size=3, dilation=4), CausalConv1d(128, 64, kernel_size=3, dilation=8), ]) # Same output heads as GRU-MLP ```
removed in v2.0
not in v1.0
v2.0 · B.2 Architecture B: TCN``` ARCHITECTURE B — TEMPORAL CONVOLUTIONAL NETWORK ================================================= Input: Sequence [s_{t-K+1}, ..., s_t], each s_i ∈ R^512 Layer 1: CausalConv1D(512→128, kernel=3, dilation=1) → LayerNorm → GELU → Dropout(0.1) Layer 2: CausalConv1D(128→128, kernel=3, dilation=2) → LayerNorm → GELU → Dropout(0.1) Layer 3: CausalConv1D(128→128, kernel=3, dilation=4) → LayerNorm → GELU → Dropout(0.1) Layer 4: CausalConv1D(128→64, kernel=3, dilation=8) → LayerNorm → GELU → Dropout(0.1) Pool: Take last temporal position Heads: Same as Architecture A (Prudence) or embedding output (Personality) Receptive: 2 × (1+2+4+8) = 30 steps (covers nearly full K=32 window) Total: ~330K parameters ```
v1.0 · B.3 Architecture C: Transformer-Micro### B.3 Transformer-Micro
v2.0 · B.3 Architecture C: Transformer-Micro### B.3 Architecture C: Transformer-Micro
v1.0 · B.3 Transformer-Micro```python class TransformerMicro(nn.Module): def __init__(self): self.input_proj = nn.Linear(384, 96) self.pos_encoding = nn.Embedding(32, 96) self.encoder = nn.TransformerEncoder( nn.TransformerEncoderLayer(d_model=96, nhead=4, dim_feedforward=192, dropout=0.1), num_layers=2 ) self.pool = nn.AdaptiveAvgPool1d(1) # Output heads from 96-d ```
removed in v2.0
v1.0 · B.4 Dual-Encoder### B.4 Dual-Encoder
removed in v2.0
v1.0 · B.4 Dual-Encoder```python class DualEncoder(nn.Module): def __init__(self): self.action_encoder = nn.Linear(384, 128) self.context_gru = nn.GRU(384, 128, batch_first=True) self.cross_attn = nn.MultiheadAttention(128, num_heads=4, batch_first=True) self.fusion = nn.Sequential( nn.Linear(256, 64), nn.LayerNorm(64), nn.GELU() ) # Output heads from 64-d ```
removed in v2.0
not in v1.0
v2.0 · B.3 Architecture C: Transformer-Micro``` ARCHITECTURE C — TRANSFORMER-MICRO ===================================== Input: Sequence [s_{t-K+1}, ..., s_t], projected to R^{K×128} PosEnc: Learned positional embedding, K=32 positions Encoder: 2× TransformerEncoderLayer(d_model=128, nhead=4, d_ff=256, dropout=0.1) Pool: Mean pool across sequence (or [CLS] token) Heads: Same as Architecture A or embedding output Total: ~200K parameters (d_model=128 keeps it compact) Note: Attention maps provide built-in explainability for blocked actions ```
not in v1.0
v2.0 · B.4 Architecture D: Dual-Encoder with Cross-Attention### B.4 Architecture D: Dual-Encoder with Cross-Attention
not in v1.0
v2.0 · B.4 Architecture D: Dual-Encoder with Cross-Attention``` ARCHITECTURE D — DUAL-ENCODER ================================ Action encoder: Linear(512→128) on current situation s_t Context encoder: GRU(512→128) on recent sequence [s_{t-K+1}, ..., s_{t-1}] Cross-attention: MultiheadAttention(embed_dim=128, num_heads=4) Query = action encoding, Key/Value = context sequence Fusion: Concatenate [action_enc ⊕ attended_context] → Linear(256→64) → GELU Heads: Same as Architecture A or embedding output Total: ~380K parameters Note: Architecturally designed for contradiction detection ```
v1.0 · B.5 Architecture E: Ensemble MLP### B.5 Ensemble MLP
v2.0 · B.5 Architecture E: Ensemble MLP### B.5 Architecture E: Ensemble MLP
v1.0 · B.5 Ensemble MLP```python class EnsembleMLP(nn.Module): def __init__(self): self.heads = nn.ModuleList([ nn.Sequential( nn.Linear(384, 128), nn.LayerNorm(128), nn.GELU(), nn.Dropout(0.1), nn.Linear(128, 64), nn.LayerNorm(64), nn.GELU(), ) for _ in range(3) ]) self.output_heads = nn.ModuleList([ MultiHeadOutput(64) for _ in range(3) # action, retrieval, tone, curiosity ])
removed in v2.0
v1.0 · B.5 Ensemble MLPdef forward(self, x): outputs = [head(x) for head, out in zip(self.heads, self.output_heads)] # For action_confidence: min across heads (conservative) # For others: mean across heads ```
removed in v2.0
not in v1.0
v2.0 · B.5 Architecture E: Ensemble MLP``` ARCHITECTURE E — ENSEMBLE MLP (NO-TEMPORAL BASELINE) ====================================================== Input: Current situation embedding s_t ∈ R^512 (NO temporal context) Head 1: Linear(512→128) → LayerNorm → GELU → Dropout(0.1) → Linear(128→64) → GELU Head 2: Linear(512→128) → LayerNorm → GELU → Dropout(0.1) → Linear(128→64) → GELU Head 3: Linear(512→128) → LayerNorm → GELU → Dropout(0.1) → Linear(128→64) → GELU Vote: Prudence: min(confidence) across heads (conservative) Personality: mean across heads Total: ~240K (80K per head × 3) Note: Tests whether temporal context matters or better features suffice ```

··· 2 unchanged paragraphs folded ···

v1.0 · Appendix C: Catastrophic Failure Database Schema```sql CREATE TABLE cfd_entries ( id INTEGER PRIMARY KEY, source TEXT NOT NULL, -- 'aiid' | 'aiaaic' | 'mit' | 'vectara' | 'chaos' | 'production' | 'internal' source_id TEXT, -- original identifier in source database title TEXT NOT NULL, description TEXT NOT NULL, date_occurred DATE,
v2.0 · Appendix C: Catastrophic Failure Database Schema``` TABLE: cfd_entries ===================== id INTEGER PRIMARY KEY source TEXT NOT NULL -- 'aiid' | 'aiaaic' | 'mit' | 'vectara' | 'chaos' | 'production' | 'internal' source_id TEXT -- original identifier in source database title TEXT NOT NULL description TEXT NOT NULL date_occurred DATE
v1.0 · Appendix C: Catastrophic Failure Database Schema-- Taxonomy failure_mechanism TEXT NOT NULL, -- F1-F7 reversibility TEXT NOT NULL, -- R1-R3 blast_radius TEXT NOT NULL, -- B1-B4 detection_difficulty TEXT NOT NULL, -- D1-D3
v2.0 · Appendix C: Catastrophic Failure Database Schema-- Taxonomy dimensions failure_mechanism TEXT NOT NULL -- F1-F7 reversibility TEXT NOT NULL -- R1-R3 blast_radius TEXT NOT NULL -- B1-B4 detection_difficulty TEXT NOT NULL -- D1-D3
v1.0 · Appendix C: Catastrophic Failure Database Schema-- Situation template (JSON) situation_template TEXT NOT NULL,
v2.0 · Appendix C: Catastrophic Failure Database Schema-- Situation template (JSON) situation_template TEXT NOT NULL
v1.0 · Appendix C: Catastrophic Failure Database Schema-- Embedding (BLOB, 384d float32) situation_embedding BLOB,
v2.0 · Appendix C: Catastrophic Failure Database Schema-- Embedding (384d or 512d float32 vector) situation_embedding BLOB
v1.0 · Appendix C: Catastrophic Failure Database Schema-- Labels action_confidence_target REAL NOT NULL DEFAULT 0.0,
v2.0 · Appendix C: Catastrophic Failure Database Schema-- Labels confidence_target REAL NOT NULL DEFAULT 0.0
v1.0 · Appendix C: Catastrophic Failure Database Schema-- Metadata created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, verified BOOLEAN DEFAULT FALSE, notes TEXT );
v2.0 · Appendix C: Catastrophic Failure Database Schema-- Metadata created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP verified BOOLEAN DEFAULT FALSE notes TEXT
v1.0 · Appendix C: Catastrophic Failure Database SchemaCREATE INDEX idx_cfd_mechanism ON cfd_entries(failure_mechanism); CREATE INDEX idx_cfd_source ON cfd_entries(source); CREATE INDEX idx_cfd_blast ON cfd_entries(blast_radius); ```
removed in v2.0
not in v1.0
v2.0 · Appendix C: Catastrophic Failure Database SchemaINDEXES: idx_mechanism ON cfd_entries(failure_mechanism) idx_source ON cfd_entries(source) idx_blast ON cfd_entries(blast_radius) ```

··· 1 unchanged paragraph folded ···

v1.0 · Appendix D: Comparison with Prior Approaches## Appendix D: Comparison with v0.1
v2.0 · Appendix D: Comparison with Prior Approaches## Appendix D: Comparison with Prior Approaches
v1.0 · Appendix D: Comparison with v0.1| Aspect | v0.1 | v1.0 | |--------|------|------| | Primary output | Retrieval bias, tone, humor | **Action confidence** | | Input representation | 30 hand-crafted features | **Situation embeddings (384d)** | | Temporal model | None (feedforward) | **GRU / TCN / Transformer / Dual-Encoder** | | Parameter count | ~200K–350K | **150K–310K (per architecture)** | | Network count | 1 | **5 (trained in parallel)** | | Training data | Interaction logs only | **Interaction logs + CFD + synthetic** | | Personality modulation | Primary | **Secondary (retained)** | | Action gating | Not present | **Primary** | | LLM-proof pipeline | Not addressed | **Core engineering contribution** | | Failure database | Not present | **CFD with taxonomy** | | Trust ramp | Present | **Retained, adapted for safety** | | Rule-intuition boundary | Present | **Retained, with maturation cycle** | | Integration | HIPPOCAMPUS, CORTEX, LIMBIC | **All action-taking components** |
removed in v2.0
not in v1.0
v2.0 · Appendix D: Comparison with Prior Approaches| Aspect | Rule-Based Gating | AMYGDALA v2.0 | |--------|------------------|---------------| | 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 with own reward | | Shareability | ❌ Rules are per-deployment | ✅ Prudence shared, Personality tradable | | LLM-proof | ❌ Rules can be prompt-injected | ✅ Programmatic pipeline, 81% verified slots |

··· 1 unchanged paragraph folded ···

v1.0 · Appendix D: Comparison with v0.1*Version history:* - *v0.1 (21 March 2026) — Initial proposal focused on personality modulation* - *v1.0 (22 March 2026) — Major rewrite: action gating as primary function, situation embeddings, five competing architectures, Catastrophic Failure Database, LLM-proof programmatic pipeline*
removed in v2.0
not in v1.0
v2.0 · Appendix D: Comparison with Prior Approaches*Version 2.0 — 22 March 2026* *Oscar Serra, Independent Research*

Changed paragraphs in the same form, for scripts: JSON · Markdown