> ## Documentation Index
> Fetch the complete documentation index at: https://docs.strategist.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Event Processing

## The AI Processing Pipeline

### Stage 1: Raw Input Capture

```
User Input: "Had a panic attack during the team presentation. 
Couldn't speak for 30 seconds. Everyone noticed. Feel like 
my career is over. Need to get this anxiety under control."
```

### Stage 2: Strategic Analysis

The AI analyzes each life event across multiple dimensions:

**Impact Metrics (1-10 scale):**

```json theme={null}
{
  "health_impact": 3,           // Physical/mental health effect
  "energy_impact": 2,           // Available energy depletion
  "mood_impact": 2,             // Emotional state change
  "strategic_significance": 8   // Overall importance to life strategy
}
```

**Categorization:**

```json theme={null}
{
  "event_categories": [
    "professional",  // Primary domain affected
    "health",        // Mental health component
    "relationships"  // Team dynamics impact
  ]
}
```

**Agent Activation:**

```json theme={null}
{
  "affected_agents": [
    "protector",     // Threat detection (professional risk)
    "optimizer",     // Performance failure
    "connector"      // Social embarrassment
  ]
}
```

### Stage 3: Enhanced Intelligence

**AI-Generated Enhancements:**

```json theme={null}
{
  "display_title": "🚨 Presentation Anxiety Crisis",
  "ai_enhanced_description": "Experienced significant anxiety episode during team presentation, indicating need for immediate anxiety management strategies and potential professional coaching.",
  "ai_confidence_score": 0.92
}
```

**Extracted Data:**

```json theme={null}
{
  "event_data": {
    "anxiety_level": 9,
    "duration_seconds": 30,
    "public_visibility": true,
    "professional_impact_risk": "high",
    "recovery_priority": "urgent"
  }
}
```

### Stage 4: System-Wide Triggers

Each life event ripples through your entire strategic system:

**1. Agent Coordination Updates:**

```sql theme={null}
-- Protector agent activation increases
UPDATE internal_agents 
SET activation_level = activation_level + 2
WHERE agent_type = 'protector'
```

**2. External Player Detection:**

```json theme={null}
{
  "detected_players": [
    {
      "name": "Team Members",
      "type": "person",
      "relationship": "neutral",
      "influence_level": 7,
      "context": "Witnessed anxiety episode"
    },
    {
      "name": "Presentation Anxiety",
      "type": "behavior",
      "relationship": "adversarial",
      "influence_level": 9
    }
  ]
}
```

**3. Status Object Creation/Updates:**

```json theme={null}
{
  "created_objects": [
    {
      "type": "goal",
      "title": "Master public speaking anxiety",
      "priority": 9,
      "primary_agent": "protector",
      "strategic_importance": 8
    },
    {
      "type": "habit",
      "title": "Daily presentation practice",
      "primary_agent": "optimizer"
    }
  ]
}
```

**4. Crisis Detection:**

```json theme={null}
{
  "crisis_level": "moderate",
  "types": ["professional_risk", "mental_health"],
  "intervention_required": true,
  "recommendations": [
    "Schedule anxiety coaching session",
    "Practice presentation skills daily",
    "Consider medication evaluation"
  ]
}
```

## Strategic Significance Scoring

### The 1-10 Scale Explained

**1-3: Routine Noise**

* Normal daily fluctuations
* No strategic adjustments needed
* Example: "Had regular lunch"

**4-6: Tactical Relevance**

* Affects short-term optimization
* Minor agent adjustments
* Example: "Good workout, hit new PR"

**7-8: Strategic Importance**

* Impacts multiple domains
* Triggers system-wide updates
* Example: "Got job offer from competitor"

**9-10: Game-Changing**

* Fundamental strategy shift required
* Crisis or breakthrough moment
* Example: "Diagnosed with cancer"

### Significance Factors

The AI considers multiple factors when scoring significance:

**Domain Impact:**

* How many life domains affected?
* Are these high-priority domains?
* Will effects cascade to other domains?

**Agent Activation:**

* Which agents are triggered?
* How strongly are they activated?
* Are there inter-agent conflicts?

**Temporal Effects:**

* Is this a one-time event or recurring pattern?
* Will impacts compound over time?
* Does this shift long-term trajectory?

**Strategic Leverage:**

* Does this create new opportunities?
* Does it close off strategic options?
* Is this a critical decision point?

## Advanced Event Processing

### Multi-Agent Conflict Events

Some events trigger competing agent responses:

**Example: "Offered dream job requiring relocation"**

```json theme={null}
{
  "agent_responses": {
    "explorer": {
      "vote": "strong_yes",
      "reasoning": "Massive growth opportunity"
    },
    "optimizer": {
      "vote": "yes",
      "reasoning": "70% salary increase"
    },
    "connector": {
      "vote": "no",
      "reasoning": "Leave entire social network"
    },
    "protector": {
      "vote": "strong_no",
      "reasoning": "Unknown city, no support system"
    }
  },
  "nash_equilibrium": "Negotiate remote-first with quarterly visits",
  "strategic_recommendation": "Explore hybrid arrangement before deciding"
}
```

### Cascade Event Chains

Single events can trigger strategic cascades:

**Trigger Event:** "Parent diagnosed with dementia"

**Cascade Effects:**

1. **Immediate:** Protector activation spike, health domain stress
2. **Short-term:** Financial planning adjustment, professional flexibility need
3. **Medium-term:** Relationship strain, caregiving responsibilities
4. **Long-term:** Estate planning, family dynamics shift, purpose reevaluation

**System Response:**

* Create "Eldercare Management" custom domain
* Generate "Caregiver Support" external player
* Adjust all domain priorities for new reality
* Activate crisis management protocols

### Context-Aware Processing

The same event has different significance based on context:

**Event:** "Missed workout"

**Context A: Optimization Phase**

* Strategic significance: 3/10
* Response: Minor schedule adjustment

**Context B: Depression Recovery**

* Strategic significance: 7/10
* Response: Immediate intervention, pattern break required

**Context C: Olympic Training**

* Strategic significance: 9/10
* Response: Crisis protocol, coach consultation, recovery plan

***

*Every event is processed through layers of strategic intelligence to extract maximum insight and actionable guidance.*
