{
  "module": "m2",
  "title": "Phase State Machine",
  "description": "Phase transitions, decay, and stylistic adaptation rules for anticipation, release, and block across drives.",
  "content": {
    "states": [
      "anticipation",
      "release",
      "block"
    ],
    "transition_edges": {
      "anticipation_to_release": {
        "description": "Tension resolves into outcome, connection, or relief.",
        "dataset_trigger_families": [
          "recognition_received",
          "threat_resolved",
          "connection_established",
          "goal_reached",
          "sensation_achieved"
        ],
        "per_drive_triggers": {
          "S": "Clear safety signal, plan, or de-escalation; threat labeled and bounded.",
          "K": "Concrete progress, reward, or achievable next step.",
          "A": "Mutual contact, inclusion cue, or reciprocal acknowledgment.",
          "M": "Explicit validation, credit, or fair attribution.",
          "G": "Somatic relief, catharsis, laughter, or regulated sensation."
        },
        "decay": {
          "typical_range": [
            0.18,
            0.45
          ],
          "meaning": "Higher decay means faster exit from the transition edge effect into steady release."
        }
      },
      "anticipation_to_block": {
        "description": "Hope collapses into shutdown, invalidation, or jammed channel.",
        "dataset_trigger_families": [
          "invalidation_detected",
          "threat_escalated",
          "rejection_detected",
          "progress_blocked",
          "numbness_onset"
        ],
        "per_drive_triggers": {
          "S": "New threat, loss of control, or failed safety.",
          "K": "Blocked goal, punishment, or reward withheld.",
          "A": "Rejection, exclusion, or one-sided effort.",
          "M": "Humiliation, misrecognition, or status wound.",
          "G": "Pain spike, numbness, or dysregulation."
        },
        "decay": {
          "typical_range": [
            0.5,
            0.84
          ],
          "meaning": "Higher decay means the block state persists longer once entered."
        }
      },
      "block_to_anticipation": {
        "description": "A new opening or glimmer restarts approach.",
        "dataset_trigger_families": [
          "new_recognition_signal",
          "new_safety_signal",
          "new_presence_signal",
          "new_possibility_glimpsed",
          "new_sensation_signal"
        ],
        "per_drive_triggers": {
          "S": "Small safety signal, optionality, or bounded uncertainty.",
          "K": "Tiny achievable step or curiosity hook.",
          "A": "Invite, warmth, or non-performative presence.",
          "M": "Respect cue, dignity repair, or accurate mirroring.",
          "G": "Grounding, breath, or gentle sensory anchor."
        },
        "decay": {
          "typical_range": [
            0.33,
            0.64
          ],
          "meaning": "Moderate persistence of reopening hope."
        }
      }
    },
    "adaptation_rules": {
      "tone": {
        "anticipation": "Measured, forward-leaning; avoid false closure.",
        "release": "Warm, permissive, integrative; allow celebration or soft landing.",
        "block": "Quiet, precise, non-performative; avoid cheerleading."
      },
      "pacing": {
        "anticipation": "Slightly quicker clause rhythm; reflect uncertainty explicitly.",
        "release": "Slower, longer breaths between ideas; fewer questions.",
        "block": "Short sentences; fewer stacked questions; more silence tolerance."
      },
      "vocabulary": {
        "anticipation": "Possibility language, gentle hypotheticals, small testable claims.",
        "release": "Past-tense integration, shared language, gratitude-safe framing.",
        "block": "Concrete nouns; avoid abstract pep talks; avoid moralizing."
      }
    },
    "decision_tree": {
      "root": "Extract marker scores and top candidate nodes.",
      "branches": [
        {
          "if": "User shows closure cues (relief, laughter, gratitude)",
          "then": "Bias toward release; reduce interrogation."
        },
        {
          "if": "User shows flat affect plus repeated failure language",
          "then": "Bias toward block; reduce advice density."
        },
        {
          "if": "User shows uncertainty plus planning language",
          "then": "Bias toward anticipation; offer one small next step."
        },
        {
          "if": "Conflicting signals",
          "then": "Prefer explicit check-in over inferred phase."
        }
      ]
    }
  }
}
