{
  "spec_version": "1.4.0-otel",
  "timestamp": "2026-04-24T00:13:03.355457Z",
  "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
  "span_id": "00f067aa0ba902b7",
  "severity_text": "WARN",
  "severity_number": 13,
  "event_name": "swarm.agent.lifecycle.deprecated",
  "resource": {
    "service.name": "swarm-orchestrator",
    "service.version": "4.2.0",
    "deployment.environment": "production",
    "node.id": "worker-node-aws-us-east-1a-04"
  },
  "attributes": {
    "agent.id": "NarrativeIntelligenceAgent",
    "agent.previous_version": "v29.x",
    "agent.target_version": "v30",
    "deprecation.reason": "Transitioning to v30 architecture.",
    "deprecation.action_required": true
  },
  "metrics": {
    "agent.core_logic.function_count": 3,
    "agent.capabilities.count": 0
  },
  "artifacts": {
    "provenance": {
      "repository": "git+ssh://repo/core/agents/specialized/narrative_intelligence_agent.py",
      "commit_sha": "a1b2c3d4e5f6g7h8i9j0",
      "docstring_hash": "sha256:d8c4b12389a..."
    },
    "extracted_capabilities": [],
    "core_logic_signatures": [
      {
        "name": "__init__",
        "ast_hash": "sha256:98be2796746fbefe",
        "loc": 3,
        "source": "def __init__(self, config: Dict[str, Any], **kwargs):\n        super().__init__(config, **kwargs)\n        self.narrative_threshold = config.get('narrative_threshold', 3)"
      },
      {
        "name": "execute",
        "ast_hash": "sha256:5ede4880ebe84612",
        "loc": 17,
        "source": "async def execute(self, **kwargs) -> Dict[str, Any]:\n        \"\"\"\n        Executes narrative analysis, extending the base sentiment analysis.\n        \"\"\"\n        logging.info(\"NarrativeIntelligenceAgent execution started.\")\n\n        # 1. Run Base Logic (Additive)\n        base_result = await super().execute(**kwargs)\n\n        # 2. Add Narrative Layer\n        narratives = await self.identify_narratives()\n\n        # 3. Enrich Result\n        base_result['narratives'] = narratives\n        base_result['dominant_narrative'] = narratives[0] if narratives else \"Market noise - No clear signal\"\n\n        return base_result"
      },
      {
        "name": "identify_narratives",
        "ast_hash": "sha256:035eac32d7bcae68",
        "loc": 71,
        "source_omitted_for_brevity": true,
        "note": "In a real telemetry pipeline, large functions can be truncated or omitted entirely in favor of the 'ast_hash' to save network bandwidth and storage costs."
      }
    ]
  }
}