{
  "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": "OptionsFlowAgent",
    "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/options_flow_agent.py",
      "commit_sha": "a1b2c3d4e5f6g7h8i9j0",
      "docstring_hash": "sha256:d8c4b12389a..."
    },
    "extracted_capabilities": [],
    "core_logic_signatures": [
      {
        "name": "__init__",
        "ast_hash": "sha256:0243702fbf666cbd",
        "loc": 9,
        "source": "def __init__(self, config: Dict[str, Any], **kwargs):\n        \"\"\"\n        Initializes the OptionsFlowAgent.\n        \"\"\"\n        super().__init__(config, **kwargs)\n        # Mock mode allows deterministic testing\n        self.mock_mode = config.get('mock_mode', False)\n        self.mock_put_call_ratio = config.get('mock_put_call_ratio', 1.0)\n        self.mock_unusual_volume = config.get('mock_unusual_volume', False)"
      },
      {
        "name": "execute",
        "ast_hash": "sha256:729fbcd2854608a9",
        "loc": 52,
        "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."
      },
      {
        "name": "_format_output",
        "ast_hash": "sha256:ddeccf4d84704bd1",
        "loc": 16,
        "source": "def _format_output(self, result: Dict[str, Any], query: str) -> AgentOutput:\n        \"\"\"Helper to format output to AgentOutput.\"\"\"\n        sentiment_score = result.get(\"sentiment_score\", 0.0)\n        details = result.get(\"details\", {})\n\n        answer = f\"Options Flow Analysis for '{query}':\\n\"\n        answer += f\"Sentiment Score: {sentiment_score:.2f} (0.0 Bearish - 1.0 Bullish)\\n\"\n        answer += f\"Put/Call Ratio: {details.get('put_call_ratio')}\\n\"\n        answer += f\"Unusual Volume Detected: {details.get('unusual_volume')}\\n\"\n\n        return AgentOutput(\n            answer=answer,\n            sources=[\"SimulatedOptionsFlowAPI\"],\n            confidence=0.8,\n            metadata=result\n        )"
      }
    ]
  }
}