{
 "paper": "learned-intuition",
 "a": "2.2",
 "b": "2.3",
 "summary": "From v2.2 (2 Jun) to v2.3 (2 Jun): 22,838 words to 23,203 words, 399 words in new or rewritten paragraphs and 34 taken out, 11 paragraphs changed.",
 "note": {
  "title": "New proposal: tell the gate where an action sits in a workflow",
  "kind": "revision",
  "body": "## Summary\n\nAdds a proposal to extend the situation template with two slots filled by the runtime: which recipe or workflow is running, and which step. The status block now says it was checked against the source code. A broken section reference is fixed.",
  "source": "change note"
 },
 "paragraphs_changed": 11,
 "changes": [
  {
   "section": "AMYGDALA: Adaptive Modulation of Your General Disposition via Affective Learned Association — Learned Intuition for Persistent AI Agents",
   "old": "# AMYGDALA: Adaptive Modulation of Your General Disposition via Affective Learned Association — Learned Intuition for Persistent AI Agents",
   "new": null,
   "marked": "[-# AMYGDALA: Adaptive Modulation of Your General Disposition via Affective Learned Association — Learned Intuition for Persistent AI Agents-]"
  },
  {
   "section": "AMYGDALA: Adaptive Modulation of Your General Disposition via Affective Learned Association — Learned Intuition for Persistent AI Agents",
   "old": "**Oscar Serra¹** ¹Independent Research _2 June 2026_",
   "new": null,
   "marked": "[-**Oscar Serra¹** ¹Independent Research _2 June 2026_-]"
  },
  {
   "section": "",
   "old": "**Implementation status (verified 2026-06-01):** 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. 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. The Personality thermostat is seeded with 15 dimensions. This version folds the deployment reality back into the design (§5.8, §8.2, §4.11). See [modifications log](modifications-2026-03-23.md) for the earlier sprint.",
   "new": "**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.",
   "marked": "**Implementation status (verified [-2026-06-01):**-] {+against the runtime source 2026-06-02):**+} The Prudence gate runs live in **ONNX mode** (`mode=onnx`), Phase 1 (Shadow), with the AEGIS deterministic veto active — a `hard_block` aborts the tool call unconditionally, independent of the trust ramp. {+The veto is wired in the runtime hook, which calls AEGIS both before the learned gate and again after an `allow`, so neither a learned approval nor a missing weight can route around a hard rule.+} Three of the five Prudence architectures (A: GRU-MLP, B: TCN, C: Transformer-Micro) load full-weight ONNX exports; architectures D and E have no full-weight export yet and fall back to a neutral output, so the deployed ensemble is three live plus two neutral (§5.8). The situation encoder is `all-MiniLM-L6-v2` (384-d) with a trained 384→512 projection and a real WordPiece [-tokenizer.-] {+tokenizer over the model's own 30,522-token vocabulary.+} The Personality thermostat is seeded with 15 dimensions. This version folds the deployment reality back into the design (§5.8, [-§8.2, §4.11).-] {+§8.2) and adds the recipe-context tie that lets the gate read structural workflow state (§16.8).+} See [modifications log](modifications-2026-03-23.md) for the earlier sprint."
  },
  {
   "section": "16.7 LLM Provider Collaboration",
   "old": "If 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.",
   "new": "If providers adopt the proposed ambiguity interface (§4.13), AMYGDALA could read the model's internal uncertainty directly instead of inferring ambiguity from external signals alone. Early mechanistic interpretability work suggests these signals are extractable from model activations.",
   "marked": "If providers adopt the proposed ambiguity interface [-(§4.8),-] {+(§4.13),+} AMYGDALA could [-access-] {+read+} the model's internal uncertainty directly [-— a significant improvement over-] {+instead of+} inferring ambiguity from external signals alone. Early mechanistic interpretability work suggests these signals are extractable from model activations."
  },
  {
   "section": "16.8 Recipe Context: Structural and Learned Gates Reinforcing",
   "old": null,
   "new": "### 16.8 Recipe Context: Structural and Learned Gates Reinforcing",
   "marked": "{+### 16.8 Recipe Context: Structural and Learned Gates Reinforcing+}"
  },
  {
   "section": "16.8 Recipe Context: Structural and Learned Gates Reinforcing",
   "old": null,
   "new": "The situation template (§4.3) today describes an action in isolation: what is being touched, how much effort it represents, whether it drifts from the conversation. It does not yet know _where in a workflow_ the action sits. A growing class of agent deployments runs structured, multi-step recipes — diagnose, then fix, then verify — each step with explicit done-when conditions. The same file write means very different things depending on the step: a write during a `fix` step that follows a successful `diagnose` step is expected and safe; the identical write with no diagnosis behind it is exactly the kind of unmotivated change AMYGDALA should hesitate over.",
   "marked": "{+The situation template (§4.3) today describes an action in isolation: what is being touched, how much effort it represents, whether it drifts from the conversation. It does not yet know _where in a workflow_ the action sits. A growing class of agent deployments runs structured, multi-step recipes — diagnose, then fix, then verify — each step with explicit done-when conditions. The same file write means very different things depending on the step: a write during a `fix` step that follows a successful `diagnose` step is expected and safe; the identical write with no diagnosis behind it is exactly the kind of unmotivated change AMYGDALA should hesitate over.+}"
  },
  {
   "section": "16.8 Recipe Context: Structural and Learned Gates Reinforcing",
   "old": null,
   "new": "We propose extending the template with two deterministic, runtime-filled slots:",
   "marked": "{+We propose extending the template with two deterministic, runtime-filled slots:+}"
  },
  {
   "section": "16.8 Recipe Context: Structural and Learned Gates Reinforcing",
   "old": null,
   "new": "``` recipe: recipe_id: {string|none} # P — which recipe is executing, if any step_name: {string|none} # P — current step (e.g. \"diagnose\", \"fix\", \"verify\") step_status: {enum} # P — prior-step outcome: {none|in_progress|passed|failed} ```",
   "marked": "{+``` recipe: recipe_id: {string|none} # P — which recipe is executing, if any step_name: {string|none} # P — current step (e.g. \"diagnose\", \"fix\", \"verify\") step_status: {enum} # P — prior-step outcome: {none|in_progress|passed|failed} ```+}"
  },
  {
   "section": "16.8 Recipe Context: Structural and Learned Gates Reinforcing",
   "old": null,
   "new": "Both slots are programmatic — the orchestration layer already tracks recipe and step state, so the runtime can fill them without LLM involvement, keeping them on the high-trust side of the §8 pipeline. The payoff is that the structural gate (the recipe's own done-when conditions) and the learned gate stop being two unrelated safety mechanisms. The learned network can read the structural state as just more situation context and adjust its caution accordingly: low caution for the in-recipe write that the structure already vouches for, high caution for the same write arriving out of any recognised workflow. The two gates reinforce — the structure tells the network when an action is procedurally justified, and the network catches the cases the structure never anticipated.",
   "marked": "{+Both slots are programmatic — the orchestration layer already tracks recipe and step state, so the runtime can fill them without LLM involvement, keeping them on the high-trust side of the §8 pipeline. The payoff is that the structural gate (the recipe's own done-when conditions) and the learned gate stop being two unrelated safety mechanisms. The learned network can read the structural state as just more situation context and adjust its caution accordingly: low caution for the in-recipe write that the structure already vouches for, high caution for the same write arriving out of any recognised workflow. The two gates reinforce — the structure tells the network when an action is procedurally justified, and the network catches the cases the structure never anticipated.+}"
  },
  {
   "section": "16.8 Recipe Context: Structural and Learned Gates Reinforcing",
   "old": null,
   "new": "This is a design hypothesis, not a deployed result: the current situation template carries action, effort, drift, and scope slots but no recipe slots, so the tie described here is the next concrete extension to the pipeline rather than a measured behaviour. It is listed here, with the other forward-looking items, for that reason.",
   "marked": "{+This is a design hypothesis, not a deployed result: the current situation template carries action, effort, drift, and scope slots but no recipe slots, so the tie described here is the next concrete extension to the pipeline rather than a measured behaviour. It is listed here, with the other forward-looking items, for that reason.+}"
  },
  {
   "section": "17. Conclusion",
   "old": "AMYGDALA provides a different approach: two families of learned neural networks that mirror the two functions of the biological amygdala. The **Prudence** family (five architectures, shared, universal) provides the circuit breaker — learned pattern recognition that catches dangerous actions before they execute, calibrated through conformal prediction to provide statistical guarantees rather than arbitrary thresholds. The **Personality** family (five architectures, private, per-user) provides the thermostat — learned behavioral adaptation that pushes the agent toward configured personality goals rather than merely mirroring the user's current state.",
   "new": "AMYGDALA provides a different approach: two families of learned neural networks that mirror the two functions of the biological amygdala. The **Prudence** family (five architectures, shared, universal) provides the circuit breaker — learned pattern recognition that catches dangerous actions before they execute, calibrated through conformal prediction to provide statistical guarantees rather than arbitrary thresholds. The **Personality** family (five architectures, private, per-user) provides the thermostat — learned behavioural adaptation that pushes the agent toward configured personality goals rather than merely mirroring the user's current state.",
   "marked": "AMYGDALA provides a different approach: two families of learned neural networks that mirror the two functions of the biological amygdala. The **Prudence** family (five architectures, shared, universal) provides the circuit breaker — learned pattern recognition that catches dangerous actions before they execute, calibrated through conformal prediction to provide statistical guarantees rather than arbitrary thresholds. The **Personality** family (five architectures, private, per-user) provides the thermostat — learned [-behavioral-] {+behavioural+} adaptation that pushes the agent toward configured personality goals rather than merely mirroring the user's current state."
  }
 ]
}
