{
  "flows": [
    {
      "entryPoint": "channels/telegram.ts:onTelegramMessage",
      "subsystemSequence": ["channels", "gateway", "agents"],
      "flow": [
        { "subsystem": "channels", "entity": "channels/telegram.ts:onTelegramMessage", "depth": 0 },
        { "subsystem": "gateway", "entity": "gateway/server.ts:handleRequest", "depth": 1, "crossedVia": "CALLS" },
        { "subsystem": "gateway", "entity": "gateway/session.ts:loadSession", "depth": 1.5, "crossedVia": "CALLS" }
      ],
      "cyclesDetected": []
    },
    {
      "entryPoint": "gateway/session.ts:refreshSession",
      "subsystemSequence": ["gateway", "agents"],
      "flow": [
        { "subsystem": "gateway", "entity": "gateway/session.ts:refreshSession", "depth": 0 },
        { "subsystem": "gateway", "entity": "gateway/session.ts:loadSession", "depth": 0.5, "crossedVia": "CALLS" },
        { "subsystem": "agents", "entity": "agents/runner.ts:runAgent", "depth": 1, "crossedVia": "CALLS" }
      ],
      "cyclesDetected": [
        { "at": "agents/runner.ts:reloadAgent", "backEdgeTo": "gateway/session.ts:loadSession" }
      ]
    }
  ]
}
