v2.3 → v2.4
What changed from v2.3 to v2.4
From v2.3 (2 Jun) to v2.4 (2 Jun): 23,203 words to 23,214 words, 87 words in new or rewritten paragraphs and 76 taken out, 16 paragraphs changed.
Wording only: terms explained for readers outside the seriesWording changes. Names from the author's other papers (the security layer, the persona system) are explained in plain words instead of being assumed, and one passage no longer presents earlier attempts as history.
v2.3 · 2 June 2026v2.4 · 2 June 2026
v2.3 · Top**Implementation status (verified against the runtime source 2026-06-02):** The Prudence gate runs live in **ONNX mode** (`mode=onnx`), Phase 1 (Shadow), with the AEGIS deterministic veto active — a `hard_block` aborts the tool call unconditionally, independent of the trust ramp. The veto is wired in the runtime hook, which calls AEGIS both before the learned gate and again after an `allow`, so neither a learned approval nor a missing weight can route around a hard rule. Three of the five Prudence architectures (A: GRU-MLP, B: TCN, C: Transformer-Micro) load full-weight ONNX exports; architectures D and E have no full-weight export yet and fall back to a neutral output, so the deployed ensemble is three live plus two neutral (§5.8). The situation encoder is `all-MiniLM-L6-v2` (384-d) with a trained 384→512 projection and a real WordPiece tokenizer over the model's own 30,522-token vocabulary. The Personality thermostat is seeded with 15 dimensions. This version folds the deployment reality back into the design (§5.8, §8.2) and adds the recipe-context tie that lets the gate read structural workflow state (§16.8). See [modifications log](modifications-2026-03-23.md) for the earlier sprint.
v2.4 · Top**Implementation status (verified against the runtime source).** The Prudence gate runs live in ONNX mode, Phase 1 (Shadow), with the AEGIS deterministic veto active — a `hard_block` aborts the tool call unconditionally, independent of the trust ramp. The veto is wired in the runtime hook, which calls AEGIS both before the learned gate and again after an `allow`, so neither a learned approval nor a missing weight can route around a hard rule. Three of the five Prudence architectures (A: GRU-MLP, B: TCN, C: Transformer-Micro) load full-weight ONNX exports; architectures D and E have no full-weight export yet and fall back to a neutral output, so the deployed ensemble is three live plus two neutral (§5.8). The situation encoder is `all-MiniLM-L6-v2` (384-d) with a trained 384→512 projection and a WordPiece tokenizer over the model's own 30,522-token vocabulary. The Personality thermostat is seeded with 15 dimensions. The deployed gate runs on CPU; the GPU latency figures quoted throughout are design targets for the inference budget, not measured deployment numbers.
··· 30 unchanged paragraphs folded ···
v2.3 · 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:
v2.4 · 1.4 Two Distinct Problems, Two Network FamiliesIt is tempting to serve both safety and personality from a single network family. Operational experience over approximately four months of deployment shows this conflation is a design error. Safety and personality are fundamentally different problems:
··· 11 unchanged paragraphs folded ···
v2.3 · 1.6 Safety Versus Attacks: The J9–J11 Distinction### 1.6 Safety Versus Attacks: The J9–J11 Distinction
removed in v2.4
not in v2.3
v2.4 · 1.6 Safety Versus Attacks: Two Threat Models### 1.6 Safety Versus Attacks: Two Threat Models
v2.3 · 1.6 Safety Versus Attacks: Two Threat ModelsA 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?
v2.4 · 1.6 Safety Versus Attacks: Two Threat ModelsA common confusion: if we already have a hard security framework — a multi-layer constraint system (which we call AEGIS) that enforces explicit rules like "never send money without confirmation" and "never delete databases without approval" — why do we need AMYGDALA?
··· 48 unchanged paragraphs folded ···
v2.3 · 2.5 The J-Series Cognitive Architecture### 2.5 The J-Series Cognitive Architecture
removed in v2.4
v2.3 · 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.
removed in v2.4
not in v2.3
v2.4 · 2.5 Position in a Layered Agent Architecture### 2.5 Position in a Layered Agent Architecture
not in v2.3
v2.4 · 2.5 Position in a Layered Agent ArchitectureAMYGDALA is designed to slot into a layered cognitive architecture for persistent agents — a stack of cooperating subsystems for storage, retrieval, identity, self-improvement, and security. Each subsystem listed below is documented separately; the inline summaries here are sufficient to understand AMYGDALA's interactions without reading those documents. The names are the labels we use for our own deployed components.
··· 77 unchanged paragraphs folded ···
v2.3 · 4.5 The Personality Family: Five Behavioural Networks**Pre-training via Knowledge Distillation.** To solve the "cold start" vulnerability where an untrained network might output random vectors that degrade interaction quality, the Personality networks undergo a Knowledge Distillation phase before PPO exploration. The network is trained to predict the behavioral modulations that a standard, heavily-prompted LLM _would_ have produced given the same situation. This provides a safe, baseline personality initialization.
v2.4 · 4.5 The Personality Family: Five Behavioural Networks**Pre-training via Knowledge Distillation.** To solve the "cold start" vulnerability where an untrained network might output random vectors that degrade interaction quality, the Personality networks undergo a Knowledge Distillation phase before PPO exploration. The network is trained to predict the behavioural modulations that a standard, heavily-prompted LLM _would_ have produced given the same situation. This provides a safe, baseline personality initialisation.
··· 69 unchanged paragraphs folded ···
v2.3 · 4.10 The Trust Ramp**Critical design choice:** The default action_confidence for a truly untrained (randomly initialized) network would be 1.0 (proceed) to match today's baseline. This ensures the system defaults to current behaviour, not to blocking everything. The cold start is not a degradation; it is today's baseline.
v2.4 · 4.10 The Trust Ramp**Critical design choice:** The default action_confidence for a truly untrained (randomly initialised) network would be 1.0 (proceed) to match today's baseline. This ensures the system defaults to current behaviour, not to blocking everything. The cold start is not a degradation; it is today's baseline.
··· 385 unchanged paragraphs folded ···
v2.3 · 14.3 Overcoming the Alignment Tax1b. **Guided Decoding and Logit Bias.** For open-weight models or APIs supporting logit bias, integrate the Personality network's output directly into the decoding process. Rather than appending text, the continuous behavioral embedding applies a dynamic logit bias to tokens associated with curiosity and exploration, steering the generation distribution directly.
v2.4 · 14.3 Overcoming the Alignment Tax1b. **Guided Decoding and Logit Bias.** For open-weight models or APIs supporting logit bias, integrate the Personality network's output directly into the decoding process. Rather than appending text, the continuous behavioural embedding applies a dynamic logit bias to tokens associated with curiosity and exploration, steering the generation distribution directly.
··· 1 unchanged paragraph folded ···
v2.3 · 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.
v2.4 · 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 behaviour) that exploration is rewarded. This is slow but fundamentally different from prompt-level curiosity — it operates on the behavioural layer, not the text layer.
··· 57 unchanged paragraphs folded ···
v2.3 · 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.
v2.4 · 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 behavioural instructions — is alleviated by moving these patterns into network weights. **Prompt-level curiosity** — proven to fail over four months of trying — is replaced by curiosity as a trained behaviour within the Personality network, with its own reward signal and distraction penalty.
··· 55 unchanged paragraphs folded ···
v2.3 · Appendix D: Comparison with Prior Approaches| Aspect | Rule-Based Gating | AMYGDALA v2.2 | | ---------------------- | ------------------------------- | ------------------------------------------------ | | Known failures | ✅ Handled by rules | ✅ Handled by rules (AEGIS) + learned (AMYGDALA) | | Unknown failures | ❌ Cannot anticipate | ✅ Generalisation via situation embeddings | | Temporal context | ❌ Rules are stateless | ✅ GRU/TCN/Transformer over recent history | | Personality adaptation | ❌ Static prompt | ✅ Learned, target-directed, continuous | | Calibration | ❌ Arbitrary thresholds | ✅ Conformal prediction, statistical guarantees | | Ambiguity detection | ❌ Not addressed | ✅ Intent-action gap, blast radius, ensemble | | Context pressure | ❌ Rules consume tokens | ✅ Safety in weights, 2,200 tokens recovered | | Curiosity | ❌ Prompt-level fails | ✅ Trained behavior with own reward | | Shareability | ❌ Rules are per-deployment | ✅ Prudence shared, Personality tradable | | LLM-proof | ❌ Rules can be prompt-injected | ✅ Programmatic pipeline, 81% verified slots |
v2.4 · Appendix D: Comparison with Prior Approaches| Aspect | Rule-Based Gating | AMYGDALA | | ---------------------- | ------------------------------- | ------------------------------------------------ | | 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 behaviour with own reward | | Shareability | ❌ Rules are per-deployment | ✅ Prudence shared, Personality tradable | | LLM-proof | ❌ Rules can be prompt-injected | ✅ Programmatic pipeline, 81% verified slots |
··· 1 unchanged paragraph folded ···
v2.3 · Appendix D: Comparison with Prior Approaches_Version 2.2 — 2 June 2026_ _Oscar Serra, Independent Research_
v2.4 · Appendix D: Comparison with Prior Approaches_Version 2.4 — 2 June 2026_ _Oscar Serra, Independent Research_
Changed paragraphs in the same form, for scripts: JSON
· Markdown